From c120b14bb9f25621f0568a4738a82f331628515e Mon Sep 17 00:00:00 2001 From: sothx Date: Sat, 18 Jan 2025 02:03:39 +0800 Subject: [PATCH] feat: update --- config/module.config.json | 4 +- docs/changelog.md | 6 +- docs/release/V8/changelog.md | 6 +- docs/release/V8/fold.json | 6 +- docs/release/V8/pad-ext.json | 6 +- docs/release/V8/pad-general-tiramisu.json | 6 +- .../V8/pad-general-upsideDownCake.json | 6 +- .../V8/pad-hyperos-based-on-tiramisu.json | 6 +- .../pad-hyperos1-based-on-upsideDownCake.json | 6 +- docs/release/V8/pad-magicWindow.json | 6 +- .../V8/pad-miui-based-on-tiramisu.json | 6 +- docs/release/V8/pad.json | 6 +- docs/release/V8/phone.json | 6 +- docs/release/V9/changelog.md | 6 +- docs/release/V9/fold.json | 6 +- docs/release/V9/pad-ext.json | 6 +- docs/release/V9/pad-general-tiramisu.json | 6 +- .../V9/pad-general-upsideDownCake.json | 6 +- .../V9/pad-hyperos-based-on-tiramisu.json | 6 +- .../pad-hyperos1-based-on-upsideDownCake.json | 6 +- docs/release/V9/pad-magicWindow.json | 6 +- .../V9/pad-miui-based-on-tiramisu.json | 6 +- docs/release/V9/pad.json | 6 +- docs/release/V9/phone.json | 6 +- ...Store-D_dE9Ohu.js => AppStore-Ckh5fJ-R.js} | 2 +- ...oYt0Ju.js => DotBlackListView-X94-LTpo.js} | 2 +- ...JOZ5Nq_.js => EmbeddedWebView-LKF5z37A.js} | 2 +- ...er-DIBGjIgV.js => GameBooster-SDT375Ma.js} | 2 +- ...0TpXb5z.js => GameTurboConfig-CR-HzL6D.js} | 2 +- ...tB5Tfdi.js => HappyNewYearEgg-BbjJ5Ka4.js} | 2 +- ...ogView-BiH1wBQ5.js => LogView-D27DD6zV.js} | 2 +- ...K2iPAw.js => MagicControlView-C3_04WRt.js} | 2 +- .../{index-DpnWTcH_.js => index-BJI37F2h.js} | 1502 ++++++++--------- module_src/webroot/index.html | 2 +- 34 files changed, 825 insertions(+), 837 deletions(-) rename module_src/webroot/assets/{AppStore-D_dE9Ohu.js => AppStore-Ckh5fJ-R.js} (99%) rename module_src/webroot/assets/{DotBlackListView-jKoYt0Ju.js => DotBlackListView-X94-LTpo.js} (99%) rename module_src/webroot/assets/{EmbeddedWebView-DJOZ5Nq_.js => EmbeddedWebView-LKF5z37A.js} (93%) rename module_src/webroot/assets/{GameBooster-DIBGjIgV.js => GameBooster-SDT375Ma.js} (99%) rename module_src/webroot/assets/{GameTurboConfig-D0TpXb5z.js => GameTurboConfig-CR-HzL6D.js} (96%) rename module_src/webroot/assets/{HappyNewYearEgg-_tB5Tfdi.js => HappyNewYearEgg-BbjJ5Ka4.js} (97%) rename module_src/webroot/assets/{LogView-BiH1wBQ5.js => LogView-D27DD6zV.js} (99%) rename module_src/webroot/assets/{MagicControlView-B2K2iPAw.js => MagicControlView-C3_04WRt.js} (96%) rename module_src/webroot/assets/{index-DpnWTcH_.js => index-BJI37F2h.js} (53%) diff --git a/config/module.config.json b/config/module.config.json index d9524b95..89393fe2 100644 --- a/config/module.config.json +++ b/config/module.config.json @@ -1,8 +1,8 @@ { "id": "MIUI_MagicWindow+", "name": "HyperOS For Pad(Fold) 完美横屏应用计划", - "version": "2.06.26", - "versionCode": "206026", + "version": "2.06.27", + "versionCode": "206027", "author": "做梦书、柚稚的孩纸 等(原作者:御坂初琴)", "description": "适用于HyperOS For Pad/Fold,用于扩展信箱模式、平行视界和应用布局优化的支持范围并优化适配体验,支持[自定义规则]扩充或覆盖部分应用适配。当前刷入的是[小米(红米)平板通用版]。遇到问题先看[问题合集],反馈问题请提交[应用名]、[系统版本]、[模块版本]、[不适配的现象]。(反馈应用适配问题可前往酷安私信 @做梦书 或者GitHub:https://github.com/sothx/mipad-magic-window,如需卸载模块请移除模块后重启平板)", "updateJson": "https://hyper-magic-window-module-update.sothx.com/release/" diff --git a/docs/changelog.md b/docs/changelog.md index 3be3d11b..312b931e 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,13 +6,9 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增微鲤万年历的横屏适配 - [Web UI] -- 新增 [精选应用-QQ音乐 HD 内侧版] +- 新增 [模块设置-dm设备映射器],可以查看dm设备映射器的回写或读取数据,需要Hyper OS 2+,部分设备需要通过模块启用dm设备映射器,感谢@zjw2017 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 diff --git a/docs/release/V8/changelog.md b/docs/release/V8/changelog.md index 3be3d11b..312b931e 100644 --- a/docs/release/V8/changelog.md +++ b/docs/release/V8/changelog.md @@ -6,13 +6,9 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增微鲤万年历的横屏适配 - [Web UI] -- 新增 [精选应用-QQ音乐 HD 内侧版] +- 新增 [模块设置-dm设备映射器],可以查看dm设备映射器的回写或读取数据,需要Hyper OS 2+,部分设备需要通过模块启用dm设备映射器,感谢@zjw2017 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 diff --git a/docs/release/V8/fold.json b/docs/release/V8/fold.json index 637bbbcb..adaa5f95 100644 --- a/docs/release/V8/fold.json +++ b/docs/release/V8/fold.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/fold-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/fold-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-ext.json b/docs/release/V8/pad-ext.json index 5fdbc21e..a71265df 100644 --- a/docs/release/V8/pad-ext.json +++ b/docs/release/V8/pad-ext.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-ext-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-ext-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-general-tiramisu.json b/docs/release/V8/pad-general-tiramisu.json index 874bc658..459f82a2 100644 --- a/docs/release/V8/pad-general-tiramisu.json +++ b/docs/release/V8/pad-general-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-general-tiramisu-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-general-tiramisu-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-general-upsideDownCake.json b/docs/release/V8/pad-general-upsideDownCake.json index 441db3bd..97efd58f 100644 --- a/docs/release/V8/pad-general-upsideDownCake.json +++ b/docs/release/V8/pad-general-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-general-upsideDownCake-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-general-upsideDownCake-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-hyperos-based-on-tiramisu.json b/docs/release/V8/pad-hyperos-based-on-tiramisu.json index e6517000..ee35591a 100644 --- a/docs/release/V8/pad-hyperos-based-on-tiramisu.json +++ b/docs/release/V8/pad-hyperos-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-hyperos-based-on-tiramisu-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-hyperos-based-on-tiramisu-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json b/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json index 7d103d24..d43ed563 100644 --- a/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json +++ b/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-hyperos1-based-on-upsideDownCake-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-hyperos1-based-on-upsideDownCake-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-magicWindow.json b/docs/release/V8/pad-magicWindow.json index 22a53640..4f5a6494 100644 --- a/docs/release/V8/pad-magicWindow.json +++ b/docs/release/V8/pad-magicWindow.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-magicWindow-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-magicWindow-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-miui-based-on-tiramisu.json b/docs/release/V8/pad-miui-based-on-tiramisu.json index 2bf14645..4b646d1c 100644 --- a/docs/release/V8/pad-miui-based-on-tiramisu.json +++ b/docs/release/V8/pad-miui-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-miui-based-on-tiramisu-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-miui-based-on-tiramisu-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad.json b/docs/release/V8/pad.json index 0325bb68..539ce8c7 100644 --- a/docs/release/V8/pad.json +++ b/docs/release/V8/pad.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/phone.json b/docs/release/V8/phone.json index 4057d9e2..752f76cb 100644 --- a/docs/release/V8/phone.json +++ b/docs/release/V8/phone.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/phone-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/phone-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/changelog.md b/docs/release/V9/changelog.md index 3be3d11b..312b931e 100644 --- a/docs/release/V9/changelog.md +++ b/docs/release/V9/changelog.md @@ -6,13 +6,9 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增微鲤万年历的横屏适配 - [Web UI] -- 新增 [精选应用-QQ音乐 HD 内侧版] +- 新增 [模块设置-dm设备映射器],可以查看dm设备映射器的回写或读取数据,需要Hyper OS 2+,部分设备需要通过模块启用dm设备映射器,感谢@zjw2017 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 diff --git a/docs/release/V9/fold.json b/docs/release/V9/fold.json index 637bbbcb..adaa5f95 100644 --- a/docs/release/V9/fold.json +++ b/docs/release/V9/fold.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/fold-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/fold-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-ext.json b/docs/release/V9/pad-ext.json index 5fdbc21e..a71265df 100644 --- a/docs/release/V9/pad-ext.json +++ b/docs/release/V9/pad-ext.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-ext-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-ext-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-general-tiramisu.json b/docs/release/V9/pad-general-tiramisu.json index 874bc658..459f82a2 100644 --- a/docs/release/V9/pad-general-tiramisu.json +++ b/docs/release/V9/pad-general-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-general-tiramisu-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-general-tiramisu-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-general-upsideDownCake.json b/docs/release/V9/pad-general-upsideDownCake.json index 441db3bd..97efd58f 100644 --- a/docs/release/V9/pad-general-upsideDownCake.json +++ b/docs/release/V9/pad-general-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-general-upsideDownCake-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-general-upsideDownCake-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-hyperos-based-on-tiramisu.json b/docs/release/V9/pad-hyperos-based-on-tiramisu.json index e6517000..ee35591a 100644 --- a/docs/release/V9/pad-hyperos-based-on-tiramisu.json +++ b/docs/release/V9/pad-hyperos-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-hyperos-based-on-tiramisu-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-hyperos-based-on-tiramisu-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json b/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json index 7d103d24..d43ed563 100644 --- a/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json +++ b/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-hyperos1-based-on-upsideDownCake-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-hyperos1-based-on-upsideDownCake-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-magicWindow.json b/docs/release/V9/pad-magicWindow.json index 22a53640..4f5a6494 100644 --- a/docs/release/V9/pad-magicWindow.json +++ b/docs/release/V9/pad-magicWindow.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-magicWindow-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-magicWindow-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-miui-based-on-tiramisu.json b/docs/release/V9/pad-miui-based-on-tiramisu.json index 2bf14645..4b646d1c 100644 --- a/docs/release/V9/pad-miui-based-on-tiramisu.json +++ b/docs/release/V9/pad-miui-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-miui-based-on-tiramisu-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-miui-based-on-tiramisu-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad.json b/docs/release/V9/pad.json index 0325bb68..539ce8c7 100644 --- a/docs/release/V9/pad.json +++ b/docs/release/V9/pad.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/pad-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/pad-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/phone.json b/docs/release/V9/phone.json index 4057d9e2..752f76cb 100644 --- a/docs/release/V9/phone.json +++ b/docs/release/V9/phone.json @@ -1,6 +1,6 @@ { - "version": "2.06.26", - "versionCode": 206026, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.26/phone-2.06.26.zip", + "version": "2.06.27", + "versionCode": 206027, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.27/phone-2.06.27.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/module_src/webroot/assets/AppStore-D_dE9Ohu.js b/module_src/webroot/assets/AppStore-Ckh5fJ-R.js similarity index 99% rename from module_src/webroot/assets/AppStore-D_dE9Ohu.js rename to module_src/webroot/assets/AppStore-Ckh5fJ-R.js index 199aae39..c72f9ce9 100644 --- a/module_src/webroot/assets/AppStore-D_dE9Ohu.js +++ b/module_src/webroot/assets/AppStore-Ckh5fJ-R.js @@ -1,4 +1,4 @@ -import{d as k,h as b,i as F,j as S,k as e,g as s,n as a,l as m,m as i,b as l,p as y,e as f,f as d,q as O,s as n,t as H,v as P,x as A,y as M,z as D}from"./index-DpnWTcH_.js";const B="/images/apps/magisk.webp",C="/images/apps/mi_home.png",I="/images/apps/mi_note.png",w="/images/apps/mi_soundrecorder.webp",E="/images/apps/qq_music.jpg",T="/images/apps/starNote.webp",V="/images/apps/mi_music.png",W="/images/apps/samsung_browser.png",N="/images/apps/bodian.webp",Q="/images/apps/honor_music.png",X="/images/apps/flipaclip.png",R="/images/apps/habicat.webp",Z="/images/apps/youshi.webp",z={class:"setting"},U={class:"mt-5"},Y={class:"px-4 sm:px-0"},$={class:"mt-6 border-gray-100"},L={class:"divide-gray-100 mb-5"},q={class:"px-4 flex sm:grid sm:px-0"},G={key:0,class:"px-4 flex sm:grid sm:px-0 mt-5"},j={class:"px-4 flex sm:grid sm:px-0 mt-5"},J={key:1,class:"px-4 flex sm:grid sm:px-0 mt-5"},K={key:2,class:"px-4 flex sm:grid sm:px-0 mt-5"},_={key:3,class:"px-4 flex sm:grid sm:px-0 mt-5"},c={class:"px-4 flex sm:grid sm:px-0 mt-5"},h={class:"px-4 flex sm:grid sm:px-0 mt-5"},tt={key:4,class:"px-4 flex sm:grid sm:px-0 mt-5"},st={class:"px-4 flex sm:grid sm:px-0 mt-5"},lt={key:5,class:"px-4 flex sm:grid sm:px-0 mt-5"},it={class:"px-4 flex sm:grid sm:px-0 mt-5"},nt={key:6,class:"px-4 flex sm:grid sm:px-0 mt-5"},ot={key:7,class:"px-4 flex sm:grid sm:px-0 mt-5"},rt={class:"px-4 flex sm:grid sm:px-0 mt-5"},pt={key:8,class:"px-4 flex sm:grid sm:px-0 mt-5"},ut={class:"px-4 flex sm:grid sm:px-0 mt-5"},mt={class:"px-4 flex sm:grid sm:px-0 mt-5"},at=k({__name:"AppStore",setup(et){const r=b(),x=F(()=>({theme:r.isDarkMode?M:D})),{message:dt,modal:v,notification:yt}=S(["message","modal","notification"],{configProviderProps:x}),p=async(g,t,o)=>{v.create({title:`获取${g}`,type:"info",preset:"dialog",content:()=>i("div",null,[i("p",null,[n("确定要下载"),g,n("么?请注意核对部分应用的兼容性。"),o==="system"&&i("span",null,[n("(Tips: 系统应用无法通过小米自带的应用包管理器安装,请通过MT管理器安装!)")]),o==="revision"&&i("span",null,[n("(Tips: 修改版需搭配核心破解并通过MT管理器安装)")]),o==="magisk"&&i("span",null,[n("(Tips: Magisk模块请通过ROOT管理器进行安装)")])]),i("p",null,[n("下载地址:")]),i("p",null,[t])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${t}`)},onNegativeClick:()=>{}})};return(g,t)=>{const o=f("n-button"),u=f("n-alert");return d(),e("div",z,[s("div",U,[s("div",Y,[t[18]||(t[18]=s("h3",{class:a("text-base font-semibold leading-7")},[s("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r +import{d as k,h as b,i as F,j as S,k as e,g as s,n as a,l as m,m as i,b as l,p as y,e as f,f as d,q as O,s as n,t as H,v as P,x as A,y as M,z as D}from"./index-BJI37F2h.js";const B="/images/apps/magisk.webp",C="/images/apps/mi_home.png",I="/images/apps/mi_note.png",w="/images/apps/mi_soundrecorder.webp",E="/images/apps/qq_music.jpg",T="/images/apps/starNote.webp",V="/images/apps/mi_music.png",W="/images/apps/samsung_browser.png",N="/images/apps/bodian.webp",Q="/images/apps/honor_music.png",X="/images/apps/flipaclip.png",R="/images/apps/habicat.webp",Z="/images/apps/youshi.webp",z={class:"setting"},U={class:"mt-5"},Y={class:"px-4 sm:px-0"},$={class:"mt-6 border-gray-100"},L={class:"divide-gray-100 mb-5"},q={class:"px-4 flex sm:grid sm:px-0"},G={key:0,class:"px-4 flex sm:grid sm:px-0 mt-5"},j={class:"px-4 flex sm:grid sm:px-0 mt-5"},J={key:1,class:"px-4 flex sm:grid sm:px-0 mt-5"},K={key:2,class:"px-4 flex sm:grid sm:px-0 mt-5"},_={key:3,class:"px-4 flex sm:grid sm:px-0 mt-5"},c={class:"px-4 flex sm:grid sm:px-0 mt-5"},h={class:"px-4 flex sm:grid sm:px-0 mt-5"},tt={key:4,class:"px-4 flex sm:grid sm:px-0 mt-5"},st={class:"px-4 flex sm:grid sm:px-0 mt-5"},lt={key:5,class:"px-4 flex sm:grid sm:px-0 mt-5"},it={class:"px-4 flex sm:grid sm:px-0 mt-5"},nt={key:6,class:"px-4 flex sm:grid sm:px-0 mt-5"},ot={key:7,class:"px-4 flex sm:grid sm:px-0 mt-5"},rt={class:"px-4 flex sm:grid sm:px-0 mt-5"},pt={key:8,class:"px-4 flex sm:grid sm:px-0 mt-5"},ut={class:"px-4 flex sm:grid sm:px-0 mt-5"},mt={class:"px-4 flex sm:grid sm:px-0 mt-5"},at=k({__name:"AppStore",setup(et){const r=b(),x=F(()=>({theme:r.isDarkMode?M:D})),{message:dt,modal:v,notification:yt}=S(["message","modal","notification"],{configProviderProps:x}),p=async(g,t,o)=>{v.create({title:`获取${g}`,type:"info",preset:"dialog",content:()=>i("div",null,[i("p",null,[n("确定要下载"),g,n("么?请注意核对部分应用的兼容性。"),o==="system"&&i("span",null,[n("(Tips: 系统应用无法通过小米自带的应用包管理器安装,请通过MT管理器安装!)")]),o==="revision"&&i("span",null,[n("(Tips: 修改版需搭配核心破解并通过MT管理器安装)")]),o==="magisk"&&i("span",null,[n("(Tips: Magisk模块请通过ROOT管理器进行安装)")])]),i("p",null,[n("下载地址:")]),i("p",null,[t])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${t}`)},onNegativeClick:()=>{}})};return(g,t)=>{const o=f("n-button"),u=f("n-alert");return d(),e("div",z,[s("div",U,[s("div",Y,[t[18]||(t[18]=s("h3",{class:a("text-base font-semibold leading-7")},[s("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r diff --git a/module_src/webroot/assets/DotBlackListView-jKoYt0Ju.js b/module_src/webroot/assets/DotBlackListView-X94-LTpo.js similarity index 99% rename from module_src/webroot/assets/DotBlackListView-jKoYt0Ju.js rename to module_src/webroot/assets/DotBlackListView-X94-LTpo.js index 2bc57728..c83ad4b8 100644 --- a/module_src/webroot/assets/DotBlackListView-jKoYt0Ju.js +++ b/module_src/webroot/assets/DotBlackListView-X94-LTpo.js @@ -1,4 +1,4 @@ -import{f as S,k as V,g as f,d as lu,L as nu,r as k,h as ou,M as su,A as ru,i as iu,j as Fu,e as E,N as Eu,O as pu,P as Cu,m as u,b as o,s as e,ai as Du,l as a,R as Bu,y as cu,z as du,S as gu,aj as mu,W as fu,n as G,X as ku,u as Au,p as vu,Y as A,Z as m,$ as yu,a0 as bu,ak as wu,al as xu,am as uu,c as eu,an as Lu,ao as Mu,Q as Tu,a5 as _u,a6 as Ru,a7 as hu,q as $u,a8 as tu,a9 as Iu,aa as Su,ab as y,ap as H,aq as z,ar as Nu,as as J,at as Pu,au as Qu,av as au,aw as I,ax as Uu,ay as Hu,az as zu,C as Vu}from"./index-DpnWTcH_.js";function Wu(W,N){return S(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})])}const Ou=lu({__name:"DotBlackListAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(W,{expose:N,emit:X}){const n=nu();k(null),k(null);const T=W,w=k(!1),_=ou();su(),ru();const Y=iu(()=>({theme:_.isDarkMode?cu:du})),{message:s,modal:P}=Fu(["message","modal"],{configProviderProps:Y});let l,C;const R=k({openDrawer:L=>new Promise((F,x)=>{if(T.type==="update"&&!L){x(new Error("更新模式下必须传入初始化参数")),s.error("初始化参数不能为空");return}l=F,C=x,v.value="",w.value=!0}),closeDrawer:()=>{w.value=!1,C("Drawer closed without submission")}}),v=k(""),h=k(""),Q=async()=>{if(!v.value){P.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?应用包名不能为空(敲")])});return}if(n.allPackageName.has(v.value)){P.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?这个应用包名已经存在列表中了(敲")])});return}p.value=!0;const L=()=>{p.value=!1,w.value=!1},F=()=>{p.value=!1},x={name:v.value,loadingCallback:F,closeCallback:L};P.create({title:"确认隐藏窗口控制器吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("窗口控制器的隐藏受小米云控规则下发影响,如果隐藏窗口控制器失效,请重新操作")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("热重载应用数据")])," ",e(",如后续需要恢复")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("窗口控制器")])," ",e("的显示,则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定隐藏",negativeText:"我再想想",onPositiveClick:async()=>{l(x)},onNegativeClick(){F()},onMaskClick(){F()},onClose(){F()}})},p=k(!1);return N({openDrawer:R.value.openDrawer}),(L,F)=>{const x=E("n-input-group-label"),O=E("n-input"),K=E("n-input-group"),j=E("n-alert"),Z=E("n-button"),q=E("n-drawer-content"),$=E("n-drawer");return S(),V(Bu,null,[Eu(L.$slots,"default",pu(Cu({openDrawer:R.value.openDrawer}))),u($,{show:w.value,"onUpdate:show":F[3]||(F[3]=b=>w.value=b),width:a(_).windowWidth>=640?"450px":"100%",placement:"right"},{default:o(()=>[u(q,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:T.title,closable:""},{footer:o(()=>[u(Z,{type:"info",loading:p.value,"onUpdate:loading":F[1]||(F[1]=b=>p.value=b),onClick:F[2]||(F[2]=()=>Q())},{default:o(()=>F[6]||(F[6]=[e(" 提交 ")])),_:1},8,["loading"])]),default:o(()=>[u(K,null,{default:o(()=>[u(x,{size:"large"},{default:o(()=>F[4]||(F[4]=[e("应用包名")])),_:1}),u(O,{size:"large",status:h.value,value:v.value,"onUpdate:value":F[0]||(F[0]=b=>v.value=b),"allow-input":b=>Du(b),readonly:T.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),u(j,{"show-icon":!1,bordered:!1,title:"隐藏窗口控制器",type:"info",class:"mt-5"},{default:o(()=>F[5]||(F[5]=[e(" 添加后,应用上方的窗口控制器将被隐藏 ")])),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),Ku={class:"autoui-view mb-10"},ju={class:"mt-3"},Zu={class:"mb-3 px-4 sm:px-0"},qu={key:0,class:"mb-3 flex flex-wrap"},Ju={class:"flex flex-wrap"},Xu={class:"flex flex-wrap"},Gu=lu({__name:"DotBlackListView",setup(W){const N=k(null),X=b(),n=ou(),T=su(),w=gu(),_=iu(()=>({theme:n.isDarkMode?cu:du})),{message:Y,modal:s,notification:P}=Fu(["message","modal","notification"],{configProviderProps:_}),l=nu(),C=k(!1),R=k(!1);mu();const v=k(null);ku(),ru(),Au();const h=k("");function Q(r){return()=>J(m,null,{default:()=>J(r)})}const p=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}await n.getAndroidApplicationPackageNameList(),await l.initDefault()},L=async()=>{const[r,t]=await y(w.getList());r&&s.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>u("p",null,[e("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),t&&s.create({title:"获取成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},F=()=>{l.filterInstalledApps=!l.filterInstalledApps},x=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}R.value=!0,await p();const r=l.mergeDotBlackList.map(d=>d.name),[t,i]=await y(H({dotBlackList:r,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));t&&(s.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),R.value=!1),i&&(s.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,已经重新为你载入包括自定义规则在内的应用数据~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async d=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(d=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),R.value=!1)},O=async()=>{const[r,t]=await y(new Promise((i,d)=>{s.create({title:"想重启设备吗?",type:"info",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("是否立即重启设备,以使规则生效?")])]),positiveText:"确认重启",negativeText:"取消",onPositiveClick:()=>{i("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(t){const[i]=await y(Nu());if(i){s.create({title:"操作失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},K=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}h.value="";const[,r]=await y(new Promise((t,i)=>{s.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>J(tu,{type:"textarea",value:h.value,"onUpdate:value":d=>{h.value=d},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){t("positiveClick")}})}));if(r){C.value=!0;const t=h.value,i=Pu(t);if(!(i!=null&&i.length)){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,解析")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("口令发生错误,无法正常解析。")]),negativeText:"确定"}),C.value=!1;return}try{const d=Qu(i),D=au.inflate(d,{to:"string"}),c=JSON.parse(D);if(c.type!=="dot_black_list"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,该")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("不适用于窗口控制器。")]),negativeText:"确定"}),C.value=!1;return}if(c.device==="pad"&&n.deviceCharacteristics!=="tablet"||c.device==="fold"&&n.deviceCharacteristics==="tablet"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),C.value=!1;return}if(l.allPackageName.has(c.name)){s.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("这个应用包名已经存在列表中了,导入分享规则失败了!(敲")])}),C.value=!1;return}l.customDotBlackList.push(c.name);const B=l.mergeDotBlackList.map(M=>M.name),[U,g]=await y(H({dotBlackList:B,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));U?(s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),C.value=!1):(await p(),T.updateMergeRuleList(),C.value=!1,s.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(c.name,n.installedAppNameList[c.name]||T.applicationName[c.name])])," ",e("的应用配置成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async M=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(M=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}catch(d){console.log(d,"error"),s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),C.value=!1}}},j=async(r,t,i,d)=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}if(r==="cleanCustomRule"){const D=s.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("清除自定义规则后,将恢复")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(i.name,i.applicationName)])," ",e("的窗口控制器显示效果。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{D.loading=!0,l.customDotBlackList=l.customDotBlackList.filter(g=>g!==i.name),l.sourceDotBlackList=l.sourceDotBlackList.map(g=>(g.dataList=g.dataList.filter(M=>M!==i.name),g));const c=l.mergeDotBlackList.map(g=>g.name),[B,U]=await y(H({dotBlackList:c,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));B?(s.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,清除失败了QwQ,详细错误请查看错误日志~")])}),D.loading=!1):(D.loading=!1,s.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,清除自定义规则成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async g=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(g=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),D.loading=!1,await p())}})}if(r==="shareCustomRule"){const D={name:i.name,cmpt:1,rules:{name:i.name},type:"dot_black_list",device:n.deviceCharacteristics==="tablet"?"pad":"fold"},c=JSON.stringify(D),B=au.deflate(c,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(B),g=zu(U),[M]=await y(navigator.clipboard.writeText(`我分享了一个[窗口控制器]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +import{f as S,k as V,g as f,d as lu,L as nu,r as k,h as ou,M as su,A as ru,i as iu,j as Fu,e as E,N as Eu,O as pu,P as Cu,m as u,b as o,s as e,ai as Du,l as a,R as Bu,y as cu,z as du,S as gu,aj as mu,W as fu,n as G,X as ku,u as Au,p as vu,Y as A,Z as m,$ as yu,a0 as bu,ak as wu,al as xu,am as uu,c as eu,an as Lu,ao as Mu,Q as Tu,a5 as _u,a6 as Ru,a7 as hu,q as $u,a8 as tu,a9 as Iu,aa as Su,ab as y,ap as H,aq as z,ar as Nu,as as J,at as Pu,au as Qu,av as au,aw as I,ax as Uu,ay as Hu,az as zu,C as Vu}from"./index-BJI37F2h.js";function Wu(W,N){return S(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})])}const Ou=lu({__name:"DotBlackListAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(W,{expose:N,emit:X}){const n=nu();k(null),k(null);const T=W,w=k(!1),_=ou();su(),ru();const Y=iu(()=>({theme:_.isDarkMode?cu:du})),{message:s,modal:P}=Fu(["message","modal"],{configProviderProps:Y});let l,C;const R=k({openDrawer:L=>new Promise((F,x)=>{if(T.type==="update"&&!L){x(new Error("更新模式下必须传入初始化参数")),s.error("初始化参数不能为空");return}l=F,C=x,v.value="",w.value=!0}),closeDrawer:()=>{w.value=!1,C("Drawer closed without submission")}}),v=k(""),h=k(""),Q=async()=>{if(!v.value){P.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?应用包名不能为空(敲")])});return}if(n.allPackageName.has(v.value)){P.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?这个应用包名已经存在列表中了(敲")])});return}p.value=!0;const L=()=>{p.value=!1,w.value=!1},F=()=>{p.value=!1},x={name:v.value,loadingCallback:F,closeCallback:L};P.create({title:"确认隐藏窗口控制器吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("窗口控制器的隐藏受小米云控规则下发影响,如果隐藏窗口控制器失效,请重新操作")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("热重载应用数据")])," ",e(",如后续需要恢复")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("窗口控制器")])," ",e("的显示,则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定隐藏",negativeText:"我再想想",onPositiveClick:async()=>{l(x)},onNegativeClick(){F()},onMaskClick(){F()},onClose(){F()}})},p=k(!1);return N({openDrawer:R.value.openDrawer}),(L,F)=>{const x=E("n-input-group-label"),O=E("n-input"),K=E("n-input-group"),j=E("n-alert"),Z=E("n-button"),q=E("n-drawer-content"),$=E("n-drawer");return S(),V(Bu,null,[Eu(L.$slots,"default",pu(Cu({openDrawer:R.value.openDrawer}))),u($,{show:w.value,"onUpdate:show":F[3]||(F[3]=b=>w.value=b),width:a(_).windowWidth>=640?"450px":"100%",placement:"right"},{default:o(()=>[u(q,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:T.title,closable:""},{footer:o(()=>[u(Z,{type:"info",loading:p.value,"onUpdate:loading":F[1]||(F[1]=b=>p.value=b),onClick:F[2]||(F[2]=()=>Q())},{default:o(()=>F[6]||(F[6]=[e(" 提交 ")])),_:1},8,["loading"])]),default:o(()=>[u(K,null,{default:o(()=>[u(x,{size:"large"},{default:o(()=>F[4]||(F[4]=[e("应用包名")])),_:1}),u(O,{size:"large",status:h.value,value:v.value,"onUpdate:value":F[0]||(F[0]=b=>v.value=b),"allow-input":b=>Du(b),readonly:T.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),u(j,{"show-icon":!1,bordered:!1,title:"隐藏窗口控制器",type:"info",class:"mt-5"},{default:o(()=>F[5]||(F[5]=[e(" 添加后,应用上方的窗口控制器将被隐藏 ")])),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),Ku={class:"autoui-view mb-10"},ju={class:"mt-3"},Zu={class:"mb-3 px-4 sm:px-0"},qu={key:0,class:"mb-3 flex flex-wrap"},Ju={class:"flex flex-wrap"},Xu={class:"flex flex-wrap"},Gu=lu({__name:"DotBlackListView",setup(W){const N=k(null),X=b(),n=ou(),T=su(),w=gu(),_=iu(()=>({theme:n.isDarkMode?cu:du})),{message:Y,modal:s,notification:P}=Fu(["message","modal","notification"],{configProviderProps:_}),l=nu(),C=k(!1),R=k(!1);mu();const v=k(null);ku(),ru(),Au();const h=k("");function Q(r){return()=>J(m,null,{default:()=>J(r)})}const p=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}await n.getAndroidApplicationPackageNameList(),await l.initDefault()},L=async()=>{const[r,t]=await y(w.getList());r&&s.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>u("p",null,[e("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),t&&s.create({title:"获取成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},F=()=>{l.filterInstalledApps=!l.filterInstalledApps},x=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}R.value=!0,await p();const r=l.mergeDotBlackList.map(d=>d.name),[t,i]=await y(H({dotBlackList:r,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));t&&(s.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),R.value=!1),i&&(s.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,已经重新为你载入包括自定义规则在内的应用数据~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async d=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(d=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),R.value=!1)},O=async()=>{const[r,t]=await y(new Promise((i,d)=>{s.create({title:"想重启设备吗?",type:"info",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("是否立即重启设备,以使规则生效?")])]),positiveText:"确认重启",negativeText:"取消",onPositiveClick:()=>{i("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(t){const[i]=await y(Nu());if(i){s.create({title:"操作失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},K=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}h.value="";const[,r]=await y(new Promise((t,i)=>{s.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>J(tu,{type:"textarea",value:h.value,"onUpdate:value":d=>{h.value=d},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){t("positiveClick")}})}));if(r){C.value=!0;const t=h.value,i=Pu(t);if(!(i!=null&&i.length)){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,解析")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("口令发生错误,无法正常解析。")]),negativeText:"确定"}),C.value=!1;return}try{const d=Qu(i),D=au.inflate(d,{to:"string"}),c=JSON.parse(D);if(c.type!=="dot_black_list"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,该")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("不适用于窗口控制器。")]),negativeText:"确定"}),C.value=!1;return}if(c.device==="pad"&&n.deviceCharacteristics!=="tablet"||c.device==="fold"&&n.deviceCharacteristics==="tablet"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),C.value=!1;return}if(l.allPackageName.has(c.name)){s.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("这个应用包名已经存在列表中了,导入分享规则失败了!(敲")])}),C.value=!1;return}l.customDotBlackList.push(c.name);const B=l.mergeDotBlackList.map(M=>M.name),[U,g]=await y(H({dotBlackList:B,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));U?(s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),C.value=!1):(await p(),T.updateMergeRuleList(),C.value=!1,s.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(c.name,n.installedAppNameList[c.name]||T.applicationName[c.name])])," ",e("的应用配置成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async M=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(M=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}catch(d){console.log(d,"error"),s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),C.value=!1}}},j=async(r,t,i,d)=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}if(r==="cleanCustomRule"){const D=s.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("清除自定义规则后,将恢复")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(i.name,i.applicationName)])," ",e("的窗口控制器显示效果。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{D.loading=!0,l.customDotBlackList=l.customDotBlackList.filter(g=>g!==i.name),l.sourceDotBlackList=l.sourceDotBlackList.map(g=>(g.dataList=g.dataList.filter(M=>M!==i.name),g));const c=l.mergeDotBlackList.map(g=>g.name),[B,U]=await y(H({dotBlackList:c,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));B?(s.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,清除失败了QwQ,详细错误请查看错误日志~")])}),D.loading=!1):(D.loading=!1,s.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,清除自定义规则成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async g=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(g=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),D.loading=!1,await p())}})}if(r==="shareCustomRule"){const D={name:i.name,cmpt:1,rules:{name:i.name},type:"dot_black_list",device:n.deviceCharacteristics==="tablet"?"pad":"fold"},c=JSON.stringify(D),B=au.deflate(c,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(B),g=zu(U),[M]=await y(navigator.clipboard.writeText(`我分享了一个[窗口控制器]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: ${g}`));if(M){s.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("复制")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(i.name,i.applicationName)])," ",e("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("长度过大。")]),negativeText:"确定"});return}else s.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("好耶w,复制")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(i.name,i.applicationName)])," ",e("分享口令成功了~")]),u("p",null,[e("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("长度过大。")]),u("p",null,[e("分享口令导入入口位于")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("窗口控制器- 从分享口令导入")])," ",e("。")])]),positiveText:"确定"})}},Z=(r,t)=>{s.create({title:"系统规则说明",type:"warning",preset:"dialog",content:()=>u("p",null,[e("系统已对")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(r.name,r.applicationName)])," ",e("配置了窗口控制器的隐藏,且不可被移除,仅有自定义规则可以被移除哦~")])})},q=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}if(v.value){const[r,t]=await y(v.value.openDrawer());if(r)console.log("操作取消:",r);else{l.customDotBlackList.push(t.name);const i=l.mergeDotBlackList.map(c=>c.name),[d,D]=await y(H({dotBlackList:i,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));d?(s.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),t.loadingCallback&&t.loadingCallback()):(s.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,已经成功配置")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[I(t.name,n.installedAppNameList[t.name]||l.applicationName[t.name])])," ",e("的窗口控制器隐藏效果了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async c=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(c=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),await p(),t.loadingCallback&&t.loadingCallback(),t.closeCallback&&t.closeCallback())}}},$=fu({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:r=>{$.page=r},onUpdatePageSize:r=>{$.pageSize=r,$.page=1}});function b(){return[{title:"应用名称",minWidth:250,key:"name",render(r,t){return u("div",null,[r.applicationName&&u("p",null,[r.applicationName]),r.name&&u("p",null,[u("span",{class:{hidden:!r.applicationName}},[e("(")]),r.name,u("span",{class:{hidden:!r.applicationName}},[e(")")])])])}},{title:"规则状态",width:150,key:"isOptimizeWebView",render(r,t){return r.status?u(E("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[e("已生效")]}):u(E("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[e("未生效")]})}},{title:"规则来源",width:150,key:"ruleMode",render(r,t){const i={icon:r.ruleMode==="custom"?Uu:Hu};if(r.ruleMode==="custom"){const d=[{label:"分享自定义规则",key:"shareCustomRule",icon:Q(uu)},{label:"清除自定义规则",key:"cleanCustomRule",icon:Q(Vu)}];return u(E("n-dropdown"),{onSelect:(D,c)=>j(D,c,r),size:"large",trigger:"click",options:d},{default:()=>[u(E("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[e("自定义规则")],...i})]})}return u(E("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>Z(r)},{default:()=>[e("系统规则")],...i})}}]}return(r,t)=>{const i=E("n-alert"),d=E("n-input-group"),D=E("n-card"),c=E("n-data-table");return S(),V("main",Ku,[f("div",ju,[f("div",Zu,[t[10]||(t[10]=f("h3",{class:G("text-base font-semibold leading-7")},[f("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r diff --git a/module_src/webroot/assets/EmbeddedWebView-DJOZ5Nq_.js b/module_src/webroot/assets/EmbeddedWebView-LKF5z37A.js similarity index 93% rename from module_src/webroot/assets/EmbeddedWebView-DJOZ5Nq_.js rename to module_src/webroot/assets/EmbeddedWebView-LKF5z37A.js index 2bb3f793..f9509636 100644 --- a/module_src/webroot/assets/EmbeddedWebView-DJOZ5Nq_.js +++ b/module_src/webroot/assets/EmbeddedWebView-LKF5z37A.js @@ -1 +1 @@ -import{d as f,r as a,o as _,w as m,a as v,c as w,b as p,u as h,e as b,f as g,g as l,_ as x}from"./index-DpnWTcH_.js";const y={class:"webview-container"},B=["src"],E=f({__name:"EmbeddedWebView",setup(R){const r=h(),s=a(r.query.url),e=a(null),d=()=>{console.log("网页加载完成"),u.value=!1,c()},c=()=>{var o;if(e.value){const n=e.value.contentDocument||((o=e.value.contentWindow)==null?void 0:o.document);if(n){const t=n.body.scrollHeight;e.value.style.height=`${t}px`}}},i=()=>{c()};_(()=>{window.addEventListener("resize",i)}),m(()=>r.query.url,o=>{s.value=o,e.value&&(e.value.src=s.value)});const u=a(!0);return v(()=>{window.removeEventListener("resize",i)}),(o,n)=>{const t=b("n-spin");return g(),w(t,{show:u.value},{default:p(()=>[l("div",y,[l("iframe",{ref_key:"iframeRef",ref:e,src:s.value,frameborder:"0",class:"webview",onLoad:d},null,40,B)])]),_:1},8,["show"])}}}),z=x(E,[["__scopeId","data-v-f817c96f"]]);export{z as default}; +import{d as f,r as a,o as _,w as m,a as v,c as w,b as p,u as h,e as b,f as g,g as l,_ as x}from"./index-BJI37F2h.js";const y={class:"webview-container"},B=["src"],E=f({__name:"EmbeddedWebView",setup(R){const r=h(),s=a(r.query.url),e=a(null),d=()=>{console.log("网页加载完成"),u.value=!1,c()},c=()=>{var o;if(e.value){const n=e.value.contentDocument||((o=e.value.contentWindow)==null?void 0:o.document);if(n){const t=n.body.scrollHeight;e.value.style.height=`${t}px`}}},i=()=>{c()};_(()=>{window.addEventListener("resize",i)}),m(()=>r.query.url,o=>{s.value=o,e.value&&(e.value.src=s.value)});const u=a(!0);return v(()=>{window.removeEventListener("resize",i)}),(o,n)=>{const t=b("n-spin");return g(),w(t,{show:u.value},{default:p(()=>[l("div",y,[l("iframe",{ref_key:"iframeRef",ref:e,src:s.value,frameborder:"0",class:"webview",onLoad:d},null,40,B)])]),_:1},8,["show"])}}}),z=x(E,[["__scopeId","data-v-f817c96f"]]);export{z as default}; diff --git a/module_src/webroot/assets/GameBooster-DIBGjIgV.js b/module_src/webroot/assets/GameBooster-SDT375Ma.js similarity index 99% rename from module_src/webroot/assets/GameBooster-DIBGjIgV.js rename to module_src/webroot/assets/GameBooster-SDT375Ma.js index 01710538..636038ce 100644 --- a/module_src/webroot/assets/GameBooster-DIBGjIgV.js +++ b/module_src/webroot/assets/GameBooster-SDT375Ma.js @@ -1,4 +1,4 @@ -import{F as J,G as ce,H as ge,I as me,J as Fe,f as M,k as H,g as F,K as Ee,d as X,L as ve,r as C,h as ee,M as fe,A as ye,i as te,j as ue,e as c,N as Ce,O as Ae,P as Be,m as t,b as a,s as l,l as u,Q,c as Y,p as P,R as oe,y as ae,z as ne,S as _e,T as be,U as De,V as ke,W as Te,n as Z,X as we,Y as _,Z as k,$ as Re,a0 as Oe,a1 as Ge,a2 as xe,a3 as q,a4 as Ie,a5 as Me,a6 as Se,a7 as Ne,q as Ve,a8 as ze,a9 as Le,aa as Ue,ab as W,ac as $e,ad as he,ae as We,af as Ye}from"./index-DpnWTcH_.js";function Pe(g,s,p,r){return J(g,function(E,v,G){s(r,p(E),v,G)}),r}function He(g,s){return function(p,r){return Pe(p,g,s(r),{})}}var Ke=Object.prototype,je=Ke.toString,le=He(function(g,s,p){s!=null&&typeof s.toString!="function"&&(s=je.call(s)),g[s]=p},ce(ge));function z(g,s){var p={};return s=me(s),J(g,function(r,E,v){Fe(p,s(r,E,v),r)}),p}function Qe(g,s){return M(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"fill-rule":"evenodd",d:"M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 0 1 .75.75c0 5.056-2.383 9.555-6.084 12.436A6.75 6.75 0 0 1 9.75 22.5a.75.75 0 0 1-.75-.75v-4.131A15.838 15.838 0 0 1 6.382 15H2.25a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 7.815-6.666ZM15 6.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z","clip-rule":"evenodd"}),F("path",{d:"M5.26 17.242a.75.75 0 1 0-.897-1.203 5.243 5.243 0 0 0-2.05 5.022.75.75 0 0 0 .625.627 5.243 5.243 0 0 0 5.022-2.051.75.75 0 1 0-1.202-.897 3.744 3.744 0 0 1-3.008 1.51c0-1.23.592-2.323 1.51-3.008Z"})])}const Ze=le({RATIO_FULLSCREEN:"0.0",RATIO_16_TO_9:"1.7777778",RATIO_4_TO_3:"1.3333333",RATIO_21_TO_9:"2.3333333",RATIO_32_TO_9:"3.5555556"}),qe={RATIO_FULLSCREEN:{type:"info",name:"全屏",color:{}},RATIO_16_TO_9:{type:"error",name:"16:9",color:{}},RATIO_4_TO_3:{type:"success",name:"4:3",color:{}},RATIO_21_TO_9:{type:"warning",name:"21:9",color:{}},RATIO_32_TO_9:{type:"primary",name:"32:9",color:{color:"rgba(255, 105, 180, 0.1)",borderColor:"rgba(255, 105, 180, 0.3)",textColor:"#ff69b4"}}},re=g=>{console.log(g,"inputArr");const s=Ee(g);let p=Object.entries(Ze).map(([r,E])=>{const v=qe[E];return{label:v.name,value:r,type:v.type,color:v.color}});return s&&(p=[...p,...s]),p},Je=le({GRAVITY_CENTER:17,GRAVITY_TOP:48,GRAVITY_BOTTOM:80}),Xe={GRAVITY_CENTER:{color:"info",name:"居中显示"},GRAVITY_TOP:{color:"success",name:"居顶显示"},GRAVITY_BOTTOM:{color:"error",name:"居底显示"}},se=()=>Object.entries(Je).map(([g,s])=>{const p=Xe[s];return{label:p.name,value:g,color:p.color}}),et=X({__name:"GameBoosterAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(g,{expose:s,emit:p}){ve(),C(null),C(null);const r=g,E=C(!1),v=re([{label:"自定义",value:"custom",type:"primary",color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}}]),G=z(v,e=>e.value),f=se(),K=z(f,e=>e.value),d=ee();fe(),ye();const L=te(()=>({theme:d.isDarkMode?ae:ne})),{message:U,modal:b}=ue(["message","modal"],{configProviderProps:L});let V,S;const N=C({openDrawer:e=>new Promise((o,i)=>{if(r.type==="update"&&!e){i(new Error("更新模式下必须传入初始化参数")),U.error("初始化参数不能为空");return}r.type==="update"&&(x.value=(e==null?void 0:e.packageName)||"",T.value=(e==null?void 0:e.appName)||"",e!=null&&e.gameGravity&&(D.value=K[e.gameGravity]),e!=null&&e.gameRatio&&(G[e.gameRatio]?(y.value=G[e.gameRatio],B.value=e.gameRatio):(y.value=G.custom,B.value=e.gameRatio))),V=o,S=i,E.value=!0}),closeDrawer:()=>{E.value=!1,S("Drawer closed without submission")}}),T=C(""),x=C(""),D=C(f[0]),y=C(v[0]),B=C(""),$=(e,o)=>{if(o.value==="custom"&&!d.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO){b.create({title:"无使用权限",type:"warning",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封!")]),t("p",null,[l("如仍然坚持使用自定义游戏比例,请前往模块设置导入激活口令激活自定义游戏比例:")]),t("p",null,[l("eNqrVnJ39HWNd/L3Dw5xDYp3Dg0O8feND3IM8fRXsiopKk2tBQC2Pwrm")])])});return}y.value=o,o.value==="custom"?B.value="":B.value=o.value},I=(e,o)=>{D.value=o},h=async()=>{if(!B.value){b.create({title:"游戏显示比例不能为空",type:"error",preset:"dialog",content:()=>t("p",null,[l("噫?游戏显示比例不能为空(敲")])});return}n.value=!0;const e=()=>{n.value=!1,E.value=!1},o=()=>{n.value=!1},i={appName:T.value,packageName:x.value,gameGravity:D.value.value,gameRatio:B.value,loadingCallback:o,closeCallback:e};b.create({title:"确认调整游戏显示布局吗?",type:"warning",preset:"dialog",content:()=>t("p",null,[l("调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。确定要继续吗?")]),positiveText:"确定调整",negativeText:"我再想想",onPositiveClick:async()=>{V(i),o(),e()},onNegativeClick(){o()},onMaskClick(){o()},onClose(){o()}})},n=C(!1);return s({openDrawer:N.value.openDrawer}),(e,o)=>{const i=c("n-input-group-label"),w=c("n-input"),R=c("n-input-group"),O=c("n-button"),A=c("n-dropdown"),ie=c("n-alert"),j=c("n-card"),de=c("n-drawer-content"),pe=c("n-drawer");return M(),H(oe,null,[Ce(e.$slots,"default",Ae(Be({openDrawer:N.value.openDrawer}))),t(pe,{show:E.value,"onUpdate:show":o[7]||(o[7]=m=>E.value=m),width:u(d).windowWidth>=640?"450px":"100%",placement:"right"},{default:a(()=>[t(de,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:r.title,closable:""},{footer:a(()=>[t(O,{type:"info",loading:n.value,"onUpdate:loading":o[5]||(o[5]=m=>n.value=m),onClick:o[6]||(o[6]=()=>h())},{default:a(()=>o[11]||(o[11]=[l(" 提交 ")])),_:1},8,["loading"])]),default:a(()=>[t(R,null,{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[8]||(o[8]=[l("游戏名称")])),_:1}),t(w,{size:"large",value:T.value,"onUpdate:value":o[0]||(o[0]=m=>T.value=m),readonly:!0,placeholder:"请输入游戏名称"},null,8,["value"])]),_:1}),t(R,{class:"mt-5"},{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[9]||(o[9]=[l("游戏包名")])),_:1}),t(w,{size:"large",value:x.value,"onUpdate:value":o[1]||(o[1]=m=>x.value=m),readonly:!0,placeholder:"请输入游戏包名"},null,8,["value"])]),_:1}),t(j,{bordered:!1,title:"游戏显示比例",size:"small"},{default:a(()=>[t(A,{value:y.value,"onUpdate:value":o[2]||(o[2]=m=>y.value=m),size:"large",trigger:"click",options:u(v),onSelect:$},{default:a(()=>{var m;return[t(O,{block:"",type:y.value.type,color:(m=y.value.color)==null?void 0:m.textColor,dashed:""},{default:a(()=>[l(Q(y.value.label),1)]),_:1},8,["type","color"])]}),_:1},8,["value","options"]),t(R,{class:"mt-5"},{default:a(()=>[t(w,{type:"number",ref:"currentCustomGameRatioRef",readonly:y.value.value!=="custom",value:B.value,"onUpdate:value":o[3]||(o[3]=m=>B.value=m),placeholder:"请输入游戏显示比例"},null,8,["readonly","value"])]),_:1}),y.value.value==="custom"?(M(),Y(ie,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:a(()=>o[10]||(o[10]=[F("p",null,"参考计算公式:21:9=21%9≈2.3333333",-1)])),_:1})):P("",!0)]),_:1}),t(j,{bordered:!1,title:"游戏显示位置",size:"small"},{default:a(()=>[t(A,{value:D.value,"onUpdate:value":o[4]||(o[4]=m=>D.value=m),size:"large",trigger:"click",options:u(f),onSelect:I},{default:a(()=>[t(O,{block:"",type:D.value.color,dashed:""},{default:a(()=>[l(Q(D.value.label),1)]),_:1},8,["type"])]),_:1},8,["value","options"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),tt={class:"autoui-view mb-10"},ut={class:"mt-3"},ot={class:"mb-3 px-4 sm:px-0"},at={class:"mb-3 flex flex-wrap"},nt={class:"flex flex-wrap"},lt={class:"flex flex-wrap"},st=X({__name:"GameBooster",setup(g){const s=C(null),p=h(),r=ee(),E=we();_e();const v=te(()=>({theme:r.isDarkMode?ae:ne})),{message:G,modal:f,notification:K}=ue(["message","modal","notification"],{configProviderProps:v}),d=be(),L=De(),U=re(),b=z(U,n=>n.value),V=se(),S=z(V,n=>n.value),N=ke(),T=C(null),x=async()=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}const[n,e]=await W($e());n&&f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,详细错误请查看日志~")])})},D=async()=>{f.create({title:"获取手机/平板管家",type:"info",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("如果规则无法生效,还需要安装修改版的手机/平板管家才会生效,安装后如出现崩溃等异常,推荐清空管家数据并重启设备再尝试~")]),t("p",null,[l("(Tips:需搭配核心破解并通过MT管理器安装)")]),t("p",null,[l("下载地址:https://caiyun.139.com/m/i?135CeBMHACC6p")])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CeBMHACC6p")},onNegativeClick:()=>{}})},y=()=>{E.push({name:"settings",hash:"#displayModeSettings"}).then(()=>{const n=new MutationObserver(()=>{const e=document.getElementById("displayModeSettings");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0})})},B=async(n,e)=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}if(T.value){const[o,i]=await W(T.value.openDrawer({appName:n.app_name,packageName:n.package_name,gameRatio:n.game_ratio,gameGravity:n.game_gravity}));if(o)console.log("操作取消:",o);else if(i){d.loading=!0;const[w,R]=await W(he(i.packageName,i.gameRatio,i.gameGravity));w&&(f.create({title:"更新设置失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),d.loading=!1),R&&(d.loading=!1,f.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("好耶w,已经成功配置")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("的游戏显示布局了OwO~实际生效还需要重启")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("和")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[l("平板/手机管家")])," ",l("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){We(n.package_name).then(async O=>{await d.initDefault(),f.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(O=>{f.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}}},$=async()=>{await d.initDefault()},I=Te({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:n=>{I.page=n},onUpdatePageSize:n=>{I.pageSize=n,I.page=1}});function h(){return[{title:"游戏名称",minWidth:250,key:"name",render(n,e){return t("div",null,[n.app_name&&t("p",null,[n.app_name]),n.app_name&&t("p",null,[t("span",{class:{hidden:!n.app_name}},[l("(")]),n.package_name,t("span",{class:{hidden:!n.app_name}},[l(")")])])])}},{title:"游戏显示比例",minWidth:150,key:"game_ratio",render(n,e){return b[n.game_ratio]&&b[n.game_ratio].label?t(c("n-tag"),{dashed:!0,type:b[n.game_ratio].type,color:b[n.game_ratio].color},{default:()=>[b[n.game_ratio].label]}):t(c("n-tag"),{dashed:!0,color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}},{default:()=>[l("自定义")]})}},{title:"游戏显示位置",minWidth:150,key:"game_gravity",render(n,e){return t(c("n-tag"),{dashed:!0,type:S[n.game_gravity].color},{default:()=>[S[n.game_gravity].label]})}},{title:"操作",minWidth:100,key:"setting",render(n,e){const o={icon:Ye};return t(c("n-button"),{onClick:()=>B(n),size:"small",strong:!0,dashed:!0,type:"info"},{default:()=>[l("管理")],...o})}}]}return(n,e)=>{const o=c("n-alert"),i=c("n-dropdown"),w=c("n-input-group"),R=c("n-card"),O=c("n-data-table");return M(),H(oe,null,[F("main",tt,[F("div",ut,[F("div",ot,[e[10]||(e[10]=F("h3",{class:Z("text-base font-semibold leading-7")},[F("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r +import{F as J,G as ce,H as ge,I as me,J as Fe,f as M,k as H,g as F,K as Ee,d as X,L as ve,r as C,h as ee,M as fe,A as ye,i as te,j as ue,e as c,N as Ce,O as Ae,P as Be,m as t,b as a,s as l,l as u,Q,c as Y,p as P,R as oe,y as ae,z as ne,S as _e,T as be,U as De,V as ke,W as Te,n as Z,X as we,Y as _,Z as k,$ as Re,a0 as Oe,a1 as Ge,a2 as xe,a3 as q,a4 as Ie,a5 as Me,a6 as Se,a7 as Ne,q as Ve,a8 as ze,a9 as Le,aa as Ue,ab as W,ac as $e,ad as he,ae as We,af as Ye}from"./index-BJI37F2h.js";function Pe(g,s,p,r){return J(g,function(E,v,G){s(r,p(E),v,G)}),r}function He(g,s){return function(p,r){return Pe(p,g,s(r),{})}}var Ke=Object.prototype,je=Ke.toString,le=He(function(g,s,p){s!=null&&typeof s.toString!="function"&&(s=je.call(s)),g[s]=p},ce(ge));function z(g,s){var p={};return s=me(s),J(g,function(r,E,v){Fe(p,s(r,E,v),r)}),p}function Qe(g,s){return M(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"fill-rule":"evenodd",d:"M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 0 1 .75.75c0 5.056-2.383 9.555-6.084 12.436A6.75 6.75 0 0 1 9.75 22.5a.75.75 0 0 1-.75-.75v-4.131A15.838 15.838 0 0 1 6.382 15H2.25a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 7.815-6.666ZM15 6.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z","clip-rule":"evenodd"}),F("path",{d:"M5.26 17.242a.75.75 0 1 0-.897-1.203 5.243 5.243 0 0 0-2.05 5.022.75.75 0 0 0 .625.627 5.243 5.243 0 0 0 5.022-2.051.75.75 0 1 0-1.202-.897 3.744 3.744 0 0 1-3.008 1.51c0-1.23.592-2.323 1.51-3.008Z"})])}const Ze=le({RATIO_FULLSCREEN:"0.0",RATIO_16_TO_9:"1.7777778",RATIO_4_TO_3:"1.3333333",RATIO_21_TO_9:"2.3333333",RATIO_32_TO_9:"3.5555556"}),qe={RATIO_FULLSCREEN:{type:"info",name:"全屏",color:{}},RATIO_16_TO_9:{type:"error",name:"16:9",color:{}},RATIO_4_TO_3:{type:"success",name:"4:3",color:{}},RATIO_21_TO_9:{type:"warning",name:"21:9",color:{}},RATIO_32_TO_9:{type:"primary",name:"32:9",color:{color:"rgba(255, 105, 180, 0.1)",borderColor:"rgba(255, 105, 180, 0.3)",textColor:"#ff69b4"}}},re=g=>{console.log(g,"inputArr");const s=Ee(g);let p=Object.entries(Ze).map(([r,E])=>{const v=qe[E];return{label:v.name,value:r,type:v.type,color:v.color}});return s&&(p=[...p,...s]),p},Je=le({GRAVITY_CENTER:17,GRAVITY_TOP:48,GRAVITY_BOTTOM:80}),Xe={GRAVITY_CENTER:{color:"info",name:"居中显示"},GRAVITY_TOP:{color:"success",name:"居顶显示"},GRAVITY_BOTTOM:{color:"error",name:"居底显示"}},se=()=>Object.entries(Je).map(([g,s])=>{const p=Xe[s];return{label:p.name,value:g,color:p.color}}),et=X({__name:"GameBoosterAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(g,{expose:s,emit:p}){ve(),C(null),C(null);const r=g,E=C(!1),v=re([{label:"自定义",value:"custom",type:"primary",color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}}]),G=z(v,e=>e.value),f=se(),K=z(f,e=>e.value),d=ee();fe(),ye();const L=te(()=>({theme:d.isDarkMode?ae:ne})),{message:U,modal:b}=ue(["message","modal"],{configProviderProps:L});let V,S;const N=C({openDrawer:e=>new Promise((o,i)=>{if(r.type==="update"&&!e){i(new Error("更新模式下必须传入初始化参数")),U.error("初始化参数不能为空");return}r.type==="update"&&(x.value=(e==null?void 0:e.packageName)||"",T.value=(e==null?void 0:e.appName)||"",e!=null&&e.gameGravity&&(D.value=K[e.gameGravity]),e!=null&&e.gameRatio&&(G[e.gameRatio]?(y.value=G[e.gameRatio],B.value=e.gameRatio):(y.value=G.custom,B.value=e.gameRatio))),V=o,S=i,E.value=!0}),closeDrawer:()=>{E.value=!1,S("Drawer closed without submission")}}),T=C(""),x=C(""),D=C(f[0]),y=C(v[0]),B=C(""),$=(e,o)=>{if(o.value==="custom"&&!d.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO){b.create({title:"无使用权限",type:"warning",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封!")]),t("p",null,[l("如仍然坚持使用自定义游戏比例,请前往模块设置导入激活口令激活自定义游戏比例:")]),t("p",null,[l("eNqrVnJ39HWNd/L3Dw5xDYp3Dg0O8feND3IM8fRXsiopKk2tBQC2Pwrm")])])});return}y.value=o,o.value==="custom"?B.value="":B.value=o.value},I=(e,o)=>{D.value=o},h=async()=>{if(!B.value){b.create({title:"游戏显示比例不能为空",type:"error",preset:"dialog",content:()=>t("p",null,[l("噫?游戏显示比例不能为空(敲")])});return}n.value=!0;const e=()=>{n.value=!1,E.value=!1},o=()=>{n.value=!1},i={appName:T.value,packageName:x.value,gameGravity:D.value.value,gameRatio:B.value,loadingCallback:o,closeCallback:e};b.create({title:"确认调整游戏显示布局吗?",type:"warning",preset:"dialog",content:()=>t("p",null,[l("调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。确定要继续吗?")]),positiveText:"确定调整",negativeText:"我再想想",onPositiveClick:async()=>{V(i),o(),e()},onNegativeClick(){o()},onMaskClick(){o()},onClose(){o()}})},n=C(!1);return s({openDrawer:N.value.openDrawer}),(e,o)=>{const i=c("n-input-group-label"),w=c("n-input"),R=c("n-input-group"),O=c("n-button"),A=c("n-dropdown"),ie=c("n-alert"),j=c("n-card"),de=c("n-drawer-content"),pe=c("n-drawer");return M(),H(oe,null,[Ce(e.$slots,"default",Ae(Be({openDrawer:N.value.openDrawer}))),t(pe,{show:E.value,"onUpdate:show":o[7]||(o[7]=m=>E.value=m),width:u(d).windowWidth>=640?"450px":"100%",placement:"right"},{default:a(()=>[t(de,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:r.title,closable:""},{footer:a(()=>[t(O,{type:"info",loading:n.value,"onUpdate:loading":o[5]||(o[5]=m=>n.value=m),onClick:o[6]||(o[6]=()=>h())},{default:a(()=>o[11]||(o[11]=[l(" 提交 ")])),_:1},8,["loading"])]),default:a(()=>[t(R,null,{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[8]||(o[8]=[l("游戏名称")])),_:1}),t(w,{size:"large",value:T.value,"onUpdate:value":o[0]||(o[0]=m=>T.value=m),readonly:!0,placeholder:"请输入游戏名称"},null,8,["value"])]),_:1}),t(R,{class:"mt-5"},{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[9]||(o[9]=[l("游戏包名")])),_:1}),t(w,{size:"large",value:x.value,"onUpdate:value":o[1]||(o[1]=m=>x.value=m),readonly:!0,placeholder:"请输入游戏包名"},null,8,["value"])]),_:1}),t(j,{bordered:!1,title:"游戏显示比例",size:"small"},{default:a(()=>[t(A,{value:y.value,"onUpdate:value":o[2]||(o[2]=m=>y.value=m),size:"large",trigger:"click",options:u(v),onSelect:$},{default:a(()=>{var m;return[t(O,{block:"",type:y.value.type,color:(m=y.value.color)==null?void 0:m.textColor,dashed:""},{default:a(()=>[l(Q(y.value.label),1)]),_:1},8,["type","color"])]}),_:1},8,["value","options"]),t(R,{class:"mt-5"},{default:a(()=>[t(w,{type:"number",ref:"currentCustomGameRatioRef",readonly:y.value.value!=="custom",value:B.value,"onUpdate:value":o[3]||(o[3]=m=>B.value=m),placeholder:"请输入游戏显示比例"},null,8,["readonly","value"])]),_:1}),y.value.value==="custom"?(M(),Y(ie,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:a(()=>o[10]||(o[10]=[F("p",null,"参考计算公式:21:9=21%9≈2.3333333",-1)])),_:1})):P("",!0)]),_:1}),t(j,{bordered:!1,title:"游戏显示位置",size:"small"},{default:a(()=>[t(A,{value:D.value,"onUpdate:value":o[4]||(o[4]=m=>D.value=m),size:"large",trigger:"click",options:u(f),onSelect:I},{default:a(()=>[t(O,{block:"",type:D.value.color,dashed:""},{default:a(()=>[l(Q(D.value.label),1)]),_:1},8,["type"])]),_:1},8,["value","options"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),tt={class:"autoui-view mb-10"},ut={class:"mt-3"},ot={class:"mb-3 px-4 sm:px-0"},at={class:"mb-3 flex flex-wrap"},nt={class:"flex flex-wrap"},lt={class:"flex flex-wrap"},st=X({__name:"GameBooster",setup(g){const s=C(null),p=h(),r=ee(),E=we();_e();const v=te(()=>({theme:r.isDarkMode?ae:ne})),{message:G,modal:f,notification:K}=ue(["message","modal","notification"],{configProviderProps:v}),d=be(),L=De(),U=re(),b=z(U,n=>n.value),V=se(),S=z(V,n=>n.value),N=ke(),T=C(null),x=async()=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}const[n,e]=await W($e());n&&f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,详细错误请查看日志~")])})},D=async()=>{f.create({title:"获取手机/平板管家",type:"info",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("如果规则无法生效,还需要安装修改版的手机/平板管家才会生效,安装后如出现崩溃等异常,推荐清空管家数据并重启设备再尝试~")]),t("p",null,[l("(Tips:需搭配核心破解并通过MT管理器安装)")]),t("p",null,[l("下载地址:https://caiyun.139.com/m/i?135CeBMHACC6p")])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CeBMHACC6p")},onNegativeClick:()=>{}})},y=()=>{E.push({name:"settings",hash:"#displayModeSettings"}).then(()=>{const n=new MutationObserver(()=>{const e=document.getElementById("displayModeSettings");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0})})},B=async(n,e)=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}if(T.value){const[o,i]=await W(T.value.openDrawer({appName:n.app_name,packageName:n.package_name,gameRatio:n.game_ratio,gameGravity:n.game_gravity}));if(o)console.log("操作取消:",o);else if(i){d.loading=!0;const[w,R]=await W(he(i.packageName,i.gameRatio,i.gameGravity));w&&(f.create({title:"更新设置失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),d.loading=!1),R&&(d.loading=!1,f.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("好耶w,已经成功配置")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("的游戏显示布局了OwO~实际生效还需要重启")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("和")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[l("平板/手机管家")])," ",l("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){We(n.package_name).then(async O=>{await d.initDefault(),f.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(O=>{f.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}}},$=async()=>{await d.initDefault()},I=Te({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:n=>{I.page=n},onUpdatePageSize:n=>{I.pageSize=n,I.page=1}});function h(){return[{title:"游戏名称",minWidth:250,key:"name",render(n,e){return t("div",null,[n.app_name&&t("p",null,[n.app_name]),n.app_name&&t("p",null,[t("span",{class:{hidden:!n.app_name}},[l("(")]),n.package_name,t("span",{class:{hidden:!n.app_name}},[l(")")])])])}},{title:"游戏显示比例",minWidth:150,key:"game_ratio",render(n,e){return b[n.game_ratio]&&b[n.game_ratio].label?t(c("n-tag"),{dashed:!0,type:b[n.game_ratio].type,color:b[n.game_ratio].color},{default:()=>[b[n.game_ratio].label]}):t(c("n-tag"),{dashed:!0,color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}},{default:()=>[l("自定义")]})}},{title:"游戏显示位置",minWidth:150,key:"game_gravity",render(n,e){return t(c("n-tag"),{dashed:!0,type:S[n.game_gravity].color},{default:()=>[S[n.game_gravity].label]})}},{title:"操作",minWidth:100,key:"setting",render(n,e){const o={icon:Ye};return t(c("n-button"),{onClick:()=>B(n),size:"small",strong:!0,dashed:!0,type:"info"},{default:()=>[l("管理")],...o})}}]}return(n,e)=>{const o=c("n-alert"),i=c("n-dropdown"),w=c("n-input-group"),R=c("n-card"),O=c("n-data-table");return M(),H(oe,null,[F("main",tt,[F("div",ut,[F("div",ot,[e[10]||(e[10]=F("h3",{class:Z("text-base font-semibold leading-7")},[F("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r diff --git a/module_src/webroot/assets/GameTurboConfig-D0TpXb5z.js b/module_src/webroot/assets/GameTurboConfig-CR-HzL6D.js similarity index 96% rename from module_src/webroot/assets/GameTurboConfig-D0TpXb5z.js rename to module_src/webroot/assets/GameTurboConfig-CR-HzL6D.js index ed28ede3..5b4562a5 100644 --- a/module_src/webroot/assets/GameTurboConfig-D0TpXb5z.js +++ b/module_src/webroot/assets/GameTurboConfig-CR-HzL6D.js @@ -1 +1 @@ -import{ag as _,ah as f,d as x,A as b,h,i as v,j as y,o as k,k as w,g as t,n as m,l as u,m as a,b as r,e as g,f as C,s as d,y as M,z as P}from"./index-DpnWTcH_.js";async function D(n){return _(new Promise(async(o,i)=>{{const{errno:l,stdout:s,stderr:e}=await f(`/data/adb/modules/MIUI_MagicWindow+/common/utils/sq ${n}`);l?i(e):o(s)}}),`sq ${n}`)}const S={class:"game-turbo-config"},T={class:"mt-5"},$={class:"px-4 sm:px-0"},q={class:"flex"},B=x({__name:"GameTurboConfig",setup(n){b();const o=h(),i=v(()=>({theme:o.isDarkMode?M:P}));y(["message"],{configProviderProps:i});function l(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/'/g,"\\'")}return k(()=>{D(l('@teg_config | .rules | .rule_content | sort_by(.rule_version-) | where(.rule_module == "booster_config") | .[0]')).then(s=>{console.log(s,"res")},s=>{console.log(s,"err")})}),(s,e)=>{const c=g("n-button"),p=g("n-card");return C(),w("div",S,[t("div",T,[t("div",$,[t("h3",{class:m(`text-base font-semibold leading-7 ${u(o).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏云控配置 ",2),t("p",{class:m(`mt-1 max-w-2xl text-sm leading-6 ${u(o).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 在这里可以查看小米的部分云控节点配置 ",2)]),a(p,{bordered:!0,class:"mt-3",size:"small"},{default:r(()=>[t("div",q,[a(c,{class:"mr-3",type:"info"},{default:r(()=>e[0]||(e[0]=[d("测试按钮1")])),_:1}),a(c,{class:"mr-3",type:"error"},{default:r(()=>e[1]||(e[1]=[d("测试按钮2")])),_:1}),a(c,{class:"mr-3",type:"success"},{default:r(()=>e[2]||(e[2]=[d("测试按钮3")])),_:1})]),e[3]||(e[3]=t("div",null,null,-1))]),_:1})])])}}});export{B as default}; +import{ag as _,ah as f,d as x,A as b,h,i as v,j as y,o as k,k as w,g as t,n as m,l as u,m as a,b as r,e as g,f as C,s as d,y as M,z as P}from"./index-BJI37F2h.js";async function D(n){return _(new Promise(async(o,i)=>{{const{errno:l,stdout:s,stderr:e}=await f(`/data/adb/modules/MIUI_MagicWindow+/common/utils/sq ${n}`);l?i(e):o(s)}}),`sq ${n}`)}const S={class:"game-turbo-config"},T={class:"mt-5"},$={class:"px-4 sm:px-0"},q={class:"flex"},B=x({__name:"GameTurboConfig",setup(n){b();const o=h(),i=v(()=>({theme:o.isDarkMode?M:P}));y(["message"],{configProviderProps:i});function l(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/'/g,"\\'")}return k(()=>{D(l('@teg_config | .rules | .rule_content | sort_by(.rule_version-) | where(.rule_module == "booster_config") | .[0]')).then(s=>{console.log(s,"res")},s=>{console.log(s,"err")})}),(s,e)=>{const c=g("n-button"),p=g("n-card");return C(),w("div",S,[t("div",T,[t("div",$,[t("h3",{class:m(`text-base font-semibold leading-7 ${u(o).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏云控配置 ",2),t("p",{class:m(`mt-1 max-w-2xl text-sm leading-6 ${u(o).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 在这里可以查看小米的部分云控节点配置 ",2)]),a(p,{bordered:!0,class:"mt-3",size:"small"},{default:r(()=>[t("div",q,[a(c,{class:"mr-3",type:"info"},{default:r(()=>e[0]||(e[0]=[d("测试按钮1")])),_:1}),a(c,{class:"mr-3",type:"error"},{default:r(()=>e[1]||(e[1]=[d("测试按钮2")])),_:1}),a(c,{class:"mr-3",type:"success"},{default:r(()=>e[2]||(e[2]=[d("测试按钮3")])),_:1})]),e[3]||(e[3]=t("div",null,null,-1))]),_:1})])])}}});export{B as default}; diff --git a/module_src/webroot/assets/HappyNewYearEgg-_tB5Tfdi.js b/module_src/webroot/assets/HappyNewYearEgg-BbjJ5Ka4.js similarity index 97% rename from module_src/webroot/assets/HappyNewYearEgg-_tB5Tfdi.js rename to module_src/webroot/assets/HappyNewYearEgg-BbjJ5Ka4.js index a6101da2..7d9b6df2 100644 --- a/module_src/webroot/assets/HappyNewYearEgg-_tB5Tfdi.js +++ b/module_src/webroot/assets/HappyNewYearEgg-BbjJ5Ka4.js @@ -1 +1 @@ -import{d as p,h as e,i as n,j as o,k as l,aI as c,f as d,y as m,z as r}from"./index-DpnWTcH_.js";const i="/images/happy_new_year_banner.jpg",f={class:"mt-5 bg-[#313569]"},E=p({__name:"HappyNewYearEgg",setup(x){const t=e(),a=n(()=>({theme:t.isDarkMode?m:r}));return o(["message","modal","notification"],{configProviderProps:a}),(b,s)=>(d(),l("div",f,s[0]||(s[0]=[c('

年从节换,新岁已至,转眼已经迎来了「2025」年。

「2024年3月31日」,我正式接手「完美横屏应用计划」

至今,新版「完美横屏应用计划」共陪伴了大家「246」天。

诞生了「2907」个提交和「683」个版本。

你们对「完美横屏应用计划」的认可,也是我维护下去的动力!

不管何时何地,「遇见你们都是我最美好的事」,感谢大家的一路相伴。

「新年胜旧年」,多喜乐,长安宁。

年年皆胜意,岁岁皆欢愉,祝大家「新年快乐」

十分感谢所有给「完美横屏应用计划」打赏给予认可的酷友。

最后感谢「柚稚的孩纸」「Kirara」「御坂初琴」给我提供了不少的帮助!

「2025年1月1日」 By 做梦书 致辞

',2)])))}});export{E as default}; +import{d as p,h as e,i as n,j as o,k as l,aI as c,f as d,y as m,z as r}from"./index-BJI37F2h.js";const i="/images/happy_new_year_banner.jpg",f={class:"mt-5 bg-[#313569]"},E=p({__name:"HappyNewYearEgg",setup(x){const t=e(),a=n(()=>({theme:t.isDarkMode?m:r}));return o(["message","modal","notification"],{configProviderProps:a}),(b,s)=>(d(),l("div",f,s[0]||(s[0]=[c('

年从节换,新岁已至,转眼已经迎来了「2025」年。

「2024年3月31日」,我正式接手「完美横屏应用计划」

至今,新版「完美横屏应用计划」共陪伴了大家「246」天。

诞生了「2907」个提交和「683」个版本。

你们对「完美横屏应用计划」的认可,也是我维护下去的动力!

不管何时何地,「遇见你们都是我最美好的事」,感谢大家的一路相伴。

「新年胜旧年」,多喜乐,长安宁。

年年皆胜意,岁岁皆欢愉,祝大家「新年快乐」

十分感谢所有给「完美横屏应用计划」打赏给予认可的酷友。

最后感谢「柚稚的孩纸」「Kirara」「御坂初琴」给我提供了不少的帮助!

「2025年1月1日」 By 做梦书 致辞

',2)])))}});export{E as default}; diff --git a/module_src/webroot/assets/LogView-BiH1wBQ5.js b/module_src/webroot/assets/LogView-D27DD6zV.js similarity index 99% rename from module_src/webroot/assets/LogView-BiH1wBQ5.js rename to module_src/webroot/assets/LogView-D27DD6zV.js index 0d3bfd78..f411b5f3 100644 --- a/module_src/webroot/assets/LogView-BiH1wBQ5.js +++ b/module_src/webroot/assets/LogView-D27DD6zV.js @@ -1,2 +1,2 @@ -import{f as se,k as ie,g as A,d as ct,A as at,h as lt,i as ut,j as ft,r as gt,o as ht,B as dt,n as fe,l as m,m as N,b as C,e as ee,s as $,C as pt,y as bt,z as Et,D as _t,E as wt}from"./index-DpnWTcH_.js";function xt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Mt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function yt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})])}function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ie(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const s=e[t],u=typeof s;(u==="object"||u==="function")&&!Object.isFrozen(s)&&Ie(s)}),e}class Se{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Be(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function j(e,...t){const s=Object.create(null);for(const u in e)s[u]=e[u];return t.forEach(function(u){for(const b in u)s[b]=u[b]}),s}const Rt="",ke=e=>!!e.scope,St=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${t}${s.shift()}`,...s.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class kt{constructor(t,s){this.buffer="",this.classPrefix=s.classPrefix,t.walk(this)}addText(t){this.buffer+=Be(t)}openNode(t){if(!ke(t))return;const s=St(t.scope,{prefix:this.classPrefix});this.span(s)}closeNode(t){ke(t)&&(this.buffer+=Rt)}value(){return this.buffer}span(t){this.buffer+=``}}const Ne=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class he{constructor(){this.rootNode=Ne(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const s=Ne({scope:t});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,s){return typeof s=="string"?t.addText(s):s.children&&(t.openNode(s),s.children.forEach(u=>this._walk(t,u)),t.closeNode(s)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(s=>typeof s=="string")?t.children=[t.children.join("")]:t.children.forEach(s=>{he._collapse(s)}))}}class Nt extends he{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,s){const u=t.root;s&&(u.scope=`language:${s}`),this.add(u)}toHTML(){return new kt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function X(e){return e?typeof e=="string"?e:e.source:null}function Le(e){return F("(?=",e,")")}function vt(e){return F("(?:",e,")*")}function At(e){return F("(?:",e,")?")}function F(...e){return e.map(s=>X(s)).join("")}function Tt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function de(...e){return"("+(Tt(e).capture?"":"?:")+e.map(u=>X(u)).join("|")+")"}function me(e){return new RegExp(e.toString()+"|").exec("").length-1}function Dt(e,t){const s=e&&e.exec(t);return s&&s.index===0}const Ct=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pe(e,{joinWith:t}){let s=0;return e.map(u=>{s+=1;const b=s;let _=X(u),o="";for(;_.length>0;){const r=Ct.exec(_);if(!r){o+=_;break}o+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?o+="\\"+String(Number(r[1])+b):(o+=r[0],r[0]==="("&&s++)}return o}).map(u=>`(${u})`).join(t)}const It=/\b\B/,je="[a-zA-Z]\\w*",be="[a-zA-Z_]\\w*",Pe="\\b\\d+(\\.\\d+)?",He="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$e="\\b(0b[01]+)",Bt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Lt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=F(t,/.*\b/,e.binary,/\b.*/)),j({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(s,u)=>{s.index!==0&&u.ignoreMatch()}},e)},V={begin:"\\\\[\\s\\S]",relevance:0},mt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},Pt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(e,t,s={}){const u=j({scope:"comment",begin:e,end:t,contains:[]},s);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=de("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:F(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Ht=re("//","$"),$t=re("/\\*","\\*/"),Ut=re("#","$"),Ft={scope:"number",begin:Pe,relevance:0},Gt={scope:"number",begin:He,relevance:0},Wt={scope:"number",begin:$e,relevance:0},zt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},Kt={scope:"title",begin:je,relevance:0},Xt={scope:"title",begin:be,relevance:0},Vt={begin:"\\.\\s*"+be,relevance:0},Zt=function(e){return Object.assign(e,{"on:begin":(t,s)=>{s.data._beginMatch=t[1]},"on:end":(t,s)=>{s.data._beginMatch!==t[1]&&s.ignoreMatch()}})};var te=Object.freeze({__proto__:null,APOS_STRING_MODE:mt,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:Wt,BINARY_NUMBER_RE:$e,COMMENT:re,C_BLOCK_COMMENT_MODE:$t,C_LINE_COMMENT_MODE:Ht,C_NUMBER_MODE:Gt,C_NUMBER_RE:He,END_SAME_AS_BEGIN:Zt,HASH_COMMENT_MODE:Ut,IDENT_RE:je,MATCH_NOTHING_RE:It,METHOD_GUARD:Vt,NUMBER_MODE:Ft,NUMBER_RE:Pe,PHRASAL_WORDS_MODE:Pt,QUOTE_STRING_MODE:jt,REGEXP_MODE:zt,RE_STARTERS_RE:Bt,SHEBANG:Lt,TITLE_MODE:Kt,UNDERSCORE_IDENT_RE:be,UNDERSCORE_TITLE_MODE:Xt});function Yt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Jt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function qt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Qt(e,t){Array.isArray(e.illegal)&&(e.illegal=de(...e.illegal))}function en(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function tn(e,t){e.relevance===void 0&&(e.relevance=1)}const nn=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=s.keywords,e.begin=F(s.beforeMatch,Le(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},sn=["of","and","for","in","not","or","if","then","parent","list","value"],rn="keyword";function Ue(e,t,s=rn){const u=Object.create(null);return typeof e=="string"?b(s,e.split(" ")):Array.isArray(e)?b(s,e):Object.keys(e).forEach(function(_){Object.assign(u,Ue(e[_],t,_))}),u;function b(_,o){t&&(o=o.map(r=>r.toLowerCase())),o.forEach(function(r){const l=r.split("|");u[l[0]]=[_,on(l[0],l[1])]})}}function on(e,t){return t?Number(t):cn(e)?0:1}function cn(e){return sn.includes(e.toLowerCase())}const ve={},U=e=>{console.error(e)},Ae=(e,...t)=>{console.log(`WARN: ${e}`,...t)},W=(e,t)=>{ve[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ve[`${e}/${t}`]=!0)},ne=new Error;function Fe(e,t,{key:s}){let u=0;const b=e[s],_={},o={};for(let r=1;r<=t.length;r++)o[r+u]=b[r],_[r+u]=!0,u+=me(t[r-1]);e[s]=o,e[s]._emit=_,e[s]._multi=!0}function an(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw U("beginScope must be object"),ne;Fe(e,e.begin,{key:"beginScope"}),e.begin=pe(e.begin,{joinWith:""})}}function ln(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ne;if(typeof e.endScope!="object"||e.endScope===null)throw U("endScope must be object"),ne;Fe(e,e.end,{key:"endScope"}),e.end=pe(e.end,{joinWith:""})}}function un(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function fn(e){un(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),an(e),ln(e)}function gn(e){function t(o,r){return new RegExp(X(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=me(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(pe(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const M=l.findIndex((P,R)=>R>0&&P!==void 0),x=this.matchIndexes[M];return l.splice(0,M),Object.assign(l,x)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new s;return this.rules.slice(r).forEach(([M,x])=>l.addRule(M,x)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let M=l.exec(r);if(this.resumingScanAtSamePosition()&&!(M&&M.index===this.lastIndex)){const x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,M=x.exec(r)}return M&&(this.regexIndex+=M.position+1,this.regexIndex===this.count&&this.considerAll()),M}}function b(o){const r=new u;return o.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&r.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&r.addRule(o.illegal,{type:"illegal"}),r}function _(o,r){const l=o;if(o.isCompiled)return l;[Jt,en,fn,nn].forEach(x=>x(o,r)),e.compilerExtensions.forEach(x=>x(o,r)),o.__beforeBegin=null,[qt,Qt,tn].forEach(x=>x(o,r)),o.isCompiled=!0;let M=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),M=o.keywords.$pattern,delete o.keywords.$pattern),M=M||/\w+/,o.keywords&&(o.keywords=Ue(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(M,!0),r&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=X(l.end)||"",o.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+r.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(x){return hn(x==="self"?o:x)})),o.contains.forEach(function(x){_(x,l)}),o.starts&&_(o.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=j(e.classNameAliases||{}),_(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function hn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return j(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ge(e)?j(e,{starts:e.starts?j(e.starts):null}):Object.isFrozen(e)?j(e):e}var dn="11.10.0";class pn extends Error{constructor(t,s){super(t),this.name="HTMLInjectionError",this.html=s}}const ge=Be,Te=j,De=Symbol("nomatch"),bn=7,We=function(e){const t=Object.create(null),s=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Nt};function l(n){return r.noHighlightRe.test(n)}function M(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const p=B(h[1]);return p||(Ae(_.replace("{}",h[1])),Ae("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||B(p))}function x(n,a,h){let p="",y="";typeof a=="object"?(p=n,h=a.ignoreIllegals,y=a.language):(W("10.7.0","highlight(lang, code, ...args) has been deprecated."),W("10.7.0",`Please use highlight(code, options) instead. +import{f as se,k as ie,g as A,d as ct,A as at,h as lt,i as ut,j as ft,r as gt,o as ht,B as dt,n as fe,l as m,m as N,b as C,e as ee,s as $,C as pt,y as bt,z as Et,D as _t,E as wt}from"./index-BJI37F2h.js";function xt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Mt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function yt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})])}function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ie(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const s=e[t],u=typeof s;(u==="object"||u==="function")&&!Object.isFrozen(s)&&Ie(s)}),e}class Se{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Be(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function j(e,...t){const s=Object.create(null);for(const u in e)s[u]=e[u];return t.forEach(function(u){for(const b in u)s[b]=u[b]}),s}const Rt="",ke=e=>!!e.scope,St=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${t}${s.shift()}`,...s.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class kt{constructor(t,s){this.buffer="",this.classPrefix=s.classPrefix,t.walk(this)}addText(t){this.buffer+=Be(t)}openNode(t){if(!ke(t))return;const s=St(t.scope,{prefix:this.classPrefix});this.span(s)}closeNode(t){ke(t)&&(this.buffer+=Rt)}value(){return this.buffer}span(t){this.buffer+=``}}const Ne=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class he{constructor(){this.rootNode=Ne(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const s=Ne({scope:t});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,s){return typeof s=="string"?t.addText(s):s.children&&(t.openNode(s),s.children.forEach(u=>this._walk(t,u)),t.closeNode(s)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(s=>typeof s=="string")?t.children=[t.children.join("")]:t.children.forEach(s=>{he._collapse(s)}))}}class Nt extends he{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,s){const u=t.root;s&&(u.scope=`language:${s}`),this.add(u)}toHTML(){return new kt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function X(e){return e?typeof e=="string"?e:e.source:null}function Le(e){return F("(?=",e,")")}function vt(e){return F("(?:",e,")*")}function At(e){return F("(?:",e,")?")}function F(...e){return e.map(s=>X(s)).join("")}function Tt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function de(...e){return"("+(Tt(e).capture?"":"?:")+e.map(u=>X(u)).join("|")+")"}function me(e){return new RegExp(e.toString()+"|").exec("").length-1}function Dt(e,t){const s=e&&e.exec(t);return s&&s.index===0}const Ct=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pe(e,{joinWith:t}){let s=0;return e.map(u=>{s+=1;const b=s;let _=X(u),o="";for(;_.length>0;){const r=Ct.exec(_);if(!r){o+=_;break}o+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?o+="\\"+String(Number(r[1])+b):(o+=r[0],r[0]==="("&&s++)}return o}).map(u=>`(${u})`).join(t)}const It=/\b\B/,je="[a-zA-Z]\\w*",be="[a-zA-Z_]\\w*",Pe="\\b\\d+(\\.\\d+)?",He="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$e="\\b(0b[01]+)",Bt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Lt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=F(t,/.*\b/,e.binary,/\b.*/)),j({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(s,u)=>{s.index!==0&&u.ignoreMatch()}},e)},V={begin:"\\\\[\\s\\S]",relevance:0},mt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},Pt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(e,t,s={}){const u=j({scope:"comment",begin:e,end:t,contains:[]},s);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=de("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:F(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Ht=re("//","$"),$t=re("/\\*","\\*/"),Ut=re("#","$"),Ft={scope:"number",begin:Pe,relevance:0},Gt={scope:"number",begin:He,relevance:0},Wt={scope:"number",begin:$e,relevance:0},zt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},Kt={scope:"title",begin:je,relevance:0},Xt={scope:"title",begin:be,relevance:0},Vt={begin:"\\.\\s*"+be,relevance:0},Zt=function(e){return Object.assign(e,{"on:begin":(t,s)=>{s.data._beginMatch=t[1]},"on:end":(t,s)=>{s.data._beginMatch!==t[1]&&s.ignoreMatch()}})};var te=Object.freeze({__proto__:null,APOS_STRING_MODE:mt,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:Wt,BINARY_NUMBER_RE:$e,COMMENT:re,C_BLOCK_COMMENT_MODE:$t,C_LINE_COMMENT_MODE:Ht,C_NUMBER_MODE:Gt,C_NUMBER_RE:He,END_SAME_AS_BEGIN:Zt,HASH_COMMENT_MODE:Ut,IDENT_RE:je,MATCH_NOTHING_RE:It,METHOD_GUARD:Vt,NUMBER_MODE:Ft,NUMBER_RE:Pe,PHRASAL_WORDS_MODE:Pt,QUOTE_STRING_MODE:jt,REGEXP_MODE:zt,RE_STARTERS_RE:Bt,SHEBANG:Lt,TITLE_MODE:Kt,UNDERSCORE_IDENT_RE:be,UNDERSCORE_TITLE_MODE:Xt});function Yt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Jt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function qt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Qt(e,t){Array.isArray(e.illegal)&&(e.illegal=de(...e.illegal))}function en(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function tn(e,t){e.relevance===void 0&&(e.relevance=1)}const nn=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=s.keywords,e.begin=F(s.beforeMatch,Le(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},sn=["of","and","for","in","not","or","if","then","parent","list","value"],rn="keyword";function Ue(e,t,s=rn){const u=Object.create(null);return typeof e=="string"?b(s,e.split(" ")):Array.isArray(e)?b(s,e):Object.keys(e).forEach(function(_){Object.assign(u,Ue(e[_],t,_))}),u;function b(_,o){t&&(o=o.map(r=>r.toLowerCase())),o.forEach(function(r){const l=r.split("|");u[l[0]]=[_,on(l[0],l[1])]})}}function on(e,t){return t?Number(t):cn(e)?0:1}function cn(e){return sn.includes(e.toLowerCase())}const ve={},U=e=>{console.error(e)},Ae=(e,...t)=>{console.log(`WARN: ${e}`,...t)},W=(e,t)=>{ve[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ve[`${e}/${t}`]=!0)},ne=new Error;function Fe(e,t,{key:s}){let u=0;const b=e[s],_={},o={};for(let r=1;r<=t.length;r++)o[r+u]=b[r],_[r+u]=!0,u+=me(t[r-1]);e[s]=o,e[s]._emit=_,e[s]._multi=!0}function an(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw U("beginScope must be object"),ne;Fe(e,e.begin,{key:"beginScope"}),e.begin=pe(e.begin,{joinWith:""})}}function ln(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ne;if(typeof e.endScope!="object"||e.endScope===null)throw U("endScope must be object"),ne;Fe(e,e.end,{key:"endScope"}),e.end=pe(e.end,{joinWith:""})}}function un(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function fn(e){un(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),an(e),ln(e)}function gn(e){function t(o,r){return new RegExp(X(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=me(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(pe(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const M=l.findIndex((P,R)=>R>0&&P!==void 0),x=this.matchIndexes[M];return l.splice(0,M),Object.assign(l,x)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new s;return this.rules.slice(r).forEach(([M,x])=>l.addRule(M,x)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let M=l.exec(r);if(this.resumingScanAtSamePosition()&&!(M&&M.index===this.lastIndex)){const x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,M=x.exec(r)}return M&&(this.regexIndex+=M.position+1,this.regexIndex===this.count&&this.considerAll()),M}}function b(o){const r=new u;return o.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&r.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&r.addRule(o.illegal,{type:"illegal"}),r}function _(o,r){const l=o;if(o.isCompiled)return l;[Jt,en,fn,nn].forEach(x=>x(o,r)),e.compilerExtensions.forEach(x=>x(o,r)),o.__beforeBegin=null,[qt,Qt,tn].forEach(x=>x(o,r)),o.isCompiled=!0;let M=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),M=o.keywords.$pattern,delete o.keywords.$pattern),M=M||/\w+/,o.keywords&&(o.keywords=Ue(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(M,!0),r&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=X(l.end)||"",o.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+r.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(x){return hn(x==="self"?o:x)})),o.contains.forEach(function(x){_(x,l)}),o.starts&&_(o.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=j(e.classNameAliases||{}),_(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function hn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return j(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ge(e)?j(e,{starts:e.starts?j(e.starts):null}):Object.isFrozen(e)?j(e):e}var dn="11.10.0";class pn extends Error{constructor(t,s){super(t),this.name="HTMLInjectionError",this.html=s}}const ge=Be,Te=j,De=Symbol("nomatch"),bn=7,We=function(e){const t=Object.create(null),s=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Nt};function l(n){return r.noHighlightRe.test(n)}function M(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const p=B(h[1]);return p||(Ae(_.replace("{}",h[1])),Ae("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||B(p))}function x(n,a,h){let p="",y="";typeof a=="object"?(p=n,h=a.ignoreIllegals,y=a.language):(W("10.7.0","highlight(lang, code, ...args) has been deprecated."),W("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),y=n,p=a),h===void 0&&(h=!0);const v={code:p,language:y};Y("before:highlight",v);const L=v.result?v.result:P(v.language,v.code,h);return L.code=v.code,Y("after:highlight",L),L}function P(n,a,h,p){const y=Object.create(null);function v(i,c){return i.keywords[c]}function L(){if(!f.keywords){O.addText(E);return}let i=0;f.keywordPatternRe.lastIndex=0;let c=f.keywordPatternRe.exec(E),g="";for(;c;){g+=E.substring(i,c.index);const d=D.case_insensitive?c[0].toLowerCase():c[0],S=v(f,d);if(S){const[I,rt]=S;if(O.addText(g),g="",y[d]=(y[d]||0)+1,y[d]<=bn&&(Q+=rt),I.startsWith("_"))g+=c[0];else{const ot=D.classNameAliases[I]||I;T(c[0],ot)}}else g+=c[0];i=f.keywordPatternRe.lastIndex,c=f.keywordPatternRe.exec(E)}g+=E.substring(i),O.addText(g)}function J(){if(E==="")return;let i=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){O.addText(E);return}i=P(f.subLanguage,E,!0,Re[f.subLanguage]),Re[f.subLanguage]=i._top}else i=w(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(Q+=i.relevance),O.__addSublanguage(i._emitter,i.language)}function k(){f.subLanguage!=null?J():L(),E=""}function T(i,c){i!==""&&(O.startScope(c),O.addText(i),O.endScope())}function xe(i,c){let g=1;const d=c.length-1;for(;g<=d;){if(!i._emit[g]){g++;continue}const S=D.classNameAliases[i[g]]||i[g],I=c[g];S?T(I,S):(E=I,L(),E=""),g++}}function Me(i,c){return i.scope&&typeof i.scope=="string"&&O.openNode(D.classNameAliases[i.scope]||i.scope),i.beginScope&&(i.beginScope._wrap?(T(E,D.classNameAliases[i.beginScope._wrap]||i.beginScope._wrap),E=""):i.beginScope._multi&&(xe(i.beginScope,c),E="")),f=Object.create(i,{parent:{value:f}}),f}function ye(i,c,g){let d=Dt(i.endRe,g);if(d){if(i["on:end"]){const S=new Se(i);i["on:end"](c,S),S.isMatchIgnored&&(d=!1)}if(d){for(;i.endsParent&&i.parent;)i=i.parent;return i}}if(i.endsWithParent)return ye(i.parent,c,g)}function et(i){return f.matcher.regexIndex===0?(E+=i[0],1):(ue=!0,0)}function tt(i){const c=i[0],g=i.rule,d=new Se(g),S=[g.__beforeBegin,g["on:begin"]];for(const I of S)if(I&&(I(i,d),d.isMatchIgnored))return et(c);return g.skip?E+=c:(g.excludeBegin&&(E+=c),k(),!g.returnBegin&&!g.excludeBegin&&(E=c)),Me(g,i),g.returnBegin?0:c.length}function nt(i){const c=i[0],g=a.substring(i.index),d=ye(f,i,g);if(!d)return De;const S=f;f.endScope&&f.endScope._wrap?(k(),T(c,f.endScope._wrap)):f.endScope&&f.endScope._multi?(k(),xe(f.endScope,i)):S.skip?E+=c:(S.returnEnd||S.excludeEnd||(E+=c),k(),S.excludeEnd&&(E=c));do f.scope&&O.closeNode(),!f.skip&&!f.subLanguage&&(Q+=f.relevance),f=f.parent;while(f!==d.parent);return d.starts&&Me(d.starts,i),S.returnEnd?0:c.length}function st(){const i=[];for(let c=f;c!==D;c=c.parent)c.scope&&i.unshift(c.scope);i.forEach(c=>O.openNode(c))}let q={};function Oe(i,c){const g=c&&c[0];if(E+=i,g==null)return k(),0;if(q.type==="begin"&&c.type==="end"&&q.index===c.index&&g===""){if(E+=a.slice(c.index,c.index+1),!b){const d=new Error(`0 width match regex (${n})`);throw d.languageName=n,d.badRule=q.rule,d}return 1}if(q=c,c.type==="begin")return tt(c);if(c.type==="illegal"&&!h){const d=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"")+'"');throw d.mode=f,d}else if(c.type==="end"){const d=nt(c);if(d!==De)return d}if(c.type==="illegal"&&g==="")return 1;if(le>1e5&&le>c.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const D=B(n);if(!D)throw U(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const it=gn(D);let ae="",f=p||it;const Re={},O=new r.__emitter(r);st();let E="",Q=0,H=0,le=0,ue=!1;try{if(D.__emitTokens)D.__emitTokens(a,O);else{for(f.matcher.considerAll();;){le++,ue?ue=!1:f.matcher.considerAll(),f.matcher.lastIndex=H;const i=f.matcher.exec(a);if(!i)break;const c=a.substring(H,i.index),g=Oe(c,i);H=i.index+g}Oe(a.substring(H))}return O.finalize(),ae=O.toHTML(),{language:n,value:ae,relevance:Q,illegal:!1,_emitter:O,_top:f}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:n,value:ge(a),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:H,context:a.slice(H-100,H+100),mode:i.mode,resultSoFar:ae},_emitter:O};if(b)return{language:n,value:ge(a),illegal:!1,relevance:0,errorRaised:i,_emitter:O,_top:f};throw i}}function R(n){const a={value:ge(n),illegal:!1,relevance:0,_top:o,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function w(n,a){a=a||r.languages||Object.keys(t);const h=R(n),p=a.filter(B).filter(we).map(k=>P(k,n,!1));p.unshift(h);const y=p.sort((k,T)=>{if(k.relevance!==T.relevance)return T.relevance-k.relevance;if(k.language&&T.language){if(B(k.language).supersetOf===T.language)return 1;if(B(T.language).supersetOf===k.language)return-1}return 0}),[v,L]=y,J=v;return J.secondBest=L,J}function G(n,a,h){const p=a&&s[a]||h;n.classList.add("hljs"),n.classList.add(`language-${p}`)}function K(n){let a=null;const h=M(n);if(l(h))return;if(Y("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new pn("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const p=a.textContent,y=h?x(p,{language:h,ignoreIllegals:!0}):w(p);n.innerHTML=y.value,n.dataset.highlighted="yes",G(n,h,y.language),n.result={language:y.language,re:y.relevance,relevance:y.relevance},y.secondBest&&(n.secondBest={language:y.secondBest.language,relevance:y.secondBest.relevance}),Y("after:highlightElement",{el:n,result:y,text:p})}function oe(n){r=Te(r,n)}const ce=()=>{Z(),W("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ze(){Z(),W("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ee=!1;function Z(){if(document.readyState==="loading"){Ee=!0;return}document.querySelectorAll(r.cssSelector).forEach(K)}function Ke(){Ee&&Z()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ke,!1);function Xe(n,a){let h=null;try{h=a(e)}catch(p){if(U("Language definition for '{}' could not be registered.".replace("{}",n)),b)U(p);else throw p;h=o}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&_e(h.aliases,{languageName:n})}function Ve(n){delete t[n];for(const a of Object.keys(s))s[a]===n&&delete s[a]}function Ze(){return Object.keys(t)}function B(n){return n=(n||"").toLowerCase(),t[n]||t[s[n]]}function _e(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{s[h.toLowerCase()]=a})}function we(n){const a=B(n);return a&&!a.disableAutodetect}function Ye(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function Je(n){Ye(n),u.push(n)}function qe(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function Y(n,a){const h=n;u.forEach(function(p){p[h]&&p[h](a)})}function Qe(n){return W("10.7.0","highlightBlock will be removed entirely in v12.0"),W("10.7.0","Please use highlightElement now."),K(n)}Object.assign(e,{highlight:x,highlightAuto:w,highlightAll:Z,highlightElement:K,highlightBlock:Qe,configure:oe,initHighlighting:ce,initHighlightingOnLoad:ze,registerLanguage:Xe,unregisterLanguage:Ve,listLanguages:Ze,getLanguage:B,registerAliases:_e,autoDetection:we,inherit:Te,addPlugin:Je,removePlugin:qe}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=dn,e.regex={concat:F,lookahead:Le,either:de,optional:At,anyNumberOfTimes:vt};for(const n in te)typeof te[n]=="object"&&Ie(te[n]);return Object.assign(e,te),e},z=We({});z.newInstance=()=>We({});var En=z;z.HighlightJS=z;z.default=z;const Ce=Ot(En),_n={class:"setting"},wn={class:"mt-3"},xn={class:"px-3 sm:px-0"},Mn={class:"flex flex-wrap"},yn={class:"mt-3 border-t border-gray-100"},Rn=ct({__name:"LogView",setup(e){const t=at(),s=lt(),u=ut(()=>({theme:s.isDarkMode?bt:Et})),{message:b,modal:_}=ft(["message","modal"],{configProviderProps:u}),o={name:"log",contains:[{className:"webui-log !text-green-600",begin:"\\[success\\]",end:"$",relevance:10},{className:"webui-log !text-sky-600",begin:"\\[info\\]",end:"$",relevance:10},{className:"webui-log !text-red-600",begin:"\\[error\\]",end:"$",relevance:10}]};Ce.registerLanguage("webui-log",()=>o);const r=gt(null),l=()=>{var R;(R=r.value)==null||R.scrollTo({position:"bottom",silent:!0}),b.info("已到达日志底部~")},M=()=>{var R;(R=r.value)==null||R.scrollTo({position:"top",silent:!0}),b.info("已到达日志顶部~")},x=()=>{t.content="",b.success("清空日志成功~")},P=()=>{const R=new Date().getTime();_t(t.content,R).then(w=>{_.create({title:"保存成功",type:"success",preset:"dialog",content:()=>N("p",null,[$("日志保存成功,日志保存在/data/adb/MIUI_MagicWindow+/logs-"),R,$(".txt")]),negativeText:"确定"})}).catch(w=>{_.create({title:"保存失败",type:"error",preset:"dialog",content:()=>N("p",null,[$("日志保存失败,可能目录没有写入权限,请检查~")]),negativeText:"确定"})})};return ht(()=>{dt(()=>{t.content&&wt(()=>{var R;(R=r.value)==null||R.scrollTo({position:"bottom",silent:!0})})})}),(R,w)=>{const G=ee("n-button"),K=ee("n-log"),oe=ee("n-space"),ce=ee("n-card");return se(),ie("div",_n,[A("div",wn,[A("div",xn,[w[4]||(w[4]=A("h3",{class:fe("text-base font-semibold leading-7")},[A("span",{class:"font-semibold animated-bg bg-clip-text text-transparent",style:{"background-image":"linear-gradient(101.22deg, rgb(255, 182, 133) -18.32%, rgb(255, 111, 29) 7.01%, rgb(252, 181, 232) 41.59%, rgb(135, 148, 255) 70.98%, rgb(60, 112, 255) 91.35%, rgb(60, 112, 255) 110.17%)"}},"日志记录")],-1)),A("p",{class:fe(`mt-1 max-w-2xl text-sm leading-6 ${m(s).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 在这里可以查看本次 Web UI 运行中产生的日志 ",2),A("p",{class:fe(`mt-1 max-w-2xl text-sm leading-6 ${m(s).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 若有影响使用的问题可以通过酷安/Github/模块反馈群上进行反馈 ",2)]),N(ce,{bordered:!0,class:"mt-3",size:"small"},{default:C(()=>[A("div",Mn,[N(G,{class:"mr-3 mb-3",type:"info",onClick:w[0]||(w[0]=()=>{M()})},{icon:C(()=>[N(m(Mt))]),default:C(()=>[w[5]||(w[5]=$(" 回到顶部 "))]),_:1}),N(G,{class:"mr-3 mb-3",type:"error",onClick:w[1]||(w[1]=()=>{l()})},{icon:C(()=>[N(m(xt))]),default:C(()=>[w[6]||(w[6]=$(" 回到底部 "))]),_:1}),N(G,{class:"mr-3 mb-3",type:"success",onClick:w[2]||(w[2]=()=>{x()})},{icon:C(()=>[N(m(pt))]),default:C(()=>[w[7]||(w[7]=$(" 清空日志 "))]),_:1}),N(G,{class:"mr-3 mb-3",type:"warning",onClick:w[3]||(w[3]=()=>{P()})},{icon:C(()=>[N(m(yt))]),default:C(()=>[w[8]||(w[8]=$(" 保存日志 "))]),_:1})]),A("div",yn,[N(oe,{vertical:""},{default:C(()=>[N(K,{hljs:m(Ce),ref_key:"logInstRef",ref:r,row:20,"line-height":"2","font-size":"12",log:m(t).content,language:"webui-log",trim:""},null,8,["hljs","log"])]),_:1})])]),_:1})])])}}});export{Rn as default}; diff --git a/module_src/webroot/assets/MagicControlView-B2K2iPAw.js b/module_src/webroot/assets/MagicControlView-C3_04WRt.js similarity index 96% rename from module_src/webroot/assets/MagicControlView-B2K2iPAw.js rename to module_src/webroot/assets/MagicControlView-C3_04WRt.js index a63fb85f..2f07ca76 100644 --- a/module_src/webroot/assets/MagicControlView-B2K2iPAw.js +++ b/module_src/webroot/assets/MagicControlView-C3_04WRt.js @@ -1,4 +1,4 @@ -import{d as p,h as f,aA as g,aB as u,aC as y,aD as _,U as b,aE as k,i as o,j as x,V as h,aF as S,aG as v,r as s,k as M,g as t,n,l as w,m as r,b as P,e as i,f as D,s as O,y as B,z as C,aH as A}from"./index-DpnWTcH_.js";const V={class:"setting"},z={class:"mt-3"},N={class:"px-3 sm:px-0"},T={class:"mt-3"},F=p({__name:"MagicControlView",setup(E){const a=f();g(),u(),y(),_(),b(),k();const l=o(()=>({theme:a.isDarkMode?B:C}));x(["message","modal"],{configProviderProps:l}),h(),S(),v();const c=s([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]);return o(()=>A(c.value,"key")),s(""),s(!1),(H,e)=>{const d=i("n-watermark"),m=i("n-alert");return D(),M("div",V,[t("div",z,[t("div",N,[e[0]||(e[0]=t("h3",{class:n("text-base font-semibold leading-7")},[t("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r +import{d as p,h as f,aA as g,aB as u,aC as y,aD as _,U as b,aE as k,i as o,j as x,V as h,aF as S,aG as v,r as s,k as M,g as t,n,l as w,m as r,b as P,e as i,f as D,s as O,y as B,z as C,aH as A}from"./index-BJI37F2h.js";const V={class:"setting"},z={class:"mt-3"},N={class:"px-3 sm:px-0"},T={class:"mt-3"},F=p({__name:"MagicControlView",setup(E){const a=f();g(),u(),y(),_(),b(),k();const l=o(()=>({theme:a.isDarkMode?B:C}));x(["message","modal"],{configProviderProps:l}),h(),S(),v();const c=s([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]);return o(()=>A(c.value,"key")),s(""),s(!1),(H,e)=>{const d=i("n-watermark"),m=i("n-alert");return D(),M("div",V,[t("div",z,[t("div",N,[e[0]||(e[0]=t("h3",{class:n("text-base font-semibold leading-7")},[t("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r diff --git a/module_src/webroot/assets/index-DpnWTcH_.js b/module_src/webroot/assets/index-BJI37F2h.js similarity index 53% rename from module_src/webroot/assets/index-DpnWTcH_.js rename to module_src/webroot/assets/index-BJI37F2h.js index ed351b41..b5c62ba5 100644 --- a/module_src/webroot/assets/index-DpnWTcH_.js +++ b/module_src/webroot/assets/index-BJI37F2h.js @@ -1,25 +1,25 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView-DJOZ5Nq_.js","assets/EmbeddedWebView-CvGGpVR8.css","assets/LogView-BiH1wBQ5.js","assets/LogView-CDMl6FPM.css","assets/GameTurboConfig-D0TpXb5z.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView-LKF5z37A.js","assets/EmbeddedWebView-CvGGpVR8.css","assets/LogView-D27DD6zV.js","assets/LogView-CDMl6FPM.css","assets/GameTurboConfig-CR-HzL6D.js"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();window._iconfont_svg_string_4809482='',(e=>{var t=(o=(o=document.getElementsByTagName("script"))[o.length-1]).getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var n,r,i,a,l,s=function(c,h){h.parentNode.insertBefore(c,h)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}n=function(){var c,h=document.createElement("div");h.innerHTML=e._iconfont_svg_string_4809482,(h=h.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",h=h,(c=document.body).firstChild?s(h,c.firstChild):c.appendChild(h))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),n()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(i=n,a=e.document,l=!1,d(),a.onreadystatechange=function(){a.readyState=="complete"&&(a.onreadystatechange=null,u())})}function u(){l||(l=!0,i())}function d(){try{a.documentElement.doScroll("left")}catch{return void setTimeout(d,50)}u()}})(window);/** * @vue/shared v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function I1(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Nt={},Ca=[],Un=()=>{},Pb=()=>!1,fd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),O1=e=>e.startsWith("onUpdate:"),ho=Object.assign,L1=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Ab=Object.prototype.hasOwnProperty,Tt=(e,t)=>Ab.call(e,t),ht=Array.isArray,wa=e=>hd(e)==="[object Map]",Vh=e=>hd(e)==="[object Set]",mt=e=>typeof e=="function",eo=e=>typeof e=="string",ti=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",Wh=e=>(qt(e)||mt(e))&&mt(e.then)&&mt(e.catch),jh=Object.prototype.toString,hd=e=>jh.call(e),Bb=e=>hd(e).slice(8,-1),Uh=e=>hd(e)==="[object Object]",H1=e=>eo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_l=I1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pd=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Db=/-(\w)/g,vn=pd(e=>e.replace(Db,(t,o)=>o?o.toUpperCase():"")),Tb=/\B([A-Z])/g,Ui=pd(e=>e.replace(Tb,"-$1").toLowerCase()),md=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),vc=pd(e=>e?`on${md(e)}`:""),Qr=(e,t)=>!Object.is(e,t),bc=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},Ib=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ob=e=>{const t=eo(e)?Number(e):NaN;return isNaN(t)?e:t};let k6;const Gh=()=>k6||(k6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gd(e){if(ht(e)){const t={};for(let o=0;o{if(o){const n=o.split(Hb);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function xe(e){let t="";if(eo(e))t=e;else if(ht(e))for(let o=0;o!!(e&&e.__v_isRef===!0),nt=e=>eo(e)?e:e==null?"":ht(e)||qt(e)&&(e.toString===jh||!mt(e.toString))?Xh(e)?nt(e.value):JSON.stringify(e,Yh,2):String(e),Yh=(e,t)=>Xh(t)?Yh(e,t.value):wa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[xc(n,i)+" =>"]=r,o),{})}:Vh(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>xc(o))}:ti(t)?xc(t):qt(t)&&!ht(t)&&!Uh(t)?String(t):t,xc=(e,t="")=>{var o;return ti(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function I1(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Nt={},Ca=[],Un=()=>{},Pb=()=>!1,fd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),O1=e=>e.startsWith("onUpdate:"),ho=Object.assign,L1=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Ab=Object.prototype.hasOwnProperty,Tt=(e,t)=>Ab.call(e,t),ht=Array.isArray,wa=e=>hd(e)==="[object Map]",Vh=e=>hd(e)==="[object Set]",mt=e=>typeof e=="function",eo=e=>typeof e=="string",ti=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",Wh=e=>(qt(e)||mt(e))&&mt(e.then)&&mt(e.catch),jh=Object.prototype.toString,hd=e=>jh.call(e),Bb=e=>hd(e).slice(8,-1),Uh=e=>hd(e)==="[object Object]",H1=e=>eo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_l=I1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pd=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Db=/-(\w)/g,vn=pd(e=>e.replace(Db,(t,o)=>o?o.toUpperCase():"")),Tb=/\B([A-Z])/g,Ui=pd(e=>e.replace(Tb,"-$1").toLowerCase()),md=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),vc=pd(e=>e?`on${md(e)}`:""),Qr=(e,t)=>!Object.is(e,t),bc=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},Ib=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ob=e=>{const t=eo(e)?Number(e):NaN;return isNaN(t)?e:t};let k6;const Gh=()=>k6||(k6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gd(e){if(ht(e)){const t={};for(let o=0;o{if(o){const n=o.split(Hb);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function xe(e){let t="";if(eo(e))t=e;else if(ht(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Je=e=>eo(e)?e:e==null?"":ht(e)||qt(e)&&(e.toString===jh||!mt(e.toString))?Xh(e)?Je(e.value):JSON.stringify(e,Yh,2):String(e),Yh=(e,t)=>Xh(t)?Yh(e,t.value):wa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[xc(n,i)+" =>"]=r,o),{})}:Vh(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>xc(o))}:ti(t)?xc(t):qt(t)&&!ht(t)&&!Uh(t)?String(t):t,xc=(e,t="")=>{var o;return ti(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/** * @vue/reactivity v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Do;class Qh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Do,!t&&Do&&(this.index=(Do.scopes||(Do.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t0)return;if(Rl){let t=Rl;for(Rl=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Ml;){let t=Ml;for(Ml=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function r5(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function i5(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),W1(n),Kb(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function R0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a5(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a5(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kl))return;e.globalVersion=Kl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!R0(e)){e.flags&=-3;return}const o=jt,n=Mn;jt=e,Mn=!0;try{r5(e);const r=e.fn(e._value);(t.version===0||Qr(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{jt=o,Mn=n,i5(e),e.flags&=-3}}function W1(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n),!o.subs&&o.computed){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)W1(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Kb(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Mn=!0;const l5=[];function oi(){l5.push(Mn),Mn=!1}function ni(){const e=l5.pop();Mn=e===void 0?!0:e}function _6(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=jt;jt=void 0;try{t()}finally{jt=o}}}let Kl=0;class Gb{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class j1{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}track(t){if(!jt||!Mn||jt===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==jt)o=this.activeLink=new Gb(jt,this),jt.deps?(o.prevDep=jt.depsTail,jt.depsTail.nextDep=o,jt.depsTail=o):jt.deps=jt.depsTail=o,s5(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=jt.depsTail,o.nextDep=void 0,jt.depsTail.nextDep=o,jt.depsTail=o,jt.deps===o&&(jt.deps=n)}return o}trigger(t){this.version++,Kl++,this.notify(t)}notify(t){N1();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{V1()}}}function s5(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)s5(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Hu=new WeakMap,Ri=Symbol(""),z0=Symbol(""),Gl=Symbol("");function Ro(e,t,o){if(Mn&&jt){let n=Hu.get(e);n||Hu.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new j1),r.map=n,r.key=o),r.track()}}function mr(e,t,o,n,r,i){const a=Hu.get(e);if(!a){Kl++;return}const l=s=>{s&&s.trigger()};if(N1(),t==="clear")a.forEach(l);else{const s=ht(e),u=s&&H1(o);if(s&&o==="length"){const d=Number(n);a.forEach((c,h)=>{(h==="length"||h===Gl||!ti(h)&&h>=d)&&l(c)})}else switch(o!==void 0&&l(a.get(o)),u&&l(a.get(Gl)),t){case"add":s?u&&l(a.get("length")):(l(a.get(Ri)),wa(e)&&l(a.get(z0)));break;case"delete":s||(l(a.get(Ri)),wa(e)&&l(a.get(z0)));break;case"set":wa(e)&&l(a.get(Ri));break}}V1()}function qb(e,t){const o=Hu.get(e);return o&&o.get(t)}function ra(e){const t=zt(e);return t===e?t:(Ro(t,"iterate",Gl),gn(e)?t:t.map(_o))}function vd(e){return Ro(e=zt(e),"iterate",Gl),e}const Zb={__proto__:null,[Symbol.iterator](){return Cc(this,Symbol.iterator,_o)},concat(...e){return ra(this).concat(...e.map(t=>ht(t)?ra(t):t))},entries(){return Cc(this,"entries",e=>(e[1]=_o(e[1]),e))},every(e,t){return ir(this,"every",e,t,void 0,arguments)},filter(e,t){return ir(this,"filter",e,t,o=>o.map(_o),arguments)},find(e,t){return ir(this,"find",e,t,_o,arguments)},findIndex(e,t){return ir(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ir(this,"findLast",e,t,_o,arguments)},findLastIndex(e,t){return ir(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ir(this,"forEach",e,t,void 0,arguments)},includes(...e){return wc(this,"includes",e)},indexOf(...e){return wc(this,"indexOf",e)},join(e){return ra(this).join(e)},lastIndexOf(...e){return wc(this,"lastIndexOf",e)},map(e,t){return ir(this,"map",e,t,void 0,arguments)},pop(){return nl(this,"pop")},push(...e){return nl(this,"push",e)},reduce(e,...t){return M6(this,"reduce",e,t)},reduceRight(e,...t){return M6(this,"reduceRight",e,t)},shift(){return nl(this,"shift")},some(e,t){return ir(this,"some",e,t,void 0,arguments)},splice(...e){return nl(this,"splice",e)},toReversed(){return ra(this).toReversed()},toSorted(e){return ra(this).toSorted(e)},toSpliced(...e){return ra(this).toSpliced(...e)},unshift(...e){return nl(this,"unshift",e)},values(){return Cc(this,"values",_o)}};function Cc(e,t,o){const n=vd(e),r=n[t]();return n!==e&&!gn(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=o(i.value)),i}),r}const Xb=Array.prototype;function ir(e,t,o,n,r,i){const a=vd(e),l=a!==e&&!gn(e),s=a[t];if(s!==Xb[t]){const c=s.apply(e,i);return l?_o(c):c}let u=o;a!==e&&(l?u=function(c,h){return o.call(this,_o(c),h,e)}:o.length>2&&(u=function(c,h){return o.call(this,c,h,e)}));const d=s.call(a,u,n);return l&&r?r(d):d}function M6(e,t,o,n){const r=vd(e);let i=o;return r!==e&&(gn(e)?o.length>3&&(i=function(a,l,s){return o.call(this,a,l,s,e)}):i=function(a,l,s){return o.call(this,a,_o(l),s,e)}),r[t](i,...n)}function wc(e,t,o){const n=zt(e);Ro(n,"iterate",Gl);const r=n[t](...o);return(r===-1||r===!1)&&q1(o[0])?(o[0]=zt(o[0]),n[t](...o)):r}function nl(e,t,o=[]){oi(),N1();const n=zt(e)[t].apply(e,o);return V1(),ni(),n}const Yb=I1("__proto__,__v_isRef,__isVue"),u5=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ti));function Qb(e){ti(e)||(e=String(e));const t=zt(this);return Ro(t,"has",e),t.hasOwnProperty(e)}class d5{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?cx:p5:i?h5:f5).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ht(t);if(!r){let s;if(a&&(s=Zb[o]))return s;if(o==="hasOwnProperty")return Qb}const l=Reflect.get(t,o,io(t)?t:n);return(ti(o)?u5.has(o):Yb(o))||(r||Ro(t,"get",o),i)?l:io(l)?a&&H1(o)?l:l.value:qt(l)?r?Zn(l):It(l):l}}class c5 extends d5{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];if(!this._isShallow){const s=Ii(i);if(!gn(n)&&!Ii(n)&&(i=zt(i),n=zt(n)),!ht(t)&&io(i)&&!io(n))return s?!1:(i.value=n,!0)}const a=ht(t)&&H1(o)?Number(o)e,bd=e=>Reflect.getPrototypeOf(e);function Ks(e,t,o=!1,n=!1){e=e.__v_raw;const r=zt(e),i=zt(t);o||(Qr(t,i)&&Ro(r,"get",t),Ro(r,"get",i));const{has:a}=bd(r),l=n?U1:o?Z1:_o;if(a.call(r,t))return l(e.get(t));if(a.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Gs(e,t=!1){const o=this.__v_raw,n=zt(o),r=zt(e);return t||(Qr(e,r)&&Ro(n,"has",e),Ro(n,"has",r)),e===r?o.has(e):o.has(e)||o.has(r)}function qs(e,t=!1){return e=e.__v_raw,!t&&Ro(zt(e),"iterate",Ri),Reflect.get(e,"size",e)}function R6(e,t=!1){!t&&!gn(e)&&!Ii(e)&&(e=zt(e));const o=zt(this);return bd(o).has.call(o,e)||(o.add(e),mr(o,"add",e,e)),this}function z6(e,t,o=!1){!o&&!gn(t)&&!Ii(t)&&(t=zt(t));const n=zt(this),{has:r,get:i}=bd(n);let a=r.call(n,e);a||(e=zt(e),a=r.call(n,e));const l=i.call(n,e);return n.set(e,t),a?Qr(t,l)&&mr(n,"set",e,t):mr(n,"add",e,t),this}function $6(e){const t=zt(this),{has:o,get:n}=bd(t);let r=o.call(t,e);r||(e=zt(e),r=o.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return r&&mr(t,"delete",e,void 0),i}function P6(){const e=zt(this),t=e.size!==0,o=e.clear();return t&&mr(e,"clear",void 0,void 0),o}function Zs(e,t){return function(n,r){const i=this,a=i.__v_raw,l=zt(a),s=t?U1:e?Z1:_o;return!e&&Ro(l,"iterate",Ri),a.forEach((u,d)=>n.call(r,s(u),s(d),i))}}function Xs(e,t,o){return function(...n){const r=this.__v_raw,i=zt(r),a=wa(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,u=r[e](...n),d=o?U1:t?Z1:_o;return!t&&Ro(i,"iterate",s?z0:Ri),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:l?[d(c[0]),d(c[1])]:d(c),done:h}},[Symbol.iterator](){return this}}}}function zr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nx(){const e={get(i){return Ks(this,i)},get size(){return qs(this)},has:Gs,add:R6,set:z6,delete:$6,clear:P6,forEach:Zs(!1,!1)},t={get(i){return Ks(this,i,!1,!0)},get size(){return qs(this)},has:Gs,add(i){return R6.call(this,i,!0)},set(i,a){return z6.call(this,i,a,!0)},delete:$6,clear:P6,forEach:Zs(!1,!0)},o={get(i){return Ks(this,i,!0)},get size(){return qs(this,!0)},has(i){return Gs.call(this,i,!0)},add:zr("add"),set:zr("set"),delete:zr("delete"),clear:zr("clear"),forEach:Zs(!0,!1)},n={get(i){return Ks(this,i,!0,!0)},get size(){return qs(this,!0)},has(i){return Gs.call(this,i,!0)},add:zr("add"),set:zr("set"),delete:zr("delete"),clear:zr("clear"),forEach:Zs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xs(i,!1,!1),o[i]=Xs(i,!0,!1),t[i]=Xs(i,!1,!0),n[i]=Xs(i,!0,!0)}),[e,o,t,n]}const[rx,ix,ax,lx]=nx();function K1(e,t){const o=t?e?lx:ax:e?ix:rx;return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Tt(o,r)&&r in n?o:n,r,i)}const sx={get:K1(!1,!1)},ux={get:K1(!1,!0)},dx={get:K1(!0,!1)};const f5=new WeakMap,h5=new WeakMap,p5=new WeakMap,cx=new WeakMap;function fx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hx(e){return e.__v_skip||!Object.isExtensible(e)?0:fx(Bb(e))}function It(e){return Ii(e)?e:G1(e,!1,ex,sx,f5)}function m5(e){return G1(e,!1,ox,ux,h5)}function Zn(e){return G1(e,!0,tx,dx,p5)}function G1(e,t,o,n,r){if(!qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=hx(e);if(a===0)return e;const l=new Proxy(e,a===2?n:o);return r.set(e,l),l}function Kr(e){return Ii(e)?Kr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ii(e){return!!(e&&e.__v_isReadonly)}function gn(e){return!!(e&&e.__v_isShallow)}function q1(e){return e?!!e.__v_raw:!1}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function ql(e){return!Tt(e,"__v_skip")&&Object.isExtensible(e)&&Kh(e,"__v_skip",!0),e}const _o=e=>qt(e)?It(e):e,Z1=e=>qt(e)?Zn(e):e;function io(e){return e?e.__v_isRef===!0:!1}function $(e){return g5(e,!1)}function xd(e){return g5(e,!0)}function g5(e,t){return io(e)?e:new px(e,t)}class px{constructor(t,o){this.dep=new j1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:zt(t),this._value=o?t:_o(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||gn(t)||Ii(t);t=n?t:zt(t),Qr(t,o)&&(this._rawValue=t,this._value=n?t:_o(t),this.dep.trigger())}}function S(e){return io(e)?e.value:e}const mx={get:(e,t,o)=>t==="__v_raw"?e:S(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return io(r)&&!io(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function v5(e){return Kr(e)?e:new Proxy(e,mx)}function b5(e){const t=ht(e)?new Array(e.length):{};for(const o in e)t[o]=x5(e,o);return t}class gx{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return qb(zt(this._object),this._key)}}class vx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ae(e,t,o){return io(e)?e:mt(e)?new vx(e):qt(e)&&arguments.length>1?x5(e,t,o):$(e)}function x5(e,t,o){const n=e[t];return io(n)?n:new gx(e,t,o)}class bx{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new j1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&jt!==this)return n5(this,!0),!0}get value(){const t=this.dep.track();return a5(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xx(e,t,o=!1){let n,r;return mt(e)?n=e:(n=e.get,r=e.set),new bx(n,r,o)}const Ys={},Nu=new WeakMap;let bi;function yx(e,t=!1,o=bi){if(o){let n=Nu.get(o);n||Nu.set(o,n=[]),n.push(e)}}function Cx(e,t,o=Nt){const{immediate:n,deep:r,once:i,scheduler:a,augmentJob:l,call:s}=o,u=C=>r?C:gn(C)||r===!1||r===0?pr(C,1):pr(C);let d,c,h,f,p=!1,g=!1;if(io(e)?(c=()=>e.value,p=gn(e)):Kr(e)?(c=()=>u(e),p=!0):ht(e)?(g=!0,p=e.some(C=>Kr(C)||gn(C)),c=()=>e.map(C=>{if(io(C))return C.value;if(Kr(C))return u(C);if(mt(C))return s?s(C,2):C()})):mt(e)?t?c=s?()=>s(e,2):e:c=()=>{if(h){oi();try{h()}finally{ni()}}const C=bi;bi=d;try{return s?s(e,3,[f]):e(f)}finally{bi=C}}:c=Un,t&&r){const C=c,k=r===!0?1/0:r;c=()=>pr(C(),k)}const v=e5(),b=()=>{d.stop(),v&&L1(v.effects,d)};if(i&&t){const C=t;t=(...k)=>{C(...k),b()}}let x=g?new Array(e.length).fill(Ys):Ys;const E=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const k=d.run();if(r||p||(g?k.some((_,F)=>Qr(_,x[F])):Qr(k,x))){h&&h();const _=bi;bi=d;try{const F=[k,x===Ys?void 0:g&&x[0]===Ys?[]:x,f];s?s(t,3,F):t(...F),x=k}finally{bi=_}}}else d.run()};return l&&l(E),d=new t5(c),d.scheduler=a?()=>a(E,!1):E,f=C=>yx(C,!1,d),h=d.onStop=()=>{const C=Nu.get(d);if(C){if(s)s(C,4);else for(const k of C)k();Nu.delete(d)}},t?n?E(!0):x=d.run():a?a(E.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function pr(e,t=1/0,o){if(t<=0||!qt(e)||e.__v_skip||(o=o||new Set,o.has(e)))return e;if(o.add(e),t--,io(e))pr(e.value,t,o);else if(ht(e))for(let n=0;n{pr(n,t,o)});else if(Uh(e)){for(const n in e)pr(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&pr(e[n],t,o)}return e}/** +**/let Do;class Qh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Do,!t&&Do&&(this.index=(Do.scopes||(Do.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t0)return;if(Rl){let t=Rl;for(Rl=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Ml;){let t=Ml;for(Ml=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function r5(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function i5(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),W1(n),Kb(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function R0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a5(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a5(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kl))return;e.globalVersion=Kl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!R0(e)){e.flags&=-3;return}const o=Ut,n=Mn;Ut=e,Mn=!0;try{r5(e);const r=e.fn(e._value);(t.version===0||Qr(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ut=o,Mn=n,i5(e),e.flags&=-3}}function W1(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n),!o.subs&&o.computed){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)W1(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Kb(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Mn=!0;const l5=[];function oi(){l5.push(Mn),Mn=!1}function ni(){const e=l5.pop();Mn=e===void 0?!0:e}function _6(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Ut;Ut=void 0;try{t()}finally{Ut=o}}}let Kl=0;class Gb{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class j1{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}track(t){if(!Ut||!Mn||Ut===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Ut)o=this.activeLink=new Gb(Ut,this),Ut.deps?(o.prevDep=Ut.depsTail,Ut.depsTail.nextDep=o,Ut.depsTail=o):Ut.deps=Ut.depsTail=o,s5(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=Ut.depsTail,o.nextDep=void 0,Ut.depsTail.nextDep=o,Ut.depsTail=o,Ut.deps===o&&(Ut.deps=n)}return o}trigger(t){this.version++,Kl++,this.notify(t)}notify(t){N1();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{V1()}}}function s5(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)s5(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Hu=new WeakMap,Ri=Symbol(""),z0=Symbol(""),Gl=Symbol("");function Ro(e,t,o){if(Mn&&Ut){let n=Hu.get(e);n||Hu.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new j1),r.map=n,r.key=o),r.track()}}function mr(e,t,o,n,r,i){const a=Hu.get(e);if(!a){Kl++;return}const l=s=>{s&&s.trigger()};if(N1(),t==="clear")a.forEach(l);else{const s=ht(e),u=s&&H1(o);if(s&&o==="length"){const d=Number(n);a.forEach((c,h)=>{(h==="length"||h===Gl||!ti(h)&&h>=d)&&l(c)})}else switch(o!==void 0&&l(a.get(o)),u&&l(a.get(Gl)),t){case"add":s?u&&l(a.get("length")):(l(a.get(Ri)),wa(e)&&l(a.get(z0)));break;case"delete":s||(l(a.get(Ri)),wa(e)&&l(a.get(z0)));break;case"set":wa(e)&&l(a.get(Ri));break}}V1()}function qb(e,t){const o=Hu.get(e);return o&&o.get(t)}function ra(e){const t=zt(e);return t===e?t:(Ro(t,"iterate",Gl),gn(e)?t:t.map(_o))}function vd(e){return Ro(e=zt(e),"iterate",Gl),e}const Zb={__proto__:null,[Symbol.iterator](){return Cc(this,Symbol.iterator,_o)},concat(...e){return ra(this).concat(...e.map(t=>ht(t)?ra(t):t))},entries(){return Cc(this,"entries",e=>(e[1]=_o(e[1]),e))},every(e,t){return ir(this,"every",e,t,void 0,arguments)},filter(e,t){return ir(this,"filter",e,t,o=>o.map(_o),arguments)},find(e,t){return ir(this,"find",e,t,_o,arguments)},findIndex(e,t){return ir(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ir(this,"findLast",e,t,_o,arguments)},findLastIndex(e,t){return ir(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ir(this,"forEach",e,t,void 0,arguments)},includes(...e){return wc(this,"includes",e)},indexOf(...e){return wc(this,"indexOf",e)},join(e){return ra(this).join(e)},lastIndexOf(...e){return wc(this,"lastIndexOf",e)},map(e,t){return ir(this,"map",e,t,void 0,arguments)},pop(){return nl(this,"pop")},push(...e){return nl(this,"push",e)},reduce(e,...t){return M6(this,"reduce",e,t)},reduceRight(e,...t){return M6(this,"reduceRight",e,t)},shift(){return nl(this,"shift")},some(e,t){return ir(this,"some",e,t,void 0,arguments)},splice(...e){return nl(this,"splice",e)},toReversed(){return ra(this).toReversed()},toSorted(e){return ra(this).toSorted(e)},toSpliced(...e){return ra(this).toSpliced(...e)},unshift(...e){return nl(this,"unshift",e)},values(){return Cc(this,"values",_o)}};function Cc(e,t,o){const n=vd(e),r=n[t]();return n!==e&&!gn(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=o(i.value)),i}),r}const Xb=Array.prototype;function ir(e,t,o,n,r,i){const a=vd(e),l=a!==e&&!gn(e),s=a[t];if(s!==Xb[t]){const c=s.apply(e,i);return l?_o(c):c}let u=o;a!==e&&(l?u=function(c,h){return o.call(this,_o(c),h,e)}:o.length>2&&(u=function(c,h){return o.call(this,c,h,e)}));const d=s.call(a,u,n);return l&&r?r(d):d}function M6(e,t,o,n){const r=vd(e);let i=o;return r!==e&&(gn(e)?o.length>3&&(i=function(a,l,s){return o.call(this,a,l,s,e)}):i=function(a,l,s){return o.call(this,a,_o(l),s,e)}),r[t](i,...n)}function wc(e,t,o){const n=zt(e);Ro(n,"iterate",Gl);const r=n[t](...o);return(r===-1||r===!1)&&q1(o[0])?(o[0]=zt(o[0]),n[t](...o)):r}function nl(e,t,o=[]){oi(),N1();const n=zt(e)[t].apply(e,o);return V1(),ni(),n}const Yb=I1("__proto__,__v_isRef,__isVue"),u5=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ti));function Qb(e){ti(e)||(e=String(e));const t=zt(this);return Ro(t,"has",e),t.hasOwnProperty(e)}class d5{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?cx:p5:i?h5:f5).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ht(t);if(!r){let s;if(a&&(s=Zb[o]))return s;if(o==="hasOwnProperty")return Qb}const l=Reflect.get(t,o,io(t)?t:n);return(ti(o)?u5.has(o):Yb(o))||(r||Ro(t,"get",o),i)?l:io(l)?a&&H1(o)?l:l.value:qt(l)?r?Zn(l):It(l):l}}class c5 extends d5{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];if(!this._isShallow){const s=Ii(i);if(!gn(n)&&!Ii(n)&&(i=zt(i),n=zt(n)),!ht(t)&&io(i)&&!io(n))return s?!1:(i.value=n,!0)}const a=ht(t)&&H1(o)?Number(o)e,bd=e=>Reflect.getPrototypeOf(e);function Ks(e,t,o=!1,n=!1){e=e.__v_raw;const r=zt(e),i=zt(t);o||(Qr(t,i)&&Ro(r,"get",t),Ro(r,"get",i));const{has:a}=bd(r),l=n?U1:o?Z1:_o;if(a.call(r,t))return l(e.get(t));if(a.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Gs(e,t=!1){const o=this.__v_raw,n=zt(o),r=zt(e);return t||(Qr(e,r)&&Ro(n,"has",e),Ro(n,"has",r)),e===r?o.has(e):o.has(e)||o.has(r)}function qs(e,t=!1){return e=e.__v_raw,!t&&Ro(zt(e),"iterate",Ri),Reflect.get(e,"size",e)}function R6(e,t=!1){!t&&!gn(e)&&!Ii(e)&&(e=zt(e));const o=zt(this);return bd(o).has.call(o,e)||(o.add(e),mr(o,"add",e,e)),this}function z6(e,t,o=!1){!o&&!gn(t)&&!Ii(t)&&(t=zt(t));const n=zt(this),{has:r,get:i}=bd(n);let a=r.call(n,e);a||(e=zt(e),a=r.call(n,e));const l=i.call(n,e);return n.set(e,t),a?Qr(t,l)&&mr(n,"set",e,t):mr(n,"add",e,t),this}function $6(e){const t=zt(this),{has:o,get:n}=bd(t);let r=o.call(t,e);r||(e=zt(e),r=o.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return r&&mr(t,"delete",e,void 0),i}function P6(){const e=zt(this),t=e.size!==0,o=e.clear();return t&&mr(e,"clear",void 0,void 0),o}function Zs(e,t){return function(n,r){const i=this,a=i.__v_raw,l=zt(a),s=t?U1:e?Z1:_o;return!e&&Ro(l,"iterate",Ri),a.forEach((u,d)=>n.call(r,s(u),s(d),i))}}function Xs(e,t,o){return function(...n){const r=this.__v_raw,i=zt(r),a=wa(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,u=r[e](...n),d=o?U1:t?Z1:_o;return!t&&Ro(i,"iterate",s?z0:Ri),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:l?[d(c[0]),d(c[1])]:d(c),done:h}},[Symbol.iterator](){return this}}}}function zr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nx(){const e={get(i){return Ks(this,i)},get size(){return qs(this)},has:Gs,add:R6,set:z6,delete:$6,clear:P6,forEach:Zs(!1,!1)},t={get(i){return Ks(this,i,!1,!0)},get size(){return qs(this)},has:Gs,add(i){return R6.call(this,i,!0)},set(i,a){return z6.call(this,i,a,!0)},delete:$6,clear:P6,forEach:Zs(!1,!0)},o={get(i){return Ks(this,i,!0)},get size(){return qs(this,!0)},has(i){return Gs.call(this,i,!0)},add:zr("add"),set:zr("set"),delete:zr("delete"),clear:zr("clear"),forEach:Zs(!0,!1)},n={get(i){return Ks(this,i,!0,!0)},get size(){return qs(this,!0)},has(i){return Gs.call(this,i,!0)},add:zr("add"),set:zr("set"),delete:zr("delete"),clear:zr("clear"),forEach:Zs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xs(i,!1,!1),o[i]=Xs(i,!0,!1),t[i]=Xs(i,!1,!0),n[i]=Xs(i,!0,!0)}),[e,o,t,n]}const[rx,ix,ax,lx]=nx();function K1(e,t){const o=t?e?lx:ax:e?ix:rx;return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Tt(o,r)&&r in n?o:n,r,i)}const sx={get:K1(!1,!1)},ux={get:K1(!1,!0)},dx={get:K1(!0,!1)};const f5=new WeakMap,h5=new WeakMap,p5=new WeakMap,cx=new WeakMap;function fx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hx(e){return e.__v_skip||!Object.isExtensible(e)?0:fx(Bb(e))}function It(e){return Ii(e)?e:G1(e,!1,ex,sx,f5)}function m5(e){return G1(e,!1,ox,ux,h5)}function Zn(e){return G1(e,!0,tx,dx,p5)}function G1(e,t,o,n,r){if(!qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=hx(e);if(a===0)return e;const l=new Proxy(e,a===2?n:o);return r.set(e,l),l}function Kr(e){return Ii(e)?Kr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ii(e){return!!(e&&e.__v_isReadonly)}function gn(e){return!!(e&&e.__v_isShallow)}function q1(e){return e?!!e.__v_raw:!1}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function ql(e){return!Tt(e,"__v_skip")&&Object.isExtensible(e)&&Kh(e,"__v_skip",!0),e}const _o=e=>qt(e)?It(e):e,Z1=e=>qt(e)?Zn(e):e;function io(e){return e?e.__v_isRef===!0:!1}function $(e){return g5(e,!1)}function xd(e){return g5(e,!0)}function g5(e,t){return io(e)?e:new px(e,t)}class px{constructor(t,o){this.dep=new j1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:zt(t),this._value=o?t:_o(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||gn(t)||Ii(t);t=n?t:zt(t),Qr(t,o)&&(this._rawValue=t,this._value=n?t:_o(t),this.dep.trigger())}}function S(e){return io(e)?e.value:e}const mx={get:(e,t,o)=>t==="__v_raw"?e:S(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return io(r)&&!io(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function v5(e){return Kr(e)?e:new Proxy(e,mx)}function b5(e){const t=ht(e)?new Array(e.length):{};for(const o in e)t[o]=x5(e,o);return t}class gx{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return qb(zt(this._object),this._key)}}class vx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ae(e,t,o){return io(e)?e:mt(e)?new vx(e):qt(e)&&arguments.length>1?x5(e,t,o):$(e)}function x5(e,t,o){const n=e[t];return io(n)?n:new gx(e,t,o)}class bx{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new j1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ut!==this)return n5(this,!0),!0}get value(){const t=this.dep.track();return a5(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xx(e,t,o=!1){let n,r;return mt(e)?n=e:(n=e.get,r=e.set),new bx(n,r,o)}const Ys={},Nu=new WeakMap;let bi;function yx(e,t=!1,o=bi){if(o){let n=Nu.get(o);n||Nu.set(o,n=[]),n.push(e)}}function Cx(e,t,o=Nt){const{immediate:n,deep:r,once:i,scheduler:a,augmentJob:l,call:s}=o,u=w=>r?w:gn(w)||r===!1||r===0?pr(w,1):pr(w);let d,c,h,f,p=!1,g=!1;if(io(e)?(c=()=>e.value,p=gn(e)):Kr(e)?(c=()=>u(e),p=!0):ht(e)?(g=!0,p=e.some(w=>Kr(w)||gn(w)),c=()=>e.map(w=>{if(io(w))return w.value;if(Kr(w))return u(w);if(mt(w))return s?s(w,2):w()})):mt(e)?t?c=s?()=>s(e,2):e:c=()=>{if(h){oi();try{h()}finally{ni()}}const w=bi;bi=d;try{return s?s(e,3,[f]):e(f)}finally{bi=w}}:c=Un,t&&r){const w=c,k=r===!0?1/0:r;c=()=>pr(w(),k)}const v=e5(),b=()=>{d.stop(),v&&L1(v.effects,d)};if(i&&t){const w=t;t=(...k)=>{w(...k),b()}}let x=g?new Array(e.length).fill(Ys):Ys;const E=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const k=d.run();if(r||p||(g?k.some((_,F)=>Qr(_,x[F])):Qr(k,x))){h&&h();const _=bi;bi=d;try{const F=[k,x===Ys?void 0:g&&x[0]===Ys?[]:x,f];s?s(t,3,F):t(...F),x=k}finally{bi=_}}}else d.run()};return l&&l(E),d=new t5(c),d.scheduler=a?()=>a(E,!1):E,f=w=>yx(w,!1,d),h=d.onStop=()=>{const w=Nu.get(d);if(w){if(s)s(w,4);else for(const k of w)k();Nu.delete(d)}},t?n?E(!0):x=d.run():a?a(E.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function pr(e,t=1/0,o){if(t<=0||!qt(e)||e.__v_skip||(o=o||new Set,o.has(e)))return e;if(o.add(e),t--,io(e))pr(e.value,t,o);else if(ht(e))for(let n=0;n{pr(n,t,o)});else if(Uh(e)){for(const n in e)pr(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&pr(e[n],t,o)}return e}/** * @vue/runtime-core v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function xs(e,t,o,n){try{return n?e(...n):e()}catch(r){yd(r,t,o)}}function $n(e,t,o,n){if(mt(e)){const r=xs(e,t,o,n);return r&&Wh(r)&&r.catch(i=>{yd(i,t,o)}),r}if(ht(e)){const r=[];for(let i=0;i>>1,r=To[n],i=Zl(r);i=Zl(o)?To.push(e):To.splice(Sx(t),0,e),e.flags|=1,C5()}}function C5(){Vu||(Vu=y5.then(S5))}function Fx(e){ht(e)?Sa.push(...e):Ir&&e.id===-1?Ir.splice(ga+1,0,e):e.flags&1||(Sa.push(e),e.flags|=1),C5()}function A6(e,t,o=Nn+1){for(;oZl(o)-Zl(n));if(Sa.length=0,Ir){Ir.push(...t);return}for(Ir=t,ga=0;gae.id==null?e.flags&2?-1:1/0:e.id;function S5(e){try{for(Nn=0;Nn{n._d&&U6(-1);const i=Wu(t);let a;try{a=e(...r)}finally{Wu(i),n._d&&U6(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function zo(e,t){if(bo===null)return e;const o=kd(bo),n=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),Ex=e=>e&&(e.defer||e.defer===""),B6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,D6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,$0=(e,t)=>{const o=e&&e.to;return eo(o)?t?t(o):null:o},kx={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,a,l,s,u){const{mc:d,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:v}}=u,b=zl(t.props);let{shapeFlag:x,children:E,dynamicChildren:C}=t;if(e==null){const k=t.el=g(""),_=t.anchor=g("");f(k,o,n),f(_,o,n);const F=(z,B)=>{x&16&&(r&&r.isCE&&(r.ce._teleportTarget=z),d(E,z,B,r,i,a,l,s))},P=()=>{const z=t.target=$0(t.props,p),B=_5(z,t,g,f);z&&(a!=="svg"&&B6(z)?a="svg":a!=="mathml"&&D6(z)&&(a="mathml"),b||(F(z,B),_u(t)))};b&&(F(o,_),_u(t)),Ex(t.props)?jo(P,i):P()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,_=t.target=e.target,F=t.targetAnchor=e.targetAnchor,P=zl(e.props),z=P?o:_,B=P?k:F;if(a==="svg"||B6(_)?a="svg":(a==="mathml"||D6(_))&&(a="mathml"),C?(h(e.dynamicChildren,C,z,r,i,a,l),t3(e,t,!0)):s||c(e,t,z,B,r,i,a,l,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qs(t,o,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=$0(t.props,p);j&&Qs(t,j,null,u,0)}else P&&Qs(t,_,F,u,1);_u(t)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:u,targetAnchor:d,target:c,props:h}=e;if(c&&(r(u),r(d)),i&&r(s),a&16){const f=i||!zl(h);for(let p=0;p{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],R5={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},z5=e=>{const t=e.subTree;return t.component?z5(t.component):t},Mx={name:"BaseTransition",props:R5,setup(e,{slots:t}){const o=xr(),n=M5();return()=>{const r=t.default&&Y1(t.default(),!0);if(!r||!r.length)return;const i=$5(r),a=zt(e),{mode:l}=a;if(n.isLeaving)return Sc(i);const s=T6(i);if(!s)return Sc(i);let u=Xl(s,a,n,o,h=>u=h);s.type!==vo&&Oi(s,u);const d=o.subTree,c=d&&T6(d);if(c&&c.type!==vo&&!xi(s,c)&&z5(o).type!==vo){const h=Xl(c,a,n,o);if(Oi(c,h),l==="out-in"&&s.type!==vo)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete h.afterLeave},Sc(i);l==="in-out"&&s.type!==vo&&(h.delayLeave=(f,p,g)=>{const v=P5(n,c);v[String(c.key)]=c,f[Or]=()=>{p(),f[Or]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}};function $5(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==vo){t=o;break}}return t}const Rx=Mx;function P5(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function Xl(e,t,o,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:x,onAppearCancelled:E}=t,C=String(e.key),k=P5(o,e),_=(z,B)=>{z&&$n(z,n,9,B)},F=(z,B)=>{const j=B[1];_(z,B),ht(z)?z.every(V=>V.length<=1)&&j():z.length<=1&&j()},P={mode:a,persisted:l,beforeEnter(z){let B=s;if(!o.isMounted)if(i)B=v||s;else return;z[Or]&&z[Or](!0);const j=k[C];j&&xi(e,j)&&j.el[Or]&&j.el[Or](),_(B,[z])},enter(z){let B=u,j=d,V=c;if(!o.isMounted)if(i)B=b||u,j=x||d,V=E||c;else return;let K=!1;const N=z[Js]=T=>{K||(K=!0,T?_(V,[z]):_(j,[z]),P.delayedLeave&&P.delayedLeave(),z[Js]=void 0)};B?F(B,[z,N]):N()},leave(z,B){const j=String(e.key);if(z[Js]&&z[Js](!0),o.isUnmounting)return B();_(h,[z]);let V=!1;const K=z[Or]=N=>{V||(V=!0,B(),N?_(g,[z]):_(p,[z]),z[Or]=void 0,k[j]===e&&delete k[j])};k[j]=e,f?F(f,[z,K]):K()},clone(z){const B=Xl(z,t,o,n,r);return r&&r(B),B}};return P}function Sc(e){if(Cd(e))return e=qo(e),e.children=null,e}function T6(e){if(!Cd(e))return k5(e.type)&&e.children?$5(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&mt(o.default))return o.default()}}function Oi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Oi(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 Y1(e,t=!1,o){let n=[],r=0;for(let i=0;i1)for(let i=0;iP0(p,t&&(ht(t)?t[g]:t),o,n,r));return}if(Fa(n)&&!r)return;const i=n.shapeFlag&4?kd(n.component):n.el,a=r?null:i,{i:l,r:s}=e,u=t&&t.r,d=l.refs===Nt?l.refs={}:l.refs,c=l.setupState,h=zt(c),f=c===Nt?()=>!1:p=>Tt(h,p);if(u!=null&&u!==s&&(eo(u)?(d[u]=null,f(u)&&(c[u]=null)):io(u)&&(u.value=null)),mt(s))xs(s,l,12,[a,d]);else{const p=eo(s),g=io(s);if(p||g){const v=()=>{if(e.f){const b=p?f(s)?c[s]:d[s]:s.value;r?ht(b)&&L1(b,i):ht(b)?b.includes(i)||b.push(i):p?(d[s]=[i],f(s)&&(c[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else p?(d[s]=a,f(s)&&(c[s]=a)):g&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,jo(v,o)):v()}}}const Fa=e=>!!e.type.__asyncLoader,Cd=e=>e.type.__isKeepAlive;function Q1(e,t){B5(e,"a",t)}function wd(e,t){B5(e,"da",t)}function B5(e,t,o=Co){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Sd(t,n,o),o){let r=o.parent;for(;r&&r.parent;)Cd(r.parent.vnode)&&$x(n,t,o,r),r=r.parent}}function $x(e,t,o,n){const r=Sd(t,e,n,!0);Go(()=>{L1(n[t],r)},o)}function Sd(e,t,o=Co,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{oi();const l=Ss(o),s=$n(t,o,e,a);return l(),ni(),s});return n?r.unshift(i):r.push(i),i}}const br=e=>(t,o=Co)=>{(!Ed||e==="sp")&&Sd(e,(...n)=>t(...n),o)},ri=br("bm"),ut=br("m"),D5=br("bu"),T5=br("u"),Xt=br("bum"),Go=br("um"),Px=br("sp"),Ax=br("rtg"),Bx=br("rtc");function Dx(e,t=Co){Sd("ec",e,t)}const I5="components";function at(e,t){return L5(I5,e,!0,t)||e}const O5=Symbol.for("v-ndc");function eu(e){return eo(e)?L5(I5,e,!1)||e:e||O5}function L5(e,t,o=!0,n=!1){const r=bo||Co;if(r){const i=r.type;{const l=yy(i,!1);if(l&&(l===t||l===vn(t)||l===md(vn(t))))return i}const a=I6(r[e]||i[e],t)||I6(r.appContext[e],t);return!a&&n?i:a}}function I6(e,t){return e&&(e[t]||e[vn(t)]||e[md(vn(t))])}function Ci(e,t,o,n){let r;const i=o,a=ht(e);if(a||eo(e)){const l=a&&Kr(e);let s=!1;l&&(s=!gn(e),e=vd(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(l,s,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,u=l.length;sRa(t)?!(t.type===vo||t.type===ft&&!H5(t.children)):!0)?e:null}const A0=e=>e?rp(e)?kd(e):A0(e.parent):null,$l=ho(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>A0(e.parent),$root:e=>A0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>J1(e),$forceUpdate:e=>e.f||(e.f=()=>{X1(e.update)}),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>ny.bind(e)}),Fc=(e,t)=>e!==Nt&&!e.__isScriptSetup&&Tt(e,t),Tx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:a,type:l,appContext:s}=e;let u;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Fc(n,t))return a[t]=1,n[t];if(r!==Nt&&Tt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&Tt(u,t))return a[t]=3,i[t];if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];B0&&(a[t]=0)}}const d=$l[t];let c,h;if(d)return t==="$attrs"&&Ro(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];if(h=s.config.globalProperties,Tt(h,t))return h[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Fc(r,t)?(r[t]=o,!0):n!==Nt&&Tt(n,t)?(n[t]=o,!0):Tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,propsOptions:i}},a){let l;return!!o[a]||e!==Nt&&Tt(e,a)||Fc(t,a)||(l=i[0])&&Tt(l,a)||Tt(n,a)||Tt($l,a)||Tt(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Tt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function O6(e){return ht(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let B0=!0;function Ix(e){const t=J1(e),o=e.proxy,n=e.ctx;B0=!1,t.beforeCreate&&L6(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:l,provide:s,inject:u,created:d,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:x,destroyed:E,unmounted:C,render:k,renderTracked:_,renderTriggered:F,errorCaptured:P,serverPrefetch:z,expose:B,inheritAttrs:j,components:V,directives:K,filters:N}=t;if(u&&Ox(u,n,null),a)for(const R in a){const I=a[R];mt(I)&&(n[R]=I.bind(o))}if(r){const R=r.call(o,o);qt(R)&&(e.data=It(R))}if(B0=!0,i)for(const R in i){const I=i[R],w=mt(I)?I.bind(o,o):mt(I.get)?I.get.bind(o,o):Un,Q=!mt(I)&&mt(I.set)?I.set.bind(o):Un,U=D({get:w,set:Q});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(l)for(const R in l)N5(l[R],n,o,R);if(s){const R=mt(s)?s.call(o):s;Reflect.ownKeys(R).forEach(I=>{et(I,R[I])})}d&&L6(d,e,"c");function L(R,I){ht(I)?I.forEach(w=>R(w.bind(o))):I&&R(I.bind(o))}if(L(ri,c),L(ut,h),L(D5,f),L(T5,p),L(Q1,g),L(wd,v),L(Dx,P),L(Bx,_),L(Ax,F),L(Xt,x),L(Go,C),L(Px,z),ht(B))if(B.length){const R=e.exposed||(e.exposed={});B.forEach(I=>{Object.defineProperty(R,I,{get:()=>o[I],set:w=>o[I]=w})})}else e.exposed||(e.exposed={});k&&e.render===Un&&(e.render=k),j!=null&&(e.inheritAttrs=j),V&&(e.components=V),K&&(e.directives=K),z&&A5(e)}function Ox(e,t,o=Un){ht(e)&&(e=D0(e));for(const n in e){const r=e[n];let i;qt(r)?"default"in r?i=Oe(r.from||n,r.default,!0):i=Oe(r.from||n):i=Oe(r),io(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function L6(e,t,o){$n(ht(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function N5(e,t,o,n){let r=n.includes(".")?J5(o,n):()=>o[n];if(eo(e)){const i=t[e];mt(i)&<(r,i)}else if(mt(e))lt(r,e.bind(o));else if(qt(e))if(ht(e))e.forEach(i=>N5(i,t,o,n));else{const i=mt(e.handler)?e.handler.bind(o):t[e.handler];mt(i)&<(r,i,e)}}function J1(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(u=>ju(s,u,a,!0)),ju(s,t,a)),qt(t)&&i.set(t,s),s}function ju(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&ju(e,i,o,!0),r&&r.forEach(a=>ju(e,a,o,!0));for(const a in t)if(!(n&&a==="expose")){const l=Lx[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Lx={data:H6,props:N6,emits:N6,methods:Cl,computed:Cl,beforeCreate:Bo,created:Bo,beforeMount:Bo,mounted:Bo,beforeUpdate:Bo,updated:Bo,beforeDestroy:Bo,beforeUnmount:Bo,destroyed:Bo,unmounted:Bo,activated:Bo,deactivated:Bo,errorCaptured:Bo,serverPrefetch:Bo,components:Cl,directives:Cl,watch:Nx,provide:H6,inject:Hx};function H6(e,t){return t?e?function(){return ho(mt(e)?e.call(this,this):e,mt(t)?t.call(this,this):t)}:t:e}function Hx(e,t){return Cl(D0(e),D0(t))}function D0(e){if(ht(e)){const t={};for(let o=0;o1)return o&&mt(t)?t.call(n&&n.proxy):t}}function jx(){return!!(Co||bo||zi)}const W5={},j5=()=>Object.create(W5),U5=e=>Object.getPrototypeOf(e)===W5;function Ux(e,t,o,n=!1){const r={},i=j5();e.propsDefaults=Object.create(null),K5(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:m5(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Kx(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,l=zt(r),[s]=e.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let c=0;c{s=!0;const[h,f]=G5(c,t,!0);ho(a,h),f&&l.push(...f)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return qt(e)&&n.set(e,Ca),Ca;if(ht(i))for(let d=0;de[0]==="_"||e==="$stable",e3=e=>ht(e)?e.map(Vn):[Vn(e)],qx=(e,t,o)=>{if(t._n)return t;const n=Z((...r)=>e3(t(...r)),o);return n._c=!1,n},Z5=(e,t,o)=>{const n=e._ctx;for(const r in e){if(q5(r))continue;const i=e[r];if(mt(i))t[r]=qx(r,i,n);else if(i!=null){const a=e3(i);t[r]=()=>a}}},X5=(e,t)=>{const o=e3(t);e.slots.default=()=>o},Y5=(e,t,o)=>{for(const n in t)(o||n!=="_")&&(e[n]=t[n])},Zx=(e,t,o)=>{const n=e.slots=j5();if(e.vnode.shapeFlag&32){const r=t._;r?(Y5(n,t,o),o&&Kh(n,"_",r,!0)):Z5(t,n)}else t&&X5(e,t)},Xx=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,a=Nt;if(n.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:Y5(r,t,o):(i=!t.$stable,Z5(t,r)),a=t}else t&&(X5(e,t),a={default:1});if(i)for(const l in r)!q5(l)&&a[l]==null&&delete r[l]},jo=dy;function Yx(e){return Qx(e)}function Qx(e,t){const o=Gh();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:a,createText:l,createComment:s,setText:u,setElementText:d,parentNode:c,nextSibling:h,setScopeId:f=Un,insertStaticContent:p}=e,g=(H,oe,ge,Ce=null,se=null,ie=null,ce=void 0,ne=null,ae=!!oe.dynamicChildren)=>{if(H===oe)return;H&&!xi(H,oe)&&(Ce=fe(H),X(H,se,ie,!0),H=null),oe.patchFlag===-2&&(ae=!1,oe.dynamicChildren=null);const{type:de,ref:le,shapeFlag:Y}=oe;switch(de){case ws:v(H,oe,ge,Ce);break;case vo:b(H,oe,ge,Ce);break;case Mu:H==null&&x(oe,ge,Ce,ce);break;case ft:V(H,oe,ge,Ce,se,ie,ce,ne,ae);break;default:Y&1?k(H,oe,ge,Ce,se,ie,ce,ne,ae):Y&6?K(H,oe,ge,Ce,se,ie,ce,ne,ae):(Y&64||Y&128)&&de.process(H,oe,ge,Ce,se,ie,ce,ne,ae,G)}le!=null&&se&&P0(le,H&&H.ref,ie,oe||H,!oe)},v=(H,oe,ge,Ce)=>{if(H==null)n(oe.el=l(oe.children),ge,Ce);else{const se=oe.el=H.el;oe.children!==H.children&&u(se,oe.children)}},b=(H,oe,ge,Ce)=>{H==null?n(oe.el=s(oe.children||""),ge,Ce):oe.el=H.el},x=(H,oe,ge,Ce)=>{[H.el,H.anchor]=p(H.children,oe,ge,Ce,H.el,H.anchor)},E=({el:H,anchor:oe},ge,Ce)=>{let se;for(;H&&H!==oe;)se=h(H),n(H,ge,Ce),H=se;n(oe,ge,Ce)},C=({el:H,anchor:oe})=>{let ge;for(;H&&H!==oe;)ge=h(H),r(H),H=ge;r(oe)},k=(H,oe,ge,Ce,se,ie,ce,ne,ae)=>{oe.type==="svg"?ce="svg":oe.type==="math"&&(ce="mathml"),H==null?_(oe,ge,Ce,se,ie,ce,ne,ae):z(H,oe,se,ie,ce,ne,ae)},_=(H,oe,ge,Ce,se,ie,ce,ne)=>{let ae,de;const{props:le,shapeFlag:Y,transition:ue,dirs:ve}=H;if(ae=H.el=a(H.type,ie,le&&le.is,le),Y&8?d(ae,H.children):Y&16&&P(H.children,ae,null,Ce,se,Ec(H,ie),ce,ne),ve&&ci(H,null,Ce,"created"),F(ae,H,H.scopeId,ce,Ce),le){for(const Ke in le)Ke!=="value"&&!_l(Ke)&&i(ae,Ke,null,le[Ke],ie,Ce);"value"in le&&i(ae,"value",null,le.value,ie),(de=le.onVnodeBeforeMount)&&In(de,Ce,H)}ve&&ci(H,null,Ce,"beforeMount");const Be=Jx(se,ue);Be&&ue.beforeEnter(ae),n(ae,oe,ge),((de=le&&le.onVnodeMounted)||Be||ve)&&jo(()=>{de&&In(de,Ce,H),Be&&ue.enter(ae),ve&&ci(H,null,Ce,"mounted")},se)},F=(H,oe,ge,Ce,se)=>{if(ge&&f(H,ge),Ce)for(let ie=0;ie{for(let de=ae;de{const ne=oe.el=H.el;let{patchFlag:ae,dynamicChildren:de,dirs:le}=oe;ae|=H.patchFlag&16;const Y=H.props||Nt,ue=oe.props||Nt;let ve;if(ge&&fi(ge,!1),(ve=ue.onVnodeBeforeUpdate)&&In(ve,ge,oe,H),le&&ci(oe,H,ge,"beforeUpdate"),ge&&fi(ge,!0),(Y.innerHTML&&ue.innerHTML==null||Y.textContent&&ue.textContent==null)&&d(ne,""),de?B(H.dynamicChildren,de,ne,ge,Ce,Ec(oe,se),ie):ce||I(H,oe,ne,null,ge,Ce,Ec(oe,se),ie,!1),ae>0){if(ae&16)j(ne,Y,ue,ge,se);else if(ae&2&&Y.class!==ue.class&&i(ne,"class",null,ue.class,se),ae&4&&i(ne,"style",Y.style,ue.style,se),ae&8){const Be=oe.dynamicProps;for(let Ke=0;Ke{ve&&In(ve,ge,oe,H),le&&ci(oe,H,ge,"updated")},Ce)},B=(H,oe,ge,Ce,se,ie,ce)=>{for(let ne=0;ne{if(oe!==ge){if(oe!==Nt)for(const ie in oe)!_l(ie)&&!(ie in ge)&&i(H,ie,oe[ie],null,se,Ce);for(const ie in ge){if(_l(ie))continue;const ce=ge[ie],ne=oe[ie];ce!==ne&&ie!=="value"&&i(H,ie,ne,ce,se,Ce)}"value"in ge&&i(H,"value",oe.value,ge.value,se)}},V=(H,oe,ge,Ce,se,ie,ce,ne,ae)=>{const de=oe.el=H?H.el:l(""),le=oe.anchor=H?H.anchor:l("");let{patchFlag:Y,dynamicChildren:ue,slotScopeIds:ve}=oe;ve&&(ne=ne?ne.concat(ve):ve),H==null?(n(de,ge,Ce),n(le,ge,Ce),P(oe.children||[],ge,le,se,ie,ce,ne,ae)):Y>0&&Y&64&&ue&&H.dynamicChildren?(B(H.dynamicChildren,ue,ge,se,ie,ce,ne),(oe.key!=null||se&&oe===se.subTree)&&t3(H,oe,!0)):I(H,oe,ge,le,se,ie,ce,ne,ae)},K=(H,oe,ge,Ce,se,ie,ce,ne,ae)=>{oe.slotScopeIds=ne,H==null?oe.shapeFlag&512?se.ctx.activate(oe,ge,Ce,ce,ae):N(oe,ge,Ce,se,ie,ce,ae):T(H,oe,ae)},N=(H,oe,ge,Ce,se,ie,ce)=>{const ne=H.component=my(H,Ce,se);if(Cd(H)&&(ne.ctx.renderer=G),gy(ne,!1,ce),ne.asyncDep){if(se&&se.registerDep(ne,L,ce),!H.el){const ae=ne.subTree=y(vo);b(null,ae,oe,ge)}}else L(ne,H,oe,ge,se,ie,ce)},T=(H,oe,ge)=>{const Ce=oe.component=H.component;if(sy(H,oe,ge))if(Ce.asyncDep&&!Ce.asyncResolved){R(Ce,oe,ge);return}else Ce.next=oe,Ce.update();else oe.el=H.el,Ce.vnode=oe},L=(H,oe,ge,Ce,se,ie,ce)=>{const ne=()=>{if(H.isMounted){let{next:Y,bu:ue,u:ve,parent:Be,vnode:Ke}=H;{const Qe=Q5(H);if(Qe){Y&&(Y.el=Ke.el,R(H,Y,ce)),Qe.asyncDep.then(()=>{H.isUnmounted||ne()});return}}let Je=Y,st;fi(H,!1),Y?(Y.el=Ke.el,R(H,Y,ce)):Y=Ke,ue&&bc(ue),(st=Y.props&&Y.props.onVnodeBeforeUpdate)&&In(st,Be,Y,Ke),fi(H,!0);const Ye=kc(H),pt=H.subTree;H.subTree=Ye,g(pt,Ye,c(pt.el),fe(pt),H,se,ie),Y.el=Ye.el,Je===null&&uy(H,Ye.el),ve&&jo(ve,se),(st=Y.props&&Y.props.onVnodeUpdated)&&jo(()=>In(st,Be,Y,Ke),se)}else{let Y;const{el:ue,props:ve}=oe,{bm:Be,m:Ke,parent:Je,root:st,type:Ye}=H,pt=Fa(oe);if(fi(H,!1),Be&&bc(Be),!pt&&(Y=ve&&ve.onVnodeBeforeMount)&&In(Y,Je,oe),fi(H,!0),ue&&Ne){const Qe=()=>{H.subTree=kc(H),Ne(ue,H.subTree,H,se,null)};pt&&Ye.__asyncHydrate?Ye.__asyncHydrate(ue,H,Qe):Qe()}else{st.ce&&st.ce._injectChildStyle(Ye);const Qe=H.subTree=kc(H);g(null,Qe,ge,Ce,H,se,ie),oe.el=Qe.el}if(Ke&&jo(Ke,se),!pt&&(Y=ve&&ve.onVnodeMounted)){const Qe=oe;jo(()=>In(Y,Je,Qe),se)}(oe.shapeFlag&256||Je&&Fa(Je.vnode)&&Je.vnode.shapeFlag&256)&&H.a&&jo(H.a,se),H.isMounted=!0,oe=ge=Ce=null}};H.scope.on();const ae=H.effect=new t5(ne);H.scope.off();const de=H.update=ae.run.bind(ae),le=H.job=ae.runIfDirty.bind(ae);le.i=H,le.id=H.uid,ae.scheduler=()=>X1(le),fi(H,!0),de()},R=(H,oe,ge)=>{oe.component=H;const Ce=H.vnode.props;H.vnode=oe,H.next=null,Kx(H,oe.props,Ce,ge),Xx(H,oe.children,ge),oi(),A6(H),ni()},I=(H,oe,ge,Ce,se,ie,ce,ne,ae=!1)=>{const de=H&&H.children,le=H?H.shapeFlag:0,Y=oe.children,{patchFlag:ue,shapeFlag:ve}=oe;if(ue>0){if(ue&128){Q(de,Y,ge,Ce,se,ie,ce,ne,ae);return}else if(ue&256){w(de,Y,ge,Ce,se,ie,ce,ne,ae);return}}ve&8?(le&16&&pe(de,se,ie),Y!==de&&d(ge,Y)):le&16?ve&16?Q(de,Y,ge,Ce,se,ie,ce,ne,ae):pe(de,se,ie,!0):(le&8&&d(ge,""),ve&16&&P(Y,ge,Ce,se,ie,ce,ne,ae))},w=(H,oe,ge,Ce,se,ie,ce,ne,ae)=>{H=H||Ca,oe=oe||Ca;const de=H.length,le=oe.length,Y=Math.min(de,le);let ue;for(ue=0;uele?pe(H,se,ie,!0,!1,Y):P(oe,ge,Ce,se,ie,ce,ne,ae,Y)},Q=(H,oe,ge,Ce,se,ie,ce,ne,ae)=>{let de=0;const le=oe.length;let Y=H.length-1,ue=le-1;for(;de<=Y&&de<=ue;){const ve=H[de],Be=oe[de]=ae?Lr(oe[de]):Vn(oe[de]);if(xi(ve,Be))g(ve,Be,ge,null,se,ie,ce,ne,ae);else break;de++}for(;de<=Y&&de<=ue;){const ve=H[Y],Be=oe[ue]=ae?Lr(oe[ue]):Vn(oe[ue]);if(xi(ve,Be))g(ve,Be,ge,null,se,ie,ce,ne,ae);else break;Y--,ue--}if(de>Y){if(de<=ue){const ve=ue+1,Be=veue)for(;de<=Y;)X(H[de],se,ie,!0),de++;else{const ve=de,Be=de,Ke=new Map;for(de=Be;de<=ue;de++){const te=oe[de]=ae?Lr(oe[de]):Vn(oe[de]);te.key!=null&&Ke.set(te.key,de)}let Je,st=0;const Ye=ue-Be+1;let pt=!1,Qe=0;const Le=new Array(Ye);for(de=0;de=Ye){X(te,se,ie,!0);continue}let me;if(te.key!=null)me=Ke.get(te.key);else for(Je=Be;Je<=ue;Je++)if(Le[Je-Be]===0&&xi(te,oe[Je])){me=Je;break}me===void 0?X(te,se,ie,!0):(Le[me-Be]=de+1,me>=Qe?Qe=me:pt=!0,g(te,oe[me],ge,null,se,ie,ce,ne,ae),st++)}const tt=pt?ey(Le):Ca;for(Je=tt.length-1,de=Ye-1;de>=0;de--){const te=Be+de,me=oe[te],ze=te+1{const{el:ie,type:ce,transition:ne,children:ae,shapeFlag:de}=H;if(de&6){U(H.component.subTree,oe,ge,Ce);return}if(de&128){H.suspense.move(oe,ge,Ce);return}if(de&64){ce.move(H,oe,ge,G);return}if(ce===ft){n(ie,oe,ge);for(let Y=0;Yne.enter(ie),se);else{const{leave:Y,delayLeave:ue,afterLeave:ve}=ne,Be=()=>n(ie,oe,ge),Ke=()=>{Y(ie,()=>{Be(),ve&&ve()})};ue?ue(ie,Be,Ke):Ke()}else n(ie,oe,ge)},X=(H,oe,ge,Ce=!1,se=!1)=>{const{type:ie,props:ce,ref:ne,children:ae,dynamicChildren:de,shapeFlag:le,patchFlag:Y,dirs:ue,cacheIndex:ve}=H;if(Y===-2&&(se=!1),ne!=null&&P0(ne,null,ge,H,!0),ve!=null&&(oe.renderCache[ve]=void 0),le&256){oe.ctx.deactivate(H);return}const Be=le&1&&ue,Ke=!Fa(H);let Je;if(Ke&&(Je=ce&&ce.onVnodeBeforeUnmount)&&In(Je,oe,H),le&6)Se(H.component,ge,Ce);else{if(le&128){H.suspense.unmount(ge,Ce);return}Be&&ci(H,null,oe,"beforeUnmount"),le&64?H.type.remove(H,oe,ge,G,Ce):de&&!de.hasOnce&&(ie!==ft||Y>0&&Y&64)?pe(de,oe,ge,!1,!0):(ie===ft&&Y&384||!se&&le&16)&&pe(ae,oe,ge),Ce&&re(H)}(Ke&&(Je=ce&&ce.onVnodeUnmounted)||Be)&&jo(()=>{Je&&In(Je,oe,H),Be&&ci(H,null,oe,"unmounted")},ge)},re=H=>{const{type:oe,el:ge,anchor:Ce,transition:se}=H;if(oe===ft){he(ge,Ce);return}if(oe===Mu){C(H);return}const ie=()=>{r(ge),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(H.shapeFlag&1&&se&&!se.persisted){const{leave:ce,delayLeave:ne}=se,ae=()=>ce(ge,ie);ne?ne(H.el,ie,ae):ae()}else ie()},he=(H,oe)=>{let ge;for(;H!==oe;)ge=h(H),r(H),H=ge;r(oe)},Se=(H,oe,ge)=>{const{bum:Ce,scope:se,job:ie,subTree:ce,um:ne,m:ae,a:de}=H;W6(ae),W6(de),Ce&&bc(Ce),se.stop(),ie&&(ie.flags|=8,X(ce,H,oe,ge)),ne&&jo(ne,oe),jo(()=>{H.isUnmounted=!0},oe),oe&&oe.pendingBranch&&!oe.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===oe.pendingId&&(oe.deps--,oe.deps===0&&oe.resolve())},pe=(H,oe,ge,Ce=!1,se=!1,ie=0)=>{for(let ce=ie;ce{if(H.shapeFlag&6)return fe(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const oe=h(H.anchor||H.el),ge=oe&&oe[E5];return ge?h(ge):oe};let we=!1;const J=(H,oe,ge)=>{H==null?oe._vnode&&X(oe._vnode,null,null,!0):g(oe._vnode||null,H,oe,null,null,null,ge),oe._vnode=H,we||(we=!0,A6(),w5(),we=!1)},G={p:g,um:X,m:U,r:re,mt:N,mc:P,pc:I,pbc:B,n:fe,o:e};let Te,Ne;return{render:J,hydrate:Te,createApp:Wx(J,Te)}}function Ec({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function fi({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function t3(e,t,o=!1){const n=e.children,r=t.children;if(ht(n)&&ht(r))for(let i=0;i>1,e[o[l]]0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function Q5(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q5(t)}function W6(e){if(e)for(let t=0;tOe(ty);function Et(e,t){return o3(e,null,t)}function lt(e,t,o){return o3(e,t,o)}function o3(e,t,o=Nt){const{immediate:n,deep:r,flush:i,once:a}=o,l=ho({},o);let s;if(Ed)if(i==="sync"){const h=oy();s=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)l.once=!0;else{const h=()=>{};return h.stop=Un,h.resume=Un,h.pause=Un,h}const u=Co;l.call=(h,f,p)=>$n(h,u,f,p);let d=!1;i==="post"?l.scheduler=h=>{jo(h,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(h,f)=>{f?h():X1(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=Cx(e,t,l);return s&&s.push(c),c}function ny(e,t,o){const n=this.proxy,r=eo(e)?e.includes(".")?J5(n,e):()=>n[e]:e.bind(n,n);let i;mt(t)?i=t:(i=t.handler,o=t);const a=Ss(this),l=o3(r,i.bind(n),o);return a(),l}function J5(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vn(t)}Modifiers`]||e[`${Ui(t)}Modifiers`];function iy(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||Nt;let r=o;const i=t.startsWith("update:"),a=i&&ry(n,t.slice(7));a&&(a.trim&&(r=o.map(d=>eo(d)?d.trim():d)),a.number&&(r=o.map(Ib)));let l,s=n[l=vc(t)]||n[l=vc(vn(t))];!s&&i&&(s=n[l=vc(Ui(t))]),s&&$n(s,e,6,r);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$n(u,e,6,r)}}function ep(e,t,o=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let a={},l=!1;if(!mt(e)){const s=u=>{const d=ep(u,t,!0);d&&(l=!0,ho(a,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(qt(e)&&n.set(e,null),null):(ht(i)?i.forEach(s=>a[s]=null):ho(a,i),qt(e)&&n.set(e,a),a)}function Fd(e,t){return!e||!fd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(e,t[0].toLowerCase()+t.slice(1))||Tt(e,Ui(t))||Tt(e,t))}function kc(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:a,attrs:l,emit:s,render:u,renderCache:d,props:c,data:h,setupState:f,ctx:p,inheritAttrs:g}=e,v=Wu(e);let b,x;try{if(o.shapeFlag&4){const C=r||n,k=C;b=Vn(u.call(k,C,d,c,f,h,p)),x=l}else{const C=t;b=Vn(C.length>1?C(c,{attrs:l,slots:a,emit:s}):C(c,null)),x=t.props?l:ay(l)}}catch(C){Pl.length=0,yd(C,e,1),b=y(vo)}let E=b;if(x&&g!==!1){const C=Object.keys(x),{shapeFlag:k}=E;C.length&&k&7&&(i&&C.some(O1)&&(x=ly(x,i)),E=qo(E,x,!1,!0))}return o.dirs&&(E=qo(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(o.dirs):o.dirs),o.transition&&Oi(E,o.transition),b=E,Wu(v),b}const ay=e=>{let t;for(const o in e)(o==="class"||o==="style"||fd(o))&&((t||(t={}))[o]=e[o]);return t},ly=(e,t)=>{const o={};for(const n in e)(!O1(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function sy(e,t,o){const{props:n,children:r,component:i}=e,{props:a,children:l,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?j6(n,a,u):!!a;if(s&8){const d=t.dynamicProps;for(let c=0;ce.__isSuspense;function dy(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):Fx(e)}const ft=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),vo=Symbol.for("v-cmt"),Mu=Symbol.for("v-stc"),Pl=[];let tn=null;function _e(e=!1){Pl.push(tn=e?null:[])}function cy(){Pl.pop(),tn=Pl[Pl.length-1]||null}let Yl=1;function U6(e){Yl+=e,e<0&&tn&&(tn.hasOnce=!0)}function op(e){return e.dynamicChildren=Yl>0?tn||Ca:null,cy(),Yl>0&&tn&&tn.push(e),e}function De(e,t,o,n,r,i){return op(O(e,t,o,n,r,i,!0))}function At(e,t,o,n,r){return op(y(e,t,o,n,r,!0))}function Ra(e){return e?e.__v_isVNode===!0:!1}function xi(e,t){return e.type===t.type&&e.key===t.key}const np=({key:e})=>e??null,Ru=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?eo(e)||io(e)||mt(e)?{i:bo,r:e,k:t,f:!!o}:e:null);function O(e,t=null,o=null,n=0,r=null,i=e===ft?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&np(t),ref:t&&Ru(t),scopeId:F5,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:bo};return l?(r3(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=eo(o)?8:16),Yl>0&&!a&&tn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&tn.push(s),s}const y=fy;function fy(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===O5)&&(e=vo),Ra(e)){const l=qo(e,t,!0);return o&&r3(l,o),Yl>0&&!i&&tn&&(l.shapeFlag&6?tn[tn.indexOf(e)]=l:tn.push(l)),l.patchFlag=-2,l}if(Cy(e)&&(e=e.__vccOpts),t){t=n3(t);let{class:l,style:s}=t;l&&!eo(l)&&(t.class=xe(l)),qt(s)&&(q1(s)&&!ht(s)&&(s=ho({},s)),t.style=gd(s))}const a=eo(e)?1:tp(e)?128:k5(e)?64:qt(e)?4:mt(e)?2:0;return O(e,t,o,n,r,a,i,!0)}function n3(e){return e?q1(e)||U5(e)?ho({},e):e:null}function qo(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:a,children:l,transition:s}=e,u=t?po(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&np(u),ref:t&&t.ref?o&&i?ht(i)?i.concat(Ru(t)):[i,Ru(t)]:Ru(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ft?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&Oi(d,s.clone(d)),d}function M(e=" ",t=0){return y(ws,null,e,t)}function SX(e,t){const o=y(Mu,null,e);return o.staticCount=t,o}function qe(e="",t=!1){return t?(_e(),At(vo,null,e)):y(vo,null,e)}function Vn(e){return e==null||typeof e=="boolean"?y(vo):ht(e)?y(ft,null,e.slice()):Ra(e)?Lr(e):y(ws,null,String(e))}function Lr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function r3(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ht(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),r3(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!U5(t)?t._ctx=bo:r===3&&bo&&(bo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else mt(t)?(t={default:t,_ctx:bo},o=32):(t=String(t),n&64?(o=16,t=[M(t)]):o=8);e.children=t,e.shapeFlag|=o}function po(...e){const t={};for(let o=0;oCo||bo;let Uu,I0;{const e=Gh(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};Uu=t("__VUE_INSTANCE_SETTERS__",o=>Co=o),I0=t("__VUE_SSR_SETTERS__",o=>Ed=o)}const Ss=e=>{const t=Co;return Uu(e),e.scope.on(),()=>{e.scope.off(),Uu(t)}},K6=()=>{Co&&Co.scope.off(),Uu(null)};function rp(e){return e.vnode.shapeFlag&4}let Ed=!1;function gy(e,t=!1,o=!1){t&&I0(t);const{props:n,children:r}=e.vnode,i=rp(e);Ux(e,n,i,t),Zx(e,r,o);const a=i?vy(e,t):void 0;return t&&I0(!1),a}function vy(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tx);const{setup:n}=o;if(n){const r=e.setupContext=n.length>1?xy(e):null,i=Ss(e);oi();const a=xs(n,e,0,[e.props,r]);if(ni(),i(),Wh(a)){if(Fa(e)||A5(e),a.then(K6,K6),t)return a.then(l=>{G6(e,l,t)}).catch(l=>{yd(l,e,0)});e.asyncDep=a}else G6(e,a,t)}else ip(e,t)}function G6(e,t,o){mt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=v5(t)),ip(e,o)}let q6;function ip(e,t,o){const n=e.type;if(!e.render){if(!t&&q6&&!n.render){const r=n.template||J1(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=n,u=ho(ho({isCustomElement:i,delimiters:l},a),s);n.render=q6(r,u)}}e.render=n.render||Un}{const r=Ss(e);oi();try{Ix(e)}finally{ni(),r()}}}const by={get(e,t){return Ro(e,"get",""),e[t]}};function xy(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,by),slots:e.slots,emit:e.emit,expose:t}}function kd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v5(ql(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in $l)return $l[o](e)},has(t,o){return o in t||o in $l}})):e.proxy}function yy(e,t=!0){return mt(e)?e.displayName||e.name:e.name||t&&e.__name}function Cy(e){return mt(e)&&"__vccOpts"in e}const D=(e,t)=>xx(e,t,Ed);function m(e,t,o){const n=arguments.length;return n===2?qt(t)&&!ht(t)?Ra(t)?y(e,null,[t]):y(e,t):y(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Ra(o)&&(o=[o]),y(e,t,o))}const wy="3.5.11";/** +**/function xs(e,t,o,n){try{return n?e(...n):e()}catch(r){yd(r,t,o)}}function $n(e,t,o,n){if(mt(e)){const r=xs(e,t,o,n);return r&&Wh(r)&&r.catch(i=>{yd(i,t,o)}),r}if(ht(e)){const r=[];for(let i=0;i>>1,r=To[n],i=Zl(r);i=Zl(o)?To.push(e):To.splice(Sx(t),0,e),e.flags|=1,C5()}}function C5(){Vu||(Vu=y5.then(S5))}function Fx(e){ht(e)?Sa.push(...e):Ir&&e.id===-1?Ir.splice(ga+1,0,e):e.flags&1||(Sa.push(e),e.flags|=1),C5()}function A6(e,t,o=Nn+1){for(;oZl(o)-Zl(n));if(Sa.length=0,Ir){Ir.push(...t);return}for(Ir=t,ga=0;gae.id==null?e.flags&2?-1:1/0:e.id;function S5(e){try{for(Nn=0;Nn{n._d&&U6(-1);const i=Wu(t);let a;try{a=e(...r)}finally{Wu(i),n._d&&U6(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function zo(e,t){if(bo===null)return e;const o=kd(bo),n=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),Ex=e=>e&&(e.defer||e.defer===""),B6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,D6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,$0=(e,t)=>{const o=e&&e.to;return eo(o)?t?t(o):null:o},kx={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,a,l,s,u){const{mc:d,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:v}}=u,b=zl(t.props);let{shapeFlag:x,children:E,dynamicChildren:w}=t;if(e==null){const k=t.el=g(""),_=t.anchor=g("");f(k,o,n),f(_,o,n);const F=(z,A)=>{x&16&&(r&&r.isCE&&(r.ce._teleportTarget=z),d(E,z,A,r,i,a,l,s))},P=()=>{const z=t.target=$0(t.props,p),A=_5(z,t,g,f);z&&(a!=="svg"&&B6(z)?a="svg":a!=="mathml"&&D6(z)&&(a="mathml"),b||(F(z,A),_u(t)))};b&&(F(o,_),_u(t)),Ex(t.props)?jo(P,i):P()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,_=t.target=e.target,F=t.targetAnchor=e.targetAnchor,P=zl(e.props),z=P?o:_,A=P?k:F;if(a==="svg"||B6(_)?a="svg":(a==="mathml"||D6(_))&&(a="mathml"),w?(h(e.dynamicChildren,w,z,r,i,a,l),t3(e,t,!0)):s||c(e,t,z,A,r,i,a,l,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qs(t,o,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=$0(t.props,p);G&&Qs(t,G,null,u,0)}else P&&Qs(t,_,F,u,1);_u(t)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:u,targetAnchor:d,target:c,props:h}=e;if(c&&(r(u),r(d)),i&&r(s),a&16){const f=i||!zl(h);for(let p=0;p{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],R5={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},z5=e=>{const t=e.subTree;return t.component?z5(t.component):t},Mx={name:"BaseTransition",props:R5,setup(e,{slots:t}){const o=xr(),n=M5();return()=>{const r=t.default&&Y1(t.default(),!0);if(!r||!r.length)return;const i=$5(r),a=zt(e),{mode:l}=a;if(n.isLeaving)return Sc(i);const s=T6(i);if(!s)return Sc(i);let u=Xl(s,a,n,o,h=>u=h);s.type!==vo&&Oi(s,u);const d=o.subTree,c=d&&T6(d);if(c&&c.type!==vo&&!xi(s,c)&&z5(o).type!==vo){const h=Xl(c,a,n,o);if(Oi(c,h),l==="out-in"&&s.type!==vo)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete h.afterLeave},Sc(i);l==="in-out"&&s.type!==vo&&(h.delayLeave=(f,p,g)=>{const v=P5(n,c);v[String(c.key)]=c,f[Or]=()=>{p(),f[Or]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}};function $5(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==vo){t=o;break}}return t}const Rx=Mx;function P5(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function Xl(e,t,o,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:x,onAppearCancelled:E}=t,w=String(e.key),k=P5(o,e),_=(z,A)=>{z&&$n(z,n,9,A)},F=(z,A)=>{const G=A[1];_(z,A),ht(z)?z.every(H=>H.length<=1)&&G():z.length<=1&&G()},P={mode:a,persisted:l,beforeEnter(z){let A=s;if(!o.isMounted)if(i)A=v||s;else return;z[Or]&&z[Or](!0);const G=k[w];G&&xi(e,G)&&G.el[Or]&&G.el[Or](),_(A,[z])},enter(z){let A=u,G=d,H=c;if(!o.isMounted)if(i)A=b||u,G=x||d,H=E||c;else return;let X=!1;const N=z[Js]=T=>{X||(X=!0,T?_(H,[z]):_(G,[z]),P.delayedLeave&&P.delayedLeave(),z[Js]=void 0)};A?F(A,[z,N]):N()},leave(z,A){const G=String(e.key);if(z[Js]&&z[Js](!0),o.isUnmounting)return A();_(h,[z]);let H=!1;const X=z[Or]=N=>{H||(H=!0,A(),N?_(g,[z]):_(p,[z]),z[Or]=void 0,k[G]===e&&delete k[G])};k[G]=e,f?F(f,[z,X]):X()},clone(z){const A=Xl(z,t,o,n,r);return r&&r(A),A}};return P}function Sc(e){if(Cd(e))return e=qo(e),e.children=null,e}function T6(e){if(!Cd(e))return k5(e.type)&&e.children?$5(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&mt(o.default))return o.default()}}function Oi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Oi(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 Y1(e,t=!1,o){let n=[],r=0;for(let i=0;i1)for(let i=0;iP0(p,t&&(ht(t)?t[g]:t),o,n,r));return}if(Fa(n)&&!r)return;const i=n.shapeFlag&4?kd(n.component):n.el,a=r?null:i,{i:l,r:s}=e,u=t&&t.r,d=l.refs===Nt?l.refs={}:l.refs,c=l.setupState,h=zt(c),f=c===Nt?()=>!1:p=>Tt(h,p);if(u!=null&&u!==s&&(eo(u)?(d[u]=null,f(u)&&(c[u]=null)):io(u)&&(u.value=null)),mt(s))xs(s,l,12,[a,d]);else{const p=eo(s),g=io(s);if(p||g){const v=()=>{if(e.f){const b=p?f(s)?c[s]:d[s]:s.value;r?ht(b)&&L1(b,i):ht(b)?b.includes(i)||b.push(i):p?(d[s]=[i],f(s)&&(c[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else p?(d[s]=a,f(s)&&(c[s]=a)):g&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,jo(v,o)):v()}}}const Fa=e=>!!e.type.__asyncLoader,Cd=e=>e.type.__isKeepAlive;function Q1(e,t){B5(e,"a",t)}function wd(e,t){B5(e,"da",t)}function B5(e,t,o=Co){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Sd(t,n,o),o){let r=o.parent;for(;r&&r.parent;)Cd(r.parent.vnode)&&$x(n,t,o,r),r=r.parent}}function $x(e,t,o,n){const r=Sd(t,e,n,!0);Go(()=>{L1(n[t],r)},o)}function Sd(e,t,o=Co,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{oi();const l=Ss(o),s=$n(t,o,e,a);return l(),ni(),s});return n?r.unshift(i):r.push(i),i}}const br=e=>(t,o=Co)=>{(!Ed||e==="sp")&&Sd(e,(...n)=>t(...n),o)},ri=br("bm"),ut=br("m"),D5=br("bu"),T5=br("u"),Xt=br("bum"),Go=br("um"),Px=br("sp"),Ax=br("rtg"),Bx=br("rtc");function Dx(e,t=Co){Sd("ec",e,t)}const I5="components";function at(e,t){return L5(I5,e,!0,t)||e}const O5=Symbol.for("v-ndc");function eu(e){return eo(e)?L5(I5,e,!1)||e:e||O5}function L5(e,t,o=!0,n=!1){const r=bo||Co;if(r){const i=r.type;{const l=yy(i,!1);if(l&&(l===t||l===vn(t)||l===md(vn(t))))return i}const a=I6(r[e]||i[e],t)||I6(r.appContext[e],t);return!a&&n?i:a}}function I6(e,t){return e&&(e[t]||e[vn(t)]||e[md(vn(t))])}function Ci(e,t,o,n){let r;const i=o,a=ht(e);if(a||eo(e)){const l=a&&Kr(e);let s=!1;l&&(s=!gn(e),e=vd(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(l,s,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,u=l.length;sRa(t)?!(t.type===vo||t.type===ft&&!H5(t.children)):!0)?e:null}const A0=e=>e?rp(e)?kd(e):A0(e.parent):null,$l=ho(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>A0(e.parent),$root:e=>A0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>J1(e),$forceUpdate:e=>e.f||(e.f=()=>{X1(e.update)}),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>ny.bind(e)}),Fc=(e,t)=>e!==Nt&&!e.__isScriptSetup&&Tt(e,t),Tx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:a,type:l,appContext:s}=e;let u;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Fc(n,t))return a[t]=1,n[t];if(r!==Nt&&Tt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&Tt(u,t))return a[t]=3,i[t];if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];B0&&(a[t]=0)}}const d=$l[t];let c,h;if(d)return t==="$attrs"&&Ro(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];if(h=s.config.globalProperties,Tt(h,t))return h[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Fc(r,t)?(r[t]=o,!0):n!==Nt&&Tt(n,t)?(n[t]=o,!0):Tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,propsOptions:i}},a){let l;return!!o[a]||e!==Nt&&Tt(e,a)||Fc(t,a)||(l=i[0])&&Tt(l,a)||Tt(n,a)||Tt($l,a)||Tt(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Tt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function O6(e){return ht(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let B0=!0;function Ix(e){const t=J1(e),o=e.proxy,n=e.ctx;B0=!1,t.beforeCreate&&L6(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:l,provide:s,inject:u,created:d,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:x,destroyed:E,unmounted:w,render:k,renderTracked:_,renderTriggered:F,errorCaptured:P,serverPrefetch:z,expose:A,inheritAttrs:G,components:H,directives:X,filters:N}=t;if(u&&Ox(u,n,null),a)for(const R in a){const L=a[R];mt(L)&&(n[R]=L.bind(o))}if(r){const R=r.call(o,o);qt(R)&&(e.data=It(R))}if(B0=!0,i)for(const R in i){const L=i[R],ne=mt(L)?L.bind(o,o):mt(L.get)?L.get.bind(o,o):Un,y=!mt(L)&&mt(L.set)?L.set.bind(o):Un,K=D({get:ne,set:y});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>K.value,set:U=>K.value=U})}if(l)for(const R in l)N5(l[R],n,o,R);if(s){const R=mt(s)?s.call(o):s;Reflect.ownKeys(R).forEach(L=>{tt(L,R[L])})}d&&L6(d,e,"c");function O(R,L){ht(L)?L.forEach(ne=>R(ne.bind(o))):L&&R(L.bind(o))}if(O(ri,c),O(ut,h),O(D5,f),O(T5,p),O(Q1,g),O(wd,v),O(Dx,P),O(Bx,_),O(Ax,F),O(Xt,x),O(Go,w),O(Px,z),ht(A))if(A.length){const R=e.exposed||(e.exposed={});A.forEach(L=>{Object.defineProperty(R,L,{get:()=>o[L],set:ne=>o[L]=ne})})}else e.exposed||(e.exposed={});k&&e.render===Un&&(e.render=k),G!=null&&(e.inheritAttrs=G),H&&(e.components=H),X&&(e.directives=X),z&&A5(e)}function Ox(e,t,o=Un){ht(e)&&(e=D0(e));for(const n in e){const r=e[n];let i;qt(r)?"default"in r?i=Oe(r.from||n,r.default,!0):i=Oe(r.from||n):i=Oe(r),io(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function L6(e,t,o){$n(ht(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function N5(e,t,o,n){let r=n.includes(".")?J5(o,n):()=>o[n];if(eo(e)){const i=t[e];mt(i)&<(r,i)}else if(mt(e))lt(r,e.bind(o));else if(qt(e))if(ht(e))e.forEach(i=>N5(i,t,o,n));else{const i=mt(e.handler)?e.handler.bind(o):t[e.handler];mt(i)&<(r,i,e)}}function J1(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(u=>ju(s,u,a,!0)),ju(s,t,a)),qt(t)&&i.set(t,s),s}function ju(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&ju(e,i,o,!0),r&&r.forEach(a=>ju(e,a,o,!0));for(const a in t)if(!(n&&a==="expose")){const l=Lx[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Lx={data:H6,props:N6,emits:N6,methods:Cl,computed:Cl,beforeCreate:Bo,created:Bo,beforeMount:Bo,mounted:Bo,beforeUpdate:Bo,updated:Bo,beforeDestroy:Bo,beforeUnmount:Bo,destroyed:Bo,unmounted:Bo,activated:Bo,deactivated:Bo,errorCaptured:Bo,serverPrefetch:Bo,components:Cl,directives:Cl,watch:Nx,provide:H6,inject:Hx};function H6(e,t){return t?e?function(){return ho(mt(e)?e.call(this,this):e,mt(t)?t.call(this,this):t)}:t:e}function Hx(e,t){return Cl(D0(e),D0(t))}function D0(e){if(ht(e)){const t={};for(let o=0;o1)return o&&mt(t)?t.call(n&&n.proxy):t}}function jx(){return!!(Co||bo||zi)}const W5={},j5=()=>Object.create(W5),U5=e=>Object.getPrototypeOf(e)===W5;function Ux(e,t,o,n=!1){const r={},i=j5();e.propsDefaults=Object.create(null),K5(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:m5(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Kx(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,l=zt(r),[s]=e.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let c=0;c{s=!0;const[h,f]=G5(c,t,!0);ho(a,h),f&&l.push(...f)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return qt(e)&&n.set(e,Ca),Ca;if(ht(i))for(let d=0;de[0]==="_"||e==="$stable",e3=e=>ht(e)?e.map(Vn):[Vn(e)],qx=(e,t,o)=>{if(t._n)return t;const n=Z((...r)=>e3(t(...r)),o);return n._c=!1,n},Z5=(e,t,o)=>{const n=e._ctx;for(const r in e){if(q5(r))continue;const i=e[r];if(mt(i))t[r]=qx(r,i,n);else if(i!=null){const a=e3(i);t[r]=()=>a}}},X5=(e,t)=>{const o=e3(t);e.slots.default=()=>o},Y5=(e,t,o)=>{for(const n in t)(o||n!=="_")&&(e[n]=t[n])},Zx=(e,t,o)=>{const n=e.slots=j5();if(e.vnode.shapeFlag&32){const r=t._;r?(Y5(n,t,o),o&&Kh(n,"_",r,!0)):Z5(t,n)}else t&&X5(e,t)},Xx=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,a=Nt;if(n.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:Y5(r,t,o):(i=!t.$stable,Z5(t,r)),a=t}else t&&(X5(e,t),a={default:1});if(i)for(const l in r)!q5(l)&&a[l]==null&&delete r[l]},jo=dy;function Yx(e){return Qx(e)}function Qx(e,t){const o=Gh();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:a,createText:l,createComment:s,setText:u,setElementText:d,parentNode:c,nextSibling:h,setScopeId:f=Un,insertStaticContent:p}=e,g=(j,V,ge,we=null,le=null,re=null,he=void 0,oe=null,ie=!!V.dynamicChildren)=>{if(j===V)return;j&&!xi(j,V)&&(we=fe(j),U(j,le,re,!0),j=null),V.patchFlag===-2&&(ie=!1,V.dynamicChildren=null);const{type:ce,ref:ae,shapeFlag:Q}=V;switch(ce){case ws:v(j,V,ge,we);break;case vo:b(j,V,ge,we);break;case Mu:j==null&&x(V,ge,we,he);break;case ft:H(j,V,ge,we,le,re,he,oe,ie);break;default:Q&1?k(j,V,ge,we,le,re,he,oe,ie):Q&6?X(j,V,ge,we,le,re,he,oe,ie):(Q&64||Q&128)&&ce.process(j,V,ge,we,le,re,he,oe,ie,q)}ae!=null&&le&&P0(ae,j&&j.ref,re,V||j,!V)},v=(j,V,ge,we)=>{if(j==null)n(V.el=l(V.children),ge,we);else{const le=V.el=j.el;V.children!==j.children&&u(le,V.children)}},b=(j,V,ge,we)=>{j==null?n(V.el=s(V.children||""),ge,we):V.el=j.el},x=(j,V,ge,we)=>{[j.el,j.anchor]=p(j.children,V,ge,we,j.el,j.anchor)},E=({el:j,anchor:V},ge,we)=>{let le;for(;j&&j!==V;)le=h(j),n(j,ge,we),j=le;n(V,ge,we)},w=({el:j,anchor:V})=>{let ge;for(;j&&j!==V;)ge=h(j),r(j),j=ge;r(V)},k=(j,V,ge,we,le,re,he,oe,ie)=>{V.type==="svg"?he="svg":V.type==="math"&&(he="mathml"),j==null?_(V,ge,we,le,re,he,oe,ie):z(j,V,le,re,he,oe,ie)},_=(j,V,ge,we,le,re,he,oe)=>{let ie,ce;const{props:ae,shapeFlag:Q,transition:de,dirs:ve}=j;if(ie=j.el=a(j.type,re,ae&&ae.is,ae),Q&8?d(ie,j.children):Q&16&&P(j.children,ie,null,we,le,Ec(j,re),he,oe),ve&&ci(j,null,we,"created"),F(ie,j,j.scopeId,he,we),ae){for(const Ge in ae)Ge!=="value"&&!_l(Ge)&&i(ie,Ge,null,ae[Ge],re,we);"value"in ae&&i(ie,"value",null,ae.value,re),(ce=ae.onVnodeBeforeMount)&&In(ce,we,j)}ve&&ci(j,null,we,"beforeMount");const Be=Jx(le,de);Be&&de.beforeEnter(ie),n(ie,V,ge),((ce=ae&&ae.onVnodeMounted)||Be||ve)&&jo(()=>{ce&&In(ce,we,j),Be&&de.enter(ie),ve&&ci(j,null,we,"mounted")},le)},F=(j,V,ge,we,le)=>{if(ge&&f(j,ge),we)for(let re=0;re{for(let ce=ie;ce{const oe=V.el=j.el;let{patchFlag:ie,dynamicChildren:ce,dirs:ae}=V;ie|=j.patchFlag&16;const Q=j.props||Nt,de=V.props||Nt;let ve;if(ge&&fi(ge,!1),(ve=de.onVnodeBeforeUpdate)&&In(ve,ge,V,j),ae&&ci(V,j,ge,"beforeUpdate"),ge&&fi(ge,!0),(Q.innerHTML&&de.innerHTML==null||Q.textContent&&de.textContent==null)&&d(oe,""),ce?A(j.dynamicChildren,ce,oe,ge,we,Ec(V,le),re):he||L(j,V,oe,null,ge,we,Ec(V,le),re,!1),ie>0){if(ie&16)G(oe,Q,de,ge,le);else if(ie&2&&Q.class!==de.class&&i(oe,"class",null,de.class,le),ie&4&&i(oe,"style",Q.style,de.style,le),ie&8){const Be=V.dynamicProps;for(let Ge=0;Ge{ve&&In(ve,ge,V,j),ae&&ci(V,j,ge,"updated")},we)},A=(j,V,ge,we,le,re,he)=>{for(let oe=0;oe{if(V!==ge){if(V!==Nt)for(const re in V)!_l(re)&&!(re in ge)&&i(j,re,V[re],null,le,we);for(const re in ge){if(_l(re))continue;const he=ge[re],oe=V[re];he!==oe&&re!=="value"&&i(j,re,oe,he,le,we)}"value"in ge&&i(j,"value",V.value,ge.value,le)}},H=(j,V,ge,we,le,re,he,oe,ie)=>{const ce=V.el=j?j.el:l(""),ae=V.anchor=j?j.anchor:l("");let{patchFlag:Q,dynamicChildren:de,slotScopeIds:ve}=V;ve&&(oe=oe?oe.concat(ve):ve),j==null?(n(ce,ge,we),n(ae,ge,we),P(V.children||[],ge,ae,le,re,he,oe,ie)):Q>0&&Q&64&&de&&j.dynamicChildren?(A(j.dynamicChildren,de,ge,le,re,he,oe),(V.key!=null||le&&V===le.subTree)&&t3(j,V,!0)):L(j,V,ge,ae,le,re,he,oe,ie)},X=(j,V,ge,we,le,re,he,oe,ie)=>{V.slotScopeIds=oe,j==null?V.shapeFlag&512?le.ctx.activate(V,ge,we,he,ie):N(V,ge,we,le,re,he,ie):T(j,V,ie)},N=(j,V,ge,we,le,re,he)=>{const oe=j.component=my(j,we,le);if(Cd(j)&&(oe.ctx.renderer=q),gy(oe,!1,he),oe.asyncDep){if(le&&le.registerDep(oe,O,he),!j.el){const ie=oe.subTree=C(vo);b(null,ie,V,ge)}}else O(oe,j,V,ge,le,re,he)},T=(j,V,ge)=>{const we=V.component=j.component;if(sy(j,V,ge))if(we.asyncDep&&!we.asyncResolved){R(we,V,ge);return}else we.next=V,we.update();else V.el=j.el,we.vnode=V},O=(j,V,ge,we,le,re,he)=>{const oe=()=>{if(j.isMounted){let{next:Q,bu:de,u:ve,parent:Be,vnode:Ge}=j;{const Qe=Q5(j);if(Qe){Q&&(Q.el=Ge.el,R(j,Q,he)),Qe.asyncDep.then(()=>{j.isUnmounted||oe()});return}}let et=Q,st;fi(j,!1),Q?(Q.el=Ge.el,R(j,Q,he)):Q=Ge,de&&bc(de),(st=Q.props&&Q.props.onVnodeBeforeUpdate)&&In(st,Be,Q,Ge),fi(j,!0);const Ye=kc(j),pt=j.subTree;j.subTree=Ye,g(pt,Ye,c(pt.el),fe(pt),j,le,re),Q.el=Ye.el,et===null&&uy(j,Ye.el),ve&&jo(ve,le),(st=Q.props&&Q.props.onVnodeUpdated)&&jo(()=>In(st,Be,Q,Ge),le)}else{let Q;const{el:de,props:ve}=V,{bm:Be,m:Ge,parent:et,root:st,type:Ye}=j,pt=Fa(V);if(fi(j,!1),Be&&bc(Be),!pt&&(Q=ve&&ve.onVnodeBeforeMount)&&In(Q,et,V),fi(j,!0),de&&Ne){const Qe=()=>{j.subTree=kc(j),Ne(de,j.subTree,j,le,null)};pt&&Ye.__asyncHydrate?Ye.__asyncHydrate(de,j,Qe):Qe()}else{st.ce&&st.ce._injectChildStyle(Ye);const Qe=j.subTree=kc(j);g(null,Qe,ge,we,j,le,re),V.el=Qe.el}if(Ge&&jo(Ge,le),!pt&&(Q=ve&&ve.onVnodeMounted)){const Qe=V;jo(()=>In(Q,et,Qe),le)}(V.shapeFlag&256||et&&Fa(et.vnode)&&et.vnode.shapeFlag&256)&&j.a&&jo(j.a,le),j.isMounted=!0,V=ge=we=null}};j.scope.on();const ie=j.effect=new t5(oe);j.scope.off();const ce=j.update=ie.run.bind(ie),ae=j.job=ie.runIfDirty.bind(ie);ae.i=j,ae.id=j.uid,ie.scheduler=()=>X1(ae),fi(j,!0),ce()},R=(j,V,ge)=>{V.component=j;const we=j.vnode.props;j.vnode=V,j.next=null,Kx(j,V.props,we,ge),Xx(j,V.children,ge),oi(),A6(j),ni()},L=(j,V,ge,we,le,re,he,oe,ie=!1)=>{const ce=j&&j.children,ae=j?j.shapeFlag:0,Q=V.children,{patchFlag:de,shapeFlag:ve}=V;if(de>0){if(de&128){y(ce,Q,ge,we,le,re,he,oe,ie);return}else if(de&256){ne(ce,Q,ge,we,le,re,he,oe,ie);return}}ve&8?(ae&16&&pe(ce,le,re),Q!==ce&&d(ge,Q)):ae&16?ve&16?y(ce,Q,ge,we,le,re,he,oe,ie):pe(ce,le,re,!0):(ae&8&&d(ge,""),ve&16&&P(Q,ge,we,le,re,he,oe,ie))},ne=(j,V,ge,we,le,re,he,oe,ie)=>{j=j||Ca,V=V||Ca;const ce=j.length,ae=V.length,Q=Math.min(ce,ae);let de;for(de=0;deae?pe(j,le,re,!0,!1,Q):P(V,ge,we,le,re,he,oe,ie,Q)},y=(j,V,ge,we,le,re,he,oe,ie)=>{let ce=0;const ae=V.length;let Q=j.length-1,de=ae-1;for(;ce<=Q&&ce<=de;){const ve=j[ce],Be=V[ce]=ie?Lr(V[ce]):Vn(V[ce]);if(xi(ve,Be))g(ve,Be,ge,null,le,re,he,oe,ie);else break;ce++}for(;ce<=Q&&ce<=de;){const ve=j[Q],Be=V[de]=ie?Lr(V[de]):Vn(V[de]);if(xi(ve,Be))g(ve,Be,ge,null,le,re,he,oe,ie);else break;Q--,de--}if(ce>Q){if(ce<=de){const ve=de+1,Be=vede)for(;ce<=Q;)U(j[ce],le,re,!0),ce++;else{const ve=ce,Be=ce,Ge=new Map;for(ce=Be;ce<=de;ce++){const te=V[ce]=ie?Lr(V[ce]):Vn(V[ce]);te.key!=null&&Ge.set(te.key,ce)}let et,st=0;const Ye=de-Be+1;let pt=!1,Qe=0;const Le=new Array(Ye);for(ce=0;ce=Ye){U(te,le,re,!0);continue}let me;if(te.key!=null)me=Ge.get(te.key);else for(et=Be;et<=de;et++)if(Le[et-Be]===0&&xi(te,V[et])){me=et;break}me===void 0?U(te,le,re,!0):(Le[me-Be]=ce+1,me>=Qe?Qe=me:pt=!0,g(te,V[me],ge,null,le,re,he,oe,ie),st++)}const ot=pt?ey(Le):Ca;for(et=ot.length-1,ce=Ye-1;ce>=0;ce--){const te=Be+ce,me=V[te],ze=te+1{const{el:re,type:he,transition:oe,children:ie,shapeFlag:ce}=j;if(ce&6){K(j.component.subTree,V,ge,we);return}if(ce&128){j.suspense.move(V,ge,we);return}if(ce&64){he.move(j,V,ge,q);return}if(he===ft){n(re,V,ge);for(let Q=0;Qoe.enter(re),le);else{const{leave:Q,delayLeave:de,afterLeave:ve}=oe,Be=()=>n(re,V,ge),Ge=()=>{Q(re,()=>{Be(),ve&&ve()})};de?de(re,Be,Ge):Ge()}else n(re,V,ge)},U=(j,V,ge,we=!1,le=!1)=>{const{type:re,props:he,ref:oe,children:ie,dynamicChildren:ce,shapeFlag:ae,patchFlag:Q,dirs:de,cacheIndex:ve}=j;if(Q===-2&&(le=!1),oe!=null&&P0(oe,null,ge,j,!0),ve!=null&&(V.renderCache[ve]=void 0),ae&256){V.ctx.deactivate(j);return}const Be=ae&1&&de,Ge=!Fa(j);let et;if(Ge&&(et=he&&he.onVnodeBeforeUnmount)&&In(et,V,j),ae&6)Fe(j.component,ge,we);else{if(ae&128){j.suspense.unmount(ge,we);return}Be&&ci(j,null,V,"beforeUnmount"),ae&64?j.type.remove(j,V,ge,q,we):ce&&!ce.hasOnce&&(re!==ft||Q>0&&Q&64)?pe(ce,V,ge,!1,!0):(re===ft&&Q&384||!le&&ae&16)&&pe(ie,V,ge),we&&ue(j)}(Ge&&(et=he&&he.onVnodeUnmounted)||Be)&&jo(()=>{et&&In(et,V,j),Be&&ci(j,null,V,"unmounted")},ge)},ue=j=>{const{type:V,el:ge,anchor:we,transition:le}=j;if(V===ft){se(ge,we);return}if(V===Mu){w(j);return}const re=()=>{r(ge),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(j.shapeFlag&1&&le&&!le.persisted){const{leave:he,delayLeave:oe}=le,ie=()=>he(ge,re);oe?oe(j.el,re,ie):ie()}else re()},se=(j,V)=>{let ge;for(;j!==V;)ge=h(j),r(j),j=ge;r(V)},Fe=(j,V,ge)=>{const{bum:we,scope:le,job:re,subTree:he,um:oe,m:ie,a:ce}=j;W6(ie),W6(ce),we&&bc(we),le.stop(),re&&(re.flags|=8,U(he,j,V,ge)),oe&&jo(oe,V),jo(()=>{j.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},pe=(j,V,ge,we=!1,le=!1,re=0)=>{for(let he=re;he{if(j.shapeFlag&6)return fe(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const V=h(j.anchor||j.el),ge=V&&V[E5];return ge?h(ge):V};let Ce=!1;const ee=(j,V,ge)=>{j==null?V._vnode&&U(V._vnode,null,null,!0):g(V._vnode||null,j,V,null,null,null,ge),V._vnode=j,Ce||(Ce=!0,A6(),w5(),Ce=!1)},q={p:g,um:U,m:K,r:ue,mt:N,mc:P,pc:L,pbc:A,n:fe,o:e};let Te,Ne;return{render:ee,hydrate:Te,createApp:Wx(ee,Te)}}function Ec({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function fi({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function t3(e,t,o=!1){const n=e.children,r=t.children;if(ht(n)&&ht(r))for(let i=0;i>1,e[o[l]]0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function Q5(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q5(t)}function W6(e){if(e)for(let t=0;tOe(ty);function Et(e,t){return o3(e,null,t)}function lt(e,t,o){return o3(e,t,o)}function o3(e,t,o=Nt){const{immediate:n,deep:r,flush:i,once:a}=o,l=ho({},o);let s;if(Ed)if(i==="sync"){const h=oy();s=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)l.once=!0;else{const h=()=>{};return h.stop=Un,h.resume=Un,h.pause=Un,h}const u=Co;l.call=(h,f,p)=>$n(h,u,f,p);let d=!1;i==="post"?l.scheduler=h=>{jo(h,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(h,f)=>{f?h():X1(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=Cx(e,t,l);return s&&s.push(c),c}function ny(e,t,o){const n=this.proxy,r=eo(e)?e.includes(".")?J5(n,e):()=>n[e]:e.bind(n,n);let i;mt(t)?i=t:(i=t.handler,o=t);const a=Ss(this),l=o3(r,i.bind(n),o);return a(),l}function J5(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vn(t)}Modifiers`]||e[`${Ui(t)}Modifiers`];function iy(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||Nt;let r=o;const i=t.startsWith("update:"),a=i&&ry(n,t.slice(7));a&&(a.trim&&(r=o.map(d=>eo(d)?d.trim():d)),a.number&&(r=o.map(Ib)));let l,s=n[l=vc(t)]||n[l=vc(vn(t))];!s&&i&&(s=n[l=vc(Ui(t))]),s&&$n(s,e,6,r);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$n(u,e,6,r)}}function ep(e,t,o=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let a={},l=!1;if(!mt(e)){const s=u=>{const d=ep(u,t,!0);d&&(l=!0,ho(a,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(qt(e)&&n.set(e,null),null):(ht(i)?i.forEach(s=>a[s]=null):ho(a,i),qt(e)&&n.set(e,a),a)}function Fd(e,t){return!e||!fd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(e,t[0].toLowerCase()+t.slice(1))||Tt(e,Ui(t))||Tt(e,t))}function kc(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:a,attrs:l,emit:s,render:u,renderCache:d,props:c,data:h,setupState:f,ctx:p,inheritAttrs:g}=e,v=Wu(e);let b,x;try{if(o.shapeFlag&4){const w=r||n,k=w;b=Vn(u.call(k,w,d,c,f,h,p)),x=l}else{const w=t;b=Vn(w.length>1?w(c,{attrs:l,slots:a,emit:s}):w(c,null)),x=t.props?l:ay(l)}}catch(w){Pl.length=0,yd(w,e,1),b=C(vo)}let E=b;if(x&&g!==!1){const w=Object.keys(x),{shapeFlag:k}=E;w.length&&k&7&&(i&&w.some(O1)&&(x=ly(x,i)),E=qo(E,x,!1,!0))}return o.dirs&&(E=qo(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(o.dirs):o.dirs),o.transition&&Oi(E,o.transition),b=E,Wu(v),b}const ay=e=>{let t;for(const o in e)(o==="class"||o==="style"||fd(o))&&((t||(t={}))[o]=e[o]);return t},ly=(e,t)=>{const o={};for(const n in e)(!O1(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function sy(e,t,o){const{props:n,children:r,component:i}=e,{props:a,children:l,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?j6(n,a,u):!!a;if(s&8){const d=t.dynamicProps;for(let c=0;ce.__isSuspense;function dy(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):Fx(e)}const ft=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),vo=Symbol.for("v-cmt"),Mu=Symbol.for("v-stc"),Pl=[];let tn=null;function Me(e=!1){Pl.push(tn=e?null:[])}function cy(){Pl.pop(),tn=Pl[Pl.length-1]||null}let Yl=1;function U6(e){Yl+=e,e<0&&tn&&(tn.hasOnce=!0)}function op(e){return e.dynamicChildren=Yl>0?tn||Ca:null,cy(),Yl>0&&tn&&tn.push(e),e}function De(e,t,o,n,r,i){return op(I(e,t,o,n,r,i,!0))}function At(e,t,o,n,r){return op(C(e,t,o,n,r,!0))}function Ra(e){return e?e.__v_isVNode===!0:!1}function xi(e,t){return e.type===t.type&&e.key===t.key}const np=({key:e})=>e??null,Ru=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?eo(e)||io(e)||mt(e)?{i:bo,r:e,k:t,f:!!o}:e:null);function I(e,t=null,o=null,n=0,r=null,i=e===ft?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&np(t),ref:t&&Ru(t),scopeId:F5,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:bo};return l?(r3(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=eo(o)?8:16),Yl>0&&!a&&tn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&tn.push(s),s}const C=fy;function fy(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===O5)&&(e=vo),Ra(e)){const l=qo(e,t,!0);return o&&r3(l,o),Yl>0&&!i&&tn&&(l.shapeFlag&6?tn[tn.indexOf(e)]=l:tn.push(l)),l.patchFlag=-2,l}if(Cy(e)&&(e=e.__vccOpts),t){t=n3(t);let{class:l,style:s}=t;l&&!eo(l)&&(t.class=xe(l)),qt(s)&&(q1(s)&&!ht(s)&&(s=ho({},s)),t.style=gd(s))}const a=eo(e)?1:tp(e)?128:k5(e)?64:qt(e)?4:mt(e)?2:0;return I(e,t,o,n,r,a,i,!0)}function n3(e){return e?q1(e)||U5(e)?ho({},e):e:null}function qo(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:a,children:l,transition:s}=e,u=t?po(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&np(u),ref:t&&t.ref?o&&i?ht(i)?i.concat(Ru(t)):[i,Ru(t)]:Ru(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ft?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&Oi(d,s.clone(d)),d}function M(e=" ",t=0){return C(ws,null,e,t)}function $X(e,t){const o=C(Mu,null,e);return o.staticCount=t,o}function Ke(e="",t=!1){return t?(Me(),At(vo,null,e)):C(vo,null,e)}function Vn(e){return e==null||typeof e=="boolean"?C(vo):ht(e)?C(ft,null,e.slice()):Ra(e)?Lr(e):C(ws,null,String(e))}function Lr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function r3(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ht(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),r3(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!U5(t)?t._ctx=bo:r===3&&bo&&(bo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else mt(t)?(t={default:t,_ctx:bo},o=32):(t=String(t),n&64?(o=16,t=[M(t)]):o=8);e.children=t,e.shapeFlag|=o}function po(...e){const t={};for(let o=0;oCo||bo;let Uu,I0;{const e=Gh(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};Uu=t("__VUE_INSTANCE_SETTERS__",o=>Co=o),I0=t("__VUE_SSR_SETTERS__",o=>Ed=o)}const Ss=e=>{const t=Co;return Uu(e),e.scope.on(),()=>{e.scope.off(),Uu(t)}},K6=()=>{Co&&Co.scope.off(),Uu(null)};function rp(e){return e.vnode.shapeFlag&4}let Ed=!1;function gy(e,t=!1,o=!1){t&&I0(t);const{props:n,children:r}=e.vnode,i=rp(e);Ux(e,n,i,t),Zx(e,r,o);const a=i?vy(e,t):void 0;return t&&I0(!1),a}function vy(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tx);const{setup:n}=o;if(n){const r=e.setupContext=n.length>1?xy(e):null,i=Ss(e);oi();const a=xs(n,e,0,[e.props,r]);if(ni(),i(),Wh(a)){if(Fa(e)||A5(e),a.then(K6,K6),t)return a.then(l=>{G6(e,l,t)}).catch(l=>{yd(l,e,0)});e.asyncDep=a}else G6(e,a,t)}else ip(e,t)}function G6(e,t,o){mt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=v5(t)),ip(e,o)}let q6;function ip(e,t,o){const n=e.type;if(!e.render){if(!t&&q6&&!n.render){const r=n.template||J1(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=n,u=ho(ho({isCustomElement:i,delimiters:l},a),s);n.render=q6(r,u)}}e.render=n.render||Un}{const r=Ss(e);oi();try{Ix(e)}finally{ni(),r()}}}const by={get(e,t){return Ro(e,"get",""),e[t]}};function xy(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,by),slots:e.slots,emit:e.emit,expose:t}}function kd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v5(ql(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in $l)return $l[o](e)},has(t,o){return o in t||o in $l}})):e.proxy}function yy(e,t=!0){return mt(e)?e.displayName||e.name:e.name||t&&e.__name}function Cy(e){return mt(e)&&"__vccOpts"in e}const D=(e,t)=>xx(e,t,Ed);function m(e,t,o){const n=arguments.length;return n===2?qt(t)&&!ht(t)?Ra(t)?C(e,null,[t]):C(e,t):C(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Ra(o)&&(o=[o]),C(e,t,o))}const wy="3.5.11";/** * @vue/runtime-dom v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let O0;const Z6=typeof window<"u"&&window.trustedTypes;if(Z6)try{O0=Z6.createPolicy("vue",{createHTML:e=>e})}catch{}const ap=O0?e=>O0.createHTML(e):e=>e,Sy="http://www.w3.org/2000/svg",Fy="http://www.w3.org/1998/Math/MathML",cr=typeof document<"u"?document:null,X6=cr&&cr.createElement("template"),Ey={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r=t==="svg"?cr.createElementNS(Sy,e):t==="mathml"?cr.createElementNS(Fy,e):o?cr.createElement(e,{is:o}):cr.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>cr.createTextNode(e),createComment:e=>cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const a=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===i||!(r=r.nextSibling)););else{X6.innerHTML=ap(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=X6.content;if(n==="svg"||n==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},$r="transition",rl="animation",za=Symbol("_vtc"),lp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sp=ho({},R5,lp),ky=e=>(e.displayName="Transition",e.props=sp,e),mo=ky((e,{slots:t})=>m(Rx,up(e),t)),hi=(e,t=[])=>{ht(e)?e.forEach(o=>o(...t)):e&&e(...t)},Y6=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function up(e){const t={};for(const V in e)V in lp||(t[V]=e[V]);if(e.css===!1)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:c=`${o}-leave-from`,leaveActiveClass:h=`${o}-leave-active`,leaveToClass:f=`${o}-leave-to`}=e,p=_y(r),g=p&&p[0],v=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:E,onLeave:C,onLeaveCancelled:k,onBeforeAppear:_=b,onAppear:F=x,onAppearCancelled:P=E}=t,z=(V,K,N)=>{Dr(V,K?d:l),Dr(V,K?u:a),N&&N()},B=(V,K)=>{V._isLeaving=!1,Dr(V,c),Dr(V,f),Dr(V,h),K&&K()},j=V=>(K,N)=>{const T=V?F:x,L=()=>z(K,V,N);hi(T,[K,L]),Q6(()=>{Dr(K,V?s:i),dr(K,V?d:l),Y6(T)||J6(K,n,g,L)})};return ho(t,{onBeforeEnter(V){hi(b,[V]),dr(V,i),dr(V,a)},onBeforeAppear(V){hi(_,[V]),dr(V,s),dr(V,u)},onEnter:j(!1),onAppear:j(!0),onLeave(V,K){V._isLeaving=!0;const N=()=>B(V,K);dr(V,c),dr(V,h),cp(),Q6(()=>{V._isLeaving&&(Dr(V,c),dr(V,f),Y6(C)||J6(V,n,v,N))}),hi(C,[V,N])},onEnterCancelled(V){z(V,!1),hi(E,[V])},onAppearCancelled(V){z(V,!0),hi(P,[V])},onLeaveCancelled(V){B(V),hi(k,[V])}})}function _y(e){if(e==null)return null;if(qt(e))return[_c(e.enter),_c(e.leave)];{const t=_c(e);return[t,t]}}function _c(e){return Ob(e)}function dr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[za]||(e[za]=new Set)).add(t)}function Dr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[za];o&&(o.delete(t),o.size||(e[za]=void 0))}function Q6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let My=0;function J6(e,t,o,n){const r=e._endId=++My,i=()=>{r===e._endId&&n()};if(o!=null)return setTimeout(i,o);const{type:a,timeout:l,propCount:s}=dp(e,t);if(!a)return n();const u=a+"end";let d=0;const c=()=>{e.removeEventListener(u,h),i()},h=f=>{f.target===e&&++d>=s&&c()};setTimeout(()=>{d(o[p]||"").split(", "),r=n(`${$r}Delay`),i=n(`${$r}Duration`),a=e2(r,i),l=n(`${rl}Delay`),s=n(`${rl}Duration`),u=e2(l,s);let d=null,c=0,h=0;t===$r?a>0&&(d=$r,c=a,h=i.length):t===rl?u>0&&(d=rl,c=u,h=s.length):(c=Math.max(a,u),d=c>0?a>u?$r:rl:null,h=d?d===$r?i.length:s.length:0);const f=d===$r&&/\b(transform|all)(,|$)/.test(n(`${$r}Property`).toString());return{type:d,timeout:c,propCount:h,hasTransform:f}}function e2(e,t){for(;e.lengtht2(o)+t2(e[n])))}function t2(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cp(){return document.body.offsetHeight}function Ry(e,t,o){const n=e[za];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ku=Symbol("_vod"),fp=Symbol("_vsh"),bn={beforeMount(e,{value:t},{transition:o}){e[Ku]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):il(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),il(e,!0),n.enter(e)):n.leave(e,()=>{il(e,!1)}):il(e,t))},beforeUnmount(e,{value:t}){il(e,t)}};function il(e,t){e.style.display=t?e[Ku]:"none",e[fp]=!t}const zy=Symbol(""),$y=/(^|;)\s*display\s*:/;function Py(e,t,o){const n=e.style,r=eo(o);let i=!1;if(o&&!r){if(t)if(eo(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();o[l]==null&&zu(n,l,"")}else for(const a in t)o[a]==null&&zu(n,a,"");for(const a in o)a==="display"&&(i=!0),zu(n,a,o[a])}else if(r){if(t!==o){const a=n[zy];a&&(o+=";"+a),n.cssText=o,i=$y.test(o)}}else t&&e.removeAttribute("style");Ku in e&&(e[Ku]=i?n.display:"",e[fp]&&(n.display="none"))}const o2=/\s*!important$/;function zu(e,t,o){if(ht(o))o.forEach(n=>zu(e,t,n));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=Ay(e,t);o2.test(o)?e.setProperty(Ui(n),o.replace(o2,""),"important"):e[n]=o}}const n2=["Webkit","Moz","ms"],Mc={};function Ay(e,t){const o=Mc[t];if(o)return o;let n=vn(t);if(n!=="filter"&&n in e)return Mc[t]=n;n=md(n);for(let r=0;rRc||(Oy.then(()=>Rc=0),Rc=Date.now());function Hy(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;$n(Ny(n,o.value),t,5,[n])};return o.value=e,o.attached=Ly(),o}function Ny(e,t){if(ht(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const u2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vy=(e,t,o,n,r,i)=>{const a=r==="svg";t==="class"?Ry(e,n,a):t==="style"?Py(e,o,n):fd(t)?O1(t)||Ty(e,t,o,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wy(e,t,n,a))?(a2(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&i2(e,t,n,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!eo(n))?a2(e,vn(t),n):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),i2(e,t,n,a))};function Wy(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&u2(t)&&mt(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return u2(t)&&eo(o)?!1:t in e}const hp=new WeakMap,pp=new WeakMap,Gu=Symbol("_moveCb"),d2=Symbol("_enterCb"),jy=e=>(delete e.props.mode,e),Uy=jy({name:"TransitionGroup",props:ho({},sp,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=xr(),n=M5();let r,i;return T5(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Zy(r[0].el,o.vnode.el,a))return;r.forEach(Ky),r.forEach(Gy);const l=r.filter(qy);cp(),l.forEach(s=>{const u=s.el,d=u.style;dr(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[Gu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Gu]=null,Dr(u,a))};u.addEventListener("transitionend",c)})}),()=>{const a=zt(e),l=up(a);let s=a.tag||ft;if(r=[],i)for(let u=0;u{l.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),o.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=dp(n);return i.removeChild(n),a}const Xy=ho({patchProp:Vy},Ey);let c2;function Yy(){return c2||(c2=Yx(Xy))}const mp=(...e)=>{const t=Yy().createApp(...e),{mount:o}=t;return t.mount=n=>{const r=Jy(n);if(!r)return;const i=t._component;!mt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=o(r,!1,Qy(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function Qy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jy(e){return eo(e)?document.querySelector(e):e}var eC=!1;/*! +**/let O0;const Z6=typeof window<"u"&&window.trustedTypes;if(Z6)try{O0=Z6.createPolicy("vue",{createHTML:e=>e})}catch{}const ap=O0?e=>O0.createHTML(e):e=>e,Sy="http://www.w3.org/2000/svg",Fy="http://www.w3.org/1998/Math/MathML",cr=typeof document<"u"?document:null,X6=cr&&cr.createElement("template"),Ey={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r=t==="svg"?cr.createElementNS(Sy,e):t==="mathml"?cr.createElementNS(Fy,e):o?cr.createElement(e,{is:o}):cr.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>cr.createTextNode(e),createComment:e=>cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const a=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===i||!(r=r.nextSibling)););else{X6.innerHTML=ap(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=X6.content;if(n==="svg"||n==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},$r="transition",rl="animation",za=Symbol("_vtc"),lp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sp=ho({},R5,lp),ky=e=>(e.displayName="Transition",e.props=sp,e),mo=ky((e,{slots:t})=>m(Rx,up(e),t)),hi=(e,t=[])=>{ht(e)?e.forEach(o=>o(...t)):e&&e(...t)},Y6=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function up(e){const t={};for(const H in e)H in lp||(t[H]=e[H]);if(e.css===!1)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:c=`${o}-leave-from`,leaveActiveClass:h=`${o}-leave-active`,leaveToClass:f=`${o}-leave-to`}=e,p=_y(r),g=p&&p[0],v=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:E,onLeave:w,onLeaveCancelled:k,onBeforeAppear:_=b,onAppear:F=x,onAppearCancelled:P=E}=t,z=(H,X,N)=>{Dr(H,X?d:l),Dr(H,X?u:a),N&&N()},A=(H,X)=>{H._isLeaving=!1,Dr(H,c),Dr(H,f),Dr(H,h),X&&X()},G=H=>(X,N)=>{const T=H?F:x,O=()=>z(X,H,N);hi(T,[X,O]),Q6(()=>{Dr(X,H?s:i),dr(X,H?d:l),Y6(T)||J6(X,n,g,O)})};return ho(t,{onBeforeEnter(H){hi(b,[H]),dr(H,i),dr(H,a)},onBeforeAppear(H){hi(_,[H]),dr(H,s),dr(H,u)},onEnter:G(!1),onAppear:G(!0),onLeave(H,X){H._isLeaving=!0;const N=()=>A(H,X);dr(H,c),dr(H,h),cp(),Q6(()=>{H._isLeaving&&(Dr(H,c),dr(H,f),Y6(w)||J6(H,n,v,N))}),hi(w,[H,N])},onEnterCancelled(H){z(H,!1),hi(E,[H])},onAppearCancelled(H){z(H,!0),hi(P,[H])},onLeaveCancelled(H){A(H),hi(k,[H])}})}function _y(e){if(e==null)return null;if(qt(e))return[_c(e.enter),_c(e.leave)];{const t=_c(e);return[t,t]}}function _c(e){return Ob(e)}function dr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[za]||(e[za]=new Set)).add(t)}function Dr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[za];o&&(o.delete(t),o.size||(e[za]=void 0))}function Q6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let My=0;function J6(e,t,o,n){const r=e._endId=++My,i=()=>{r===e._endId&&n()};if(o!=null)return setTimeout(i,o);const{type:a,timeout:l,propCount:s}=dp(e,t);if(!a)return n();const u=a+"end";let d=0;const c=()=>{e.removeEventListener(u,h),i()},h=f=>{f.target===e&&++d>=s&&c()};setTimeout(()=>{d(o[p]||"").split(", "),r=n(`${$r}Delay`),i=n(`${$r}Duration`),a=e2(r,i),l=n(`${rl}Delay`),s=n(`${rl}Duration`),u=e2(l,s);let d=null,c=0,h=0;t===$r?a>0&&(d=$r,c=a,h=i.length):t===rl?u>0&&(d=rl,c=u,h=s.length):(c=Math.max(a,u),d=c>0?a>u?$r:rl:null,h=d?d===$r?i.length:s.length:0);const f=d===$r&&/\b(transform|all)(,|$)/.test(n(`${$r}Property`).toString());return{type:d,timeout:c,propCount:h,hasTransform:f}}function e2(e,t){for(;e.lengtht2(o)+t2(e[n])))}function t2(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cp(){return document.body.offsetHeight}function Ry(e,t,o){const n=e[za];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ku=Symbol("_vod"),fp=Symbol("_vsh"),bn={beforeMount(e,{value:t},{transition:o}){e[Ku]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):il(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),il(e,!0),n.enter(e)):n.leave(e,()=>{il(e,!1)}):il(e,t))},beforeUnmount(e,{value:t}){il(e,t)}};function il(e,t){e.style.display=t?e[Ku]:"none",e[fp]=!t}const zy=Symbol(""),$y=/(^|;)\s*display\s*:/;function Py(e,t,o){const n=e.style,r=eo(o);let i=!1;if(o&&!r){if(t)if(eo(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();o[l]==null&&zu(n,l,"")}else for(const a in t)o[a]==null&&zu(n,a,"");for(const a in o)a==="display"&&(i=!0),zu(n,a,o[a])}else if(r){if(t!==o){const a=n[zy];a&&(o+=";"+a),n.cssText=o,i=$y.test(o)}}else t&&e.removeAttribute("style");Ku in e&&(e[Ku]=i?n.display:"",e[fp]&&(n.display="none"))}const o2=/\s*!important$/;function zu(e,t,o){if(ht(o))o.forEach(n=>zu(e,t,n));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=Ay(e,t);o2.test(o)?e.setProperty(Ui(n),o.replace(o2,""),"important"):e[n]=o}}const n2=["Webkit","Moz","ms"],Mc={};function Ay(e,t){const o=Mc[t];if(o)return o;let n=vn(t);if(n!=="filter"&&n in e)return Mc[t]=n;n=md(n);for(let r=0;rRc||(Oy.then(()=>Rc=0),Rc=Date.now());function Hy(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;$n(Ny(n,o.value),t,5,[n])};return o.value=e,o.attached=Ly(),o}function Ny(e,t){if(ht(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const u2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vy=(e,t,o,n,r,i)=>{const a=r==="svg";t==="class"?Ry(e,n,a):t==="style"?Py(e,o,n):fd(t)?O1(t)||Ty(e,t,o,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wy(e,t,n,a))?(a2(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&i2(e,t,n,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!eo(n))?a2(e,vn(t),n):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),i2(e,t,n,a))};function Wy(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&u2(t)&&mt(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return u2(t)&&eo(o)?!1:t in e}const hp=new WeakMap,pp=new WeakMap,Gu=Symbol("_moveCb"),d2=Symbol("_enterCb"),jy=e=>(delete e.props.mode,e),Uy=jy({name:"TransitionGroup",props:ho({},sp,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=xr(),n=M5();let r,i;return T5(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Zy(r[0].el,o.vnode.el,a))return;r.forEach(Ky),r.forEach(Gy);const l=r.filter(qy);cp(),l.forEach(s=>{const u=s.el,d=u.style;dr(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[Gu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Gu]=null,Dr(u,a))};u.addEventListener("transitionend",c)})}),()=>{const a=zt(e),l=up(a);let s=a.tag||ft;if(r=[],i)for(let u=0;u{l.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),o.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=dp(n);return i.removeChild(n),a}const Xy=ho({patchProp:Vy},Ey);let c2;function Yy(){return c2||(c2=Yx(Xy))}const mp=(...e)=>{const t=Yy().createApp(...e),{mount:o}=t;return t.mount=n=>{const r=Jy(n);if(!r)return;const i=t._component;!mt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=o(r,!1,Qy(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function Qy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jy(e){return eo(e)?document.querySelector(e):e}var eC=!1;/*! * pinia v2.2.4 * (c) 2024 Eduardo San Martin Morote * @license MIT - */let gp;const _d=e=>gp=e,vp=Symbol();function L0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Al;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Al||(Al={}));function tC(){const e=Jh(!0),t=e.run(()=>$({}));let o=[],n=[];const r=ql({install(i){_d(r),r._a=i,i.provide(vp,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!eC?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const bp=()=>{};function f2(e,t,o,n=bp){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&e5()&&Ub(r),r}function ia(e,...t){e.slice().forEach(o=>{o(...t)})}const oC=e=>e(),h2=Symbol(),zc=Symbol();function H0(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];L0(r)&&L0(n)&&e.hasOwnProperty(o)&&!io(n)&&!Kr(n)?e[o]=H0(r,n):e[o]=n}return e}const nC=Symbol();function rC(e){return!L0(e)||!e.hasOwnProperty(nC)}const{assign:Tr}=Object;function iC(e){return!!(io(e)&&e.effect)}function aC(e,t,o,n){const{state:r,actions:i,getters:a}=t,l=o.state.value[e];let s;function u(){l||(o.state.value[e]=r?r():{});const d=b5(o.state.value[e]);return Tr(d,i,Object.keys(a||{}).reduce((c,h)=>(c[h]=ql(D(()=>{_d(o);const f=o._s.get(e);return a[h].call(f,f)})),c),{}))}return s=xp(e,u,t,o,n,!0),s}function xp(e,t,o={},n,r,i){let a;const l=Tr({actions:{}},o),s={deep:!0};let u,d,c=[],h=[],f;const p=n.state.value[e];!i&&!p&&(n.state.value[e]={}),$({});let g;function v(P){let z;u=d=!1,typeof P=="function"?(P(n.state.value[e]),z={type:Al.patchFunction,storeId:e,events:f}):(H0(n.state.value[e],P),z={type:Al.patchObject,payload:P,storeId:e,events:f});const B=g=Symbol();Mt().then(()=>{g===B&&(u=!0)}),d=!0,ia(c,z,n.state.value[e])}const b=i?function(){const{state:z}=o,B=z?z():{};this.$patch(j=>{Tr(j,B)})}:bp;function x(){a.stop(),c=[],h=[],n._s.delete(e)}const E=(P,z="")=>{if(h2 in P)return P[zc]=z,P;const B=function(){_d(n);const j=Array.from(arguments),V=[],K=[];function N(R){V.push(R)}function T(R){K.push(R)}ia(h,{args:j,name:B[zc],store:k,after:N,onError:T});let L;try{L=P.apply(this&&this.$id===e?this:k,j)}catch(R){throw ia(K,R),R}return L instanceof Promise?L.then(R=>(ia(V,R),R)).catch(R=>(ia(K,R),Promise.reject(R))):(ia(V,L),L)};return B[h2]=!0,B[zc]=z,B},C={_p:n,$id:e,$onAction:f2.bind(null,h),$patch:v,$reset:b,$subscribe(P,z={}){const B=f2(c,P,z.detached,()=>j()),j=a.run(()=>lt(()=>n.state.value[e],V=>{(z.flush==="sync"?d:u)&&P({storeId:e,type:Al.direct,events:f},V)},Tr({},s,z)));return B},$dispose:x},k=It(C);n._s.set(e,k);const F=(n._a&&n._a.runWithContext||oC)(()=>n._e.run(()=>(a=Jh()).run(()=>t({action:E}))));for(const P in F){const z=F[P];if(io(z)&&!iC(z)||Kr(z))i||(p&&rC(z)&&(io(z)?z.value=p[P]:H0(z,p[P])),n.state.value[e][P]=z);else if(typeof z=="function"){const B=E(z,P);F[P]=B,l.actions[P]=z}}return Tr(k,F),Tr(zt(k),F),Object.defineProperty(k,"$state",{get:()=>n.state.value[e],set:P=>{v(z=>{Tr(z,P)})}}),n._p.forEach(P=>{Tr(k,a.run(()=>P({store:k,app:n._a,pinia:n,options:l})))}),p&&i&&o.hydrate&&o.hydrate(k.$state,p),u=!0,d=!0,k}function Ki(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(l,s){const u=jx();return l=l||(u?Oe(vp,null):null),l&&_d(l),l=gp,l._s.has(n)||(i?xp(n,t,r,l):aC(n,r,l)),l._s.get(n)}return a.$id=n,a}const lC=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,sC=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,uC=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function dC(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){cC(e);return}return t}function cC(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function fC(e,t={}){if(typeof e!="string")return e;const o=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return o.slice(1,-1);if(o.length<=9){const n=o.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!uC.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(lC.test(e)||sC.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,dC)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function hC(e,t){if(e==null)return;let o=e;for(let n=0;n1&&(t=a3(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(o[1]))?[]:{}:e[n],t,Array.prototype.slice.call(o,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function yp(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const o={};for(const n in e)o[n]=e[n];return delete o[t[0]],o}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const o={};for(const n in e)o[n]=e[n];return o}return a3(e,yp(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Cp(e,t){return t.map(o=>o.split(".")).map(o=>[o,hC(e,o)]).filter(o=>o[1]!==void 0).reduce((o,n)=>a3(o,n[1],n[0]),{})}function wp(e,t){return t.map(o=>o.split(".")).reduce((o,n)=>yp(o,n),e)}function p2(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a,beforeHydrate:l,afterHydrate:s},u,d=!0){try{d&&(l==null||l(u));const c=t.getItem(n);if(c){const h=o.deserialize(c),f=i?Cp(h,i):h,p=a?wp(f,a):f;e.$patch(p)}d&&(s==null||s(u))}catch(c){r&&console.error("[pinia-plugin-persistedstate]",c)}}function m2(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a}){try{const l=i?Cp(e,i):e,s=a?wp(l,a):l,u=o.serialize(s);t.setItem(n,u)}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function pC(e,t,o){const{pinia:n,store:r,options:{persist:i=o}}=e;if(!i)return;if(!(r.$id in n.state.value)){const s=n._s.get(r.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const l=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);r.$hydrate=({runHooks:s=!0}={})=>{l.forEach(u=>{p2(r,u,e,s)})},r.$persist=()=>{l.forEach(s=>{m2(r.$state,s)})},l.forEach(s=>{p2(r,s,e),r.$subscribe((u,d)=>m2(d,s),{detached:!0})})}function mC(e={}){return function(t){pC(t,o=>({key:(e.key?e.key:n=>n)(o.key??t.store.$id),debug:o.debug??e.debug??!1,serializer:o.serializer??e.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>fC(n)},storage:o.storage??e.storage??window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}),e.auto??!1)}}var gC=mC();let qu=[];const Sp=new WeakMap;function vC(){qu.forEach(e=>e(...Sp.get(e))),qu=[]}function Ql(e,...t){Sp.set(e,t),!qu.includes(e)&&qu.push(e)===1&&requestAnimationFrame(vC)}function Ko(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function Li(e){return e.composedPath()[0]||null}function bC(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(o=>{if(o==="")return;const[n,r]=o.split(":");r===void 0?t[""]=n:t[n]=r}),t}function aa(e,t){var o;if(e==null)return;const n=bC(e);if(t===void 0)return n[""];if(typeof t=="string")return(o=n[t])!==null&&o!==void 0?o:n[""];if(Array.isArray(t)){for(let r=t.length-1;r>=0;--r){const i=t[r];if(i in n)return n[i]}return n[""]}else{let r,i=-1;return Object.keys(n).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,r=n[a])}),r}}function so(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ht(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Mo(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function xC(e,t){const[o,n]=e.split(" ");return{row:o,col:n||o}}const g2={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Fp(e,t,o){t/=100,o/=100;const n=t*Math.min(o,1-o)+o;return[e,n?(2-2*o/n)*100:0,n*100]}function $u(e,t,o){t/=100,o/=100;const n=o-o*t/2,r=Math.min(n,1-n);return[e,r?(o-n)/r*100:0,n*100]}function Nr(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function N0(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(i<0?i+6:i),n&&r/n*100,n*100]}function V0(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=1-Math.abs(n+n-r-1),a=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(a<0?a+6:a),i?r/i*100:0,(n+n-r)*50]}function W0(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,a=(i+e/30)%12)=>o-n*Math.max(Math.min(a-3,9-a,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Jn="^\\s*",er="\\s*$",Jr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",on="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",wi="([0-9A-Fa-f])",Si="([0-9A-Fa-f]{2})",yC=new RegExp(`${Jn}hsl\\s*\\(${on},${Jr},${Jr}\\)${er}`),CC=new RegExp(`${Jn}hsv\\s*\\(${on},${Jr},${Jr}\\)${er}`),wC=new RegExp(`${Jn}hsla\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),SC=new RegExp(`${Jn}hsva\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),FC=new RegExp(`${Jn}rgb\\s*\\(${on},${on},${on}\\)${er}`),EC=new RegExp(`${Jn}rgba\\s*\\(${on},${on},${on},${on}\\)${er}`),l3=new RegExp(`${Jn}#${wi}${wi}${wi}${er}`),s3=new RegExp(`${Jn}#${Si}${Si}${Si}${er}`),u3=new RegExp(`${Jn}#${wi}${wi}${wi}${wi}${er}`),d3=new RegExp(`${Jn}#${Si}${Si}${Si}${Si}${er}`);function Wo(e){return parseInt(e,16)}function Ea(e){try{let t;if(t=wC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),gr(t[13])];if(t=yC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function $i(e){try{let t;if(t=SC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),gr(t[13])];if(t=CC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function uo(e){try{let t;if(t=s3.exec(e))return[Wo(t[1]),Wo(t[2]),Wo(t[3]),1];if(t=FC.exec(e))return[ro(t[1]),ro(t[5]),ro(t[9]),1];if(t=EC.exec(e))return[ro(t[1]),ro(t[5]),ro(t[9]),gr(t[13])];if(t=l3.exec(e))return[Wo(t[1]+t[1]),Wo(t[2]+t[2]),Wo(t[3]+t[3]),1];if(t=d3.exec(e))return[Wo(t[1]),Wo(t[2]),Wo(t[3]),gr(Wo(t[4])/255)];if(t=u3.exec(e))return[Wo(t[1]+t[1]),Wo(t[2]+t[2]),Wo(t[3]+t[3]),gr(Wo(t[4]+t[4])/255)];if(e in g2)return uo(g2[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function kC(e){return e>1?1:e<0?0:e}function _C(e,t,o){return`rgb(${ro(e)}, ${ro(t)}, ${ro(o)})`}function j0(e,t,o,n){return`rgba(${ro(e)}, ${ro(t)}, ${ro(o)}, ${kC(n)})`}function $c(e,t,o,n,r){return ro((e*t*(1-n)+o*n)/r)}function Ue(e,t){Array.isArray(e)||(e=uo(e)),Array.isArray(t)||(t=uo(t));const o=e[3],n=t[3],r=gr(o+n-o*n);return j0($c(e[0],o,t[0],n,r),$c(e[1],o,t[1],n,r),$c(e[2],o,t[2],n,r),r)}function $e(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:uo(e);return t.alpha?j0(o,n,r,t.alpha):j0(o,n,r,i)}function ao(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:uo(e),{lightness:a=1,alpha:l=1}=t;return Kn([o*a,n*a,r*a,i*l])}function gr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Xn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function ro(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function co(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function U0(e){const[t,o,n]=Array.isArray(e)?e:uo(e);return _C(t,o,n)}function Kn(e){const[t,o,n]=e;return 3 in e?`rgba(${ro(t)}, ${ro(o)}, ${ro(n)}, ${gr(e[3])})`:`rgba(${ro(t)}, ${ro(o)}, ${ro(n)}, 1)`}function K0(e){return`hsv(${Xn(e[0])}, ${co(e[1])}%, ${co(e[2])}%)`}function Pi(e){const[t,o,n]=e;return 3 in e?`hsva(${Xn(t)}, ${co(o)}%, ${co(n)}%, ${gr(e[3])})`:`hsva(${Xn(t)}, ${co(o)}%, ${co(n)}%, 1)`}function G0(e){return`hsl(${Xn(e[0])}, ${co(e[1])}%, ${co(e[2])}%)`}function Gr(e){const[t,o,n]=e;return 3 in e?`hsla(${Xn(t)}, ${co(o)}%, ${co(n)}%, ${gr(e[3])})`:`hsla(${Xn(t)}, ${co(o)}%, ${co(n)}%, 1)`}function qr(e){if(typeof e=="string"){let n;if(n=s3.exec(e))return`${n[0]}FF`;if(n=d3.exec(e))return n[0];if(n=l3.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=u3.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(n=>ro(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,o=e.length===3?"FF":ro(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+o}function Bl(e){if(typeof e=="string"){let t;if(t=s3.exec(e))return t[0];if(t=d3.exec(e))return t[0].slice(0,7);if(t=l3.exec(e)||u3.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>ro(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ii(e=8){return Math.random().toString(16).slice(2,2+e)}function Ep(e,t){const o=[];for(let n=0;n{n[r]=e[r]}),Object.assign(n,o)}function Gi(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function vr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(M(String(n)));return}if(Array.isArray(n)){vr(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&vr(n.children,t,o)}else{if(n.type===vo&&t)return;o.push(n)}}}),o}function Re(e,...t){if(Array.isArray(e))e.forEach(o=>Re(o,...t));else return e(...t)}function Fs(e){return Object.keys(e)}function Jt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?M(e):typeof e=="number"?M(String(e)):null}const v2=new Set;function MC(e,t){const o=`[naive/${e}]: ${t}`;v2.has(o)||(v2.add(o),console.error(o))}function xn(e,t){console.error(`[naive/${e}]: ${t}`)}function yr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function b2(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function q0(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Z0(e,t="default",o=void 0){const n=e[t];if(!n)return xn("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=vr(n(o));return r.length===1?r[0]:(xn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function kp(e){return t=>{t?e.value=t.$el:e.value=null}}function pn(e){return e.some(t=>Ra(t)?!(t.type===vo||t.type===ft&&!pn(t.children)):!0)?e:null}function wo(e,t){return e&&pn(e())||t()}function X0(e,t,o){return e&&pn(e(t))||o(t)}function bt(e,t){const o=e&&pn(e());return t(o||null)}function RC(e,t,o){const n=e&&pn(e(t));return o(n||null)}function Ai(e){return!(e&&pn(e()))}function Dl(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function zC(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===bn);return!!(o&&o.value===!1)}const Y0=ye({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),$C=/^(\d|\.)+$/,x2=/(\d|\.)+/;function So(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if($C.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=x2.exec(e);return r?e.replace(x2,String((Number(r[0])+o)*t)):e}return e}function $a(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function y2(e){const{left:t,right:o,top:n,bottom:r}=Mo(e);return`${n} ${o} ${r} ${t}`}function PC(e){let t=0;for(let o=0;o{let r=PC(n);if(r){if(r===1){e.forEach(a=>{o.push(n.replace("&",a))});return}}else{e.forEach(a=>{o.push((a&&a+" ")+n)});return}let i=[n];for(;r--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>o.push(a))}),o}function DC(e,t){const o=[];return t.split(_p).forEach(n=>{e.forEach(r=>{o.push((r&&r+" ")+n)})}),o}function TC(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=BC(t,o):t=DC(t,o))}),t.join(", ").replace(AC," ")}function C2(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Md(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function IC(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function tu(e){return e?/^\s*@(s|m)/.test(e):!1}const OC=/[A-Z]/g;function Mp(e){return e.replace(OC,t=>"-"+t.toLowerCase())}function LC(e,t=" "){return typeof e=="object"&&e!==null?` { + */let gp;const _d=e=>gp=e,vp=Symbol();function L0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Al;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Al||(Al={}));function tC(){const e=Jh(!0),t=e.run(()=>$({}));let o=[],n=[];const r=ql({install(i){_d(r),r._a=i,i.provide(vp,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!eC?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const bp=()=>{};function f2(e,t,o,n=bp){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&e5()&&Ub(r),r}function ia(e,...t){e.slice().forEach(o=>{o(...t)})}const oC=e=>e(),h2=Symbol(),zc=Symbol();function H0(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];L0(r)&&L0(n)&&e.hasOwnProperty(o)&&!io(n)&&!Kr(n)?e[o]=H0(r,n):e[o]=n}return e}const nC=Symbol();function rC(e){return!L0(e)||!e.hasOwnProperty(nC)}const{assign:Tr}=Object;function iC(e){return!!(io(e)&&e.effect)}function aC(e,t,o,n){const{state:r,actions:i,getters:a}=t,l=o.state.value[e];let s;function u(){l||(o.state.value[e]=r?r():{});const d=b5(o.state.value[e]);return Tr(d,i,Object.keys(a||{}).reduce((c,h)=>(c[h]=ql(D(()=>{_d(o);const f=o._s.get(e);return a[h].call(f,f)})),c),{}))}return s=xp(e,u,t,o,n,!0),s}function xp(e,t,o={},n,r,i){let a;const l=Tr({actions:{}},o),s={deep:!0};let u,d,c=[],h=[],f;const p=n.state.value[e];!i&&!p&&(n.state.value[e]={}),$({});let g;function v(P){let z;u=d=!1,typeof P=="function"?(P(n.state.value[e]),z={type:Al.patchFunction,storeId:e,events:f}):(H0(n.state.value[e],P),z={type:Al.patchObject,payload:P,storeId:e,events:f});const A=g=Symbol();Mt().then(()=>{g===A&&(u=!0)}),d=!0,ia(c,z,n.state.value[e])}const b=i?function(){const{state:z}=o,A=z?z():{};this.$patch(G=>{Tr(G,A)})}:bp;function x(){a.stop(),c=[],h=[],n._s.delete(e)}const E=(P,z="")=>{if(h2 in P)return P[zc]=z,P;const A=function(){_d(n);const G=Array.from(arguments),H=[],X=[];function N(R){H.push(R)}function T(R){X.push(R)}ia(h,{args:G,name:A[zc],store:k,after:N,onError:T});let O;try{O=P.apply(this&&this.$id===e?this:k,G)}catch(R){throw ia(X,R),R}return O instanceof Promise?O.then(R=>(ia(H,R),R)).catch(R=>(ia(X,R),Promise.reject(R))):(ia(H,O),O)};return A[h2]=!0,A[zc]=z,A},w={_p:n,$id:e,$onAction:f2.bind(null,h),$patch:v,$reset:b,$subscribe(P,z={}){const A=f2(c,P,z.detached,()=>G()),G=a.run(()=>lt(()=>n.state.value[e],H=>{(z.flush==="sync"?d:u)&&P({storeId:e,type:Al.direct,events:f},H)},Tr({},s,z)));return A},$dispose:x},k=It(w);n._s.set(e,k);const F=(n._a&&n._a.runWithContext||oC)(()=>n._e.run(()=>(a=Jh()).run(()=>t({action:E}))));for(const P in F){const z=F[P];if(io(z)&&!iC(z)||Kr(z))i||(p&&rC(z)&&(io(z)?z.value=p[P]:H0(z,p[P])),n.state.value[e][P]=z);else if(typeof z=="function"){const A=E(z,P);F[P]=A,l.actions[P]=z}}return Tr(k,F),Tr(zt(k),F),Object.defineProperty(k,"$state",{get:()=>n.state.value[e],set:P=>{v(z=>{Tr(z,P)})}}),n._p.forEach(P=>{Tr(k,a.run(()=>P({store:k,app:n._a,pinia:n,options:l})))}),p&&i&&o.hydrate&&o.hydrate(k.$state,p),u=!0,d=!0,k}function Ki(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(l,s){const u=jx();return l=l||(u?Oe(vp,null):null),l&&_d(l),l=gp,l._s.has(n)||(i?xp(n,t,r,l):aC(n,r,l)),l._s.get(n)}return a.$id=n,a}const lC=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,sC=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,uC=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function dC(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){cC(e);return}return t}function cC(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function fC(e,t={}){if(typeof e!="string")return e;const o=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return o.slice(1,-1);if(o.length<=9){const n=o.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!uC.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(lC.test(e)||sC.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,dC)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function hC(e,t){if(e==null)return;let o=e;for(let n=0;n1&&(t=a3(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(o[1]))?[]:{}:e[n],t,Array.prototype.slice.call(o,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function yp(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const o={};for(const n in e)o[n]=e[n];return delete o[t[0]],o}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const o={};for(const n in e)o[n]=e[n];return o}return a3(e,yp(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Cp(e,t){return t.map(o=>o.split(".")).map(o=>[o,hC(e,o)]).filter(o=>o[1]!==void 0).reduce((o,n)=>a3(o,n[1],n[0]),{})}function wp(e,t){return t.map(o=>o.split(".")).reduce((o,n)=>yp(o,n),e)}function p2(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a,beforeHydrate:l,afterHydrate:s},u,d=!0){try{d&&(l==null||l(u));const c=t.getItem(n);if(c){const h=o.deserialize(c),f=i?Cp(h,i):h,p=a?wp(f,a):f;e.$patch(p)}d&&(s==null||s(u))}catch(c){r&&console.error("[pinia-plugin-persistedstate]",c)}}function m2(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a}){try{const l=i?Cp(e,i):e,s=a?wp(l,a):l,u=o.serialize(s);t.setItem(n,u)}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function pC(e,t,o){const{pinia:n,store:r,options:{persist:i=o}}=e;if(!i)return;if(!(r.$id in n.state.value)){const s=n._s.get(r.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const l=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);r.$hydrate=({runHooks:s=!0}={})=>{l.forEach(u=>{p2(r,u,e,s)})},r.$persist=()=>{l.forEach(s=>{m2(r.$state,s)})},l.forEach(s=>{p2(r,s,e),r.$subscribe((u,d)=>m2(d,s),{detached:!0})})}function mC(e={}){return function(t){pC(t,o=>({key:(e.key?e.key:n=>n)(o.key??t.store.$id),debug:o.debug??e.debug??!1,serializer:o.serializer??e.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>fC(n)},storage:o.storage??e.storage??window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}),e.auto??!1)}}var gC=mC();let qu=[];const Sp=new WeakMap;function vC(){qu.forEach(e=>e(...Sp.get(e))),qu=[]}function Ql(e,...t){Sp.set(e,t),!qu.includes(e)&&qu.push(e)===1&&requestAnimationFrame(vC)}function Ko(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function Li(e){return e.composedPath()[0]||null}function bC(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(o=>{if(o==="")return;const[n,r]=o.split(":");r===void 0?t[""]=n:t[n]=r}),t}function aa(e,t){var o;if(e==null)return;const n=bC(e);if(t===void 0)return n[""];if(typeof t=="string")return(o=n[t])!==null&&o!==void 0?o:n[""];if(Array.isArray(t)){for(let r=t.length-1;r>=0;--r){const i=t[r];if(i in n)return n[i]}return n[""]}else{let r,i=-1;return Object.keys(n).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,r=n[a])}),r}}function so(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ht(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Mo(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function xC(e,t){const[o,n]=e.split(" ");return{row:o,col:n||o}}const g2={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Fp(e,t,o){t/=100,o/=100;const n=t*Math.min(o,1-o)+o;return[e,n?(2-2*o/n)*100:0,n*100]}function $u(e,t,o){t/=100,o/=100;const n=o-o*t/2,r=Math.min(n,1-n);return[e,r?(o-n)/r*100:0,n*100]}function Nr(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function N0(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(i<0?i+6:i),n&&r/n*100,n*100]}function V0(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=1-Math.abs(n+n-r-1),a=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(a<0?a+6:a),i?r/i*100:0,(n+n-r)*50]}function W0(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,a=(i+e/30)%12)=>o-n*Math.max(Math.min(a-3,9-a,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Jn="^\\s*",er="\\s*$",Jr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",on="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",wi="([0-9A-Fa-f])",Si="([0-9A-Fa-f]{2})",yC=new RegExp(`${Jn}hsl\\s*\\(${on},${Jr},${Jr}\\)${er}`),CC=new RegExp(`${Jn}hsv\\s*\\(${on},${Jr},${Jr}\\)${er}`),wC=new RegExp(`${Jn}hsla\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),SC=new RegExp(`${Jn}hsva\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),FC=new RegExp(`${Jn}rgb\\s*\\(${on},${on},${on}\\)${er}`),EC=new RegExp(`${Jn}rgba\\s*\\(${on},${on},${on},${on}\\)${er}`),l3=new RegExp(`${Jn}#${wi}${wi}${wi}${er}`),s3=new RegExp(`${Jn}#${Si}${Si}${Si}${er}`),u3=new RegExp(`${Jn}#${wi}${wi}${wi}${wi}${er}`),d3=new RegExp(`${Jn}#${Si}${Si}${Si}${Si}${er}`);function Wo(e){return parseInt(e,16)}function Ea(e){try{let t;if(t=wC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),gr(t[13])];if(t=yC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function $i(e){try{let t;if(t=SC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),gr(t[13])];if(t=CC.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function uo(e){try{let t;if(t=s3.exec(e))return[Wo(t[1]),Wo(t[2]),Wo(t[3]),1];if(t=FC.exec(e))return[ro(t[1]),ro(t[5]),ro(t[9]),1];if(t=EC.exec(e))return[ro(t[1]),ro(t[5]),ro(t[9]),gr(t[13])];if(t=l3.exec(e))return[Wo(t[1]+t[1]),Wo(t[2]+t[2]),Wo(t[3]+t[3]),1];if(t=d3.exec(e))return[Wo(t[1]),Wo(t[2]),Wo(t[3]),gr(Wo(t[4])/255)];if(t=u3.exec(e))return[Wo(t[1]+t[1]),Wo(t[2]+t[2]),Wo(t[3]+t[3]),gr(Wo(t[4]+t[4])/255)];if(e in g2)return uo(g2[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function kC(e){return e>1?1:e<0?0:e}function _C(e,t,o){return`rgb(${ro(e)}, ${ro(t)}, ${ro(o)})`}function j0(e,t,o,n){return`rgba(${ro(e)}, ${ro(t)}, ${ro(o)}, ${kC(n)})`}function $c(e,t,o,n,r){return ro((e*t*(1-n)+o*n)/r)}function Ue(e,t){Array.isArray(e)||(e=uo(e)),Array.isArray(t)||(t=uo(t));const o=e[3],n=t[3],r=gr(o+n-o*n);return j0($c(e[0],o,t[0],n,r),$c(e[1],o,t[1],n,r),$c(e[2],o,t[2],n,r),r)}function $e(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:uo(e);return t.alpha?j0(o,n,r,t.alpha):j0(o,n,r,i)}function lo(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:uo(e),{lightness:a=1,alpha:l=1}=t;return Kn([o*a,n*a,r*a,i*l])}function gr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Xn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function ro(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function co(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function U0(e){const[t,o,n]=Array.isArray(e)?e:uo(e);return _C(t,o,n)}function Kn(e){const[t,o,n]=e;return 3 in e?`rgba(${ro(t)}, ${ro(o)}, ${ro(n)}, ${gr(e[3])})`:`rgba(${ro(t)}, ${ro(o)}, ${ro(n)}, 1)`}function K0(e){return`hsv(${Xn(e[0])}, ${co(e[1])}%, ${co(e[2])}%)`}function Pi(e){const[t,o,n]=e;return 3 in e?`hsva(${Xn(t)}, ${co(o)}%, ${co(n)}%, ${gr(e[3])})`:`hsva(${Xn(t)}, ${co(o)}%, ${co(n)}%, 1)`}function G0(e){return`hsl(${Xn(e[0])}, ${co(e[1])}%, ${co(e[2])}%)`}function Gr(e){const[t,o,n]=e;return 3 in e?`hsla(${Xn(t)}, ${co(o)}%, ${co(n)}%, ${gr(e[3])})`:`hsla(${Xn(t)}, ${co(o)}%, ${co(n)}%, 1)`}function qr(e){if(typeof e=="string"){let n;if(n=s3.exec(e))return`${n[0]}FF`;if(n=d3.exec(e))return n[0];if(n=l3.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=u3.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(n=>ro(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,o=e.length===3?"FF":ro(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+o}function Bl(e){if(typeof e=="string"){let t;if(t=s3.exec(e))return t[0];if(t=d3.exec(e))return t[0].slice(0,7);if(t=l3.exec(e)||u3.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>ro(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ii(e=8){return Math.random().toString(16).slice(2,2+e)}function Ep(e,t){const o=[];for(let n=0;n{n[r]=e[r]}),Object.assign(n,o)}function Gi(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function vr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(M(String(n)));return}if(Array.isArray(n)){vr(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&vr(n.children,t,o)}else{if(n.type===vo&&t)return;o.push(n)}}}),o}function Re(e,...t){if(Array.isArray(e))e.forEach(o=>Re(o,...t));else return e(...t)}function Fs(e){return Object.keys(e)}function Jt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?M(e):typeof e=="number"?M(String(e)):null}const v2=new Set;function MC(e,t){const o=`[naive/${e}]: ${t}`;v2.has(o)||(v2.add(o),console.error(o))}function xn(e,t){console.error(`[naive/${e}]: ${t}`)}function yr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function b2(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function q0(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Z0(e,t="default",o=void 0){const n=e[t];if(!n)return xn("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=vr(n(o));return r.length===1?r[0]:(xn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function kp(e){return t=>{t?e.value=t.$el:e.value=null}}function pn(e){return e.some(t=>Ra(t)?!(t.type===vo||t.type===ft&&!pn(t.children)):!0)?e:null}function wo(e,t){return e&&pn(e())||t()}function X0(e,t,o){return e&&pn(e(t))||o(t)}function bt(e,t){const o=e&&pn(e());return t(o||null)}function RC(e,t,o){const n=e&&pn(e(t));return o(n||null)}function Ai(e){return!(e&&pn(e()))}function Dl(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function zC(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===bn);return!!(o&&o.value===!1)}const Y0=ye({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),$C=/^(\d|\.)+$/,x2=/(\d|\.)+/;function So(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if($C.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=x2.exec(e);return r?e.replace(x2,String((Number(r[0])+o)*t)):e}return e}function $a(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function y2(e){const{left:t,right:o,top:n,bottom:r}=Mo(e);return`${n} ${o} ${r} ${t}`}function PC(e){let t=0;for(let o=0;o{let r=PC(n);if(r){if(r===1){e.forEach(a=>{o.push(n.replace("&",a))});return}}else{e.forEach(a=>{o.push((a&&a+" ")+n)});return}let i=[n];for(;r--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>o.push(a))}),o}function DC(e,t){const o=[];return t.split(_p).forEach(n=>{e.forEach(r=>{o.push((r&&r+" ")+n)})}),o}function TC(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=BC(t,o):t=DC(t,o))}),t.join(", ").replace(AC," ")}function C2(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Md(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function IC(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function tu(e){return e?/^\s*@(s|m)/.test(e):!1}const OC=/[A-Z]/g;function Mp(e){return e.replace(OC,t=>"-"+t.toLowerCase())}function LC(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(o=>t+` ${Mp(o[0])}: ${o[1]};`).join(` `)+` `+t+"}":`: ${e};`}function HC(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function w2(e,t,o,n){if(!t)return"";const r=HC(t,o,n);if(!r)return"";if(typeof r=="string")return`${e} { @@ -30,9 +30,9 @@ ${r} `);return}l=Mp(l),s!=null&&a.push(` ${l}${LC(s)}`)}),e&&a.push("}"),a.join(` `)}function Q0(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))Q0(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?Q0(r,t,o):r&&o(r)}else n&&o(n)})}function Rp(e,t,o,n,r){const i=e.$;let a="";if(!i||typeof i=="string")tu(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:n.context,props:r});tu(u)?a=u:t.push(u)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")tu(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:n.context,props:r});tu(u)?a=u:t.push(u)}const l=TC(t),s=w2(l,e.props,n,r);a?o.push(`${a} {`):s.length&&o.push(s),e.children&&Q0(e.children,{context:n.context,props:r},u=>{if(typeof u=="string"){const d=w2(l,{raw:u},n,r);o.push(d)}else Rp(u,t,o,n,r)}),t.pop(),a&&o.push("}"),i&&i.after&&i.after(n.context)}function NC(e,t,o){const n=[];return Rp(e,[],n,t,o),n.join(` -`)}function Jl(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function VC(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(C2),t.els=[];else{const i=Md(o,n);i&&r.includes(i)&&(C2(i),t.els=r.filter(a=>a!==i))}}function S2(e,t){e.push(t)}function WC(e,t,o,n,r,i,a,l,s){let u;if(o===void 0&&(u=t.render(n),o=Jl(u)),s){s.adapter(o,u??t.render(n));return}l===void 0&&(l=document.head);const d=Md(o,l);if(d!==null&&!i)return d;const c=d??IC(o);if(u===void 0&&(u=t.render(n)),c.textContent=u,d!==null)return d;if(a){const h=l.querySelector(`meta[name="${a}"]`);if(h)return l.insertBefore(c,h),S2(t.els,c),c}return r?l.insertBefore(c,l.querySelector("style, link")):l.appendChild(c),S2(t.els,c),c}function jC(e){return NC(this,this.instance,e)}function UC(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return WC(this.instance,this,t,n,r,i,a,l,o)}function KC(e={}){const{id:t,parent:o}=e;VC(this.instance,this,t,o)}const ou=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:jC,mount:UC,unmount:KC}},GC=function(e,t,o,n){return Array.isArray(t)?ou(e,{$:null},null,t):Array.isArray(o)?ou(e,t,null,o):Array.isArray(n)?ou(e,t,o,n):ou(e,t,o,null)};function zp(e={}){const t={c:(...o)=>GC(t,...o),use:(o,...n)=>o.install(t,...n),find:Md,context:{},config:e};return t}function qC(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Md(e)!==null}function ZC(e){let t=".",o="__",n="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){r=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(p){let g,v;return{before(b){g=b.bem.b,v=b.bem.els,b.bem.els=null},after(b){b.bem.b=g,b.bem.els=v},$({context:b,props:x}){return p=typeof p=="string"?p:p({context:b,props:x}),b.bem.b=p,`${(x==null?void 0:x.bPrefix)||t}${b.bem.b}`}}}function l(p){let g;return{before(v){g=v.bem.els},after(v){v.bem.els=g},$({context:v,props:b}){return p=typeof p=="string"?p:p({context:v,props:b}),v.bem.els=p.split(",").map(x=>x.trim()),v.bem.els.map(x=>`${(b==null?void 0:b.bPrefix)||t}${v.bem.b}${o}${x}`).join(", ")}}}function s(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=p.split(",").map(C=>C.trim());function x(C){return b.map(k=>`&${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${C!==void 0?`${o}${C}`:""}${n}${k}`).join(", ")}const E=g.bem.els;return E!==null?x(E[0]):x()}}}function u(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=g.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${b!==null&&b.length>0?`${o}${b[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>r(a(p[0]),p[1],p[2]),cE:(...p)=>r(l(p[0]),p[1],p[2]),cM:(...p)=>r(s(p[0]),p[1],p[2]),cNotM:(...p)=>r(u(p[0]),p[1],p[2])}),i}const XC="n",es=`.${XC}-`,YC="__",QC="--",$p=zp(),Pp=ZC({blockPrefix:es,elementPrefix:YC,modifierPrefix:QC});$p.use(Pp);const{c:W,find:FX}=$p,{cB:A,cE:q,cM:ee,cNotM:_t}=Pp;function qi(e){return W(({props:{bPrefix:t}})=>`${t||es}modal, ${t||es}drawer`,[e])}function Ha(e){return W(({props:{bPrefix:t}})=>`${t||es}popover`,[e])}function Ap(e){return W(({props:{bPrefix:t}})=>`&${t||es}modal`,e)}const JC=(...e)=>W(">",[A(...e)]);function Ee(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Pc;function ew(){return Pc===void 0&&(Pc=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Pc}const wn=typeof document<"u"&&typeof window<"u",Bp=new WeakSet;function tw(e){Bp.add(e)}function Dp(e){return!Bp.has(e)}function ow(e,t,o){const n=$(e.value);let r=null;return lt(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function Tp(e){const t=$(!!e.value);if(t.value)return Zn(t);const o=lt(e,n=>{n&&(t.value=!0,o())});return Zn(t)}function vt(e){const t=D(e),o=$(t.value);return lt(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function f3(){return xr()!==null}const Rd=typeof window<"u";let ka,Tl;const nw=()=>{var e,t;ka=Rd?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Tl=!1,ka!==void 0?ka.then(()=>{Tl=!0}):Tl=!0};nw();function h3(e){if(Tl)return;let t=!1;ut(()=>{Tl||ka==null||ka.then(()=>{t||e()})}),Xt(()=>{t=!0})}function Pu(e){return e.composedPath()[0]}const rw={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function iw(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains(Pu(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=a=>{n=!t.contains(Pu(a))},i=a=>{n&&(t.contains(Pu(a))||o(a))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Ip(e,t,o){const n=rw[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=iw(e,t,o)),i}function aw(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Ip(e,t,o);return Object.keys(r).forEach(i=>{Ct(i,document,r[i],n)}),!0}return!1}function lw(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Ip(e,t,o);return Object.keys(r).forEach(i=>{xt(i,document,r[i],n)}),!0}return!1}function sw(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(F,P,z){const B=F[P];return F[P]=function(){return z.apply(F,arguments),B.apply(F,arguments)},F}function i(F,P){F[P]=Event.prototype[P]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var F;return(F=a.get(this))!==null&&F!==void 0?F:null}function u(F,P){l!==void 0&&Object.defineProperty(F,"currentTarget",{configurable:!0,enumerable:!0,get:P??l.get})}const d={bubble:{},capture:{}},c={};function h(){const F=function(P){const{type:z,eventPhase:B,bubbles:j}=P,V=Pu(P);if(B===2)return;const K=B===1?"capture":"bubble";let N=V;const T=[];for(;N===null&&(N=window),T.push(N),N!==window;)N=N.parentNode||null;const L=d.capture[z],R=d.bubble[z];if(r(P,"stopPropagation",o),r(P,"stopImmediatePropagation",n),u(P,s),K==="capture"){if(L===void 0)return;for(let I=T.length-1;I>=0&&!e.has(P);--I){const w=T[I],Q=L.get(w);if(Q!==void 0){a.set(P,w);for(const U of Q){if(t.has(P))break;U(P)}}if(I===0&&!j&&R!==void 0){const U=R.get(w);if(U!==void 0)for(const X of U){if(t.has(P))break;X(P)}}}}else if(K==="bubble"){if(R===void 0)return;for(let I=0;IV(P))};return F.displayName="evtdUnifiedWindowEventHandler",F}const p=h(),g=f();function v(F,P){const z=d[F];return z[P]===void 0&&(z[P]=new Map,window.addEventListener(P,p,F==="capture")),z[P]}function b(F){return c[F]===void 0&&(c[F]=new Set,window.addEventListener(F,g)),c[F]}function x(F,P){let z=F.get(P);return z===void 0&&F.set(P,z=new Set),z}function E(F,P,z,B){const j=d[P][z];if(j!==void 0){const V=j.get(F);if(V!==void 0&&V.has(B))return!0}return!1}function C(F,P){const z=c[F];return!!(z!==void 0&&z.has(P))}function k(F,P,z,B){let j;if(typeof B=="object"&&B.once===!0?j=L=>{_(F,P,j,B),z(L)}:j=z,aw(F,P,j,B))return;const K=B===!0||typeof B=="object"&&B.capture===!0?"capture":"bubble",N=v(K,F),T=x(N,P);if(T.has(j)||T.add(j),P===window){const L=b(F);L.has(j)||L.add(j)}}function _(F,P,z,B){if(lw(F,P,z,B))return;const V=B===!0||typeof B=="object"&&B.capture===!0,K=V?"capture":"bubble",N=v(K,F),T=x(N,P);if(P===window&&!E(P,V?"bubble":"capture",F,z)&&C(F,z)){const R=c[F];R.delete(z),R.size===0&&(window.removeEventListener(F,g),c[F]=void 0)}T.has(z)&&T.delete(z),T.size===0&&N.delete(P),N.size===0&&(window.removeEventListener(F,p,K==="capture"),d[K][F]=void 0)}return{on:k,off:_}}const{on:Ct,off:xt}=sw(),wl=$(null);function F2(e){if(e.clientX>0||e.clientY>0)wl.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:n,width:r,height:i}=t.getBoundingClientRect();o>0||n>0?wl.value={x:o+r/2,y:n+i/2}:wl.value={x:0,y:0}}else wl.value=null}}let nu=0,E2=!0;function Zu(){if(!Rd)return Zn($(null));nu===0&&Ct("click",document,F2,!0);const e=()=>{nu+=1};return E2&&(E2=f3())?(ri(e),Xt(()=>{nu-=1,nu===0&&xt("click",document,F2,!0)})):e(),Zn(wl)}const uw=$(void 0);let ru=0;function k2(){uw.value=Date.now()}let _2=!0;function Xu(e){if(!Rd)return Zn($(!1));const t=$(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}ru===0&&Ct("click",window,k2,!0);const i=()=>{ru+=1,Ct("click",window,r,!0)};return _2&&(_2=f3())?(ri(i),Xt(()=>{ru-=1,ru===0&&xt("click",window,k2,!0),xt("click",window,r,!0),n()})):i(),Zn(t)}function to(e,t){return lt(e,o=>{o!==void 0&&(t.value=o)}),D(()=>e.value===void 0?t.value:e.value)}function Cr(){const e=$(!1);return ut(()=>{e.value=!0}),Zn(e)}function ts(e,t){return D(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const dw=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function cw(){return dw}const fw={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function hw(e){return`(min-width: ${e}px)`}const al={};function pw(e=fw){if(!Rd)return D(()=>[]);if(typeof window.matchMedia!="function")return D(()=>[]);const t=$({}),o=Object.keys(e),n=(r,i)=>{r.matches?t.value[i]=!0:t.value[i]=!1};return o.forEach(r=>{const i=e[r];let a,l;al[i]===void 0?(a=window.matchMedia(hw(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(u=>{u(s,r)})}):a.addListener&&a.addListener(s=>{l.forEach(u=>{u(s,r)})}),l=new Set,al[i]={mql:a,cbs:l}):(a=al[i].mql,l=al[i].cbs),l.add(n),a.matches&&l.forEach(s=>{s(a,r)})}),Xt(()=>{o.forEach(r=>{const{cbs:i}=al[e[r]];i.has(n)&&i.delete(n)})}),D(()=>{const{value:r}=t;return o.filter(i=>r[i])})}function mw(e={},t){const o=It({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(u=>{if(u!==s.key)return;const d=n[u];if(typeof d=="function")d(s);else{const{stop:c=!1,prevent:h=!1}=d;c&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(u=>{if(u!==s.key)return;const d=r[u];if(typeof d=="function")d(s);else{const{stop:c=!1,prevent:h=!1}=d;c&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a)),t!==void 0&<(t,s=>{s?(Ct("keydown",document,i),Ct("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return f3()?(ri(l),Xt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),Zn(o)}const p3="n-internal-select-menu",Op="n-internal-select-menu-body",Es="n-modal-body",gw="n-modal-provider",Lp="n-modal",ks="n-drawer-body",m3="n-drawer",Na="n-popover-body",Hp="__disabled__";function $o(e){const t=Oe(Es,null),o=Oe(ks,null),n=Oe(Na,null),r=Oe(Op,null),i=$();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ut(()=>{Ct("fullscreenchange",document,a)}),Xt(()=>{xt("fullscreenchange",document,a)})}return vt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Hp:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:l??(i.value||"body")})}$o.tdkey=Hp;$o.propTo={type:[String,Object,Boolean],default:void 0};let M2=!1;function vw(){if(wn&&window.CSS&&!M2&&(M2=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function J0(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function e1(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(M(String(n)));return}if(Array.isArray(n)){e1(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&e1(n.children,t,o)}else n.type!==vo&&o.push(n)}}),o}function R2(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=e1(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let Pr=null;function Np(){if(Pr===null&&(Pr=document.getElementById("v-binder-view-measurer"),Pr===null)){Pr=document.createElement("div"),Pr.id="v-binder-view-measurer";const{style:e}=Pr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Pr)}return Pr.getBoundingClientRect()}function bw(e,t){const o=Np();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Ac(e){const t=e.getBoundingClientRect(),o=Np();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function xw(e){return e.nodeType===9?null:e.parentNode}function Vp(e){if(e===null)return null;const t=xw(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return Vp(t)}const _s=ye({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;et("VBinder",(t=xr())===null||t===void 0?void 0:t.proxy);const o=Oe("VBinder",null),n=$(null),r=b=>{n.value=b,o&&e.syncTargetWithParent&&o.setTargetRef(b)};let i=[];const a=()=>{let b=n.value;for(;b=Vp(b),b!==null;)i.push(b);for(const x of i)Ct("scroll",x,c,!0)},l=()=>{for(const b of i)xt("scroll",b,c,!0);i=[]},s=new Set,u=b=>{s.size===0&&a(),s.has(b)||s.add(b)},d=b=>{s.has(b)&&s.delete(b),s.size===0&&l()},c=()=>{Ql(h)},h=()=>{s.forEach(b=>b())},f=new Set,p=b=>{f.size===0&&Ct("resize",window,v),f.has(b)||f.add(b)},g=b=>{f.has(b)&&f.delete(b),f.size===0&&xt("resize",window,v)},v=()=>{f.forEach(b=>b())};return Xt(()=>{xt("resize",window,v),l()}),{targetRef:n,setTargetRef:r,addScrollListener:u,removeScrollListener:d,addResizeListener:p,removeResizeListener:g}},render(){return J0("binder",this.$slots)}}),Ms=ye({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Oe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?zo(R2("follower",this.$slots),[[t]]):R2("follower",this.$slots)}}),la="@@mmoContext",yw={mounted(e,{value:t}){e[la]={handler:void 0},typeof t=="function"&&(e[la].handler=t,Ct("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[la];typeof t=="function"?o.handler?o.handler!==t&&(xt("mousemoveoutside",e,o.handler),o.handler=t,Ct("mousemoveoutside",e,t)):(e[la].handler=t,Ct("mousemoveoutside",e,t)):o.handler&&(xt("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[la];t&&xt("mousemoveoutside",e,t),e[la].handler=void 0}},sa="@@coContext",Hi={mounted(e,{value:t,modifiers:o}){e[sa]={handler:void 0},typeof t=="function"&&(e[sa].handler=t,Ct("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[sa];typeof t=="function"?n.handler?n.handler!==t&&(xt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Ct("clickoutside",e,t,{capture:o.capture})):(e[sa].handler=t,Ct("clickoutside",e,t,{capture:o.capture})):n.handler&&(xt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[sa];o&&xt("clickoutside",e,o,{capture:t.capture}),e[sa].handler=void 0}};function Cw(e,t){console.error(`[vdirs/${e}]: ${t}`)}class ww{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&Cw("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Bc=new ww,ua="@@ziContext",zd={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[ua]={enabled:!!r,initialized:!1},r&&(Bc.ensureZIndex(e,n),e[ua].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[ua].enabled;r&&!i&&(Bc.ensureZIndex(e,n),e[ua].initialized=!0),e[ua].enabled=!!r},unmounted(e,t){if(!e[ua].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Bc.unregister(e,n)}},Sw="@css-render/vue3-ssr";function Fw(e,t){return``}function Ew(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(Fw(e,t)))}const kw=typeof document<"u";function ai(){if(kw)return;const e=Oe(Sw,null);if(e!==null)return{adapter:(t,o)=>Ew(t,o,e),context:e}}function z2(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:jn}=zp(),$d="vueuc-style";function $2(e){return e&-e}class Wp{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=$2(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?J0("lazy-teleport",this.$slots):m(ys,{disabled:this.disabled,to:this.mergedTo},J0("lazy-teleport",this.$slots)):null}}),iu={top:"bottom",bottom:"top",left:"right",right:"left"},A2={start:"end",center:"center",end:"start"},Dc={top:"height",bottom:"height",left:"width",right:"width"},_w={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Mw={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Rw={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},B2={top:!0,bottom:!1,left:!0,right:!1},D2={top:"end",bottom:"start",left:"end",right:"start"};function zw(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l??"center",u={top:0,left:0};const d=(f,p,g)=>{let v=0,b=0;const x=o[f]-t[p]-t[f];return x>0&&n&&(g?b=B2[p]?x:-x:v=B2[p]?x:-x),{left:v,top:b}},c=a==="left"||a==="right";if(s!=="center"){const f=Rw[e],p=iu[f],g=Dc[f];if(o[g]>t[g]){if(t[f]+t[g]t[p]&&(s=A2[l])}else{const f=a==="bottom"||a==="top"?"left":"top",p=iu[f],g=Dc[f],v=(o[g]-t[g])/2;(t[f]t[p]?(s=D2[f],u=d(g,f,c)):(s=D2[p],u=d(g,p,c)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Rs=ye({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Oe("VBinder"),o=vt(()=>e.enabled!==void 0?e.enabled:e.show),n=$(null),r=$(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ut(()=>{o.value&&(s(),i())});const l=ai();Aw.mount({id:"vueuc/binder",head:!0,anchorMetaName:$d,ssr:l}),Xt(()=>{a()}),h3(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=n.value;if(h===null)return;const f=t.targetRef,{x:p,y:g,overlap:v}=e,b=p!==void 0&&g!==void 0?bw(p,g):Ac(f);h.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:x,minWidth:E,placement:C,internalShift:k,flip:_}=e;h.setAttribute("v-placement",C),v?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:F}=h;x==="target"?F.width=`${b.width}px`:x!==void 0?F.width=x:F.width="",E==="target"?F.minWidth=`${b.width}px`:E!==void 0?F.minWidth=E:F.minWidth="";const P=Ac(h),z=Ac(r.value),{left:B,top:j,placement:V}=zw(C,b,P,k,_,v),K=$w(V,v),{left:N,top:T,transform:L}=Pw(V,z,b,j,B,v);h.setAttribute("v-placement",V),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(j)}px`),h.style.transform=`translateX(${N}) translateY(${T}) ${L}`,h.style.setProperty("--v-transform-origin",K),h.style.transformOrigin=K};lt(o,h=>{h?(i(),u()):a()});const u=()=>{Mt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{lt(Ae(e,h),s)}),["teleportDisabled"].forEach(h=>{lt(Ae(e,h),u)}),lt(Ae(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Cr(),c=vt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:c,syncPosition:s}},render(){return m(g3,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=m("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[m("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?zo(o,[[zd,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Bi=[],Bw=function(){return Bi.some(function(e){return e.activeTargets.length>0})},Dw=function(){return Bi.some(function(e){return e.skippedTargets.length>0})},T2="ResizeObserver loop completed with undelivered notifications.",Tw=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:T2}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=T2),window.dispatchEvent(e)},os;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(os||(os={}));var Di=function(e){return Object.freeze(e)},Iw=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Di(this)}return e}(),jp=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Di(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,u=t.height;return{x:o,y:n,top:r,right:i,bottom:a,left:l,width:s,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),v3=function(e){return e instanceof SVGElement&&"getBBox"in e},Up=function(e){if(v3(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},I2=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Ow=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Il=typeof window<"u"?window:{},au=new WeakMap,O2=/auto|scroll/,Lw=/^tb|vertical/,Hw=/msie|trident/i.test(Il.navigator&&Il.navigator.userAgent),On=function(e){return parseFloat(e||"0")},_a=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Iw((o?t:e)||0,(o?e:t)||0)},L2=Di({devicePixelContentBoxSize:_a(),borderBoxSize:_a(),contentBoxSize:_a(),contentRect:new jp(0,0,0,0)}),Kp=function(e,t){if(t===void 0&&(t=!1),au.has(e)&&!t)return au.get(e);if(Up(e))return au.set(e,L2),L2;var o=getComputedStyle(e),n=v3(e)&&e.ownerSVGElement&&e.getBBox(),r=!Hw&&o.boxSizing==="border-box",i=Lw.test(o.writingMode||""),a=!n&&O2.test(o.overflowY||""),l=!n&&O2.test(o.overflowX||""),s=n?0:On(o.paddingTop),u=n?0:On(o.paddingRight),d=n?0:On(o.paddingBottom),c=n?0:On(o.paddingLeft),h=n?0:On(o.borderTopWidth),f=n?0:On(o.borderRightWidth),p=n?0:On(o.borderBottomWidth),g=n?0:On(o.borderLeftWidth),v=c+u,b=s+d,x=g+f,E=h+p,C=l?e.offsetHeight-E-e.clientHeight:0,k=a?e.offsetWidth-x-e.clientWidth:0,_=r?v+x:0,F=r?b+E:0,P=n?n.width:On(o.width)-_-k,z=n?n.height:On(o.height)-F-C,B=P+v+k+x,j=z+b+C+E,V=Di({devicePixelContentBoxSize:_a(Math.round(P*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:_a(B,j,i),contentBoxSize:_a(P,z,i),contentRect:new jp(c,s,P,z)});return au.set(e,V),V},Gp=function(e,t,o){var n=Kp(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case os.DEVICE_PIXEL_CONTENT_BOX:return a;case os.BORDER_BOX:return r;default:return i}},Nw=function(){function e(t){var o=Kp(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Di([o.borderBoxSize]),this.contentBoxSize=Di([o.contentBoxSize]),this.devicePixelContentBoxSize=Di([o.devicePixelContentBoxSize])}return e}(),qp=function(e){if(Up(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Vw=function(){var e=1/0,t=[];Bi.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(u){var d=new Nw(u.target),c=qp(u.target);l.push(d),u.lastReportedSize=Gp(u.target,u.observedBox),ce?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Ww=function(){var e=0;for(H2(e);Bw();)e=Vw(),H2(e);return Dw()&&Tw(),e>0},Tc,Zp=[],jw=function(){return Zp.splice(0).forEach(function(e){return e()})},Uw=function(e){if(!Tc){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return jw()}).observe(o,n),Tc=function(){o.textContent="".concat(t?t--:t++)}}Zp.push(e),Tc()},Kw=function(e){Uw(function(){requestAnimationFrame(e)})},Au=0,Gw=function(){return!!Au},qw=250,Zw={attributes:!0,characterData:!0,childList:!0,subtree:!0},N2=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V2=function(e){return e===void 0&&(e=0),Date.now()+e},Ic=!1,Xw=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=qw),!Ic){Ic=!0;var n=V2(t);Kw(function(){var r=!1;try{r=Ww()}finally{if(Ic=!1,t=n-V2(),!Gw())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Zw)};document.body?o():Il.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),N2.forEach(function(o){return Il.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),N2.forEach(function(o){return Il.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),t1=new Xw,W2=function(e){!Au&&e>0&&t1.start(),Au+=e,!Au&&t1.stop()},Yw=function(e){return!v3(e)&&!Ow(e)&&getComputedStyle(e).display==="inline"},Qw=function(){function e(t,o){this.target=t,this.observedBox=o||os.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Gp(this.target,this.observedBox,!0);return Yw(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Jw=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),lu=new WeakMap,j2=function(e,t){for(var o=0;o=0&&(i&&Bi.splice(Bi.indexOf(n),1),n.observationTargets.splice(r,1),W2(-1))},e.disconnect=function(t){var o=this,n=lu.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),eS=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");su.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");su.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");su.unobserve(this,t)},e.prototype.disconnect=function(){su.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class tS{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||eS)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Yu=new tS,Rn=ye({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=xr().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}ut(()=>{const r=o.$el;if(r===void 0){z2("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){z2("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Yu.registerHandler(r.nextElementSibling,n),t=!0)}),Xt(()=>{t&&Yu.unregisterHandler(o.$el.nextElementSibling)})},render(){return Cs(this.$slots,"default")}});let uu;function oS(){return typeof document>"u"?!1:(uu===void 0&&("matchMedia"in window?uu=window.matchMedia("(pointer:coarse)").matches:uu=!1),uu)}let Oc;function U2(){return typeof document>"u"?1:(Oc===void 0&&(Oc="chrome"in window?window.devicePixelRatio:1),Oc)}const Xp="VVirtualListXScroll";function nS({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=$(0),r=$(0),i=D(()=>{const u=e.value;if(u.length===0)return null;const d=new Wp(u.length,0);return u.forEach((c,h)=>{d.add(h,c.width)}),d}),a=vt(()=>{const u=i.value;return u!==null?Math.max(u.getBound(r.value)-1,0):0}),l=u=>{const d=i.value;return d!==null?d.sum(u):0},s=vt(()=>{const u=i.value;return u!==null?Math.min(u.getBound(r.value+n.value)+1,e.value.length-1):0});return et(Xp,{startIndexRef:a,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:l}),{listWidthRef:n,scrollLeftRef:r}}const K2=ye({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=Oe(Xp);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:a}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:a,getLeft:i});if(n!=null){const l=[];for(let s=e;s<=t;++s){const u=o[s];l.push(n({column:u,left:i(s),item:a}))}return l}return null}}),rS=jn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[jn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[jn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),b3=ye({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=ai();rS.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:$d,ssr:t}),ut(()=>{const{defaultScrollIndex:K,defaultScrollKey:N}=e;K!=null?v({index:K}):N!=null&&v({key:N})});let o=!1,n=!1;Q1(()=>{if(o=!1,!n){n=!0;return}v({top:f.value,left:a.value})}),wd(()=>{o=!0,n||(n=!0)});const r=vt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let K=0;return e.columns.forEach(N=>{K+=N.width}),K}),i=D(()=>{const K=new Map,{keyField:N}=e;return e.items.forEach((T,L)=>{K.set(T[N],L)}),K}),{scrollLeftRef:a,listWidthRef:l}=nS({columnsRef:Ae(e,"columns"),renderColRef:Ae(e,"renderCol"),renderItemWithColsRef:Ae(e,"renderItemWithCols")}),s=$(null),u=$(void 0),d=new Map,c=D(()=>{const{items:K,itemSize:N,keyField:T}=e,L=new Wp(K.length,N);return K.forEach((R,I)=>{const w=R[T],Q=d.get(w);Q!==void 0&&L.add(I,Q)}),L}),h=$(0),f=$(0),p=vt(()=>Math.max(c.value.getBound(f.value-so(e.paddingTop))-1,0)),g=D(()=>{const{value:K}=u;if(K===void 0)return[];const{items:N,itemSize:T}=e,L=p.value,R=Math.min(L+Math.ceil(K/T+1),N.length-1),I=[];for(let w=L;w<=R;++w)I.push(N[w]);return I}),v=(K,N)=>{if(typeof K=="number"){C(K,N,"auto");return}const{left:T,top:L,index:R,key:I,position:w,behavior:Q,debounce:U=!0}=K;if(T!==void 0||L!==void 0)C(T,L,Q);else if(R!==void 0)E(R,Q,U);else if(I!==void 0){const X=i.value.get(I);X!==void 0&&E(X,Q,U)}else w==="bottom"?C(0,Number.MAX_SAFE_INTEGER,Q):w==="top"&&C(0,0,Q)};let b,x=null;function E(K,N,T){const{value:L}=c,R=L.sum(K)+so(e.paddingTop);if(!T)s.value.scrollTo({left:0,top:R,behavior:N});else{b=K,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{b=void 0,x=null},16);const{scrollTop:I,offsetHeight:w}=s.value;if(R>I){const Q=L.get(K);R+Q<=I+w||s.value.scrollTo({left:0,top:R+Q-w,behavior:N})}else s.value.scrollTo({left:0,top:R,behavior:N})}}function C(K,N,T){s.value.scrollTo({left:K,top:N,behavior:T})}function k(K,N){var T,L,R;if(o||e.ignoreItemResize||V(N.target))return;const{value:I}=c,w=i.value.get(K),Q=I.get(w),U=(R=(L=(T=N.borderBoxSize)===null||T===void 0?void 0:T[0])===null||L===void 0?void 0:L.blockSize)!==null&&R!==void 0?R:N.contentRect.height;if(U===Q)return;U-e.itemSize===0?d.delete(K):d.set(K,U-e.itemSize);const re=U-Q;if(re===0)return;I.add(w,re);const he=s.value;if(he!=null){if(b===void 0){const Se=I.sum(w);he.scrollTop>Se&&he.scrollBy(0,re)}else if(whe.scrollTop+he.offsetHeight&&he.scrollBy(0,re)}j()}h.value++}const _=!oS();let F=!1;function P(K){var N;(N=e.onScroll)===null||N===void 0||N.call(e,K),(!_||!F)&&j()}function z(K){var N;if((N=e.onWheel)===null||N===void 0||N.call(e,K),_){const T=s.value;if(T!=null){if(K.deltaX===0&&(T.scrollTop===0&&K.deltaY<=0||T.scrollTop+T.offsetHeight>=T.scrollHeight&&K.deltaY>=0))return;K.preventDefault(),T.scrollTop+=K.deltaY/U2(),T.scrollLeft+=K.deltaX/U2(),j(),F=!0,Ql(()=>{F=!1})}}}function B(K){if(o||V(K.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(K.contentRect.height===u.value)return}else if(K.contentRect.height===u.value&&K.contentRect.width===l.value)return;u.value=K.contentRect.height,l.value=K.contentRect.width;const{onResize:N}=e;N!==void 0&&N(K)}function j(){const{value:K}=s;K!=null&&(f.value=K.scrollTop,a.value=K.scrollLeft)}function V(K){let N=K;for(;N!==null;){if(N.style.display==="none")return!0;N=N.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:D(()=>{const{itemResizable:K}=e,N=Ht(c.value.sum());return h.value,[e.itemsStyle,{boxSizing:"content-box",width:Ht(r.value),height:K?"":N,minHeight:K?N:"",paddingTop:Ht(e.paddingTop),paddingBottom:Ht(e.paddingBottom)}]}),visibleItemsStyle:D(()=>(h.value,{transform:`translateY(${Ht(c.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:$(null),scrollTo:v,handleListResize:B,handleListScroll:P,handleListWheel:z,handleItemResize:k}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return m(Rn,{onResize:this.handleListResize},{default:()=>{var r,i;return m("div",po(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?m("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[m(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:a,renderItemWithCols:l}=this;return this.viewportItems.map(s=>{const u=s[t],d=o.get(u),c=a!=null?m(K2,{index:d,item:s}):void 0,h=l!=null?m(K2,{index:d,item:s}):void 0,f=this.$slots.default({item:s,renderedCols:c,renderedItemWithCols:h,index:d})[0];return e?m(Rn,{key:u,onResize:p=>this.handleItemResize(u,p)},{default:()=>f}):(f.key=u,f)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),iS=jn(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[jn("&::-webkit-scrollbar",{width:0,height:0})]),aS=ye({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=$(null);function t(r){!(r.currentTarget.offsetWidthh){const{updateCounter:_}=e;for(let F=E;F>=0;--F){const P=b-1-F;_!==void 0?_(P):d.textContent=`${P}`;const z=d.offsetWidth;if(g-=f[F],g+z<=h||F===0){v=!0,E=F-1,p&&(E===-1?(p.style.maxWidth=`${h-z}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:B}=e;B&&B(P);break}}}}const{onUpdateOverflow:x}=e;v?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(ar,""))}const i=ai();return lS.mount({id:"vueuc/overflow",head:!0,anchorMetaName:$d,ssr:i}),ut(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return Mt(()=>this.sync({showAllItemsBeforeCalculate:!1})),m("div",{class:"v-overflow",ref:"selfRef"},[Cs(e,"default"),e.counter?e.counter():m("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Yp(e){return e instanceof HTMLElement}function Qp(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Yp(o)&&(e8(o)||Jp(o)))return!0}return!1}function e8(e){if(!sS(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function sS(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ll=[];const x3=ye({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ii(),o=$(null),n=$(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return ll[ll.length-1]===t}function s(v){var b;v.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,v))}ut(()=>{lt(()=>e.active,v=>{v?(c(),Ct("keydown",document,s)):(xt("keydown",document,s),r&&h())},{immediate:!0})}),Xt(()=>{xt("keydown",document,s),r&&h()});function u(v){if(!i&&l()){const b=d();if(b===null||b.contains(Li(v)))return;f("first")}}function d(){const v=o.value;if(v===null)return null;let b=v;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function c(){var v;if(!e.disabled){if(ll.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?f("first"):(v=P2(b))===null||v===void 0||v.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",u,!0)}}function h(){var v;if(e.disabled||(document.removeEventListener("focus",u,!0),ll=ll.filter(x=>x!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(v=P2(b))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function f(v){if(l()&&e.active){const b=o.value,x=n.value;if(b!==null&&x!==null){const E=d();if(E==null||E===x){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const C=v==="first"?Qp(E):Jp(E);i=!1,C||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(v){if(i)return;const b=d();b!==null&&(v.relatedTarget!==null&&b.contains(v.relatedTarget)?f("last"):f("first"))}function g(v){i||(v.relatedTarget!==null&&v.relatedTarget===o.value?f("last"):f("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return m(ft,null,[m("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),m("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function t8(e,t){t&&(ut(()=>{const{value:o}=e;o&&Yu.registerHandler(o,t)}),Xt(()=>{const{value:o}=e;o&&Yu.unregisterHandler(o)}))}let da=0,q2="",Z2="",X2="",Y2="";const o1=$("0px");function o8(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=q2,t.style.overflow=Z2,t.style.overflowX=X2,t.style.overflowY=Y2,o1.value="0px"};ut(()=>{o=lt(e,i=>{if(i){if(!da){const a=window.innerWidth-t.offsetWidth;a>0&&(q2=t.style.marginRight,t.style.marginRight=`${a}px`,o1.value=`${a}px`),Z2=t.style.overflow,X2=t.style.overflowX,Y2=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,da++}else da--,da||r(),n=!1},{immediate:!0})}),Xt(()=>{o==null||o(),n&&(da--,da||r(),n=!1)})}const y3=$(!1);function Q2(){y3.value=!0}function J2(){y3.value=!1}let sl=0;function n8(){return wn&&(ri(()=>{sl||(window.addEventListener("compositionstart",Q2),window.addEventListener("compositionend",J2)),sl++}),Xt(()=>{sl<=1?(window.removeEventListener("compositionstart",Q2),window.removeEventListener("compositionend",J2),sl=0):sl--})),y3}function uS(e){const t={isDeactivated:!1};let o=!1;return Q1(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),wd(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function r8(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const ef="n-form-item";function Bn(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=Oe(ef,null);et(ef,null);const i=D(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:u}=r;if(u.value!==void 0)return u.value}return t}),a=D(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),l=D(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Xt(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var i8=typeof global=="object"&&global&&global.Object===Object&&global,dS=typeof self=="object"&&self&&self.Object===Object&&self,Dn=i8||dS||Function("return this")(),yn=Dn.Symbol,a8=Object.prototype,cS=a8.hasOwnProperty,fS=a8.toString,ul=yn?yn.toStringTag:void 0;function hS(e){var t=cS.call(e,ul),o=e[ul];try{e[ul]=void 0;var n=!0}catch{}var r=fS.call(e);return n&&(t?e[ul]=o:delete e[ul]),r}var pS=Object.prototype,mS=pS.toString;function gS(e){return mS.call(e)}var vS="[object Null]",bS="[object Undefined]",tf=yn?yn.toStringTag:void 0;function Zi(e){return e==null?e===void 0?bS:vS:tf&&tf in Object(e)?hS(e):gS(e)}function Yn(e){return e!=null&&typeof e=="object"}var xS="[object Symbol]";function Pd(e){return typeof e=="symbol"||Yn(e)&&Zi(e)==xS}function C3(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o0){if(++t>=GS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function YS(e){return function(){return e}}var Qu=function(){try{var e=Yi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QS=Qu?function(e,t){return Qu(e,"toString",{configurable:!0,enumerable:!1,value:YS(t),writable:!0})}:w3,u8=XS(QS);function JS(e,t){for(var o=-1,n=e==null?0:e.length;++o-1&&e%1==0&&e-1&&e%1==0&&e<=iF}function Wa(e){return e!=null&&E3(e.length)&&!S3(e)}function aF(e,t,o){if(!an(o))return!1;var n=typeof t;return(n=="number"?Wa(o)&&F3(t,o.length):n=="string"&&t in o)?$s(o[t],e):!1}function lF(e){return rF(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&aF(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n-1}function vE(e,t){var o=this.__data__,n=Ad(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function wr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++tr?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n=n?e:x8(e,t,o)}var NE="\\ud800-\\udfff",VE="\\u0300-\\u036f",WE="\\ufe20-\\ufe2f",jE="\\u20d0-\\u20ff",UE=VE+WE+jE,KE="\\ufe0e\\ufe0f",GE="\\u200d",qE=RegExp("["+GE+NE+UE+KE+"]");function y8(e){return qE.test(e)}function ZE(e){return e.split("")}var C8="\\ud800-\\udfff",XE="\\u0300-\\u036f",YE="\\ufe20-\\ufe2f",QE="\\u20d0-\\u20ff",JE=XE+YE+QE,ek="\\ufe0e\\ufe0f",tk="["+C8+"]",i1="["+JE+"]",a1="\\ud83c[\\udffb-\\udfff]",ok="(?:"+i1+"|"+a1+")",w8="[^"+C8+"]",S8="(?:\\ud83c[\\udde6-\\uddff]){2}",F8="[\\ud800-\\udbff][\\udc00-\\udfff]",nk="\\u200d",E8=ok+"?",k8="["+ek+"]?",rk="(?:"+nk+"(?:"+[w8,S8,F8].join("|")+")"+k8+E8+")*",ik=k8+E8+rk,ak="(?:"+[w8+i1+"?",i1,S8,F8,tk].join("|")+")",lk=RegExp(a1+"(?="+a1+")|"+ak+ik,"g");function sk(e){return e.match(lk)||[]}function uk(e){return y8(e)?sk(e):ZE(e)}function dk(e){return function(t){t=Bs(t);var o=y8(t)?uk(t):void 0,n=o?o[0]:t.charAt(0),r=o?HE(o,1).join(""):t.slice(1);return n[e]()+r}}var ck=dk("toUpperCase");function fk(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++rl))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var c=-1,h=!0,f=o&DM?new ed:void 0;for(i.set(e,t),i.set(t,e);++c=t||F<0||c&&P>=i}function b(){var _=Vc();if(v(_))return x(_);l=setTimeout(b,g(_))}function x(_){return l=void 0,h&&n?f(_):(n=r=void 0,a)}function E(){l!==void 0&&clearTimeout(l),u=0,n=s=r=l=void 0}function C(){return l===void 0?a:x(Vc())}function k(){var _=Vc(),F=v(_);if(n=arguments,r=this,s=_,F){if(l===void 0)return p(s);if(c)return clearTimeout(l),l=setTimeout(b,t),f(s)}return l===void 0&&(l=setTimeout(b,t)),a}return k.cancel=E,k.flush=C,k}function c1(e,t,o){(o!==void 0&&!$s(e[t],o)||o===void 0&&!(t in e))&&zs(e,t,o)}function _R(e){return Yn(e)&&Wa(e)}function f1(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function MR(e){return Va(e,As(e))}function RR(e,t,o,n,r,i,a){var l=f1(e,o),s=f1(t,o),u=a.get(s);if(u){c1(e,o,u);return}var d=i?i(l,s,o+"",e,t,a):void 0,c=d===void 0;if(c){var h=Oo(s),f=!h&&rs(s),p=!h&&!f&&M3(s);d=s,h||f||p?Oo(l)?d=l:_R(l)?d=s8(l):f?(c=!1,d=N8(s,!0)):p?(c=!1,d=K8(s,!0)):d=[]:b8(s)||ns(s)?(d=l,ns(l)?d=MR(l):(!an(l)||S3(l))&&(d=G8(s))):c=!1}c&&(a.set(s,d),r(d,s,n,i,a),a.delete(s)),c1(e,o,d)}function r7(e,t,o,n,r){e!==t&&e7(t,function(i,a){if(r||(r=new zn),an(i))RR(e,t,a,o,r7,n,r);else{var l=n?n(f1(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),c1(e,a,l)}},As)}function zR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function $R(e,t){var o=-1,n=Wa(e)?Array(e.length):[];return o7(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function PR(e,t){var o=Oo(e)?C3:$R;return o(e,T3(t))}function AR(e,t){return t.length<2?e:$3(e,x8(t,0,-1))}function ca(e,t){return Td(e,t)}var BR=e_(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),DR=SR(function(e,t,o){zs(e,o,t)});function TR(e,t){var o={};return t=T3(t),t7(e,function(n,r,i){zs(o,r,t(n,r,i))}),o}var Fi=lF(function(e,t,o){r7(e,t,o)});function IR(e,t){return t=Dd(t,e),e=AR(e,t),e==null||delete e[Ds(zR(t))]}function OR(e){return b8(e)?void 0:e}var LR=1,HR=2,NR=4,VR=BE(function(e,t){var o={};if(e==null)return o;var n=!1;t=C3(t,function(i){return i=Dd(i,e),n||(n=i.length>1),i}),Va(e,U8(e),o),n&&(o=Ll(o,LR|HR|NR,OR));for(var r=t.length;r--;)IR(o,t[r]);return o}),WR="Expected a function";function Bu(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(WR);return an(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),n7(e,t,{leading:n,maxWait:t,trailing:r})}function Tf(e){return Bs(e).toLowerCase()}const sn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:jR,fontFamily:UR,lineHeight:KR}=sn,i7=W("body",` +`}function Ew(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(Fw(e,t)))}const kw=typeof document<"u";function ai(){if(kw)return;const e=Oe(Sw,null);if(e!==null)return{adapter:(t,o)=>Ew(t,o,e),context:e}}function z2(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:jn}=zp(),$d="vueuc-style";function $2(e){return e&-e}class Wp{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=$2(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?J0("lazy-teleport",this.$slots):m(ys,{disabled:this.disabled,to:this.mergedTo},J0("lazy-teleport",this.$slots)):null}}),iu={top:"bottom",bottom:"top",left:"right",right:"left"},A2={start:"end",center:"center",end:"start"},Dc={top:"height",bottom:"height",left:"width",right:"width"},_w={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Mw={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Rw={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},B2={top:!0,bottom:!1,left:!0,right:!1},D2={top:"end",bottom:"start",left:"end",right:"start"};function zw(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l??"center",u={top:0,left:0};const d=(f,p,g)=>{let v=0,b=0;const x=o[f]-t[p]-t[f];return x>0&&n&&(g?b=B2[p]?x:-x:v=B2[p]?x:-x),{left:v,top:b}},c=a==="left"||a==="right";if(s!=="center"){const f=Rw[e],p=iu[f],g=Dc[f];if(o[g]>t[g]){if(t[f]+t[g]t[p]&&(s=A2[l])}else{const f=a==="bottom"||a==="top"?"left":"top",p=iu[f],g=Dc[f],v=(o[g]-t[g])/2;(t[f]t[p]?(s=D2[f],u=d(g,f,c)):(s=D2[p],u=d(g,p,c)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Rs=ye({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Oe("VBinder"),o=vt(()=>e.enabled!==void 0?e.enabled:e.show),n=$(null),r=$(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ut(()=>{o.value&&(s(),i())});const l=ai();Aw.mount({id:"vueuc/binder",head:!0,anchorMetaName:$d,ssr:l}),Xt(()=>{a()}),h3(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=n.value;if(h===null)return;const f=t.targetRef,{x:p,y:g,overlap:v}=e,b=p!==void 0&&g!==void 0?bw(p,g):Ac(f);h.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:x,minWidth:E,placement:w,internalShift:k,flip:_}=e;h.setAttribute("v-placement",w),v?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:F}=h;x==="target"?F.width=`${b.width}px`:x!==void 0?F.width=x:F.width="",E==="target"?F.minWidth=`${b.width}px`:E!==void 0?F.minWidth=E:F.minWidth="";const P=Ac(h),z=Ac(r.value),{left:A,top:G,placement:H}=zw(w,b,P,k,_,v),X=$w(H,v),{left:N,top:T,transform:O}=Pw(H,z,b,G,A,v);h.setAttribute("v-placement",H),h.style.setProperty("--v-offset-left",`${Math.round(A)}px`),h.style.setProperty("--v-offset-top",`${Math.round(G)}px`),h.style.transform=`translateX(${N}) translateY(${T}) ${O}`,h.style.setProperty("--v-transform-origin",X),h.style.transformOrigin=X};lt(o,h=>{h?(i(),u()):a()});const u=()=>{Mt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{lt(Ae(e,h),s)}),["teleportDisabled"].forEach(h=>{lt(Ae(e,h),u)}),lt(Ae(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Cr(),c=vt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:c,syncPosition:s}},render(){return m(g3,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=m("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[m("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?zo(o,[[zd,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Bi=[],Bw=function(){return Bi.some(function(e){return e.activeTargets.length>0})},Dw=function(){return Bi.some(function(e){return e.skippedTargets.length>0})},T2="ResizeObserver loop completed with undelivered notifications.",Tw=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:T2}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=T2),window.dispatchEvent(e)},os;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(os||(os={}));var Di=function(e){return Object.freeze(e)},Iw=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Di(this)}return e}(),jp=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Di(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,u=t.height;return{x:o,y:n,top:r,right:i,bottom:a,left:l,width:s,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),v3=function(e){return e instanceof SVGElement&&"getBBox"in e},Up=function(e){if(v3(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},I2=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Ow=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Il=typeof window<"u"?window:{},au=new WeakMap,O2=/auto|scroll/,Lw=/^tb|vertical/,Hw=/msie|trident/i.test(Il.navigator&&Il.navigator.userAgent),On=function(e){return parseFloat(e||"0")},_a=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Iw((o?t:e)||0,(o?e:t)||0)},L2=Di({devicePixelContentBoxSize:_a(),borderBoxSize:_a(),contentBoxSize:_a(),contentRect:new jp(0,0,0,0)}),Kp=function(e,t){if(t===void 0&&(t=!1),au.has(e)&&!t)return au.get(e);if(Up(e))return au.set(e,L2),L2;var o=getComputedStyle(e),n=v3(e)&&e.ownerSVGElement&&e.getBBox(),r=!Hw&&o.boxSizing==="border-box",i=Lw.test(o.writingMode||""),a=!n&&O2.test(o.overflowY||""),l=!n&&O2.test(o.overflowX||""),s=n?0:On(o.paddingTop),u=n?0:On(o.paddingRight),d=n?0:On(o.paddingBottom),c=n?0:On(o.paddingLeft),h=n?0:On(o.borderTopWidth),f=n?0:On(o.borderRightWidth),p=n?0:On(o.borderBottomWidth),g=n?0:On(o.borderLeftWidth),v=c+u,b=s+d,x=g+f,E=h+p,w=l?e.offsetHeight-E-e.clientHeight:0,k=a?e.offsetWidth-x-e.clientWidth:0,_=r?v+x:0,F=r?b+E:0,P=n?n.width:On(o.width)-_-k,z=n?n.height:On(o.height)-F-w,A=P+v+k+x,G=z+b+w+E,H=Di({devicePixelContentBoxSize:_a(Math.round(P*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:_a(A,G,i),contentBoxSize:_a(P,z,i),contentRect:new jp(c,s,P,z)});return au.set(e,H),H},Gp=function(e,t,o){var n=Kp(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case os.DEVICE_PIXEL_CONTENT_BOX:return a;case os.BORDER_BOX:return r;default:return i}},Nw=function(){function e(t){var o=Kp(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Di([o.borderBoxSize]),this.contentBoxSize=Di([o.contentBoxSize]),this.devicePixelContentBoxSize=Di([o.devicePixelContentBoxSize])}return e}(),qp=function(e){if(Up(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Vw=function(){var e=1/0,t=[];Bi.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(u){var d=new Nw(u.target),c=qp(u.target);l.push(d),u.lastReportedSize=Gp(u.target,u.observedBox),ce?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Ww=function(){var e=0;for(H2(e);Bw();)e=Vw(),H2(e);return Dw()&&Tw(),e>0},Tc,Zp=[],jw=function(){return Zp.splice(0).forEach(function(e){return e()})},Uw=function(e){if(!Tc){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return jw()}).observe(o,n),Tc=function(){o.textContent="".concat(t?t--:t++)}}Zp.push(e),Tc()},Kw=function(e){Uw(function(){requestAnimationFrame(e)})},Au=0,Gw=function(){return!!Au},qw=250,Zw={attributes:!0,characterData:!0,childList:!0,subtree:!0},N2=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V2=function(e){return e===void 0&&(e=0),Date.now()+e},Ic=!1,Xw=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=qw),!Ic){Ic=!0;var n=V2(t);Kw(function(){var r=!1;try{r=Ww()}finally{if(Ic=!1,t=n-V2(),!Gw())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Zw)};document.body?o():Il.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),N2.forEach(function(o){return Il.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),N2.forEach(function(o){return Il.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),t1=new Xw,W2=function(e){!Au&&e>0&&t1.start(),Au+=e,!Au&&t1.stop()},Yw=function(e){return!v3(e)&&!Ow(e)&&getComputedStyle(e).display==="inline"},Qw=function(){function e(t,o){this.target=t,this.observedBox=o||os.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Gp(this.target,this.observedBox,!0);return Yw(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Jw=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),lu=new WeakMap,j2=function(e,t){for(var o=0;o=0&&(i&&Bi.splice(Bi.indexOf(n),1),n.observationTargets.splice(r,1),W2(-1))},e.disconnect=function(t){var o=this,n=lu.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),eS=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");su.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");su.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");su.unobserve(this,t)},e.prototype.disconnect=function(){su.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class tS{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||eS)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Yu=new tS,Rn=ye({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=xr().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}ut(()=>{const r=o.$el;if(r===void 0){z2("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){z2("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Yu.registerHandler(r.nextElementSibling,n),t=!0)}),Xt(()=>{t&&Yu.unregisterHandler(o.$el.nextElementSibling)})},render(){return Cs(this.$slots,"default")}});let uu;function oS(){return typeof document>"u"?!1:(uu===void 0&&("matchMedia"in window?uu=window.matchMedia("(pointer:coarse)").matches:uu=!1),uu)}let Oc;function U2(){return typeof document>"u"?1:(Oc===void 0&&(Oc="chrome"in window?window.devicePixelRatio:1),Oc)}const Xp="VVirtualListXScroll";function nS({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=$(0),r=$(0),i=D(()=>{const u=e.value;if(u.length===0)return null;const d=new Wp(u.length,0);return u.forEach((c,h)=>{d.add(h,c.width)}),d}),a=vt(()=>{const u=i.value;return u!==null?Math.max(u.getBound(r.value)-1,0):0}),l=u=>{const d=i.value;return d!==null?d.sum(u):0},s=vt(()=>{const u=i.value;return u!==null?Math.min(u.getBound(r.value+n.value)+1,e.value.length-1):0});return tt(Xp,{startIndexRef:a,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:l}),{listWidthRef:n,scrollLeftRef:r}}const K2=ye({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=Oe(Xp);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:a}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:a,getLeft:i});if(n!=null){const l=[];for(let s=e;s<=t;++s){const u=o[s];l.push(n({column:u,left:i(s),item:a}))}return l}return null}}),rS=jn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[jn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[jn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),b3=ye({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=ai();rS.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:$d,ssr:t}),ut(()=>{const{defaultScrollIndex:X,defaultScrollKey:N}=e;X!=null?v({index:X}):N!=null&&v({key:N})});let o=!1,n=!1;Q1(()=>{if(o=!1,!n){n=!0;return}v({top:f.value,left:a.value})}),wd(()=>{o=!0,n||(n=!0)});const r=vt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let X=0;return e.columns.forEach(N=>{X+=N.width}),X}),i=D(()=>{const X=new Map,{keyField:N}=e;return e.items.forEach((T,O)=>{X.set(T[N],O)}),X}),{scrollLeftRef:a,listWidthRef:l}=nS({columnsRef:Ae(e,"columns"),renderColRef:Ae(e,"renderCol"),renderItemWithColsRef:Ae(e,"renderItemWithCols")}),s=$(null),u=$(void 0),d=new Map,c=D(()=>{const{items:X,itemSize:N,keyField:T}=e,O=new Wp(X.length,N);return X.forEach((R,L)=>{const ne=R[T],y=d.get(ne);y!==void 0&&O.add(L,y)}),O}),h=$(0),f=$(0),p=vt(()=>Math.max(c.value.getBound(f.value-so(e.paddingTop))-1,0)),g=D(()=>{const{value:X}=u;if(X===void 0)return[];const{items:N,itemSize:T}=e,O=p.value,R=Math.min(O+Math.ceil(X/T+1),N.length-1),L=[];for(let ne=O;ne<=R;++ne)L.push(N[ne]);return L}),v=(X,N)=>{if(typeof X=="number"){w(X,N,"auto");return}const{left:T,top:O,index:R,key:L,position:ne,behavior:y,debounce:K=!0}=X;if(T!==void 0||O!==void 0)w(T,O,y);else if(R!==void 0)E(R,y,K);else if(L!==void 0){const U=i.value.get(L);U!==void 0&&E(U,y,K)}else ne==="bottom"?w(0,Number.MAX_SAFE_INTEGER,y):ne==="top"&&w(0,0,y)};let b,x=null;function E(X,N,T){const{value:O}=c,R=O.sum(X)+so(e.paddingTop);if(!T)s.value.scrollTo({left:0,top:R,behavior:N});else{b=X,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{b=void 0,x=null},16);const{scrollTop:L,offsetHeight:ne}=s.value;if(R>L){const y=O.get(X);R+y<=L+ne||s.value.scrollTo({left:0,top:R+y-ne,behavior:N})}else s.value.scrollTo({left:0,top:R,behavior:N})}}function w(X,N,T){s.value.scrollTo({left:X,top:N,behavior:T})}function k(X,N){var T,O,R;if(o||e.ignoreItemResize||H(N.target))return;const{value:L}=c,ne=i.value.get(X),y=L.get(ne),K=(R=(O=(T=N.borderBoxSize)===null||T===void 0?void 0:T[0])===null||O===void 0?void 0:O.blockSize)!==null&&R!==void 0?R:N.contentRect.height;if(K===y)return;K-e.itemSize===0?d.delete(X):d.set(X,K-e.itemSize);const ue=K-y;if(ue===0)return;L.add(ne,ue);const se=s.value;if(se!=null){if(b===void 0){const Fe=L.sum(ne);se.scrollTop>Fe&&se.scrollBy(0,ue)}else if(nese.scrollTop+se.offsetHeight&&se.scrollBy(0,ue)}G()}h.value++}const _=!oS();let F=!1;function P(X){var N;(N=e.onScroll)===null||N===void 0||N.call(e,X),(!_||!F)&&G()}function z(X){var N;if((N=e.onWheel)===null||N===void 0||N.call(e,X),_){const T=s.value;if(T!=null){if(X.deltaX===0&&(T.scrollTop===0&&X.deltaY<=0||T.scrollTop+T.offsetHeight>=T.scrollHeight&&X.deltaY>=0))return;X.preventDefault(),T.scrollTop+=X.deltaY/U2(),T.scrollLeft+=X.deltaX/U2(),G(),F=!0,Ql(()=>{F=!1})}}}function A(X){if(o||H(X.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(X.contentRect.height===u.value)return}else if(X.contentRect.height===u.value&&X.contentRect.width===l.value)return;u.value=X.contentRect.height,l.value=X.contentRect.width;const{onResize:N}=e;N!==void 0&&N(X)}function G(){const{value:X}=s;X!=null&&(f.value=X.scrollTop,a.value=X.scrollLeft)}function H(X){let N=X;for(;N!==null;){if(N.style.display==="none")return!0;N=N.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:D(()=>{const{itemResizable:X}=e,N=Ht(c.value.sum());return h.value,[e.itemsStyle,{boxSizing:"content-box",width:Ht(r.value),height:X?"":N,minHeight:X?N:"",paddingTop:Ht(e.paddingTop),paddingBottom:Ht(e.paddingBottom)}]}),visibleItemsStyle:D(()=>(h.value,{transform:`translateY(${Ht(c.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:$(null),scrollTo:v,handleListResize:A,handleListScroll:P,handleListWheel:z,handleItemResize:k}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return m(Rn,{onResize:this.handleListResize},{default:()=>{var r,i;return m("div",po(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?m("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[m(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:a,renderItemWithCols:l}=this;return this.viewportItems.map(s=>{const u=s[t],d=o.get(u),c=a!=null?m(K2,{index:d,item:s}):void 0,h=l!=null?m(K2,{index:d,item:s}):void 0,f=this.$slots.default({item:s,renderedCols:c,renderedItemWithCols:h,index:d})[0];return e?m(Rn,{key:u,onResize:p=>this.handleItemResize(u,p)},{default:()=>f}):(f.key=u,f)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),iS=jn(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[jn("&::-webkit-scrollbar",{width:0,height:0})]),aS=ye({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=$(null);function t(r){!(r.currentTarget.offsetWidthh){const{updateCounter:_}=e;for(let F=E;F>=0;--F){const P=b-1-F;_!==void 0?_(P):d.textContent=`${P}`;const z=d.offsetWidth;if(g-=f[F],g+z<=h||F===0){v=!0,E=F-1,p&&(E===-1?(p.style.maxWidth=`${h-z}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:A}=e;A&&A(P);break}}}}const{onUpdateOverflow:x}=e;v?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(ar,""))}const i=ai();return lS.mount({id:"vueuc/overflow",head:!0,anchorMetaName:$d,ssr:i}),ut(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return Mt(()=>this.sync({showAllItemsBeforeCalculate:!1})),m("div",{class:"v-overflow",ref:"selfRef"},[Cs(e,"default"),e.counter?e.counter():m("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Yp(e){return e instanceof HTMLElement}function Qp(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Yp(o)&&(e8(o)||Jp(o)))return!0}return!1}function e8(e){if(!sS(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function sS(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ll=[];const x3=ye({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ii(),o=$(null),n=$(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return ll[ll.length-1]===t}function s(v){var b;v.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,v))}ut(()=>{lt(()=>e.active,v=>{v?(c(),wt("keydown",document,s)):(xt("keydown",document,s),r&&h())},{immediate:!0})}),Xt(()=>{xt("keydown",document,s),r&&h()});function u(v){if(!i&&l()){const b=d();if(b===null||b.contains(Li(v)))return;f("first")}}function d(){const v=o.value;if(v===null)return null;let b=v;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function c(){var v;if(!e.disabled){if(ll.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?f("first"):(v=P2(b))===null||v===void 0||v.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",u,!0)}}function h(){var v;if(e.disabled||(document.removeEventListener("focus",u,!0),ll=ll.filter(x=>x!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(v=P2(b))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function f(v){if(l()&&e.active){const b=o.value,x=n.value;if(b!==null&&x!==null){const E=d();if(E==null||E===x){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const w=v==="first"?Qp(E):Jp(E);i=!1,w||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(v){if(i)return;const b=d();b!==null&&(v.relatedTarget!==null&&b.contains(v.relatedTarget)?f("last"):f("first"))}function g(v){i||(v.relatedTarget!==null&&v.relatedTarget===o.value?f("last"):f("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return m(ft,null,[m("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),m("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function t8(e,t){t&&(ut(()=>{const{value:o}=e;o&&Yu.registerHandler(o,t)}),Xt(()=>{const{value:o}=e;o&&Yu.unregisterHandler(o)}))}let da=0,q2="",Z2="",X2="",Y2="";const o1=$("0px");function o8(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=q2,t.style.overflow=Z2,t.style.overflowX=X2,t.style.overflowY=Y2,o1.value="0px"};ut(()=>{o=lt(e,i=>{if(i){if(!da){const a=window.innerWidth-t.offsetWidth;a>0&&(q2=t.style.marginRight,t.style.marginRight=`${a}px`,o1.value=`${a}px`),Z2=t.style.overflow,X2=t.style.overflowX,Y2=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,da++}else da--,da||r(),n=!1},{immediate:!0})}),Xt(()=>{o==null||o(),n&&(da--,da||r(),n=!1)})}const y3=$(!1);function Q2(){y3.value=!0}function J2(){y3.value=!1}let sl=0;function n8(){return wn&&(ri(()=>{sl||(window.addEventListener("compositionstart",Q2),window.addEventListener("compositionend",J2)),sl++}),Xt(()=>{sl<=1?(window.removeEventListener("compositionstart",Q2),window.removeEventListener("compositionend",J2),sl=0):sl--})),y3}function uS(e){const t={isDeactivated:!1};let o=!1;return Q1(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),wd(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function r8(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const ef="n-form-item";function Bn(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=Oe(ef,null);tt(ef,null);const i=D(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:u}=r;if(u.value!==void 0)return u.value}return t}),a=D(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),l=D(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Xt(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var i8=typeof global=="object"&&global&&global.Object===Object&&global,dS=typeof self=="object"&&self&&self.Object===Object&&self,Dn=i8||dS||Function("return this")(),yn=Dn.Symbol,a8=Object.prototype,cS=a8.hasOwnProperty,fS=a8.toString,ul=yn?yn.toStringTag:void 0;function hS(e){var t=cS.call(e,ul),o=e[ul];try{e[ul]=void 0;var n=!0}catch{}var r=fS.call(e);return n&&(t?e[ul]=o:delete e[ul]),r}var pS=Object.prototype,mS=pS.toString;function gS(e){return mS.call(e)}var vS="[object Null]",bS="[object Undefined]",tf=yn?yn.toStringTag:void 0;function Zi(e){return e==null?e===void 0?bS:vS:tf&&tf in Object(e)?hS(e):gS(e)}function Yn(e){return e!=null&&typeof e=="object"}var xS="[object Symbol]";function Pd(e){return typeof e=="symbol"||Yn(e)&&Zi(e)==xS}function C3(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o0){if(++t>=GS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function YS(e){return function(){return e}}var Qu=function(){try{var e=Yi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QS=Qu?function(e,t){return Qu(e,"toString",{configurable:!0,enumerable:!1,value:YS(t),writable:!0})}:w3,u8=XS(QS);function JS(e,t){for(var o=-1,n=e==null?0:e.length;++o-1&&e%1==0&&e-1&&e%1==0&&e<=iF}function Wa(e){return e!=null&&E3(e.length)&&!S3(e)}function aF(e,t,o){if(!an(o))return!1;var n=typeof t;return(n=="number"?Wa(o)&&F3(t,o.length):n=="string"&&t in o)?$s(o[t],e):!1}function lF(e){return rF(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&aF(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n-1}function vE(e,t){var o=this.__data__,n=Ad(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function wr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++tr?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n=n?e:x8(e,t,o)}var NE="\\ud800-\\udfff",VE="\\u0300-\\u036f",WE="\\ufe20-\\ufe2f",jE="\\u20d0-\\u20ff",UE=VE+WE+jE,KE="\\ufe0e\\ufe0f",GE="\\u200d",qE=RegExp("["+GE+NE+UE+KE+"]");function y8(e){return qE.test(e)}function ZE(e){return e.split("")}var C8="\\ud800-\\udfff",XE="\\u0300-\\u036f",YE="\\ufe20-\\ufe2f",QE="\\u20d0-\\u20ff",JE=XE+YE+QE,ek="\\ufe0e\\ufe0f",tk="["+C8+"]",i1="["+JE+"]",a1="\\ud83c[\\udffb-\\udfff]",ok="(?:"+i1+"|"+a1+")",w8="[^"+C8+"]",S8="(?:\\ud83c[\\udde6-\\uddff]){2}",F8="[\\ud800-\\udbff][\\udc00-\\udfff]",nk="\\u200d",E8=ok+"?",k8="["+ek+"]?",rk="(?:"+nk+"(?:"+[w8,S8,F8].join("|")+")"+k8+E8+")*",ik=k8+E8+rk,ak="(?:"+[w8+i1+"?",i1,S8,F8,tk].join("|")+")",lk=RegExp(a1+"(?="+a1+")|"+ak+ik,"g");function sk(e){return e.match(lk)||[]}function uk(e){return y8(e)?sk(e):ZE(e)}function dk(e){return function(t){t=Bs(t);var o=y8(t)?uk(t):void 0,n=o?o[0]:t.charAt(0),r=o?HE(o,1).join(""):t.slice(1);return n[e]()+r}}var ck=dk("toUpperCase");function fk(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++rl))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var c=-1,h=!0,f=o&DM?new ed:void 0;for(i.set(e,t),i.set(t,e);++c=t||F<0||c&&P>=i}function b(){var _=Vc();if(v(_))return x(_);l=setTimeout(b,g(_))}function x(_){return l=void 0,h&&n?f(_):(n=r=void 0,a)}function E(){l!==void 0&&clearTimeout(l),u=0,n=s=r=l=void 0}function w(){return l===void 0?a:x(Vc())}function k(){var _=Vc(),F=v(_);if(n=arguments,r=this,s=_,F){if(l===void 0)return p(s);if(c)return clearTimeout(l),l=setTimeout(b,t),f(s)}return l===void 0&&(l=setTimeout(b,t)),a}return k.cancel=E,k.flush=w,k}function c1(e,t,o){(o!==void 0&&!$s(e[t],o)||o===void 0&&!(t in e))&&zs(e,t,o)}function _R(e){return Yn(e)&&Wa(e)}function f1(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function MR(e){return Va(e,As(e))}function RR(e,t,o,n,r,i,a){var l=f1(e,o),s=f1(t,o),u=a.get(s);if(u){c1(e,o,u);return}var d=i?i(l,s,o+"",e,t,a):void 0,c=d===void 0;if(c){var h=Oo(s),f=!h&&rs(s),p=!h&&!f&&M3(s);d=s,h||f||p?Oo(l)?d=l:_R(l)?d=s8(l):f?(c=!1,d=N8(s,!0)):p?(c=!1,d=K8(s,!0)):d=[]:b8(s)||ns(s)?(d=l,ns(l)?d=MR(l):(!an(l)||S3(l))&&(d=G8(s))):c=!1}c&&(a.set(s,d),r(d,s,n,i,a),a.delete(s)),c1(e,o,d)}function r7(e,t,o,n,r){e!==t&&e7(t,function(i,a){if(r||(r=new zn),an(i))RR(e,t,a,o,r7,n,r);else{var l=n?n(f1(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),c1(e,a,l)}},As)}function zR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function $R(e,t){var o=-1,n=Wa(e)?Array(e.length):[];return o7(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function PR(e,t){var o=Oo(e)?C3:$R;return o(e,T3(t))}function AR(e,t){return t.length<2?e:$3(e,x8(t,0,-1))}function ca(e,t){return Td(e,t)}var BR=e_(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),DR=SR(function(e,t,o){zs(e,o,t)});function TR(e,t){var o={};return t=T3(t),t7(e,function(n,r,i){zs(o,r,t(n,r,i))}),o}var Fi=lF(function(e,t,o){r7(e,t,o)});function IR(e,t){return t=Dd(t,e),e=AR(e,t),e==null||delete e[Ds(zR(t))]}function OR(e){return b8(e)?void 0:e}var LR=1,HR=2,NR=4,VR=BE(function(e,t){var o={};if(e==null)return o;var n=!1;t=C3(t,function(i){return i=Dd(i,e),n||(n=i.length>1),i}),Va(e,U8(e),o),n&&(o=Ll(o,LR|HR|NR,OR));for(var r=t.length;r--;)IR(o,t[r]);return o}),WR="Expected a function";function Bu(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(WR);return an(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),n7(e,t,{leading:n,maxWait:t,trailing:r})}function Tf(e){return Bs(e).toLowerCase()}const sn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:jR,fontFamily:UR,lineHeight:KR}=sn,i7=W("body",` margin: 0; font-size: ${jR}; font-family: ${UR}; @@ -42,13 +42,13 @@ ${t} `,[W("input",` font-family: inherit; font-size: inherit; - `)]),ln="n-config-provider",Aa="naive-ui-style";function Ie(e,t,o,n,r,i){const a=ai(),l=Oe(ln,null);if(o){const u=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Aa,ssr:a,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||i7.mount({id:"n-global",head:!0,anchorMetaName:Aa,ssr:a,parent:l==null?void 0:l.styleMountTarget})};a?u():ri(u)}return D(()=>{var u;const{theme:{common:d,self:c,peers:h={}}={},themeOverrides:f={},builtinThemeOverrides:p={}}=r,{common:g,peers:v}=f,{common:b=void 0,[e]:{common:x=void 0,self:E=void 0,peers:C={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:k=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:F,peers:P={}}=_,z=Fi({},d||x||b||n.common,k,F,g),B=Fi((u=c||E||n.self)===null||u===void 0?void 0:u(z),p,_,f);return{common:z,self:B,peers:Fi({},n.peers,C,h),peerOverrides:Fi({},p.peers,P,v)}})}Ie.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const td="n";function rt(e={},t={defaultBordered:!0}){const o=Oe(ln,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:D(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:xd(td),namespaceRef:D(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function a7(){const e=Oe(ln,null);return e?e.mergedClsPrefixRef:xd(td)}const GR={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function Wc(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function dl(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=o!=null&&o.width?String(o.width):a;r=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function cl(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const a=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?ZR(l,c=>c.test(a)):qR(l,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(s):s,u=o.valueCallback?o.valueCallback(u):u;const d=t.slice(a.length);return{value:u,rest:d}}}function qR(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function ZR(e,t){for(let o=0;o{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;const l=t.slice(r.length);return{value:a,rest:l}}}const YR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QR=(e,t,o)=>{let n;const r=YR[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},JR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ez=(e,t,o,n)=>JR[e],tz={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},az={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lz=(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},sz={ordinalNumber:lz,era:dl({values:tz,defaultWidth:"wide"}),quarter:dl({values:oz,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dl({values:nz,defaultWidth:"wide"}),day:dl({values:rz,defaultWidth:"wide"}),dayPeriod:dl({values:iz,defaultWidth:"wide",formattingValues:az,defaultFormattingWidth:"wide"})},uz=/^(\d+)(th|st|nd|rd)?/i,dz=/\d+/i,cz={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fz={any:[/^b/i,/^(a|c)/i]},hz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pz={any:[/1/i,/2/i,/3/i,/4/i]},mz={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vz={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bz={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xz={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yz={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cz={ordinalNumber:XR({matchPattern:uz,parsePattern:dz,valueCallback:e=>parseInt(e,10)}),era:cl({matchPatterns:cz,defaultMatchWidth:"wide",parsePatterns:fz,defaultParseWidth:"any"}),quarter:cl({matchPatterns:hz,defaultMatchWidth:"wide",parsePatterns:pz,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cl({matchPatterns:mz,defaultMatchWidth:"wide",parsePatterns:gz,defaultParseWidth:"any"}),day:cl({matchPatterns:vz,defaultMatchWidth:"wide",parsePatterns:bz,defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:xz,defaultMatchWidth:"any",parsePatterns:yz,defaultParseWidth:"any"})},wz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ez={date:Wc({formats:wz,defaultWidth:"full"}),time:Wc({formats:Sz,defaultWidth:"full"}),dateTime:Wc({formats:Fz,defaultWidth:"full"})},kz={code:"en-US",formatDistance:QR,formatLong:Ez,formatRelative:ez,localize:sz,match:Cz,options:{weekStartsOn:0,firstWeekContainsDate:1}},_z={name:"en-US",locale:kz};function Fr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Oe(ln,null)||{},n=D(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:GR[e]});return{dateLocaleRef:D(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:_z}),localeRef:n}}function Er(e,t,o){if(!t)return;const n=ai(),r=Oe(ln,null),i=()=>{const a=o.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Aa,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||i7.mount({id:"n-global",head:!0,anchorMetaName:Aa,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():ri(i)}function l7(e,t){const o=Oe(ln,null);return D(()=>e.hljs||(o==null?void 0:o.mergedHljsRef.value))}function gt(e,t,o,n){o||yr("useThemeClass","cssVarsRef is not passed");const r=Oe(ln,null),i=r==null?void 0:r.mergedThemeHashRef,a=r==null?void 0:r.styleMountTarget,l=$(""),s=ai();let u;const d=`__${e}`,c=()=>{let h=d;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(h+=`-${p}`),f&&(h+=`-${f}`);const{themeOverrides:g,builtinThemeOverrides:v}=n;g&&(h+=`-${Jl(JSON.stringify(g))}`),v&&(h+=`-${Jl(JSON.stringify(v))}`),l.value=h,u=()=>{const b=o.value;let x="";for(const E in b)x+=`${E}: ${b[E]};`;W(`.${h}`,x).mount({id:h,ssr:s,parent:a}),u=void 0}};return Et(()=>{c()}),{themeClass:l,onRender:()=>{u==null||u()}}}function Vt(e,t,o){if(!t)return;const n=ai(),r=D(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),i=Oe(ln,null),a=()=>{Et(()=>{const{value:l}=o,s=`${l}${e}Rtl`;if(qC(s,n))return;const{value:u}=r;u&&u.style.mount({id:s,head:!0,anchorMetaName:Aa,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?a():ri(a),r}const s7=ye({name:"Add",render(){return m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Mz=ye({name:"ArrowDown",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function ja(e,t){return ye({name:ck(e),setup(){var o;const n=(o=Oe(ln,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var r;const i=(r=n==null?void 0:n.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const If=ye({name:"Backward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),Rz=ye({name:"Checkmark",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),zz=ye({name:"ChevronLeft",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),I3=ye({name:"ChevronRight",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),$z=ja("close",m("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Pz=ye({name:"Eye",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),m("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Az=ye({name:"EyeOff",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),m("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),m("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),m("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),m("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Bz=ye({name:"Empty",render(){return m("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),m("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Id=ja("error",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Of=ye({name:"FastBackward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Lf=ye({name:"FastForward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Dz=ye({name:"Filter",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Hf=ye({name:"Forward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),ls=ja("info",m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Nf=ye({name:"More",render(){return m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Tz=ye({name:"Remove",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + `)]),ln="n-config-provider",Aa="naive-ui-style";function Ie(e,t,o,n,r,i){const a=ai(),l=Oe(ln,null);if(o){const u=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Aa,ssr:a,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||i7.mount({id:"n-global",head:!0,anchorMetaName:Aa,ssr:a,parent:l==null?void 0:l.styleMountTarget})};a?u():ri(u)}return D(()=>{var u;const{theme:{common:d,self:c,peers:h={}}={},themeOverrides:f={},builtinThemeOverrides:p={}}=r,{common:g,peers:v}=f,{common:b=void 0,[e]:{common:x=void 0,self:E=void 0,peers:w={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:k=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:F,peers:P={}}=_,z=Fi({},d||x||b||n.common,k,F,g),A=Fi((u=c||E||n.self)===null||u===void 0?void 0:u(z),p,_,f);return{common:z,self:A,peers:Fi({},n.peers,w,h),peerOverrides:Fi({},p.peers,P,v)}})}Ie.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const td="n";function rt(e={},t={defaultBordered:!0}){const o=Oe(ln,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:D(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:xd(td),namespaceRef:D(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function a7(){const e=Oe(ln,null);return e?e.mergedClsPrefixRef:xd(td)}const GR={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function Wc(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function dl(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=o!=null&&o.width?String(o.width):a;r=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function cl(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const a=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?ZR(l,c=>c.test(a)):qR(l,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(s):s,u=o.valueCallback?o.valueCallback(u):u;const d=t.slice(a.length);return{value:u,rest:d}}}function qR(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function ZR(e,t){for(let o=0;o{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;const l=t.slice(r.length);return{value:a,rest:l}}}const YR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QR=(e,t,o)=>{let n;const r=YR[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},JR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ez=(e,t,o,n)=>JR[e],tz={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},az={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lz=(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},sz={ordinalNumber:lz,era:dl({values:tz,defaultWidth:"wide"}),quarter:dl({values:oz,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dl({values:nz,defaultWidth:"wide"}),day:dl({values:rz,defaultWidth:"wide"}),dayPeriod:dl({values:iz,defaultWidth:"wide",formattingValues:az,defaultFormattingWidth:"wide"})},uz=/^(\d+)(th|st|nd|rd)?/i,dz=/\d+/i,cz={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fz={any:[/^b/i,/^(a|c)/i]},hz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pz={any:[/1/i,/2/i,/3/i,/4/i]},mz={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vz={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bz={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xz={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yz={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cz={ordinalNumber:XR({matchPattern:uz,parsePattern:dz,valueCallback:e=>parseInt(e,10)}),era:cl({matchPatterns:cz,defaultMatchWidth:"wide",parsePatterns:fz,defaultParseWidth:"any"}),quarter:cl({matchPatterns:hz,defaultMatchWidth:"wide",parsePatterns:pz,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cl({matchPatterns:mz,defaultMatchWidth:"wide",parsePatterns:gz,defaultParseWidth:"any"}),day:cl({matchPatterns:vz,defaultMatchWidth:"wide",parsePatterns:bz,defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:xz,defaultMatchWidth:"any",parsePatterns:yz,defaultParseWidth:"any"})},wz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ez={date:Wc({formats:wz,defaultWidth:"full"}),time:Wc({formats:Sz,defaultWidth:"full"}),dateTime:Wc({formats:Fz,defaultWidth:"full"})},kz={code:"en-US",formatDistance:QR,formatLong:Ez,formatRelative:ez,localize:sz,match:Cz,options:{weekStartsOn:0,firstWeekContainsDate:1}},_z={name:"en-US",locale:kz};function Fr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Oe(ln,null)||{},n=D(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:GR[e]});return{dateLocaleRef:D(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:_z}),localeRef:n}}function Er(e,t,o){if(!t)return;const n=ai(),r=Oe(ln,null),i=()=>{const a=o.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Aa,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||i7.mount({id:"n-global",head:!0,anchorMetaName:Aa,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():ri(i)}function l7(e,t){const o=Oe(ln,null);return D(()=>e.hljs||(o==null?void 0:o.mergedHljsRef.value))}function gt(e,t,o,n){o||yr("useThemeClass","cssVarsRef is not passed");const r=Oe(ln,null),i=r==null?void 0:r.mergedThemeHashRef,a=r==null?void 0:r.styleMountTarget,l=$(""),s=ai();let u;const d=`__${e}`,c=()=>{let h=d;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(h+=`-${p}`),f&&(h+=`-${f}`);const{themeOverrides:g,builtinThemeOverrides:v}=n;g&&(h+=`-${Jl(JSON.stringify(g))}`),v&&(h+=`-${Jl(JSON.stringify(v))}`),l.value=h,u=()=>{const b=o.value;let x="";for(const E in b)x+=`${E}: ${b[E]};`;W(`.${h}`,x).mount({id:h,ssr:s,parent:a}),u=void 0}};return Et(()=>{c()}),{themeClass:l,onRender:()=>{u==null||u()}}}function Wt(e,t,o){if(!t)return;const n=ai(),r=D(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),i=Oe(ln,null),a=()=>{Et(()=>{const{value:l}=o,s=`${l}${e}Rtl`;if(qC(s,n))return;const{value:u}=r;u&&u.style.mount({id:s,head:!0,anchorMetaName:Aa,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?a():ri(a),r}const s7=ye({name:"Add",render(){return m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Mz=ye({name:"ArrowDown",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function ja(e,t){return ye({name:ck(e),setup(){var o;const n=(o=Oe(ln,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var r;const i=(r=n==null?void 0:n.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const If=ye({name:"Backward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),Rz=ye({name:"Checkmark",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),zz=ye({name:"ChevronLeft",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),I3=ye({name:"ChevronRight",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),$z=ja("close",m("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Pz=ye({name:"Eye",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),m("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Az=ye({name:"EyeOff",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),m("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),m("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),m("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),m("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Bz=ye({name:"Empty",render(){return m("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),m("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Id=ja("error",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Of=ye({name:"FastBackward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Lf=ye({name:"FastForward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Dz=ye({name:"Filter",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Hf=ye({name:"Forward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),ls=ja("info",m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Nf=ye({name:"More",render(){return m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Tz=ye({name:"Remove",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px; - `}))}}),Od=ja("success",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Ld=ja("warning",m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),u7=ye({name:"ChevronDown",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Iz=ja("clear",m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Oz=ye({name:"ArrowBack",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},m("path",{d:"M0 0h24v24H0V0z",fill:"none"}),m("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),Qi=ye({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Cr();return()=>m(mo,{name:"icon-switch-transition",appear:o.value},t)}}),Ua=ye({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function n(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function r(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:l,width:s,appear:u,mode:d}=e,c=l?i3:mo,h={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:u,onEnter:i,onAfterEnter:a,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return l||(h.mode=d),m(c,h,t)}}}),Lz=A("base-icon",` + `}))}}),Od=ja("success",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Ld=ja("warning",m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),u7=ye({name:"ChevronDown",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Iz=ja("clear",m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Oz=ye({name:"ArrowBack",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},m("path",{d:"M0 0h24v24H0V0z",fill:"none"}),m("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),Qi=ye({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Cr();return()=>m(mo,{name:"icon-switch-transition",appear:o.value},t)}}),Ua=ye({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function n(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function r(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:l,width:s,appear:u,mode:d}=e,c=l?i3:mo,h={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:u,onEnter:i,onAfterEnter:a,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return l||(h.mode=d),m(c,h,t)}}}),Lz=B("base-icon",` height: 1em; width: 1em; line-height: 1em; @@ -60,7 +60,7 @@ ${t} `,[W("svg",` height: 1em; width: 1em; - `)]),Kt=ye({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Er("-base-icon",Lz,Ae(e,"clsPrefix"))},render(){return m("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Hz=A("base-close",` + `)]),Gt=ye({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Er("-base-icon",Lz,Ae(e,"clsPrefix"))},render(){return m("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Hz=B("base-close",` display: flex; align-items: center; justify-content: center; @@ -75,7 +75,7 @@ ${t} border: none; position: relative; padding: 0; -`,[ee("absolute",` +`,[J("absolute",` height: var(--n-close-icon-size); width: var(--n-close-icon-size); `),W("&::before",` @@ -98,13 +98,13 @@ ${t} color: var(--n-close-icon-color-pressed); `),W("&:active::before",` background-color: var(--n-close-color-pressed); - `)]),ee("disabled",` + `)]),J("disabled",` cursor: not-allowed; color: var(--n-close-icon-color-disabled); background-color: transparent; - `),ee("round",[W("&::before",` + `),J("round",[W("&::before",` border-radius: 50%; - `)])]),li=ye({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Er("-base-close",Hz,Ae(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return m(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},m(Kt,{clsPrefix:t},{default:()=>m($z,null)}))}}}),Nz=ye({props:{onFocus:Function,onBlur:Function},setup(e){return()=>m("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:Vz}=sn;function en({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${Vz} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const Wz=W([W("@keyframes rotator",` + `)])]),li=ye({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Er("-base-close",Hz,Ae(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return m(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},m(Gt,{clsPrefix:t},{default:()=>m($z,null)}))}}}),Nz=ye({props:{onFocus:Function,onBlur:Function},setup(e){return()=>m("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:Vz}=sn;function en({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${Vz} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const Wz=W([W("@keyframes rotator",` 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); @@ -112,31 +112,31 @@ ${t} 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); - }`),A("base-loading",` + }`),B("base-loading",` position: relative; line-height: 0; width: 1em; height: 1em; - `,[q("transition-wrapper",` + `,[Y("transition-wrapper",` position: absolute; width: 100%; height: 100%; - `,[en()]),q("placeholder",` + `,[en()]),Y("placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),q("container",` + `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),Y("container",` animation: rotator 3s linear infinite both; - `,[q("icon",` + `,[Y("icon",` height: 1em; width: 1em; - `)])])]),jc="1.6s",jz={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},kr=ye({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},jz),setup(e){Er("-base-loading",Wz,Ae(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return m("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},m(Qi,null,{default:()=>this.show?m("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},m("div",{class:`${e}-base-loading__container`},m("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},m("g",null,m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"})))))):m("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Vf(e){return Array.isArray(e)?e:[e]}const h1={STOP:"STOP"};function d7(e,t){const o=t(e);e.children!==void 0&&o!==h1.STOP&&e.children.forEach(n=>d7(n,t))}function Uz(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function Kz(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function Gz(e){return e.children}function qz(e){return e.key}function Zz(){return!1}function Xz(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function Yz(e){return e.disabled===!0}function Qz(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Uc(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Kc(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Jz(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function e$(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function t$(e){return(e==null?void 0:e.type)==="group"}function o$(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class n$ extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function r$(e,t,o,n){return od(t.concat(e),o,n,!1)}function i$(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function a$(e,t,o,n){const r=od(t,o,n,!1),i=od(e,o,n,!0),a=i$(e,o),l=[];return r.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>r.delete(s)),r}function Gc(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:u}=e;if(!a)return n!==void 0?{checkedKeys:Jz(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:e$(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let c;r!==void 0?c=a$(r,o,t,u):n!==void 0?c=r$(n,o,t,u):c=od(o,t,u,!1);const h=s==="parent",f=s==="child"||l,p=c,g=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let b=v;b>=0;b-=1){const x=b===0,E=d.get(b);for(const C of E){if(C.isLeaf)continue;const{key:k,shallowLoaded:_}=C;if(f&&_&&C.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&p.has(B.key)&&p.delete(B.key)}),C.disabled||!_)continue;let F=!0,P=!1,z=!0;for(const B of C.children){const j=B.key;if(!B.disabled){if(z&&(z=!1),p.has(j))P=!0;else if(g.has(j)){P=!0,F=!1;break}else if(F=!1,P)break}}F&&!z?(h&&C.children.forEach(B=>{!B.disabled&&p.has(B.key)&&p.delete(B.key)}),p.add(k)):P&&g.add(k),x&&f&&p.has(k)&&p.delete(k)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function od(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const u=r.get(s);u!==void 0&&d7(u,d=>{if(d.disabled)return h1.STOP;const{key:c}=d;if(!a.has(c)&&(a.add(c),l.add(c),Qz(d.rawNode,i))){if(n)return h1.STOP;if(!o)throw new n$}})}),l}function l$(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),o||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function s$(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function u$(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function Wf(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?d$:u$,i={reverse:t==="prev"};let a=!1,l=null;function s(u){if(u!==null){if(u===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){l=u;return}if(u.isGroup){const d=O3(u,i);d!==null?l=d:s(r(u,o))}else{const d=r(u,!1);if(d!==null)s(d);else{const c=c$(u);c!=null&&c.isGroup?s(r(c,o)):o&&s(r(u,!0))}}}}return s(e),l}function d$(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function c$(e){return e.parent}function O3(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,l=o?-1:1;for(let s=i;s!==a;s+=l){const u=n[s];if(!u.disabled&&!u.ignored)if(u.isGroup){const d=O3(u,t);if(d!==null)return d}else return u}}return null}const f$={getChild(){return this.ignored?null:O3(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Wf(this,"next",e)},getPrev(e={}){return Wf(this,"prev",e)}};function h$(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function p$(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function c7(e,t,o,n,r,i=null,a=0){const l=[];return e.forEach((s,u)=>{var d;const c=Object.create(n);if(c.rawNode=s,c.siblings=l,c.level=a,c.index=u,c.isFirstChild=u===0,c.isLastChild=u+1===e.length,c.parent=i,!c.ignored){const h=r(s);Array.isArray(h)&&(c.children=c7(h,t,o,n,r,c,a+1))}l.push(c),t.set(c.key,c),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(c)}),l}function Hd(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=Yz,getIgnored:a=Zz,getIsGroup:l=t$,getKey:s=qz}=t,u=(o=t.getChildren)!==null&&o!==void 0?o:Gz,d=t.ignoreEmptyChildren?C=>{const k=u(C);return Array.isArray(k)?k.length?k:null:k}:u,c=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return Kz(this.rawNode,d)},get shallowLoaded(){return Xz(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(C){return p$(this,C)}},f$),h=c7(e,n,r,c,d);function f(C){if(C==null)return null;const k=n.get(C);return k&&!k.isGroup&&!k.ignored?k:null}function p(C){if(C==null)return null;const k=n.get(C);return k&&!k.ignored?k:null}function g(C,k){const _=p(C);return _?_.getPrev(k):null}function v(C,k){const _=p(C);return _?_.getNext(k):null}function b(C){const k=p(C);return k?k.getParent():null}function x(C){const k=p(C);return k?k.getChild():null}const E={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(C){return h$(h,C)},getNode:f,getPrev:g,getNext:v,getParent:b,getChild:x,getFirstAvailableNode(){return s$(h)},getPath(C,k={}){return l$(C,k,E)},getCheckedKeys(C,k={}){const{cascade:_=!0,leafOnly:F=!1,checkStrategy:P="all",allowNotLoaded:z=!1}=k;return Gc({checkedKeys:Uc(C),indeterminateKeys:Kc(C),cascade:_,leafOnly:F,checkStrategy:P,allowNotLoaded:z},E)},check(C,k,_={}){const{cascade:F=!0,leafOnly:P=!1,checkStrategy:z="all",allowNotLoaded:B=!1}=_;return Gc({checkedKeys:Uc(k),indeterminateKeys:Kc(k),keysToCheck:C==null?[]:Vf(C),cascade:F,leafOnly:P,checkStrategy:z,allowNotLoaded:B},E)},uncheck(C,k,_={}){const{cascade:F=!0,leafOnly:P=!1,checkStrategy:z="all",allowNotLoaded:B=!1}=_;return Gc({checkedKeys:Uc(k),indeterminateKeys:Kc(k),keysToUncheck:C==null?[]:Vf(C),cascade:F,leafOnly:P,checkStrategy:z,allowNotLoaded:B},E)},getNonLeafKeys(C={}){return Uz(h,C)}};return E}const Xe={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},m$=uo(Xe.neutralBase),f7=uo(Xe.neutralInvertBase),g$=`rgba(${f7.slice(0,3).join(", ")}, `;function Pt(e){return`${g$+String(e)})`}function v$(e){const t=Array.from(f7);return t[3]=Number(e),Ue(m$,t)}const Ve=Object.assign(Object.assign({name:"common"},sn),{baseColor:Xe.neutralBase,primaryColor:Xe.primaryDefault,primaryColorHover:Xe.primaryHover,primaryColorPressed:Xe.primaryActive,primaryColorSuppl:Xe.primarySuppl,infoColor:Xe.infoDefault,infoColorHover:Xe.infoHover,infoColorPressed:Xe.infoActive,infoColorSuppl:Xe.infoSuppl,successColor:Xe.successDefault,successColorHover:Xe.successHover,successColorPressed:Xe.successActive,successColorSuppl:Xe.successSuppl,warningColor:Xe.warningDefault,warningColorHover:Xe.warningHover,warningColorPressed:Xe.warningActive,warningColorSuppl:Xe.warningSuppl,errorColor:Xe.errorDefault,errorColorHover:Xe.errorHover,errorColorPressed:Xe.errorActive,errorColorSuppl:Xe.errorSuppl,textColorBase:Xe.neutralTextBase,textColor1:Pt(Xe.alpha1),textColor2:Pt(Xe.alpha2),textColor3:Pt(Xe.alpha3),textColorDisabled:Pt(Xe.alpha4),placeholderColor:Pt(Xe.alpha4),placeholderColorDisabled:Pt(Xe.alpha5),iconColor:Pt(Xe.alpha4),iconColorDisabled:Pt(Xe.alpha5),iconColorHover:Pt(Number(Xe.alpha4)*1.25),iconColorPressed:Pt(Number(Xe.alpha4)*.8),opacity1:Xe.alpha1,opacity2:Xe.alpha2,opacity3:Xe.alpha3,opacity4:Xe.alpha4,opacity5:Xe.alpha5,dividerColor:Pt(Xe.alphaDivider),borderColor:Pt(Xe.alphaBorder),closeIconColorHover:Pt(Number(Xe.alphaClose)),closeIconColor:Pt(Number(Xe.alphaClose)),closeIconColorPressed:Pt(Number(Xe.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Pt(Xe.alpha4),clearColorHover:ao(Pt(Xe.alpha4),{alpha:1.25}),clearColorPressed:ao(Pt(Xe.alpha4),{alpha:.8}),scrollbarColor:Pt(Xe.alphaScrollbar),scrollbarColorHover:Pt(Xe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Pt(Xe.alphaProgressRail),railColor:Pt(Xe.alphaRail),popoverColor:Xe.neutralPopover,tableColor:Xe.neutralCard,cardColor:Xe.neutralCard,modalColor:Xe.neutralModal,bodyColor:Xe.neutralBody,tagColor:v$(Xe.alphaTag),avatarColor:Pt(Xe.alphaAvatar),invertedColor:Xe.neutralBase,inputColor:Pt(Xe.alphaInput),codeColor:Pt(Xe.alphaCode),tabColor:Pt(Xe.alphaTab),actionColor:Pt(Xe.alphaAction),tableHeaderColor:Pt(Xe.alphaAction),hoverColor:Pt(Xe.alphaPending),tableColorHover:Pt(Xe.alphaTablePending),tableColorStriped:Pt(Xe.alphaTableStriped),pressedColor:Pt(Xe.alphaPressed),opacityDisabled:Xe.alphaDisabled,inputColorDisabled:Pt(Xe.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),dt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},b$=uo(dt.neutralBase),h7=uo(dt.neutralInvertBase),x$=`rgba(${h7.slice(0,3).join(", ")}, `;function jf(e){return`${x$+String(e)})`}function ko(e){const t=Array.from(h7);return t[3]=Number(e),Ue(b$,t)}const We=Object.assign(Object.assign({name:"common"},sn),{baseColor:dt.neutralBase,primaryColor:dt.primaryDefault,primaryColorHover:dt.primaryHover,primaryColorPressed:dt.primaryActive,primaryColorSuppl:dt.primarySuppl,infoColor:dt.infoDefault,infoColorHover:dt.infoHover,infoColorPressed:dt.infoActive,infoColorSuppl:dt.infoSuppl,successColor:dt.successDefault,successColorHover:dt.successHover,successColorPressed:dt.successActive,successColorSuppl:dt.successSuppl,warningColor:dt.warningDefault,warningColorHover:dt.warningHover,warningColorPressed:dt.warningActive,warningColorSuppl:dt.warningSuppl,errorColor:dt.errorDefault,errorColorHover:dt.errorHover,errorColorPressed:dt.errorActive,errorColorSuppl:dt.errorSuppl,textColorBase:dt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ko(dt.alpha4),placeholderColor:ko(dt.alpha4),placeholderColorDisabled:ko(dt.alpha5),iconColor:ko(dt.alpha4),iconColorHover:ao(ko(dt.alpha4),{lightness:.75}),iconColorPressed:ao(ko(dt.alpha4),{lightness:.9}),iconColorDisabled:ko(dt.alpha5),opacity1:dt.alpha1,opacity2:dt.alpha2,opacity3:dt.alpha3,opacity4:dt.alpha4,opacity5:dt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ko(Number(dt.alphaClose)),closeIconColorHover:ko(Number(dt.alphaClose)),closeIconColorPressed:ko(Number(dt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ko(dt.alpha4),clearColorHover:ao(ko(dt.alpha4),{lightness:.75}),clearColorPressed:ao(ko(dt.alpha4),{lightness:.9}),scrollbarColor:jf(dt.alphaScrollbar),scrollbarColorHover:jf(dt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ko(dt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:dt.neutralPopover,tableColor:dt.neutralCard,cardColor:dt.neutralCard,modalColor:dt.neutralModal,bodyColor:dt.neutralBody,tagColor:"#eee",avatarColor:ko(dt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ko(dt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:dt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),y$={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function p7(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},y$),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:n})}const tr={name:"Empty",common:We,self:p7},Ji={name:"Empty",common:Ve,self:p7},C$=A("empty",` + `)])])]),jc="1.6s",jz={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},kr=ye({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},jz),setup(e){Er("-base-loading",Wz,Ae(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return m("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},m(Qi,null,{default:()=>this.show?m("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},m("div",{class:`${e}-base-loading__container`},m("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},m("g",null,m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"})))))):m("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Vf(e){return Array.isArray(e)?e:[e]}const h1={STOP:"STOP"};function d7(e,t){const o=t(e);e.children!==void 0&&o!==h1.STOP&&e.children.forEach(n=>d7(n,t))}function Uz(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function Kz(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function Gz(e){return e.children}function qz(e){return e.key}function Zz(){return!1}function Xz(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function Yz(e){return e.disabled===!0}function Qz(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Uc(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Kc(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Jz(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function e$(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function t$(e){return(e==null?void 0:e.type)==="group"}function o$(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class n$ extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function r$(e,t,o,n){return od(t.concat(e),o,n,!1)}function i$(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function a$(e,t,o,n){const r=od(t,o,n,!1),i=od(e,o,n,!0),a=i$(e,o),l=[];return r.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>r.delete(s)),r}function Gc(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:u}=e;if(!a)return n!==void 0?{checkedKeys:Jz(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:e$(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let c;r!==void 0?c=a$(r,o,t,u):n!==void 0?c=r$(n,o,t,u):c=od(o,t,u,!1);const h=s==="parent",f=s==="child"||l,p=c,g=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let b=v;b>=0;b-=1){const x=b===0,E=d.get(b);for(const w of E){if(w.isLeaf)continue;const{key:k,shallowLoaded:_}=w;if(f&&_&&w.children.forEach(A=>{!A.disabled&&!A.isLeaf&&A.shallowLoaded&&p.has(A.key)&&p.delete(A.key)}),w.disabled||!_)continue;let F=!0,P=!1,z=!0;for(const A of w.children){const G=A.key;if(!A.disabled){if(z&&(z=!1),p.has(G))P=!0;else if(g.has(G)){P=!0,F=!1;break}else if(F=!1,P)break}}F&&!z?(h&&w.children.forEach(A=>{!A.disabled&&p.has(A.key)&&p.delete(A.key)}),p.add(k)):P&&g.add(k),x&&f&&p.has(k)&&p.delete(k)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function od(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const u=r.get(s);u!==void 0&&d7(u,d=>{if(d.disabled)return h1.STOP;const{key:c}=d;if(!a.has(c)&&(a.add(c),l.add(c),Qz(d.rawNode,i))){if(n)return h1.STOP;if(!o)throw new n$}})}),l}function l$(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),o||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function s$(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function u$(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function Wf(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?d$:u$,i={reverse:t==="prev"};let a=!1,l=null;function s(u){if(u!==null){if(u===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){l=u;return}if(u.isGroup){const d=O3(u,i);d!==null?l=d:s(r(u,o))}else{const d=r(u,!1);if(d!==null)s(d);else{const c=c$(u);c!=null&&c.isGroup?s(r(c,o)):o&&s(r(u,!0))}}}}return s(e),l}function d$(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function c$(e){return e.parent}function O3(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,l=o?-1:1;for(let s=i;s!==a;s+=l){const u=n[s];if(!u.disabled&&!u.ignored)if(u.isGroup){const d=O3(u,t);if(d!==null)return d}else return u}}return null}const f$={getChild(){return this.ignored?null:O3(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Wf(this,"next",e)},getPrev(e={}){return Wf(this,"prev",e)}};function h$(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function p$(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function c7(e,t,o,n,r,i=null,a=0){const l=[];return e.forEach((s,u)=>{var d;const c=Object.create(n);if(c.rawNode=s,c.siblings=l,c.level=a,c.index=u,c.isFirstChild=u===0,c.isLastChild=u+1===e.length,c.parent=i,!c.ignored){const h=r(s);Array.isArray(h)&&(c.children=c7(h,t,o,n,r,c,a+1))}l.push(c),t.set(c.key,c),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(c)}),l}function Hd(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=Yz,getIgnored:a=Zz,getIsGroup:l=t$,getKey:s=qz}=t,u=(o=t.getChildren)!==null&&o!==void 0?o:Gz,d=t.ignoreEmptyChildren?w=>{const k=u(w);return Array.isArray(k)?k.length?k:null:k}:u,c=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return Kz(this.rawNode,d)},get shallowLoaded(){return Xz(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(w){return p$(this,w)}},f$),h=c7(e,n,r,c,d);function f(w){if(w==null)return null;const k=n.get(w);return k&&!k.isGroup&&!k.ignored?k:null}function p(w){if(w==null)return null;const k=n.get(w);return k&&!k.ignored?k:null}function g(w,k){const _=p(w);return _?_.getPrev(k):null}function v(w,k){const _=p(w);return _?_.getNext(k):null}function b(w){const k=p(w);return k?k.getParent():null}function x(w){const k=p(w);return k?k.getChild():null}const E={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(w){return h$(h,w)},getNode:f,getPrev:g,getNext:v,getParent:b,getChild:x,getFirstAvailableNode(){return s$(h)},getPath(w,k={}){return l$(w,k,E)},getCheckedKeys(w,k={}){const{cascade:_=!0,leafOnly:F=!1,checkStrategy:P="all",allowNotLoaded:z=!1}=k;return Gc({checkedKeys:Uc(w),indeterminateKeys:Kc(w),cascade:_,leafOnly:F,checkStrategy:P,allowNotLoaded:z},E)},check(w,k,_={}){const{cascade:F=!0,leafOnly:P=!1,checkStrategy:z="all",allowNotLoaded:A=!1}=_;return Gc({checkedKeys:Uc(k),indeterminateKeys:Kc(k),keysToCheck:w==null?[]:Vf(w),cascade:F,leafOnly:P,checkStrategy:z,allowNotLoaded:A},E)},uncheck(w,k,_={}){const{cascade:F=!0,leafOnly:P=!1,checkStrategy:z="all",allowNotLoaded:A=!1}=_;return Gc({checkedKeys:Uc(k),indeterminateKeys:Kc(k),keysToUncheck:w==null?[]:Vf(w),cascade:F,leafOnly:P,checkStrategy:z,allowNotLoaded:A},E)},getNonLeafKeys(w={}){return Uz(h,w)}};return E}const Xe={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},m$=uo(Xe.neutralBase),f7=uo(Xe.neutralInvertBase),g$=`rgba(${f7.slice(0,3).join(", ")}, `;function Pt(e){return`${g$+String(e)})`}function v$(e){const t=Array.from(f7);return t[3]=Number(e),Ue(m$,t)}const Ve=Object.assign(Object.assign({name:"common"},sn),{baseColor:Xe.neutralBase,primaryColor:Xe.primaryDefault,primaryColorHover:Xe.primaryHover,primaryColorPressed:Xe.primaryActive,primaryColorSuppl:Xe.primarySuppl,infoColor:Xe.infoDefault,infoColorHover:Xe.infoHover,infoColorPressed:Xe.infoActive,infoColorSuppl:Xe.infoSuppl,successColor:Xe.successDefault,successColorHover:Xe.successHover,successColorPressed:Xe.successActive,successColorSuppl:Xe.successSuppl,warningColor:Xe.warningDefault,warningColorHover:Xe.warningHover,warningColorPressed:Xe.warningActive,warningColorSuppl:Xe.warningSuppl,errorColor:Xe.errorDefault,errorColorHover:Xe.errorHover,errorColorPressed:Xe.errorActive,errorColorSuppl:Xe.errorSuppl,textColorBase:Xe.neutralTextBase,textColor1:Pt(Xe.alpha1),textColor2:Pt(Xe.alpha2),textColor3:Pt(Xe.alpha3),textColorDisabled:Pt(Xe.alpha4),placeholderColor:Pt(Xe.alpha4),placeholderColorDisabled:Pt(Xe.alpha5),iconColor:Pt(Xe.alpha4),iconColorDisabled:Pt(Xe.alpha5),iconColorHover:Pt(Number(Xe.alpha4)*1.25),iconColorPressed:Pt(Number(Xe.alpha4)*.8),opacity1:Xe.alpha1,opacity2:Xe.alpha2,opacity3:Xe.alpha3,opacity4:Xe.alpha4,opacity5:Xe.alpha5,dividerColor:Pt(Xe.alphaDivider),borderColor:Pt(Xe.alphaBorder),closeIconColorHover:Pt(Number(Xe.alphaClose)),closeIconColor:Pt(Number(Xe.alphaClose)),closeIconColorPressed:Pt(Number(Xe.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Pt(Xe.alpha4),clearColorHover:lo(Pt(Xe.alpha4),{alpha:1.25}),clearColorPressed:lo(Pt(Xe.alpha4),{alpha:.8}),scrollbarColor:Pt(Xe.alphaScrollbar),scrollbarColorHover:Pt(Xe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Pt(Xe.alphaProgressRail),railColor:Pt(Xe.alphaRail),popoverColor:Xe.neutralPopover,tableColor:Xe.neutralCard,cardColor:Xe.neutralCard,modalColor:Xe.neutralModal,bodyColor:Xe.neutralBody,tagColor:v$(Xe.alphaTag),avatarColor:Pt(Xe.alphaAvatar),invertedColor:Xe.neutralBase,inputColor:Pt(Xe.alphaInput),codeColor:Pt(Xe.alphaCode),tabColor:Pt(Xe.alphaTab),actionColor:Pt(Xe.alphaAction),tableHeaderColor:Pt(Xe.alphaAction),hoverColor:Pt(Xe.alphaPending),tableColorHover:Pt(Xe.alphaTablePending),tableColorStriped:Pt(Xe.alphaTableStriped),pressedColor:Pt(Xe.alphaPressed),opacityDisabled:Xe.alphaDisabled,inputColorDisabled:Pt(Xe.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),dt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},b$=uo(dt.neutralBase),h7=uo(dt.neutralInvertBase),x$=`rgba(${h7.slice(0,3).join(", ")}, `;function jf(e){return`${x$+String(e)})`}function ko(e){const t=Array.from(h7);return t[3]=Number(e),Ue(b$,t)}const We=Object.assign(Object.assign({name:"common"},sn),{baseColor:dt.neutralBase,primaryColor:dt.primaryDefault,primaryColorHover:dt.primaryHover,primaryColorPressed:dt.primaryActive,primaryColorSuppl:dt.primarySuppl,infoColor:dt.infoDefault,infoColorHover:dt.infoHover,infoColorPressed:dt.infoActive,infoColorSuppl:dt.infoSuppl,successColor:dt.successDefault,successColorHover:dt.successHover,successColorPressed:dt.successActive,successColorSuppl:dt.successSuppl,warningColor:dt.warningDefault,warningColorHover:dt.warningHover,warningColorPressed:dt.warningActive,warningColorSuppl:dt.warningSuppl,errorColor:dt.errorDefault,errorColorHover:dt.errorHover,errorColorPressed:dt.errorActive,errorColorSuppl:dt.errorSuppl,textColorBase:dt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ko(dt.alpha4),placeholderColor:ko(dt.alpha4),placeholderColorDisabled:ko(dt.alpha5),iconColor:ko(dt.alpha4),iconColorHover:lo(ko(dt.alpha4),{lightness:.75}),iconColorPressed:lo(ko(dt.alpha4),{lightness:.9}),iconColorDisabled:ko(dt.alpha5),opacity1:dt.alpha1,opacity2:dt.alpha2,opacity3:dt.alpha3,opacity4:dt.alpha4,opacity5:dt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ko(Number(dt.alphaClose)),closeIconColorHover:ko(Number(dt.alphaClose)),closeIconColorPressed:ko(Number(dt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ko(dt.alpha4),clearColorHover:lo(ko(dt.alpha4),{lightness:.75}),clearColorPressed:lo(ko(dt.alpha4),{lightness:.9}),scrollbarColor:jf(dt.alphaScrollbar),scrollbarColorHover:jf(dt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ko(dt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:dt.neutralPopover,tableColor:dt.neutralCard,cardColor:dt.neutralCard,modalColor:dt.neutralModal,bodyColor:dt.neutralBody,tagColor:"#eee",avatarColor:ko(dt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ko(dt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:dt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),y$={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function p7(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},y$),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:n})}const tr={name:"Empty",common:We,self:p7},Ji={name:"Empty",common:Ve,self:p7},C$=B("empty",` display: flex; flex-direction: column; align-items: center; font-size: var(--n-font-size); -`,[q("icon",` +`,[Y("icon",` width: var(--n-icon-size); height: var(--n-icon-size); font-size: var(--n-icon-size); @@ -144,23 +144,23 @@ ${t} color: var(--n-icon-color); transition: color .3s var(--n-bezier); - `,[W("+",[q("description",` + `,[W("+",[Y("description",` margin-top: 8px; - `)])]),q("description",` + `)])]),Y("description",` transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),q("extra",` + `),Y("extra",` text-align: center; transition: color .3s var(--n-bezier); margin-top: 12px; color: var(--n-extra-text-color); - `)]),w$=Object.assign(Object.assign({},Ie.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),L3=ye({name:"Empty",props:w$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:n}=rt(e),r=Ie("Empty","-empty",C$,tr,e,t),{localeRef:i}=Fr("Empty"),a=D(()=>{var d,c,h;return(d=e.description)!==null&&d!==void 0?d:(h=(c=n==null?void 0:n.value)===null||c===void 0?void 0:c.Empty)===null||h===void 0?void 0:h.description}),l=D(()=>{var d,c;return((c=(d=n==null?void 0:n.value)===null||d===void 0?void 0:d.Empty)===null||c===void 0?void 0:c.renderIcon)||(()=>m(Bz,null))}),s=D(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:{[Ee("iconSize",d)]:h,[Ee("fontSize",d)]:f,textColor:p,iconColor:g,extraTextColor:v}}=r.value;return{"--n-icon-size":h,"--n-font-size":f,"--n-bezier":c,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":v}}),u=o?gt("empty",D(()=>{let d="";const{size:c}=e;return d+=c[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:D(()=>a.value||i.value.description),cssVars:o?void 0:s,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?m("div",{class:`${t}-empty__icon`},e.icon?e.icon():m(Kt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?m("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?m("div",{class:`${t}-empty__extra`},e.extra()):null)}}),S$={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function m7(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},S$),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const Lo={name:"Scrollbar",common:We,self:m7},Zo={name:"Scrollbar",common:Ve,self:m7},{cubicBezierEaseInOut:Uf}=sn;function Ts({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=Uf,leaveCubicBezier:r=Uf}={}){return[W(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),W(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),W(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const F$=A("scrollbar",` + `)]),w$=Object.assign(Object.assign({},Ie.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),L3=ye({name:"Empty",props:w$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:n}=rt(e),r=Ie("Empty","-empty",C$,tr,e,t),{localeRef:i}=Fr("Empty"),a=D(()=>{var d,c,h;return(d=e.description)!==null&&d!==void 0?d:(h=(c=n==null?void 0:n.value)===null||c===void 0?void 0:c.Empty)===null||h===void 0?void 0:h.description}),l=D(()=>{var d,c;return((c=(d=n==null?void 0:n.value)===null||d===void 0?void 0:d.Empty)===null||c===void 0?void 0:c.renderIcon)||(()=>m(Bz,null))}),s=D(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:{[Ee("iconSize",d)]:h,[Ee("fontSize",d)]:f,textColor:p,iconColor:g,extraTextColor:v}}=r.value;return{"--n-icon-size":h,"--n-font-size":f,"--n-bezier":c,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":v}}),u=o?gt("empty",D(()=>{let d="";const{size:c}=e;return d+=c[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:D(()=>a.value||i.value.description),cssVars:o?void 0:s,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?m("div",{class:`${t}-empty__icon`},e.icon?e.icon():m(Gt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?m("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?m("div",{class:`${t}-empty__extra`},e.extra()):null)}}),S$={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function m7(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},S$),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const Lo={name:"Scrollbar",common:We,self:m7},Zo={name:"Scrollbar",common:Ve,self:m7},{cubicBezierEaseInOut:Uf}=sn;function Ts({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=Uf,leaveCubicBezier:r=Uf}={}){return[W(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),W(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),W(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const F$=B("scrollbar",` overflow: hidden; position: relative; z-index: auto; height: 100%; width: 100%; -`,[W(">",[A("scrollbar-container",` +`,[W(">",[B("scrollbar-container",` width: 100%; overflow: scroll; height: 100%; @@ -171,43 +171,43 @@ ${t} width: 0; height: 0; display: none; - `),W(">",[A("scrollbar-content",` + `),W(">",[B("scrollbar-content",` box-sizing: border-box; min-width: 100%; - `)])])]),W(">, +",[A("scrollbar-rail",` + `)])])]),W(">, +",[B("scrollbar-rail",` position: absolute; pointer-events: none; user-select: none; background: var(--n-scrollbar-rail-color); -webkit-user-select: none; - `,[ee("horizontal",` + `,[J("horizontal",` height: var(--n-scrollbar-height); - `,[W(">",[q("scrollbar",` + `,[W(">",[Y("scrollbar",` height: var(--n-scrollbar-height); border-radius: var(--n-scrollbar-border-radius); right: 0; - `)])]),ee("horizontal--top",` + `)])]),J("horizontal--top",` inset: var(--n-scrollbar-rail-inset-horizontal-top); - `),ee("horizontal--bottom",` + `),J("horizontal--bottom",` inset: var(--n-scrollbar-rail-inset-horizontal-bottom); - `),ee("vertical",` + `),J("vertical",` width: var(--n-scrollbar-width); - `,[W(">",[q("scrollbar",` + `,[W(">",[Y("scrollbar",` width: var(--n-scrollbar-width); border-radius: var(--n-scrollbar-border-radius); bottom: 0; - `)])]),ee("vertical--left",` + `)])]),J("vertical--left",` inset: var(--n-scrollbar-rail-inset-vertical-left); - `),ee("vertical--right",` + `),J("vertical--right",` inset: var(--n-scrollbar-rail-inset-vertical-right); - `),ee("disabled",[W(">",[q("scrollbar","pointer-events: none;")])]),W(">",[q("scrollbar",` + `),J("disabled",[W(">",[Y("scrollbar","pointer-events: none;")])]),W(">",[Y("scrollbar",` z-index: 1; position: absolute; cursor: pointer; pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); - `,[Ts(),W("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),E$=Object.assign(Object.assign({},Ie.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),or=ye({name:"Scrollbar",props:E$,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Vt("Scrollbar",n,t),i=$(null),a=$(null),l=$(null),s=$(null),u=$(null),d=$(null),c=$(null),h=$(null),f=$(null),p=$(null),g=$(null),v=$(0),b=$(0),x=$(!1),E=$(!1);let C=!1,k=!1,_,F,P=0,z=0,B=0,j=0;const V=cw(),K=Ie("Scrollbar","-scrollbar",F$,Lo,e,t),N=D(()=>{const{value:te}=h,{value:me}=d,{value:ze}=p;return te===null||me===null||ze===null?0:Math.min(te,ze*te/me+so(K.value.self.width)*1.5)}),T=D(()=>`${N.value}px`),L=D(()=>{const{value:te}=f,{value:me}=c,{value:ze}=g;return te===null||me===null||ze===null?0:ze*te/me+so(K.value.self.height)*1.5}),R=D(()=>`${L.value}px`),I=D(()=>{const{value:te}=h,{value:me}=v,{value:ze}=d,{value:He}=p;if(te===null||ze===null||He===null)return 0;{const je=ze-te;return je?me/je*(He-N.value):0}}),w=D(()=>`${I.value}px`),Q=D(()=>{const{value:te}=f,{value:me}=b,{value:ze}=c,{value:He}=g;if(te===null||ze===null||He===null)return 0;{const je=ze-te;return je?me/je*(He-L.value):0}}),U=D(()=>`${Q.value}px`),X=D(()=>{const{value:te}=h,{value:me}=d;return te!==null&&me!==null&&me>te}),re=D(()=>{const{value:te}=f,{value:me}=c;return te!==null&&me!==null&&me>te}),he=D(()=>{const{trigger:te}=e;return te==="none"||x.value}),Se=D(()=>{const{trigger:te}=e;return te==="none"||E.value}),pe=D(()=>{const{container:te}=e;return te?te():a.value}),fe=D(()=>{const{content:te}=e;return te?te():l.value}),we=(te,me)=>{if(!e.scrollable)return;if(typeof te=="number"){H(te,me??0,0,!1,"auto");return}const{left:ze,top:He,index:je,elSize:Ge,position:Ze,behavior:ot,el:yt,debounce:Bt=!0}=te;(ze!==void 0||He!==void 0)&&H(ze??0,He??0,0,!1,ot),yt!==void 0?H(0,yt.offsetTop,yt.offsetHeight,Bt,ot):je!==void 0&&Ge!==void 0?H(0,je*Ge,Ge,Bt,ot):Ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ot):Ze==="top"&&H(0,0,0,!1,ot)},J=uS(()=>{e.container||we({top:v.value,left:b.value})}),G=()=>{J.isDeactivated||ue()},Te=te=>{if(J.isDeactivated)return;const{onResize:me}=e;me&&me(te),ue()},Ne=(te,me)=>{if(!e.scrollable)return;const{value:ze}=pe;ze&&(typeof te=="object"?ze.scrollBy(te):ze.scrollBy(te,me||0))};function H(te,me,ze,He,je){const{value:Ge}=pe;if(Ge){if(He){const{scrollTop:Ze,offsetHeight:ot}=Ge;if(me>Ze){me+ze<=Ze+ot||Ge.scrollTo({left:te,top:me+ze-ot,behavior:je});return}}Ge.scrollTo({left:te,top:me,behavior:je})}}function oe(){ce(),ne(),ue()}function ge(){Ce()}function Ce(){se(),ie()}function se(){F!==void 0&&window.clearTimeout(F),F=window.setTimeout(()=>{E.value=!1},e.duration)}function ie(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{x.value=!1},e.duration)}function ce(){_!==void 0&&window.clearTimeout(_),x.value=!0}function ne(){F!==void 0&&window.clearTimeout(F),E.value=!0}function ae(te){const{onScroll:me}=e;me&&me(te),de()}function de(){const{value:te}=pe;te&&(v.value=te.scrollTop,b.value=te.scrollLeft*(r!=null&&r.value?-1:1))}function le(){const{value:te}=fe;te&&(d.value=te.offsetHeight,c.value=te.offsetWidth);const{value:me}=pe;me&&(h.value=me.offsetHeight,f.value=me.offsetWidth);const{value:ze}=u,{value:He}=s;ze&&(g.value=ze.offsetWidth),He&&(p.value=He.offsetHeight)}function Y(){const{value:te}=pe;te&&(v.value=te.scrollTop,b.value=te.scrollLeft*(r!=null&&r.value?-1:1),h.value=te.offsetHeight,f.value=te.offsetWidth,d.value=te.scrollHeight,c.value=te.scrollWidth);const{value:me}=u,{value:ze}=s;me&&(g.value=me.offsetWidth),ze&&(p.value=ze.offsetHeight)}function ue(){e.scrollable&&(e.useUnifiedContainer?Y():(le(),de()))}function ve(te){var me;return!(!((me=i.value)===null||me===void 0)&&me.contains(Li(te)))}function Be(te){te.preventDefault(),te.stopPropagation(),k=!0,Ct("mousemove",window,Ke,!0),Ct("mouseup",window,Je,!0),z=b.value,B=r!=null&&r.value?window.innerWidth-te.clientX:te.clientX}function Ke(te){if(!k)return;_!==void 0&&window.clearTimeout(_),F!==void 0&&window.clearTimeout(F);const{value:me}=f,{value:ze}=c,{value:He}=L;if(me===null||ze===null)return;const Ge=(r!=null&&r.value?window.innerWidth-te.clientX-B:te.clientX-B)*(ze-me)/(me-He),Ze=ze-me;let ot=z+Ge;ot=Math.min(Ze,ot),ot=Math.max(ot,0);const{value:yt}=pe;if(yt){yt.scrollLeft=ot*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Bt}=e;Bt&&Bt(ot)}}function Je(te){te.preventDefault(),te.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,Je,!0),k=!1,ue(),ve(te)&&Ce()}function st(te){te.preventDefault(),te.stopPropagation(),C=!0,Ct("mousemove",window,Ye,!0),Ct("mouseup",window,pt,!0),P=v.value,j=te.clientY}function Ye(te){if(!C)return;_!==void 0&&window.clearTimeout(_),F!==void 0&&window.clearTimeout(F);const{value:me}=h,{value:ze}=d,{value:He}=N;if(me===null||ze===null)return;const Ge=(te.clientY-j)*(ze-me)/(me-He),Ze=ze-me;let ot=P+Ge;ot=Math.min(Ze,ot),ot=Math.max(ot,0);const{value:yt}=pe;yt&&(yt.scrollTop=ot)}function pt(te){te.preventDefault(),te.stopPropagation(),xt("mousemove",window,Ye,!0),xt("mouseup",window,pt,!0),C=!1,ue(),ve(te)&&Ce()}Et(()=>{const{value:te}=re,{value:me}=X,{value:ze}=t,{value:He}=u,{value:je}=s;He&&(te?He.classList.remove(`${ze}-scrollbar-rail--disabled`):He.classList.add(`${ze}-scrollbar-rail--disabled`)),je&&(me?je.classList.remove(`${ze}-scrollbar-rail--disabled`):je.classList.add(`${ze}-scrollbar-rail--disabled`))}),ut(()=>{e.container||ue()}),Xt(()=>{_!==void 0&&window.clearTimeout(_),F!==void 0&&window.clearTimeout(F),xt("mousemove",window,Ye,!0),xt("mouseup",window,pt,!0)});const Qe=D(()=>{const{common:{cubicBezierEaseInOut:te},self:{color:me,colorHover:ze,height:He,width:je,borderRadius:Ge,railInsetHorizontalTop:Ze,railInsetHorizontalBottom:ot,railInsetVerticalRight:yt,railInsetVerticalLeft:Bt,railColor:kt}}=K.value;return{"--n-scrollbar-bezier":te,"--n-scrollbar-color":me,"--n-scrollbar-color-hover":ze,"--n-scrollbar-border-radius":Ge,"--n-scrollbar-width":je,"--n-scrollbar-height":He,"--n-scrollbar-rail-inset-horizontal-top":Ze,"--n-scrollbar-rail-inset-horizontal-bottom":ot,"--n-scrollbar-rail-inset-vertical-right":r!=null&&r.value?y2(yt):yt,"--n-scrollbar-rail-inset-vertical-left":r!=null&&r.value?y2(Bt):Bt,"--n-scrollbar-rail-color":kt}}),Le=o?gt("scrollbar",void 0,Qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:we,scrollBy:Ne,sync:ue,syncUnifiedContainer:Y,handleMouseEnterWrapper:oe,handleMouseLeaveWrapper:ge}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:u,needYBar:X,needXBar:re,yBarSizePx:T,xBarSizePx:R,yBarTopPx:w,xBarLeftPx:U,isShowXBar:he,isShowYBar:Se,isIos:V,handleScroll:ae,handleContentResize:G,handleContainerResize:Te,handleYScrollMouseDown:st,handleXScrollMouseDown:Be,cssVars:o?void 0:Qe,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:l,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const u=this.trigger==="none",d=(f,p)=>m("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${a}`,f],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},m(u?Y0:mo,u?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),c=()=>{var f,p;return(f=this.onRender)===null||f===void 0||f.call(this),m("div",po(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):m("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},m(Rn,{onResize:this.handleContentResize},{default:()=>m("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),s&&m("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(u?Y0:mo,u?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},h=this.container?c():m(Rn,{onResize:this.handleContainerResize},{default:c});return i?m(ft,null,h,d(this.themeClass,this.cssVars)):h}}),g7=or,k$={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function v7(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:u,hoverColor:d,fontSizeTiny:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:g,heightTiny:v,heightSmall:b,heightMedium:x,heightLarge:E,heightHuge:C}=e;return Object.assign(Object.assign({},k$),{optionFontSizeTiny:c,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:v,optionHeightSmall:b,optionHeightMedium:x,optionHeightLarge:E,optionHeightHuge:C,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:u,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})}const Ka={name:"InternalSelectMenu",common:We,peers:{Scrollbar:Lo,Empty:tr},self:v7},Is={name:"InternalSelectMenu",common:Ve,peers:{Scrollbar:Zo,Empty:Ji},self:v7};function _$(e,t){return m(mo,{name:"fade-in-scale-up-transition"},{default:()=>e?m(Kt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>m(Rz)}):null})}const Kf=ye({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:u,nodePropsRef:d,handleOptionClick:c,handleOptionMouseEnter:h}=Oe(p3),f=vt(()=>{const{value:b}=o;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:x}=e;x.disabled||c(b,x)}function g(b){const{tmNode:x}=e;x.disabled||h(b,x)}function v(b){const{tmNode:x}=e,{value:E}=f;x.disabled||E||h(b,x)}return{multiple:n,isGrouped:vt(()=>{const{tmNode:b}=e,{parent:x}=b;return x&&x.rawNode.type==="group"}),showCheckmark:u,nodeProps:d,isPending:f,isSelected:vt(()=>{const{value:b}=t,{value:x}=n;if(b===null)return!1;const E=e.tmNode.rawNode[s.value];if(x){const{value:C}=r;return C.has(E)}else return b===E}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:v,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:u,handleMouseEnter:d,handleMouseMove:c}=this,h=_$(o,e),f=s?[s(t,o),i&&h]:[Jt(t[this.labelField],t,o),i&&h],p=a==null?void 0:a(t),g=m("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Dl([u,p==null?void 0:p.onClick]),onMouseenter:Dl([d,p==null?void 0:p.onMouseenter]),onMousemove:Dl([c,p==null?void 0:p.onMousemove])}),m("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),Gf=ye({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Oe(p3);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,i=n==null?void 0:n(r),a=t?t(r,!1):Jt(r[this.labelField],r,!1),l=m("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:l,option:r}):o?o({node:l,option:r,selected:!1}):l}}),{cubicBezierEaseIn:qf,cubicBezierEaseOut:Zf}=sn;function Pn({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[W("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${qf}, transform ${t} ${qf} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Zf}, transform ${t} ${Zf} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),W("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const M$=A("base-select-menu",` + `,[Ts(),W("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),E$=Object.assign(Object.assign({},Ie.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),or=ye({name:"Scrollbar",props:E$,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Wt("Scrollbar",n,t),i=$(null),a=$(null),l=$(null),s=$(null),u=$(null),d=$(null),c=$(null),h=$(null),f=$(null),p=$(null),g=$(null),v=$(0),b=$(0),x=$(!1),E=$(!1);let w=!1,k=!1,_,F,P=0,z=0,A=0,G=0;const H=cw(),X=Ie("Scrollbar","-scrollbar",F$,Lo,e,t),N=D(()=>{const{value:te}=h,{value:me}=d,{value:ze}=p;return te===null||me===null||ze===null?0:Math.min(te,ze*te/me+so(X.value.self.width)*1.5)}),T=D(()=>`${N.value}px`),O=D(()=>{const{value:te}=f,{value:me}=c,{value:ze}=g;return te===null||me===null||ze===null?0:ze*te/me+so(X.value.self.height)*1.5}),R=D(()=>`${O.value}px`),L=D(()=>{const{value:te}=h,{value:me}=v,{value:ze}=d,{value:He}=p;if(te===null||ze===null||He===null)return 0;{const je=ze-te;return je?me/je*(He-N.value):0}}),ne=D(()=>`${L.value}px`),y=D(()=>{const{value:te}=f,{value:me}=b,{value:ze}=c,{value:He}=g;if(te===null||ze===null||He===null)return 0;{const je=ze-te;return je?me/je*(He-O.value):0}}),K=D(()=>`${y.value}px`),U=D(()=>{const{value:te}=h,{value:me}=d;return te!==null&&me!==null&&me>te}),ue=D(()=>{const{value:te}=f,{value:me}=c;return te!==null&&me!==null&&me>te}),se=D(()=>{const{trigger:te}=e;return te==="none"||x.value}),Fe=D(()=>{const{trigger:te}=e;return te==="none"||E.value}),pe=D(()=>{const{container:te}=e;return te?te():a.value}),fe=D(()=>{const{content:te}=e;return te?te():l.value}),Ce=(te,me)=>{if(!e.scrollable)return;if(typeof te=="number"){j(te,me??0,0,!1,"auto");return}const{left:ze,top:He,index:je,elSize:qe,position:Ze,behavior:nt,el:yt,debounce:Bt=!0}=te;(ze!==void 0||He!==void 0)&&j(ze??0,He??0,0,!1,nt),yt!==void 0?j(0,yt.offsetTop,yt.offsetHeight,Bt,nt):je!==void 0&&qe!==void 0?j(0,je*qe,qe,Bt,nt):Ze==="bottom"?j(0,Number.MAX_SAFE_INTEGER,0,!1,nt):Ze==="top"&&j(0,0,0,!1,nt)},ee=uS(()=>{e.container||Ce({top:v.value,left:b.value})}),q=()=>{ee.isDeactivated||de()},Te=te=>{if(ee.isDeactivated)return;const{onResize:me}=e;me&&me(te),de()},Ne=(te,me)=>{if(!e.scrollable)return;const{value:ze}=pe;ze&&(typeof te=="object"?ze.scrollBy(te):ze.scrollBy(te,me||0))};function j(te,me,ze,He,je){const{value:qe}=pe;if(qe){if(He){const{scrollTop:Ze,offsetHeight:nt}=qe;if(me>Ze){me+ze<=Ze+nt||qe.scrollTo({left:te,top:me+ze-nt,behavior:je});return}}qe.scrollTo({left:te,top:me,behavior:je})}}function V(){he(),oe(),de()}function ge(){we()}function we(){le(),re()}function le(){F!==void 0&&window.clearTimeout(F),F=window.setTimeout(()=>{E.value=!1},e.duration)}function re(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{x.value=!1},e.duration)}function he(){_!==void 0&&window.clearTimeout(_),x.value=!0}function oe(){F!==void 0&&window.clearTimeout(F),E.value=!0}function ie(te){const{onScroll:me}=e;me&&me(te),ce()}function ce(){const{value:te}=pe;te&&(v.value=te.scrollTop,b.value=te.scrollLeft*(r!=null&&r.value?-1:1))}function ae(){const{value:te}=fe;te&&(d.value=te.offsetHeight,c.value=te.offsetWidth);const{value:me}=pe;me&&(h.value=me.offsetHeight,f.value=me.offsetWidth);const{value:ze}=u,{value:He}=s;ze&&(g.value=ze.offsetWidth),He&&(p.value=He.offsetHeight)}function Q(){const{value:te}=pe;te&&(v.value=te.scrollTop,b.value=te.scrollLeft*(r!=null&&r.value?-1:1),h.value=te.offsetHeight,f.value=te.offsetWidth,d.value=te.scrollHeight,c.value=te.scrollWidth);const{value:me}=u,{value:ze}=s;me&&(g.value=me.offsetWidth),ze&&(p.value=ze.offsetHeight)}function de(){e.scrollable&&(e.useUnifiedContainer?Q():(ae(),ce()))}function ve(te){var me;return!(!((me=i.value)===null||me===void 0)&&me.contains(Li(te)))}function Be(te){te.preventDefault(),te.stopPropagation(),k=!0,wt("mousemove",window,Ge,!0),wt("mouseup",window,et,!0),z=b.value,A=r!=null&&r.value?window.innerWidth-te.clientX:te.clientX}function Ge(te){if(!k)return;_!==void 0&&window.clearTimeout(_),F!==void 0&&window.clearTimeout(F);const{value:me}=f,{value:ze}=c,{value:He}=O;if(me===null||ze===null)return;const qe=(r!=null&&r.value?window.innerWidth-te.clientX-A:te.clientX-A)*(ze-me)/(me-He),Ze=ze-me;let nt=z+qe;nt=Math.min(Ze,nt),nt=Math.max(nt,0);const{value:yt}=pe;if(yt){yt.scrollLeft=nt*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Bt}=e;Bt&&Bt(nt)}}function et(te){te.preventDefault(),te.stopPropagation(),xt("mousemove",window,Ge,!0),xt("mouseup",window,et,!0),k=!1,de(),ve(te)&&we()}function st(te){te.preventDefault(),te.stopPropagation(),w=!0,wt("mousemove",window,Ye,!0),wt("mouseup",window,pt,!0),P=v.value,G=te.clientY}function Ye(te){if(!w)return;_!==void 0&&window.clearTimeout(_),F!==void 0&&window.clearTimeout(F);const{value:me}=h,{value:ze}=d,{value:He}=N;if(me===null||ze===null)return;const qe=(te.clientY-G)*(ze-me)/(me-He),Ze=ze-me;let nt=P+qe;nt=Math.min(Ze,nt),nt=Math.max(nt,0);const{value:yt}=pe;yt&&(yt.scrollTop=nt)}function pt(te){te.preventDefault(),te.stopPropagation(),xt("mousemove",window,Ye,!0),xt("mouseup",window,pt,!0),w=!1,de(),ve(te)&&we()}Et(()=>{const{value:te}=ue,{value:me}=U,{value:ze}=t,{value:He}=u,{value:je}=s;He&&(te?He.classList.remove(`${ze}-scrollbar-rail--disabled`):He.classList.add(`${ze}-scrollbar-rail--disabled`)),je&&(me?je.classList.remove(`${ze}-scrollbar-rail--disabled`):je.classList.add(`${ze}-scrollbar-rail--disabled`))}),ut(()=>{e.container||de()}),Xt(()=>{_!==void 0&&window.clearTimeout(_),F!==void 0&&window.clearTimeout(F),xt("mousemove",window,Ye,!0),xt("mouseup",window,pt,!0)});const Qe=D(()=>{const{common:{cubicBezierEaseInOut:te},self:{color:me,colorHover:ze,height:He,width:je,borderRadius:qe,railInsetHorizontalTop:Ze,railInsetHorizontalBottom:nt,railInsetVerticalRight:yt,railInsetVerticalLeft:Bt,railColor:kt}}=X.value;return{"--n-scrollbar-bezier":te,"--n-scrollbar-color":me,"--n-scrollbar-color-hover":ze,"--n-scrollbar-border-radius":qe,"--n-scrollbar-width":je,"--n-scrollbar-height":He,"--n-scrollbar-rail-inset-horizontal-top":Ze,"--n-scrollbar-rail-inset-horizontal-bottom":nt,"--n-scrollbar-rail-inset-vertical-right":r!=null&&r.value?y2(yt):yt,"--n-scrollbar-rail-inset-vertical-left":r!=null&&r.value?y2(Bt):Bt,"--n-scrollbar-rail-color":kt}}),Le=o?gt("scrollbar",void 0,Qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ce,scrollBy:Ne,sync:de,syncUnifiedContainer:Q,handleMouseEnterWrapper:V,handleMouseLeaveWrapper:ge}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:u,needYBar:U,needXBar:ue,yBarSizePx:T,xBarSizePx:R,yBarTopPx:ne,xBarLeftPx:K,isShowXBar:se,isShowYBar:Fe,isIos:H,handleScroll:ie,handleContentResize:q,handleContainerResize:Te,handleYScrollMouseDown:st,handleXScrollMouseDown:Be,cssVars:o?void 0:Qe,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:l,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const u=this.trigger==="none",d=(f,p)=>m("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${a}`,f],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},m(u?Y0:mo,u?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),c=()=>{var f,p;return(f=this.onRender)===null||f===void 0||f.call(this),m("div",po(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):m("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},m(Rn,{onResize:this.handleContentResize},{default:()=>m("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),s&&m("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(u?Y0:mo,u?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},h=this.container?c():m(Rn,{onResize:this.handleContainerResize},{default:c});return i?m(ft,null,h,d(this.themeClass,this.cssVars)):h}}),g7=or,k$={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function v7(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:u,hoverColor:d,fontSizeTiny:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:g,heightTiny:v,heightSmall:b,heightMedium:x,heightLarge:E,heightHuge:w}=e;return Object.assign(Object.assign({},k$),{optionFontSizeTiny:c,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:v,optionHeightSmall:b,optionHeightMedium:x,optionHeightLarge:E,optionHeightHuge:w,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:u,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})}const Ka={name:"InternalSelectMenu",common:We,peers:{Scrollbar:Lo,Empty:tr},self:v7},Is={name:"InternalSelectMenu",common:Ve,peers:{Scrollbar:Zo,Empty:Ji},self:v7};function _$(e,t){return m(mo,{name:"fade-in-scale-up-transition"},{default:()=>e?m(Gt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>m(Rz)}):null})}const Kf=ye({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:u,nodePropsRef:d,handleOptionClick:c,handleOptionMouseEnter:h}=Oe(p3),f=vt(()=>{const{value:b}=o;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:x}=e;x.disabled||c(b,x)}function g(b){const{tmNode:x}=e;x.disabled||h(b,x)}function v(b){const{tmNode:x}=e,{value:E}=f;x.disabled||E||h(b,x)}return{multiple:n,isGrouped:vt(()=>{const{tmNode:b}=e,{parent:x}=b;return x&&x.rawNode.type==="group"}),showCheckmark:u,nodeProps:d,isPending:f,isSelected:vt(()=>{const{value:b}=t,{value:x}=n;if(b===null)return!1;const E=e.tmNode.rawNode[s.value];if(x){const{value:w}=r;return w.has(E)}else return b===E}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:v,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:u,handleMouseEnter:d,handleMouseMove:c}=this,h=_$(o,e),f=s?[s(t,o),i&&h]:[Jt(t[this.labelField],t,o),i&&h],p=a==null?void 0:a(t),g=m("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Dl([u,p==null?void 0:p.onClick]),onMouseenter:Dl([d,p==null?void 0:p.onMouseenter]),onMousemove:Dl([c,p==null?void 0:p.onMousemove])}),m("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),Gf=ye({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Oe(p3);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,i=n==null?void 0:n(r),a=t?t(r,!1):Jt(r[this.labelField],r,!1),l=m("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:l,option:r}):o?o({node:l,option:r,selected:!1}):l}}),{cubicBezierEaseIn:qf,cubicBezierEaseOut:Zf}=sn;function Pn({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[W("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${qf}, transform ${t} ${qf} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Zf}, transform ${t} ${Zf} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),W("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const M$=B("base-select-menu",` line-height: 1.5; outline: none; z-index: 0; @@ -217,37 +217,37 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-color); -`,[A("scrollbar",` +`,[B("scrollbar",` max-height: var(--n-height); - `),A("virtual-list",` + `),B("virtual-list",` max-height: var(--n-height); - `),A("base-select-option",` + `),B("base-select-option",` min-height: var(--n-option-height); font-size: var(--n-option-font-size); display: flex; align-items: center; - `,[q("content",` + `,[Y("content",` z-index: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; - `)]),A("base-select-group-header",` + `)]),B("base-select-group-header",` min-height: var(--n-option-height); font-size: .93em; display: flex; align-items: center; - `),A("base-select-menu-option-wrapper",` + `),B("base-select-menu-option-wrapper",` position: relative; width: 100%; - `),q("loading, empty",` + `),Y("loading, empty",` display: flex; padding: 12px 32px; flex: 1; justify-content: center; - `),q("loading",` + `),Y("loading",` color: var(--n-loading-color); font-size: var(--n-loading-size); - `),q("header",` + `),Y("header",` padding: 8px var(--n-option-padding-left); font-size: var(--n-option-font-size); transition: @@ -255,7 +255,7 @@ ${t} border-color .3s var(--n-bezier); border-bottom: 1px solid var(--n-action-divider-color); color: var(--n-action-text-color); - `),q("action",` + `),Y("action",` padding: 8px var(--n-option-padding-left); font-size: var(--n-option-font-size); transition: @@ -263,12 +263,12 @@ ${t} border-color .3s var(--n-bezier); border-top: 1px solid var(--n-action-divider-color); color: var(--n-action-text-color); - `),A("base-select-group-header",` + `),B("base-select-group-header",` position: relative; cursor: default; padding: var(--n-option-padding); color: var(--n-group-header-text-color); - `),A("base-select-option",` + `),B("base-select-option",` cursor: pointer; position: relative; padding: var(--n-option-padding); @@ -278,7 +278,7 @@ ${t} box-sizing: border-box; color: var(--n-option-text-color); opacity: 1; - `,[ee("show-checkmark",` + `,[J("show-checkmark",` padding-right: calc(var(--n-option-padding-right) + 20px); `),W("&::before",` content: ""; @@ -291,37 +291,37 @@ ${t} transition: background-color .3s var(--n-bezier); `),W("&:active",` color: var(--n-option-text-color-pressed); - `),ee("grouped",` + `),J("grouped",` padding-left: calc(var(--n-option-padding-left) * 1.5); - `),ee("pending",[W("&::before",` + `),J("pending",[W("&::before",` background-color: var(--n-option-color-pending); - `)]),ee("selected",` + `)]),J("selected",` color: var(--n-option-text-color-active); `,[W("&::before",` background-color: var(--n-option-color-active); - `),ee("pending",[W("&::before",` + `),J("pending",[W("&::before",` background-color: var(--n-option-color-active-pending); - `)])]),ee("disabled",` + `)])]),J("disabled",` cursor: not-allowed; `,[_t("selected",` color: var(--n-option-text-color-disabled); - `),ee("selected",` + `),J("selected",` opacity: var(--n-option-opacity-disabled); - `)]),q("check",` + `)]),Y("check",` font-size: 16px; position: absolute; right: calc(var(--n-option-padding-right) - 4px); top: calc(50% - 7px); color: var(--n-option-check-color); transition: color .3s var(--n-bezier); - `,[Pn({enterScale:"0.5"})])])]),b7=ye({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Vt("InternalSelectMenu",o,t),r=Ie("InternalSelectMenu","-internal-select-menu",M$,Ka,e,Ae(e,"clsPrefix")),i=$(null),a=$(null),l=$(null),s=D(()=>e.treeMate.getFlattenedNodes()),u=D(()=>o$(s.value)),d=$(null);function c(){const{treeMate:X}=e;let re=null;const{value:he}=e;he===null?re=X.getFirstAvailableNode():(e.multiple?re=X.getNode((he||[])[(he||[]).length-1]):re=X.getNode(he),(!re||re.disabled)&&(re=X.getFirstAvailableNode())),N(re||null)}function h(){const{value:X}=d;X&&!e.treeMate.getNode(X.key)&&(d.value=null)}let f;lt(()=>e.show,X=>{X?f=lt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?c():h(),Mt(T)):h()},{immediate:!0}):f==null||f()},{immediate:!0}),Xt(()=>{f==null||f()});const p=D(()=>so(r.value.self[Ee("optionHeight",e.size)])),g=D(()=>Mo(r.value.self[Ee("padding",e.size)])),v=D(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=D(()=>{const X=s.value;return X&&X.length===0});function x(X){const{onToggle:re}=e;re&&re(X)}function E(X){const{onScroll:re}=e;re&&re(X)}function C(X){var re;(re=l.value)===null||re===void 0||re.sync(),E(X)}function k(){var X;(X=l.value)===null||X===void 0||X.sync()}function _(){const{value:X}=d;return X||null}function F(X,re){re.disabled||N(re,!1)}function P(X,re){re.disabled||x(re)}function z(X){var re;Ko(X,"action")||(re=e.onKeyup)===null||re===void 0||re.call(e,X)}function B(X){var re;Ko(X,"action")||(re=e.onKeydown)===null||re===void 0||re.call(e,X)}function j(X){var re;(re=e.onMousedown)===null||re===void 0||re.call(e,X),!e.focusable&&X.preventDefault()}function V(){const{value:X}=d;X&&N(X.getNext({loop:!0}),!0)}function K(){const{value:X}=d;X&&N(X.getPrev({loop:!0}),!0)}function N(X,re=!1){d.value=X,re&&T()}function T(){var X,re;const he=d.value;if(!he)return;const Se=u.value(he.key);Se!==null&&(e.virtualScroll?(X=a.value)===null||X===void 0||X.scrollTo({index:Se}):(re=l.value)===null||re===void 0||re.scrollTo({index:Se,elSize:p.value}))}function L(X){var re,he;!((re=i.value)===null||re===void 0)&&re.contains(X.target)&&((he=e.onFocus)===null||he===void 0||he.call(e,X))}function R(X){var re,he;!((re=i.value)===null||re===void 0)&&re.contains(X.relatedTarget)||(he=e.onBlur)===null||he===void 0||he.call(e,X)}et(p3,{handleOptionMouseEnter:F,handleOptionClick:P,valueSetRef:v,pendingTmNodeRef:d,nodePropsRef:Ae(e,"nodeProps"),showCheckmarkRef:Ae(e,"showCheckmark"),multipleRef:Ae(e,"multiple"),valueRef:Ae(e,"value"),renderLabelRef:Ae(e,"renderLabel"),renderOptionRef:Ae(e,"renderOption"),labelFieldRef:Ae(e,"labelField"),valueFieldRef:Ae(e,"valueField")}),et(Op,i),ut(()=>{const{value:X}=l;X&&X.sync()});const I=D(()=>{const{size:X}=e,{common:{cubicBezierEaseInOut:re},self:{height:he,borderRadius:Se,color:pe,groupHeaderTextColor:fe,actionDividerColor:we,optionTextColorPressed:J,optionTextColor:G,optionTextColorDisabled:Te,optionTextColorActive:Ne,optionOpacityDisabled:H,optionCheckColor:oe,actionTextColor:ge,optionColorPending:Ce,optionColorActive:se,loadingColor:ie,loadingSize:ce,optionColorActivePending:ne,[Ee("optionFontSize",X)]:ae,[Ee("optionHeight",X)]:de,[Ee("optionPadding",X)]:le}}=r.value;return{"--n-height":he,"--n-action-divider-color":we,"--n-action-text-color":ge,"--n-bezier":re,"--n-border-radius":Se,"--n-color":pe,"--n-option-font-size":ae,"--n-group-header-text-color":fe,"--n-option-check-color":oe,"--n-option-color-pending":Ce,"--n-option-color-active":se,"--n-option-color-active-pending":ne,"--n-option-height":de,"--n-option-opacity-disabled":H,"--n-option-text-color":G,"--n-option-text-color-active":Ne,"--n-option-text-color-disabled":Te,"--n-option-text-color-pressed":J,"--n-option-padding":le,"--n-option-padding-left":Mo(le,"left"),"--n-option-padding-right":Mo(le,"right"),"--n-loading-color":ie,"--n-loading-size":ce}}),{inlineThemeDisabled:w}=e,Q=w?gt("internal-select-menu",D(()=>e.size[0]),I,e):void 0,U={selfRef:i,next:V,prev:K,getPendingTmNode:_};return t8(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:n,virtualListRef:a,scrollbarRef:l,itemSize:p,padding:g,flattenedNodes:s,empty:b,virtualListContainer(){const{value:X}=a;return X==null?void 0:X.listElRef},virtualListContent(){const{value:X}=a;return X==null?void 0:X.itemsElRef},doScroll:E,handleFocusin:L,handleFocusout:R,handleKeyUp:z,handleKeyDown:B,handleMouseDown:j,handleVirtualListResize:k,handleVirtualListScroll:C,cssVars:w?void 0:I,themeClass:Q==null?void 0:Q.themeClass,onRender:Q==null?void 0:Q.onRender},U)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:n,themeClass:r,onRender:i}=this;return i==null||i(),m("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,r,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},bt(e.header,a=>a&&m("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?m("div",{class:`${o}-base-select-menu__loading`},m(kr,{clsPrefix:o,strokeWidth:20})):this.empty?m("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},wo(e.empty,()=>[m(L3,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty,size:this.size})])):m(or,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?m(b3,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?m(Gf,{key:a.key,clsPrefix:o,tmNode:a}):a.ignored?null:m(Kf,{clsPrefix:o,key:a.key,tmNode:a})}):m("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?m(Gf,{key:a.key,clsPrefix:o,tmNode:a}):m(Kf,{clsPrefix:o,key:a.key,tmNode:a})))}),bt(e.action,a=>a&&[m("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},a),m(Nz,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),R$=A("base-wave",` + `,[Pn({enterScale:"0.5"})])])]),b7=ye({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Wt("InternalSelectMenu",o,t),r=Ie("InternalSelectMenu","-internal-select-menu",M$,Ka,e,Ae(e,"clsPrefix")),i=$(null),a=$(null),l=$(null),s=D(()=>e.treeMate.getFlattenedNodes()),u=D(()=>o$(s.value)),d=$(null);function c(){const{treeMate:U}=e;let ue=null;const{value:se}=e;se===null?ue=U.getFirstAvailableNode():(e.multiple?ue=U.getNode((se||[])[(se||[]).length-1]):ue=U.getNode(se),(!ue||ue.disabled)&&(ue=U.getFirstAvailableNode())),N(ue||null)}function h(){const{value:U}=d;U&&!e.treeMate.getNode(U.key)&&(d.value=null)}let f;lt(()=>e.show,U=>{U?f=lt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?c():h(),Mt(T)):h()},{immediate:!0}):f==null||f()},{immediate:!0}),Xt(()=>{f==null||f()});const p=D(()=>so(r.value.self[Ee("optionHeight",e.size)])),g=D(()=>Mo(r.value.self[Ee("padding",e.size)])),v=D(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=D(()=>{const U=s.value;return U&&U.length===0});function x(U){const{onToggle:ue}=e;ue&&ue(U)}function E(U){const{onScroll:ue}=e;ue&&ue(U)}function w(U){var ue;(ue=l.value)===null||ue===void 0||ue.sync(),E(U)}function k(){var U;(U=l.value)===null||U===void 0||U.sync()}function _(){const{value:U}=d;return U||null}function F(U,ue){ue.disabled||N(ue,!1)}function P(U,ue){ue.disabled||x(ue)}function z(U){var ue;Ko(U,"action")||(ue=e.onKeyup)===null||ue===void 0||ue.call(e,U)}function A(U){var ue;Ko(U,"action")||(ue=e.onKeydown)===null||ue===void 0||ue.call(e,U)}function G(U){var ue;(ue=e.onMousedown)===null||ue===void 0||ue.call(e,U),!e.focusable&&U.preventDefault()}function H(){const{value:U}=d;U&&N(U.getNext({loop:!0}),!0)}function X(){const{value:U}=d;U&&N(U.getPrev({loop:!0}),!0)}function N(U,ue=!1){d.value=U,ue&&T()}function T(){var U,ue;const se=d.value;if(!se)return;const Fe=u.value(se.key);Fe!==null&&(e.virtualScroll?(U=a.value)===null||U===void 0||U.scrollTo({index:Fe}):(ue=l.value)===null||ue===void 0||ue.scrollTo({index:Fe,elSize:p.value}))}function O(U){var ue,se;!((ue=i.value)===null||ue===void 0)&&ue.contains(U.target)&&((se=e.onFocus)===null||se===void 0||se.call(e,U))}function R(U){var ue,se;!((ue=i.value)===null||ue===void 0)&&ue.contains(U.relatedTarget)||(se=e.onBlur)===null||se===void 0||se.call(e,U)}tt(p3,{handleOptionMouseEnter:F,handleOptionClick:P,valueSetRef:v,pendingTmNodeRef:d,nodePropsRef:Ae(e,"nodeProps"),showCheckmarkRef:Ae(e,"showCheckmark"),multipleRef:Ae(e,"multiple"),valueRef:Ae(e,"value"),renderLabelRef:Ae(e,"renderLabel"),renderOptionRef:Ae(e,"renderOption"),labelFieldRef:Ae(e,"labelField"),valueFieldRef:Ae(e,"valueField")}),tt(Op,i),ut(()=>{const{value:U}=l;U&&U.sync()});const L=D(()=>{const{size:U}=e,{common:{cubicBezierEaseInOut:ue},self:{height:se,borderRadius:Fe,color:pe,groupHeaderTextColor:fe,actionDividerColor:Ce,optionTextColorPressed:ee,optionTextColor:q,optionTextColorDisabled:Te,optionTextColorActive:Ne,optionOpacityDisabled:j,optionCheckColor:V,actionTextColor:ge,optionColorPending:we,optionColorActive:le,loadingColor:re,loadingSize:he,optionColorActivePending:oe,[Ee("optionFontSize",U)]:ie,[Ee("optionHeight",U)]:ce,[Ee("optionPadding",U)]:ae}}=r.value;return{"--n-height":se,"--n-action-divider-color":Ce,"--n-action-text-color":ge,"--n-bezier":ue,"--n-border-radius":Fe,"--n-color":pe,"--n-option-font-size":ie,"--n-group-header-text-color":fe,"--n-option-check-color":V,"--n-option-color-pending":we,"--n-option-color-active":le,"--n-option-color-active-pending":oe,"--n-option-height":ce,"--n-option-opacity-disabled":j,"--n-option-text-color":q,"--n-option-text-color-active":Ne,"--n-option-text-color-disabled":Te,"--n-option-text-color-pressed":ee,"--n-option-padding":ae,"--n-option-padding-left":Mo(ae,"left"),"--n-option-padding-right":Mo(ae,"right"),"--n-loading-color":re,"--n-loading-size":he}}),{inlineThemeDisabled:ne}=e,y=ne?gt("internal-select-menu",D(()=>e.size[0]),L,e):void 0,K={selfRef:i,next:H,prev:X,getPendingTmNode:_};return t8(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:n,virtualListRef:a,scrollbarRef:l,itemSize:p,padding:g,flattenedNodes:s,empty:b,virtualListContainer(){const{value:U}=a;return U==null?void 0:U.listElRef},virtualListContent(){const{value:U}=a;return U==null?void 0:U.itemsElRef},doScroll:E,handleFocusin:O,handleFocusout:R,handleKeyUp:z,handleKeyDown:A,handleMouseDown:G,handleVirtualListResize:k,handleVirtualListScroll:w,cssVars:ne?void 0:L,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:n,themeClass:r,onRender:i}=this;return i==null||i(),m("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,r,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},bt(e.header,a=>a&&m("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?m("div",{class:`${o}-base-select-menu__loading`},m(kr,{clsPrefix:o,strokeWidth:20})):this.empty?m("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},wo(e.empty,()=>[m(L3,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty,size:this.size})])):m(or,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?m(b3,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?m(Gf,{key:a.key,clsPrefix:o,tmNode:a}):a.ignored?null:m(Kf,{clsPrefix:o,key:a.key,tmNode:a})}):m("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?m(Gf,{key:a.key,clsPrefix:o,tmNode:a}):m(Kf,{clsPrefix:o,key:a.key,tmNode:a})))}),bt(e.action,a=>a&&[m("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},a),m(Nz,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),R$=B("base-wave",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: inherit; -`),x7=ye({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Er("-base-wave",R$,Ae(e,"clsPrefix"));const t=$(null),o=$(!1);let n=null;return Xt(()=>{n!==null&&window.clearTimeout(n)}),{active:o,selfRef:t,play(){n!==null&&(window.clearTimeout(n),o.value=!1,n=null),Mt(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,o.value=!0,n=window.setTimeout(()=>{o.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return m("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),z$={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function y7(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},z$),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const si={name:"Popover",common:We,self:y7},ea={name:"Popover",common:Ve,self:y7},qc={top:"bottom",bottom:"top",left:"right",right:"left"},go="var(--n-arrow-height) * 1.414",$$=W([A("popover",` +`),x7=ye({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Er("-base-wave",R$,Ae(e,"clsPrefix"));const t=$(null),o=$(!1);let n=null;return Xt(()=>{n!==null&&window.clearTimeout(n)}),{active:o,selfRef:t,play(){n!==null&&(window.clearTimeout(n),o.value=!1,n=null),Mt(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,o.value=!0,n=window.setTimeout(()=>{o.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return m("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),z$={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function y7(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},z$),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const si={name:"Popover",common:We,self:y7},ea={name:"Popover",common:Ve,self:y7},qc={top:"bottom",bottom:"top",left:"right",right:"left"},go="var(--n-arrow-height) * 1.414",$$=W([B("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -331,29 +331,29 @@ ${t} color: var(--n-text-color); box-shadow: var(--n-box-shadow); word-break: break-word; - `,[W(">",[A("scrollbar",` + `,[W(">",[B("scrollbar",` height: inherit; max-height: inherit; `)]),_t("raw",` background-color: var(--n-color); border-radius: var(--n-border-radius); - `,[_t("scrollable",[_t("show-header-or-footer","padding: var(--n-padding);")])]),q("header",` + `,[_t("scrollable",[_t("show-header-or-footer","padding: var(--n-padding);")])]),Y("header",` padding: var(--n-padding); border-bottom: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); - `),q("footer",` + `),Y("footer",` padding: var(--n-padding); border-top: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); - `),ee("scrollable, show-header-or-footer",[q("content",` + `),J("scrollable, show-header-or-footer",[Y("content",` padding: var(--n-padding); - `)])]),A("popover-shared",` + `)])]),B("popover-shared",` transform-origin: inherit; - `,[A("popover-arrow-wrapper",` + `,[B("popover-arrow-wrapper",` position: absolute; overflow: hidden; pointer-events: none; - `,[A("popover-arrow",` + `,[B("popover-arrow",` transition: background-color .3s var(--n-bezier); position: absolute; display: block; @@ -423,11 +423,11 @@ ${t} `),fn("right-end",` right: calc(${go} / -2); bottom: calc(${lr("right-end")} + var(--v-offset-top)); - `),...PR({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",l=`calc((${`var(--v-target-${n}, 0px)`} - ${go}) / 2)`,s=lr(r);return W(`[v-placement="${r}"] >`,[A("popover-shared",[ee("center-arrow",[A("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function lr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function fn(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return W(`[v-placement="${e}"] >`,[A("popover-shared",` + `),...PR({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",l=`calc((${`var(--v-target-${n}, 0px)`} - ${go}) / 2)`,s=lr(r);return W(`[v-placement="${r}"] >`,[B("popover-shared",[J("center-arrow",[B("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function lr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function fn(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return W(`[v-placement="${e}"] >`,[B("popover-shared",` margin-${qc[o]}: var(--n-space); - `,[ee("show-arrow",` + `,[J("show-arrow",` margin-${qc[o]}: var(--n-space-arrow); - `),ee("overlap",` + `),J("overlap",` margin: 0; `),JC("popover-arrow-wrapper",` right: 0; @@ -437,7 +437,7 @@ ${t} ${o}: 100%; ${qc[o]}: auto; ${n} - `,[A("popover-arrow",t)])])])}const C7=Object.assign(Object.assign({},Ie.props),{to:$o.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function w7({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return m("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},m("div",{class:[`${r}-popover-arrow`,e],style:t}))}const P$=ye({name:"PopoverBody",inheritAttrs:!1,props:C7,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=rt(e),a=Ie("Popover","-popover",$$,si,e,r),l=$(null),s=Oe("NPopover"),u=$(null),d=$(e.show),c=$(!1);Et(()=>{const{show:F}=e;F&&!ew()&&!e.internalDeactivateImmediately&&(c.value=!0)});const h=D(()=>{const{trigger:F,onClickoutside:P}=e,z=[],{positionManuallyRef:{value:B}}=s;return B||(F==="click"&&!P&&z.push([Hi,C,void 0,{capture:!0}]),F==="hover"&&z.push([yw,E])),P&&z.push([Hi,C,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&c.value)&&z.push([bn,e.show]),z}),f=D(()=>{const{common:{cubicBezierEaseInOut:F,cubicBezierEaseIn:P,cubicBezierEaseOut:z},self:{space:B,spaceArrow:j,padding:V,fontSize:K,textColor:N,dividerColor:T,color:L,boxShadow:R,borderRadius:I,arrowHeight:w,arrowOffset:Q,arrowOffsetVertical:U}}=a.value;return{"--n-box-shadow":R,"--n-bezier":F,"--n-bezier-ease-in":P,"--n-bezier-ease-out":z,"--n-font-size":K,"--n-text-color":N,"--n-color":L,"--n-divider-color":T,"--n-border-radius":I,"--n-arrow-height":w,"--n-arrow-offset":Q,"--n-arrow-offset-vertical":U,"--n-padding":V,"--n-space":B,"--n-space-arrow":j}}),p=D(()=>{const F=e.width==="trigger"?void 0:So(e.width),P=[];F&&P.push({width:F});const{maxWidth:z,minWidth:B}=e;return z&&P.push({maxWidth:So(z)}),B&&P.push({maxWidth:So(B)}),i||P.push(f.value),P}),g=i?gt("popover",void 0,f,e):void 0;s.setBodyInstance({syncPosition:v}),Xt(()=>{s.setBodyInstance(null)}),lt(Ae(e,"show"),F=>{e.animated||(F?d.value=!0:d.value=!1)});function v(){var F;(F=l.value)===null||F===void 0||F.syncPosition()}function b(F){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(F)}function x(F){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(F)}function E(F){e.trigger==="hover"&&!k().contains(Li(F))&&s.handleMouseMoveOutside(F)}function C(F){(e.trigger==="click"&&!k().contains(Li(F))||e.onClickoutside)&&s.handleClickOutside(F)}function k(){return s.getTriggerElement()}et(Na,u),et(ks,null),et(Es,null);function _(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&c.value))return null;let P;const z=s.internalRenderBodyRef.value,{value:B}=r;if(z)P=z([`${B}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${B}-popover-shared--overlap`,e.showArrow&&`${B}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${B}-popover-shared--center-arrow`],u,p.value,b,x);else{const{value:j}=s.extraClassRef,{internalTrapFocus:V}=e,K=!Ai(t.header)||!Ai(t.footer),N=()=>{var T,L;const R=K?m(ft,null,bt(t.header,Q=>Q?m("div",{class:[`${B}-popover__header`,e.headerClass],style:e.headerStyle},Q):null),bt(t.default,Q=>Q?m("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t):null),bt(t.footer,Q=>Q?m("div",{class:[`${B}-popover__footer`,e.footerClass],style:e.footerStyle},Q):null)):e.scrollable?(T=t.default)===null||T===void 0?void 0:T.call(t):m("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t),I=e.scrollable?m(g7,{contentClass:K?void 0:`${B}-popover__content ${(L=e.contentClass)!==null&&L!==void 0?L:""}`,contentStyle:K?void 0:e.contentStyle},{default:()=>R}):R,w=e.showArrow?w7({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:B}):null;return[I,w]};P=m("div",po({class:[`${B}-popover`,`${B}-popover-shared`,g==null?void 0:g.themeClass.value,j.map(T=>`${B}-${T}`),{[`${B}-popover--scrollable`]:e.scrollable,[`${B}-popover--show-header-or-footer`]:K,[`${B}-popover--raw`]:e.raw,[`${B}-popover-shared--overlap`]:e.overlap,[`${B}-popover-shared--show-arrow`]:e.showArrow,[`${B}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:p.value,onKeydown:s.handleKeydown,onMouseenter:b,onMouseleave:x},o),V?m(x3,{active:e.show,autoFocus:!0},{default:N}):N())}return zo(P,h.value)}return{displayed:c,namespace:n,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:$o(e),followerEnabled:d,renderContentNode:_}},render(){return m(Rs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===$o.tdkey},{default:()=>this.animated?m(mo,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),A$=Object.keys(C7),B$={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function D$(e,t,o){B$[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Ba={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:$o.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},T$=Object.assign(Object.assign(Object.assign({},Ie.props),Ba),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ga=ye({name:"Popover",inheritAttrs:!1,props:T$,__popover__:!0,setup(e){const t=Cr(),o=$(null),n=D(()=>e.show),r=$(e.defaultShow),i=to(n,r),a=vt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:T}=e;return!!(T!=null&&T())},s=()=>l()?!1:i.value,u=ts(e,["arrow","showArrow"]),d=D(()=>e.overlap?!1:u.value);let c=null;const h=$(null),f=$(null),p=vt(()=>e.x!==void 0&&e.y!==void 0);function g(T){const{"onUpdate:show":L,onUpdateShow:R,onShow:I,onHide:w}=e;r.value=T,L&&Re(L,T),R&&Re(R,T),T&&I&&Re(I,!0),T&&w&&Re(w,!1)}function v(){c&&c.syncPosition()}function b(){const{value:T}=h;T&&(window.clearTimeout(T),h.value=null)}function x(){const{value:T}=f;T&&(window.clearTimeout(T),f.value=null)}function E(){const T=l();if(e.trigger==="focus"&&!T){if(s())return;g(!0)}}function C(){const T=l();if(e.trigger==="focus"&&!T){if(!s())return;g(!1)}}function k(){const T=l();if(e.trigger==="hover"&&!T){if(x(),h.value!==null||s())return;const L=()=>{g(!0),h.value=null},{delay:R}=e;R===0?L():h.value=window.setTimeout(L,R)}}function _(){const T=l();if(e.trigger==="hover"&&!T){if(b(),f.value!==null||!s())return;const L=()=>{g(!1),f.value=null},{duration:R}=e;R===0?L():f.value=window.setTimeout(L,R)}}function F(){_()}function P(T){var L;s()&&(e.trigger==="click"&&(b(),x(),g(!1)),(L=e.onClickoutside)===null||L===void 0||L.call(e,T))}function z(){if(e.trigger==="click"&&!l()){b(),x();const T=!s();g(T)}}function B(T){e.internalTrapFocus&&T.key==="Escape"&&(b(),x(),g(!1))}function j(T){r.value=T}function V(){var T;return(T=o.value)===null||T===void 0?void 0:T.targetRef}function K(T){c=T}return et("NPopover",{getTriggerElement:V,handleKeydown:B,handleMouseEnter:k,handleMouseLeave:_,handleClickOutside:P,handleMouseMoveOutside:F,setBodyInstance:K,positionManuallyRef:p,isMountedRef:t,zIndexRef:Ae(e,"zIndex"),extraClassRef:Ae(e,"internalExtraClass"),internalRenderBodyRef:Ae(e,"internalRenderBody")}),Et(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:s,setShow:j,handleClick:z,handleMouseEnter:k,handleMouseLeave:_,handleFocus:E,handleBlur:C,syncPosition:v}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=Z0(o,"activator"):n=Z0(o,"trigger"),n)){n=qo(n),n=n.type===ws?m("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:u=>{l.forEach(d=>{d.onBlur(u)})},onFocus:u=>{l.forEach(d=>{d.onFocus(u)})},onClick:u=>{l.forEach(d=>{d.onClick(u)})},onMouseenter:u=>{l.forEach(d=>{d.onMouseenter(u)})},onMouseleave:u=>{l.forEach(d=>{d.onMouseleave(u)})}};D$(n,a?"nested":t?"manual":this.trigger,s)}}return m(_s,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?zo(m("div",{style:{position:"fixed",inset:0}}),[[zd,{enabled:i,zIndex:this.zIndex}]]):null,t?null:m(Ms,null,{default:()=>n}),m(P$,ei(this.$props,A$,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),S7={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},F7={name:"Tag",common:Ve,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,tagColor:c,opacityDisabled:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderRadiusSmall:x,fontSizeMini:E,fontSizeTiny:C,fontSizeSmall:k,fontSizeMedium:_,heightMini:F,heightTiny:P,heightSmall:z,heightMedium:B,buttonColor2Hover:j,buttonColor2Pressed:V,fontWeightStrong:K}=e;return Object.assign(Object.assign({},S7),{closeBorderRadius:x,heightTiny:F,heightSmall:P,heightMedium:z,heightLarge:B,borderRadius:x,opacityDisabled:h,fontSizeTiny:E,fontSizeSmall:C,fontSizeMedium:k,fontSizeLarge:_,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:j,colorPressedCheckable:V,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:c,colorBordered:"#0000",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderPrimary:`1px solid ${$e(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:$e(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:ao(r,{lightness:.7}),closeIconColorHoverPrimary:ao(r,{lightness:.7}),closeIconColorPressedPrimary:ao(r,{lightness:.7}),closeColorHoverPrimary:$e(r,{alpha:.16}),closeColorPressedPrimary:$e(r,{alpha:.12}),borderInfo:`1px solid ${$e(i,{alpha:.3})}`,textColorInfo:i,colorInfo:$e(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:ao(i,{alpha:.7}),closeIconColorHoverInfo:ao(i,{alpha:.7}),closeIconColorPressedInfo:ao(i,{alpha:.7}),closeColorHoverInfo:$e(i,{alpha:.16}),closeColorPressedInfo:$e(i,{alpha:.12}),borderSuccess:`1px solid ${$e(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:$e(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:ao(a,{alpha:.7}),closeIconColorHoverSuccess:ao(a,{alpha:.7}),closeIconColorPressedSuccess:ao(a,{alpha:.7}),closeColorHoverSuccess:$e(a,{alpha:.16}),closeColorPressedSuccess:$e(a,{alpha:.12}),borderWarning:`1px solid ${$e(l,{alpha:.3})}`,textColorWarning:l,colorWarning:$e(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:ao(l,{alpha:.7}),closeIconColorHoverWarning:ao(l,{alpha:.7}),closeIconColorPressedWarning:ao(l,{alpha:.7}),closeColorHoverWarning:$e(l,{alpha:.16}),closeColorPressedWarning:$e(l,{alpha:.11}),borderError:`1px solid ${$e(s,{alpha:.3})}`,textColorError:s,colorError:$e(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:ao(s,{alpha:.7}),closeIconColorHoverError:ao(s,{alpha:.7}),closeIconColorPressedError:ao(s,{alpha:.7}),closeColorHoverError:$e(s,{alpha:.16}),closeColorPressedError:$e(s,{alpha:.12})})}};function I$(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,opacityDisabled:c,tagColor:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:v,fontSizeMini:b,fontSizeTiny:x,fontSizeSmall:E,fontSizeMedium:C,heightMini:k,heightTiny:_,heightSmall:F,heightMedium:P,closeColorHover:z,closeColorPressed:B,buttonColor2Hover:j,buttonColor2Pressed:V,fontWeightStrong:K}=e;return Object.assign(Object.assign({},S7),{closeBorderRadius:v,heightTiny:k,heightSmall:_,heightMedium:F,heightLarge:P,borderRadius:v,opacityDisabled:c,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:E,fontSizeLarge:C,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:j,colorPressedCheckable:V,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:z,closeColorPressed:B,borderPrimary:`1px solid ${$e(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:$e(r,{alpha:.12}),colorBorderedPrimary:$e(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:$e(r,{alpha:.12}),closeColorPressedPrimary:$e(r,{alpha:.18}),borderInfo:`1px solid ${$e(i,{alpha:.3})}`,textColorInfo:i,colorInfo:$e(i,{alpha:.12}),colorBorderedInfo:$e(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:$e(i,{alpha:.12}),closeColorPressedInfo:$e(i,{alpha:.18}),borderSuccess:`1px solid ${$e(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:$e(a,{alpha:.12}),colorBorderedSuccess:$e(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:$e(a,{alpha:.12}),closeColorPressedSuccess:$e(a,{alpha:.18}),borderWarning:`1px solid ${$e(l,{alpha:.35})}`,textColorWarning:l,colorWarning:$e(l,{alpha:.15}),colorBorderedWarning:$e(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:$e(l,{alpha:.12}),closeColorPressedWarning:$e(l,{alpha:.18}),borderError:`1px solid ${$e(s,{alpha:.23})}`,textColorError:s,colorError:$e(s,{alpha:.1}),colorBorderedError:$e(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:$e(s,{alpha:.12}),closeColorPressedError:$e(s,{alpha:.18})})}const H3={name:"Tag",common:We,self:I$},O$={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},L$=A("tag",` + `,[B("popover-arrow",t)])])])}const C7=Object.assign(Object.assign({},Ie.props),{to:$o.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function w7({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return m("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},m("div",{class:[`${r}-popover-arrow`,e],style:t}))}const P$=ye({name:"PopoverBody",inheritAttrs:!1,props:C7,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=rt(e),a=Ie("Popover","-popover",$$,si,e,r),l=$(null),s=Oe("NPopover"),u=$(null),d=$(e.show),c=$(!1);Et(()=>{const{show:F}=e;F&&!ew()&&!e.internalDeactivateImmediately&&(c.value=!0)});const h=D(()=>{const{trigger:F,onClickoutside:P}=e,z=[],{positionManuallyRef:{value:A}}=s;return A||(F==="click"&&!P&&z.push([Hi,w,void 0,{capture:!0}]),F==="hover"&&z.push([yw,E])),P&&z.push([Hi,w,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&c.value)&&z.push([bn,e.show]),z}),f=D(()=>{const{common:{cubicBezierEaseInOut:F,cubicBezierEaseIn:P,cubicBezierEaseOut:z},self:{space:A,spaceArrow:G,padding:H,fontSize:X,textColor:N,dividerColor:T,color:O,boxShadow:R,borderRadius:L,arrowHeight:ne,arrowOffset:y,arrowOffsetVertical:K}}=a.value;return{"--n-box-shadow":R,"--n-bezier":F,"--n-bezier-ease-in":P,"--n-bezier-ease-out":z,"--n-font-size":X,"--n-text-color":N,"--n-color":O,"--n-divider-color":T,"--n-border-radius":L,"--n-arrow-height":ne,"--n-arrow-offset":y,"--n-arrow-offset-vertical":K,"--n-padding":H,"--n-space":A,"--n-space-arrow":G}}),p=D(()=>{const F=e.width==="trigger"?void 0:So(e.width),P=[];F&&P.push({width:F});const{maxWidth:z,minWidth:A}=e;return z&&P.push({maxWidth:So(z)}),A&&P.push({maxWidth:So(A)}),i||P.push(f.value),P}),g=i?gt("popover",void 0,f,e):void 0;s.setBodyInstance({syncPosition:v}),Xt(()=>{s.setBodyInstance(null)}),lt(Ae(e,"show"),F=>{e.animated||(F?d.value=!0:d.value=!1)});function v(){var F;(F=l.value)===null||F===void 0||F.syncPosition()}function b(F){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(F)}function x(F){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(F)}function E(F){e.trigger==="hover"&&!k().contains(Li(F))&&s.handleMouseMoveOutside(F)}function w(F){(e.trigger==="click"&&!k().contains(Li(F))||e.onClickoutside)&&s.handleClickOutside(F)}function k(){return s.getTriggerElement()}tt(Na,u),tt(ks,null),tt(Es,null);function _(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&c.value))return null;let P;const z=s.internalRenderBodyRef.value,{value:A}=r;if(z)P=z([`${A}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${A}-popover-shared--overlap`,e.showArrow&&`${A}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${A}-popover-shared--center-arrow`],u,p.value,b,x);else{const{value:G}=s.extraClassRef,{internalTrapFocus:H}=e,X=!Ai(t.header)||!Ai(t.footer),N=()=>{var T,O;const R=X?m(ft,null,bt(t.header,y=>y?m("div",{class:[`${A}-popover__header`,e.headerClass],style:e.headerStyle},y):null),bt(t.default,y=>y?m("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t):null),bt(t.footer,y=>y?m("div",{class:[`${A}-popover__footer`,e.footerClass],style:e.footerStyle},y):null)):e.scrollable?(T=t.default)===null||T===void 0?void 0:T.call(t):m("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t),L=e.scrollable?m(g7,{contentClass:X?void 0:`${A}-popover__content ${(O=e.contentClass)!==null&&O!==void 0?O:""}`,contentStyle:X?void 0:e.contentStyle},{default:()=>R}):R,ne=e.showArrow?w7({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:A}):null;return[L,ne]};P=m("div",po({class:[`${A}-popover`,`${A}-popover-shared`,g==null?void 0:g.themeClass.value,G.map(T=>`${A}-${T}`),{[`${A}-popover--scrollable`]:e.scrollable,[`${A}-popover--show-header-or-footer`]:X,[`${A}-popover--raw`]:e.raw,[`${A}-popover-shared--overlap`]:e.overlap,[`${A}-popover-shared--show-arrow`]:e.showArrow,[`${A}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:p.value,onKeydown:s.handleKeydown,onMouseenter:b,onMouseleave:x},o),H?m(x3,{active:e.show,autoFocus:!0},{default:N}):N())}return zo(P,h.value)}return{displayed:c,namespace:n,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:$o(e),followerEnabled:d,renderContentNode:_}},render(){return m(Rs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===$o.tdkey},{default:()=>this.animated?m(mo,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),A$=Object.keys(C7),B$={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function D$(e,t,o){B$[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Ba={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:$o.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},T$=Object.assign(Object.assign(Object.assign({},Ie.props),Ba),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ga=ye({name:"Popover",inheritAttrs:!1,props:T$,__popover__:!0,setup(e){const t=Cr(),o=$(null),n=D(()=>e.show),r=$(e.defaultShow),i=oo(n,r),a=vt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:T}=e;return!!(T!=null&&T())},s=()=>l()?!1:i.value,u=ts(e,["arrow","showArrow"]),d=D(()=>e.overlap?!1:u.value);let c=null;const h=$(null),f=$(null),p=vt(()=>e.x!==void 0&&e.y!==void 0);function g(T){const{"onUpdate:show":O,onUpdateShow:R,onShow:L,onHide:ne}=e;r.value=T,O&&Re(O,T),R&&Re(R,T),T&&L&&Re(L,!0),T&&ne&&Re(ne,!1)}function v(){c&&c.syncPosition()}function b(){const{value:T}=h;T&&(window.clearTimeout(T),h.value=null)}function x(){const{value:T}=f;T&&(window.clearTimeout(T),f.value=null)}function E(){const T=l();if(e.trigger==="focus"&&!T){if(s())return;g(!0)}}function w(){const T=l();if(e.trigger==="focus"&&!T){if(!s())return;g(!1)}}function k(){const T=l();if(e.trigger==="hover"&&!T){if(x(),h.value!==null||s())return;const O=()=>{g(!0),h.value=null},{delay:R}=e;R===0?O():h.value=window.setTimeout(O,R)}}function _(){const T=l();if(e.trigger==="hover"&&!T){if(b(),f.value!==null||!s())return;const O=()=>{g(!1),f.value=null},{duration:R}=e;R===0?O():f.value=window.setTimeout(O,R)}}function F(){_()}function P(T){var O;s()&&(e.trigger==="click"&&(b(),x(),g(!1)),(O=e.onClickoutside)===null||O===void 0||O.call(e,T))}function z(){if(e.trigger==="click"&&!l()){b(),x();const T=!s();g(T)}}function A(T){e.internalTrapFocus&&T.key==="Escape"&&(b(),x(),g(!1))}function G(T){r.value=T}function H(){var T;return(T=o.value)===null||T===void 0?void 0:T.targetRef}function X(T){c=T}return tt("NPopover",{getTriggerElement:H,handleKeydown:A,handleMouseEnter:k,handleMouseLeave:_,handleClickOutside:P,handleMouseMoveOutside:F,setBodyInstance:X,positionManuallyRef:p,isMountedRef:t,zIndexRef:Ae(e,"zIndex"),extraClassRef:Ae(e,"internalExtraClass"),internalRenderBodyRef:Ae(e,"internalRenderBody")}),Et(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:s,setShow:G,handleClick:z,handleMouseEnter:k,handleMouseLeave:_,handleFocus:E,handleBlur:w,syncPosition:v}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=Z0(o,"activator"):n=Z0(o,"trigger"),n)){n=qo(n),n=n.type===ws?m("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:u=>{l.forEach(d=>{d.onBlur(u)})},onFocus:u=>{l.forEach(d=>{d.onFocus(u)})},onClick:u=>{l.forEach(d=>{d.onClick(u)})},onMouseenter:u=>{l.forEach(d=>{d.onMouseenter(u)})},onMouseleave:u=>{l.forEach(d=>{d.onMouseleave(u)})}};D$(n,a?"nested":t?"manual":this.trigger,s)}}return m(_s,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?zo(m("div",{style:{position:"fixed",inset:0}}),[[zd,{enabled:i,zIndex:this.zIndex}]]):null,t?null:m(Ms,null,{default:()=>n}),m(P$,ei(this.$props,A$,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),S7={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},F7={name:"Tag",common:Ve,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,tagColor:c,opacityDisabled:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderRadiusSmall:x,fontSizeMini:E,fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:_,heightMini:F,heightTiny:P,heightSmall:z,heightMedium:A,buttonColor2Hover:G,buttonColor2Pressed:H,fontWeightStrong:X}=e;return Object.assign(Object.assign({},S7),{closeBorderRadius:x,heightTiny:F,heightSmall:P,heightMedium:z,heightLarge:A,borderRadius:x,opacityDisabled:h,fontSizeTiny:E,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,fontWeightStrong:X,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:G,colorPressedCheckable:H,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:c,colorBordered:"#0000",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderPrimary:`1px solid ${$e(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:$e(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:lo(r,{lightness:.7}),closeIconColorHoverPrimary:lo(r,{lightness:.7}),closeIconColorPressedPrimary:lo(r,{lightness:.7}),closeColorHoverPrimary:$e(r,{alpha:.16}),closeColorPressedPrimary:$e(r,{alpha:.12}),borderInfo:`1px solid ${$e(i,{alpha:.3})}`,textColorInfo:i,colorInfo:$e(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:lo(i,{alpha:.7}),closeIconColorHoverInfo:lo(i,{alpha:.7}),closeIconColorPressedInfo:lo(i,{alpha:.7}),closeColorHoverInfo:$e(i,{alpha:.16}),closeColorPressedInfo:$e(i,{alpha:.12}),borderSuccess:`1px solid ${$e(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:$e(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:lo(a,{alpha:.7}),closeIconColorHoverSuccess:lo(a,{alpha:.7}),closeIconColorPressedSuccess:lo(a,{alpha:.7}),closeColorHoverSuccess:$e(a,{alpha:.16}),closeColorPressedSuccess:$e(a,{alpha:.12}),borderWarning:`1px solid ${$e(l,{alpha:.3})}`,textColorWarning:l,colorWarning:$e(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:lo(l,{alpha:.7}),closeIconColorHoverWarning:lo(l,{alpha:.7}),closeIconColorPressedWarning:lo(l,{alpha:.7}),closeColorHoverWarning:$e(l,{alpha:.16}),closeColorPressedWarning:$e(l,{alpha:.11}),borderError:`1px solid ${$e(s,{alpha:.3})}`,textColorError:s,colorError:$e(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:lo(s,{alpha:.7}),closeIconColorHoverError:lo(s,{alpha:.7}),closeIconColorPressedError:lo(s,{alpha:.7}),closeColorHoverError:$e(s,{alpha:.16}),closeColorPressedError:$e(s,{alpha:.12})})}};function I$(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,opacityDisabled:c,tagColor:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:v,fontSizeMini:b,fontSizeTiny:x,fontSizeSmall:E,fontSizeMedium:w,heightMini:k,heightTiny:_,heightSmall:F,heightMedium:P,closeColorHover:z,closeColorPressed:A,buttonColor2Hover:G,buttonColor2Pressed:H,fontWeightStrong:X}=e;return Object.assign(Object.assign({},S7),{closeBorderRadius:v,heightTiny:k,heightSmall:_,heightMedium:F,heightLarge:P,borderRadius:v,opacityDisabled:c,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:E,fontSizeLarge:w,fontWeightStrong:X,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:G,colorPressedCheckable:H,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:z,closeColorPressed:A,borderPrimary:`1px solid ${$e(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:$e(r,{alpha:.12}),colorBorderedPrimary:$e(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:$e(r,{alpha:.12}),closeColorPressedPrimary:$e(r,{alpha:.18}),borderInfo:`1px solid ${$e(i,{alpha:.3})}`,textColorInfo:i,colorInfo:$e(i,{alpha:.12}),colorBorderedInfo:$e(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:$e(i,{alpha:.12}),closeColorPressedInfo:$e(i,{alpha:.18}),borderSuccess:`1px solid ${$e(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:$e(a,{alpha:.12}),colorBorderedSuccess:$e(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:$e(a,{alpha:.12}),closeColorPressedSuccess:$e(a,{alpha:.18}),borderWarning:`1px solid ${$e(l,{alpha:.35})}`,textColorWarning:l,colorWarning:$e(l,{alpha:.15}),colorBorderedWarning:$e(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:$e(l,{alpha:.12}),closeColorPressedWarning:$e(l,{alpha:.18}),borderError:`1px solid ${$e(s,{alpha:.23})}`,textColorError:s,colorError:$e(s,{alpha:.1}),colorBorderedError:$e(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:$e(s,{alpha:.12}),closeColorPressedError:$e(s,{alpha:.18})})}const H3={name:"Tag",common:We,self:I$},O$={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},L$=B("tag",` --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); white-space: nowrap; position: relative; @@ -459,9 +459,9 @@ ${t} line-height: 1; height: var(--n-height); font-size: var(--n-font-size); -`,[ee("strong",` +`,[J("strong",` font-weight: var(--n-font-weight-strong); - `),q("border",` + `),Y("border",` pointer-events: none; position: absolute; left: 0; @@ -471,48 +471,48 @@ ${t} border-radius: inherit; border: var(--n-border); transition: border-color .3s var(--n-bezier); - `),q("icon",` + `),Y("icon",` display: flex; margin: 0 4px 0 0; color: var(--n-text-color); transition: color .3s var(--n-bezier); font-size: var(--n-avatar-size-override); - `),q("avatar",` + `),Y("avatar",` display: flex; margin: 0 6px 0 0; - `),q("close",` + `),Y("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `),ee("round",` + `),J("round",` padding: 0 calc(var(--n-height) / 3); border-radius: calc(var(--n-height) / 2); - `,[q("icon",` + `,[Y("icon",` margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),q("avatar",` + `),Y("avatar",` margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),ee("closable",` + `),J("closable",` padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),ee("icon, avatar",[ee("round",` + `)]),J("icon, avatar",[J("round",` padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),ee("disabled",` + `)]),J("disabled",` cursor: not-allowed !important; opacity: var(--n-opacity-disabled); - `),ee("checkable",` + `),J("checkable",` cursor: pointer; box-shadow: none; color: var(--n-text-color-checkable); background-color: var(--n-color-checkable); - `,[_t("disabled",[W("&:hover","background-color: var(--n-color-hover-checkable);",[_t("checked","color: var(--n-text-color-hover-checkable);")]),W("&:active","background-color: var(--n-color-pressed-checkable);",[_t("checked","color: var(--n-text-color-pressed-checkable);")])]),ee("checked",` + `,[_t("disabled",[W("&:hover","background-color: var(--n-color-hover-checkable);",[_t("checked","color: var(--n-text-color-hover-checkable);")]),W("&:active","background-color: var(--n-color-pressed-checkable);",[_t("checked","color: var(--n-text-color-pressed-checkable);")])]),J("checked",` color: var(--n-text-color-checked); background-color: var(--n-color-checked); - `,[_t("disabled",[W("&:hover","background-color: var(--n-color-checked-hover);"),W("&:active","background-color: var(--n-color-checked-pressed);")])])])]),H$=Object.assign(Object.assign(Object.assign({},Ie.props),O$),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),E7="n-tag",Du=ye({name:"Tag",props:H$,setup(e){const t=$(null),{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=rt(e),a=Ie("Tag","-tag",L$,H3,e,n);et(E7,{roundRef:Ae(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:f,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":v}=e;g&&g(!f),v&&v(!f),p&&p(!f)}}function s(f){if(e.triggerClickOnClose||f.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Re(p,f)}}const u={setTextContent(f){const{value:p}=t;p&&(p.textContent=f)}},d=Vt("Tag",i,n),c=D(()=>{const{type:f,size:p,color:{color:g,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:x,closeMargin:E,borderRadius:C,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:F,textColorPressedCheckable:P,textColorChecked:z,colorCheckable:B,colorHoverCheckable:j,colorPressedCheckable:V,colorChecked:K,colorCheckedHover:N,colorCheckedPressed:T,closeBorderRadius:L,fontWeightStrong:R,[Ee("colorBordered",f)]:I,[Ee("closeSize",p)]:w,[Ee("closeIconSize",p)]:Q,[Ee("fontSize",p)]:U,[Ee("height",p)]:X,[Ee("color",f)]:re,[Ee("textColor",f)]:he,[Ee("border",f)]:Se,[Ee("closeIconColor",f)]:pe,[Ee("closeIconColorHover",f)]:fe,[Ee("closeIconColorPressed",f)]:we,[Ee("closeColorHover",f)]:J,[Ee("closeColorPressed",f)]:G}}=a.value,Te=Mo(E);return{"--n-font-weight-strong":R,"--n-avatar-size-override":`calc(${X} - 8px)`,"--n-bezier":b,"--n-border-radius":C,"--n-border":Se,"--n-close-icon-size":Q,"--n-close-color-pressed":G,"--n-close-color-hover":J,"--n-close-border-radius":L,"--n-close-icon-color":pe,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":we,"--n-close-icon-color-disabled":pe,"--n-close-margin-top":Te.top,"--n-close-margin-right":Te.right,"--n-close-margin-bottom":Te.bottom,"--n-close-margin-left":Te.left,"--n-close-size":w,"--n-color":g||(o.value?I:re),"--n-color-checkable":B,"--n-color-checked":K,"--n-color-checked-hover":N,"--n-color-checked-pressed":T,"--n-color-hover-checkable":j,"--n-color-pressed-checkable":V,"--n-font-size":U,"--n-height":X,"--n-opacity-disabled":k,"--n-padding":x,"--n-text-color":v||he,"--n-text-color-checkable":_,"--n-text-color-checked":z,"--n-text-color-hover-checkable":F,"--n-text-color-pressed-checkable":P}}),h=r?gt("tag",D(()=>{let f="";const{type:p,size:g,color:{color:v,textColor:b}={}}=e;return f+=p[0],f+=g[0],v&&(f+=`a${$a(v)}`),b&&(f+=`b${$a(b)}`),o.value&&(f+="c"),f}),c,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:d,mergedClsPrefix:n,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:s,cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const u=bt(s.avatar,c=>c&&m("div",{class:`${o}-tag__avatar`},c)),d=bt(s.icon,c=>c&&m("div",{class:`${o}-tag__icon`},c));return m("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:n,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:a,[`${o}-tag--avatar`]:u,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||u,m("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?m(li,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?m("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),N$=A("base-clear",` + `,[_t("disabled",[W("&:hover","background-color: var(--n-color-checked-hover);"),W("&:active","background-color: var(--n-color-checked-pressed);")])])])]),H$=Object.assign(Object.assign(Object.assign({},Ie.props),O$),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),E7="n-tag",Du=ye({name:"Tag",props:H$,setup(e){const t=$(null),{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=rt(e),a=Ie("Tag","-tag",L$,H3,e,n);tt(E7,{roundRef:Ae(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:f,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":v}=e;g&&g(!f),v&&v(!f),p&&p(!f)}}function s(f){if(e.triggerClickOnClose||f.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Re(p,f)}}const u={setTextContent(f){const{value:p}=t;p&&(p.textContent=f)}},d=Wt("Tag",i,n),c=D(()=>{const{type:f,size:p,color:{color:g,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:x,closeMargin:E,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:F,textColorPressedCheckable:P,textColorChecked:z,colorCheckable:A,colorHoverCheckable:G,colorPressedCheckable:H,colorChecked:X,colorCheckedHover:N,colorCheckedPressed:T,closeBorderRadius:O,fontWeightStrong:R,[Ee("colorBordered",f)]:L,[Ee("closeSize",p)]:ne,[Ee("closeIconSize",p)]:y,[Ee("fontSize",p)]:K,[Ee("height",p)]:U,[Ee("color",f)]:ue,[Ee("textColor",f)]:se,[Ee("border",f)]:Fe,[Ee("closeIconColor",f)]:pe,[Ee("closeIconColorHover",f)]:fe,[Ee("closeIconColorPressed",f)]:Ce,[Ee("closeColorHover",f)]:ee,[Ee("closeColorPressed",f)]:q}}=a.value,Te=Mo(E);return{"--n-font-weight-strong":R,"--n-avatar-size-override":`calc(${U} - 8px)`,"--n-bezier":b,"--n-border-radius":w,"--n-border":Fe,"--n-close-icon-size":y,"--n-close-color-pressed":q,"--n-close-color-hover":ee,"--n-close-border-radius":O,"--n-close-icon-color":pe,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":Ce,"--n-close-icon-color-disabled":pe,"--n-close-margin-top":Te.top,"--n-close-margin-right":Te.right,"--n-close-margin-bottom":Te.bottom,"--n-close-margin-left":Te.left,"--n-close-size":ne,"--n-color":g||(o.value?L:ue),"--n-color-checkable":A,"--n-color-checked":X,"--n-color-checked-hover":N,"--n-color-checked-pressed":T,"--n-color-hover-checkable":G,"--n-color-pressed-checkable":H,"--n-font-size":K,"--n-height":U,"--n-opacity-disabled":k,"--n-padding":x,"--n-text-color":v||se,"--n-text-color-checkable":_,"--n-text-color-checked":z,"--n-text-color-hover-checkable":F,"--n-text-color-pressed-checkable":P}}),h=r?gt("tag",D(()=>{let f="";const{type:p,size:g,color:{color:v,textColor:b}={}}=e;return f+=p[0],f+=g[0],v&&(f+=`a${$a(v)}`),b&&(f+=`b${$a(b)}`),o.value&&(f+="c"),f}),c,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:d,mergedClsPrefix:n,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:s,cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const u=bt(s.avatar,c=>c&&m("div",{class:`${o}-tag__avatar`},c)),d=bt(s.icon,c=>c&&m("div",{class:`${o}-tag__icon`},c));return m("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:n,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:a,[`${o}-tag--avatar`]:u,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||u,m("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?m(li,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?m("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),N$=B("base-clear",` flex-shrink: 0; height: 1em; width: 1em; position: relative; -`,[W(">",[q("clear",` +`,[W(">",[Y("clear",` font-size: var(--n-clear-size); height: 1em; width: 1em; @@ -524,14 +524,14 @@ ${t} color: var(--n-clear-color-hover)!important; `),W("&:active",` color: var(--n-clear-color-pressed)!important; - `)]),q("placeholder",` + `)]),Y("placeholder",` display: flex; - `),q("clear, placeholder",` + `),Y("clear, placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[en({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),p1=ye({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Er("-base-clear",N$,Ae(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-base-clear`},m(Qi,null,{default:()=>{var t,o;return this.show?m("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},wo(this.$slots.icon,()=>[m(Kt,{clsPrefix:e},{default:()=>m(Iz,null)})])):m("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),k7=ye({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return m(kr,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(p1,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(Kt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>wo(t.default,()=>[m(u7,null)])})}):null})}}}),_7={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function V$(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderColor:h,iconColor:f,iconColorDisabled:p,clearColor:g,clearColorHover:v,clearColorPressed:b,placeholderColor:x,placeholderColorDisabled:E,fontSizeTiny:C,fontSizeSmall:k,fontSizeMedium:_,fontSizeLarge:F,heightTiny:P,heightSmall:z,heightMedium:B,heightLarge:j}=e;return Object.assign(Object.assign({},_7),{fontSizeTiny:C,fontSizeSmall:k,fontSizeMedium:_,fontSizeLarge:F,heightTiny:P,heightSmall:z,heightMedium:B,heightLarge:j,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:x,placeholderColorDisabled:E,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${$e(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${$e(a,{alpha:.2})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${$e(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${$e(s,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${$e(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${$e(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:v,clearColorPressed:b})}const Nd={name:"InternalSelection",common:We,peers:{Popover:si},self:V$},N3={name:"InternalSelection",common:Ve,peers:{Popover:ea},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,iconColor:h,iconColorDisabled:f,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:b,placeholderColorDisabled:x,fontSizeTiny:E,fontSizeSmall:C,fontSizeMedium:k,fontSizeLarge:_,heightTiny:F,heightSmall:P,heightMedium:z,heightLarge:B}=e;return Object.assign(Object.assign({},_7),{fontSizeTiny:E,fontSizeSmall:C,fontSizeMedium:k,fontSizeLarge:_,heightTiny:F,heightSmall:P,heightMedium:z,heightLarge:B,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:x,color:r,colorDisabled:i,colorActive:$e(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${$e(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${$e(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:f,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${$e(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${$e(s,{alpha:.4})}`,colorActiveWarning:$e(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${$e(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${$e(d,{alpha:.4})}`,colorActiveError:$e(d,{alpha:.1}),caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}},W$=W([A("base-selection",` + `,[en({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),p1=ye({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Er("-base-clear",N$,Ae(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-base-clear`},m(Qi,null,{default:()=>{var t,o;return this.show?m("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},wo(this.$slots.icon,()=>[m(Gt,{clsPrefix:e},{default:()=>m(Iz,null)})])):m("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),k7=ye({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return m(kr,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(p1,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(Gt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>wo(t.default,()=>[m(u7,null)])})}):null})}}}),_7={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function V$(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderColor:h,iconColor:f,iconColorDisabled:p,clearColor:g,clearColorHover:v,clearColorPressed:b,placeholderColor:x,placeholderColorDisabled:E,fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:_,fontSizeLarge:F,heightTiny:P,heightSmall:z,heightMedium:A,heightLarge:G}=e;return Object.assign(Object.assign({},_7),{fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:_,fontSizeLarge:F,heightTiny:P,heightSmall:z,heightMedium:A,heightLarge:G,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:x,placeholderColorDisabled:E,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${$e(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${$e(a,{alpha:.2})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${$e(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${$e(s,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${$e(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${$e(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:v,clearColorPressed:b})}const Nd={name:"InternalSelection",common:We,peers:{Popover:si},self:V$},N3={name:"InternalSelection",common:Ve,peers:{Popover:ea},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,iconColor:h,iconColorDisabled:f,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:b,placeholderColorDisabled:x,fontSizeTiny:E,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:F,heightSmall:P,heightMedium:z,heightLarge:A}=e;return Object.assign(Object.assign({},_7),{fontSizeTiny:E,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:F,heightSmall:P,heightMedium:z,heightLarge:A,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:x,color:r,colorDisabled:i,colorActive:$e(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${$e(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${$e(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:f,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${$e(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${$e(s,{alpha:.4})}`,colorActiveWarning:$e(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${$e(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${$e(d,{alpha:.4})}`,colorActiveError:$e(d,{alpha:.1}),caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}},W$=W([B("base-selection",` --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); position: relative; @@ -545,9 +545,9 @@ ${t} min-height: var(--n-height); line-height: 1.5; font-size: var(--n-font-size); - `,[A("base-loading",` + `,[B("base-loading",` color: var(--n-loading-color); - `),A("base-selection-tags","min-height: var(--n-height);"),q("border, state-border",` + `),B("base-selection-tags","min-height: var(--n-height);"),Y("border, state-border",` position: absolute; left: 0; right: 0; @@ -559,20 +559,20 @@ ${t} transition: box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `),q("state-border",` + `),Y("state-border",` z-index: 1; border-color: #0000; - `),A("base-suffix",` + `),B("base-suffix",` cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); right: 10px; - `,[q("arrow",` + `,[Y("arrow",` font-size: var(--n-arrow-size); color: var(--n-arrow-color); transition: color .3s var(--n-bezier); - `)]),A("base-selection-overlay",` + `)]),B("base-selection-overlay",` display: flex; align-items: center; white-space: nowrap; @@ -584,17 +584,17 @@ ${t} left: 0; padding: var(--n-padding-single); transition: color .3s var(--n-bezier); - `,[q("wrapper",` + `,[Y("wrapper",` flex-basis: 0; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; - `)]),A("base-selection-placeholder",` + `)]),B("base-selection-placeholder",` color: var(--n-placeholder-color); - `,[q("inner",` + `,[Y("inner",` max-width: 100%; overflow: hidden; - `)]),A("base-selection-tags",` + `)]),B("base-selection-tags",` cursor: pointer; outline: none; box-sizing: border-box; @@ -612,7 +612,7 @@ ${t} color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - `),A("base-selection-label",` + `),B("base-selection-label",` height: var(--n-height); display: inline-flex; width: 100%; @@ -629,7 +629,7 @@ ${t} border-radius: inherit; background-color: var(--n-color); align-items: center; - `,[A("base-selection-input",` + `,[B("base-selection-input",` font-size: inherit; line-height: inherit; outline: none; @@ -642,38 +642,38 @@ ${t} color: var(--n-text-color); transition: color .3s var(--n-bezier); caret-color: var(--n-caret-color); - `,[q("content",` + `,[Y("content",` text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - `)]),q("render-label",` + `)]),Y("render-label",` color: var(--n-text-color); - `)]),_t("disabled",[W("&:hover",[q("state-border",` + `)]),_t("disabled",[W("&:hover",[Y("state-border",` box-shadow: var(--n-box-shadow-hover); border: var(--n-border-hover); - `)]),ee("focus",[q("state-border",` + `)]),J("focus",[Y("state-border",` box-shadow: var(--n-box-shadow-focus); border: var(--n-border-focus); - `)]),ee("active",[q("state-border",` + `)]),J("active",[Y("state-border",` box-shadow: var(--n-box-shadow-active); border: var(--n-border-active); - `),A("base-selection-label","background-color: var(--n-color-active);"),A("base-selection-tags","background-color: var(--n-color-active);")])]),ee("disabled","cursor: not-allowed;",[q("arrow",` + `),B("base-selection-label","background-color: var(--n-color-active);"),B("base-selection-tags","background-color: var(--n-color-active);")])]),J("disabled","cursor: not-allowed;",[Y("arrow",` color: var(--n-arrow-color-disabled); - `),A("base-selection-label",` + `),B("base-selection-label",` cursor: not-allowed; background-color: var(--n-color-disabled); - `,[A("base-selection-input",` + `,[B("base-selection-input",` cursor: not-allowed; color: var(--n-text-color-disabled); - `),q("render-label",` + `),Y("render-label",` color: var(--n-text-color-disabled); - `)]),A("base-selection-tags",` + `)]),B("base-selection-tags",` cursor: not-allowed; background-color: var(--n-color-disabled); - `),A("base-selection-placeholder",` + `),B("base-selection-placeholder",` cursor: not-allowed; color: var(--n-placeholder-color-disabled); - `)]),A("base-selection-input-tag",` + `)]),B("base-selection-input-tag",` height: calc(var(--n-height) - 6px); line-height: calc(var(--n-height) - 6px); outline: none; @@ -682,7 +682,7 @@ ${t} margin-bottom: 3px; max-width: 100%; vertical-align: bottom; - `,[q("input",` + `,[Y("input",` font-size: inherit; font-family: inherit; min-width: 1px; @@ -697,7 +697,7 @@ ${t} cursor: pointer; color: var(--n-text-color); caret-color: var(--n-caret-color); - `),q("mirror",` + `),Y("mirror",` position: absolute; left: 0; top: 0; @@ -706,32 +706,32 @@ ${t} user-select: none; -webkit-user-select: none; opacity: 0; - `)]),["warning","error"].map(e=>ee(`${e}-status`,[q("state-border",`border: var(--n-border-${e});`),_t("disabled",[W("&:hover",[q("state-border",` + `)]),["warning","error"].map(e=>J(`${e}-status`,[Y("state-border",`border: var(--n-border-${e});`),_t("disabled",[W("&:hover",[Y("state-border",` box-shadow: var(--n-box-shadow-hover-${e}); border: var(--n-border-hover-${e}); - `)]),ee("active",[q("state-border",` + `)]),J("active",[Y("state-border",` box-shadow: var(--n-box-shadow-active-${e}); border: var(--n-border-active-${e}); - `),A("base-selection-label",`background-color: var(--n-color-active-${e});`),A("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),ee("focus",[q("state-border",` + `),B("base-selection-label",`background-color: var(--n-color-active-${e});`),B("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),J("focus",[Y("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)])])]))]),A("base-selection-popover",` + `)])])]))]),B("base-selection-popover",` margin-bottom: -3px; display: flex; flex-wrap: wrap; margin-right: -8px; - `),A("base-selection-tag-wrapper",` + `),B("base-selection-tag-wrapper",` max-width: 100%; display: inline-flex; padding: 0 7px 3px 0; - `,[W("&:last-child","padding-right: 0;"),A("tag",` + `,[W("&:last-child","padding-right: 0;"),B("tag",` font-size: 14px; max-width: 100%; - `,[q("content",` + `,[Y("content",` line-height: 1.25; text-overflow: ellipsis; overflow: hidden; - `)])])]),j$=ye({name:"InternalSelection",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Vt("InternalSelection",o,t),r=$(null),i=$(null),a=$(null),l=$(null),s=$(null),u=$(null),d=$(null),c=$(null),h=$(null),f=$(null),p=$(!1),g=$(!1),v=$(!1),b=Ie("InternalSelection","-internal-selection",W$,Nd,e,Ae(e,"clsPrefix")),x=D(()=>e.clearable&&!e.disabled&&(v.value||e.active)),E=D(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),C=D(()=>{const Y=e.selectedOption;if(Y)return Y[e.labelField]}),k=D(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function _(){var Y;const{value:ue}=r;if(ue){const{value:ve}=i;ve&&(ve.style.width=`${ue.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Y=h.value)===null||Y===void 0||Y.sync({showAllItemsBeforeCalculate:!1})))}}function F(){const{value:Y}=f;Y&&(Y.style.display="none")}function P(){const{value:Y}=f;Y&&(Y.style.display="inline-block")}lt(Ae(e,"active"),Y=>{Y||F()}),lt(Ae(e,"pattern"),()=>{e.multiple&&Mt(_)});function z(Y){const{onFocus:ue}=e;ue&&ue(Y)}function B(Y){const{onBlur:ue}=e;ue&&ue(Y)}function j(Y){const{onDeleteOption:ue}=e;ue&&ue(Y)}function V(Y){const{onClear:ue}=e;ue&&ue(Y)}function K(Y){const{onPatternInput:ue}=e;ue&&ue(Y)}function N(Y){var ue;(!Y.relatedTarget||!(!((ue=a.value)===null||ue===void 0)&&ue.contains(Y.relatedTarget)))&&z(Y)}function T(Y){var ue;!((ue=a.value)===null||ue===void 0)&&ue.contains(Y.relatedTarget)||B(Y)}function L(Y){V(Y)}function R(){v.value=!0}function I(){v.value=!1}function w(Y){!e.active||!e.filterable||Y.target!==i.value&&Y.preventDefault()}function Q(Y){j(Y)}const U=$(!1);function X(Y){if(Y.key==="Backspace"&&!U.value&&!e.pattern.length){const{selectedOptions:ue}=e;ue!=null&&ue.length&&Q(ue[ue.length-1])}}let re=null;function he(Y){const{value:ue}=r;if(ue){const ve=Y.target.value;ue.textContent=ve,_()}e.ignoreComposition&&U.value?re=Y:K(Y)}function Se(){U.value=!0}function pe(){U.value=!1,e.ignoreComposition&&K(re),re=null}function fe(Y){var ue;g.value=!0,(ue=e.onPatternFocus)===null||ue===void 0||ue.call(e,Y)}function we(Y){var ue;g.value=!1,(ue=e.onPatternBlur)===null||ue===void 0||ue.call(e,Y)}function J(){var Y,ue;if(e.filterable)g.value=!1,(Y=u.value)===null||Y===void 0||Y.blur(),(ue=i.value)===null||ue===void 0||ue.blur();else if(e.multiple){const{value:ve}=l;ve==null||ve.blur()}else{const{value:ve}=s;ve==null||ve.blur()}}function G(){var Y,ue,ve;e.filterable?(g.value=!1,(Y=u.value)===null||Y===void 0||Y.focus()):e.multiple?(ue=l.value)===null||ue===void 0||ue.focus():(ve=s.value)===null||ve===void 0||ve.focus()}function Te(){const{value:Y}=i;Y&&(P(),Y.focus())}function Ne(){const{value:Y}=i;Y&&Y.blur()}function H(Y){const{value:ue}=d;ue&&ue.setTextContent(`+${Y}`)}function oe(){const{value:Y}=c;return Y}function ge(){return i.value}let Ce=null;function se(){Ce!==null&&window.clearTimeout(Ce)}function ie(){e.active||(se(),Ce=window.setTimeout(()=>{k.value&&(p.value=!0)},100))}function ce(){se()}function ne(Y){Y||(se(),p.value=!1)}lt(k,Y=>{Y||(p.value=!1)}),ut(()=>{Et(()=>{const Y=u.value;Y&&(e.disabled?Y.removeAttribute("tabindex"):Y.tabIndex=g.value?-1:0)})}),t8(a,e.onResize);const{inlineThemeDisabled:ae}=e,de=D(()=>{const{size:Y}=e,{common:{cubicBezierEaseInOut:ue},self:{borderRadius:ve,color:Be,placeholderColor:Ke,textColor:Je,paddingSingle:st,paddingMultiple:Ye,caretColor:pt,colorDisabled:Qe,textColorDisabled:Le,placeholderColorDisabled:tt,colorActive:te,boxShadowFocus:me,boxShadowActive:ze,boxShadowHover:He,border:je,borderFocus:Ge,borderHover:Ze,borderActive:ot,arrowColor:yt,arrowColorDisabled:Bt,loadingColor:kt,colorActiveWarning:xo,boxShadowFocusWarning:Po,boxShadowActiveWarning:Ao,boxShadowHoverWarning:No,borderWarning:Vo,borderFocusWarning:un,borderHoverWarning:dn,borderActiveWarning:be,colorActiveError:Pe,boxShadowFocusError:it,boxShadowActiveError:wt,boxShadowHoverError:Ot,borderError:$t,borderFocusError:Yt,borderHoverError:no,borderActiveError:Fn,clearColor:nr,clearColorHover:rr,clearColorPressed:di,clearSize:Ja,arrowSize:el,[Ee("height",Y)]:tl,[Ee("fontSize",Y)]:ol}}=b.value,Mr=Mo(st),Rr=Mo(Ye);return{"--n-bezier":ue,"--n-border":je,"--n-border-active":ot,"--n-border-focus":Ge,"--n-border-hover":Ze,"--n-border-radius":ve,"--n-box-shadow-active":ze,"--n-box-shadow-focus":me,"--n-box-shadow-hover":He,"--n-caret-color":pt,"--n-color":Be,"--n-color-active":te,"--n-color-disabled":Qe,"--n-font-size":ol,"--n-height":tl,"--n-padding-single-top":Mr.top,"--n-padding-multiple-top":Rr.top,"--n-padding-single-right":Mr.right,"--n-padding-multiple-right":Rr.right,"--n-padding-single-left":Mr.left,"--n-padding-multiple-left":Rr.left,"--n-padding-single-bottom":Mr.bottom,"--n-padding-multiple-bottom":Rr.bottom,"--n-placeholder-color":Ke,"--n-placeholder-color-disabled":tt,"--n-text-color":Je,"--n-text-color-disabled":Le,"--n-arrow-color":yt,"--n-arrow-color-disabled":Bt,"--n-loading-color":kt,"--n-color-active-warning":xo,"--n-box-shadow-focus-warning":Po,"--n-box-shadow-active-warning":Ao,"--n-box-shadow-hover-warning":No,"--n-border-warning":Vo,"--n-border-focus-warning":un,"--n-border-hover-warning":dn,"--n-border-active-warning":be,"--n-color-active-error":Pe,"--n-box-shadow-focus-error":it,"--n-box-shadow-active-error":wt,"--n-box-shadow-hover-error":Ot,"--n-border-error":$t,"--n-border-focus-error":Yt,"--n-border-hover-error":no,"--n-border-active-error":Fn,"--n-clear-size":Ja,"--n-clear-color":nr,"--n-clear-color-hover":rr,"--n-clear-color-pressed":di,"--n-arrow-size":el}}),le=ae?gt("internal-selection",D(()=>e.size[0]),de,e):void 0;return{mergedTheme:b,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:E,label:C,selected:k,showTagsPanel:p,isComposing:U,counterRef:d,counterWrapperRef:c,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:l,singleElRef:s,patternInputWrapperRef:u,overflowRef:h,inputTagElRef:f,handleMouseDown:w,handleFocusin:N,handleClear:L,handleMouseEnter:R,handleMouseLeave:I,handleDeleteOption:Q,handlePatternKeyDown:X,handlePatternInputInput:he,handlePatternInputBlur:we,handlePatternInputFocus:fe,handleMouseEnterCounter:ie,handleMouseLeaveCounter:ce,handleFocusout:T,handleCompositionEnd:pe,handleCompositionStart:Se,onPopoverUpdateShow:ne,focus:G,focusInput:Te,blur:J,blurInput:Ne,updateCounter:H,getCounter:oe,getTail:ge,renderLabel:e.renderLabel,cssVars:ae?void 0:de,themeClass:le==null?void 0:le.themeClass,onRender:le==null?void 0:le.onRender}},render(){const{status:e,multiple:t,size:o,disabled:n,filterable:r,maxTagCount:i,bordered:a,clsPrefix:l,ellipsisTagPopoverProps:s,onRender:u,renderTag:d,renderLabel:c}=this;u==null||u();const h=i==="responsive",f=typeof i=="number",p=h||f,g=m(Y0,null,{default:()=>m(k7,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,x;return(x=(b=this.$slots).arrow)===null||x===void 0?void 0:x.call(b)}})});let v;if(t){const{labelField:b}=this,x=K=>m("div",{class:`${l}-base-selection-tag-wrapper`,key:K.value},d?d({option:K,handleClose:()=>{this.handleDeleteOption(K)}}):m(Du,{size:o,closable:!K.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(K)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(K,!0):Jt(K[b],K,!0)})),E=()=>(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),C=r?m("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),m("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,k=h?()=>m("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},m(Du,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let _;if(f){const K=this.selectedOptions.length-i;K>0&&(_=m("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},m(Du,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${K}`})))}const F=h?r?m(G2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:E,counter:k,tail:()=>C}):m(G2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:E,counter:k}):f&&_?E().concat(_):E(),P=p?()=>m("div",{class:`${l}-base-selection-popover`},h?E():this.selectedOptions.map(x)):void 0,z=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,j=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,V=r?m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},F,h?null:C,g):m("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:n?void 0:0},F,g);v=m(ft,null,p?m(Ga,Object.assign({},z,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>V,default:P}):V,j)}else if(r){const b=this.pattern||this.isComposing,x=this.active?!b:!this.selected,E=this.active?!1:this.selected;v=m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:q0(this.label)},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),E?m("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},m("div",{class:`${l}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):null,x?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else v=m("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?m("div",{class:`${l}-base-selection-input`,title:q0(this.label),key:"input"},m("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return m("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,a?m("div",{class:`${l}-base-selection__border`}):null,a?m("div",{class:`${l}-base-selection__state-border`}):null)}}),Xf=ye({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=$(null),o=$(e.value),n=$(e.value),r=$("up"),i=$(!1),a=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null),l=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null);lt(Ae(e,"value"),(d,c)=>{o.value=c,n.value=d,Mt(s)});function s(){const d=e.newOriginalNumber,c=e.oldOriginalNumber;c===void 0||d===void 0||(d>c?u("up"):c>d&&u("down"))}function u(d){r.value=d,i.value=!1,Mt(()=>{var c;(c=t.value)===null||c===void 0||c.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return m("span",{ref:t,class:`${d}-base-slot-machine-number`},o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},o.value):null,m("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},m("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},n.value)),o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},o.value):null)}}}),{cubicBezierEaseInOut:Ar}=sn;function M7({duration:e=".2s",delay:t=".1s"}={}){return[W("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),W("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + `)])])]),j$=ye({name:"InternalSelection",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Wt("InternalSelection",o,t),r=$(null),i=$(null),a=$(null),l=$(null),s=$(null),u=$(null),d=$(null),c=$(null),h=$(null),f=$(null),p=$(!1),g=$(!1),v=$(!1),b=Ie("InternalSelection","-internal-selection",W$,Nd,e,Ae(e,"clsPrefix")),x=D(()=>e.clearable&&!e.disabled&&(v.value||e.active)),E=D(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),w=D(()=>{const Q=e.selectedOption;if(Q)return Q[e.labelField]}),k=D(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function _(){var Q;const{value:de}=r;if(de){const{value:ve}=i;ve&&(ve.style.width=`${de.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Q=h.value)===null||Q===void 0||Q.sync({showAllItemsBeforeCalculate:!1})))}}function F(){const{value:Q}=f;Q&&(Q.style.display="none")}function P(){const{value:Q}=f;Q&&(Q.style.display="inline-block")}lt(Ae(e,"active"),Q=>{Q||F()}),lt(Ae(e,"pattern"),()=>{e.multiple&&Mt(_)});function z(Q){const{onFocus:de}=e;de&&de(Q)}function A(Q){const{onBlur:de}=e;de&&de(Q)}function G(Q){const{onDeleteOption:de}=e;de&&de(Q)}function H(Q){const{onClear:de}=e;de&&de(Q)}function X(Q){const{onPatternInput:de}=e;de&&de(Q)}function N(Q){var de;(!Q.relatedTarget||!(!((de=a.value)===null||de===void 0)&&de.contains(Q.relatedTarget)))&&z(Q)}function T(Q){var de;!((de=a.value)===null||de===void 0)&&de.contains(Q.relatedTarget)||A(Q)}function O(Q){H(Q)}function R(){v.value=!0}function L(){v.value=!1}function ne(Q){!e.active||!e.filterable||Q.target!==i.value&&Q.preventDefault()}function y(Q){G(Q)}const K=$(!1);function U(Q){if(Q.key==="Backspace"&&!K.value&&!e.pattern.length){const{selectedOptions:de}=e;de!=null&&de.length&&y(de[de.length-1])}}let ue=null;function se(Q){const{value:de}=r;if(de){const ve=Q.target.value;de.textContent=ve,_()}e.ignoreComposition&&K.value?ue=Q:X(Q)}function Fe(){K.value=!0}function pe(){K.value=!1,e.ignoreComposition&&X(ue),ue=null}function fe(Q){var de;g.value=!0,(de=e.onPatternFocus)===null||de===void 0||de.call(e,Q)}function Ce(Q){var de;g.value=!1,(de=e.onPatternBlur)===null||de===void 0||de.call(e,Q)}function ee(){var Q,de;if(e.filterable)g.value=!1,(Q=u.value)===null||Q===void 0||Q.blur(),(de=i.value)===null||de===void 0||de.blur();else if(e.multiple){const{value:ve}=l;ve==null||ve.blur()}else{const{value:ve}=s;ve==null||ve.blur()}}function q(){var Q,de,ve;e.filterable?(g.value=!1,(Q=u.value)===null||Q===void 0||Q.focus()):e.multiple?(de=l.value)===null||de===void 0||de.focus():(ve=s.value)===null||ve===void 0||ve.focus()}function Te(){const{value:Q}=i;Q&&(P(),Q.focus())}function Ne(){const{value:Q}=i;Q&&Q.blur()}function j(Q){const{value:de}=d;de&&de.setTextContent(`+${Q}`)}function V(){const{value:Q}=c;return Q}function ge(){return i.value}let we=null;function le(){we!==null&&window.clearTimeout(we)}function re(){e.active||(le(),we=window.setTimeout(()=>{k.value&&(p.value=!0)},100))}function he(){le()}function oe(Q){Q||(le(),p.value=!1)}lt(k,Q=>{Q||(p.value=!1)}),ut(()=>{Et(()=>{const Q=u.value;Q&&(e.disabled?Q.removeAttribute("tabindex"):Q.tabIndex=g.value?-1:0)})}),t8(a,e.onResize);const{inlineThemeDisabled:ie}=e,ce=D(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:de},self:{borderRadius:ve,color:Be,placeholderColor:Ge,textColor:et,paddingSingle:st,paddingMultiple:Ye,caretColor:pt,colorDisabled:Qe,textColorDisabled:Le,placeholderColorDisabled:ot,colorActive:te,boxShadowFocus:me,boxShadowActive:ze,boxShadowHover:He,border:je,borderFocus:qe,borderHover:Ze,borderActive:nt,arrowColor:yt,arrowColorDisabled:Bt,loadingColor:kt,colorActiveWarning:xo,boxShadowFocusWarning:Po,boxShadowActiveWarning:Ao,boxShadowHoverWarning:No,borderWarning:Vo,borderFocusWarning:un,borderHoverWarning:dn,borderActiveWarning:be,colorActiveError:Pe,boxShadowFocusError:it,boxShadowActiveError:St,boxShadowHoverError:Ot,borderError:$t,borderFocusError:Yt,borderHoverError:no,borderActiveError:Fn,clearColor:nr,clearColorHover:rr,clearColorPressed:di,clearSize:Ja,arrowSize:el,[Ee("height",Q)]:tl,[Ee("fontSize",Q)]:ol}}=b.value,Mr=Mo(st),Rr=Mo(Ye);return{"--n-bezier":de,"--n-border":je,"--n-border-active":nt,"--n-border-focus":qe,"--n-border-hover":Ze,"--n-border-radius":ve,"--n-box-shadow-active":ze,"--n-box-shadow-focus":me,"--n-box-shadow-hover":He,"--n-caret-color":pt,"--n-color":Be,"--n-color-active":te,"--n-color-disabled":Qe,"--n-font-size":ol,"--n-height":tl,"--n-padding-single-top":Mr.top,"--n-padding-multiple-top":Rr.top,"--n-padding-single-right":Mr.right,"--n-padding-multiple-right":Rr.right,"--n-padding-single-left":Mr.left,"--n-padding-multiple-left":Rr.left,"--n-padding-single-bottom":Mr.bottom,"--n-padding-multiple-bottom":Rr.bottom,"--n-placeholder-color":Ge,"--n-placeholder-color-disabled":ot,"--n-text-color":et,"--n-text-color-disabled":Le,"--n-arrow-color":yt,"--n-arrow-color-disabled":Bt,"--n-loading-color":kt,"--n-color-active-warning":xo,"--n-box-shadow-focus-warning":Po,"--n-box-shadow-active-warning":Ao,"--n-box-shadow-hover-warning":No,"--n-border-warning":Vo,"--n-border-focus-warning":un,"--n-border-hover-warning":dn,"--n-border-active-warning":be,"--n-color-active-error":Pe,"--n-box-shadow-focus-error":it,"--n-box-shadow-active-error":St,"--n-box-shadow-hover-error":Ot,"--n-border-error":$t,"--n-border-focus-error":Yt,"--n-border-hover-error":no,"--n-border-active-error":Fn,"--n-clear-size":Ja,"--n-clear-color":nr,"--n-clear-color-hover":rr,"--n-clear-color-pressed":di,"--n-arrow-size":el}}),ae=ie?gt("internal-selection",D(()=>e.size[0]),ce,e):void 0;return{mergedTheme:b,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:E,label:w,selected:k,showTagsPanel:p,isComposing:K,counterRef:d,counterWrapperRef:c,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:l,singleElRef:s,patternInputWrapperRef:u,overflowRef:h,inputTagElRef:f,handleMouseDown:ne,handleFocusin:N,handleClear:O,handleMouseEnter:R,handleMouseLeave:L,handleDeleteOption:y,handlePatternKeyDown:U,handlePatternInputInput:se,handlePatternInputBlur:Ce,handlePatternInputFocus:fe,handleMouseEnterCounter:re,handleMouseLeaveCounter:he,handleFocusout:T,handleCompositionEnd:pe,handleCompositionStart:Fe,onPopoverUpdateShow:oe,focus:q,focusInput:Te,blur:ee,blurInput:Ne,updateCounter:j,getCounter:V,getTail:ge,renderLabel:e.renderLabel,cssVars:ie?void 0:ce,themeClass:ae==null?void 0:ae.themeClass,onRender:ae==null?void 0:ae.onRender}},render(){const{status:e,multiple:t,size:o,disabled:n,filterable:r,maxTagCount:i,bordered:a,clsPrefix:l,ellipsisTagPopoverProps:s,onRender:u,renderTag:d,renderLabel:c}=this;u==null||u();const h=i==="responsive",f=typeof i=="number",p=h||f,g=m(Y0,null,{default:()=>m(k7,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,x;return(x=(b=this.$slots).arrow)===null||x===void 0?void 0:x.call(b)}})});let v;if(t){const{labelField:b}=this,x=X=>m("div",{class:`${l}-base-selection-tag-wrapper`,key:X.value},d?d({option:X,handleClose:()=>{this.handleDeleteOption(X)}}):m(Du,{size:o,closable:!X.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(X)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(X,!0):Jt(X[b],X,!0)})),E=()=>(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),w=r?m("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),m("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,k=h?()=>m("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},m(Du,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let _;if(f){const X=this.selectedOptions.length-i;X>0&&(_=m("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},m(Du,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${X}`})))}const F=h?r?m(G2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:E,counter:k,tail:()=>w}):m(G2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:E,counter:k}):f&&_?E().concat(_):E(),P=p?()=>m("div",{class:`${l}-base-selection-popover`},h?E():this.selectedOptions.map(x)):void 0,z=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,G=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,H=r?m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},F,h?null:w,g):m("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:n?void 0:0},F,g);v=m(ft,null,p?m(Ga,Object.assign({},z,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>H,default:P}):H,G)}else if(r){const b=this.pattern||this.isComposing,x=this.active?!b:!this.selected,E=this.active?!1:this.selected;v=m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:q0(this.label)},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),E?m("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},m("div",{class:`${l}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):null,x?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else v=m("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?m("div",{class:`${l}-base-selection-input`,title:q0(this.label),key:"input"},m("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return m("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,a?m("div",{class:`${l}-base-selection__border`}):null,a?m("div",{class:`${l}-base-selection__state-border`}):null)}}),Xf=ye({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=$(null),o=$(e.value),n=$(e.value),r=$("up"),i=$(!1),a=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null),l=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null);lt(Ae(e,"value"),(d,c)=>{o.value=c,n.value=d,Mt(s)});function s(){const d=e.newOriginalNumber,c=e.oldOriginalNumber;c===void 0||d===void 0||(d>c?u("up"):c>d&&u("down"))}function u(d){r.value=d,i.value=!1,Mt(()=>{var c;(c=t.value)===null||c===void 0||c.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return m("span",{ref:t,class:`${d}-base-slot-machine-number`},o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},o.value):null,m("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},m("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},n.value)),o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},o.value):null)}}}),{cubicBezierEaseInOut:Ar}=sn;function M7({duration:e=".2s",delay:t=".1s"}={}){return[W("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),W("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; @@ -793,25 +793,25 @@ ${t} transform: translateY(60%); opacity: 0; } - `),A("base-slot-machine",` + `),B("base-slot-machine",` overflow: hidden; white-space: nowrap; display: inline-block; height: 18px; line-height: 18px; - `,[A("base-slot-machine-number",` + `,[B("base-slot-machine-number",` display: inline-block; position: relative; height: 18px; width: .6em; max-width: .6em; - `,[U$({duration:".2s"}),M7({duration:".2s",delay:"0s"}),A("base-slot-machine-old-number",` + `,[U$({duration:".2s"}),M7({duration:".2s",delay:"0s"}),B("base-slot-machine-old-number",` display: inline-block; opacity: 0; position: absolute; left: 0; right: 0; - `,[ee("top",{transform:"translateY(-100%)"}),ee("bottom",{transform:"translateY(100%)"}),ee("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),ee("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),A("base-slot-machine-current-number",` + `,[J("top",{transform:"translateY(-100%)"}),J("bottom",{transform:"translateY(100%)"}),J("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),J("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),B("base-slot-machine-current-number",` display: inline-block; position: absolute; left: 0; @@ -821,13 +821,13 @@ ${t} opacity: 1; transform: translateY(0); width: .6em; - `,[ee("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),ee("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),q("inner",` + `,[J("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),J("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),Y("inner",` display: inline-block; position: absolute; right: 0; top: 0; width: .6em; - `,[ee("not-number",` + `,[J("not-number",` right: unset; left: 0; `)])])])])]),G$=ye({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Er("-base-slot-machine",K$,Ae(e,"clsPrefix"));const t=$(),o=$(),n=D(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const r=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)r.push(i%10),i/=10,i=Math.floor(i);return r.reverse(),r});return lt(Ae(e,"value"),(r,i)=>{typeof r=="string"?(o.value=void 0,t.value=void 0):typeof i=="string"?(o.value=r,t.value=void 0):(o.value=r,t.value=i)}),()=>{const{value:r,clsPrefix:i}=e;return typeof r=="number"?m("span",{class:`${i}-base-slot-machine`},m(i3,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>n.value.map((a,l)=>m(Xf,{clsPrefix:i,key:n.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:o.value,value:a}))}),m(Ua,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{common:{cubicBezierEaseInOut:f},self:p}=i.value,{fontSize:g,borderRadius:v,titleFontWeight:b,lineHeight:x,iconSize:E,iconMargin:C,iconMarginRtl:k,closeIconSize:_,closeBorderRadius:F,closeSize:P,closeMargin:z,closeMarginRtl:B,padding:j}=p,{type:V}=e,{left:K,right:N}=Mo(C);return{"--n-bezier":f,"--n-color":p[Ee("color",V)],"--n-close-icon-size":_,"--n-close-border-radius":F,"--n-close-color-hover":p[Ee("closeColorHover",V)],"--n-close-color-pressed":p[Ee("closeColorPressed",V)],"--n-close-icon-color":p[Ee("closeIconColor",V)],"--n-close-icon-color-hover":p[Ee("closeIconColorHover",V)],"--n-close-icon-color-pressed":p[Ee("closeIconColorPressed",V)],"--n-icon-color":p[Ee("iconColor",V)],"--n-border":p[Ee("border",V)],"--n-title-text-color":p[Ee("titleTextColor",V)],"--n-content-text-color":p[Ee("contentTextColor",V)],"--n-line-height":x,"--n-border-radius":v,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":E,"--n-icon-margin":C,"--n-icon-margin-rtl":k,"--n-close-size":P,"--n-close-margin":z,"--n-close-margin-rtl":B,"--n-padding":j,"--n-icon-margin-left":K,"--n-icon-margin-right":N}}),s=n?gt("alert",D(()=>e.type[0]),l,e):void 0,u=$(!0),d=()=>{const{onAfterLeave:f,onAfterHide:p}=e;f&&f(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:o,visible:u,handleCloseClick:()=>{var f;Promise.resolve((f=e.onClose)===null||f===void 0?void 0:f.call(e)).then(p=>{p!==!1&&(u.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(Ua,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?m("div",Object.assign({},po(this.$attrs,n)),this.closable&&m(li,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&m("div",{class:`${t}-alert__border`}),this.showIcon&&m("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},wo(o.icon,()=>[m(Kt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return m(Od,null);case"info":return m(ls,null);case"warning":return m(Ld,null);case"error":return m(Id,null);default:return null}}})])),m("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},bt(o.header,r=>{const i=r||this.title;return i?m("div",{class:`${t}-alert-body__title`},i):null}),o.default&&m("div",{class:`${t}-alert-body__content`},o))):null}})}}),tP={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function $7(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},tP),{borderRadius:t,railColor:o,railColorActive:n,linkColor:$e(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const oP={name:"Anchor",common:We,self:$7},nP={name:"Anchor",common:Ve,self:$7};function nd(e){return e.type==="group"}function P7(e){return e.type==="ignored"}function Zc(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function A7(e,t){return{getIsGroup:nd,getIgnored:P7,getKey(n){return nd(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function rP(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(nd(l)){const s=r(l[n]);s.length&&a.push(Object.assign({},l,{[n]:s}))}else{if(P7(l))continue;t(o,l)&&a.push(l)}return a}return r(e)}function iP(e,t,o){const n=new Map;return e.forEach(r=>{nd(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}const aP=wn&&"chrome"in window;wn&&navigator.userAgent.includes("Firefox");const B7=wn&&navigator.userAgent.includes("Safari")&&!aP,D7={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Sn={name:"Input",common:Ve,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderRadius:h,lineHeight:f,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,heightTiny:x,heightSmall:E,heightMedium:C,heightLarge:k,clearColor:_,clearColorHover:F,clearColorPressed:P,placeholderColor:z,placeholderColorDisabled:B,iconColor:j,iconColorDisabled:V,iconColorHover:K,iconColorPressed:N}=e;return Object.assign(Object.assign({},D7),{countTextColorDisabled:n,countTextColor:o,heightTiny:x,heightSmall:E,heightMedium:C,heightLarge:k,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,lineHeight:f,lineHeightTextarea:f,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:z,placeholderColorDisabled:B,color:a,colorDisabled:l,colorFocus:$e(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${$e(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:$e(s,{alpha:.1}),borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 8px 0 ${$e(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,colorFocusError:$e(d,{alpha:.1}),borderFocusError:`1px solid ${c}`,boxShadowFocusError:`0 0 8px 0 ${$e(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:F,clearColorPressed:P,iconColor:j,iconColorDisabled:V,iconColorHover:K,iconColorPressed:N,suffixTextColor:t})}};function lP(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:u,warningColorHover:d,errorColor:c,errorColorHover:h,borderRadius:f,lineHeight:p,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,heightTiny:E,heightSmall:C,heightMedium:k,heightLarge:_,actionColor:F,clearColor:P,clearColorHover:z,clearColorPressed:B,placeholderColor:j,placeholderColorDisabled:V,iconColor:K,iconColorDisabled:N,iconColorHover:T,iconColorPressed:L}=e;return Object.assign(Object.assign({},D7),{countTextColorDisabled:n,countTextColor:o,heightTiny:E,heightSmall:C,heightMedium:k,heightLarge:_,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:F,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:j,placeholderColorDisabled:V,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${$e(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${$e(u,{alpha:.2})}`,caretColorWarning:u,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${$e(c,{alpha:.2})}`,caretColorError:c,clearColor:P,clearColorHover:z,clearColorPressed:B,iconColor:K,iconColorDisabled:N,iconColorHover:T,iconColorPressed:L,suffixTextColor:t})}const Xo={name:"Input",common:We,self:lP},T7="n-input";function sP(e){let t=0;for(const o of e)t++;return t}function cu(e){return e===""||e==null}function uP(e){const t=$(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){r();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function n(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:u,beforeText:d,afterText:c}=a;let h=s.length;if(s.endsWith(c))h=s.length-c.length;else if(s.startsWith(d))h=d.length;else{const f=d[u-1],p=s.indexOf(f,u-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function r(){t.value=null}return lt(e,r),{recordCursor:o,restoreCursor:n}}const Yf=ye({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=Oe(T7),a=D(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||sP)(l)});return()=>{const{value:l}=n,{value:s}=o;return m("span",{class:`${r.value}-input-word-count`},X0(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),dP=A("input",` + `,[W("& +",[Y("content",{marginTop:"9px"})])]),Y("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),Y("icon",{transition:"color .3s var(--n-bezier)"})]),J$=Object.assign(Object.assign({},Ie.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),eP=ye({name:"Alert",inheritAttrs:!1,props:J$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Alert","-alert",Q$,z7,e,t),a=Wt("Alert",r,t),l=D(()=>{const{common:{cubicBezierEaseInOut:f},self:p}=i.value,{fontSize:g,borderRadius:v,titleFontWeight:b,lineHeight:x,iconSize:E,iconMargin:w,iconMarginRtl:k,closeIconSize:_,closeBorderRadius:F,closeSize:P,closeMargin:z,closeMarginRtl:A,padding:G}=p,{type:H}=e,{left:X,right:N}=Mo(w);return{"--n-bezier":f,"--n-color":p[Ee("color",H)],"--n-close-icon-size":_,"--n-close-border-radius":F,"--n-close-color-hover":p[Ee("closeColorHover",H)],"--n-close-color-pressed":p[Ee("closeColorPressed",H)],"--n-close-icon-color":p[Ee("closeIconColor",H)],"--n-close-icon-color-hover":p[Ee("closeIconColorHover",H)],"--n-close-icon-color-pressed":p[Ee("closeIconColorPressed",H)],"--n-icon-color":p[Ee("iconColor",H)],"--n-border":p[Ee("border",H)],"--n-title-text-color":p[Ee("titleTextColor",H)],"--n-content-text-color":p[Ee("contentTextColor",H)],"--n-line-height":x,"--n-border-radius":v,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":E,"--n-icon-margin":w,"--n-icon-margin-rtl":k,"--n-close-size":P,"--n-close-margin":z,"--n-close-margin-rtl":A,"--n-padding":G,"--n-icon-margin-left":X,"--n-icon-margin-right":N}}),s=n?gt("alert",D(()=>e.type[0]),l,e):void 0,u=$(!0),d=()=>{const{onAfterLeave:f,onAfterHide:p}=e;f&&f(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:o,visible:u,handleCloseClick:()=>{var f;Promise.resolve((f=e.onClose)===null||f===void 0?void 0:f.call(e)).then(p=>{p!==!1&&(u.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(Ua,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?m("div",Object.assign({},po(this.$attrs,n)),this.closable&&m(li,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&m("div",{class:`${t}-alert__border`}),this.showIcon&&m("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},wo(o.icon,()=>[m(Gt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return m(Od,null);case"info":return m(ls,null);case"warning":return m(Ld,null);case"error":return m(Id,null);default:return null}}})])),m("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},bt(o.header,r=>{const i=r||this.title;return i?m("div",{class:`${t}-alert-body__title`},i):null}),o.default&&m("div",{class:`${t}-alert-body__content`},o))):null}})}}),tP={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function $7(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},tP),{borderRadius:t,railColor:o,railColorActive:n,linkColor:$e(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const oP={name:"Anchor",common:We,self:$7},nP={name:"Anchor",common:Ve,self:$7};function nd(e){return e.type==="group"}function P7(e){return e.type==="ignored"}function Zc(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function A7(e,t){return{getIsGroup:nd,getIgnored:P7,getKey(n){return nd(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function rP(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(nd(l)){const s=r(l[n]);s.length&&a.push(Object.assign({},l,{[n]:s}))}else{if(P7(l))continue;t(o,l)&&a.push(l)}return a}return r(e)}function iP(e,t,o){const n=new Map;return e.forEach(r=>{nd(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}const aP=wn&&"chrome"in window;wn&&navigator.userAgent.includes("Firefox");const B7=wn&&navigator.userAgent.includes("Safari")&&!aP,D7={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Sn={name:"Input",common:Ve,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderRadius:h,lineHeight:f,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,heightTiny:x,heightSmall:E,heightMedium:w,heightLarge:k,clearColor:_,clearColorHover:F,clearColorPressed:P,placeholderColor:z,placeholderColorDisabled:A,iconColor:G,iconColorDisabled:H,iconColorHover:X,iconColorPressed:N}=e;return Object.assign(Object.assign({},D7),{countTextColorDisabled:n,countTextColor:o,heightTiny:x,heightSmall:E,heightMedium:w,heightLarge:k,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,lineHeight:f,lineHeightTextarea:f,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:z,placeholderColorDisabled:A,color:a,colorDisabled:l,colorFocus:$e(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${$e(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:$e(s,{alpha:.1}),borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 8px 0 ${$e(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,colorFocusError:$e(d,{alpha:.1}),borderFocusError:`1px solid ${c}`,boxShadowFocusError:`0 0 8px 0 ${$e(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:F,clearColorPressed:P,iconColor:G,iconColorDisabled:H,iconColorHover:X,iconColorPressed:N,suffixTextColor:t})}};function lP(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:u,warningColorHover:d,errorColor:c,errorColorHover:h,borderRadius:f,lineHeight:p,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,heightTiny:E,heightSmall:w,heightMedium:k,heightLarge:_,actionColor:F,clearColor:P,clearColorHover:z,clearColorPressed:A,placeholderColor:G,placeholderColorDisabled:H,iconColor:X,iconColorDisabled:N,iconColorHover:T,iconColorPressed:O}=e;return Object.assign(Object.assign({},D7),{countTextColorDisabled:n,countTextColor:o,heightTiny:E,heightSmall:w,heightMedium:k,heightLarge:_,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:F,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:G,placeholderColorDisabled:H,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${$e(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${$e(u,{alpha:.2})}`,caretColorWarning:u,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${$e(c,{alpha:.2})}`,caretColorError:c,clearColor:P,clearColorHover:z,clearColorPressed:A,iconColor:X,iconColorDisabled:N,iconColorHover:T,iconColorPressed:O,suffixTextColor:t})}const Xo={name:"Input",common:We,self:lP},T7="n-input";function sP(e){let t=0;for(const o of e)t++;return t}function cu(e){return e===""||e==null}function uP(e){const t=$(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){r();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function n(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:u,beforeText:d,afterText:c}=a;let h=s.length;if(s.endsWith(c))h=s.length-c.length;else if(s.startsWith(d))h=d.length;else{const f=d[u-1],p=s.indexOf(f,u-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function r(){t.value=null}return lt(e,r),{recordCursor:o,restoreCursor:n}}const Yf=ye({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=Oe(T7),a=D(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||sP)(l)});return()=>{const{value:l}=n,{value:s}=o;return m("span",{class:`${r.value}-input-word-count`},X0(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),dP=B("input",` max-width: 100%; cursor: text; line-height: 1.5; @@ -913,11 +913,11 @@ ${t} transition: background-color .3s var(--n-bezier); font-size: var(--n-font-size); --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[q("input, textarea",` +`,[Y("input, textarea",` overflow: hidden; flex-grow: 1; position: relative; - `),q("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + `),Y("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` box-sizing: border-box; font-size: inherit; line-height: 1.5; @@ -931,7 +931,7 @@ ${t} caret-color .3s var(--n-bezier), color .3s var(--n-bezier), text-decoration-color .3s var(--n-bezier); - `),q("input-el, textarea-el",` + `),Y("input-el, textarea-el",` -webkit-appearance: none; scrollbar-width: none; width: 100%; @@ -947,7 +947,7 @@ ${t} `),W("&::placeholder",` color: #0000; -webkit-text-fill-color: transparent !important; - `),W("&:-webkit-autofill ~",[q("placeholder","display: none;")])]),ee("round",[_t("textarea","border-radius: calc(var(--n-height) / 2);")]),q("placeholder",` + `),W("&:-webkit-autofill ~",[Y("placeholder","display: none;")])]),J("round",[_t("textarea","border-radius: calc(var(--n-height) / 2);")]),Y("placeholder",` pointer-events: none; position: absolute; left: 0; @@ -959,19 +959,19 @@ ${t} `,[W("span",` width: 100%; display: inline-block; - `)]),ee("textarea",[q("placeholder","overflow: visible;")]),_t("autosize","width: 100%;"),ee("autosize",[q("textarea-el, input-el",` + `)]),J("textarea",[Y("placeholder","overflow: visible;")]),_t("autosize","width: 100%;"),J("autosize",[Y("textarea-el, input-el",` position: absolute; top: 0; left: 0; height: 100%; - `)]),A("input-wrapper",` + `)]),B("input-wrapper",` overflow: hidden; display: inline-flex; flex-grow: 1; position: relative; padding-left: var(--n-padding-left); padding-right: var(--n-padding-right); - `),q("input-mirror",` + `),Y("input-mirror",` padding: 0; height: var(--n-height); line-height: var(--n-height); @@ -980,26 +980,26 @@ ${t} position: static; white-space: pre; pointer-events: none; - `),q("input-el",` + `),Y("input-el",` padding: 0; height: var(--n-height); line-height: var(--n-height); - `,[W("&[type=password]::-ms-reveal","display: none;"),W("+",[q("placeholder",` + `,[W("&[type=password]::-ms-reveal","display: none;"),W("+",[Y("placeholder",` display: flex; align-items: center; - `)])]),_t("textarea",[q("placeholder","white-space: nowrap;")]),q("eye",` + `)])]),_t("textarea",[Y("placeholder","white-space: nowrap;")]),Y("eye",` display: flex; align-items: center; justify-content: center; transition: color .3s var(--n-bezier); - `),ee("textarea","width: 100%;",[A("input-word-count",` + `),J("textarea","width: 100%;",[B("input-word-count",` position: absolute; right: var(--n-padding-right); bottom: var(--n-padding-vertical); - `),ee("resizable",[A("input-wrapper",` + `),J("resizable",[B("input-wrapper",` resize: vertical; min-height: var(--n-height); - `)]),q("textarea-el, textarea-mirror, placeholder",` + `)]),Y("textarea-el, textarea-mirror, placeholder",` height: 100%; padding-left: 0; padding-right: 0; @@ -1014,7 +1014,7 @@ ${t} resize: none; white-space: pre-wrap; scroll-padding-block-end: var(--n-padding-vertical); - `),q("textarea-mirror",` + `),Y("textarea-mirror",` width: 100%; pointer-events: none; overflow: hidden; @@ -1022,44 +1022,44 @@ ${t} position: static; white-space: pre-wrap; overflow-wrap: break-word; - `)]),ee("pair",[q("input-el, placeholder","text-align: center;"),q("separator",` + `)]),J("pair",[Y("input-el, placeholder","text-align: center;"),Y("separator",` display: flex; align-items: center; transition: color .3s var(--n-bezier); color: var(--n-text-color); white-space: nowrap; - `,[A("icon",` + `,[B("icon",` color: var(--n-icon-color); - `),A("base-icon",` + `),B("base-icon",` color: var(--n-icon-color); - `)])]),ee("disabled",` + `)])]),J("disabled",` cursor: not-allowed; background-color: var(--n-color-disabled); - `,[q("border","border: var(--n-border-disabled);"),q("input-el, textarea-el",` + `,[Y("border","border: var(--n-border-disabled);"),Y("input-el, textarea-el",` cursor: not-allowed; color: var(--n-text-color-disabled); text-decoration-color: var(--n-text-color-disabled); - `),q("placeholder","color: var(--n-placeholder-color-disabled);"),q("separator","color: var(--n-text-color-disabled);",[A("icon",` + `),Y("placeholder","color: var(--n-placeholder-color-disabled);"),Y("separator","color: var(--n-text-color-disabled);",[B("icon",` color: var(--n-icon-color-disabled); - `),A("base-icon",` + `),B("base-icon",` color: var(--n-icon-color-disabled); - `)]),A("input-word-count",` + `)]),B("input-word-count",` color: var(--n-count-text-color-disabled); - `),q("suffix, prefix","color: var(--n-text-color-disabled);",[A("icon",` + `),Y("suffix, prefix","color: var(--n-text-color-disabled);",[B("icon",` color: var(--n-icon-color-disabled); - `),A("internal-icon",` + `),B("internal-icon",` color: var(--n-icon-color-disabled); - `)])]),_t("disabled",[q("eye",` + `)])]),_t("disabled",[Y("eye",` color: var(--n-icon-color); cursor: pointer; `,[W("&:hover",` color: var(--n-icon-color-hover); `),W("&:active",` color: var(--n-icon-color-pressed); - `)]),W("&:hover",[q("state-border","border: var(--n-border-hover);")]),ee("focus","background-color: var(--n-color-focus);",[q("state-border",` + `)]),W("&:hover",[Y("state-border","border: var(--n-border-hover);")]),J("focus","background-color: var(--n-color-focus);",[Y("state-border",` border: var(--n-border-focus); box-shadow: var(--n-box-shadow-focus); - `)])]),q("border, state-border",` + `)])]),Y("border, state-border",` box-sizing: border-box; position: absolute; left: 0; @@ -1072,12 +1072,12 @@ ${t} transition: box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `),q("state-border",` + `),Y("state-border",` border-color: #0000; z-index: 1; - `),q("prefix","margin-right: 4px;"),q("suffix",` + `),Y("prefix","margin-right: 4px;"),Y("suffix",` margin-left: 4px; - `),q("suffix, prefix",` + `),Y("suffix, prefix",` transition: color .3s var(--n-bezier); flex-wrap: nowrap; flex-shrink: 0; @@ -1087,23 +1087,23 @@ ${t} align-items: center; justify-content: center; color: var(--n-suffix-text-color); - `,[A("base-loading",` + `,[B("base-loading",` font-size: var(--n-icon-size); margin: 0 2px; color: var(--n-loading-color); - `),A("base-clear",` + `),B("base-clear",` font-size: var(--n-icon-size); - `,[q("placeholder",[A("base-icon",` + `,[Y("placeholder",[B("base-icon",` transition: color .3s var(--n-bezier); color: var(--n-icon-color); font-size: var(--n-icon-size); - `)])]),W(">",[A("icon",` + `)])]),W(">",[B("icon",` transition: color .3s var(--n-bezier); color: var(--n-icon-color); font-size: var(--n-icon-size); - `)]),A("base-icon",` + `)]),B("base-icon",` font-size: var(--n-icon-size); - `)]),A("input-word-count",` + `)]),B("input-word-count",` pointer-events: none; line-height: 1.5; font-size: .85em; @@ -1111,83 +1111,83 @@ ${t} transition: color .3s var(--n-bezier); margin-left: 4px; font-variant: tabular-nums; - `),["warning","error"].map(e=>ee(`${e}-status`,[_t("disabled",[A("base-loading",` + `),["warning","error"].map(e=>J(`${e}-status`,[_t("disabled",[B("base-loading",` color: var(--n-loading-color-${e}) - `),q("input-el, textarea-el",` + `),Y("input-el, textarea-el",` caret-color: var(--n-caret-color-${e}); - `),q("state-border",` + `),Y("state-border",` border: var(--n-border-${e}); - `),W("&:hover",[q("state-border",` + `),W("&:hover",[Y("state-border",` border: var(--n-border-hover-${e}); `)]),W("&:focus",` background-color: var(--n-color-focus-${e}); - `,[q("state-border",` + `,[Y("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)]),ee("focus",` + `)]),J("focus",` background-color: var(--n-color-focus-${e}); - `,[q("state-border",` + `,[Y("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)])])]))]),cP=A("input",[ee("disabled",[q("input-el, textarea-el",` + `)])])]))]),cP=B("input",[J("disabled",[Y("input-el, textarea-el",` -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),fP=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),rn=ye({name:"Input",props:fP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Input","-input",dP,Xo,e,t);B7&&Er("-input-safari",cP,t);const a=$(null),l=$(null),s=$(null),u=$(null),d=$(null),c=$(null),h=$(null),f=uP(h),p=$(null),{localeRef:g}=Fr("Input"),v=$(e.defaultValue),b=Ae(e,"value"),x=to(b,v),E=Bn(e),{mergedSizeRef:C,mergedDisabledRef:k,mergedStatusRef:_}=E,F=$(!1),P=$(!1),z=$(!1),B=$(!1);let j=null;const V=D(()=>{const{placeholder:be,pair:Pe}=e;return Pe?Array.isArray(be)?be:be===void 0?["",""]:[be,be]:be===void 0?[g.value.placeholder]:[be]}),K=D(()=>{const{value:be}=z,{value:Pe}=x,{value:it}=V;return!be&&(cu(Pe)||Array.isArray(Pe)&&cu(Pe[0]))&&it[0]}),N=D(()=>{const{value:be}=z,{value:Pe}=x,{value:it}=V;return!be&&it[1]&&(cu(Pe)||Array.isArray(Pe)&&cu(Pe[1]))}),T=vt(()=>e.internalForceFocus||F.value),L=vt(()=>{if(k.value||e.readonly||!e.clearable||!T.value&&!P.value)return!1;const{value:be}=x,{value:Pe}=T;return e.pair?!!(Array.isArray(be)&&(be[0]||be[1]))&&(P.value||Pe):!!be&&(P.value||Pe)}),R=D(()=>{const{showPasswordOn:be}=e;if(be)return be;if(e.showPasswordToggle)return"click"}),I=$(!1),w=D(()=>{const{textDecoration:be}=e;return be?Array.isArray(be)?be.map(Pe=>({textDecoration:Pe})):[{textDecoration:be}]:["",""]}),Q=$(void 0),U=()=>{var be,Pe;if(e.type==="textarea"){const{autosize:it}=e;if(it&&(Q.value=(Pe=(be=p.value)===null||be===void 0?void 0:be.$el)===null||Pe===void 0?void 0:Pe.offsetWidth),!l.value||typeof it=="boolean")return;const{paddingTop:wt,paddingBottom:Ot,lineHeight:$t}=window.getComputedStyle(l.value),Yt=Number(wt.slice(0,-2)),no=Number(Ot.slice(0,-2)),Fn=Number($t.slice(0,-2)),{value:nr}=s;if(!nr)return;if(it.minRows){const rr=Math.max(it.minRows,1),di=`${Yt+no+Fn*rr}px`;nr.style.minHeight=di}if(it.maxRows){const rr=`${Yt+no+Fn*it.maxRows}px`;nr.style.maxHeight=rr}}},X=D(()=>{const{maxlength:be}=e;return be===void 0?void 0:Number(be)});ut(()=>{const{value:be}=x;Array.isArray(be)||yt(be)});const re=xr().proxy;function he(be,Pe){const{onUpdateValue:it,"onUpdate:value":wt,onInput:Ot}=e,{nTriggerFormInput:$t}=E;it&&Re(it,be,Pe),wt&&Re(wt,be,Pe),Ot&&Re(Ot,be,Pe),v.value=be,$t()}function Se(be,Pe){const{onChange:it}=e,{nTriggerFormChange:wt}=E;it&&Re(it,be,Pe),v.value=be,wt()}function pe(be){const{onBlur:Pe}=e,{nTriggerFormBlur:it}=E;Pe&&Re(Pe,be),it()}function fe(be){const{onFocus:Pe}=e,{nTriggerFormFocus:it}=E;Pe&&Re(Pe,be),it()}function we(be){const{onClear:Pe}=e;Pe&&Re(Pe,be)}function J(be){const{onInputBlur:Pe}=e;Pe&&Re(Pe,be)}function G(be){const{onInputFocus:Pe}=e;Pe&&Re(Pe,be)}function Te(){const{onDeactivate:be}=e;be&&Re(be)}function Ne(){const{onActivate:be}=e;be&&Re(be)}function H(be){const{onClick:Pe}=e;Pe&&Re(Pe,be)}function oe(be){const{onWrapperFocus:Pe}=e;Pe&&Re(Pe,be)}function ge(be){const{onWrapperBlur:Pe}=e;Pe&&Re(Pe,be)}function Ce(){z.value=!0}function se(be){z.value=!1,be.target===c.value?ie(be,1):ie(be,0)}function ie(be,Pe=0,it="input"){const wt=be.target.value;if(yt(wt),be instanceof InputEvent&&!be.isComposing&&(z.value=!1),e.type==="textarea"){const{value:$t}=p;$t&&$t.syncUnifiedContainer()}if(j=wt,z.value)return;f.recordCursor();const Ot=ce(wt);if(Ot)if(!e.pair)it==="input"?he(wt,{source:Pe}):Se(wt,{source:Pe});else{let{value:$t}=x;Array.isArray($t)?$t=[$t[0],$t[1]]:$t=["",""],$t[Pe]=wt,it==="input"?he($t,{source:Pe}):Se($t,{source:Pe})}re.$forceUpdate(),Ot||Mt(f.restoreCursor)}function ce(be){const{countGraphemes:Pe,maxlength:it,minlength:wt}=e;if(Pe){let $t;if(it!==void 0&&($t===void 0&&($t=Pe(be)),$t>Number(it))||wt!==void 0&&($t===void 0&&($t=Pe(be)),$t{wt.preventDefault(),xt("mouseup",document,Pe)};if(Ct("mouseup",document,Pe),R.value!=="mousedown")return;I.value=!0;const it=()=>{I.value=!1,xt("mouseup",document,it)};Ct("mouseup",document,it)}function Le(be){e.onKeyup&&Re(e.onKeyup,be)}function tt(be){switch(e.onKeydown&&Re(e.onKeydown,be),be.key){case"Escape":me();break;case"Enter":te(be);break}}function te(be){var Pe,it;if(e.passivelyActivated){const{value:wt}=B;if(wt){e.internalDeactivateOnEnter&&me();return}be.preventDefault(),e.type==="textarea"?(Pe=l.value)===null||Pe===void 0||Pe.focus():(it=d.value)===null||it===void 0||it.focus()}}function me(){e.passivelyActivated&&(B.value=!1,Mt(()=>{var be;(be=a.value)===null||be===void 0||be.focus()}))}function ze(){var be,Pe,it;k.value||(e.passivelyActivated?(be=a.value)===null||be===void 0||be.focus():((Pe=l.value)===null||Pe===void 0||Pe.focus(),(it=d.value)===null||it===void 0||it.focus()))}function He(){var be;!((be=a.value)===null||be===void 0)&&be.contains(document.activeElement)&&document.activeElement.blur()}function je(){var be,Pe;(be=l.value)===null||be===void 0||be.select(),(Pe=d.value)===null||Pe===void 0||Pe.select()}function Ge(){k.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ze(){const{value:be}=a;be!=null&&be.contains(document.activeElement)&&be!==document.activeElement&&me()}function ot(be){if(e.type==="textarea"){const{value:Pe}=l;Pe==null||Pe.scrollTo(be)}else{const{value:Pe}=d;Pe==null||Pe.scrollTo(be)}}function yt(be){const{type:Pe,pair:it,autosize:wt}=e;if(!it&&wt)if(Pe==="textarea"){const{value:Ot}=s;Ot&&(Ot.textContent=`${be??""}\r -`)}else{const{value:Ot}=u;Ot&&(be?Ot.textContent=be:Ot.innerHTML=" ")}}function Bt(){U()}const kt=$({top:"0"});function xo(be){var Pe;const{scrollTop:it}=be.target;kt.value.top=`${-it}px`,(Pe=p.value)===null||Pe===void 0||Pe.syncUnifiedContainer()}let Po=null;Et(()=>{const{autosize:be,type:Pe}=e;be&&Pe==="textarea"?Po=lt(x,it=>{!Array.isArray(it)&&it!==j&&yt(it)}):Po==null||Po()});let Ao=null;Et(()=>{e.type==="textarea"?Ao=lt(x,be=>{var Pe;!Array.isArray(be)&&be!==j&&((Pe=p.value)===null||Pe===void 0||Pe.syncUnifiedContainer())}):Ao==null||Ao()}),et(T7,{mergedValueRef:x,maxlengthRef:X,mergedClsPrefixRef:t,countGraphemesRef:Ae(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:z,clear:Ke,focus:ze,blur:He,select:je,deactivate:Ze,activate:Ge,scrollTo:ot},Vo=Vt("Input",r,t),un=D(()=>{const{value:be}=C,{common:{cubicBezierEaseInOut:Pe},self:{color:it,borderRadius:wt,textColor:Ot,caretColor:$t,caretColorError:Yt,caretColorWarning:no,textDecorationColor:Fn,border:nr,borderDisabled:rr,borderHover:di,borderFocus:Ja,placeholderColor:el,placeholderColorDisabled:tl,lineHeightTextarea:ol,colorDisabled:Mr,colorFocus:Rr,textColorDisabled:ic,boxShadowFocus:ac,iconSize:lc,colorFocusWarning:sc,boxShadowFocusWarning:uc,borderWarning:dc,borderFocusWarning:cc,borderHoverWarning:fc,colorFocusError:hc,boxShadowFocusError:pc,borderError:mc,borderFocusError:gc,borderHoverError:fb,clearSize:hb,clearColor:pb,clearColorHover:mb,clearColorPressed:gb,iconColor:vb,iconColorDisabled:bb,suffixTextColor:xb,countTextColor:yb,countTextColorDisabled:Cb,iconColorHover:wb,iconColorPressed:Sb,loadingColor:Fb,loadingColorError:Eb,loadingColorWarning:kb,[Ee("padding",be)]:_b,[Ee("fontSize",be)]:Mb,[Ee("height",be)]:Rb}}=i.value,{left:zb,right:$b}=Mo(_b);return{"--n-bezier":Pe,"--n-count-text-color":yb,"--n-count-text-color-disabled":Cb,"--n-color":it,"--n-font-size":Mb,"--n-border-radius":wt,"--n-height":Rb,"--n-padding-left":zb,"--n-padding-right":$b,"--n-text-color":Ot,"--n-caret-color":$t,"--n-text-decoration-color":Fn,"--n-border":nr,"--n-border-disabled":rr,"--n-border-hover":di,"--n-border-focus":Ja,"--n-placeholder-color":el,"--n-placeholder-color-disabled":tl,"--n-icon-size":lc,"--n-line-height-textarea":ol,"--n-color-disabled":Mr,"--n-color-focus":Rr,"--n-text-color-disabled":ic,"--n-box-shadow-focus":ac,"--n-loading-color":Fb,"--n-caret-color-warning":no,"--n-color-focus-warning":sc,"--n-box-shadow-focus-warning":uc,"--n-border-warning":dc,"--n-border-focus-warning":cc,"--n-border-hover-warning":fc,"--n-loading-color-warning":kb,"--n-caret-color-error":Yt,"--n-color-focus-error":hc,"--n-box-shadow-focus-error":pc,"--n-border-error":mc,"--n-border-focus-error":gc,"--n-border-hover-error":fb,"--n-loading-color-error":Eb,"--n-clear-color":pb,"--n-clear-size":hb,"--n-clear-color-hover":mb,"--n-clear-color-pressed":gb,"--n-icon-color":vb,"--n-icon-color-hover":wb,"--n-icon-color-pressed":Sb,"--n-icon-color-disabled":bb,"--n-suffix-text-color":xb}}),dn=n?gt("input",D(()=>{const{value:be}=C;return be[0]}),un,e):void 0;return Object.assign(Object.assign({},No),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:u,inputEl2Ref:c,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Vo,uncontrolledValue:v,mergedValue:x,passwordVisible:I,mergedPlaceholder:V,showPlaceholder1:K,showPlaceholder2:N,mergedFocus:T,isComposing:z,activated:B,showClearButton:L,mergedSize:C,mergedDisabled:k,textDecorationStyle:w,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:R,placeholderStyle:kt,mergedStatus:_,textAreaScrollContainerWidth:Q,handleTextAreaScroll:xo,handleCompositionStart:Ce,handleCompositionEnd:se,handleInput:ie,handleInputBlur:ne,handleInputFocus:ae,handleWrapperBlur:de,handleWrapperFocus:le,handleMouseEnter:st,handleMouseLeave:Ye,handleMouseDown:Je,handleChange:ue,handleClick:ve,handleClear:Be,handlePasswordToggleClick:pt,handlePasswordToggleMousedown:Qe,handleWrapperKeydown:tt,handleWrapperKeyup:Le,handleTextAreaMirrorResize:Bt,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:n?void 0:un,themeClass:dn==null?void 0:dn.themeClass,onRender:dn==null?void 0:dn.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:n,themeClass:r,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),m("div",{ref:"wrapperElRef",class:[`${o}-input`,r,n&&`${o}-input--${n}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:i==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&i!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},m("div",{class:`${o}-input-wrapper`},bt(s.prefix,u=>u&&m("div",{class:`${o}-input__prefix`},u)),i==="textarea"?m(or,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var u,d;const{textAreaScrollContainerWidth:c}=this,h={width:this.autosize&&c&&`${c}px`};return m(ft,null,m("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(u=this.inputProps)===null||u===void 0?void 0:u.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?m(Rn,{onResize:this.handleTextAreaMirrorResize},{default:()=>m("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):m("div",{class:`${o}-input__input`},m("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,0)},onInput:u=>{this.handleInput(u,0)},onChange:u=>{this.handleChange(u,0)}})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[0])):null,this.autosize?m("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&bt(s.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[bt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(p1,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var c,h;return(h=(c=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(c)}})),this.internalLoadingBeforeSuffix?null:u,this.loading!==void 0?m(k7,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?m(Yf,null,{default:d=>{var c;return(c=s.count)===null||c===void 0?void 0:c.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?m("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?wo(s["password-visible-icon"],()=>[m(Kt,{clsPrefix:o},{default:()=>m(Pz,null)})]):wo(s["password-invisible-icon"],()=>[m(Kt,{clsPrefix:o},{default:()=>m(Az,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},wo(s.separator,()=>[this.separator])):null,this.pair?m("div",{class:`${o}-input-wrapper`},m("div",{class:`${o}-input__input`},m("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,1)},onInput:u=>{this.handleInput(u,1)},onChange:u=>{this.handleChange(u,1)}}),this.showPlaceholder2?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[1])):null),bt(s.suffix,u=>(this.clearable||u)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(p1,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),u]))):null,this.mergedBordered?m("div",{class:`${o}-input__border`}):null,this.mergedBordered?m("div",{class:`${o}-input__state-border`}):null,this.showCount&&i==="textarea"?m(Yf,null,{default:u=>{var d;const{renderCount:c}=this;return c?c(u):(d=s.count)===null||d===void 0?void 0:d.call(s,u)}}):null)}}),hP=A("input-group",` + `)])]),fP=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),rn=ye({name:"Input",props:fP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Input","-input",dP,Xo,e,t);B7&&Er("-input-safari",cP,t);const a=$(null),l=$(null),s=$(null),u=$(null),d=$(null),c=$(null),h=$(null),f=uP(h),p=$(null),{localeRef:g}=Fr("Input"),v=$(e.defaultValue),b=Ae(e,"value"),x=oo(b,v),E=Bn(e),{mergedSizeRef:w,mergedDisabledRef:k,mergedStatusRef:_}=E,F=$(!1),P=$(!1),z=$(!1),A=$(!1);let G=null;const H=D(()=>{const{placeholder:be,pair:Pe}=e;return Pe?Array.isArray(be)?be:be===void 0?["",""]:[be,be]:be===void 0?[g.value.placeholder]:[be]}),X=D(()=>{const{value:be}=z,{value:Pe}=x,{value:it}=H;return!be&&(cu(Pe)||Array.isArray(Pe)&&cu(Pe[0]))&&it[0]}),N=D(()=>{const{value:be}=z,{value:Pe}=x,{value:it}=H;return!be&&it[1]&&(cu(Pe)||Array.isArray(Pe)&&cu(Pe[1]))}),T=vt(()=>e.internalForceFocus||F.value),O=vt(()=>{if(k.value||e.readonly||!e.clearable||!T.value&&!P.value)return!1;const{value:be}=x,{value:Pe}=T;return e.pair?!!(Array.isArray(be)&&(be[0]||be[1]))&&(P.value||Pe):!!be&&(P.value||Pe)}),R=D(()=>{const{showPasswordOn:be}=e;if(be)return be;if(e.showPasswordToggle)return"click"}),L=$(!1),ne=D(()=>{const{textDecoration:be}=e;return be?Array.isArray(be)?be.map(Pe=>({textDecoration:Pe})):[{textDecoration:be}]:["",""]}),y=$(void 0),K=()=>{var be,Pe;if(e.type==="textarea"){const{autosize:it}=e;if(it&&(y.value=(Pe=(be=p.value)===null||be===void 0?void 0:be.$el)===null||Pe===void 0?void 0:Pe.offsetWidth),!l.value||typeof it=="boolean")return;const{paddingTop:St,paddingBottom:Ot,lineHeight:$t}=window.getComputedStyle(l.value),Yt=Number(St.slice(0,-2)),no=Number(Ot.slice(0,-2)),Fn=Number($t.slice(0,-2)),{value:nr}=s;if(!nr)return;if(it.minRows){const rr=Math.max(it.minRows,1),di=`${Yt+no+Fn*rr}px`;nr.style.minHeight=di}if(it.maxRows){const rr=`${Yt+no+Fn*it.maxRows}px`;nr.style.maxHeight=rr}}},U=D(()=>{const{maxlength:be}=e;return be===void 0?void 0:Number(be)});ut(()=>{const{value:be}=x;Array.isArray(be)||yt(be)});const ue=xr().proxy;function se(be,Pe){const{onUpdateValue:it,"onUpdate:value":St,onInput:Ot}=e,{nTriggerFormInput:$t}=E;it&&Re(it,be,Pe),St&&Re(St,be,Pe),Ot&&Re(Ot,be,Pe),v.value=be,$t()}function Fe(be,Pe){const{onChange:it}=e,{nTriggerFormChange:St}=E;it&&Re(it,be,Pe),v.value=be,St()}function pe(be){const{onBlur:Pe}=e,{nTriggerFormBlur:it}=E;Pe&&Re(Pe,be),it()}function fe(be){const{onFocus:Pe}=e,{nTriggerFormFocus:it}=E;Pe&&Re(Pe,be),it()}function Ce(be){const{onClear:Pe}=e;Pe&&Re(Pe,be)}function ee(be){const{onInputBlur:Pe}=e;Pe&&Re(Pe,be)}function q(be){const{onInputFocus:Pe}=e;Pe&&Re(Pe,be)}function Te(){const{onDeactivate:be}=e;be&&Re(be)}function Ne(){const{onActivate:be}=e;be&&Re(be)}function j(be){const{onClick:Pe}=e;Pe&&Re(Pe,be)}function V(be){const{onWrapperFocus:Pe}=e;Pe&&Re(Pe,be)}function ge(be){const{onWrapperBlur:Pe}=e;Pe&&Re(Pe,be)}function we(){z.value=!0}function le(be){z.value=!1,be.target===c.value?re(be,1):re(be,0)}function re(be,Pe=0,it="input"){const St=be.target.value;if(yt(St),be instanceof InputEvent&&!be.isComposing&&(z.value=!1),e.type==="textarea"){const{value:$t}=p;$t&&$t.syncUnifiedContainer()}if(G=St,z.value)return;f.recordCursor();const Ot=he(St);if(Ot)if(!e.pair)it==="input"?se(St,{source:Pe}):Fe(St,{source:Pe});else{let{value:$t}=x;Array.isArray($t)?$t=[$t[0],$t[1]]:$t=["",""],$t[Pe]=St,it==="input"?se($t,{source:Pe}):Fe($t,{source:Pe})}ue.$forceUpdate(),Ot||Mt(f.restoreCursor)}function he(be){const{countGraphemes:Pe,maxlength:it,minlength:St}=e;if(Pe){let $t;if(it!==void 0&&($t===void 0&&($t=Pe(be)),$t>Number(it))||St!==void 0&&($t===void 0&&($t=Pe(be)),$t{St.preventDefault(),xt("mouseup",document,Pe)};if(wt("mouseup",document,Pe),R.value!=="mousedown")return;L.value=!0;const it=()=>{L.value=!1,xt("mouseup",document,it)};wt("mouseup",document,it)}function Le(be){e.onKeyup&&Re(e.onKeyup,be)}function ot(be){switch(e.onKeydown&&Re(e.onKeydown,be),be.key){case"Escape":me();break;case"Enter":te(be);break}}function te(be){var Pe,it;if(e.passivelyActivated){const{value:St}=A;if(St){e.internalDeactivateOnEnter&&me();return}be.preventDefault(),e.type==="textarea"?(Pe=l.value)===null||Pe===void 0||Pe.focus():(it=d.value)===null||it===void 0||it.focus()}}function me(){e.passivelyActivated&&(A.value=!1,Mt(()=>{var be;(be=a.value)===null||be===void 0||be.focus()}))}function ze(){var be,Pe,it;k.value||(e.passivelyActivated?(be=a.value)===null||be===void 0||be.focus():((Pe=l.value)===null||Pe===void 0||Pe.focus(),(it=d.value)===null||it===void 0||it.focus()))}function He(){var be;!((be=a.value)===null||be===void 0)&&be.contains(document.activeElement)&&document.activeElement.blur()}function je(){var be,Pe;(be=l.value)===null||be===void 0||be.select(),(Pe=d.value)===null||Pe===void 0||Pe.select()}function qe(){k.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ze(){const{value:be}=a;be!=null&&be.contains(document.activeElement)&&be!==document.activeElement&&me()}function nt(be){if(e.type==="textarea"){const{value:Pe}=l;Pe==null||Pe.scrollTo(be)}else{const{value:Pe}=d;Pe==null||Pe.scrollTo(be)}}function yt(be){const{type:Pe,pair:it,autosize:St}=e;if(!it&&St)if(Pe==="textarea"){const{value:Ot}=s;Ot&&(Ot.textContent=`${be??""}\r +`)}else{const{value:Ot}=u;Ot&&(be?Ot.textContent=be:Ot.innerHTML=" ")}}function Bt(){K()}const kt=$({top:"0"});function xo(be){var Pe;const{scrollTop:it}=be.target;kt.value.top=`${-it}px`,(Pe=p.value)===null||Pe===void 0||Pe.syncUnifiedContainer()}let Po=null;Et(()=>{const{autosize:be,type:Pe}=e;be&&Pe==="textarea"?Po=lt(x,it=>{!Array.isArray(it)&&it!==G&&yt(it)}):Po==null||Po()});let Ao=null;Et(()=>{e.type==="textarea"?Ao=lt(x,be=>{var Pe;!Array.isArray(be)&&be!==G&&((Pe=p.value)===null||Pe===void 0||Pe.syncUnifiedContainer())}):Ao==null||Ao()}),tt(T7,{mergedValueRef:x,maxlengthRef:U,mergedClsPrefixRef:t,countGraphemesRef:Ae(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:z,clear:Ge,focus:ze,blur:He,select:je,deactivate:Ze,activate:qe,scrollTo:nt},Vo=Wt("Input",r,t),un=D(()=>{const{value:be}=w,{common:{cubicBezierEaseInOut:Pe},self:{color:it,borderRadius:St,textColor:Ot,caretColor:$t,caretColorError:Yt,caretColorWarning:no,textDecorationColor:Fn,border:nr,borderDisabled:rr,borderHover:di,borderFocus:Ja,placeholderColor:el,placeholderColorDisabled:tl,lineHeightTextarea:ol,colorDisabled:Mr,colorFocus:Rr,textColorDisabled:ic,boxShadowFocus:ac,iconSize:lc,colorFocusWarning:sc,boxShadowFocusWarning:uc,borderWarning:dc,borderFocusWarning:cc,borderHoverWarning:fc,colorFocusError:hc,boxShadowFocusError:pc,borderError:mc,borderFocusError:gc,borderHoverError:fb,clearSize:hb,clearColor:pb,clearColorHover:mb,clearColorPressed:gb,iconColor:vb,iconColorDisabled:bb,suffixTextColor:xb,countTextColor:yb,countTextColorDisabled:Cb,iconColorHover:wb,iconColorPressed:Sb,loadingColor:Fb,loadingColorError:Eb,loadingColorWarning:kb,[Ee("padding",be)]:_b,[Ee("fontSize",be)]:Mb,[Ee("height",be)]:Rb}}=i.value,{left:zb,right:$b}=Mo(_b);return{"--n-bezier":Pe,"--n-count-text-color":yb,"--n-count-text-color-disabled":Cb,"--n-color":it,"--n-font-size":Mb,"--n-border-radius":St,"--n-height":Rb,"--n-padding-left":zb,"--n-padding-right":$b,"--n-text-color":Ot,"--n-caret-color":$t,"--n-text-decoration-color":Fn,"--n-border":nr,"--n-border-disabled":rr,"--n-border-hover":di,"--n-border-focus":Ja,"--n-placeholder-color":el,"--n-placeholder-color-disabled":tl,"--n-icon-size":lc,"--n-line-height-textarea":ol,"--n-color-disabled":Mr,"--n-color-focus":Rr,"--n-text-color-disabled":ic,"--n-box-shadow-focus":ac,"--n-loading-color":Fb,"--n-caret-color-warning":no,"--n-color-focus-warning":sc,"--n-box-shadow-focus-warning":uc,"--n-border-warning":dc,"--n-border-focus-warning":cc,"--n-border-hover-warning":fc,"--n-loading-color-warning":kb,"--n-caret-color-error":Yt,"--n-color-focus-error":hc,"--n-box-shadow-focus-error":pc,"--n-border-error":mc,"--n-border-focus-error":gc,"--n-border-hover-error":fb,"--n-loading-color-error":Eb,"--n-clear-color":pb,"--n-clear-size":hb,"--n-clear-color-hover":mb,"--n-clear-color-pressed":gb,"--n-icon-color":vb,"--n-icon-color-hover":wb,"--n-icon-color-pressed":Sb,"--n-icon-color-disabled":bb,"--n-suffix-text-color":xb}}),dn=n?gt("input",D(()=>{const{value:be}=w;return be[0]}),un,e):void 0;return Object.assign(Object.assign({},No),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:u,inputEl2Ref:c,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Vo,uncontrolledValue:v,mergedValue:x,passwordVisible:L,mergedPlaceholder:H,showPlaceholder1:X,showPlaceholder2:N,mergedFocus:T,isComposing:z,activated:A,showClearButton:O,mergedSize:w,mergedDisabled:k,textDecorationStyle:ne,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:R,placeholderStyle:kt,mergedStatus:_,textAreaScrollContainerWidth:y,handleTextAreaScroll:xo,handleCompositionStart:we,handleCompositionEnd:le,handleInput:re,handleInputBlur:oe,handleInputFocus:ie,handleWrapperBlur:ce,handleWrapperFocus:ae,handleMouseEnter:st,handleMouseLeave:Ye,handleMouseDown:et,handleChange:de,handleClick:ve,handleClear:Be,handlePasswordToggleClick:pt,handlePasswordToggleMousedown:Qe,handleWrapperKeydown:ot,handleWrapperKeyup:Le,handleTextAreaMirrorResize:Bt,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:n?void 0:un,themeClass:dn==null?void 0:dn.themeClass,onRender:dn==null?void 0:dn.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:n,themeClass:r,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),m("div",{ref:"wrapperElRef",class:[`${o}-input`,r,n&&`${o}-input--${n}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:i==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&i!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},m("div",{class:`${o}-input-wrapper`},bt(s.prefix,u=>u&&m("div",{class:`${o}-input__prefix`},u)),i==="textarea"?m(or,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var u,d;const{textAreaScrollContainerWidth:c}=this,h={width:this.autosize&&c&&`${c}px`};return m(ft,null,m("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(u=this.inputProps)===null||u===void 0?void 0:u.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?m(Rn,{onResize:this.handleTextAreaMirrorResize},{default:()=>m("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):m("div",{class:`${o}-input__input`},m("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,0)},onInput:u=>{this.handleInput(u,0)},onChange:u=>{this.handleChange(u,0)}})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[0])):null,this.autosize?m("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&bt(s.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[bt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(p1,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var c,h;return(h=(c=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(c)}})),this.internalLoadingBeforeSuffix?null:u,this.loading!==void 0?m(k7,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?m(Yf,null,{default:d=>{var c;return(c=s.count)===null||c===void 0?void 0:c.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?m("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?wo(s["password-visible-icon"],()=>[m(Gt,{clsPrefix:o},{default:()=>m(Pz,null)})]):wo(s["password-invisible-icon"],()=>[m(Gt,{clsPrefix:o},{default:()=>m(Az,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},wo(s.separator,()=>[this.separator])):null,this.pair?m("div",{class:`${o}-input-wrapper`},m("div",{class:`${o}-input__input`},m("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,1)},onInput:u=>{this.handleInput(u,1)},onChange:u=>{this.handleChange(u,1)}}),this.showPlaceholder2?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[1])):null),bt(s.suffix,u=>(this.clearable||u)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(p1,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),u]))):null,this.mergedBordered?m("div",{class:`${o}-input__border`}):null,this.mergedBordered?m("div",{class:`${o}-input__state-border`}):null,this.showCount&&i==="textarea"?m(Yf,null,{default:u=>{var d;const{renderCount:c}=this;return c?c(u):(d=s.count)===null||d===void 0?void 0:d.call(s,u)}}):null)}}),hP=B("input-group",` display: inline-flex; width: 100%; flex-wrap: nowrap; vertical-align: bottom; -`,[W(">",[A("input",[W("&:not(:last-child)",` +`,[W(">",[B("input",[W("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),W("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; margin-left: -1px!important; - `)]),A("button",[W("&:not(:last-child)",` + `)]),B("button",[W("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `,[q("state-border, border",` + `,[Y("state-border, border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `)]),W("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `,[q("state-border, border",` + `,[Y("state-border, border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `)])]),W("*",[W("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `,[W(">",[A("input",` + `,[W(">",[B("input",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),A("base-selection",[A("base-selection-label",` + `),B("base-selection",[B("base-selection-label",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),A("base-selection-tags",` + `),B("base-selection-tags",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),q("box-shadow, border, state-border",` + `),Y("box-shadow, border, state-border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `)])])]),W("&:not(:first-child)",` margin-left: -1px!important; border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `,[W(">",[A("input",` + `,[W(">",[B("input",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),A("base-selection",[A("base-selection-label",` + `),B("base-selection",[B("base-selection-label",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),A("base-selection-tags",` + `),B("base-selection-tags",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),q("box-shadow, border, state-border",` + `),Y("box-shadow, border, state-border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `)])])])])])]),pP={},I7=ye({name:"InputGroup",props:pP,setup(e){const{mergedClsPrefixRef:t}=rt(e);return Er("-input-group",hP,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return m("div",{class:`${e}-input-group`},this.$slots)}}),mP=A("input-group-label",` + `)])])])])])]),pP={},I7=ye({name:"InputGroup",props:pP,setup(e){const{mergedClsPrefixRef:t}=rt(e);return Er("-input-group",hP,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return m("div",{class:`${e}-input-group`},this.$slots)}}),mP=B("input-group-label",` position: relative; user-select: none; -webkit-user-select: none; @@ -1206,7 +1206,7 @@ ${t} color .3s var(--n-bezier), background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); -`,[q("border",` +`,[Y("border",` position: absolute; left: 0; right: 0; @@ -1215,7 +1215,7 @@ ${t} border-radius: inherit; border: var(--n-group-label-border); transition: border-color .3s var(--n-bezier); - `)]),gP=Object.assign(Object.assign({},Ie.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),vP=ye({name:"InputGroupLabel",props:gP,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("Input","-input-group-label",mP,Xo,e,o),i=D(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:u,borderRadius:d,groupLabelTextColor:c,lineHeight:h,groupLabelBorder:f,[Ee("fontSize",l)]:p,[Ee("height",l)]:g}}=r.value;return{"--n-bezier":s,"--n-group-label-color":u,"--n-group-label-border":f,"--n-border-radius":d,"--n-group-label-text-color":c,"--n-font-size":p,"--n-line-height":h,"--n-height":g}}),a=n?gt("input-group-label",D(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:n?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,o;const{mergedClsPrefix:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${n}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?m("div",{class:`${n}-input-group-label__border`}):null)}});function O7(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const bP={name:"AutoComplete",common:We,peers:{InternalSelectMenu:Ka,Input:Xo},self:O7},xP={name:"AutoComplete",common:Ve,peers:{InternalSelectMenu:Is,Input:Sn},self:O7},yP=wn&&"loading"in document.createElement("img");function CP(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const Xc=new WeakMap,Yc=new WeakMap,Qc=new WeakMap,wP=(e,t,o)=>{if(!e)return()=>{};const n=CP(t),{root:r}=n.options;let i;const a=Xc.get(r);a?i=a:(i=new Map,Xc.set(r,i));let l,s;i.has(n.hash)?(s=i.get(n.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(c=>{c.forEach(h=>{if(h.isIntersecting){const f=Yc.get(h.target),p=Qc.get(h.target);f&&f(),p&&(p.value=!0)}})},n.options),l.observe(e),s=[l,new Set([e])],i.set(n.hash,s));let u=!1;const d=()=>{u||(Yc.delete(e),Qc.delete(e),u=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(n.hash),i.size||Xc.delete(r))};return Yc.set(e,d),Qc.set(e,o),d};function L7(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,modalColor:d,popoverColor:c}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,color:Ue(n,o),colorModal:Ue(d,o),colorPopover:Ue(c,o)}}const V3={name:"Avatar",common:We,self:L7},H7={name:"Avatar",common:Ve,self:L7},SP="n-avatar-group",FP=A("avatar",` + `)]),gP=Object.assign(Object.assign({},Ie.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),vP=ye({name:"InputGroupLabel",props:gP,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("Input","-input-group-label",mP,Xo,e,o),i=D(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:u,borderRadius:d,groupLabelTextColor:c,lineHeight:h,groupLabelBorder:f,[Ee("fontSize",l)]:p,[Ee("height",l)]:g}}=r.value;return{"--n-bezier":s,"--n-group-label-color":u,"--n-group-label-border":f,"--n-border-radius":d,"--n-group-label-text-color":c,"--n-font-size":p,"--n-line-height":h,"--n-height":g}}),a=n?gt("input-group-label",D(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:n?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,o;const{mergedClsPrefix:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${n}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?m("div",{class:`${n}-input-group-label__border`}):null)}});function O7(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const bP={name:"AutoComplete",common:We,peers:{InternalSelectMenu:Ka,Input:Xo},self:O7},xP={name:"AutoComplete",common:Ve,peers:{InternalSelectMenu:Is,Input:Sn},self:O7},yP=wn&&"loading"in document.createElement("img");function CP(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const Xc=new WeakMap,Yc=new WeakMap,Qc=new WeakMap,wP=(e,t,o)=>{if(!e)return()=>{};const n=CP(t),{root:r}=n.options;let i;const a=Xc.get(r);a?i=a:(i=new Map,Xc.set(r,i));let l,s;i.has(n.hash)?(s=i.get(n.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(c=>{c.forEach(h=>{if(h.isIntersecting){const f=Yc.get(h.target),p=Qc.get(h.target);f&&f(),p&&(p.value=!0)}})},n.options),l.observe(e),s=[l,new Set([e])],i.set(n.hash,s));let u=!1;const d=()=>{u||(Yc.delete(e),Qc.delete(e),u=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(n.hash),i.size||Xc.delete(r))};return Yc.set(e,d),Qc.set(e,o),d};function L7(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,modalColor:d,popoverColor:c}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,color:Ue(n,o),colorModal:Ue(d,o),colorPopover:Ue(c,o)}}const V3={name:"Avatar",common:We,self:L7},H7={name:"Avatar",common:Ve,self:L7},SP="n-avatar-group",FP=B("avatar",` width: var(--n-merged-size); height: var(--n-merged-size); color: #FFF; @@ -1235,28 +1235,28 @@ ${t} `,[qi(W("&","--n-merged-color: var(--n-color-modal);")),Ha(W("&","--n-merged-color: var(--n-color-popover);")),W("img",` width: 100%; height: 100%; - `),q("text",` + `),Y("text",` white-space: nowrap; display: inline-block; position: absolute; left: 50%; top: 50%; - `),A("icon",` + `),B("icon",` vertical-align: bottom; font-size: calc(var(--n-merged-size) - 6px); - `),q("text","line-height: 1.25")]),EP=Object.assign(Object.assign({},Ie.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),kP=ye({name:"Avatar",props:EP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=$(!1);let r=null;const i=$(null),a=$(null),l=()=>{const{value:x}=i;if(x&&(r===null||r!==x.innerHTML)){r=x.innerHTML;const{value:E}=a;if(E){const{offsetWidth:C,offsetHeight:k}=E,{offsetWidth:_,offsetHeight:F}=x,P=.9,z=Math.min(C/_*P,k/F*P,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${z})`}}},s=Oe(SP,null),u=D(()=>{const{size:x}=e;if(x)return x;const{size:E}=s||{};return E||"medium"}),d=Ie("Avatar","-avatar",FP,V3,e,t),c=Oe(E7,null),h=D(()=>{if(s)return!0;const{round:x,circle:E}=e;return x!==void 0||E!==void 0?x||E:c?c.roundRef.value:!1}),f=D(()=>s?!0:e.bordered||!1),p=D(()=>{const x=u.value,E=h.value,C=f.value,{color:k}=e,{self:{borderRadius:_,fontSize:F,color:P,border:z,colorModal:B,colorPopover:j},common:{cubicBezierEaseInOut:V}}=d.value;let K;return typeof x=="number"?K=`${x}px`:K=d.value.self[Ee("height",x)],{"--n-font-size":F,"--n-border":C?z:"none","--n-border-radius":E?"50%":_,"--n-color":k||P,"--n-color-modal":k||B,"--n-color-popover":k||j,"--n-bezier":V,"--n-merged-size":`var(--n-avatar-size-override, ${K})`}}),g=o?gt("avatar",D(()=>{const x=u.value,E=h.value,C=f.value,{color:k}=e;let _="";return x&&(typeof x=="number"?_+=`a${x}`:_+=x[0]),E&&(_+="b"),C&&(_+="c"),k&&(_+=$a(k)),_}),p,e):void 0,v=$(!e.lazy);ut(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const E=Et(()=>{x==null||x(),x=void 0,e.lazy&&(x=wP(a.value,e.intersectionObserverOptions,v))});Xt(()=>{E(),x==null||x()})}}),lt(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{n.value=!1});const b=$(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:v,loaded:b,mergedOnError:x=>{if(!v.value)return;n.value=!0;const{onError:E,imgProps:{onError:C}={}}=e;E==null||E(x),C==null||C(x)},mergedOnLoad:x=>{const{onLoad:E,imgProps:{onLoad:C}={}}=e;E==null||E(x),C==null||C(x),b.value=!0}}},render(){var e,t;const{$slots:o,src:n,mergedClsPrefix:r,lazy:i,onRender:a,loaded:l,hasLoadError:s,imgProps:u={}}=this;a==null||a();let d;const c=!l&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():wo(o.fallback,()=>[m("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=bt(o.default,h=>{if(h)return m(Rn,{onResize:this.fitTextTransform},{default:()=>m("span",{ref:"textRef",class:`${r}-avatar__text`},h)});if(n||u.src){const f=this.src||u.src;return m("img",Object.assign(Object.assign({},u),{loading:yP&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?f:void 0:f,"data-image-src":f,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[u.style||"",{objectFit:this.objectFit},c?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),m("span",{ref:"selfRef",class:[`${r}-avatar`,this.themeClass],style:this.cssVars},d,i&&c)}});function N7(){return{gap:"-12px"}}const _P={name:"AvatarGroup",common:We,peers:{Avatar:V3},self:N7},MP={name:"AvatarGroup",common:Ve,peers:{Avatar:H7},self:N7},V7={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},RP={name:"BackTop",common:Ve,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},V7),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};function zP(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},V7),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const $P={name:"BackTop",common:We,self:zP},PP={name:"Badge",common:Ve,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}};function AP(e){const{errorColor:t,infoColor:o,successColor:n,warningColor:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}const W7={name:"Badge",common:We,self:AP},BP=W([W("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),A("badge",` + `),Y("text","line-height: 1.25")]),EP=Object.assign(Object.assign({},Ie.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),kP=ye({name:"Avatar",props:EP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=$(!1);let r=null;const i=$(null),a=$(null),l=()=>{const{value:x}=i;if(x&&(r===null||r!==x.innerHTML)){r=x.innerHTML;const{value:E}=a;if(E){const{offsetWidth:w,offsetHeight:k}=E,{offsetWidth:_,offsetHeight:F}=x,P=.9,z=Math.min(w/_*P,k/F*P,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${z})`}}},s=Oe(SP,null),u=D(()=>{const{size:x}=e;if(x)return x;const{size:E}=s||{};return E||"medium"}),d=Ie("Avatar","-avatar",FP,V3,e,t),c=Oe(E7,null),h=D(()=>{if(s)return!0;const{round:x,circle:E}=e;return x!==void 0||E!==void 0?x||E:c?c.roundRef.value:!1}),f=D(()=>s?!0:e.bordered||!1),p=D(()=>{const x=u.value,E=h.value,w=f.value,{color:k}=e,{self:{borderRadius:_,fontSize:F,color:P,border:z,colorModal:A,colorPopover:G},common:{cubicBezierEaseInOut:H}}=d.value;let X;return typeof x=="number"?X=`${x}px`:X=d.value.self[Ee("height",x)],{"--n-font-size":F,"--n-border":w?z:"none","--n-border-radius":E?"50%":_,"--n-color":k||P,"--n-color-modal":k||A,"--n-color-popover":k||G,"--n-bezier":H,"--n-merged-size":`var(--n-avatar-size-override, ${X})`}}),g=o?gt("avatar",D(()=>{const x=u.value,E=h.value,w=f.value,{color:k}=e;let _="";return x&&(typeof x=="number"?_+=`a${x}`:_+=x[0]),E&&(_+="b"),w&&(_+="c"),k&&(_+=$a(k)),_}),p,e):void 0,v=$(!e.lazy);ut(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const E=Et(()=>{x==null||x(),x=void 0,e.lazy&&(x=wP(a.value,e.intersectionObserverOptions,v))});Xt(()=>{E(),x==null||x()})}}),lt(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{n.value=!1});const b=$(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:v,loaded:b,mergedOnError:x=>{if(!v.value)return;n.value=!0;const{onError:E,imgProps:{onError:w}={}}=e;E==null||E(x),w==null||w(x)},mergedOnLoad:x=>{const{onLoad:E,imgProps:{onLoad:w}={}}=e;E==null||E(x),w==null||w(x),b.value=!0}}},render(){var e,t;const{$slots:o,src:n,mergedClsPrefix:r,lazy:i,onRender:a,loaded:l,hasLoadError:s,imgProps:u={}}=this;a==null||a();let d;const c=!l&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():wo(o.fallback,()=>[m("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=bt(o.default,h=>{if(h)return m(Rn,{onResize:this.fitTextTransform},{default:()=>m("span",{ref:"textRef",class:`${r}-avatar__text`},h)});if(n||u.src){const f=this.src||u.src;return m("img",Object.assign(Object.assign({},u),{loading:yP&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?f:void 0:f,"data-image-src":f,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[u.style||"",{objectFit:this.objectFit},c?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),m("span",{ref:"selfRef",class:[`${r}-avatar`,this.themeClass],style:this.cssVars},d,i&&c)}});function N7(){return{gap:"-12px"}}const _P={name:"AvatarGroup",common:We,peers:{Avatar:V3},self:N7},MP={name:"AvatarGroup",common:Ve,peers:{Avatar:H7},self:N7},V7={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},RP={name:"BackTop",common:Ve,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},V7),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};function zP(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},V7),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const $P={name:"BackTop",common:We,self:zP},PP={name:"Badge",common:Ve,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}};function AP(e){const{errorColor:t,infoColor:o,successColor:n,warningColor:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}const W7={name:"Badge",common:We,self:AP},BP=W([W("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),B("badge",` display: inline-flex; position: relative; vertical-align: middle; font-family: var(--n-font-family); - `,[ee("as-is",[A("badge-sup",{position:"static",transform:"translateX(0)"},[Pn({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),ee("dot",[A("badge-sup",` + `,[J("as-is",[B("badge-sup",{position:"static",transform:"translateX(0)"},[Pn({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),J("dot",[B("badge-sup",` height: 8px; width: 8px; padding: 0; min-width: 8px; left: 100%; bottom: calc(100% - 4px); - `,[W("::before","border-radius: 4px;")])]),A("badge-sup",` + `,[W("::before","border-radius: 4px;")])]),B("badge-sup",` background: var(--n-color); transition: background-color .3s var(--n-bezier), @@ -1276,7 +1276,7 @@ ${t} z-index: 2; display: flex; align-items: center; - `,[Pn({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),A("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),W("&::before",` + `,[Pn({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),B("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),W("&::before",` opacity: 0; transform: scale(1); border-radius: 9px; @@ -1286,7 +1286,7 @@ ${t} right: 0; top: 0; bottom: 0; - `)])])]),DP=Object.assign(Object.assign({},Ie.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),TP=ye({name:"Badge",props:DP,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Badge","-badge",BP,W7,e,o),a=$(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},u=D(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&Number(e.value)<=0)||!Ai(t.value)));ut(()=>{u.value&&(a.value=!0)});const d=Vt("Badge",r,o),c=D(()=>{const{type:p,color:g}=e,{common:{cubicBezierEaseInOut:v,cubicBezierEaseOut:b},self:{[Ee("color",p)]:x,fontFamily:E,fontSize:C}}=i.value;return{"--n-font-size":C,"--n-font-family":E,"--n-color":g||x,"--n-ripple-color":g||x,"--n-bezier":v,"--n-ripple-bezier":b}}),h=n?gt("badge",D(()=>{let p="";const{type:g,color:v}=e;return g&&(p+=g[0]),v&&(p+=$a(v)),p}),c,e):void 0,f=D(()=>{const{offset:p}=e;if(!p)return;const[g,v]=p,b=typeof g=="number"?`${g}px`:g,x=typeof v=="number"?`${v}px`:v;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${b}), ${x})`}});return{rtlEnabled:d,mergedClsPrefix:o,appeared:a,showBadge:u,handleAfterEnter:l,handleAfterLeave:s,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:f}},render(){var e;const{mergedClsPrefix:t,onRender:o,themeClass:n,$slots:r}=this;o==null||o();const i=(e=r.default)===null||e===void 0?void 0:e.call(r);return m("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,n,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,m(mo,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?m("sup",{class:`${t}-badge-sup`,title:q0(this.value),style:this.offsetStyle},wo(r.value,()=>[this.dot?null:m(G$,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?m(x7,{clsPrefix:t}):null):null}))}}),IP={fontWeightActive:"400"};function j7(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},IP),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const U7={name:"Breadcrumb",common:We,self:j7},OP={name:"Breadcrumb",common:Ve,self:j7},LP=A("breadcrumb",` + `)])])]),DP=Object.assign(Object.assign({},Ie.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),TP=ye({name:"Badge",props:DP,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Badge","-badge",BP,W7,e,o),a=$(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},u=D(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&Number(e.value)<=0)||!Ai(t.value)));ut(()=>{u.value&&(a.value=!0)});const d=Wt("Badge",r,o),c=D(()=>{const{type:p,color:g}=e,{common:{cubicBezierEaseInOut:v,cubicBezierEaseOut:b},self:{[Ee("color",p)]:x,fontFamily:E,fontSize:w}}=i.value;return{"--n-font-size":w,"--n-font-family":E,"--n-color":g||x,"--n-ripple-color":g||x,"--n-bezier":v,"--n-ripple-bezier":b}}),h=n?gt("badge",D(()=>{let p="";const{type:g,color:v}=e;return g&&(p+=g[0]),v&&(p+=$a(v)),p}),c,e):void 0,f=D(()=>{const{offset:p}=e;if(!p)return;const[g,v]=p,b=typeof g=="number"?`${g}px`:g,x=typeof v=="number"?`${v}px`:v;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${b}), ${x})`}});return{rtlEnabled:d,mergedClsPrefix:o,appeared:a,showBadge:u,handleAfterEnter:l,handleAfterLeave:s,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:f}},render(){var e;const{mergedClsPrefix:t,onRender:o,themeClass:n,$slots:r}=this;o==null||o();const i=(e=r.default)===null||e===void 0?void 0:e.call(r);return m("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,n,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,m(mo,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?m("sup",{class:`${t}-badge-sup`,title:q0(this.value),style:this.offsetStyle},wo(r.value,()=>[this.dot?null:m(G$,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?m(x7,{clsPrefix:t}):null):null}))}}),IP={fontWeightActive:"400"};function j7(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},IP),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const U7={name:"Breadcrumb",common:We,self:j7},OP={name:"Breadcrumb",common:Ve,self:j7},LP=B("breadcrumb",` white-space: nowrap; cursor: default; line-height: var(--n-item-line-height); @@ -1297,23 +1297,23 @@ ${t} `),W("a",` color: inherit; text-decoration: inherit; - `),A("breadcrumb-item",` + `),B("breadcrumb-item",` font-size: var(--n-font-size); transition: color .3s var(--n-bezier); display: inline-flex; align-items: center; - `,[A("icon",` + `,[B("icon",` font-size: 18px; vertical-align: -.2em; transition: color .3s var(--n-bezier); color: var(--n-item-text-color); - `),W("&:not(:last-child)",[ee("clickable",[q("link",` + `),W("&:not(:last-child)",[J("clickable",[Y("link",` cursor: pointer; `,[W("&:hover",` background-color: var(--n-item-color-hover); `),W("&:active",` background-color: var(--n-item-color-pressed); - `)])])]),q("link",` + `)])])]),Y("link",` padding: 4px; border-radius: var(--n-item-border-radius); transition: @@ -1323,27 +1323,27 @@ ${t} position: relative; `,[W("&:hover",` color: var(--n-item-text-color-hover); - `,[A("icon",` + `,[B("icon",` color: var(--n-item-text-color-hover); `)]),W("&:active",` color: var(--n-item-text-color-pressed); - `,[A("icon",` + `,[B("icon",` color: var(--n-item-text-color-pressed); - `)])]),q("separator",` + `)])]),Y("separator",` margin: 0 8px; color: var(--n-separator-color); transition: color .3s var(--n-bezier); user-select: none; -webkit-user-select: none; - `),W("&:last-child",[q("link",` + `),W("&:last-child",[Y("link",` font-weight: var(--n-font-weight-active); cursor: unset; color: var(--n-item-text-color-active); - `,[A("icon",` + `,[B("icon",` color: var(--n-item-text-color-active); - `)]),q("separator",` + `)]),Y("separator",` display: none; - `)])])]),K7="n-breadcrumb",HP=Object.assign(Object.assign({},Ie.props),{separator:{type:String,default:"/"}}),NP=ye({name:"Breadcrumb",props:HP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Breadcrumb","-breadcrumb",LP,U7,e,t);et(K7,{separatorRef:Ae(e,"separator"),mergedClsPrefixRef:t});const r=D(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:u,itemTextColorPressed:d,itemTextColorActive:c,fontSize:h,fontWeightActive:f,itemBorderRadius:p,itemColorHover:g,itemColorPressed:v,itemLineHeight:b}}=n.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":u,"--n-item-text-color-pressed":d,"--n-item-text-color-active":c,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":v,"--n-item-border-radius":p,"--n-font-weight-active":f,"--n-item-line-height":b}}),i=o?gt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},m("ul",null,this.$slots))}});function VP(e=wn?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}},o=$(t()),n=()=>{o.value=t()};return ut(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Go(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),o}const WP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},jP=ye({name:"BreadcrumbItem",props:WP,setup(e,{slots:t}){const o=Oe(K7,null);if(!o)return()=>null;const{separatorRef:n,mergedClsPrefixRef:r}=o,i=VP(),a=D(()=>e.href?"a":"span"),l=D(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=r;return m("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},m(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),m("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},wo(t.separator,()=>{var u;return[(u=e.separator)!==null&&u!==void 0?u:n.value]})))}}});function pi(e){return Ue(e,[255,255,255,.16])}function fu(e){return Ue(e,[0,0,0,.12])}const UP="n-button-group",KP={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function G7(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,textColor2:c,textColor3:h,primaryColorHover:f,primaryColorPressed:p,borderColor:g,primaryColor:v,baseColor:b,infoColor:x,infoColorHover:E,infoColorPressed:C,successColor:k,successColorHover:_,successColorPressed:F,warningColor:P,warningColorHover:z,warningColorPressed:B,errorColor:j,errorColorHover:V,errorColorPressed:K,fontWeight:N,buttonColor2:T,buttonColor2Hover:L,buttonColor2Pressed:R,fontWeightStrong:I}=e;return Object.assign(Object.assign({},KP),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:T,colorSecondaryHover:L,colorSecondaryPressed:R,colorTertiary:T,colorTertiaryHover:L,colorTertiaryPressed:R,colorQuaternary:"#0000",colorQuaternaryHover:L,colorQuaternaryPressed:R,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:c,textColorTertiary:h,textColorHover:f,textColorPressed:p,textColorFocus:f,textColorDisabled:c,textColorText:c,textColorTextHover:f,textColorTextPressed:p,textColorTextFocus:f,textColorTextDisabled:c,textColorGhost:c,textColorGhostHover:f,textColorGhostPressed:p,textColorGhostFocus:f,textColorGhostDisabled:c,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:f,colorPressedPrimary:p,colorFocusPrimary:f,colorDisabledPrimary:v,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:v,textColorTextHoverPrimary:f,textColorTextPressedPrimary:p,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:c,textColorGhostPrimary:v,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:x,colorHoverInfo:E,colorPressedInfo:C,colorFocusInfo:E,colorDisabledInfo:x,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:x,textColorTextHoverInfo:E,textColorTextPressedInfo:C,textColorTextFocusInfo:E,textColorTextDisabledInfo:c,textColorGhostInfo:x,textColorGhostHoverInfo:E,textColorGhostPressedInfo:C,textColorGhostFocusInfo:E,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${E}`,borderPressedInfo:`1px solid ${C}`,borderFocusInfo:`1px solid ${E}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:k,colorHoverSuccess:_,colorPressedSuccess:F,colorFocusSuccess:_,colorDisabledSuccess:k,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:k,textColorTextHoverSuccess:_,textColorTextPressedSuccess:F,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:c,textColorGhostSuccess:k,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:F,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:k,borderSuccess:`1px solid ${k}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${F}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${k}`,rippleColorSuccess:k,colorWarning:P,colorHoverWarning:z,colorPressedWarning:B,colorFocusWarning:z,colorDisabledWarning:P,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:P,textColorTextHoverWarning:z,textColorTextPressedWarning:B,textColorTextFocusWarning:z,textColorTextDisabledWarning:c,textColorGhostWarning:P,textColorGhostHoverWarning:z,textColorGhostPressedWarning:B,textColorGhostFocusWarning:z,textColorGhostDisabledWarning:P,borderWarning:`1px solid ${P}`,borderHoverWarning:`1px solid ${z}`,borderPressedWarning:`1px solid ${B}`,borderFocusWarning:`1px solid ${z}`,borderDisabledWarning:`1px solid ${P}`,rippleColorWarning:P,colorError:j,colorHoverError:V,colorPressedError:K,colorFocusError:V,colorDisabledError:j,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:j,textColorTextHoverError:V,textColorTextPressedError:K,textColorTextFocusError:V,textColorTextDisabledError:c,textColorGhostError:j,textColorGhostHoverError:V,textColorGhostPressedError:K,textColorGhostFocusError:V,textColorGhostDisabledError:j,borderError:`1px solid ${j}`,borderHoverError:`1px solid ${V}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${V}`,borderDisabledError:`1px solid ${j}`,rippleColorError:j,waveOpacity:"0.6",fontWeight:N,fontWeightStrong:I})}const Ho={name:"Button",common:We,self:G7},Yo={name:"Button",common:Ve,self(e){const t=G7(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},GP=W([A("button",` + `)])])]),K7="n-breadcrumb",HP=Object.assign(Object.assign({},Ie.props),{separator:{type:String,default:"/"}}),NP=ye({name:"Breadcrumb",props:HP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Breadcrumb","-breadcrumb",LP,U7,e,t);tt(K7,{separatorRef:Ae(e,"separator"),mergedClsPrefixRef:t});const r=D(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:u,itemTextColorPressed:d,itemTextColorActive:c,fontSize:h,fontWeightActive:f,itemBorderRadius:p,itemColorHover:g,itemColorPressed:v,itemLineHeight:b}}=n.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":u,"--n-item-text-color-pressed":d,"--n-item-text-color-active":c,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":v,"--n-item-border-radius":p,"--n-font-weight-active":f,"--n-item-line-height":b}}),i=o?gt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},m("ul",null,this.$slots))}});function VP(e=wn?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}},o=$(t()),n=()=>{o.value=t()};return ut(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Go(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),o}const WP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},jP=ye({name:"BreadcrumbItem",props:WP,setup(e,{slots:t}){const o=Oe(K7,null);if(!o)return()=>null;const{separatorRef:n,mergedClsPrefixRef:r}=o,i=VP(),a=D(()=>e.href?"a":"span"),l=D(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=r;return m("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},m(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),m("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},wo(t.separator,()=>{var u;return[(u=e.separator)!==null&&u!==void 0?u:n.value]})))}}});function pi(e){return Ue(e,[255,255,255,.16])}function fu(e){return Ue(e,[0,0,0,.12])}const UP="n-button-group",KP={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function G7(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,textColor2:c,textColor3:h,primaryColorHover:f,primaryColorPressed:p,borderColor:g,primaryColor:v,baseColor:b,infoColor:x,infoColorHover:E,infoColorPressed:w,successColor:k,successColorHover:_,successColorPressed:F,warningColor:P,warningColorHover:z,warningColorPressed:A,errorColor:G,errorColorHover:H,errorColorPressed:X,fontWeight:N,buttonColor2:T,buttonColor2Hover:O,buttonColor2Pressed:R,fontWeightStrong:L}=e;return Object.assign(Object.assign({},KP),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:T,colorSecondaryHover:O,colorSecondaryPressed:R,colorTertiary:T,colorTertiaryHover:O,colorTertiaryPressed:R,colorQuaternary:"#0000",colorQuaternaryHover:O,colorQuaternaryPressed:R,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:c,textColorTertiary:h,textColorHover:f,textColorPressed:p,textColorFocus:f,textColorDisabled:c,textColorText:c,textColorTextHover:f,textColorTextPressed:p,textColorTextFocus:f,textColorTextDisabled:c,textColorGhost:c,textColorGhostHover:f,textColorGhostPressed:p,textColorGhostFocus:f,textColorGhostDisabled:c,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:f,colorPressedPrimary:p,colorFocusPrimary:f,colorDisabledPrimary:v,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:v,textColorTextHoverPrimary:f,textColorTextPressedPrimary:p,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:c,textColorGhostPrimary:v,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:x,colorHoverInfo:E,colorPressedInfo:w,colorFocusInfo:E,colorDisabledInfo:x,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:x,textColorTextHoverInfo:E,textColorTextPressedInfo:w,textColorTextFocusInfo:E,textColorTextDisabledInfo:c,textColorGhostInfo:x,textColorGhostHoverInfo:E,textColorGhostPressedInfo:w,textColorGhostFocusInfo:E,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${E}`,borderPressedInfo:`1px solid ${w}`,borderFocusInfo:`1px solid ${E}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:k,colorHoverSuccess:_,colorPressedSuccess:F,colorFocusSuccess:_,colorDisabledSuccess:k,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:k,textColorTextHoverSuccess:_,textColorTextPressedSuccess:F,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:c,textColorGhostSuccess:k,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:F,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:k,borderSuccess:`1px solid ${k}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${F}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${k}`,rippleColorSuccess:k,colorWarning:P,colorHoverWarning:z,colorPressedWarning:A,colorFocusWarning:z,colorDisabledWarning:P,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:P,textColorTextHoverWarning:z,textColorTextPressedWarning:A,textColorTextFocusWarning:z,textColorTextDisabledWarning:c,textColorGhostWarning:P,textColorGhostHoverWarning:z,textColorGhostPressedWarning:A,textColorGhostFocusWarning:z,textColorGhostDisabledWarning:P,borderWarning:`1px solid ${P}`,borderHoverWarning:`1px solid ${z}`,borderPressedWarning:`1px solid ${A}`,borderFocusWarning:`1px solid ${z}`,borderDisabledWarning:`1px solid ${P}`,rippleColorWarning:P,colorError:G,colorHoverError:H,colorPressedError:X,colorFocusError:H,colorDisabledError:G,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:G,textColorTextHoverError:H,textColorTextPressedError:X,textColorTextFocusError:H,textColorTextDisabledError:c,textColorGhostError:G,textColorGhostHoverError:H,textColorGhostPressedError:X,textColorGhostFocusError:H,textColorGhostDisabledError:G,borderError:`1px solid ${G}`,borderHoverError:`1px solid ${H}`,borderPressedError:`1px solid ${X}`,borderFocusError:`1px solid ${H}`,borderDisabledError:`1px solid ${G}`,rippleColorError:G,waveOpacity:"0.6",fontWeight:N,fontWeightStrong:L})}const Ho={name:"Button",common:We,self:G7},Yo={name:"Button",common:Ve,self(e){const t=G7(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},GP=W([B("button",` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -1375,7 +1375,7 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[ee("color",[q("border",{borderColor:"var(--n-border-color)"}),ee("disabled",[q("border",{borderColor:"var(--n-border-color-disabled)"})]),_t("disabled",[W("&:focus",[q("state-border",{borderColor:"var(--n-border-color-focus)"})]),W("&:hover",[q("state-border",{borderColor:"var(--n-border-color-hover)"})]),W("&:active",[q("state-border",{borderColor:"var(--n-border-color-pressed)"})]),ee("pressed",[q("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),ee("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[q("border",{border:"var(--n-border-disabled)"})]),_t("disabled",[W("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[q("state-border",{border:"var(--n-border-focus)"})]),W("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[q("state-border",{border:"var(--n-border-hover)"})]),W("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[q("state-border",{border:"var(--n-border-pressed)"})]),ee("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[q("state-border",{border:"var(--n-border-pressed)"})])]),ee("loading","cursor: wait;"),A("base-wave",` + `,[J("color",[Y("border",{borderColor:"var(--n-border-color)"}),J("disabled",[Y("border",{borderColor:"var(--n-border-color-disabled)"})]),_t("disabled",[W("&:focus",[Y("state-border",{borderColor:"var(--n-border-color-focus)"})]),W("&:hover",[Y("state-border",{borderColor:"var(--n-border-color-hover)"})]),W("&:active",[Y("state-border",{borderColor:"var(--n-border-color-pressed)"})]),J("pressed",[Y("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),J("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[Y("border",{border:"var(--n-border-disabled)"})]),_t("disabled",[W("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[Y("state-border",{border:"var(--n-border-focus)"})]),W("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[Y("state-border",{border:"var(--n-border-hover)"})]),W("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Y("state-border",{border:"var(--n-border-pressed)"})]),J("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Y("state-border",{border:"var(--n-border-pressed)"})])]),J("loading","cursor: wait;"),B("base-wave",` pointer-events: none; top: 0; right: 0; @@ -1384,7 +1384,7 @@ ${t} animation-iteration-count: 1; animation-duration: var(--n-ripple-duration); animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[ee("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),wn&&"MozBoxSizing"in document.createElement("div").style?W("&::moz-focus-inner",{border:0}):null,q("border, state-border",` + `,[J("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),wn&&"MozBoxSizing"in document.createElement("div").style?W("&::moz-focus-inner",{border:0}):null,Y("border, state-border",` position: absolute; left: 0; top: 0; @@ -1393,7 +1393,7 @@ ${t} border-radius: inherit; transition: border-color .3s var(--n-bezier); pointer-events: none; - `),q("border",{border:"var(--n-border)"}),q("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),q("icon",` + `),Y("border",{border:"var(--n-border)"}),Y("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),Y("icon",` margin: var(--n-icon-margin); margin-left: 0; height: var(--n-icon-size); @@ -1402,7 +1402,7 @@ ${t} font-size: var(--n-icon-size); position: relative; flex-shrink: 0; - `,[A("icon-slot",` + `,[B("icon-slot",` height: var(--n-icon-size); width: var(--n-icon-size); position: absolute; @@ -1412,22 +1412,22 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[en({top:"50%",originalTransform:"translateY(-50%)"})]),M7()]),q("content",` + `,[en({top:"50%",originalTransform:"translateY(-50%)"})]),M7()]),Y("content",` display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; - `,[W("~",[q("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),ee("block",` + `,[W("~",[Y("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),J("block",` display: flex; width: 100%; - `),ee("dashed",[q("border, state-border",{borderStyle:"dashed !important"})]),ee("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),W("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),W("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),qP=Object.assign(Object.assign({},Ie.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!B7}}),Ft=ye({name:"Button",props:qP,setup(e){const t=$(null),o=$(null),n=$(!1),r=vt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Oe(UP,{}),{mergedSizeRef:a}=Bn({},{defaultSize:"medium",mergedSize:C=>{const{size:k}=e;if(k)return k;const{size:_}=i;if(_)return _;const{mergedSize:F}=C||{};return F?F.value:"medium"}}),l=D(()=>e.focusable&&!e.disabled),s=C=>{var k;l.value||C.preventDefault(),!e.nativeFocusBehavior&&(C.preventDefault(),!e.disabled&&l.value&&((k=t.value)===null||k===void 0||k.focus({preventScroll:!0})))},u=C=>{var k;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&Re(_,C),e.text||(k=o.value)===null||k===void 0||k.play()}},d=C=>{switch(C.key){case"Enter":if(!e.keyboard)return;n.value=!1}},c=C=>{switch(C.key){case"Enter":if(!e.keyboard||e.loading){C.preventDefault();return}n.value=!0}},h=()=>{n.value=!1},{inlineThemeDisabled:f,mergedClsPrefixRef:p,mergedRtlRef:g}=rt(e),v=Ie("Button","-button",GP,Ho,e,p),b=Vt("Button",g,p),x=D(()=>{const C=v.value,{common:{cubicBezierEaseInOut:k,cubicBezierEaseOut:_},self:F}=C,{rippleDuration:P,opacityDisabled:z,fontWeight:B,fontWeightStrong:j}=F,V=a.value,{dashed:K,type:N,ghost:T,text:L,color:R,round:I,circle:w,textColor:Q,secondary:U,tertiary:X,quaternary:re,strong:he}=e,Se={"--n-font-weight":he?j:B};let pe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const fe=N==="tertiary",we=N==="default",J=fe?"default":N;if(L){const ne=Q||R;pe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ne||F[Ee("textColorText",J)],"--n-text-color-hover":ne?pi(ne):F[Ee("textColorTextHover",J)],"--n-text-color-pressed":ne?fu(ne):F[Ee("textColorTextPressed",J)],"--n-text-color-focus":ne?pi(ne):F[Ee("textColorTextHover",J)],"--n-text-color-disabled":ne||F[Ee("textColorTextDisabled",J)]}}else if(T||K){const ne=Q||R;pe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":R||F[Ee("rippleColor",J)],"--n-text-color":ne||F[Ee("textColorGhost",J)],"--n-text-color-hover":ne?pi(ne):F[Ee("textColorGhostHover",J)],"--n-text-color-pressed":ne?fu(ne):F[Ee("textColorGhostPressed",J)],"--n-text-color-focus":ne?pi(ne):F[Ee("textColorGhostHover",J)],"--n-text-color-disabled":ne||F[Ee("textColorGhostDisabled",J)]}}else if(U){const ne=we?F.textColor:fe?F.textColorTertiary:F[Ee("color",J)],ae=R||ne,de=N!=="default"&&N!=="tertiary";pe={"--n-color":de?$e(ae,{alpha:Number(F.colorOpacitySecondary)}):F.colorSecondary,"--n-color-hover":de?$e(ae,{alpha:Number(F.colorOpacitySecondaryHover)}):F.colorSecondaryHover,"--n-color-pressed":de?$e(ae,{alpha:Number(F.colorOpacitySecondaryPressed)}):F.colorSecondaryPressed,"--n-color-focus":de?$e(ae,{alpha:Number(F.colorOpacitySecondaryHover)}):F.colorSecondaryHover,"--n-color-disabled":F.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ae,"--n-text-color-hover":ae,"--n-text-color-pressed":ae,"--n-text-color-focus":ae,"--n-text-color-disabled":ae}}else if(X||re){const ne=we?F.textColor:fe?F.textColorTertiary:F[Ee("color",J)],ae=R||ne;X?(pe["--n-color"]=F.colorTertiary,pe["--n-color-hover"]=F.colorTertiaryHover,pe["--n-color-pressed"]=F.colorTertiaryPressed,pe["--n-color-focus"]=F.colorSecondaryHover,pe["--n-color-disabled"]=F.colorTertiary):(pe["--n-color"]=F.colorQuaternary,pe["--n-color-hover"]=F.colorQuaternaryHover,pe["--n-color-pressed"]=F.colorQuaternaryPressed,pe["--n-color-focus"]=F.colorQuaternaryHover,pe["--n-color-disabled"]=F.colorQuaternary),pe["--n-ripple-color"]="#0000",pe["--n-text-color"]=ae,pe["--n-text-color-hover"]=ae,pe["--n-text-color-pressed"]=ae,pe["--n-text-color-focus"]=ae,pe["--n-text-color-disabled"]=ae}else pe={"--n-color":R||F[Ee("color",J)],"--n-color-hover":R?pi(R):F[Ee("colorHover",J)],"--n-color-pressed":R?fu(R):F[Ee("colorPressed",J)],"--n-color-focus":R?pi(R):F[Ee("colorFocus",J)],"--n-color-disabled":R||F[Ee("colorDisabled",J)],"--n-ripple-color":R||F[Ee("rippleColor",J)],"--n-text-color":Q||(R?F.textColorPrimary:fe?F.textColorTertiary:F[Ee("textColor",J)]),"--n-text-color-hover":Q||(R?F.textColorHoverPrimary:F[Ee("textColorHover",J)]),"--n-text-color-pressed":Q||(R?F.textColorPressedPrimary:F[Ee("textColorPressed",J)]),"--n-text-color-focus":Q||(R?F.textColorFocusPrimary:F[Ee("textColorFocus",J)]),"--n-text-color-disabled":Q||(R?F.textColorDisabledPrimary:F[Ee("textColorDisabled",J)])};let G={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};L?G={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:G={"--n-border":F[Ee("border",J)],"--n-border-hover":F[Ee("borderHover",J)],"--n-border-pressed":F[Ee("borderPressed",J)],"--n-border-focus":F[Ee("borderFocus",J)],"--n-border-disabled":F[Ee("borderDisabled",J)]};const{[Ee("height",V)]:Te,[Ee("fontSize",V)]:Ne,[Ee("padding",V)]:H,[Ee("paddingRound",V)]:oe,[Ee("iconSize",V)]:ge,[Ee("borderRadius",V)]:Ce,[Ee("iconMargin",V)]:se,waveOpacity:ie}=F,ce={"--n-width":w&&!L?Te:"initial","--n-height":L?"initial":Te,"--n-font-size":Ne,"--n-padding":w||L?"initial":I?oe:H,"--n-icon-size":ge,"--n-icon-margin":se,"--n-border-radius":L?"initial":w||I?Te:Ce};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":k,"--n-bezier-ease-out":_,"--n-ripple-duration":P,"--n-opacity-disabled":z,"--n-wave-opacity":ie},Se),pe),G),ce)}),E=f?gt("button",D(()=>{let C="";const{dashed:k,type:_,ghost:F,text:P,color:z,round:B,circle:j,textColor:V,secondary:K,tertiary:N,quaternary:T,strong:L}=e;k&&(C+="a"),F&&(C+="b"),P&&(C+="c"),B&&(C+="d"),j&&(C+="e"),K&&(C+="f"),N&&(C+="g"),T&&(C+="h"),L&&(C+="i"),z&&(C+=`j${$a(z)}`),V&&(C+=`k${$a(V)}`);const{value:R}=a;return C+=`l${R[0]}`,C+=`m${_[0]}`,C}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:r,enterPressed:n,rtlEnabled:b,handleMousedown:s,handleKeydown:c,handleBlur:h,handleKeyup:d,handleClick:u,customColorCssVars:D(()=>{const{color:C}=e;if(!C)return null;const k=pi(C);return{"--n-border-color":C,"--n-border-color-hover":k,"--n-border-color-pressed":fu(C),"--n-border-color-focus":k,"--n-border-color-disabled":C}}),cssVars:f?void 0:x,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const n=bt(this.$slots.default,r=>r&&m("span",{class:`${e}-button__content`},r));return m(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,m(Ua,{width:!0},{default:()=>bt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&m("span",{class:`${e}-button__icon`,style:{margin:Ai(this.$slots.default)?"0":""}},m(Qi,null,{default:()=>this.loading?m(kr,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):m("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&n,this.text?null:m(x7,{ref:"waveElRef",clsPrefix:e}),this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Qf=Ft,ZP={titleFontSize:"22px"};function q7(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:u,baseColor:d,hoverColor:c,cardColor:h,modalColor:f,popoverColor:p}=e;return Object.assign(Object.assign({},ZP),{borderRadius:t,borderColor:Ue(h,l),borderColorModal:Ue(f,l),borderColorPopover:Ue(p,l),textColor:r,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:u,dateTextColorCurrent:d,cellColorHover:Ue(h,c),cellColorHoverModal:Ue(f,c),cellColorHoverPopover:Ue(p,c),cellColor:h,cellColorModal:f,cellColorPopover:p,barColor:u})}const XP={name:"Calendar",common:We,peers:{Button:Ho},self:q7},YP={name:"Calendar",common:Ve,peers:{Button:Yo},self:q7};function Z7(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}}const X7={name:"ColorPicker",common:We,peers:{Input:Xo,Button:Ho},self:Z7},QP={name:"ColorPicker",common:Ve,peers:{Input:Sn,Button:Yo},self:Z7};function JP(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function ss(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function eA(e){return e=Math.round(e),e>=360?359:e<0?0:e}function tA(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const oA={rgb:{hex(e){return qr(uo(e))},hsl(e){const[t,o,n,r]=uo(e);return Gr([...V0(t,o,n),r])},hsv(e){const[t,o,n,r]=uo(e);return Pi([...N0(t,o,n),r])}},hex:{rgb(e){return Kn(uo(e))},hsl(e){const[t,o,n,r]=uo(e);return Gr([...V0(t,o,n),r])},hsv(e){const[t,o,n,r]=uo(e);return Pi([...N0(t,o,n),r])}},hsl:{hex(e){const[t,o,n,r]=Ea(e);return qr([...W0(t,o,n),r])},rgb(e){const[t,o,n,r]=Ea(e);return Kn([...W0(t,o,n),r])},hsv(e){const[t,o,n,r]=Ea(e);return Pi([...Fp(t,o,n),r])}},hsv:{hex(e){const[t,o,n,r]=$i(e);return qr([...Nr(t,o,n),r])},rgb(e){const[t,o,n,r]=$i(e);return Kn([...Nr(t,o,n),r])},hsl(e){const[t,o,n,r]=$i(e);return Gr([...$u(t,o,n),r])}}};function Y7(e,t,o){return o=o||ss(e),o?o===t?e:oA[o][t](e):null}const ha="12px",nA=12,mi="6px",rA=6,iA="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",aA=ye({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=$(null);function o(i){t.value&&(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=eA((i.clientX-s-rA)/(l-nA)*360);e.onUpdateHue(u)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,style:{height:ha,borderRadius:mi}},m("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:iA,height:ha,borderRadius:mi,position:"relative"},onMousedown:this.handleMouseDown},m("div",{style:{position:"absolute",left:mi,right:mi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${mi})`,borderRadius:mi,width:ha,height:ha}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:mi,width:ha,height:ha}})))))}}),fl="12px",lA=12,gi="6px",sA=ye({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=$(null);function o(i){!t.value||!e.rgba||(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=(i.clientX-s)/(l-lA);e.onUpdateAlpha(tA(u))}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:D(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:fl,borderRadius:gi},onMousedown:this.handleMouseDown},m("div",{style:{borderRadius:gi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},m("div",{class:`${e}-color-picker-checkboard`}),m("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&m("div",{style:{position:"absolute",left:gi,right:gi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${gi})`,borderRadius:gi,width:fl,height:fl}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Kn(this.rgba),borderRadius:gi,width:fl,height:fl}}))))}}),hu="12px",pu="6px",uA=ye({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=$(null);function o(i){t.value&&(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:u,bottom:d}=a.getBoundingClientRect(),c=(d-i.clientY)/s,h=(i.clientX-u)/l,f=100*(h>1?1:h<0?0:h),p=100*(c>1?1:c<0?0:c);e.onUpdateSV(f,p)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:D(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},m("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),m("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&m("div",{class:`${e}-color-picker-handle`,style:{width:hu,height:hu,borderRadius:pu,left:`calc(${this.displayedSv[0]}% - ${pu})`,bottom:`calc(${this.displayedSv[1]}% - ${pu})`}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:pu,width:hu,height:hu}})))}}),W3="n-color-picker";function dA(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function cA(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function fA(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function hA(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function pA(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const mA={paddingSmall:"0 4px"},Jf=ye({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=$(""),{themeRef:o}=Oe(W3,null);Et(()=>{t.value=n()});function n(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function r(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=hA(a),s&&e.onUpdateValue(a),t.value=n();break;case"H":l=cA(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"S":case"L":case"V":l=fA(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"A":l=pA(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"R":case"G":case"B":l=dA(a),l===!1?t.value=n():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:r}},render(){const{mergedTheme:e}=this;return m(rn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:mA,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),gA=ye({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:n}=e;if(e.mode==="hex"){e.onUpdateValue((n?qr:Bl)(o));return}let r;switch(e.valueArr===null?r=[0,0,0,0]:r=Array.from(e.valueArr),e.mode){case"hsv":r[t]=o,e.onUpdateValue((n?Pi:K0)(r));break;case"rgb":r[t]=o,e.onUpdateValue((n?Kn:U0)(r));break;case"hsl":r[t]=o,e.onUpdateValue((n?Gr:G0)(r));break}}}},render(){const{clsPrefix:e,modes:t}=this;return m("div",{class:`${e}-color-picker-input`},m("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),m(I7,null,{default:()=>{const{mode:o,valueArr:n,showAlpha:r}=this;if(o==="hex"){let i=null;try{i=n===null?null:(r?qr:Bl)(n)}catch{}return m(Jf,{label:"HEX",showAlpha:r,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(o+(r?"a":"")).split("").map((i,a)=>m(Jf,{label:i.toUpperCase(),value:n===null?null:n[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),vA=ye({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Oe(W3,null);return()=>{const{hsla:n,value:r,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||o.value;return m("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},m("div",{class:`${i}-color-picker-trigger__fill`},m("div",{class:`${i}-color-picker-checkboard`}),m("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:n?Gr(n):""}}),r&&n?m("div",{class:`${i}-color-picker-trigger__value`,style:{color:n[2]>50||n[3]<.5?"black":"white"}},s?s(r):r):null))}}});function bA(e,t){if(t==="hsv"){const[o,n,r,i]=$i(e);return Kn([...Nr(o,n,r),i])}return e}function xA(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const yA=ye({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=D(()=>e.swatches.map(i=>{const a=ss(i);return{value:i,mode:a,legalValue:bA(i,a)}}));function o(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=xA(l):(xn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:Y7(l,a,s)}function n(i){e.onUpdateColor(o(i))}function r(i,a){i.key==="Enter"&&n(a)}return{parsedSwatchesRef:t,handleSwatchSelect:n,handleSwatchKeyDown:r}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>m("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},m("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),CA=ye({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=ss(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var n;const r=o.target.value;(n=e.onUpdateColor)===null||n===void 0||n.call(e,Y7(r.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-preview__preview`},m("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),m("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),wA=W([A("color-picker",` + `),J("dashed",[Y("border, state-border",{borderStyle:"dashed !important"})]),J("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),W("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),W("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),qP=Object.assign(Object.assign({},Ie.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!B7}}),Ft=ye({name:"Button",props:qP,setup(e){const t=$(null),o=$(null),n=$(!1),r=vt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Oe(UP,{}),{mergedSizeRef:a}=Bn({},{defaultSize:"medium",mergedSize:w=>{const{size:k}=e;if(k)return k;const{size:_}=i;if(_)return _;const{mergedSize:F}=w||{};return F?F.value:"medium"}}),l=D(()=>e.focusable&&!e.disabled),s=w=>{var k;l.value||w.preventDefault(),!e.nativeFocusBehavior&&(w.preventDefault(),!e.disabled&&l.value&&((k=t.value)===null||k===void 0||k.focus({preventScroll:!0})))},u=w=>{var k;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&Re(_,w),e.text||(k=o.value)===null||k===void 0||k.play()}},d=w=>{switch(w.key){case"Enter":if(!e.keyboard)return;n.value=!1}},c=w=>{switch(w.key){case"Enter":if(!e.keyboard||e.loading){w.preventDefault();return}n.value=!0}},h=()=>{n.value=!1},{inlineThemeDisabled:f,mergedClsPrefixRef:p,mergedRtlRef:g}=rt(e),v=Ie("Button","-button",GP,Ho,e,p),b=Wt("Button",g,p),x=D(()=>{const w=v.value,{common:{cubicBezierEaseInOut:k,cubicBezierEaseOut:_},self:F}=w,{rippleDuration:P,opacityDisabled:z,fontWeight:A,fontWeightStrong:G}=F,H=a.value,{dashed:X,type:N,ghost:T,text:O,color:R,round:L,circle:ne,textColor:y,secondary:K,tertiary:U,quaternary:ue,strong:se}=e,Fe={"--n-font-weight":se?G:A};let pe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const fe=N==="tertiary",Ce=N==="default",ee=fe?"default":N;if(O){const oe=y||R;pe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":oe||F[Ee("textColorText",ee)],"--n-text-color-hover":oe?pi(oe):F[Ee("textColorTextHover",ee)],"--n-text-color-pressed":oe?fu(oe):F[Ee("textColorTextPressed",ee)],"--n-text-color-focus":oe?pi(oe):F[Ee("textColorTextHover",ee)],"--n-text-color-disabled":oe||F[Ee("textColorTextDisabled",ee)]}}else if(T||X){const oe=y||R;pe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":R||F[Ee("rippleColor",ee)],"--n-text-color":oe||F[Ee("textColorGhost",ee)],"--n-text-color-hover":oe?pi(oe):F[Ee("textColorGhostHover",ee)],"--n-text-color-pressed":oe?fu(oe):F[Ee("textColorGhostPressed",ee)],"--n-text-color-focus":oe?pi(oe):F[Ee("textColorGhostHover",ee)],"--n-text-color-disabled":oe||F[Ee("textColorGhostDisabled",ee)]}}else if(K){const oe=Ce?F.textColor:fe?F.textColorTertiary:F[Ee("color",ee)],ie=R||oe,ce=N!=="default"&&N!=="tertiary";pe={"--n-color":ce?$e(ie,{alpha:Number(F.colorOpacitySecondary)}):F.colorSecondary,"--n-color-hover":ce?$e(ie,{alpha:Number(F.colorOpacitySecondaryHover)}):F.colorSecondaryHover,"--n-color-pressed":ce?$e(ie,{alpha:Number(F.colorOpacitySecondaryPressed)}):F.colorSecondaryPressed,"--n-color-focus":ce?$e(ie,{alpha:Number(F.colorOpacitySecondaryHover)}):F.colorSecondaryHover,"--n-color-disabled":F.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ie,"--n-text-color-hover":ie,"--n-text-color-pressed":ie,"--n-text-color-focus":ie,"--n-text-color-disabled":ie}}else if(U||ue){const oe=Ce?F.textColor:fe?F.textColorTertiary:F[Ee("color",ee)],ie=R||oe;U?(pe["--n-color"]=F.colorTertiary,pe["--n-color-hover"]=F.colorTertiaryHover,pe["--n-color-pressed"]=F.colorTertiaryPressed,pe["--n-color-focus"]=F.colorSecondaryHover,pe["--n-color-disabled"]=F.colorTertiary):(pe["--n-color"]=F.colorQuaternary,pe["--n-color-hover"]=F.colorQuaternaryHover,pe["--n-color-pressed"]=F.colorQuaternaryPressed,pe["--n-color-focus"]=F.colorQuaternaryHover,pe["--n-color-disabled"]=F.colorQuaternary),pe["--n-ripple-color"]="#0000",pe["--n-text-color"]=ie,pe["--n-text-color-hover"]=ie,pe["--n-text-color-pressed"]=ie,pe["--n-text-color-focus"]=ie,pe["--n-text-color-disabled"]=ie}else pe={"--n-color":R||F[Ee("color",ee)],"--n-color-hover":R?pi(R):F[Ee("colorHover",ee)],"--n-color-pressed":R?fu(R):F[Ee("colorPressed",ee)],"--n-color-focus":R?pi(R):F[Ee("colorFocus",ee)],"--n-color-disabled":R||F[Ee("colorDisabled",ee)],"--n-ripple-color":R||F[Ee("rippleColor",ee)],"--n-text-color":y||(R?F.textColorPrimary:fe?F.textColorTertiary:F[Ee("textColor",ee)]),"--n-text-color-hover":y||(R?F.textColorHoverPrimary:F[Ee("textColorHover",ee)]),"--n-text-color-pressed":y||(R?F.textColorPressedPrimary:F[Ee("textColorPressed",ee)]),"--n-text-color-focus":y||(R?F.textColorFocusPrimary:F[Ee("textColorFocus",ee)]),"--n-text-color-disabled":y||(R?F.textColorDisabledPrimary:F[Ee("textColorDisabled",ee)])};let q={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};O?q={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:q={"--n-border":F[Ee("border",ee)],"--n-border-hover":F[Ee("borderHover",ee)],"--n-border-pressed":F[Ee("borderPressed",ee)],"--n-border-focus":F[Ee("borderFocus",ee)],"--n-border-disabled":F[Ee("borderDisabled",ee)]};const{[Ee("height",H)]:Te,[Ee("fontSize",H)]:Ne,[Ee("padding",H)]:j,[Ee("paddingRound",H)]:V,[Ee("iconSize",H)]:ge,[Ee("borderRadius",H)]:we,[Ee("iconMargin",H)]:le,waveOpacity:re}=F,he={"--n-width":ne&&!O?Te:"initial","--n-height":O?"initial":Te,"--n-font-size":Ne,"--n-padding":ne||O?"initial":L?V:j,"--n-icon-size":ge,"--n-icon-margin":le,"--n-border-radius":O?"initial":ne||L?Te:we};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":k,"--n-bezier-ease-out":_,"--n-ripple-duration":P,"--n-opacity-disabled":z,"--n-wave-opacity":re},Fe),pe),q),he)}),E=f?gt("button",D(()=>{let w="";const{dashed:k,type:_,ghost:F,text:P,color:z,round:A,circle:G,textColor:H,secondary:X,tertiary:N,quaternary:T,strong:O}=e;k&&(w+="a"),F&&(w+="b"),P&&(w+="c"),A&&(w+="d"),G&&(w+="e"),X&&(w+="f"),N&&(w+="g"),T&&(w+="h"),O&&(w+="i"),z&&(w+=`j${$a(z)}`),H&&(w+=`k${$a(H)}`);const{value:R}=a;return w+=`l${R[0]}`,w+=`m${_[0]}`,w}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:r,enterPressed:n,rtlEnabled:b,handleMousedown:s,handleKeydown:c,handleBlur:h,handleKeyup:d,handleClick:u,customColorCssVars:D(()=>{const{color:w}=e;if(!w)return null;const k=pi(w);return{"--n-border-color":w,"--n-border-color-hover":k,"--n-border-color-pressed":fu(w),"--n-border-color-focus":k,"--n-border-color-disabled":w}}),cssVars:f?void 0:x,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const n=bt(this.$slots.default,r=>r&&m("span",{class:`${e}-button__content`},r));return m(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,m(Ua,{width:!0},{default:()=>bt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&m("span",{class:`${e}-button__icon`,style:{margin:Ai(this.$slots.default)?"0":""}},m(Qi,null,{default:()=>this.loading?m(kr,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):m("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&n,this.text?null:m(x7,{ref:"waveElRef",clsPrefix:e}),this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Qf=Ft,ZP={titleFontSize:"22px"};function q7(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:u,baseColor:d,hoverColor:c,cardColor:h,modalColor:f,popoverColor:p}=e;return Object.assign(Object.assign({},ZP),{borderRadius:t,borderColor:Ue(h,l),borderColorModal:Ue(f,l),borderColorPopover:Ue(p,l),textColor:r,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:u,dateTextColorCurrent:d,cellColorHover:Ue(h,c),cellColorHoverModal:Ue(f,c),cellColorHoverPopover:Ue(p,c),cellColor:h,cellColorModal:f,cellColorPopover:p,barColor:u})}const XP={name:"Calendar",common:We,peers:{Button:Ho},self:q7},YP={name:"Calendar",common:Ve,peers:{Button:Yo},self:q7};function Z7(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}}const X7={name:"ColorPicker",common:We,peers:{Input:Xo,Button:Ho},self:Z7},QP={name:"ColorPicker",common:Ve,peers:{Input:Sn,Button:Yo},self:Z7};function JP(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function ss(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function eA(e){return e=Math.round(e),e>=360?359:e<0?0:e}function tA(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const oA={rgb:{hex(e){return qr(uo(e))},hsl(e){const[t,o,n,r]=uo(e);return Gr([...V0(t,o,n),r])},hsv(e){const[t,o,n,r]=uo(e);return Pi([...N0(t,o,n),r])}},hex:{rgb(e){return Kn(uo(e))},hsl(e){const[t,o,n,r]=uo(e);return Gr([...V0(t,o,n),r])},hsv(e){const[t,o,n,r]=uo(e);return Pi([...N0(t,o,n),r])}},hsl:{hex(e){const[t,o,n,r]=Ea(e);return qr([...W0(t,o,n),r])},rgb(e){const[t,o,n,r]=Ea(e);return Kn([...W0(t,o,n),r])},hsv(e){const[t,o,n,r]=Ea(e);return Pi([...Fp(t,o,n),r])}},hsv:{hex(e){const[t,o,n,r]=$i(e);return qr([...Nr(t,o,n),r])},rgb(e){const[t,o,n,r]=$i(e);return Kn([...Nr(t,o,n),r])},hsl(e){const[t,o,n,r]=$i(e);return Gr([...$u(t,o,n),r])}}};function Y7(e,t,o){return o=o||ss(e),o?o===t?e:oA[o][t](e):null}const ha="12px",nA=12,mi="6px",rA=6,iA="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",aA=ye({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=$(null);function o(i){t.value&&(wt("mousemove",document,n),wt("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=eA((i.clientX-s-rA)/(l-nA)*360);e.onUpdateHue(u)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,style:{height:ha,borderRadius:mi}},m("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:iA,height:ha,borderRadius:mi,position:"relative"},onMousedown:this.handleMouseDown},m("div",{style:{position:"absolute",left:mi,right:mi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${mi})`,borderRadius:mi,width:ha,height:ha}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:mi,width:ha,height:ha}})))))}}),fl="12px",lA=12,gi="6px",sA=ye({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=$(null);function o(i){!t.value||!e.rgba||(wt("mousemove",document,n),wt("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=(i.clientX-s)/(l-lA);e.onUpdateAlpha(tA(u))}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:D(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:fl,borderRadius:gi},onMousedown:this.handleMouseDown},m("div",{style:{borderRadius:gi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},m("div",{class:`${e}-color-picker-checkboard`}),m("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&m("div",{style:{position:"absolute",left:gi,right:gi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${gi})`,borderRadius:gi,width:fl,height:fl}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Kn(this.rgba),borderRadius:gi,width:fl,height:fl}}))))}}),hu="12px",pu="6px",uA=ye({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=$(null);function o(i){t.value&&(wt("mousemove",document,n),wt("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:u,bottom:d}=a.getBoundingClientRect(),c=(d-i.clientY)/s,h=(i.clientX-u)/l,f=100*(h>1?1:h<0?0:h),p=100*(c>1?1:c<0?0:c);e.onUpdateSV(f,p)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:D(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},m("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),m("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&m("div",{class:`${e}-color-picker-handle`,style:{width:hu,height:hu,borderRadius:pu,left:`calc(${this.displayedSv[0]}% - ${pu})`,bottom:`calc(${this.displayedSv[1]}% - ${pu})`}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:pu,width:hu,height:hu}})))}}),W3="n-color-picker";function dA(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function cA(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function fA(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function hA(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function pA(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const mA={paddingSmall:"0 4px"},Jf=ye({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=$(""),{themeRef:o}=Oe(W3,null);Et(()=>{t.value=n()});function n(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function r(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=hA(a),s&&e.onUpdateValue(a),t.value=n();break;case"H":l=cA(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"S":case"L":case"V":l=fA(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"A":l=pA(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"R":case"G":case"B":l=dA(a),l===!1?t.value=n():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:r}},render(){const{mergedTheme:e}=this;return m(rn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:mA,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),gA=ye({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:n}=e;if(e.mode==="hex"){e.onUpdateValue((n?qr:Bl)(o));return}let r;switch(e.valueArr===null?r=[0,0,0,0]:r=Array.from(e.valueArr),e.mode){case"hsv":r[t]=o,e.onUpdateValue((n?Pi:K0)(r));break;case"rgb":r[t]=o,e.onUpdateValue((n?Kn:U0)(r));break;case"hsl":r[t]=o,e.onUpdateValue((n?Gr:G0)(r));break}}}},render(){const{clsPrefix:e,modes:t}=this;return m("div",{class:`${e}-color-picker-input`},m("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),m(I7,null,{default:()=>{const{mode:o,valueArr:n,showAlpha:r}=this;if(o==="hex"){let i=null;try{i=n===null?null:(r?qr:Bl)(n)}catch{}return m(Jf,{label:"HEX",showAlpha:r,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(o+(r?"a":"")).split("").map((i,a)=>m(Jf,{label:i.toUpperCase(),value:n===null?null:n[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),vA=ye({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Oe(W3,null);return()=>{const{hsla:n,value:r,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||o.value;return m("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},m("div",{class:`${i}-color-picker-trigger__fill`},m("div",{class:`${i}-color-picker-checkboard`}),m("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:n?Gr(n):""}}),r&&n?m("div",{class:`${i}-color-picker-trigger__value`,style:{color:n[2]>50||n[3]<.5?"black":"white"}},s?s(r):r):null))}}});function bA(e,t){if(t==="hsv"){const[o,n,r,i]=$i(e);return Kn([...Nr(o,n,r),i])}return e}function xA(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const yA=ye({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=D(()=>e.swatches.map(i=>{const a=ss(i);return{value:i,mode:a,legalValue:bA(i,a)}}));function o(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=xA(l):(xn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:Y7(l,a,s)}function n(i){e.onUpdateColor(o(i))}function r(i,a){i.key==="Enter"&&n(a)}return{parsedSwatchesRef:t,handleSwatchSelect:n,handleSwatchKeyDown:r}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>m("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},m("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),CA=ye({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=ss(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var n;const r=o.target.value;(n=e.onUpdateColor)===null||n===void 0||n.call(e,Y7(r.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-preview__preview`},m("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),m("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),wA=W([B("color-picker",` display: inline-block; box-sizing: border-box; height: var(--n-height); font-size: var(--n-font-size); width: 100%; position: relative; - `),A("color-picker-panel",` + `),B("color-picker-panel",` margin: 4px 0; width: 240px; font-size: var(--n-panel-font-size); @@ -1439,9 +1439,9 @@ ${t} background-color .3s var(--n-bezier); border-radius: var(--n-border-radius); box-shadow: var(--n-box-shadow); - `,[Pn(),A("input",` + `,[Pn(),B("input",` text-align: center; - `)]),A("color-picker-checkboard",` + `)]),B("color-picker-checkboard",` background: white; position: absolute; left: 0; @@ -1459,11 +1459,11 @@ ${t} right: 0; top: 0; bottom: 0; - `)]),A("color-picker-slider",` + `)]),B("color-picker-slider",` margin-bottom: 8px; position: relative; box-sizing: border-box; - `,[q("image",` + `,[Y("image",` position: absolute; left: 0; right: 0; @@ -1479,33 +1479,33 @@ ${t} bottom: 0; box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); pointer-events: none; - `)]),A("color-picker-handle",` + `)]),B("color-picker-handle",` z-index: 1; box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); position: absolute; background-color: white; overflow: hidden; - `,[q("fill",` + `,[Y("fill",` box-sizing: border-box; border: 2px solid white; - `)]),A("color-picker-pallete",` + `)]),B("color-picker-pallete",` height: 180px; position: relative; margin-bottom: 8px; cursor: crosshair; - `,[q("layer",` + `,[Y("layer",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[ee("shadowed",` + `,[J("shadowed",` box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),A("color-picker-preview",` + `)])]),B("color-picker-preview",` display: flex; - `,[q("sliders",` + `,[Y("sliders",` flex: 1 0 auto; - `),q("preview",` + `),Y("preview",` position: relative; height: 30px; width: 30px; @@ -1513,11 +1513,11 @@ ${t} border-radius: 50%; box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; overflow: hidden; - `),q("fill",` + `),Y("fill",` display: block; width: 30px; height: 30px; - `),q("input",` + `),Y("input",` position: absolute; top: 0; left: 0; @@ -1525,34 +1525,34 @@ ${t} height: 30px; opacity: 0; z-index: 1; - `)]),A("color-picker-input",` + `)]),B("color-picker-input",` display: flex; align-items: center; - `,[A("input",` + `,[B("input",` flex-grow: 1; flex-basis: 0; - `),q("mode",` + `),Y("mode",` width: 72px; text-align: center; - `)]),A("color-picker-control",` + `)]),B("color-picker-control",` padding: 12px; - `),A("color-picker-action",` + `),B("color-picker-action",` display: flex; margin-top: -4px; border-top: 1px solid var(--n-divider-color); padding: 8px 12px; justify-content: flex-end; - `,[A("button","margin-left: 8px;")]),A("color-picker-trigger",` + `,[B("button","margin-left: 8px;")]),B("color-picker-trigger",` border: var(--n-border); height: 100%; box-sizing: border-box; border-radius: var(--n-border-radius); transition: border-color .3s var(--n-bezier); cursor: pointer; - `,[q("value",` + `,[Y("value",` white-space: nowrap; position: relative; - `),q("fill",` + `),Y("fill",` border-radius: var(--n-border-radius); position: absolute; display: flex; @@ -1562,27 +1562,27 @@ ${t} right: 4px; top: 4px; bottom: 4px; - `),ee("disabled","cursor: not-allowed"),A("color-picker-checkboard",` + `),J("disabled","cursor: not-allowed"),B("color-picker-checkboard",` border-radius: var(--n-border-radius); `,[W("&::after",` --n-block-size: calc((var(--n-height) - 8px) / 3); background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),A("color-picker-swatches",` + `)])]),B("color-picker-swatches",` display: grid; grid-gap: 8px; flex-wrap: wrap; position: relative; grid-template-columns: repeat(auto-fill, 18px); margin-top: 10px; - `,[A("color-picker-swatch",` + `,[B("color-picker-swatch",` width: 18px; height: 18px; background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); background-size: 8px 8px; background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; background-repeat: repeat; - `,[q("fill",` + `,[Y("fill",` position: relative; width: 100%; height: 100%; @@ -1591,7 +1591,7 @@ ${t} cursor: pointer; `),W("&:focus",` outline: none; - `,[q("fill",[W("&::after",` + `,[Y("fill",[W("&::after",` position: absolute; top: 0; right: 0; @@ -1600,7 +1600,7 @@ ${t} background: inherit; filter: blur(2px); content: ""; - `)])])])])]),SA=Object.assign(Object.assign({},Ie.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:$o.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),FA=ye({name:"ColorPicker",props:SA,setup(e,{slots:t}){const o=$(null);let n=null;const r=Bn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,{localeRef:l}=Fr("global"),{mergedClsPrefixRef:s,namespaceRef:u,inlineThemeDisabled:d}=rt(e),c=Ie("ColorPicker","-color-picker",wA,X7,e,s);et(W3,{themeRef:c,renderLabelRef:Ae(e,"renderLabel"),colorPickerSlots:t});const h=$(e.defaultShow),f=to(Ae(e,"show"),h);function p(ie){const{onUpdateShow:ce,"onUpdate:show":ne}=e;ce&&Re(ce,ie),ne&&Re(ne,ie),h.value=ie}const{defaultValue:g}=e,v=$(g===void 0?JP(e.modes,e.showAlpha):g),b=to(Ae(e,"value"),v),x=$([b.value]),E=$(0),C=D(()=>ss(b.value)),{modes:k}=e,_=$(ss(b.value)||k[0]||"rgb");function F(){const{modes:ie}=e,{value:ce}=_,ne=ie.findIndex(ae=>ae===ce);~ne?_.value=ie[(ne+1)%ie.length]:_.value="rgb"}let P,z,B,j,V,K,N,T;const L=D(()=>{const{value:ie}=b;if(!ie)return null;switch(C.value){case"hsv":return $i(ie);case"hsl":return[P,z,B,T]=Ea(ie),[...Fp(P,z,B),T];case"rgb":case"hex":return[V,K,N,T]=uo(ie),[...N0(V,K,N),T]}}),R=D(()=>{const{value:ie}=b;if(!ie)return null;switch(C.value){case"rgb":case"hex":return uo(ie);case"hsv":return[P,z,j,T]=$i(ie),[...Nr(P,z,j),T];case"hsl":return[P,z,B,T]=Ea(ie),[...W0(P,z,B),T]}}),I=D(()=>{const{value:ie}=b;if(!ie)return null;switch(C.value){case"hsl":return Ea(ie);case"hsv":return[P,z,j,T]=$i(ie),[...$u(P,z,j),T];case"rgb":case"hex":return[V,K,N,T]=uo(ie),[...V0(V,K,N),T]}}),w=D(()=>{switch(_.value){case"rgb":case"hex":return R.value;case"hsv":return L.value;case"hsl":return I.value}}),Q=$(0),U=$(1),X=$([0,0]);function re(ie,ce){const{value:ne}=L,ae=Q.value,de=ne?ne[3]:1;X.value=[ie,ce];const{showAlpha:le}=e;switch(_.value){case"hsv":pe((le?Pi:K0)([ae,ie,ce,de]),"cursor");break;case"hsl":pe((le?Gr:G0)([...$u(ae,ie,ce),de]),"cursor");break;case"rgb":pe((le?Kn:U0)([...Nr(ae,ie,ce),de]),"cursor");break;case"hex":pe((le?qr:Bl)([...Nr(ae,ie,ce),de]),"cursor");break}}function he(ie){Q.value=ie;const{value:ce}=L;if(!ce)return;const[,ne,ae,de]=ce,{showAlpha:le}=e;switch(_.value){case"hsv":pe((le?Pi:K0)([ie,ne,ae,de]),"cursor");break;case"rgb":pe((le?Kn:U0)([...Nr(ie,ne,ae),de]),"cursor");break;case"hex":pe((le?qr:Bl)([...Nr(ie,ne,ae),de]),"cursor");break;case"hsl":pe((le?Gr:G0)([...$u(ie,ne,ae),de]),"cursor");break}}function Se(ie){switch(_.value){case"hsv":[P,z,j]=L.value,pe(Pi([P,z,j,ie]),"cursor");break;case"rgb":[V,K,N]=R.value,pe(Kn([V,K,N,ie]),"cursor");break;case"hex":[V,K,N]=R.value,pe(qr([V,K,N,ie]),"cursor");break;case"hsl":[P,z,B]=I.value,pe(Gr([P,z,B,ie]),"cursor");break}U.value=ie}function pe(ie,ce){ce==="cursor"?n=ie:n=null;const{nTriggerFormChange:ne,nTriggerFormInput:ae}=r,{onUpdateValue:de,"onUpdate:value":le}=e;de&&Re(de,ie),le&&Re(le,ie),ne(),ae(),v.value=ie}function fe(ie){pe(ie,"input"),Mt(we)}function we(ie=!0){const{value:ce}=b;if(ce){const{nTriggerFormChange:ne,nTriggerFormInput:ae}=r,{onComplete:de}=e;de&&de(ce);const{value:le}=x,{value:Y}=E;ie&&(le.splice(Y+1,le.length,ce),E.value=Y+1),ne(),ae()}}function J(){const{value:ie}=E;ie-1<0||(pe(x.value[ie-1],"input"),we(!1),E.value=ie-1)}function G(){const{value:ie}=E;ie<0||ie+1>=x.value.length||(pe(x.value[ie+1],"input"),we(!1),E.value=ie+1)}function Te(){pe(null,"input");const{onClear:ie}=e;ie&&ie(),p(!1)}function Ne(){const{value:ie}=b,{onConfirm:ce}=e;ce&&ce(ie),p(!1)}const H=D(()=>E.value>=1),oe=D(()=>{const{value:ie}=x;return ie.length>1&&E.value{ie||(x.value=[b.value],E.value=0)}),Et(()=>{if(!(n&&n===b.value)){const{value:ie}=L;ie&&(Q.value=ie[0],U.value=ie[3],X.value=[ie[1],ie[2]])}n=null});const ge=D(()=>{const{value:ie}=i,{common:{cubicBezierEaseInOut:ce},self:{textColor:ne,color:ae,panelFontSize:de,boxShadow:le,border:Y,borderRadius:ue,dividerColor:ve,[Ee("height",ie)]:Be,[Ee("fontSize",ie)]:Ke}}=c.value;return{"--n-bezier":ce,"--n-text-color":ne,"--n-color":ae,"--n-panel-font-size":de,"--n-font-size":Ke,"--n-box-shadow":le,"--n-border":Y,"--n-border-radius":ue,"--n-height":Be,"--n-divider-color":ve}}),Ce=d?gt("color-picker",D(()=>i.value[0]),ge,e):void 0;function se(){var ie;const{value:ce}=R,{value:ne}=Q,{internalActions:ae,modes:de,actions:le}=e,{value:Y}=c,{value:ue}=s;return m("div",{class:[`${ue}-color-picker-panel`,Ce==null?void 0:Ce.themeClass.value],onDragstart:ve=>{ve.preventDefault()},style:d?void 0:ge.value},m("div",{class:`${ue}-color-picker-control`},m(uA,{clsPrefix:ue,rgba:ce,displayedHue:ne,displayedSv:X.value,onUpdateSV:re,onComplete:we}),m("div",{class:`${ue}-color-picker-preview`},m("div",{class:`${ue}-color-picker-preview__sliders`},m(aA,{clsPrefix:ue,hue:ne,onUpdateHue:he,onComplete:we}),e.showAlpha?m(sA,{clsPrefix:ue,rgba:ce,alpha:U.value,onUpdateAlpha:Se,onComplete:we}):null),e.showPreview?m(CA,{clsPrefix:ue,mode:_.value,color:R.value&&Bl(R.value),onUpdateColor:ve=>{pe(ve,"input")}}):null),m(gA,{clsPrefix:ue,showAlpha:e.showAlpha,mode:_.value,modes:de,onUpdateMode:F,value:b.value,valueArr:w.value,onUpdateValue:fe}),((ie=e.swatches)===null||ie===void 0?void 0:ie.length)&&m(yA,{clsPrefix:ue,mode:_.value,swatches:e.swatches,onUpdateColor:ve=>{pe(ve,"input")}})),le!=null&&le.length?m("div",{class:`${ue}-color-picker-action`},le.includes("confirm")&&m(Ft,{size:"small",onClick:Ne,theme:Y.peers.Button,themeOverrides:Y.peerOverrides.Button},{default:()=>l.value.confirm}),le.includes("clear")&&m(Ft,{size:"small",onClick:Te,disabled:!b.value,theme:Y.peers.Button,themeOverrides:Y.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?m("div",{class:`${ue}-color-picker-action`},{default:t.action}):ae?m("div",{class:`${ue}-color-picker-action`},ae.includes("undo")&&m(Ft,{size:"small",onClick:J,disabled:!H.value,theme:Y.peers.Button,themeOverrides:Y.peerOverrides.Button},{default:()=>l.value.undo}),ae.includes("redo")&&m(Ft,{size:"small",onClick:G,disabled:!oe.value,theme:Y.peers.Button,themeOverrides:Y.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:u,selfRef:o,hsla:I,rgba:R,mergedShow:f,mergedDisabled:a,isMounted:Cr(),adjustedTo:$o(e),mergedValue:b,handleTriggerClick(){p(!0)},handleClickOutside(ie){var ce;!((ce=o.value)===null||ce===void 0)&&ce.contains(Li(ie))||p(!1)},renderPanel:se,cssVars:d?void 0:ge,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},m(_s,null,{default:()=>[m(Ms,null,{default:()=>m(vA,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),m(Rs,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===$o.tdkey,to:this.adjustedTo},{default:()=>m(mo,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?zo(this.renderPanel(),[[Hi,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),EA={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function Q7(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeColorHover:f,closeColorPressed:p,modalColor:g,boxShadow1:v,popoverColor:b,actionColor:x}=e;return Object.assign(Object.assign({},EA),{lineHeight:n,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:a,titleTextColor:l,borderColor:s,actionColor:x,titleFontWeight:u,closeColorHover:f,closeColorPressed:p,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:v,borderRadius:o})}const j3={name:"Card",common:We,self:Q7},J7={name:"Card",common:Ve,self(e){const t=Q7(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}},kA=W([A("card",` + `)])])])])]),SA=Object.assign(Object.assign({},Ie.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:$o.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),FA=ye({name:"ColorPicker",props:SA,setup(e,{slots:t}){const o=$(null);let n=null;const r=Bn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,{localeRef:l}=Fr("global"),{mergedClsPrefixRef:s,namespaceRef:u,inlineThemeDisabled:d}=rt(e),c=Ie("ColorPicker","-color-picker",wA,X7,e,s);tt(W3,{themeRef:c,renderLabelRef:Ae(e,"renderLabel"),colorPickerSlots:t});const h=$(e.defaultShow),f=oo(Ae(e,"show"),h);function p(re){const{onUpdateShow:he,"onUpdate:show":oe}=e;he&&Re(he,re),oe&&Re(oe,re),h.value=re}const{defaultValue:g}=e,v=$(g===void 0?JP(e.modes,e.showAlpha):g),b=oo(Ae(e,"value"),v),x=$([b.value]),E=$(0),w=D(()=>ss(b.value)),{modes:k}=e,_=$(ss(b.value)||k[0]||"rgb");function F(){const{modes:re}=e,{value:he}=_,oe=re.findIndex(ie=>ie===he);~oe?_.value=re[(oe+1)%re.length]:_.value="rgb"}let P,z,A,G,H,X,N,T;const O=D(()=>{const{value:re}=b;if(!re)return null;switch(w.value){case"hsv":return $i(re);case"hsl":return[P,z,A,T]=Ea(re),[...Fp(P,z,A),T];case"rgb":case"hex":return[H,X,N,T]=uo(re),[...N0(H,X,N),T]}}),R=D(()=>{const{value:re}=b;if(!re)return null;switch(w.value){case"rgb":case"hex":return uo(re);case"hsv":return[P,z,G,T]=$i(re),[...Nr(P,z,G),T];case"hsl":return[P,z,A,T]=Ea(re),[...W0(P,z,A),T]}}),L=D(()=>{const{value:re}=b;if(!re)return null;switch(w.value){case"hsl":return Ea(re);case"hsv":return[P,z,G,T]=$i(re),[...$u(P,z,G),T];case"rgb":case"hex":return[H,X,N,T]=uo(re),[...V0(H,X,N),T]}}),ne=D(()=>{switch(_.value){case"rgb":case"hex":return R.value;case"hsv":return O.value;case"hsl":return L.value}}),y=$(0),K=$(1),U=$([0,0]);function ue(re,he){const{value:oe}=O,ie=y.value,ce=oe?oe[3]:1;U.value=[re,he];const{showAlpha:ae}=e;switch(_.value){case"hsv":pe((ae?Pi:K0)([ie,re,he,ce]),"cursor");break;case"hsl":pe((ae?Gr:G0)([...$u(ie,re,he),ce]),"cursor");break;case"rgb":pe((ae?Kn:U0)([...Nr(ie,re,he),ce]),"cursor");break;case"hex":pe((ae?qr:Bl)([...Nr(ie,re,he),ce]),"cursor");break}}function se(re){y.value=re;const{value:he}=O;if(!he)return;const[,oe,ie,ce]=he,{showAlpha:ae}=e;switch(_.value){case"hsv":pe((ae?Pi:K0)([re,oe,ie,ce]),"cursor");break;case"rgb":pe((ae?Kn:U0)([...Nr(re,oe,ie),ce]),"cursor");break;case"hex":pe((ae?qr:Bl)([...Nr(re,oe,ie),ce]),"cursor");break;case"hsl":pe((ae?Gr:G0)([...$u(re,oe,ie),ce]),"cursor");break}}function Fe(re){switch(_.value){case"hsv":[P,z,G]=O.value,pe(Pi([P,z,G,re]),"cursor");break;case"rgb":[H,X,N]=R.value,pe(Kn([H,X,N,re]),"cursor");break;case"hex":[H,X,N]=R.value,pe(qr([H,X,N,re]),"cursor");break;case"hsl":[P,z,A]=L.value,pe(Gr([P,z,A,re]),"cursor");break}K.value=re}function pe(re,he){he==="cursor"?n=re:n=null;const{nTriggerFormChange:oe,nTriggerFormInput:ie}=r,{onUpdateValue:ce,"onUpdate:value":ae}=e;ce&&Re(ce,re),ae&&Re(ae,re),oe(),ie(),v.value=re}function fe(re){pe(re,"input"),Mt(Ce)}function Ce(re=!0){const{value:he}=b;if(he){const{nTriggerFormChange:oe,nTriggerFormInput:ie}=r,{onComplete:ce}=e;ce&&ce(he);const{value:ae}=x,{value:Q}=E;re&&(ae.splice(Q+1,ae.length,he),E.value=Q+1),oe(),ie()}}function ee(){const{value:re}=E;re-1<0||(pe(x.value[re-1],"input"),Ce(!1),E.value=re-1)}function q(){const{value:re}=E;re<0||re+1>=x.value.length||(pe(x.value[re+1],"input"),Ce(!1),E.value=re+1)}function Te(){pe(null,"input");const{onClear:re}=e;re&&re(),p(!1)}function Ne(){const{value:re}=b,{onConfirm:he}=e;he&&he(re),p(!1)}const j=D(()=>E.value>=1),V=D(()=>{const{value:re}=x;return re.length>1&&E.value{re||(x.value=[b.value],E.value=0)}),Et(()=>{if(!(n&&n===b.value)){const{value:re}=O;re&&(y.value=re[0],K.value=re[3],U.value=[re[1],re[2]])}n=null});const ge=D(()=>{const{value:re}=i,{common:{cubicBezierEaseInOut:he},self:{textColor:oe,color:ie,panelFontSize:ce,boxShadow:ae,border:Q,borderRadius:de,dividerColor:ve,[Ee("height",re)]:Be,[Ee("fontSize",re)]:Ge}}=c.value;return{"--n-bezier":he,"--n-text-color":oe,"--n-color":ie,"--n-panel-font-size":ce,"--n-font-size":Ge,"--n-box-shadow":ae,"--n-border":Q,"--n-border-radius":de,"--n-height":Be,"--n-divider-color":ve}}),we=d?gt("color-picker",D(()=>i.value[0]),ge,e):void 0;function le(){var re;const{value:he}=R,{value:oe}=y,{internalActions:ie,modes:ce,actions:ae}=e,{value:Q}=c,{value:de}=s;return m("div",{class:[`${de}-color-picker-panel`,we==null?void 0:we.themeClass.value],onDragstart:ve=>{ve.preventDefault()},style:d?void 0:ge.value},m("div",{class:`${de}-color-picker-control`},m(uA,{clsPrefix:de,rgba:he,displayedHue:oe,displayedSv:U.value,onUpdateSV:ue,onComplete:Ce}),m("div",{class:`${de}-color-picker-preview`},m("div",{class:`${de}-color-picker-preview__sliders`},m(aA,{clsPrefix:de,hue:oe,onUpdateHue:se,onComplete:Ce}),e.showAlpha?m(sA,{clsPrefix:de,rgba:he,alpha:K.value,onUpdateAlpha:Fe,onComplete:Ce}):null),e.showPreview?m(CA,{clsPrefix:de,mode:_.value,color:R.value&&Bl(R.value),onUpdateColor:ve=>{pe(ve,"input")}}):null),m(gA,{clsPrefix:de,showAlpha:e.showAlpha,mode:_.value,modes:ce,onUpdateMode:F,value:b.value,valueArr:ne.value,onUpdateValue:fe}),((re=e.swatches)===null||re===void 0?void 0:re.length)&&m(yA,{clsPrefix:de,mode:_.value,swatches:e.swatches,onUpdateColor:ve=>{pe(ve,"input")}})),ae!=null&&ae.length?m("div",{class:`${de}-color-picker-action`},ae.includes("confirm")&&m(Ft,{size:"small",onClick:Ne,theme:Q.peers.Button,themeOverrides:Q.peerOverrides.Button},{default:()=>l.value.confirm}),ae.includes("clear")&&m(Ft,{size:"small",onClick:Te,disabled:!b.value,theme:Q.peers.Button,themeOverrides:Q.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?m("div",{class:`${de}-color-picker-action`},{default:t.action}):ie?m("div",{class:`${de}-color-picker-action`},ie.includes("undo")&&m(Ft,{size:"small",onClick:ee,disabled:!j.value,theme:Q.peers.Button,themeOverrides:Q.peerOverrides.Button},{default:()=>l.value.undo}),ie.includes("redo")&&m(Ft,{size:"small",onClick:q,disabled:!V.value,theme:Q.peers.Button,themeOverrides:Q.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:u,selfRef:o,hsla:L,rgba:R,mergedShow:f,mergedDisabled:a,isMounted:Cr(),adjustedTo:$o(e),mergedValue:b,handleTriggerClick(){p(!0)},handleClickOutside(re){var he;!((he=o.value)===null||he===void 0)&&he.contains(Li(re))||p(!1)},renderPanel:le,cssVars:d?void 0:ge,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},m(_s,null,{default:()=>[m(Ms,null,{default:()=>m(vA,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),m(Rs,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===$o.tdkey,to:this.adjustedTo},{default:()=>m(mo,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?zo(this.renderPanel(),[[Hi,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),EA={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function Q7(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeColorHover:f,closeColorPressed:p,modalColor:g,boxShadow1:v,popoverColor:b,actionColor:x}=e;return Object.assign(Object.assign({},EA),{lineHeight:n,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:a,titleTextColor:l,borderColor:s,actionColor:x,titleFontWeight:u,closeColorHover:f,closeColorPressed:p,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:v,borderRadius:o})}const j3={name:"Card",common:We,self:Q7},J7={name:"Card",common:Ve,self(e){const t=Q7(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}},kA=W([B("card",` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -1617,13 +1617,13 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[Ap({background:"var(--n-color-modal)"}),ee("hoverable",[W("&:hover","box-shadow: var(--n-box-shadow);")]),ee("content-segmented",[W(">",[q("content",{paddingTop:"var(--n-padding-bottom)"})])]),ee("content-soft-segmented",[W(">",[q("content",` + `,[Ap({background:"var(--n-color-modal)"}),J("hoverable",[W("&:hover","box-shadow: var(--n-box-shadow);")]),J("content-segmented",[W(">",[Y("content",{paddingTop:"var(--n-padding-bottom)"})])]),J("content-soft-segmented",[W(">",[Y("content",` margin: 0 var(--n-padding-left); padding: var(--n-padding-bottom) 0; - `)])]),ee("footer-segmented",[W(">",[q("footer",{paddingTop:"var(--n-padding-bottom)"})])]),ee("footer-soft-segmented",[W(">",[q("footer",` + `)])]),J("footer-segmented",[W(">",[Y("footer",{paddingTop:"var(--n-padding-bottom)"})])]),J("footer-soft-segmented",[W(">",[Y("footer",` padding: var(--n-padding-bottom) 0; margin: 0 var(--n-padding-left); - `)])]),W(">",[A("card-header",` + `)])]),W(">",[B("card-header",` box-sizing: border-box; display: flex; align-items: center; @@ -1633,60 +1633,60 @@ ${t} var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - `,[q("main",` + `,[Y("main",` font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); flex: 1; min-width: 0; color: var(--n-title-text-color); - `),q("extra",` + `),Y("extra",` display: flex; align-items: center; font-size: var(--n-font-size); font-weight: 400; transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),q("close",` + `),Y("close",` margin: 0 0 0 8px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),q("action",` + `)]),Y("action",` box-sizing: border-box; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); background-clip: padding-box; background-color: var(--n-action-color); - `),q("content","flex: 1; min-width: 0;"),q("content, footer",` + `),Y("content","flex: 1; min-width: 0;"),Y("content, footer",` box-sizing: border-box; padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); font-size: var(--n-font-size); - `,[W("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),q("action",` + `,[W("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),Y("action",` background-color: var(--n-action-color); padding: var(--n-padding-bottom) var(--n-padding-left); border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `)]),A("card-cover",` + `)]),B("card-cover",` overflow: hidden; width: 100%; border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; `,[W("img",` display: block; width: 100%; - `)]),ee("bordered",` + `)]),J("bordered",` border: 1px solid var(--n-border-color); - `,[W("&:target","border-color: var(--n-color-target);")]),ee("action-segmented",[W(">",[q("action",[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ee("content-segmented, content-soft-segmented",[W(">",[q("content",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ee("footer-segmented, footer-soft-segmented",[W(">",[q("footer",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ee("embedded",` + `,[W("&:target","border-color: var(--n-color-target);")]),J("action-segmented",[W(">",[Y("action",[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("content-segmented, content-soft-segmented",[W(">",[Y("content",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("footer-segmented, footer-soft-segmented",[W(">",[Y("footer",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("embedded",` background-color: var(--n-color-embedded); - `)]),qi(A("card",` + `)]),qi(B("card",` background: var(--n-color-modal); - `,[ee("embedded",` + `,[J("embedded",` background-color: var(--n-color-embedded-modal); - `)])),Ha(A("card",` + `)])),Ha(B("card",` background: var(--n-color-popover); - `,[ee("embedded",` + `,[J("embedded",` background-color: var(--n-color-embedded-popover); - `)]))]),U3={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},_A=Fs(U3),MA=Object.assign(Object.assign({},Ie.props),U3),em=ye({name:"Card",props:MA,setup(e){const t=()=>{const{onClose:u}=e;u&&Re(u)},{inlineThemeDisabled:o,mergedClsPrefixRef:n,mergedRtlRef:r}=rt(e),i=Ie("Card","-card",kA,j3,e,n),a=Vt("Card",r,n),l=D(()=>{const{size:u}=e,{self:{color:d,colorModal:c,colorTarget:h,textColor:f,titleTextColor:p,titleFontWeight:g,borderColor:v,actionColor:b,borderRadius:x,lineHeight:E,closeIconColor:C,closeIconColorHover:k,closeIconColorPressed:_,closeColorHover:F,closeColorPressed:P,closeBorderRadius:z,closeIconSize:B,closeSize:j,boxShadow:V,colorPopover:K,colorEmbedded:N,colorEmbeddedModal:T,colorEmbeddedPopover:L,[Ee("padding",u)]:R,[Ee("fontSize",u)]:I,[Ee("titleFontSize",u)]:w},common:{cubicBezierEaseInOut:Q}}=i.value,{top:U,left:X,bottom:re}=Mo(R);return{"--n-bezier":Q,"--n-border-radius":x,"--n-color":d,"--n-color-modal":c,"--n-color-popover":K,"--n-color-embedded":N,"--n-color-embedded-modal":T,"--n-color-embedded-popover":L,"--n-color-target":h,"--n-text-color":f,"--n-line-height":E,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":C,"--n-close-icon-color-hover":k,"--n-close-icon-color-pressed":_,"--n-close-color-hover":F,"--n-close-color-pressed":P,"--n-border-color":v,"--n-box-shadow":V,"--n-padding-top":U,"--n-padding-bottom":re,"--n-padding-left":X,"--n-font-size":I,"--n-title-font-size":w,"--n-close-size":j,"--n-close-icon-size":B,"--n-close-border-radius":z}}),s=o?gt("card",D(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),m(l,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},bt(s.cover,u=>{const d=this.cover?pn([this.cover()]):u;return d&&m("div",{class:`${n}-card-cover`,role:"none"},d)}),bt(s.header,u=>{const{title:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c||this.closable?m("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},m("div",{class:`${n}-card-header__main`,role:"heading"},c),bt(s["header-extra"],h=>{const f=this.headerExtra?pn([this.headerExtra()]):h;return f&&m("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},f)}),this.closable&&m(li,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),bt(s.default,u=>{const{content:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c&&m("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)}),bt(s.footer,u=>{const d=this.footer?pn([this.footer()]):u;return d&&m("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),bt(s.action,u=>{const d=this.action?pn([this.action()]):u;return d&&m("div",{class:`${n}-card__action`,role:"none"},d)}))}});function tm(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const RA={name:"Carousel",common:We,self:tm},zA={name:"Carousel",common:Ve,self:tm},$A={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function om(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadiusSmall:f,lineHeight:p}=e;return Object.assign(Object.assign({},$A),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadius:f,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${$e(s,{alpha:.3})}`,textColor:u,textColorDisabled:a})}const ta={name:"Checkbox",common:We,self:om},qa={name:"Checkbox",common:Ve,self(e){const{cardColor:t}=e,o=om(e);return o.color="#0000",o.checkMarkColor=t,o}};function nm(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:u,fontSizeMedium:d,heightMedium:c}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:c,optionFontSize:d,optionColorHover:u,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const PA={name:"Cascader",common:We,peers:{InternalSelectMenu:Ka,InternalSelection:Nd,Scrollbar:Lo,Checkbox:ta,Empty:tr},self:nm},AA={name:"Cascader",common:Ve,peers:{InternalSelectMenu:Is,InternalSelection:N3,Scrollbar:Zo,Checkbox:qa,Empty:tr},self:nm},BA=m("svg",{viewBox:"0 0 64 64",class:"check-icon"},m("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),DA=m("svg",{viewBox:"0 0 100 100",class:"line-icon"},m("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),rm="n-checkbox-group",TA={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},im=ye({name:"CheckboxGroup",props:TA,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=Bn(e),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=$(e.defaultValue),a=D(()=>e.value),l=to(a,i),s=D(()=>{var c;return((c=l.value)===null||c===void 0?void 0:c.length)||0}),u=D(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(c,h){const{nTriggerFormInput:f,nTriggerFormChange:p}=o,{onChange:g,"onUpdate:value":v,onUpdateValue:b}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),E=x.findIndex(C=>C===h);c?~E||(x.push(h),b&&Re(b,x,{actionType:"check",value:h}),v&&Re(v,x,{actionType:"check",value:h}),f(),p(),i.value=x,g&&Re(g,x)):~E&&(x.splice(E,1),b&&Re(b,x,{actionType:"uncheck",value:h}),v&&Re(v,x,{actionType:"uncheck",value:h}),g&&Re(g,x),i.value=x,f(),p())}else c?(b&&Re(b,[h],{actionType:"check",value:h}),v&&Re(v,[h],{actionType:"check",value:h}),g&&Re(g,[h]),i.value=[h],f(),p()):(b&&Re(b,[],{actionType:"uncheck",value:h}),v&&Re(v,[],{actionType:"uncheck",value:h}),g&&Re(g,[]),i.value=[],f(),p())}return et(rm,{checkedCountRef:s,maxRef:Ae(e,"max"),minRef:Ae(e,"min"),valueSetRef:u,disabledRef:r,mergedSizeRef:n,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return m("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),IA=W([A("checkbox",` + `)]))]),U3={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},_A=Fs(U3),MA=Object.assign(Object.assign({},Ie.props),U3),em=ye({name:"Card",props:MA,setup(e){const t=()=>{const{onClose:u}=e;u&&Re(u)},{inlineThemeDisabled:o,mergedClsPrefixRef:n,mergedRtlRef:r}=rt(e),i=Ie("Card","-card",kA,j3,e,n),a=Wt("Card",r,n),l=D(()=>{const{size:u}=e,{self:{color:d,colorModal:c,colorTarget:h,textColor:f,titleTextColor:p,titleFontWeight:g,borderColor:v,actionColor:b,borderRadius:x,lineHeight:E,closeIconColor:w,closeIconColorHover:k,closeIconColorPressed:_,closeColorHover:F,closeColorPressed:P,closeBorderRadius:z,closeIconSize:A,closeSize:G,boxShadow:H,colorPopover:X,colorEmbedded:N,colorEmbeddedModal:T,colorEmbeddedPopover:O,[Ee("padding",u)]:R,[Ee("fontSize",u)]:L,[Ee("titleFontSize",u)]:ne},common:{cubicBezierEaseInOut:y}}=i.value,{top:K,left:U,bottom:ue}=Mo(R);return{"--n-bezier":y,"--n-border-radius":x,"--n-color":d,"--n-color-modal":c,"--n-color-popover":X,"--n-color-embedded":N,"--n-color-embedded-modal":T,"--n-color-embedded-popover":O,"--n-color-target":h,"--n-text-color":f,"--n-line-height":E,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":w,"--n-close-icon-color-hover":k,"--n-close-icon-color-pressed":_,"--n-close-color-hover":F,"--n-close-color-pressed":P,"--n-border-color":v,"--n-box-shadow":H,"--n-padding-top":K,"--n-padding-bottom":ue,"--n-padding-left":U,"--n-font-size":L,"--n-title-font-size":ne,"--n-close-size":G,"--n-close-icon-size":A,"--n-close-border-radius":z}}),s=o?gt("card",D(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),m(l,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},bt(s.cover,u=>{const d=this.cover?pn([this.cover()]):u;return d&&m("div",{class:`${n}-card-cover`,role:"none"},d)}),bt(s.header,u=>{const{title:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c||this.closable?m("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},m("div",{class:`${n}-card-header__main`,role:"heading"},c),bt(s["header-extra"],h=>{const f=this.headerExtra?pn([this.headerExtra()]):h;return f&&m("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},f)}),this.closable&&m(li,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),bt(s.default,u=>{const{content:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c&&m("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)}),bt(s.footer,u=>{const d=this.footer?pn([this.footer()]):u;return d&&m("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),bt(s.action,u=>{const d=this.action?pn([this.action()]):u;return d&&m("div",{class:`${n}-card__action`,role:"none"},d)}))}});function tm(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const RA={name:"Carousel",common:We,self:tm},zA={name:"Carousel",common:Ve,self:tm},$A={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function om(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadiusSmall:f,lineHeight:p}=e;return Object.assign(Object.assign({},$A),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadius:f,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${$e(s,{alpha:.3})}`,textColor:u,textColorDisabled:a})}const ta={name:"Checkbox",common:We,self:om},qa={name:"Checkbox",common:Ve,self(e){const{cardColor:t}=e,o=om(e);return o.color="#0000",o.checkMarkColor=t,o}};function nm(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:u,fontSizeMedium:d,heightMedium:c}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:c,optionFontSize:d,optionColorHover:u,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const PA={name:"Cascader",common:We,peers:{InternalSelectMenu:Ka,InternalSelection:Nd,Scrollbar:Lo,Checkbox:ta,Empty:tr},self:nm},AA={name:"Cascader",common:Ve,peers:{InternalSelectMenu:Is,InternalSelection:N3,Scrollbar:Zo,Checkbox:qa,Empty:tr},self:nm},BA=m("svg",{viewBox:"0 0 64 64",class:"check-icon"},m("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),DA=m("svg",{viewBox:"0 0 100 100",class:"line-icon"},m("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),rm="n-checkbox-group",TA={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},im=ye({name:"CheckboxGroup",props:TA,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=Bn(e),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=$(e.defaultValue),a=D(()=>e.value),l=oo(a,i),s=D(()=>{var c;return((c=l.value)===null||c===void 0?void 0:c.length)||0}),u=D(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(c,h){const{nTriggerFormInput:f,nTriggerFormChange:p}=o,{onChange:g,"onUpdate:value":v,onUpdateValue:b}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),E=x.findIndex(w=>w===h);c?~E||(x.push(h),b&&Re(b,x,{actionType:"check",value:h}),v&&Re(v,x,{actionType:"check",value:h}),f(),p(),i.value=x,g&&Re(g,x)):~E&&(x.splice(E,1),b&&Re(b,x,{actionType:"uncheck",value:h}),v&&Re(v,x,{actionType:"uncheck",value:h}),g&&Re(g,x),i.value=x,f(),p())}else c?(b&&Re(b,[h],{actionType:"check",value:h}),v&&Re(v,[h],{actionType:"check",value:h}),g&&Re(g,[h]),i.value=[h],f(),p()):(b&&Re(b,[],{actionType:"uncheck",value:h}),v&&Re(v,[],{actionType:"uncheck",value:h}),g&&Re(g,[]),i.value=[],f(),p())}return tt(rm,{checkedCountRef:s,maxRef:Ae(e,"max"),minRef:Ae(e,"min"),valueSetRef:u,disabledRef:r,mergedSizeRef:n,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return m("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),IA=W([B("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; @@ -1696,47 +1696,47 @@ ${t} word-break: break-word; line-height: var(--n-size); --n-merged-color-table: var(--n-color-table); - `,[ee("show-label","line-height: var(--n-label-line-height);"),W("&:hover",[A("checkbox-box",[q("border","border: var(--n-border-checked);")])]),W("&:focus:not(:active)",[A("checkbox-box",[q("border",` + `,[J("show-label","line-height: var(--n-label-line-height);"),W("&:hover",[B("checkbox-box",[Y("border","border: var(--n-border-checked);")])]),W("&:focus:not(:active)",[B("checkbox-box",[Y("border",` border: var(--n-border-focus); box-shadow: var(--n-box-shadow-focus); - `)])]),ee("inside-table",[A("checkbox-box",` + `)])]),J("inside-table",[B("checkbox-box",` background-color: var(--n-merged-color-table); - `)]),ee("checked",[A("checkbox-box",` + `)]),J("checked",[B("checkbox-box",` background-color: var(--n-color-checked); - `,[A("checkbox-icon",[W(".check-icon",` + `,[B("checkbox-icon",[W(".check-icon",` opacity: 1; transform: scale(1); - `)])])]),ee("indeterminate",[A("checkbox-box",[A("checkbox-icon",[W(".check-icon",` + `)])])]),J("indeterminate",[B("checkbox-box",[B("checkbox-icon",[W(".check-icon",` opacity: 0; transform: scale(.5); `),W(".line-icon",` opacity: 1; transform: scale(1); - `)])])]),ee("checked, indeterminate",[W("&:focus:not(:active)",[A("checkbox-box",[q("border",` + `)])])]),J("checked, indeterminate",[W("&:focus:not(:active)",[B("checkbox-box",[Y("border",` border: var(--n-border-checked); box-shadow: var(--n-box-shadow-focus); - `)])]),A("checkbox-box",` + `)])]),B("checkbox-box",` background-color: var(--n-color-checked); border-left: 0; border-top: 0; - `,[q("border",{border:"var(--n-border-checked)"})])]),ee("disabled",{cursor:"not-allowed"},[ee("checked",[A("checkbox-box",` + `,[Y("border",{border:"var(--n-border-checked)"})])]),J("disabled",{cursor:"not-allowed"},[J("checked",[B("checkbox-box",` background-color: var(--n-color-disabled-checked); - `,[q("border",{border:"var(--n-border-disabled-checked)"}),A("checkbox-icon",[W(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),A("checkbox-box",` + `,[Y("border",{border:"var(--n-border-disabled-checked)"}),B("checkbox-icon",[W(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),B("checkbox-box",` background-color: var(--n-color-disabled); - `,[q("border",` + `,[Y("border",` border: var(--n-border-disabled); - `),A("checkbox-icon",[W(".check-icon, .line-icon",` + `),B("checkbox-icon",[W(".check-icon, .line-icon",` fill: var(--n-check-mark-color-disabled); - `)])]),q("label",` + `)])]),Y("label",` color: var(--n-text-color-disabled); - `)]),A("checkbox-box-wrapper",` + `)]),B("checkbox-box-wrapper",` position: relative; width: var(--n-size); flex-shrink: 0; flex-grow: 0; user-select: none; -webkit-user-select: none; - `),A("checkbox-box",` + `),B("checkbox-box",` position: absolute; left: 0; top: 50%; @@ -1748,7 +1748,7 @@ ${t} border-radius: var(--n-border-radius); background-color: var(--n-color); transition: background-color 0.3s var(--n-bezier); - `,[q("border",` + `,[Y("border",` transition: border-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); @@ -1759,7 +1759,7 @@ ${t} top: 0; bottom: 0; border: var(--n-border); - `),A("checkbox-icon",` + `),B("checkbox-icon",` display: flex; align-items: center; justify-content: center; @@ -1779,29 +1779,29 @@ ${t} transform 0.3s var(--n-bezier), opacity 0.3s var(--n-bezier), border-color 0.3s var(--n-bezier); - `),en({left:"1px",top:"1px"})])]),q("label",` + `),en({left:"1px",top:"1px"})])]),Y("label",` color: var(--n-text-color); transition: color .3s var(--n-bezier); user-select: none; -webkit-user-select: none; padding: var(--n-label-padding); font-weight: var(--n-label-font-weight); - `,[W("&:empty",{display:"none"})])]),qi(A("checkbox",` + `,[W("&:empty",{display:"none"})])]),qi(B("checkbox",` --n-merged-color-table: var(--n-color-table-modal); - `)),Ha(A("checkbox",` + `)),Ha(B("checkbox",` --n-merged-color-table: var(--n-color-table-popover); - `))]),OA=Object.assign(Object.assign({},Ie.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Wd=ye({name:"Checkbox",props:OA,setup(e){const t=Oe(rm,null),o=$(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=rt(e),a=$(e.defaultChecked),l=Ae(e,"checked"),s=to(l,a),u=vt(()=>{if(t){const _=t.valueSetRef.value;return _&&e.value!==void 0?_.has(e.value):!1}else return s.value===e.checkedValue}),d=Bn(e,{mergedSize(_){const{size:F}=e;if(F!==void 0)return F;if(t){const{value:P}=t.mergedSizeRef;if(P!==void 0)return P}if(_){const{mergedSize:P}=_;if(P!==void 0)return P.value}return"medium"},mergedDisabled(_){const{disabled:F}=e;if(F!==void 0)return F;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:P},checkedCountRef:z}=t;if(P!==void 0&&z.value>=P&&!u.value)return!0;const{minRef:{value:B}}=t;if(B!==void 0&&z.value<=B&&u.value)return!0}return _?_.disabled.value:!1}}),{mergedDisabledRef:c,mergedSizeRef:h}=d,f=Ie("Checkbox","-checkbox",IA,ta,e,n);function p(_){if(t&&e.value!==void 0)t.toggleCheckbox(!u.value,e.value);else{const{onChange:F,"onUpdate:checked":P,onUpdateChecked:z}=e,{nTriggerFormInput:B,nTriggerFormChange:j}=d,V=u.value?e.uncheckedValue:e.checkedValue;P&&Re(P,V,_),z&&Re(z,V,_),F&&Re(F,V,_),B(),j(),a.value=V}}function g(_){c.value||p(_)}function v(_){if(!c.value)switch(_.key){case" ":case"Enter":p(_)}}function b(_){switch(_.key){case" ":_.preventDefault()}}const x={focus:()=>{var _;(_=o.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=o.value)===null||_===void 0||_.blur()}},E=Vt("Checkbox",i,n),C=D(()=>{const{value:_}=h,{common:{cubicBezierEaseInOut:F},self:{borderRadius:P,color:z,colorChecked:B,colorDisabled:j,colorTableHeader:V,colorTableHeaderModal:K,colorTableHeaderPopover:N,checkMarkColor:T,checkMarkColorDisabled:L,border:R,borderFocus:I,borderDisabled:w,borderChecked:Q,boxShadowFocus:U,textColor:X,textColorDisabled:re,checkMarkColorDisabledChecked:he,colorDisabledChecked:Se,borderDisabledChecked:pe,labelPadding:fe,labelLineHeight:we,labelFontWeight:J,[Ee("fontSize",_)]:G,[Ee("size",_)]:Te}}=f.value;return{"--n-label-line-height":we,"--n-label-font-weight":J,"--n-size":Te,"--n-bezier":F,"--n-border-radius":P,"--n-border":R,"--n-border-checked":Q,"--n-border-focus":I,"--n-border-disabled":w,"--n-border-disabled-checked":pe,"--n-box-shadow-focus":U,"--n-color":z,"--n-color-checked":B,"--n-color-table":V,"--n-color-table-modal":K,"--n-color-table-popover":N,"--n-color-disabled":j,"--n-color-disabled-checked":Se,"--n-text-color":X,"--n-text-color-disabled":re,"--n-check-mark-color":T,"--n-check-mark-color-disabled":L,"--n-check-mark-color-disabled-checked":he,"--n-font-size":G,"--n-label-padding":fe}}),k=r?gt("checkbox",D(()=>h.value[0]),C,e):void 0;return Object.assign(d,x,{rtlEnabled:E,selfRef:o,mergedClsPrefix:n,mergedDisabled:c,renderedChecked:u,mergedTheme:f,labelId:ii(),handleClick:g,handleKeyUp:v,handleKeyDown:b,cssVars:r?void 0:C,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:n,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:u,focusable:d,handleKeyUp:c,handleKeyDown:h,handleClick:f}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=bt(t.default,g=>s||g?m("span",{class:`${u}-checkbox__label`,id:l},s||g):null);return m("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,o&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,r&&`${u}-checkbox--indeterminate`,i&&`${u}-checkbox--inside-table`,p&&`${u}-checkbox--show-label`],tabindex:n||!d?void 0:0,role:"checkbox","aria-checked":r?"mixed":o,"aria-labelledby":l,style:a,onKeyup:c,onKeydown:h,onClick:f,onMousedown:()=>{Ct("selectstart",window,g=>{g.preventDefault()},{once:!0})}},m("div",{class:`${u}-checkbox-box-wrapper`}," ",m("div",{class:`${u}-checkbox-box`},m(Qi,null,{default:()=>this.indeterminate?m("div",{key:"indeterminate",class:`${u}-checkbox-icon`},DA):m("div",{key:"check",class:`${u}-checkbox-icon`},BA)}),m("div",{class:`${u}-checkbox-box__border`}))),p)}}),am={name:"Code",common:Ve,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}};function LA(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:r}}const K3={name:"Code",common:We,self:LA},HA=W([A("code",` + `))]),OA=Object.assign(Object.assign({},Ie.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Wd=ye({name:"Checkbox",props:OA,setup(e){const t=Oe(rm,null),o=$(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=rt(e),a=$(e.defaultChecked),l=Ae(e,"checked"),s=oo(l,a),u=vt(()=>{if(t){const _=t.valueSetRef.value;return _&&e.value!==void 0?_.has(e.value):!1}else return s.value===e.checkedValue}),d=Bn(e,{mergedSize(_){const{size:F}=e;if(F!==void 0)return F;if(t){const{value:P}=t.mergedSizeRef;if(P!==void 0)return P}if(_){const{mergedSize:P}=_;if(P!==void 0)return P.value}return"medium"},mergedDisabled(_){const{disabled:F}=e;if(F!==void 0)return F;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:P},checkedCountRef:z}=t;if(P!==void 0&&z.value>=P&&!u.value)return!0;const{minRef:{value:A}}=t;if(A!==void 0&&z.value<=A&&u.value)return!0}return _?_.disabled.value:!1}}),{mergedDisabledRef:c,mergedSizeRef:h}=d,f=Ie("Checkbox","-checkbox",IA,ta,e,n);function p(_){if(t&&e.value!==void 0)t.toggleCheckbox(!u.value,e.value);else{const{onChange:F,"onUpdate:checked":P,onUpdateChecked:z}=e,{nTriggerFormInput:A,nTriggerFormChange:G}=d,H=u.value?e.uncheckedValue:e.checkedValue;P&&Re(P,H,_),z&&Re(z,H,_),F&&Re(F,H,_),A(),G(),a.value=H}}function g(_){c.value||p(_)}function v(_){if(!c.value)switch(_.key){case" ":case"Enter":p(_)}}function b(_){switch(_.key){case" ":_.preventDefault()}}const x={focus:()=>{var _;(_=o.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=o.value)===null||_===void 0||_.blur()}},E=Wt("Checkbox",i,n),w=D(()=>{const{value:_}=h,{common:{cubicBezierEaseInOut:F},self:{borderRadius:P,color:z,colorChecked:A,colorDisabled:G,colorTableHeader:H,colorTableHeaderModal:X,colorTableHeaderPopover:N,checkMarkColor:T,checkMarkColorDisabled:O,border:R,borderFocus:L,borderDisabled:ne,borderChecked:y,boxShadowFocus:K,textColor:U,textColorDisabled:ue,checkMarkColorDisabledChecked:se,colorDisabledChecked:Fe,borderDisabledChecked:pe,labelPadding:fe,labelLineHeight:Ce,labelFontWeight:ee,[Ee("fontSize",_)]:q,[Ee("size",_)]:Te}}=f.value;return{"--n-label-line-height":Ce,"--n-label-font-weight":ee,"--n-size":Te,"--n-bezier":F,"--n-border-radius":P,"--n-border":R,"--n-border-checked":y,"--n-border-focus":L,"--n-border-disabled":ne,"--n-border-disabled-checked":pe,"--n-box-shadow-focus":K,"--n-color":z,"--n-color-checked":A,"--n-color-table":H,"--n-color-table-modal":X,"--n-color-table-popover":N,"--n-color-disabled":G,"--n-color-disabled-checked":Fe,"--n-text-color":U,"--n-text-color-disabled":ue,"--n-check-mark-color":T,"--n-check-mark-color-disabled":O,"--n-check-mark-color-disabled-checked":se,"--n-font-size":q,"--n-label-padding":fe}}),k=r?gt("checkbox",D(()=>h.value[0]),w,e):void 0;return Object.assign(d,x,{rtlEnabled:E,selfRef:o,mergedClsPrefix:n,mergedDisabled:c,renderedChecked:u,mergedTheme:f,labelId:ii(),handleClick:g,handleKeyUp:v,handleKeyDown:b,cssVars:r?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:n,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:u,focusable:d,handleKeyUp:c,handleKeyDown:h,handleClick:f}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=bt(t.default,g=>s||g?m("span",{class:`${u}-checkbox__label`,id:l},s||g):null);return m("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,o&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,r&&`${u}-checkbox--indeterminate`,i&&`${u}-checkbox--inside-table`,p&&`${u}-checkbox--show-label`],tabindex:n||!d?void 0:0,role:"checkbox","aria-checked":r?"mixed":o,"aria-labelledby":l,style:a,onKeyup:c,onKeydown:h,onClick:f,onMousedown:()=>{wt("selectstart",window,g=>{g.preventDefault()},{once:!0})}},m("div",{class:`${u}-checkbox-box-wrapper`}," ",m("div",{class:`${u}-checkbox-box`},m(Qi,null,{default:()=>this.indeterminate?m("div",{key:"indeterminate",class:`${u}-checkbox-icon`},DA):m("div",{key:"check",class:`${u}-checkbox-icon`},BA)}),m("div",{class:`${u}-checkbox-box__border`}))),p)}}),am={name:"Code",common:Ve,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}};function LA(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:r}}const K3={name:"Code",common:We,self:LA},HA=W([B("code",` font-size: var(--n-font-size); font-family: var(--n-font-family); - `,[ee("show-line-numbers",` + `,[J("show-line-numbers",` display: flex; - `),q("line-numbers",` + `),Y("line-numbers",` user-select: none; padding-right: 12px; text-align: right; transition: color .3s var(--n-bezier); color: var(--n-line-number-text-color); - `),ee("word-wrap",[W("pre",` + `),J("word-wrap",[W("pre",` white-space: pre-wrap; word-break: break-all; `)]),W("pre",` @@ -1861,20 +1861,20 @@ ${t} font-weight: var(--n-font-weight-strong); }`,`${t} .hljs-link { text-decoration: underline; - }`]}]),NA=Object.assign(Object.assign({},Ie.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),VA=ye({name:"Code",props:NA,setup(e,{slots:t}){const{internalNoHighlight:o}=e,{mergedClsPrefixRef:n,inlineThemeDisabled:r}=rt(),i=$(null),a=o?{value:void 0}:l7(e),l=(f,p,g)=>{const{value:v}=a;return!v||!(f&&v.getLanguage(f))?null:v.highlight(g?p.trim():p,{language:f}).value},s=D(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),u=()=>{if(t.default)return;const{value:f}=i;if(!f)return;const{language:p}=e,g=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const b=l(p,g,e.trim);if(b!==null){if(e.inline)f.innerHTML=b;else{const x=f.querySelector(".__code__");x&&f.removeChild(x);const E=document.createElement("pre");E.className="__code__",E.innerHTML=b,f.appendChild(E)}return}}if(e.inline){f.textContent=g;return}const v=f.querySelector(".__code__");if(v)v.textContent=g;else{const b=document.createElement("pre");b.className="__code__",b.textContent=g,f.innerHTML="",f.appendChild(b)}};ut(u),lt(Ae(e,"language"),u),lt(Ae(e,"code"),u),o||lt(a,u);const d=Ie("Code","-code",HA,K3,e,n),c=D(()=>{const{common:{cubicBezierEaseInOut:f,fontFamilyMono:p},self:{textColor:g,fontSize:v,fontWeightStrong:b,lineNumberTextColor:x,"mono-3":E,"hue-1":C,"hue-2":k,"hue-3":_,"hue-4":F,"hue-5":P,"hue-5-2":z,"hue-6":B,"hue-6-2":j}}=d.value,{internalFontSize:V}=e;return{"--n-font-size":V?`${V}px`:v,"--n-font-family":p,"--n-font-weight-strong":b,"--n-bezier":f,"--n-text-color":g,"--n-mono-3":E,"--n-hue-1":C,"--n-hue-2":k,"--n-hue-3":_,"--n-hue-4":F,"--n-hue-5":P,"--n-hue-5-2":z,"--n-hue-6":B,"--n-hue-6-2":j,"--n-line-number-text-color":x}}),h=r?gt("code",D(()=>`${e.internalFontSize||"a"}`),c,e):void 0;return{mergedClsPrefix:n,codeRef:i,mergedShowLineNumbers:s,lineNumbers:D(()=>{let f=1;const p=[];let g=!1;for(const v of e.code)v===` + }`]}]),NA=Object.assign(Object.assign({},Ie.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),VA=ye({name:"Code",props:NA,setup(e,{slots:t}){const{internalNoHighlight:o}=e,{mergedClsPrefixRef:n,inlineThemeDisabled:r}=rt(),i=$(null),a=o?{value:void 0}:l7(e),l=(f,p,g)=>{const{value:v}=a;return!v||!(f&&v.getLanguage(f))?null:v.highlight(g?p.trim():p,{language:f}).value},s=D(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),u=()=>{if(t.default)return;const{value:f}=i;if(!f)return;const{language:p}=e,g=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const b=l(p,g,e.trim);if(b!==null){if(e.inline)f.innerHTML=b;else{const x=f.querySelector(".__code__");x&&f.removeChild(x);const E=document.createElement("pre");E.className="__code__",E.innerHTML=b,f.appendChild(E)}return}}if(e.inline){f.textContent=g;return}const v=f.querySelector(".__code__");if(v)v.textContent=g;else{const b=document.createElement("pre");b.className="__code__",b.textContent=g,f.innerHTML="",f.appendChild(b)}};ut(u),lt(Ae(e,"language"),u),lt(Ae(e,"code"),u),o||lt(a,u);const d=Ie("Code","-code",HA,K3,e,n),c=D(()=>{const{common:{cubicBezierEaseInOut:f,fontFamilyMono:p},self:{textColor:g,fontSize:v,fontWeightStrong:b,lineNumberTextColor:x,"mono-3":E,"hue-1":w,"hue-2":k,"hue-3":_,"hue-4":F,"hue-5":P,"hue-5-2":z,"hue-6":A,"hue-6-2":G}}=d.value,{internalFontSize:H}=e;return{"--n-font-size":H?`${H}px`:v,"--n-font-family":p,"--n-font-weight-strong":b,"--n-bezier":f,"--n-text-color":g,"--n-mono-3":E,"--n-hue-1":w,"--n-hue-2":k,"--n-hue-3":_,"--n-hue-4":F,"--n-hue-5":P,"--n-hue-5-2":z,"--n-hue-6":A,"--n-hue-6-2":G,"--n-line-number-text-color":x}}),h=r?gt("code",D(()=>`${e.internalFontSize||"a"}`),c,e):void 0;return{mergedClsPrefix:n,codeRef:i,mergedShowLineNumbers:s,lineNumbers:D(()=>{let f=1;const p=[];let g=!1;for(const v of e.code)v===` `?(g=!0,p.push(f++)):g=!1;return g||p.push(f++),p.join(` -`)}),cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:o,wordWrap:n,mergedShowLineNumbers:r,onRender:i}=this;return i==null||i(),m("code",{class:[`${o}-code`,this.themeClass,n&&`${o}-code--word-wrap`,r&&`${o}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},r?m("pre",{class:`${o}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function lm(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const sm={name:"Collapse",common:We,self:lm},WA={name:"Collapse",common:Ve,self:lm},jA=A("collapse","width: 100%;",[A("collapse-item",` +`)}),cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:o,wordWrap:n,mergedShowLineNumbers:r,onRender:i}=this;return i==null||i(),m("code",{class:[`${o}-code`,this.themeClass,n&&`${o}-code--word-wrap`,r&&`${o}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},r?m("pre",{class:`${o}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function lm(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const sm={name:"Collapse",common:We,self:lm},WA={name:"Collapse",common:Ve,self:lm},jA=B("collapse","width: 100%;",[B("collapse-item",` font-size: var(--n-font-size); color: var(--n-text-color); transition: color .3s var(--n-bezier), border-color .3s var(--n-bezier); margin: var(--n-item-margin); - `,[ee("disabled",[q("header","cursor: not-allowed;",[q("header-main",` + `,[J("disabled",[Y("header","cursor: not-allowed;",[Y("header-main",` color: var(--n-title-text-color-disabled); - `),A("collapse-item-arrow",` + `),B("collapse-item-arrow",` color: var(--n-arrow-color-disabled); - `)])]),A("collapse-item","margin-left: 32px;"),W("&:first-child","margin-top: 0;"),W("&:first-child >",[q("header","padding-top: 0;")]),ee("left-arrow-placement",[q("header",[A("collapse-item-arrow","margin-right: 4px;")])]),ee("right-arrow-placement",[q("header",[A("collapse-item-arrow","margin-left: 4px;")])]),q("content-wrapper",[q("content-inner","padding-top: 16px;"),Vd({duration:"0.15s"})]),ee("active",[q("header",[ee("active",[A("collapse-item-arrow","transform: rotate(90deg);")])])]),W("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),_t("disabled",[ee("trigger-area-main",[q("header",[q("header-main","cursor: pointer;"),A("collapse-item-arrow","cursor: default;")])]),ee("trigger-area-arrow",[q("header",[A("collapse-item-arrow","cursor: pointer;")])]),ee("trigger-area-extra",[q("header",[q("header-extra","cursor: pointer;")])])]),q("header",` + `)])]),B("collapse-item","margin-left: 32px;"),W("&:first-child","margin-top: 0;"),W("&:first-child >",[Y("header","padding-top: 0;")]),J("left-arrow-placement",[Y("header",[B("collapse-item-arrow","margin-right: 4px;")])]),J("right-arrow-placement",[Y("header",[B("collapse-item-arrow","margin-left: 4px;")])]),Y("content-wrapper",[Y("content-inner","padding-top: 16px;"),Vd({duration:"0.15s"})]),J("active",[Y("header",[J("active",[B("collapse-item-arrow","transform: rotate(90deg);")])])]),W("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),_t("disabled",[J("trigger-area-main",[Y("header",[Y("header-main","cursor: pointer;"),B("collapse-item-arrow","cursor: default;")])]),J("trigger-area-arrow",[Y("header",[B("collapse-item-arrow","cursor: pointer;")])]),J("trigger-area-extra",[Y("header",[Y("header-extra","cursor: pointer;")])])]),Y("header",` font-size: var(--n-title-font-size); display: flex; flex-wrap: nowrap; @@ -1883,7 +1883,7 @@ ${t} position: relative; padding: var(--n-title-padding); color: var(--n-title-text-color); - `,[q("header-main",` + `,[Y("header-main",` display: flex; flex-wrap: nowrap; align-items: center; @@ -1891,64 +1891,64 @@ ${t} transition: color .3s var(--n-bezier); flex: 1; color: var(--n-title-text-color); - `),q("header-extra",` + `),Y("header-extra",` display: flex; align-items: center; transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),A("collapse-item-arrow",` + `),B("collapse-item-arrow",` display: flex; transition: transform .15s var(--n-bezier), color .3s var(--n-bezier); font-size: 18px; color: var(--n-arrow-color); - `)])])]),UA=Object.assign(Object.assign({},Ie.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),um="n-collapse",dm=ye({name:"Collapse",props:UA,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=$(e.defaultExpandedNames),a=D(()=>e.expandedNames),l=to(a,i),s=Ie("Collapse","-collapse",jA,sm,e,o);function u(g){const{"onUpdate:expandedNames":v,onUpdateExpandedNames:b,onExpandedNamesChange:x}=e;b&&Re(b,g),v&&Re(v,g),x&&Re(x,g),i.value=g}function d(g){const{onItemHeaderClick:v}=e;v&&Re(v,g)}function c(g,v,b){const{accordion:x}=e,{value:E}=l;if(x)g?(u([v]),d({name:v,expanded:!0,event:b})):(u([]),d({name:v,expanded:!1,event:b}));else if(!Array.isArray(E))u([v]),d({name:v,expanded:!0,event:b});else{const C=E.slice(),k=C.findIndex(_=>v===_);~k?(C.splice(k,1),u(C),d({name:v,expanded:!1,event:b})):(C.push(v),u(C),d({name:v,expanded:!0,event:b}))}}et(um,{props:e,mergedClsPrefixRef:o,expandedNamesRef:l,slots:t,toggleItem:c});const h=Vt("Collapse",r,o),f=D(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:v,dividerColor:b,titlePadding:x,titleTextColor:E,titleTextColorDisabled:C,textColor:k,arrowColor:_,fontSize:F,titleFontSize:P,arrowColorDisabled:z,itemMargin:B}}=s.value;return{"--n-font-size":F,"--n-bezier":g,"--n-text-color":k,"--n-divider-color":b,"--n-title-padding":x,"--n-title-font-size":P,"--n-title-text-color":E,"--n-title-text-color-disabled":C,"--n-title-font-weight":v,"--n-arrow-color":_,"--n-arrow-color-disabled":z,"--n-item-margin":B}}),p=n?gt("collapse",void 0,f,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:o,cssVars:n?void 0:f,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),KA=ye({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Tp(Ae(e,"show"))}},render(){return m(Ua,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:o,clsPrefix:n}=this,r=t==="show"&&o,i=m("div",{class:`${n}-collapse-item__content-wrapper`},m("div",{class:`${n}-collapse-item__content-inner`},this.$slots));return r?zo(i,[[bn,e]]):e?i:null}})}}),GA={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},cm=ye({name:"CollapseItem",props:GA,setup(e){const{mergedRtlRef:t}=rt(e),o=ii(),n=vt(()=>{var c;return(c=e.name)!==null&&c!==void 0?c:o}),r=Oe(um);r||yr("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=r,u=D(()=>{const{value:c}=i;if(Array.isArray(c)){const{value:h}=n;return!~c.findIndex(f=>f===h)}else if(c){const{value:h}=n;return h!==c}return!0});return{rtlEnabled:Vt("Collapse",t,l),collapseSlots:s,randomName:o,mergedClsPrefix:l,collapsed:u,triggerAreas:Ae(a,"triggerAreas"),mergedDisplayDirective:D(()=>{const{displayDirective:c}=e;return c||a.displayDirective}),arrowPlacement:D(()=>a.arrowPlacement),handleClick(c){let h="main";Ko(c,"arrow")&&(h="arrow"),Ko(c,"extra")&&(h="extra"),a.triggerAreas.includes(h)&&r&&!e.disabled&&r.toggleItem(u.value,n.value,c)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:o,collapsed:n,mergedDisplayDirective:r,mergedClsPrefix:i,disabled:a,triggerAreas:l}=this,s=X0(t.header,{collapsed:n},()=>[this.title]),u=t["header-extra"]||e["header-extra"],d=t.arrow||e.arrow;return m("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${o}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!n&&`${i}-collapse-item--active`,l.map(c=>`${i}-collapse-item--trigger-area-${c}`)]},m("div",{class:[`${i}-collapse-item__header`,!n&&`${i}-collapse-item__header--active`]},m("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},o==="right"&&s,m("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},X0(d,{collapsed:n},()=>{var c;return[m(Kt,{clsPrefix:i},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>this.rtlEnabled?m(zz,null):m(I3,null)})]})),o==="left"&&s),RC(u,{collapsed:n},c=>m("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},c))),m(KA,{clsPrefix:i,displayDirective:r,show:!n},t))}});function fm(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const hm={name:"CollapseTransition",common:We,self:fm},qA={name:"CollapseTransition",common:Ve,self:fm},ZA=A("collapse-transition",{width:"100%"},[Vd()]),XA=Object.assign(Object.assign({},Ie.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),YA=ye({name:"CollapseTransition",props:XA,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Ie("CollapseTransition","-collapse-transition",ZA,hm,e,t),i=Vt("CollapseTransition",n,t),a=D(()=>e.collapsed!==void 0?e.collapsed:e.show),l=D(()=>{const{self:{bezier:u}}=r.value;return{"--n-bezier":u}}),s=o?gt("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return m(Ua,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),m("div",po({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),QA={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(xn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},G3=ye({name:"ConfigProvider",alias:["App"],props:QA,setup(e){const t=Oe(ln,null),o=D(()=>{const{theme:g}=e;if(g===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return g===void 0?v:v===void 0?g:Object.assign({},v,g)}),n=D(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?g:Fi({},v,g)}}}),r=vt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=vt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),a=D(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=D(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),s=D(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:td}),u=D(()=>{var g;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const b={};for(const x of v)b[x.name]=ql(x),(g=x.peers)===null||g===void 0||g.forEach(E=>{E.name in b||(b[E.name]=ql(E))});return b}),d=D(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),c=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),f=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),p=D(()=>{const{value:g}=o,{value:v}=n,b=v&&Object.keys(v).length!==0,x=g==null?void 0:g.name;return x?b?`${x}-${Jl(JSON.stringify(n.value))}`:x:b?Jl(JSON.stringify(n.value)):""});return et(ln,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:u,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:s,mergedLocaleRef:D(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:D(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:D(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:D(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:c||!1,preflightStyleDisabled:h||!1,styleMountTarget:f}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):m(this.as||this.tag,{class:`${this.mergedClsPrefix||td}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),pm={name:"Popselect",common:Ve,peers:{Popover:ea,InternalSelectMenu:Is}};function JA(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const jd={name:"Popselect",common:We,peers:{Popover:si,InternalSelectMenu:Ka},self:JA},mm="n-popselect",eB=A("popselect-menu",` + `)])])]),UA=Object.assign(Object.assign({},Ie.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),um="n-collapse",dm=ye({name:"Collapse",props:UA,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=$(e.defaultExpandedNames),a=D(()=>e.expandedNames),l=oo(a,i),s=Ie("Collapse","-collapse",jA,sm,e,o);function u(g){const{"onUpdate:expandedNames":v,onUpdateExpandedNames:b,onExpandedNamesChange:x}=e;b&&Re(b,g),v&&Re(v,g),x&&Re(x,g),i.value=g}function d(g){const{onItemHeaderClick:v}=e;v&&Re(v,g)}function c(g,v,b){const{accordion:x}=e,{value:E}=l;if(x)g?(u([v]),d({name:v,expanded:!0,event:b})):(u([]),d({name:v,expanded:!1,event:b}));else if(!Array.isArray(E))u([v]),d({name:v,expanded:!0,event:b});else{const w=E.slice(),k=w.findIndex(_=>v===_);~k?(w.splice(k,1),u(w),d({name:v,expanded:!1,event:b})):(w.push(v),u(w),d({name:v,expanded:!0,event:b}))}}tt(um,{props:e,mergedClsPrefixRef:o,expandedNamesRef:l,slots:t,toggleItem:c});const h=Wt("Collapse",r,o),f=D(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:v,dividerColor:b,titlePadding:x,titleTextColor:E,titleTextColorDisabled:w,textColor:k,arrowColor:_,fontSize:F,titleFontSize:P,arrowColorDisabled:z,itemMargin:A}}=s.value;return{"--n-font-size":F,"--n-bezier":g,"--n-text-color":k,"--n-divider-color":b,"--n-title-padding":x,"--n-title-font-size":P,"--n-title-text-color":E,"--n-title-text-color-disabled":w,"--n-title-font-weight":v,"--n-arrow-color":_,"--n-arrow-color-disabled":z,"--n-item-margin":A}}),p=n?gt("collapse",void 0,f,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:o,cssVars:n?void 0:f,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),KA=ye({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Tp(Ae(e,"show"))}},render(){return m(Ua,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:o,clsPrefix:n}=this,r=t==="show"&&o,i=m("div",{class:`${n}-collapse-item__content-wrapper`},m("div",{class:`${n}-collapse-item__content-inner`},this.$slots));return r?zo(i,[[bn,e]]):e?i:null}})}}),GA={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},cm=ye({name:"CollapseItem",props:GA,setup(e){const{mergedRtlRef:t}=rt(e),o=ii(),n=vt(()=>{var c;return(c=e.name)!==null&&c!==void 0?c:o}),r=Oe(um);r||yr("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=r,u=D(()=>{const{value:c}=i;if(Array.isArray(c)){const{value:h}=n;return!~c.findIndex(f=>f===h)}else if(c){const{value:h}=n;return h!==c}return!0});return{rtlEnabled:Wt("Collapse",t,l),collapseSlots:s,randomName:o,mergedClsPrefix:l,collapsed:u,triggerAreas:Ae(a,"triggerAreas"),mergedDisplayDirective:D(()=>{const{displayDirective:c}=e;return c||a.displayDirective}),arrowPlacement:D(()=>a.arrowPlacement),handleClick(c){let h="main";Ko(c,"arrow")&&(h="arrow"),Ko(c,"extra")&&(h="extra"),a.triggerAreas.includes(h)&&r&&!e.disabled&&r.toggleItem(u.value,n.value,c)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:o,collapsed:n,mergedDisplayDirective:r,mergedClsPrefix:i,disabled:a,triggerAreas:l}=this,s=X0(t.header,{collapsed:n},()=>[this.title]),u=t["header-extra"]||e["header-extra"],d=t.arrow||e.arrow;return m("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${o}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!n&&`${i}-collapse-item--active`,l.map(c=>`${i}-collapse-item--trigger-area-${c}`)]},m("div",{class:[`${i}-collapse-item__header`,!n&&`${i}-collapse-item__header--active`]},m("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},o==="right"&&s,m("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},X0(d,{collapsed:n},()=>{var c;return[m(Gt,{clsPrefix:i},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>this.rtlEnabled?m(zz,null):m(I3,null)})]})),o==="left"&&s),RC(u,{collapsed:n},c=>m("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},c))),m(KA,{clsPrefix:i,displayDirective:r,show:!n},t))}});function fm(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const hm={name:"CollapseTransition",common:We,self:fm},qA={name:"CollapseTransition",common:Ve,self:fm},ZA=B("collapse-transition",{width:"100%"},[Vd()]),XA=Object.assign(Object.assign({},Ie.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),YA=ye({name:"CollapseTransition",props:XA,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Ie("CollapseTransition","-collapse-transition",ZA,hm,e,t),i=Wt("CollapseTransition",n,t),a=D(()=>e.collapsed!==void 0?e.collapsed:e.show),l=D(()=>{const{self:{bezier:u}}=r.value;return{"--n-bezier":u}}),s=o?gt("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return m(Ua,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),m("div",po({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),QA={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(xn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},G3=ye({name:"ConfigProvider",alias:["App"],props:QA,setup(e){const t=Oe(ln,null),o=D(()=>{const{theme:g}=e;if(g===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return g===void 0?v:v===void 0?g:Object.assign({},v,g)}),n=D(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?g:Fi({},v,g)}}}),r=vt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=vt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),a=D(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=D(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),s=D(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:td}),u=D(()=>{var g;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const b={};for(const x of v)b[x.name]=ql(x),(g=x.peers)===null||g===void 0||g.forEach(E=>{E.name in b||(b[E.name]=ql(E))});return b}),d=D(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),c=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),f=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),p=D(()=>{const{value:g}=o,{value:v}=n,b=v&&Object.keys(v).length!==0,x=g==null?void 0:g.name;return x?b?`${x}-${Jl(JSON.stringify(n.value))}`:x:b?Jl(JSON.stringify(n.value)):""});return tt(ln,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:u,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:s,mergedLocaleRef:D(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:D(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:D(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:D(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:c||!1,preflightStyleDisabled:h||!1,styleMountTarget:f}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):m(this.as||this.tag,{class:`${this.mergedClsPrefix||td}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),pm={name:"Popselect",common:Ve,peers:{Popover:ea,InternalSelectMenu:Is}};function JA(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const jd={name:"Popselect",common:We,peers:{Popover:si,InternalSelectMenu:Ka},self:JA},mm="n-popselect",eB=B("popselect-menu",` box-shadow: var(--n-menu-box-shadow); -`),q3={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},e4=Fs(q3),tB=ye({name:"PopselectPanel",props:q3,setup(e){const t=Oe(mm),{mergedClsPrefixRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("Popselect","-pop-select",eB,jd,t.props,o),i=D(()=>Hd(e.options,A7("value","children")));function a(h,f){const{onUpdateValue:p,"onUpdate:value":g,onChange:v}=e;p&&Re(p,h,f),g&&Re(g,h,f),v&&Re(v,h,f)}function l(h){u(h.key)}function s(h){!Ko(h,"action")&&!Ko(h,"empty")&&!Ko(h,"header")&&h.preventDefault()}function u(h){const{value:{getNode:f}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let v=!0;e.value.forEach(b=>{if(b===h){v=!1;return}const x=f(b);x&&(p.push(x.key),g.push(x.rawNode))}),v&&(p.push(h),g.push(f(h).rawNode)),a(p,g)}else{const p=f(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=f(h);p&&a(h,p.rawNode);const{"onUpdate:show":g,onUpdateShow:v}=t.props;g&&Re(g,!1),v&&Re(v,!1),t.setShow(!1)}Mt(()=>{t.syncPosition()})}lt(Ae(e,"options"),()=>{Mt(()=>{t.syncPosition()})});const d=D(()=>{const{self:{menuBoxShadow:h}}=r.value;return{"--n-menu-box-shadow":h}}),c=n?gt("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:n?void 0:d,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(b7,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),oB=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),Gi(Ba,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ba.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),q3),nB=ye({name:"Popselect",props:oB,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=Ie("Popselect","-popselect",void 0,jd,e,t),n=$(null);function r(){var l;(l=n.value)===null||l===void 0||l.syncPosition()}function i(l){var s;(s=n.value)===null||s===void 0||s.setShow(l)}return et(mm,{props:e,mergedThemeRef:o,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:n,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,n,r,i,a)=>{const{$attrs:l}=this;return m(tB,Object.assign({},l,{class:[l.class,o],style:[l.style,...r]},ei(this.$props,e4),{ref:kp(n),onMouseenter:Dl([i,l.onMouseenter]),onMouseleave:Dl([a,l.onMouseleave])}),{header:()=>{var s,u;return(u=(s=this.$slots).header)===null||u===void 0?void 0:u.call(s)},action:()=>{var s,u;return(u=(s=this.$slots).action)===null||u===void 0?void 0:u.call(s)},empty:()=>{var s,u;return(u=(s=this.$slots).empty)===null||u===void 0?void 0:u.call(s)}})}};return m(Ga,Object.assign({},Gi(this.$props,e4),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}});function gm(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Z3={name:"Select",common:We,peers:{InternalSelection:Nd,InternalSelectMenu:Ka},self:gm},vm={name:"Select",common:Ve,peers:{InternalSelection:N3,InternalSelectMenu:Is},self:gm},rB=W([A("select",` +`),q3={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},e4=Fs(q3),tB=ye({name:"PopselectPanel",props:q3,setup(e){const t=Oe(mm),{mergedClsPrefixRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("Popselect","-pop-select",eB,jd,t.props,o),i=D(()=>Hd(e.options,A7("value","children")));function a(h,f){const{onUpdateValue:p,"onUpdate:value":g,onChange:v}=e;p&&Re(p,h,f),g&&Re(g,h,f),v&&Re(v,h,f)}function l(h){u(h.key)}function s(h){!Ko(h,"action")&&!Ko(h,"empty")&&!Ko(h,"header")&&h.preventDefault()}function u(h){const{value:{getNode:f}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let v=!0;e.value.forEach(b=>{if(b===h){v=!1;return}const x=f(b);x&&(p.push(x.key),g.push(x.rawNode))}),v&&(p.push(h),g.push(f(h).rawNode)),a(p,g)}else{const p=f(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=f(h);p&&a(h,p.rawNode);const{"onUpdate:show":g,onUpdateShow:v}=t.props;g&&Re(g,!1),v&&Re(v,!1),t.setShow(!1)}Mt(()=>{t.syncPosition()})}lt(Ae(e,"options"),()=>{Mt(()=>{t.syncPosition()})});const d=D(()=>{const{self:{menuBoxShadow:h}}=r.value;return{"--n-menu-box-shadow":h}}),c=n?gt("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:n?void 0:d,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(b7,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),oB=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),Gi(Ba,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ba.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),q3),nB=ye({name:"Popselect",props:oB,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=Ie("Popselect","-popselect",void 0,jd,e,t),n=$(null);function r(){var l;(l=n.value)===null||l===void 0||l.syncPosition()}function i(l){var s;(s=n.value)===null||s===void 0||s.setShow(l)}return tt(mm,{props:e,mergedThemeRef:o,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:n,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,n,r,i,a)=>{const{$attrs:l}=this;return m(tB,Object.assign({},l,{class:[l.class,o],style:[l.style,...r]},ei(this.$props,e4),{ref:kp(n),onMouseenter:Dl([i,l.onMouseenter]),onMouseleave:Dl([a,l.onMouseleave])}),{header:()=>{var s,u;return(u=(s=this.$slots).header)===null||u===void 0?void 0:u.call(s)},action:()=>{var s,u;return(u=(s=this.$slots).action)===null||u===void 0?void 0:u.call(s)},empty:()=>{var s,u;return(u=(s=this.$slots).empty)===null||u===void 0?void 0:u.call(s)}})}};return m(Ga,Object.assign({},Gi(this.$props,e4),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}});function gm(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Z3={name:"Select",common:We,peers:{InternalSelection:Nd,InternalSelectMenu:Ka},self:gm},vm={name:"Select",common:Ve,peers:{InternalSelection:N3,InternalSelectMenu:Is},self:gm},rB=W([B("select",` z-index: auto; outline: none; width: 100%; position: relative; - `),A("select-menu",` + `),B("select-menu",` margin: 4px 0; box-shadow: var(--n-menu-box-shadow); - `,[Pn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),iB=Object.assign(Object.assign({},Ie.props),{to:$o.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),aB=ye({name:"Select",props:iB,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=rt(e),i=Ie("Select","-select",rB,Z3,e,t),a=$(e.defaultValue),l=Ae(e,"value"),s=to(l,a),u=$(!1),d=$(""),c=ts(e,["items","options"]),h=$([]),f=$([]),p=D(()=>f.value.concat(h.value).concat(c.value)),g=D(()=>{const{filter:te}=e;if(te)return te;const{labelField:me,valueField:ze}=e;return(He,je)=>{if(!je)return!1;const Ge=je[me];if(typeof Ge=="string")return Zc(He,Ge);const Ze=je[ze];return typeof Ze=="string"?Zc(He,Ze):typeof Ze=="number"?Zc(He,String(Ze)):!1}}),v=D(()=>{if(e.remote)return c.value;{const{value:te}=p,{value:me}=d;return!me.length||!e.filterable?te:rP(te,g.value,me,e.childrenField)}}),b=D(()=>{const{valueField:te,childrenField:me}=e,ze=A7(te,me);return Hd(v.value,ze)}),x=D(()=>iP(p.value,e.valueField,e.childrenField)),E=$(!1),C=to(Ae(e,"show"),E),k=$(null),_=$(null),F=$(null),{localeRef:P}=Fr("Select"),z=D(()=>{var te;return(te=e.placeholder)!==null&&te!==void 0?te:P.value.placeholder}),B=[],j=$(new Map),V=D(()=>{const{fallbackOption:te}=e;if(te===void 0){const{labelField:me,valueField:ze}=e;return He=>({[me]:String(He),[ze]:He})}return te===!1?!1:me=>Object.assign(te(me),{value:me})});function K(te){const me=e.remote,{value:ze}=j,{value:He}=x,{value:je}=V,Ge=[];return te.forEach(Ze=>{if(He.has(Ze))Ge.push(He.get(Ze));else if(me&&ze.has(Ze))Ge.push(ze.get(Ze));else if(je){const ot=je(Ze);ot&&Ge.push(ot)}}),Ge}const N=D(()=>{if(e.multiple){const{value:te}=s;return Array.isArray(te)?K(te):[]}return null}),T=D(()=>{const{value:te}=s;return!e.multiple&&!Array.isArray(te)?te===null?null:K([te])[0]||null:null}),L=Bn(e),{mergedSizeRef:R,mergedDisabledRef:I,mergedStatusRef:w}=L;function Q(te,me){const{onChange:ze,"onUpdate:value":He,onUpdateValue:je}=e,{nTriggerFormChange:Ge,nTriggerFormInput:Ze}=L;ze&&Re(ze,te,me),je&&Re(je,te,me),He&&Re(He,te,me),a.value=te,Ge(),Ze()}function U(te){const{onBlur:me}=e,{nTriggerFormBlur:ze}=L;me&&Re(me,te),ze()}function X(){const{onClear:te}=e;te&&Re(te)}function re(te){const{onFocus:me,showOnFocus:ze}=e,{nTriggerFormFocus:He}=L;me&&Re(me,te),He(),ze&&we()}function he(te){const{onSearch:me}=e;me&&Re(me,te)}function Se(te){const{onScroll:me}=e;me&&Re(me,te)}function pe(){var te;const{remote:me,multiple:ze}=e;if(me){const{value:He}=j;if(ze){const{valueField:je}=e;(te=N.value)===null||te===void 0||te.forEach(Ge=>{He.set(Ge[je],Ge)})}else{const je=T.value;je&&He.set(je[e.valueField],je)}}}function fe(te){const{onUpdateShow:me,"onUpdate:show":ze}=e;me&&Re(me,te),ze&&Re(ze,te),E.value=te}function we(){I.value||(fe(!0),E.value=!0,e.filterable&&Ye())}function J(){fe(!1)}function G(){d.value="",f.value=B}const Te=$(!1);function Ne(){e.filterable&&(Te.value=!0)}function H(){e.filterable&&(Te.value=!1,C.value||G())}function oe(){I.value||(C.value?e.filterable?Ye():J():we())}function ge(te){var me,ze;!((ze=(me=F.value)===null||me===void 0?void 0:me.selfRef)===null||ze===void 0)&&ze.contains(te.relatedTarget)||(u.value=!1,U(te),J())}function Ce(te){re(te),u.value=!0}function se(){u.value=!0}function ie(te){var me;!((me=k.value)===null||me===void 0)&&me.$el.contains(te.relatedTarget)||(u.value=!1,U(te),J())}function ce(){var te;(te=k.value)===null||te===void 0||te.focus(),J()}function ne(te){var me;C.value&&(!((me=k.value)===null||me===void 0)&&me.$el.contains(Li(te))||J())}function ae(te){if(!Array.isArray(te))return[];if(V.value)return Array.from(te);{const{remote:me}=e,{value:ze}=x;if(me){const{value:He}=j;return te.filter(je=>ze.has(je)||He.has(je))}else return te.filter(He=>ze.has(He))}}function de(te){le(te.rawNode)}function le(te){if(I.value)return;const{tag:me,remote:ze,clearFilterAfterSelect:He,valueField:je}=e;if(me&&!ze){const{value:Ge}=f,Ze=Ge[0]||null;if(Ze){const ot=h.value;ot.length?ot.push(Ze):h.value=[Ze],f.value=B}}if(ze&&j.value.set(te[je],te),e.multiple){const Ge=ae(s.value),Ze=Ge.findIndex(ot=>ot===te[je]);if(~Ze){if(Ge.splice(Ze,1),me&&!ze){const ot=Y(te[je]);~ot&&(h.value.splice(ot,1),He&&(d.value=""))}}else Ge.push(te[je]),He&&(d.value="");Q(Ge,K(Ge))}else{if(me&&!ze){const Ge=Y(te[je]);~Ge?h.value=[h.value[Ge]]:h.value=B}st(),J(),Q(te[je],te)}}function Y(te){return h.value.findIndex(ze=>ze[e.valueField]===te)}function ue(te){C.value||we();const{value:me}=te.target;d.value=me;const{tag:ze,remote:He}=e;if(he(me),ze&&!He){if(!me){f.value=B;return}const{onCreate:je}=e,Ge=je?je(me):{[e.labelField]:me,[e.valueField]:me},{valueField:Ze,labelField:ot}=e;c.value.some(yt=>yt[Ze]===Ge[Ze]||yt[ot]===Ge[ot])||h.value.some(yt=>yt[Ze]===Ge[Ze]||yt[ot]===Ge[ot])?f.value=B:f.value=[Ge]}}function ve(te){te.stopPropagation();const{multiple:me}=e;!me&&e.filterable&&J(),X(),me?Q([],[]):Q(null,null)}function Be(te){!Ko(te,"action")&&!Ko(te,"empty")&&!Ko(te,"header")&&te.preventDefault()}function Ke(te){Se(te)}function Je(te){var me,ze,He,je,Ge;if(!e.keyboard){te.preventDefault();return}switch(te.key){case" ":if(e.filterable)break;te.preventDefault();case"Enter":if(!(!((me=k.value)===null||me===void 0)&&me.isComposing)){if(C.value){const Ze=(ze=F.value)===null||ze===void 0?void 0:ze.getPendingTmNode();Ze?de(Ze):e.filterable||(J(),st())}else if(we(),e.tag&&Te.value){const Ze=f.value[0];if(Ze){const ot=Ze[e.valueField],{value:yt}=s;e.multiple&&Array.isArray(yt)&&yt.includes(ot)||le(Ze)}}}te.preventDefault();break;case"ArrowUp":if(te.preventDefault(),e.loading)return;C.value&&((He=F.value)===null||He===void 0||He.prev());break;case"ArrowDown":if(te.preventDefault(),e.loading)return;C.value?(je=F.value)===null||je===void 0||je.next():we();break;case"Escape":C.value&&(tw(te),J()),(Ge=k.value)===null||Ge===void 0||Ge.focus();break}}function st(){var te;(te=k.value)===null||te===void 0||te.focus()}function Ye(){var te;(te=k.value)===null||te===void 0||te.focusInput()}function pt(){var te;C.value&&((te=_.value)===null||te===void 0||te.syncPosition())}pe(),lt(Ae(e,"options"),pe);const Qe={focus:()=>{var te;(te=k.value)===null||te===void 0||te.focus()},focusInput:()=>{var te;(te=k.value)===null||te===void 0||te.focusInput()},blur:()=>{var te;(te=k.value)===null||te===void 0||te.blur()},blurInput:()=>{var te;(te=k.value)===null||te===void 0||te.blurInput()}},Le=D(()=>{const{self:{menuBoxShadow:te}}=i.value;return{"--n-menu-box-shadow":te}}),tt=r?gt("select",void 0,Le,e):void 0;return Object.assign(Object.assign({},Qe),{mergedStatus:w,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:b,isMounted:Cr(),triggerRef:k,menuRef:F,pattern:d,uncontrolledShow:E,mergedShow:C,adjustedTo:$o(e),uncontrolledValue:a,mergedValue:s,followerRef:_,localizedPlaceholder:z,selectedOption:T,selectedOptions:N,mergedSize:R,mergedDisabled:I,focused:u,activeWithoutMenuOpen:Te,inlineThemeDisabled:r,onTriggerInputFocus:Ne,onTriggerInputBlur:H,handleTriggerOrMenuResize:pt,handleMenuFocus:se,handleMenuBlur:ie,handleMenuTabOut:ce,handleTriggerClick:oe,handleToggle:de,handleDeleteOption:le,handlePatternInput:ue,handleClear:ve,handleTriggerBlur:ge,handleTriggerFocus:Ce,handleKeydown:Je,handleMenuAfterLeave:G,handleMenuClickOutside:ne,handleMenuScroll:Ke,handleMenuKeydown:Je,handleMenuMousedown:Be,mergedTheme:i,cssVars:r?void 0:Le,themeClass:tt==null?void 0:tt.themeClass,onRender:tt==null?void 0:tt.onRender})},render(){return m("div",{class:`${this.mergedClsPrefix}-select`},m(_s,null,{default:()=>[m(Ms,null,{default:()=>m(j$,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),m(Rs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===$o.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>m(mo,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),zo(m(b7,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,r;return[(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)]},header:()=>{var n,r;return[(r=(n=this.$slots).header)===null||r===void 0?void 0:r.call(n)]},action:()=>{var n,r;return[(r=(n=this.$slots).action)===null||r===void 0?void 0:r.call(n)]}}),this.displayDirective==="show"?[[bn,this.mergedShow],[Hi,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Hi,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),lB={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function bm(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:u,fontSizeSmall:d,fontSizeMedium:c,heightTiny:h,heightSmall:f,heightMedium:p}=e;return Object.assign(Object.assign({},lB),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:f,itemSizeLarge:p,itemFontSizeSmall:u,itemFontSizeMedium:d,itemFontSizeLarge:c,jumperFontSizeSmall:u,jumperFontSizeMedium:d,jumperFontSizeLarge:c,jumperTextColor:t,jumperTextColorDisabled:a})}const X3={name:"Pagination",common:We,peers:{Select:Z3,Input:Xo,Popselect:jd},self:bm},xm={name:"Pagination",common:Ve,peers:{Select:vm,Input:Sn,Popselect:pm},self(e){const{primaryColor:t,opacity3:o}=e,n=$e(t,{alpha:Number(o)}),r=bm(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},t4=` + `,[Pn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),iB=Object.assign(Object.assign({},Ie.props),{to:$o.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),aB=ye({name:"Select",props:iB,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=rt(e),i=Ie("Select","-select",rB,Z3,e,t),a=$(e.defaultValue),l=Ae(e,"value"),s=oo(l,a),u=$(!1),d=$(""),c=ts(e,["items","options"]),h=$([]),f=$([]),p=D(()=>f.value.concat(h.value).concat(c.value)),g=D(()=>{const{filter:te}=e;if(te)return te;const{labelField:me,valueField:ze}=e;return(He,je)=>{if(!je)return!1;const qe=je[me];if(typeof qe=="string")return Zc(He,qe);const Ze=je[ze];return typeof Ze=="string"?Zc(He,Ze):typeof Ze=="number"?Zc(He,String(Ze)):!1}}),v=D(()=>{if(e.remote)return c.value;{const{value:te}=p,{value:me}=d;return!me.length||!e.filterable?te:rP(te,g.value,me,e.childrenField)}}),b=D(()=>{const{valueField:te,childrenField:me}=e,ze=A7(te,me);return Hd(v.value,ze)}),x=D(()=>iP(p.value,e.valueField,e.childrenField)),E=$(!1),w=oo(Ae(e,"show"),E),k=$(null),_=$(null),F=$(null),{localeRef:P}=Fr("Select"),z=D(()=>{var te;return(te=e.placeholder)!==null&&te!==void 0?te:P.value.placeholder}),A=[],G=$(new Map),H=D(()=>{const{fallbackOption:te}=e;if(te===void 0){const{labelField:me,valueField:ze}=e;return He=>({[me]:String(He),[ze]:He})}return te===!1?!1:me=>Object.assign(te(me),{value:me})});function X(te){const me=e.remote,{value:ze}=G,{value:He}=x,{value:je}=H,qe=[];return te.forEach(Ze=>{if(He.has(Ze))qe.push(He.get(Ze));else if(me&&ze.has(Ze))qe.push(ze.get(Ze));else if(je){const nt=je(Ze);nt&&qe.push(nt)}}),qe}const N=D(()=>{if(e.multiple){const{value:te}=s;return Array.isArray(te)?X(te):[]}return null}),T=D(()=>{const{value:te}=s;return!e.multiple&&!Array.isArray(te)?te===null?null:X([te])[0]||null:null}),O=Bn(e),{mergedSizeRef:R,mergedDisabledRef:L,mergedStatusRef:ne}=O;function y(te,me){const{onChange:ze,"onUpdate:value":He,onUpdateValue:je}=e,{nTriggerFormChange:qe,nTriggerFormInput:Ze}=O;ze&&Re(ze,te,me),je&&Re(je,te,me),He&&Re(He,te,me),a.value=te,qe(),Ze()}function K(te){const{onBlur:me}=e,{nTriggerFormBlur:ze}=O;me&&Re(me,te),ze()}function U(){const{onClear:te}=e;te&&Re(te)}function ue(te){const{onFocus:me,showOnFocus:ze}=e,{nTriggerFormFocus:He}=O;me&&Re(me,te),He(),ze&&Ce()}function se(te){const{onSearch:me}=e;me&&Re(me,te)}function Fe(te){const{onScroll:me}=e;me&&Re(me,te)}function pe(){var te;const{remote:me,multiple:ze}=e;if(me){const{value:He}=G;if(ze){const{valueField:je}=e;(te=N.value)===null||te===void 0||te.forEach(qe=>{He.set(qe[je],qe)})}else{const je=T.value;je&&He.set(je[e.valueField],je)}}}function fe(te){const{onUpdateShow:me,"onUpdate:show":ze}=e;me&&Re(me,te),ze&&Re(ze,te),E.value=te}function Ce(){L.value||(fe(!0),E.value=!0,e.filterable&&Ye())}function ee(){fe(!1)}function q(){d.value="",f.value=A}const Te=$(!1);function Ne(){e.filterable&&(Te.value=!0)}function j(){e.filterable&&(Te.value=!1,w.value||q())}function V(){L.value||(w.value?e.filterable?Ye():ee():Ce())}function ge(te){var me,ze;!((ze=(me=F.value)===null||me===void 0?void 0:me.selfRef)===null||ze===void 0)&&ze.contains(te.relatedTarget)||(u.value=!1,K(te),ee())}function we(te){ue(te),u.value=!0}function le(){u.value=!0}function re(te){var me;!((me=k.value)===null||me===void 0)&&me.$el.contains(te.relatedTarget)||(u.value=!1,K(te),ee())}function he(){var te;(te=k.value)===null||te===void 0||te.focus(),ee()}function oe(te){var me;w.value&&(!((me=k.value)===null||me===void 0)&&me.$el.contains(Li(te))||ee())}function ie(te){if(!Array.isArray(te))return[];if(H.value)return Array.from(te);{const{remote:me}=e,{value:ze}=x;if(me){const{value:He}=G;return te.filter(je=>ze.has(je)||He.has(je))}else return te.filter(He=>ze.has(He))}}function ce(te){ae(te.rawNode)}function ae(te){if(L.value)return;const{tag:me,remote:ze,clearFilterAfterSelect:He,valueField:je}=e;if(me&&!ze){const{value:qe}=f,Ze=qe[0]||null;if(Ze){const nt=h.value;nt.length?nt.push(Ze):h.value=[Ze],f.value=A}}if(ze&&G.value.set(te[je],te),e.multiple){const qe=ie(s.value),Ze=qe.findIndex(nt=>nt===te[je]);if(~Ze){if(qe.splice(Ze,1),me&&!ze){const nt=Q(te[je]);~nt&&(h.value.splice(nt,1),He&&(d.value=""))}}else qe.push(te[je]),He&&(d.value="");y(qe,X(qe))}else{if(me&&!ze){const qe=Q(te[je]);~qe?h.value=[h.value[qe]]:h.value=A}st(),ee(),y(te[je],te)}}function Q(te){return h.value.findIndex(ze=>ze[e.valueField]===te)}function de(te){w.value||Ce();const{value:me}=te.target;d.value=me;const{tag:ze,remote:He}=e;if(se(me),ze&&!He){if(!me){f.value=A;return}const{onCreate:je}=e,qe=je?je(me):{[e.labelField]:me,[e.valueField]:me},{valueField:Ze,labelField:nt}=e;c.value.some(yt=>yt[Ze]===qe[Ze]||yt[nt]===qe[nt])||h.value.some(yt=>yt[Ze]===qe[Ze]||yt[nt]===qe[nt])?f.value=A:f.value=[qe]}}function ve(te){te.stopPropagation();const{multiple:me}=e;!me&&e.filterable&&ee(),U(),me?y([],[]):y(null,null)}function Be(te){!Ko(te,"action")&&!Ko(te,"empty")&&!Ko(te,"header")&&te.preventDefault()}function Ge(te){Fe(te)}function et(te){var me,ze,He,je,qe;if(!e.keyboard){te.preventDefault();return}switch(te.key){case" ":if(e.filterable)break;te.preventDefault();case"Enter":if(!(!((me=k.value)===null||me===void 0)&&me.isComposing)){if(w.value){const Ze=(ze=F.value)===null||ze===void 0?void 0:ze.getPendingTmNode();Ze?ce(Ze):e.filterable||(ee(),st())}else if(Ce(),e.tag&&Te.value){const Ze=f.value[0];if(Ze){const nt=Ze[e.valueField],{value:yt}=s;e.multiple&&Array.isArray(yt)&&yt.includes(nt)||ae(Ze)}}}te.preventDefault();break;case"ArrowUp":if(te.preventDefault(),e.loading)return;w.value&&((He=F.value)===null||He===void 0||He.prev());break;case"ArrowDown":if(te.preventDefault(),e.loading)return;w.value?(je=F.value)===null||je===void 0||je.next():Ce();break;case"Escape":w.value&&(tw(te),ee()),(qe=k.value)===null||qe===void 0||qe.focus();break}}function st(){var te;(te=k.value)===null||te===void 0||te.focus()}function Ye(){var te;(te=k.value)===null||te===void 0||te.focusInput()}function pt(){var te;w.value&&((te=_.value)===null||te===void 0||te.syncPosition())}pe(),lt(Ae(e,"options"),pe);const Qe={focus:()=>{var te;(te=k.value)===null||te===void 0||te.focus()},focusInput:()=>{var te;(te=k.value)===null||te===void 0||te.focusInput()},blur:()=>{var te;(te=k.value)===null||te===void 0||te.blur()},blurInput:()=>{var te;(te=k.value)===null||te===void 0||te.blurInput()}},Le=D(()=>{const{self:{menuBoxShadow:te}}=i.value;return{"--n-menu-box-shadow":te}}),ot=r?gt("select",void 0,Le,e):void 0;return Object.assign(Object.assign({},Qe),{mergedStatus:ne,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:b,isMounted:Cr(),triggerRef:k,menuRef:F,pattern:d,uncontrolledShow:E,mergedShow:w,adjustedTo:$o(e),uncontrolledValue:a,mergedValue:s,followerRef:_,localizedPlaceholder:z,selectedOption:T,selectedOptions:N,mergedSize:R,mergedDisabled:L,focused:u,activeWithoutMenuOpen:Te,inlineThemeDisabled:r,onTriggerInputFocus:Ne,onTriggerInputBlur:j,handleTriggerOrMenuResize:pt,handleMenuFocus:le,handleMenuBlur:re,handleMenuTabOut:he,handleTriggerClick:V,handleToggle:ce,handleDeleteOption:ae,handlePatternInput:de,handleClear:ve,handleTriggerBlur:ge,handleTriggerFocus:we,handleKeydown:et,handleMenuAfterLeave:q,handleMenuClickOutside:oe,handleMenuScroll:Ge,handleMenuKeydown:et,handleMenuMousedown:Be,mergedTheme:i,cssVars:r?void 0:Le,themeClass:ot==null?void 0:ot.themeClass,onRender:ot==null?void 0:ot.onRender})},render(){return m("div",{class:`${this.mergedClsPrefix}-select`},m(_s,null,{default:()=>[m(Ms,null,{default:()=>m(j$,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),m(Rs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===$o.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>m(mo,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),zo(m(b7,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,r;return[(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)]},header:()=>{var n,r;return[(r=(n=this.$slots).header)===null||r===void 0?void 0:r.call(n)]},action:()=>{var n,r;return[(r=(n=this.$slots).action)===null||r===void 0?void 0:r.call(n)]}}),this.displayDirective==="show"?[[bn,this.mergedShow],[Hi,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Hi,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),lB={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function bm(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:u,fontSizeSmall:d,fontSizeMedium:c,heightTiny:h,heightSmall:f,heightMedium:p}=e;return Object.assign(Object.assign({},lB),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:f,itemSizeLarge:p,itemFontSizeSmall:u,itemFontSizeMedium:d,itemFontSizeLarge:c,jumperFontSizeSmall:u,jumperFontSizeMedium:d,jumperFontSizeLarge:c,jumperTextColor:t,jumperTextColorDisabled:a})}const X3={name:"Pagination",common:We,peers:{Select:Z3,Input:Xo,Popselect:jd},self:bm},xm={name:"Pagination",common:Ve,peers:{Select:vm,Input:Sn,Popselect:pm},self(e){const{primaryColor:t,opacity3:o}=e,n=$e(t,{alpha:Number(o)}),r=bm(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},t4=` background: var(--n-item-color-hover); color: var(--n-item-text-color-hover); border: var(--n-item-border-hover); -`,o4=[ee("button",` +`,o4=[J("button",` background: var(--n-button-color-hover); border: var(--n-button-border-hover); color: var(--n-button-icon-color-hover); - `)],sB=A("pagination",` + `)],sB=B("pagination",` display: flex; vertical-align: middle; font-size: var(--n-item-font-size); flex-wrap: nowrap; -`,[A("pagination-prefix",` +`,[B("pagination-prefix",` display: flex; align-items: center; margin: var(--n-prefix-margin); - `),A("pagination-suffix",` + `),B("pagination-suffix",` display: flex; align-items: center; margin: var(--n-suffix-margin); `),W("> *:not(:first-child)",` margin: var(--n-item-margin); - `),A("select",` + `),B("select",` width: var(--n-select-width); - `),W("&.transition-disabled",[A("pagination-item","transition: none!important;")]),A("pagination-quick-jumper",` + `),W("&.transition-disabled",[B("pagination-item","transition: none!important;")]),B("pagination-quick-jumper",` white-space: nowrap; display: flex; color: var(--n-jumper-text-color); transition: color .3s var(--n-bezier); align-items: center; font-size: var(--n-jumper-font-size); - `,[A("input",` + `,[B("input",` margin: var(--n-input-margin); width: var(--n-input-width); - `)]),A("pagination-item",` + `)]),B("pagination-item",` position: relative; cursor: pointer; user-select: none; @@ -1970,54 +1970,54 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), fill .3s var(--n-bezier); - `,[ee("button",` + `,[J("button",` background: var(--n-button-color); color: var(--n-button-icon-color); border: var(--n-button-border); padding: 0; - `,[A("base-icon",` + `,[B("base-icon",` font-size: var(--n-button-icon-size); - `)]),_t("disabled",[ee("hover",t4,o4),W("&:hover",t4,o4),W("&:active",` + `)]),_t("disabled",[J("hover",t4,o4),W("&:hover",t4,o4),W("&:active",` background: var(--n-item-color-pressed); color: var(--n-item-text-color-pressed); border: var(--n-item-border-pressed); - `,[ee("button",` + `,[J("button",` background: var(--n-button-color-pressed); border: var(--n-button-border-pressed); color: var(--n-button-icon-color-pressed); - `)]),ee("active",` + `)]),J("active",` background: var(--n-item-color-active); color: var(--n-item-text-color-active); border: var(--n-item-border-active); `,[W("&:hover",` background: var(--n-item-color-active-hover); - `)])]),ee("disabled",` + `)])]),J("disabled",` cursor: not-allowed; color: var(--n-item-text-color-disabled); - `,[ee("active, button",` + `,[J("active, button",` background-color: var(--n-item-color-disabled); border: var(--n-item-border-disabled); - `)])]),ee("disabled",` + `)])]),J("disabled",` cursor: not-allowed; - `,[A("pagination-quick-jumper",` + `,[B("pagination-quick-jumper",` color: var(--n-jumper-text-color-disabled); - `)]),ee("simple",` + `)]),J("simple",` display: flex; align-items: center; flex-wrap: nowrap; - `,[A("pagination-quick-jumper",[A("input",` + `,[B("pagination-quick-jumper",[B("input",` margin: 0; - `)])])]);function ym(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function uB(e,t,o,n){let r=!1,i=!1,a=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,u=t;let d=e,c=e;const h=(o-5)/2;c+=Math.ceil(h),c=Math.min(Math.max(c,s+o-3),u-2),d-=Math.floor(h),d=Math.max(Math.min(d,u-o+3),s+2);let f=!1,p=!1;d>s+2&&(f=!0),c=s+1&&g.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let v=d;v<=c;++v)g.push({type:"page",label:v,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===v});return p?(i=!0,l=c+1,g.push({type:"fast-forward",active:!1,label:void 0,options:n?n4(c+1,u-1):null})):c===u-2&&g[g.length-1].label!==u-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:u-1,active:e===u-1}),g[g.length-1].label!==u&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:u,active:e===u}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:l,items:g}}function n4(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const dB=Object.assign(Object.assign({},Ie.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:$o.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),cB=ye({name:"Pagination",props:dB,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Pagination","-pagination",sB,X3,e,o),{localeRef:a}=Fr("Pagination"),l=$(null),s=$(e.defaultPage),u=$(ym(e)),d=to(Ae(e,"page"),s),c=to(Ae(e,"pageSize"),u),h=D(()=>{const{itemCount:J}=e;if(J!==void 0)return Math.max(1,Math.ceil(J/c.value));const{pageCount:G}=e;return G!==void 0?Math.max(G,1):1}),f=$("");Et(()=>{e.simple,f.value=String(d.value)});const p=$(!1),g=$(!1),v=$(!1),b=$(!1),x=()=>{e.disabled||(p.value=!0,T())},E=()=>{e.disabled||(p.value=!1,T())},C=()=>{g.value=!0,T()},k=()=>{g.value=!1,T()},_=J=>{L(J)},F=D(()=>uB(d.value,h.value,e.pageSlot,e.showQuickJumpDropdown));Et(()=>{F.value.hasFastBackward?F.value.hasFastForward||(p.value=!1,v.value=!1):(g.value=!1,b.value=!1)});const P=D(()=>{const J=a.value.selectionSuffix;return e.pageSizes.map(G=>typeof G=="number"?{label:`${G} / ${J}`,value:G}:G)}),z=D(()=>{var J,G;return((G=(J=t==null?void 0:t.value)===null||J===void 0?void 0:J.Pagination)===null||G===void 0?void 0:G.inputSize)||b2(e.size)}),B=D(()=>{var J,G;return((G=(J=t==null?void 0:t.value)===null||J===void 0?void 0:J.Pagination)===null||G===void 0?void 0:G.selectSize)||b2(e.size)}),j=D(()=>(d.value-1)*c.value),V=D(()=>{const J=d.value*c.value-1,{itemCount:G}=e;return G!==void 0&&J>G-1?G-1:J}),K=D(()=>{const{itemCount:J}=e;return J!==void 0?J:(e.pageCount||1)*c.value}),N=Vt("Pagination",r,o);function T(){Mt(()=>{var J;const{value:G}=l;G&&(G.classList.add("transition-disabled"),(J=l.value)===null||J===void 0||J.offsetWidth,G.classList.remove("transition-disabled"))})}function L(J){if(J===d.value)return;const{"onUpdate:page":G,onUpdatePage:Te,onChange:Ne,simple:H}=e;G&&Re(G,J),Te&&Re(Te,J),Ne&&Re(Ne,J),s.value=J,H&&(f.value=String(J))}function R(J){if(J===c.value)return;const{"onUpdate:pageSize":G,onUpdatePageSize:Te,onPageSizeChange:Ne}=e;G&&Re(G,J),Te&&Re(Te,J),Ne&&Re(Ne,J),u.value=J,h.value{d.value,c.value,T()});const fe=D(()=>{const{size:J}=e,{self:{buttonBorder:G,buttonBorderHover:Te,buttonBorderPressed:Ne,buttonIconColor:H,buttonIconColorHover:oe,buttonIconColorPressed:ge,itemTextColor:Ce,itemTextColorHover:se,itemTextColorPressed:ie,itemTextColorActive:ce,itemTextColorDisabled:ne,itemColor:ae,itemColorHover:de,itemColorPressed:le,itemColorActive:Y,itemColorActiveHover:ue,itemColorDisabled:ve,itemBorder:Be,itemBorderHover:Ke,itemBorderPressed:Je,itemBorderActive:st,itemBorderDisabled:Ye,itemBorderRadius:pt,jumperTextColor:Qe,jumperTextColorDisabled:Le,buttonColor:tt,buttonColorHover:te,buttonColorPressed:me,[Ee("itemPadding",J)]:ze,[Ee("itemMargin",J)]:He,[Ee("inputWidth",J)]:je,[Ee("selectWidth",J)]:Ge,[Ee("inputMargin",J)]:Ze,[Ee("selectMargin",J)]:ot,[Ee("jumperFontSize",J)]:yt,[Ee("prefixMargin",J)]:Bt,[Ee("suffixMargin",J)]:kt,[Ee("itemSize",J)]:xo,[Ee("buttonIconSize",J)]:Po,[Ee("itemFontSize",J)]:Ao,[`${Ee("itemMargin",J)}Rtl`]:No,[`${Ee("inputMargin",J)}Rtl`]:Vo},common:{cubicBezierEaseInOut:un}}=i.value;return{"--n-prefix-margin":Bt,"--n-suffix-margin":kt,"--n-item-font-size":Ao,"--n-select-width":Ge,"--n-select-margin":ot,"--n-input-width":je,"--n-input-margin":Ze,"--n-input-margin-rtl":Vo,"--n-item-size":xo,"--n-item-text-color":Ce,"--n-item-text-color-disabled":ne,"--n-item-text-color-hover":se,"--n-item-text-color-active":ce,"--n-item-text-color-pressed":ie,"--n-item-color":ae,"--n-item-color-hover":de,"--n-item-color-disabled":ve,"--n-item-color-active":Y,"--n-item-color-active-hover":ue,"--n-item-color-pressed":le,"--n-item-border":Be,"--n-item-border-hover":Ke,"--n-item-border-disabled":Ye,"--n-item-border-active":st,"--n-item-border-pressed":Je,"--n-item-padding":ze,"--n-item-border-radius":pt,"--n-bezier":un,"--n-jumper-font-size":yt,"--n-jumper-text-color":Qe,"--n-jumper-text-color-disabled":Le,"--n-item-margin":He,"--n-item-margin-rtl":No,"--n-button-icon-size":Po,"--n-button-icon-color":H,"--n-button-icon-color-hover":oe,"--n-button-icon-color-pressed":ge,"--n-button-color-hover":te,"--n-button-color":tt,"--n-button-color-pressed":me,"--n-button-border":G,"--n-button-border-hover":Te,"--n-button-border-pressed":Ne}}),we=n?gt("pagination",D(()=>{let J="";const{size:G}=e;return J+=G[0],J}),fe,e):void 0;return{rtlEnabled:N,mergedClsPrefix:o,locale:a,selfRef:l,mergedPage:d,pageItems:D(()=>F.value.items),mergedItemCount:K,jumperValue:f,pageSizeOptions:P,mergedPageSize:c,inputSize:z,selectSize:B,mergedTheme:i,mergedPageCount:h,startIndex:j,endIndex:V,showFastForwardMenu:v,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:_,handleFastForwardMouseenter:x,handleFastForwardMouseleave:E,handleFastBackwardMouseenter:C,handleFastBackwardMouseleave:k,handleJumperInput:pe,handleBackwardClick:w,handleForwardClick:I,handlePageItemClick:Se,handleSizePickerChange:X,handleQuickJumperChange:he,cssVars:n?void 0:fe,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:n,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:u,locale:d,inputSize:c,selectSize:h,mergedPageSize:f,pageSizeOptions:p,jumperValue:g,simple:v,prev:b,next:x,prefix:E,suffix:C,label:k,goto:_,handleJumperInput:F,handleSizePickerChange:P,handleBackwardClick:z,handlePageItemClick:B,handleForwardClick:j,handleQuickJumperChange:V,onRender:K}=this;K==null||K();const N=e.prefix||E,T=e.suffix||C,L=b||e.prev,R=x||e.next,I=k||e.label;return m("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,v&&`${t}-pagination--simple`],style:n},N?m("div",{class:`${t}-pagination-prefix`},N({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(w=>{switch(w){case"pages":return m(ft,null,m("div",{class:[`${t}-pagination-item`,!L&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:z},L?L({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):m(Kt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Hf,null):m(If,null)})),v?m(ft,null,m("div",{class:`${t}-pagination-quick-jumper`},m(rn,{value:g,onUpdateValue:F,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:V}))," /"," ",i):a.map((Q,U)=>{let X,re,he;const{type:Se}=Q;switch(Se){case"page":const fe=Q.label;I?X=I({type:"page",node:fe,active:Q.active}):X=fe;break;case"fast-forward":const we=this.fastForwardActive?m(Kt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Of,null):m(Lf,null)}):m(Kt,{clsPrefix:t},{default:()=>m(Nf,null)});I?X=I({type:"fast-forward",node:we,active:this.fastForwardActive||this.showFastForwardMenu}):X=we,re=this.handleFastForwardMouseenter,he=this.handleFastForwardMouseleave;break;case"fast-backward":const J=this.fastBackwardActive?m(Kt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Lf,null):m(Of,null)}):m(Kt,{clsPrefix:t},{default:()=>m(Nf,null)});I?X=I({type:"fast-backward",node:J,active:this.fastBackwardActive||this.showFastBackwardMenu}):X=J,re=this.handleFastBackwardMouseenter,he=this.handleFastBackwardMouseleave;break}const pe=m("div",{key:U,class:[`${t}-pagination-item`,Q.active&&`${t}-pagination-item--active`,Se!=="page"&&(Se==="fast-backward"&&this.showFastBackwardMenu||Se==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,Se==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{B(Q)},onMouseenter:re,onMouseleave:he},X);if(Se==="page"&&!Q.mayBeFastBackward&&!Q.mayBeFastForward)return pe;{const fe=Q.type==="page"?Q.mayBeFastBackward?"fast-backward":"fast-forward":Q.type;return Q.type!=="page"&&!Q.options?pe:m(nB,{to:this.to,key:fe,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Se==="page"?!1:Se==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:we=>{Se!=="page"&&(we?Se==="fast-backward"?this.showFastBackwardMenu=we:this.showFastForwardMenu=we:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:Q.type!=="page"&&Q.options?Q.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>pe})}}),m("div",{class:[`${t}-pagination-item`,!R&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:j},R?R({page:r,pageSize:f,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):m(Kt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(If,null):m(Hf,null)})));case"size-picker":return!v&&l?m(aB,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:f,disabled:o,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:P})):null;case"quick-jumper":return!v&&s?m("div",{class:`${t}-pagination-quick-jumper`},_?_():wo(this.$slots.goto,()=>[d.goto]),m(rn,{value:g,onUpdateValue:F,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:V})):null;default:return null}}),T?m("div",{class:`${t}-pagination-suffix`},T({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),Cm={padding:"8px 14px"},Ud={name:"Tooltip",common:Ve,peers:{Popover:ea},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},Cm),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function fB(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},Cm),{borderRadius:t,boxShadow:o,color:Ue(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Os={name:"Tooltip",common:We,peers:{Popover:si},self:fB},wm={name:"Ellipsis",common:Ve,peers:{Tooltip:Ud}},Y3={name:"Ellipsis",common:We,peers:{Tooltip:Os}},Sm={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Fm={name:"Radio",common:Ve,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},Sm),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}};function hB(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},Sm),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const Kd={name:"Radio",common:We,self:hB},pB={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function Em(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,heightSmall:h,heightMedium:f,heightLarge:p,heightHuge:g,textColor3:v,opacityDisabled:b}=e;return Object.assign(Object.assign({},pB),{optionHeightSmall:h,optionHeightMedium:f,optionHeightLarge:p,optionHeightHuge:g,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:$e(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const Gd={name:"Dropdown",common:We,peers:{Popover:si},self:Em},Q3={name:"Dropdown",common:Ve,peers:{Popover:ea},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Em(e);return r.colorInverted=n,r.optionColorActive=$e(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},mB={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function km(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:u,fontWeightStrong:d,borderRadius:c,lineHeight:h,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,dividerColor:v,heightSmall:b,opacityDisabled:x,tableColorStriped:E}=e;return Object.assign(Object.assign({},mB),{actionDividerColor:v,lineHeight:h,borderRadius:c,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ue(t,v),tdColorHover:Ue(t,l),tdColorSorting:Ue(t,l),tdColorStriped:Ue(t,E),thColor:Ue(t,a),thColorHover:Ue(Ue(t,a),l),thColorSorting:Ue(Ue(t,a),l),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:u,borderColorModal:Ue(o,v),tdColorHoverModal:Ue(o,l),tdColorSortingModal:Ue(o,l),tdColorStripedModal:Ue(o,E),thColorModal:Ue(o,a),thColorHoverModal:Ue(Ue(o,a),l),thColorSortingModal:Ue(Ue(o,a),l),tdColorModal:o,borderColorPopover:Ue(n,v),tdColorHoverPopover:Ue(n,l),tdColorSortingPopover:Ue(n,l),tdColorStripedPopover:Ue(n,E),thColorPopover:Ue(n,a),thColorHoverPopover:Ue(Ue(n,a),l),thColorSortingPopover:Ue(Ue(n,a),l),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:u,loadingSize:b,opacityLoading:x})}const _m={name:"DataTable",common:We,peers:{Button:Ho,Checkbox:ta,Radio:Kd,Pagination:X3,Scrollbar:Lo,Empty:tr,Popover:si,Ellipsis:Y3,Dropdown:Gd},self:km},gB={name:"DataTable",common:Ve,peers:{Button:Yo,Checkbox:qa,Radio:Fm,Pagination:xm,Scrollbar:Zo,Empty:Ji,Popover:ea,Ellipsis:wm,Dropdown:Q3},self(e){const t=km(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},vB=Object.assign(Object.assign({},Ba),Ie.props),bB=ye({name:"Tooltip",props:vB,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=Ie("Tooltip","-tooltip",void 0,Os,e,t),n=$(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:D(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Ga,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Mm=A("ellipsis",{overflow:"hidden"},[_t("line-clamp",` + `)])])]);function ym(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function uB(e,t,o,n){let r=!1,i=!1,a=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,u=t;let d=e,c=e;const h=(o-5)/2;c+=Math.ceil(h),c=Math.min(Math.max(c,s+o-3),u-2),d-=Math.floor(h),d=Math.max(Math.min(d,u-o+3),s+2);let f=!1,p=!1;d>s+2&&(f=!0),c=s+1&&g.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let v=d;v<=c;++v)g.push({type:"page",label:v,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===v});return p?(i=!0,l=c+1,g.push({type:"fast-forward",active:!1,label:void 0,options:n?n4(c+1,u-1):null})):c===u-2&&g[g.length-1].label!==u-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:u-1,active:e===u-1}),g[g.length-1].label!==u&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:u,active:e===u}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:l,items:g}}function n4(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const dB=Object.assign(Object.assign({},Ie.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:$o.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),cB=ye({name:"Pagination",props:dB,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Ie("Pagination","-pagination",sB,X3,e,o),{localeRef:a}=Fr("Pagination"),l=$(null),s=$(e.defaultPage),u=$(ym(e)),d=oo(Ae(e,"page"),s),c=oo(Ae(e,"pageSize"),u),h=D(()=>{const{itemCount:ee}=e;if(ee!==void 0)return Math.max(1,Math.ceil(ee/c.value));const{pageCount:q}=e;return q!==void 0?Math.max(q,1):1}),f=$("");Et(()=>{e.simple,f.value=String(d.value)});const p=$(!1),g=$(!1),v=$(!1),b=$(!1),x=()=>{e.disabled||(p.value=!0,T())},E=()=>{e.disabled||(p.value=!1,T())},w=()=>{g.value=!0,T()},k=()=>{g.value=!1,T()},_=ee=>{O(ee)},F=D(()=>uB(d.value,h.value,e.pageSlot,e.showQuickJumpDropdown));Et(()=>{F.value.hasFastBackward?F.value.hasFastForward||(p.value=!1,v.value=!1):(g.value=!1,b.value=!1)});const P=D(()=>{const ee=a.value.selectionSuffix;return e.pageSizes.map(q=>typeof q=="number"?{label:`${q} / ${ee}`,value:q}:q)}),z=D(()=>{var ee,q;return((q=(ee=t==null?void 0:t.value)===null||ee===void 0?void 0:ee.Pagination)===null||q===void 0?void 0:q.inputSize)||b2(e.size)}),A=D(()=>{var ee,q;return((q=(ee=t==null?void 0:t.value)===null||ee===void 0?void 0:ee.Pagination)===null||q===void 0?void 0:q.selectSize)||b2(e.size)}),G=D(()=>(d.value-1)*c.value),H=D(()=>{const ee=d.value*c.value-1,{itemCount:q}=e;return q!==void 0&&ee>q-1?q-1:ee}),X=D(()=>{const{itemCount:ee}=e;return ee!==void 0?ee:(e.pageCount||1)*c.value}),N=Wt("Pagination",r,o);function T(){Mt(()=>{var ee;const{value:q}=l;q&&(q.classList.add("transition-disabled"),(ee=l.value)===null||ee===void 0||ee.offsetWidth,q.classList.remove("transition-disabled"))})}function O(ee){if(ee===d.value)return;const{"onUpdate:page":q,onUpdatePage:Te,onChange:Ne,simple:j}=e;q&&Re(q,ee),Te&&Re(Te,ee),Ne&&Re(Ne,ee),s.value=ee,j&&(f.value=String(ee))}function R(ee){if(ee===c.value)return;const{"onUpdate:pageSize":q,onUpdatePageSize:Te,onPageSizeChange:Ne}=e;q&&Re(q,ee),Te&&Re(Te,ee),Ne&&Re(Ne,ee),u.value=ee,h.value{d.value,c.value,T()});const fe=D(()=>{const{size:ee}=e,{self:{buttonBorder:q,buttonBorderHover:Te,buttonBorderPressed:Ne,buttonIconColor:j,buttonIconColorHover:V,buttonIconColorPressed:ge,itemTextColor:we,itemTextColorHover:le,itemTextColorPressed:re,itemTextColorActive:he,itemTextColorDisabled:oe,itemColor:ie,itemColorHover:ce,itemColorPressed:ae,itemColorActive:Q,itemColorActiveHover:de,itemColorDisabled:ve,itemBorder:Be,itemBorderHover:Ge,itemBorderPressed:et,itemBorderActive:st,itemBorderDisabled:Ye,itemBorderRadius:pt,jumperTextColor:Qe,jumperTextColorDisabled:Le,buttonColor:ot,buttonColorHover:te,buttonColorPressed:me,[Ee("itemPadding",ee)]:ze,[Ee("itemMargin",ee)]:He,[Ee("inputWidth",ee)]:je,[Ee("selectWidth",ee)]:qe,[Ee("inputMargin",ee)]:Ze,[Ee("selectMargin",ee)]:nt,[Ee("jumperFontSize",ee)]:yt,[Ee("prefixMargin",ee)]:Bt,[Ee("suffixMargin",ee)]:kt,[Ee("itemSize",ee)]:xo,[Ee("buttonIconSize",ee)]:Po,[Ee("itemFontSize",ee)]:Ao,[`${Ee("itemMargin",ee)}Rtl`]:No,[`${Ee("inputMargin",ee)}Rtl`]:Vo},common:{cubicBezierEaseInOut:un}}=i.value;return{"--n-prefix-margin":Bt,"--n-suffix-margin":kt,"--n-item-font-size":Ao,"--n-select-width":qe,"--n-select-margin":nt,"--n-input-width":je,"--n-input-margin":Ze,"--n-input-margin-rtl":Vo,"--n-item-size":xo,"--n-item-text-color":we,"--n-item-text-color-disabled":oe,"--n-item-text-color-hover":le,"--n-item-text-color-active":he,"--n-item-text-color-pressed":re,"--n-item-color":ie,"--n-item-color-hover":ce,"--n-item-color-disabled":ve,"--n-item-color-active":Q,"--n-item-color-active-hover":de,"--n-item-color-pressed":ae,"--n-item-border":Be,"--n-item-border-hover":Ge,"--n-item-border-disabled":Ye,"--n-item-border-active":st,"--n-item-border-pressed":et,"--n-item-padding":ze,"--n-item-border-radius":pt,"--n-bezier":un,"--n-jumper-font-size":yt,"--n-jumper-text-color":Qe,"--n-jumper-text-color-disabled":Le,"--n-item-margin":He,"--n-item-margin-rtl":No,"--n-button-icon-size":Po,"--n-button-icon-color":j,"--n-button-icon-color-hover":V,"--n-button-icon-color-pressed":ge,"--n-button-color-hover":te,"--n-button-color":ot,"--n-button-color-pressed":me,"--n-button-border":q,"--n-button-border-hover":Te,"--n-button-border-pressed":Ne}}),Ce=n?gt("pagination",D(()=>{let ee="";const{size:q}=e;return ee+=q[0],ee}),fe,e):void 0;return{rtlEnabled:N,mergedClsPrefix:o,locale:a,selfRef:l,mergedPage:d,pageItems:D(()=>F.value.items),mergedItemCount:X,jumperValue:f,pageSizeOptions:P,mergedPageSize:c,inputSize:z,selectSize:A,mergedTheme:i,mergedPageCount:h,startIndex:G,endIndex:H,showFastForwardMenu:v,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:_,handleFastForwardMouseenter:x,handleFastForwardMouseleave:E,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:pe,handleBackwardClick:ne,handleForwardClick:L,handlePageItemClick:Fe,handleSizePickerChange:U,handleQuickJumperChange:se,cssVars:n?void 0:fe,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:n,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:u,locale:d,inputSize:c,selectSize:h,mergedPageSize:f,pageSizeOptions:p,jumperValue:g,simple:v,prev:b,next:x,prefix:E,suffix:w,label:k,goto:_,handleJumperInput:F,handleSizePickerChange:P,handleBackwardClick:z,handlePageItemClick:A,handleForwardClick:G,handleQuickJumperChange:H,onRender:X}=this;X==null||X();const N=e.prefix||E,T=e.suffix||w,O=b||e.prev,R=x||e.next,L=k||e.label;return m("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,v&&`${t}-pagination--simple`],style:n},N?m("div",{class:`${t}-pagination-prefix`},N({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ne=>{switch(ne){case"pages":return m(ft,null,m("div",{class:[`${t}-pagination-item`,!O&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:z},O?O({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):m(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Hf,null):m(If,null)})),v?m(ft,null,m("div",{class:`${t}-pagination-quick-jumper`},m(rn,{value:g,onUpdateValue:F,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:H}))," /"," ",i):a.map((y,K)=>{let U,ue,se;const{type:Fe}=y;switch(Fe){case"page":const fe=y.label;L?U=L({type:"page",node:fe,active:y.active}):U=fe;break;case"fast-forward":const Ce=this.fastForwardActive?m(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Of,null):m(Lf,null)}):m(Gt,{clsPrefix:t},{default:()=>m(Nf,null)});L?U=L({type:"fast-forward",node:Ce,active:this.fastForwardActive||this.showFastForwardMenu}):U=Ce,ue=this.handleFastForwardMouseenter,se=this.handleFastForwardMouseleave;break;case"fast-backward":const ee=this.fastBackwardActive?m(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Lf,null):m(Of,null)}):m(Gt,{clsPrefix:t},{default:()=>m(Nf,null)});L?U=L({type:"fast-backward",node:ee,active:this.fastBackwardActive||this.showFastBackwardMenu}):U=ee,ue=this.handleFastBackwardMouseenter,se=this.handleFastBackwardMouseleave;break}const pe=m("div",{key:K,class:[`${t}-pagination-item`,y.active&&`${t}-pagination-item--active`,Fe!=="page"&&(Fe==="fast-backward"&&this.showFastBackwardMenu||Fe==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,Fe==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{A(y)},onMouseenter:ue,onMouseleave:se},U);if(Fe==="page"&&!y.mayBeFastBackward&&!y.mayBeFastForward)return pe;{const fe=y.type==="page"?y.mayBeFastBackward?"fast-backward":"fast-forward":y.type;return y.type!=="page"&&!y.options?pe:m(nB,{to:this.to,key:fe,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Fe==="page"?!1:Fe==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ce=>{Fe!=="page"&&(Ce?Fe==="fast-backward"?this.showFastBackwardMenu=Ce:this.showFastForwardMenu=Ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:y.type!=="page"&&y.options?y.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>pe})}}),m("div",{class:[`${t}-pagination-item`,!R&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:G},R?R({page:r,pageSize:f,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):m(Gt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(If,null):m(Hf,null)})));case"size-picker":return!v&&l?m(aB,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:f,disabled:o,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:P})):null;case"quick-jumper":return!v&&s?m("div",{class:`${t}-pagination-quick-jumper`},_?_():wo(this.$slots.goto,()=>[d.goto]),m(rn,{value:g,onUpdateValue:F,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:H})):null;default:return null}}),T?m("div",{class:`${t}-pagination-suffix`},T({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),Cm={padding:"8px 14px"},Ud={name:"Tooltip",common:Ve,peers:{Popover:ea},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},Cm),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function fB(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},Cm),{borderRadius:t,boxShadow:o,color:Ue(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Os={name:"Tooltip",common:We,peers:{Popover:si},self:fB},wm={name:"Ellipsis",common:Ve,peers:{Tooltip:Ud}},Y3={name:"Ellipsis",common:We,peers:{Tooltip:Os}},Sm={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Fm={name:"Radio",common:Ve,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},Sm),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}};function hB(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},Sm),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${$e(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const Kd={name:"Radio",common:We,self:hB},pB={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function Em(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,heightSmall:h,heightMedium:f,heightLarge:p,heightHuge:g,textColor3:v,opacityDisabled:b}=e;return Object.assign(Object.assign({},pB),{optionHeightSmall:h,optionHeightMedium:f,optionHeightLarge:p,optionHeightHuge:g,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:$e(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const Gd={name:"Dropdown",common:We,peers:{Popover:si},self:Em},Q3={name:"Dropdown",common:Ve,peers:{Popover:ea},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Em(e);return r.colorInverted=n,r.optionColorActive=$e(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},mB={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function km(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:u,fontWeightStrong:d,borderRadius:c,lineHeight:h,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,dividerColor:v,heightSmall:b,opacityDisabled:x,tableColorStriped:E}=e;return Object.assign(Object.assign({},mB),{actionDividerColor:v,lineHeight:h,borderRadius:c,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ue(t,v),tdColorHover:Ue(t,l),tdColorSorting:Ue(t,l),tdColorStriped:Ue(t,E),thColor:Ue(t,a),thColorHover:Ue(Ue(t,a),l),thColorSorting:Ue(Ue(t,a),l),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:u,borderColorModal:Ue(o,v),tdColorHoverModal:Ue(o,l),tdColorSortingModal:Ue(o,l),tdColorStripedModal:Ue(o,E),thColorModal:Ue(o,a),thColorHoverModal:Ue(Ue(o,a),l),thColorSortingModal:Ue(Ue(o,a),l),tdColorModal:o,borderColorPopover:Ue(n,v),tdColorHoverPopover:Ue(n,l),tdColorSortingPopover:Ue(n,l),tdColorStripedPopover:Ue(n,E),thColorPopover:Ue(n,a),thColorHoverPopover:Ue(Ue(n,a),l),thColorSortingPopover:Ue(Ue(n,a),l),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:u,loadingSize:b,opacityLoading:x})}const _m={name:"DataTable",common:We,peers:{Button:Ho,Checkbox:ta,Radio:Kd,Pagination:X3,Scrollbar:Lo,Empty:tr,Popover:si,Ellipsis:Y3,Dropdown:Gd},self:km},gB={name:"DataTable",common:Ve,peers:{Button:Yo,Checkbox:qa,Radio:Fm,Pagination:xm,Scrollbar:Zo,Empty:Ji,Popover:ea,Ellipsis:wm,Dropdown:Q3},self(e){const t=km(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},vB=Object.assign(Object.assign({},Ba),Ie.props),bB=ye({name:"Tooltip",props:vB,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=Ie("Tooltip","-tooltip",void 0,Os,e,t),n=$(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:D(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Ga,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Mm=B("ellipsis",{overflow:"hidden"},[_t("line-clamp",` white-space: nowrap; display: inline-block; vertical-align: bottom; max-width: 100%; - `),ee("line-clamp",` + `),J("line-clamp",` display: -webkit-inline-box; -webkit-box-orient: vertical; - `),ee("cursor-pointer",` + `),J("cursor-pointer",` cursor: pointer; - `)]);function m1(e){return`${e}-ellipsis--line-clamp`}function g1(e,t){return`${e}-ellipsis--cursor-${t}`}const Rm=Object.assign(Object.assign({},Ie.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),J3=ye({name:"Ellipsis",inheritAttrs:!1,props:Rm,setup(e,{slots:t,attrs:o}){const n=a7(),r=Ie("Ellipsis","-ellipsis",Mm,Y3,e,n),i=$(null),a=$(null),l=$(null),s=$(!1),u=D(()=>{const{lineClamp:v}=e,{value:b}=s;return v!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":v}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function d(){let v=!1;const{value:b}=s;if(b)return!0;const{value:x}=i;if(x){const{lineClamp:E}=e;if(f(x),E!==void 0)v=x.scrollHeight<=x.offsetHeight;else{const{value:C}=a;C&&(v=C.getBoundingClientRect().width<=x.getBoundingClientRect().width)}p(x,v)}return v}const c=D(()=>e.expandTrigger==="click"?()=>{var v;const{value:b}=s;b&&((v=l.value)===null||v===void 0||v.setShow(!1)),s.value=!b}:void 0);wd(()=>{var v;e.tooltip&&((v=l.value)===null||v===void 0||v.setShow(!1))});const h=()=>m("span",Object.assign({},po(o,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?m1(n.value):void 0,e.expandTrigger==="click"?g1(n.value,"pointer"):void 0],style:u.value}),{ref:"triggerRef",onClick:c.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:m("span",{ref:"triggerInnerRef"},t));function f(v){if(!v)return;const b=u.value,x=m1(n.value);e.lineClamp!==void 0?g(v,x,"add"):g(v,x,"remove");for(const E in b)v.style[E]!==b[E]&&(v.style[E]=b[E])}function p(v,b){const x=g1(n.value,"pointer");e.expandTrigger==="click"&&!b?g(v,x,"add"):g(v,x,"remove")}function g(v,b,x){x==="add"?v.classList.contains(b)||v.classList.add(b):v.classList.contains(b)&&v.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:c,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:n}=this;if(t){const{mergedTheme:r}=this;return m(bB,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:o,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return o()}}),xB=ye({name:"PerformantEllipsis",props:Rm,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const n=$(!1),r=a7();return Er("-ellipsis",Mm,r),{mouseEntered:n,renderTrigger:()=>{const{lineClamp:a}=e,l=r.value;return m("span",Object.assign({},po(t,{class:[`${l}-ellipsis`,a!==void 0?m1(l):void 0,e.expandTrigger==="click"?g1(l,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{n.value=!0}}),a?o:m("span",null,o))}}},render(){return this.mouseEntered?m(J3,po({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),yB=Object.assign(Object.assign({},Ie.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Tn="n-data-table",CB=ye({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),wB=ye({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=rt(),{mergedSortStateRef:o,mergedClsPrefixRef:n}=Oe(Tn),r=D(()=>o.value.find(s=>s.columnKey===e.column.key)),i=D(()=>r.value!==void 0),a=D(()=>{const{value:s}=r;return s&&i.value?s.order:!1}),l=D(()=>{var s,u;return((u=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||u===void 0?void 0:u.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:n}=this.column;return e?m(CB,{render:e,order:t}):m("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},n?n({order:t}):m(Kt,{clsPrefix:o},{default:()=>m(Mz,null)}))}}),zm={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},$m="n-radio-group";function Pm(e){const t=Oe($m,null),o=Bn(e,{mergedSize(x){const{size:E}=e;if(E!==void 0)return E;if(t){const{mergedSizeRef:{value:C}}=t;if(C!==void 0)return C}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=$(null),a=$(null),l=$(e.defaultChecked),s=Ae(e,"checked"),u=to(s,l),d=vt(()=>t?t.valueRef.value===e.value:u.value),c=vt(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),h=$(!1);function f(){if(t){const{doUpdateValue:x}=t,{value:E}=e;Re(x,E)}else{const{onUpdateChecked:x,"onUpdate:checked":E}=e,{nTriggerFormInput:C,nTriggerFormChange:k}=o;x&&Re(x,!0),E&&Re(E,!0),C(),k(),l.value=!0}}function p(){r.value||d.value||f()}function g(){p(),i.value&&(i.value.checked=d.value)}function v(){h.value=!1}function b(){h.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:rt(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:c,mergedDisabled:r,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:g,handleRadioInputBlur:v,handleRadioInputFocus:b}}const SB=A("radio",` + `)]);function m1(e){return`${e}-ellipsis--line-clamp`}function g1(e,t){return`${e}-ellipsis--cursor-${t}`}const Rm=Object.assign(Object.assign({},Ie.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),J3=ye({name:"Ellipsis",inheritAttrs:!1,props:Rm,setup(e,{slots:t,attrs:o}){const n=a7(),r=Ie("Ellipsis","-ellipsis",Mm,Y3,e,n),i=$(null),a=$(null),l=$(null),s=$(!1),u=D(()=>{const{lineClamp:v}=e,{value:b}=s;return v!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":v}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function d(){let v=!1;const{value:b}=s;if(b)return!0;const{value:x}=i;if(x){const{lineClamp:E}=e;if(f(x),E!==void 0)v=x.scrollHeight<=x.offsetHeight;else{const{value:w}=a;w&&(v=w.getBoundingClientRect().width<=x.getBoundingClientRect().width)}p(x,v)}return v}const c=D(()=>e.expandTrigger==="click"?()=>{var v;const{value:b}=s;b&&((v=l.value)===null||v===void 0||v.setShow(!1)),s.value=!b}:void 0);wd(()=>{var v;e.tooltip&&((v=l.value)===null||v===void 0||v.setShow(!1))});const h=()=>m("span",Object.assign({},po(o,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?m1(n.value):void 0,e.expandTrigger==="click"?g1(n.value,"pointer"):void 0],style:u.value}),{ref:"triggerRef",onClick:c.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:m("span",{ref:"triggerInnerRef"},t));function f(v){if(!v)return;const b=u.value,x=m1(n.value);e.lineClamp!==void 0?g(v,x,"add"):g(v,x,"remove");for(const E in b)v.style[E]!==b[E]&&(v.style[E]=b[E])}function p(v,b){const x=g1(n.value,"pointer");e.expandTrigger==="click"&&!b?g(v,x,"add"):g(v,x,"remove")}function g(v,b,x){x==="add"?v.classList.contains(b)||v.classList.add(b):v.classList.contains(b)&&v.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:c,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:n}=this;if(t){const{mergedTheme:r}=this;return m(bB,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:o,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return o()}}),xB=ye({name:"PerformantEllipsis",props:Rm,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const n=$(!1),r=a7();return Er("-ellipsis",Mm,r),{mouseEntered:n,renderTrigger:()=>{const{lineClamp:a}=e,l=r.value;return m("span",Object.assign({},po(t,{class:[`${l}-ellipsis`,a!==void 0?m1(l):void 0,e.expandTrigger==="click"?g1(l,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{n.value=!0}}),a?o:m("span",null,o))}}},render(){return this.mouseEntered?m(J3,po({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),yB=Object.assign(Object.assign({},Ie.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Tn="n-data-table",CB=ye({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),wB=ye({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=rt(),{mergedSortStateRef:o,mergedClsPrefixRef:n}=Oe(Tn),r=D(()=>o.value.find(s=>s.columnKey===e.column.key)),i=D(()=>r.value!==void 0),a=D(()=>{const{value:s}=r;return s&&i.value?s.order:!1}),l=D(()=>{var s,u;return((u=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||u===void 0?void 0:u.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:n}=this.column;return e?m(CB,{render:e,order:t}):m("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},n?n({order:t}):m(Gt,{clsPrefix:o},{default:()=>m(Mz,null)}))}}),zm={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},$m="n-radio-group";function Pm(e){const t=Oe($m,null),o=Bn(e,{mergedSize(x){const{size:E}=e;if(E!==void 0)return E;if(t){const{mergedSizeRef:{value:w}}=t;if(w!==void 0)return w}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=$(null),a=$(null),l=$(e.defaultChecked),s=Ae(e,"checked"),u=oo(s,l),d=vt(()=>t?t.valueRef.value===e.value:u.value),c=vt(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),h=$(!1);function f(){if(t){const{doUpdateValue:x}=t,{value:E}=e;Re(x,E)}else{const{onUpdateChecked:x,"onUpdate:checked":E}=e,{nTriggerFormInput:w,nTriggerFormChange:k}=o;x&&Re(x,!0),E&&Re(E,!0),w(),k(),l.value=!0}}function p(){r.value||d.value||f()}function g(){p(),i.value&&(i.value.checked=d.value)}function v(){h.value=!1}function b(){h.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:rt(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:c,mergedDisabled:r,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:g,handleRadioInputBlur:v,handleRadioInputFocus:b}}const SB=B("radio",` line-height: var(--n-label-line-height); outline: none; position: relative; @@ -2028,14 +2028,14 @@ ${t} flex-wrap: nowrap; font-size: var(--n-font-size); word-break: break-word; -`,[ee("checked",[q("dot",` +`,[J("checked",[Y("dot",` background-color: var(--n-color-active); - `)]),q("dot-wrapper",` + `)]),Y("dot-wrapper",` position: relative; flex-shrink: 0; flex-grow: 0; width: var(--n-radio-size); - `),A("radio-input",` + `),B("radio-input",` position: absolute; border: 0; border-radius: inherit; @@ -2046,7 +2046,7 @@ ${t} opacity: 0; z-index: 1; cursor: pointer; - `),q("dot",` + `),Y("dot",` position: absolute; top: 50%; left: 0; @@ -2074,10 +2074,10 @@ ${t} opacity .3s var(--n-bezier), background-color .3s var(--n-bezier), transform .3s var(--n-bezier); - `),ee("checked",{boxShadow:"var(--n-box-shadow-active)"},[W("&::before",` + `),J("checked",{boxShadow:"var(--n-box-shadow-active)"},[W("&::before",` opacity: 1; transform: scale(1); - `)])]),q("label",` + `)])]),Y("label",` color: var(--n-text-color); padding: var(--n-label-padding); font-weight: var(--n-label-font-weight); @@ -2085,16 +2085,16 @@ ${t} transition: color .3s var(--n-bezier); `),_t("disabled",` cursor: pointer; - `,[W("&:hover",[q("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),ee("focus",[W("&:not(:active)",[q("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),ee("disabled",` + `,[W("&:hover",[Y("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),J("focus",[W("&:not(:active)",[Y("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),J("disabled",` cursor: not-allowed; - `,[q("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[W("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),ee("checked",` + `,[Y("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[W("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),J("checked",` opacity: 1; - `)]),q("label",{color:"var(--n-text-color-disabled)"}),A("radio-input",` + `)]),Y("label",{color:"var(--n-text-color-disabled)"}),B("radio-input",` cursor: not-allowed; - `)])]),FB=Object.assign(Object.assign({},Ie.props),zm),Am=ye({name:"Radio",props:FB,setup(e){const t=Pm(e),o=Ie("Radio","-radio",SB,Kd,e,t.mergedClsPrefix),n=D(()=>{const{mergedSize:{value:u}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:c,boxShadowActive:h,boxShadowDisabled:f,boxShadowFocus:p,boxShadowHover:g,color:v,colorDisabled:b,colorActive:x,textColor:E,textColorDisabled:C,dotColorActive:k,dotColorDisabled:_,labelPadding:F,labelLineHeight:P,labelFontWeight:z,[Ee("fontSize",u)]:B,[Ee("radioSize",u)]:j}}=o.value;return{"--n-bezier":d,"--n-label-line-height":P,"--n-label-font-weight":z,"--n-box-shadow":c,"--n-box-shadow-active":h,"--n-box-shadow-disabled":f,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":v,"--n-color-active":x,"--n-color-disabled":b,"--n-dot-color-active":k,"--n-dot-color-disabled":_,"--n-font-size":B,"--n-radio-size":j,"--n-text-color":E,"--n-text-color-disabled":C,"--n-label-padding":F}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=rt(e),l=Vt("Radio",a,i),s=r?gt("radio",D(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:r?void 0:n,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:n}=this;return o==null||o(),m("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},m("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${t}-radio__dot-wrapper`}," ",m("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),bt(e.default,r=>!r&&!n?null:m("div",{ref:"labelRef",class:`${t}-radio__label`},r||n)))}}),EB=A("radio-group",` + `)])]),FB=Object.assign(Object.assign({},Ie.props),zm),Am=ye({name:"Radio",props:FB,setup(e){const t=Pm(e),o=Ie("Radio","-radio",SB,Kd,e,t.mergedClsPrefix),n=D(()=>{const{mergedSize:{value:u}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:c,boxShadowActive:h,boxShadowDisabled:f,boxShadowFocus:p,boxShadowHover:g,color:v,colorDisabled:b,colorActive:x,textColor:E,textColorDisabled:w,dotColorActive:k,dotColorDisabled:_,labelPadding:F,labelLineHeight:P,labelFontWeight:z,[Ee("fontSize",u)]:A,[Ee("radioSize",u)]:G}}=o.value;return{"--n-bezier":d,"--n-label-line-height":P,"--n-label-font-weight":z,"--n-box-shadow":c,"--n-box-shadow-active":h,"--n-box-shadow-disabled":f,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":v,"--n-color-active":x,"--n-color-disabled":b,"--n-dot-color-active":k,"--n-dot-color-disabled":_,"--n-font-size":A,"--n-radio-size":G,"--n-text-color":E,"--n-text-color-disabled":w,"--n-label-padding":F}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=rt(e),l=Wt("Radio",a,i),s=r?gt("radio",D(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:r?void 0:n,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:n}=this;return o==null||o(),m("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},m("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${t}-radio__dot-wrapper`}," ",m("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),bt(e.default,r=>!r&&!n?null:m("div",{ref:"labelRef",class:`${t}-radio__label`},r||n)))}}),EB=B("radio-group",` display: inline-block; font-size: var(--n-font-size); -`,[q("splitor",` +`,[Y("splitor",` display: inline-block; vertical-align: bottom; width: 1px; @@ -2102,11 +2102,11 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier); background: var(--n-button-border-color); - `,[ee("checked",{backgroundColor:"var(--n-button-border-color-active)"}),ee("disabled",{opacity:"var(--n-opacity-disabled)"})]),ee("button-group",` + `,[J("checked",{backgroundColor:"var(--n-button-border-color-active)"}),J("disabled",{opacity:"var(--n-opacity-disabled)"})]),J("button-group",` white-space: nowrap; height: var(--n-height); line-height: var(--n-height); - `,[A("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),q("splitor",{height:"var(--n-height)"})]),A("radio-button",` + `,[B("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),Y("splitor",{height:"var(--n-height)"})]),B("radio-button",` vertical-align: bottom; outline: none; position: relative; @@ -2126,7 +2126,7 @@ ${t} color: var(--n-button-text-color); border-top: 1px solid var(--n-button-border-color); border-bottom: 1px solid var(--n-button-border-color); - `,[A("radio-input",` + `,[B("radio-input",` pointer-events: none; position: absolute; border: 0; @@ -2137,7 +2137,7 @@ ${t} bottom: 0; opacity: 0; z-index: 1; - `),q("state-border",` + `),Y("state-border",` z-index: 1; pointer-events: none; position: absolute; @@ -2151,30 +2151,30 @@ ${t} border-top-left-radius: var(--n-button-border-radius); border-bottom-left-radius: var(--n-button-border-radius); border-left: 1px solid var(--n-button-border-color); - `,[q("state-border",` + `,[Y("state-border",` border-top-left-radius: var(--n-button-border-radius); border-bottom-left-radius: var(--n-button-border-radius); `)]),W("&:last-child",` border-top-right-radius: var(--n-button-border-radius); border-bottom-right-radius: var(--n-button-border-radius); border-right: 1px solid var(--n-button-border-color); - `,[q("state-border",` + `,[Y("state-border",` border-top-right-radius: var(--n-button-border-radius); border-bottom-right-radius: var(--n-button-border-radius); `)]),_t("disabled",` cursor: pointer; - `,[W("&:hover",[q("state-border",` + `,[W("&:hover",[Y("state-border",` transition: box-shadow .3s var(--n-bezier); box-shadow: var(--n-button-box-shadow-hover); - `),_t("checked",{color:"var(--n-button-text-color-hover)"})]),ee("focus",[W("&:not(:active)",[q("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),ee("checked",` + `),_t("checked",{color:"var(--n-button-text-color-hover)"})]),J("focus",[W("&:not(:active)",[Y("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),J("checked",` background: var(--n-button-color-active); color: var(--n-button-text-color-active); border-color: var(--n-button-border-color-active); - `),ee("disabled",` + `),J("disabled",` cursor: not-allowed; opacity: var(--n-opacity-disabled); - `)])]);function kB(e,t,o){var n;const r=[];let i=!1;for(let a=0;a{const{value:k}=o,{common:{cubicBezierEaseInOut:_},self:{buttonBorderColor:F,buttonBorderColorActive:P,buttonBorderRadius:z,buttonBoxShadow:B,buttonBoxShadowFocus:j,buttonBoxShadowHover:V,buttonColor:K,buttonColorActive:N,buttonTextColor:T,buttonTextColorActive:L,buttonTextColorHover:R,opacityDisabled:I,[Ee("buttonHeight",k)]:w,[Ee("fontSize",k)]:Q}}=c.value;return{"--n-font-size":Q,"--n-bezier":_,"--n-button-border-color":F,"--n-button-border-color-active":P,"--n-button-border-radius":z,"--n-button-box-shadow":B,"--n-button-box-shadow-focus":j,"--n-button-box-shadow-hover":V,"--n-button-color":K,"--n-button-color-active":N,"--n-button-text-color":T,"--n-button-text-color-hover":R,"--n-button-text-color-active":L,"--n-height":w,"--n-opacity-disabled":I}}),C=u?gt("radio-group",D(()=>o.value[0]),E,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:p,handleFocusout:b,handleFocusin:v,cssVars:u?void 0:E,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:n,handleFocusout:r}=this,{children:i,isButtonGroup:a}=kB(vr(c3(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{onFocusin:n,onFocusout:r,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,a&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),MB=ye({name:"RadioButton",props:zm,setup:Pm,render(){const{mergedClsPrefix:e}=this;return m("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},m("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${e}-radio-button__state-border`}),bt(this.$slots.default,t=>!t&&!this.label?null:m("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Dm=40,Tm=40;function r4(e){if(e.type==="selection")return e.width===void 0?Dm:so(e.width);if(e.type==="expand")return e.width===void 0?Tm:so(e.width);if(!("children"in e))return typeof e.width=="string"?so(e.width):e.width}function RB(e){var t,o;if(e.type==="selection")return So((t=e.width)!==null&&t!==void 0?t:Dm);if(e.type==="expand")return So((o=e.width)!==null&&o!==void 0?o:Tm);if(!("children"in e))return So(e.width)}function En(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function i4(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function zB(e){return e==="ascend"?1:e==="descend"?-1:0}function $B(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function PB(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=RB(e),{minWidth:n,maxWidth:r}=e;return{width:o,minWidth:So(n)||o,maxWidth:So(r)}}function AB(e,t,o){return typeof o=="function"?o(e,t):o||""}function Jc(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function e0(e){return"children"in e?!1:!!e.sorter}function Im(e){return"children"in e&&e.children.length?!1:!!e.resizable}function a4(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function l4(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function BB(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:l4(!1)}:Object.assign(Object.assign({},t),{order:l4(t.order)})}function Om(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function DB(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function TB(e,t){const o=e.filter(i=>i.type!=="expand"&&i.type!=="selection"&&i.allowExport!==!1),n=o.map(i=>i.title).join(","),r=t.map(i=>o.map(a=>DB(i[a.key])).join(","));return[n,...r].join(` -`)}const IB=ye({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Vt("DataTable",o,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Oe(Tn),l=$(e.value),s=D(()=>{const{value:p}=l;return Array.isArray(p)?p:null}),u=D(()=>{const{value:p}=l;return Jc(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function d(p){e.onChange(p)}function c(p){e.multiple&&Array.isArray(p)?l.value=p:Jc(e.column)&&!Array.isArray(p)?l.value=[p]:l.value=p}function h(){d(l.value),e.onConfirm()}function f(){e.multiple||Jc(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:n,mergedTheme:i,locale:a,checkboxGroupValue:s,radioGroupValue:u,handleChange:c,handleConfirmClick:h,handleClearClick:f}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return m("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},m(or,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?m(im,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>m(Wd,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):m(Bm,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>m(Am,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),m("div",{class:`${o}-data-table-filter-menu__action`},m(Ft,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),m(Ft,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),OB=ye({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function LB(e,t,o){const n=Object.assign({},e);return n[t]=o,n}const HB=ye({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=rt(),{mergedThemeRef:o,mergedClsPrefixRef:n,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s,filterIconPopoverPropsRef:u}=Oe(Tn),d=$(!1),c=r,h=D(()=>e.column.filterMultiple!==!1),f=D(()=>{const E=c.value[e.column.key];if(E===void 0){const{value:C}=h;return C?[]:null}return E}),p=D(()=>{const{value:E}=f;return Array.isArray(E)?E.length>0:E!==null}),g=D(()=>{var E,C;return((C=(E=t==null?void 0:t.value)===null||E===void 0?void 0:E.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function v(E){const C=LB(c.value,e.column.key,E);s(C,e.column),a.value==="first"&&l(1)}function b(){d.value=!1}function x(){d.value=!1}return{mergedTheme:o,mergedClsPrefix:n,active:p,showPopover:d,mergedRenderFilter:g,filterIconPopoverProps:u,filterMultiple:h,mergedFilterValue:f,filterMenuCssVars:i,handleFilterChange:v,handleFilterMenuConfirm:x,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:n}=this;return m(Ga,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},n,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return m(OB,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return m("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):m(Kt,{clsPrefix:t},{default:()=>m(Dz,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:o}):m(IB,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),NB=ye({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Oe(Tn),o=$(!1);let n=0;function r(s){return s.clientX}function i(s){var u;s.preventDefault();const d=o.value;n=r(s),o.value=!0,d||(Ct("mousemove",window,a),Ct("mouseup",window,l),(u=e.onResizeStart)===null||u===void 0||u.call(e))}function a(s){var u;(u=e.onResize)===null||u===void 0||u.call(e,r(s)-n)}function l(){var s;o.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Xt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return m("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Lm=ye({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return m("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function Hm(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const Nm={name:"Icon",common:We,self:Hm},VB={name:"Icon",common:Ve,self:Hm},WB=A("icon",` + `)])]);function kB(e,t,o){var n;const r=[];let i=!1;for(let a=0;a{const{value:k}=o,{common:{cubicBezierEaseInOut:_},self:{buttonBorderColor:F,buttonBorderColorActive:P,buttonBorderRadius:z,buttonBoxShadow:A,buttonBoxShadowFocus:G,buttonBoxShadowHover:H,buttonColor:X,buttonColorActive:N,buttonTextColor:T,buttonTextColorActive:O,buttonTextColorHover:R,opacityDisabled:L,[Ee("buttonHeight",k)]:ne,[Ee("fontSize",k)]:y}}=c.value;return{"--n-font-size":y,"--n-bezier":_,"--n-button-border-color":F,"--n-button-border-color-active":P,"--n-button-border-radius":z,"--n-button-box-shadow":A,"--n-button-box-shadow-focus":G,"--n-button-box-shadow-hover":H,"--n-button-color":X,"--n-button-color-active":N,"--n-button-text-color":T,"--n-button-text-color-hover":R,"--n-button-text-color-active":O,"--n-height":ne,"--n-opacity-disabled":L}}),w=u?gt("radio-group",D(()=>o.value[0]),E,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:p,handleFocusout:b,handleFocusin:v,cssVars:u?void 0:E,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:n,handleFocusout:r}=this,{children:i,isButtonGroup:a}=kB(vr(c3(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{onFocusin:n,onFocusout:r,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,a&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),MB=ye({name:"RadioButton",props:zm,setup:Pm,render(){const{mergedClsPrefix:e}=this;return m("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},m("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${e}-radio-button__state-border`}),bt(this.$slots.default,t=>!t&&!this.label?null:m("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Dm=40,Tm=40;function r4(e){if(e.type==="selection")return e.width===void 0?Dm:so(e.width);if(e.type==="expand")return e.width===void 0?Tm:so(e.width);if(!("children"in e))return typeof e.width=="string"?so(e.width):e.width}function RB(e){var t,o;if(e.type==="selection")return So((t=e.width)!==null&&t!==void 0?t:Dm);if(e.type==="expand")return So((o=e.width)!==null&&o!==void 0?o:Tm);if(!("children"in e))return So(e.width)}function En(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function i4(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function zB(e){return e==="ascend"?1:e==="descend"?-1:0}function $B(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function PB(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=RB(e),{minWidth:n,maxWidth:r}=e;return{width:o,minWidth:So(n)||o,maxWidth:So(r)}}function AB(e,t,o){return typeof o=="function"?o(e,t):o||""}function Jc(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function e0(e){return"children"in e?!1:!!e.sorter}function Im(e){return"children"in e&&e.children.length?!1:!!e.resizable}function a4(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function l4(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function BB(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:l4(!1)}:Object.assign(Object.assign({},t),{order:l4(t.order)})}function Om(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function DB(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function TB(e,t){const o=e.filter(i=>i.type!=="expand"&&i.type!=="selection"&&i.allowExport!==!1),n=o.map(i=>i.title).join(","),r=t.map(i=>o.map(a=>DB(i[a.key])).join(","));return[n,...r].join(` +`)}const IB=ye({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Wt("DataTable",o,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Oe(Tn),l=$(e.value),s=D(()=>{const{value:p}=l;return Array.isArray(p)?p:null}),u=D(()=>{const{value:p}=l;return Jc(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function d(p){e.onChange(p)}function c(p){e.multiple&&Array.isArray(p)?l.value=p:Jc(e.column)&&!Array.isArray(p)?l.value=[p]:l.value=p}function h(){d(l.value),e.onConfirm()}function f(){e.multiple||Jc(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:n,mergedTheme:i,locale:a,checkboxGroupValue:s,radioGroupValue:u,handleChange:c,handleConfirmClick:h,handleClearClick:f}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return m("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},m(or,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?m(im,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>m(Wd,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):m(Bm,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>m(Am,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),m("div",{class:`${o}-data-table-filter-menu__action`},m(Ft,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),m(Ft,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),OB=ye({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function LB(e,t,o){const n=Object.assign({},e);return n[t]=o,n}const HB=ye({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=rt(),{mergedThemeRef:o,mergedClsPrefixRef:n,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s,filterIconPopoverPropsRef:u}=Oe(Tn),d=$(!1),c=r,h=D(()=>e.column.filterMultiple!==!1),f=D(()=>{const E=c.value[e.column.key];if(E===void 0){const{value:w}=h;return w?[]:null}return E}),p=D(()=>{const{value:E}=f;return Array.isArray(E)?E.length>0:E!==null}),g=D(()=>{var E,w;return((w=(E=t==null?void 0:t.value)===null||E===void 0?void 0:E.DataTable)===null||w===void 0?void 0:w.renderFilter)||e.column.renderFilter});function v(E){const w=LB(c.value,e.column.key,E);s(w,e.column),a.value==="first"&&l(1)}function b(){d.value=!1}function x(){d.value=!1}return{mergedTheme:o,mergedClsPrefix:n,active:p,showPopover:d,mergedRenderFilter:g,filterIconPopoverProps:u,filterMultiple:h,mergedFilterValue:f,filterMenuCssVars:i,handleFilterChange:v,handleFilterMenuConfirm:x,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:n}=this;return m(Ga,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},n,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return m(OB,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return m("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):m(Gt,{clsPrefix:t},{default:()=>m(Dz,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:o}):m(IB,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),NB=ye({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Oe(Tn),o=$(!1);let n=0;function r(s){return s.clientX}function i(s){var u;s.preventDefault();const d=o.value;n=r(s),o.value=!0,d||(wt("mousemove",window,a),wt("mouseup",window,l),(u=e.onResizeStart)===null||u===void 0||u.call(e))}function a(s){var u;(u=e.onResize)===null||u===void 0||u.call(e,r(s)-n)}function l(){var s;o.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Xt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return m("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Lm=ye({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return m("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function Hm(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const Nm={name:"Icon",common:We,self:Hm},VB={name:"Icon",common:Ve,self:Hm},WB=B("icon",` height: 1em; width: 1em; line-height: 1em; @@ -2183,7 +2183,7 @@ ${t} position: relative; fill: currentColor; transform: translateZ(0); -`,[ee("color-transition",{transition:"color .3s var(--n-bezier)"}),ee("depth",{color:"var(--n-color)"},[W("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),W("svg",{height:"1em",width:"1em"})]),jB=Object.assign(Object.assign({},Ie.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Ut=ye({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:jB,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Icon","-icon",WB,Nm,e,t),r=D(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=n.value;if(a!==void 0){const{color:u,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":u,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=o?gt("icon",D(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:D(()=>{const{size:a,color:l}=e;return{fontSize:So(a),color:l}}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&xn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),m("i",po(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?m(r):this.$slots)}}),e6="n-dropdown-menu",qd="n-dropdown",s4="n-dropdown-option";function v1(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function UB(e){return e.type==="group"}function Vm(e){return e.type==="divider"}function KB(e){return e.type==="render"}const Wm=ye({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Oe(qd),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:u,renderIconRef:d,labelFieldRef:c,childrenFieldRef:h,renderOptionRef:f,nodePropsRef:p,menuPropsRef:g}=t,v=Oe(s4,null),b=Oe(e6),x=Oe(Na),E=D(()=>e.tmNode.rawNode),C=D(()=>{const{value:R}=h;return v1(e.tmNode.rawNode,R)}),k=D(()=>{const{disabled:R}=e.tmNode;return R}),_=D(()=>{if(!C.value)return!1;const{key:R,disabled:I}=e.tmNode;if(I)return!1;const{value:w}=o,{value:Q}=n,{value:U}=r,{value:X}=i;return w!==null?X.includes(R):Q!==null?X.includes(R)&&X[X.length-1]!==R:U!==null?X.includes(R):!1}),F=D(()=>n.value===null&&!l.value),P=ow(_,300,F),z=D(()=>!!(v!=null&&v.enteringSubmenuRef.value)),B=$(!1);et(s4,{enteringSubmenuRef:B});function j(){B.value=!0}function V(){B.value=!1}function K(){const{parentKey:R,tmNode:I}=e;I.disabled||s.value&&(r.value=R,n.value=null,o.value=I.key)}function N(){const{tmNode:R}=e;R.disabled||s.value&&o.value!==R.key&&K()}function T(R){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:I}=R;I&&!Ko({target:I},"dropdownOption")&&!Ko({target:I},"scrollbarRail")&&(o.value=null)}function L(){const{value:R}=C,{tmNode:I}=e;s.value&&!R&&!I.disabled&&(t.doSelect(I.key,I.rawNode),t.doUpdateShow(!1))}return{labelField:c,renderLabel:u,renderIcon:d,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:x,animated:l,mergedShowSubmenu:D(()=>P.value&&!z.value),rawNode:E,hasSubmenu:C,pending:vt(()=>{const{value:R}=i,{key:I}=e.tmNode;return R.includes(I)}),childActive:vt(()=>{const{value:R}=a,{key:I}=e.tmNode,w=R.findIndex(Q=>I===Q);return w===-1?!1:w{const{value:R}=a,{key:I}=e.tmNode,w=R.findIndex(Q=>I===Q);return w===-1?!1:w===R.length-1}),mergedDisabled:k,renderOption:f,nodeProps:p,handleClick:L,handleMouseMove:N,handleMouseEnter:K,handleMouseLeave:T,handleSubmenuBeforeEnter:j,handleSubmenuAfterEnter:V}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:u,renderOption:d,nodeProps:c,props:h,scrollable:f}=this;let p=null;if(r){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);p=m(jm,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=c==null?void 0:c(n),b=m("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),m("div",po(g,h),[m("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(n):Jt(n.icon)]),m("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(n):Jt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),m("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?m(Ut,null,{default:()=>m(I3,null)}):null)]),this.hasSubmenu?m(_s,null,{default:()=>[m(Ms,null,{default:()=>m("div",{class:`${i}-dropdown-offset-container`},m(Rs,{show:this.mergedShowSubmenu,placement:this.placement,to:f&&this.popoverBody||void 0,teleportDisabled:!f},{default:()=>m("div",{class:`${i}-dropdown-menu-wrapper`},o?m(mo,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:b,option:n}):b}}),GB=ye({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Oe(e6),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=Oe(qd);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=m("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(l)),m("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},m("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Jt(l.icon)),m("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),m("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),qB=ye({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return m(ft,null,m(GB,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Vm(i)?m(Lm,{clsPrefix:o,key:r.key}):r.isGroup?(xn("dropdown","`group` node is not allowed to be put in `group` node."),null):m(Wm,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),ZB=ye({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return m("div",t,[e==null?void 0:e()])}}),jm=ye({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Oe(qd);et(e6,{showIconRef:D(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>r?r(s):s.icon);const{rawNode:l}=i;return r?r(l):l.icon})}),hasSubmenuRef:D(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>v1(s,r));const{rawNode:l}=i;return v1(l,r)})})});const n=$(null);return et(Es,null),et(ks,null),et(Na,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:KB(i)?m(ZB,{tmNode:r,key:r.key}):Vm(i)?m(Lm,{clsPrefix:t,key:r.key}):UB(i)?m(qB,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):m(Wm,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return m("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?m(g7,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?w7({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),XB=A("dropdown-menu",` +`,[J("color-transition",{transition:"color .3s var(--n-bezier)"}),J("depth",{color:"var(--n-color)"},[W("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),W("svg",{height:"1em",width:"1em"})]),jB=Object.assign(Object.assign({},Ie.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Kt=ye({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:jB,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Icon","-icon",WB,Nm,e,t),r=D(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=n.value;if(a!==void 0){const{color:u,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":u,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=o?gt("icon",D(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:D(()=>{const{size:a,color:l}=e;return{fontSize:So(a),color:l}}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&xn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),m("i",po(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?m(r):this.$slots)}}),e6="n-dropdown-menu",qd="n-dropdown",s4="n-dropdown-option";function v1(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function UB(e){return e.type==="group"}function Vm(e){return e.type==="divider"}function KB(e){return e.type==="render"}const Wm=ye({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Oe(qd),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:u,renderIconRef:d,labelFieldRef:c,childrenFieldRef:h,renderOptionRef:f,nodePropsRef:p,menuPropsRef:g}=t,v=Oe(s4,null),b=Oe(e6),x=Oe(Na),E=D(()=>e.tmNode.rawNode),w=D(()=>{const{value:R}=h;return v1(e.tmNode.rawNode,R)}),k=D(()=>{const{disabled:R}=e.tmNode;return R}),_=D(()=>{if(!w.value)return!1;const{key:R,disabled:L}=e.tmNode;if(L)return!1;const{value:ne}=o,{value:y}=n,{value:K}=r,{value:U}=i;return ne!==null?U.includes(R):y!==null?U.includes(R)&&U[U.length-1]!==R:K!==null?U.includes(R):!1}),F=D(()=>n.value===null&&!l.value),P=ow(_,300,F),z=D(()=>!!(v!=null&&v.enteringSubmenuRef.value)),A=$(!1);tt(s4,{enteringSubmenuRef:A});function G(){A.value=!0}function H(){A.value=!1}function X(){const{parentKey:R,tmNode:L}=e;L.disabled||s.value&&(r.value=R,n.value=null,o.value=L.key)}function N(){const{tmNode:R}=e;R.disabled||s.value&&o.value!==R.key&&X()}function T(R){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:L}=R;L&&!Ko({target:L},"dropdownOption")&&!Ko({target:L},"scrollbarRail")&&(o.value=null)}function O(){const{value:R}=w,{tmNode:L}=e;s.value&&!R&&!L.disabled&&(t.doSelect(L.key,L.rawNode),t.doUpdateShow(!1))}return{labelField:c,renderLabel:u,renderIcon:d,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:x,animated:l,mergedShowSubmenu:D(()=>P.value&&!z.value),rawNode:E,hasSubmenu:w,pending:vt(()=>{const{value:R}=i,{key:L}=e.tmNode;return R.includes(L)}),childActive:vt(()=>{const{value:R}=a,{key:L}=e.tmNode,ne=R.findIndex(y=>L===y);return ne===-1?!1:ne{const{value:R}=a,{key:L}=e.tmNode,ne=R.findIndex(y=>L===y);return ne===-1?!1:ne===R.length-1}),mergedDisabled:k,renderOption:f,nodeProps:p,handleClick:O,handleMouseMove:N,handleMouseEnter:X,handleMouseLeave:T,handleSubmenuBeforeEnter:G,handleSubmenuAfterEnter:H}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:u,renderOption:d,nodeProps:c,props:h,scrollable:f}=this;let p=null;if(r){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);p=m(jm,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=c==null?void 0:c(n),b=m("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),m("div",po(g,h),[m("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(n):Jt(n.icon)]),m("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(n):Jt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),m("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?m(Kt,null,{default:()=>m(I3,null)}):null)]),this.hasSubmenu?m(_s,null,{default:()=>[m(Ms,null,{default:()=>m("div",{class:`${i}-dropdown-offset-container`},m(Rs,{show:this.mergedShowSubmenu,placement:this.placement,to:f&&this.popoverBody||void 0,teleportDisabled:!f},{default:()=>m("div",{class:`${i}-dropdown-menu-wrapper`},o?m(mo,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:b,option:n}):b}}),GB=ye({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Oe(e6),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=Oe(qd);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=m("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(l)),m("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},m("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Jt(l.icon)),m("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),m("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),qB=ye({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return m(ft,null,m(GB,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Vm(i)?m(Lm,{clsPrefix:o,key:r.key}):r.isGroup?(xn("dropdown","`group` node is not allowed to be put in `group` node."),null):m(Wm,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),ZB=ye({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return m("div",t,[e==null?void 0:e()])}}),jm=ye({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Oe(qd);tt(e6,{showIconRef:D(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>r?r(s):s.icon);const{rawNode:l}=i;return r?r(l):l.icon})}),hasSubmenuRef:D(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>v1(s,r));const{rawNode:l}=i;return v1(l,r)})})});const n=$(null);return tt(Es,null),tt(ks,null),tt(Na,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:KB(i)?m(ZB,{tmNode:r,key:r.key}):Vm(i)?m(Lm,{clsPrefix:t,key:r.key}):UB(i)?m(qB,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):m(Wm,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return m("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?m(g7,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?w7({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),XB=B("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); @@ -2192,7 +2192,7 @@ ${t} transition: background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); -`,[Pn(),A("dropdown-option",` +`,[Pn(),B("dropdown-option",` position: relative; `,[W("a",` text-decoration: none; @@ -2205,7 +2205,7 @@ ${t} right: 0; top: 0; bottom: 0; - `)]),A("dropdown-option-body",` + `)]),B("dropdown-option-body",` display: flex; cursor: pointer; position: relative; @@ -2223,29 +2223,29 @@ ${t} right: 4px; transition: background-color .3s var(--n-bezier); border-radius: var(--n-border-radius); - `),_t("disabled",[ee("pending",` + `),_t("disabled",[J("pending",` color: var(--n-option-text-color-hover); - `,[q("prefix, suffix",` + `,[Y("prefix, suffix",` color: var(--n-option-text-color-hover); - `),W("&::before","background-color: var(--n-option-color-hover);")]),ee("active",` + `),W("&::before","background-color: var(--n-option-color-hover);")]),J("active",` color: var(--n-option-text-color-active); - `,[q("prefix, suffix",` + `,[Y("prefix, suffix",` color: var(--n-option-text-color-active); - `),W("&::before","background-color: var(--n-option-color-active);")]),ee("child-active",` + `),W("&::before","background-color: var(--n-option-color-active);")]),J("child-active",` color: var(--n-option-text-color-child-active); - `,[q("prefix, suffix",` + `,[Y("prefix, suffix",` color: var(--n-option-text-color-child-active); - `)])]),ee("disabled",` + `)])]),J("disabled",` cursor: not-allowed; opacity: var(--n-option-opacity-disabled); - `),ee("group",` + `),J("group",` font-size: calc(var(--n-font-size) - 1px); color: var(--n-group-header-text-color); - `,[q("prefix",` + `,[Y("prefix",` width: calc(var(--n-option-prefix-width) / 2); - `,[ee("show-icon",` + `,[J("show-icon",` width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),q("prefix",` + `)])]),Y("prefix",` width: var(--n-option-prefix-width); display: flex; justify-content: center; @@ -2253,15 +2253,15 @@ ${t} color: var(--n-prefix-color); transition: color .3s var(--n-bezier); z-index: 1; - `,[ee("show-icon",` + `,[J("show-icon",` width: var(--n-option-icon-prefix-width); - `),A("icon",` + `),B("icon",` font-size: var(--n-option-icon-size); - `)]),q("label",` + `)]),Y("label",` white-space: nowrap; flex: 1; z-index: 1; - `),q("suffix",` + `),Y("suffix",` box-sizing: border-box; flex-grow: 0; flex-shrink: 0; @@ -2273,33 +2273,33 @@ ${t} transition: color .3s var(--n-bezier); color: var(--n-suffix-color); z-index: 1; - `,[ee("has-submenu",` + `,[J("has-submenu",` width: var(--n-option-icon-suffix-width); - `),A("icon",` + `),B("icon",` font-size: var(--n-option-icon-size); - `)]),A("dropdown-menu","pointer-events: all;")]),A("dropdown-offset-container",` + `)]),B("dropdown-menu","pointer-events: all;")]),B("dropdown-offset-container",` pointer-events: none; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; - `)]),A("dropdown-divider",` + `)]),B("dropdown-divider",` transition: background-color .3s var(--n-bezier); background-color: var(--n-divider-color); height: 1px; margin: 4px 0; - `),A("dropdown-menu-wrapper",` + `),B("dropdown-menu-wrapper",` transform-origin: var(--v-transform-origin); width: fit-content; - `),W(">",[A("scrollbar",` + `),W(">",[B("scrollbar",` height: inherit; max-height: inherit; `)]),_t("scrollable",` padding: var(--n-padding); - `),ee("scrollable",[q("content",` + `),J("scrollable",[Y("content",` padding: var(--n-padding); - `)])]),YB={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},QB=Object.keys(Ba),JB=Object.assign(Object.assign(Object.assign({},Ba),YB),Ie.props),Um=ye({name:"Dropdown",inheritAttrs:!1,props:JB,setup(e){const t=$(!1),o=to(Ae(e,"show"),t),n=D(()=>{const{keyField:V,childrenField:K}=e;return Hd(e.options,{getKey(N){return N[V]},getDisabled(N){return N.disabled===!0},getIgnored(N){return N.type==="divider"||N.type==="render"},getChildren(N){return N[K]}})}),r=D(()=>n.value.treeNodes),i=$(null),a=$(null),l=$(null),s=D(()=>{var V,K,N;return(N=(K=(V=i.value)!==null&&V!==void 0?V:a.value)!==null&&K!==void 0?K:l.value)!==null&&N!==void 0?N:null}),u=D(()=>n.value.getPath(s.value).keyPath),d=D(()=>n.value.getPath(e.value).keyPath),c=vt(()=>e.keyboard&&o.value);mw({keydown:{ArrowUp:{prevent:!0,handler:k},ArrowRight:{prevent:!0,handler:C},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:E},Enter:{prevent:!0,handler:F},Escape:x}},c);const{mergedClsPrefixRef:h,inlineThemeDisabled:f}=rt(e),p=Ie("Dropdown","-dropdown",XB,Gd,e,h);et(qd,{labelFieldRef:Ae(e,"labelField"),childrenFieldRef:Ae(e,"childrenField"),renderLabelRef:Ae(e,"renderLabel"),renderIconRef:Ae(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:Ae(e,"animated"),mergedShowRef:o,nodePropsRef:Ae(e,"nodeProps"),renderOptionRef:Ae(e,"renderOption"),menuPropsRef:Ae(e,"menuProps"),doSelect:g,doUpdateShow:v}),lt(o,V=>{!e.animated&&!V&&b()});function g(V,K){const{onSelect:N}=e;N&&Re(N,V,K)}function v(V){const{"onUpdate:show":K,onUpdateShow:N}=e;K&&Re(K,V),N&&Re(N,V),t.value=V}function b(){i.value=null,a.value=null,l.value=null}function x(){v(!1)}function E(){z("left")}function C(){z("right")}function k(){z("up")}function _(){z("down")}function F(){const V=P();V!=null&&V.isLeaf&&o.value&&(g(V.key,V.rawNode),v(!1))}function P(){var V;const{value:K}=n,{value:N}=s;return!K||N===null?null:(V=K.getNode(N))!==null&&V!==void 0?V:null}function z(V){const{value:K}=s,{value:{getFirstAvailableNode:N}}=n;let T=null;if(K===null){const L=N();L!==null&&(T=L.key)}else{const L=P();if(L){let R;switch(V){case"down":R=L.getNext();break;case"up":R=L.getPrev();break;case"right":R=L.getChild();break;case"left":R=L.getParent();break}R&&(T=R.key)}}T!==null&&(i.value=null,a.value=T)}const B=D(()=>{const{size:V,inverted:K}=e,{common:{cubicBezierEaseInOut:N},self:T}=p.value,{padding:L,dividerColor:R,borderRadius:I,optionOpacityDisabled:w,[Ee("optionIconSuffixWidth",V)]:Q,[Ee("optionSuffixWidth",V)]:U,[Ee("optionIconPrefixWidth",V)]:X,[Ee("optionPrefixWidth",V)]:re,[Ee("fontSize",V)]:he,[Ee("optionHeight",V)]:Se,[Ee("optionIconSize",V)]:pe}=T,fe={"--n-bezier":N,"--n-font-size":he,"--n-padding":L,"--n-border-radius":I,"--n-option-height":Se,"--n-option-prefix-width":re,"--n-option-icon-prefix-width":X,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":Q,"--n-option-icon-size":pe,"--n-divider-color":R,"--n-option-opacity-disabled":w};return K?(fe["--n-color"]=T.colorInverted,fe["--n-option-color-hover"]=T.optionColorHoverInverted,fe["--n-option-color-active"]=T.optionColorActiveInverted,fe["--n-option-text-color"]=T.optionTextColorInverted,fe["--n-option-text-color-hover"]=T.optionTextColorHoverInverted,fe["--n-option-text-color-active"]=T.optionTextColorActiveInverted,fe["--n-option-text-color-child-active"]=T.optionTextColorChildActiveInverted,fe["--n-prefix-color"]=T.prefixColorInverted,fe["--n-suffix-color"]=T.suffixColorInverted,fe["--n-group-header-text-color"]=T.groupHeaderTextColorInverted):(fe["--n-color"]=T.color,fe["--n-option-color-hover"]=T.optionColorHover,fe["--n-option-color-active"]=T.optionColorActive,fe["--n-option-text-color"]=T.optionTextColor,fe["--n-option-text-color-hover"]=T.optionTextColorHover,fe["--n-option-text-color-active"]=T.optionTextColorActive,fe["--n-option-text-color-child-active"]=T.optionTextColorChildActive,fe["--n-prefix-color"]=T.prefixColor,fe["--n-suffix-color"]=T.suffixColor,fe["--n-group-header-text-color"]=T.groupHeaderTextColor),fe}),j=f?gt("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),B,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:v,cssVars:f?void 0:B,themeClass:j==null?void 0:j.themeClass,onRender:j==null?void 0:j.onRender}},render(){const e=(n,r,i,a,l)=>{var s;const{mergedClsPrefix:u,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const c=(d==null?void 0:d(void 0,this.tmNodes.map(f=>f.rawNode)))||{},h={ref:kp(r),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return m(jm,po(this.$attrs,h,c))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return m(Ga,Object.assign({},ei(this.$props,QB),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Km="_n_all__",Gm="_n_none__";function eD(e,t,o,n){return e?r=>{for(const i of e)switch(r){case Km:o(!0);return;case Gm:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function tD(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:Km};case"none":return{label:t.uncheckTableAll,key:Gm};default:return o}}):[]}const oD=ye({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Oe(Tn),l=D(()=>eD(n.value,r,i,a)),s=D(()=>tD(n.value,o.value));return()=>{var u,d,c,h;const{clsPrefix:f}=e;return m(Um,{theme:(d=(u=t.theme)===null||u===void 0?void 0:u.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(c=t.themeOverrides)===null||c===void 0?void 0:c.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>m(Kt,{clsPrefix:f,class:`${f}-data-table-check-extra`},{default:()=>m(u7,null)})})}}});function t0(e){return typeof e.title=="function"?e.title(e):e.title}const nD=ye({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:n}=this;return m("table",{style:{tableLayout:"fixed",width:n},class:`${e}-data-table-table`},m("colgroup",null,o.map(r=>m("col",{key:r.key,style:r.style}))),m("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),qm=ye({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:n,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:u,checkOptionsRef:d,mergedSortStateRef:c,componentId:h,mergedTableLayoutRef:f,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:g,headerHeightRef:v,onUnstableColumnResize:b,doUpdateResizableWidth:x,handleTableHeaderScroll:E,deriveNextSorter:C,doUncheckAll:k,doCheckAll:_}=Oe(Tn),F=$(),P=$({});function z(T){const L=P.value[T];return L==null?void 0:L.getBoundingClientRect().width}function B(){i.value?k():_()}function j(T,L){if(Ko(T,"dataTableFilter")||Ko(T,"dataTableResizable")||!e0(L))return;const R=c.value.find(w=>w.columnKey===L.key)||null,I=BB(L,R);C(I)}const V=new Map;function K(T){V.set(T.key,z(T.key))}function N(T,L){const R=V.get(T.key);if(R===void 0)return;const I=R+L,w=$B(I,T.minWidth,T.maxWidth);b(I,w,T,z),x(T,w)}return{cellElsRef:P,componentId:h,mergedSortState:c,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,mergedTableLayout:f,headerCheckboxDisabled:p,headerHeight:v,virtualScrollHeader:g,virtualListRef:F,handleCheckboxUpdateChecked:B,handleColHeaderClick:j,handleTableHeaderScroll:E,handleColumnResizeStart:K,handleColumnResize:N}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,componentId:c,discrete:h,mergedTableLayout:f,headerCheckboxDisabled:p,mergedSortState:g,virtualScrollHeader:v,handleColHeaderClick:b,handleCheckboxUpdateChecked:x,handleColumnResizeStart:E,handleColumnResize:C}=this,k=(z,B,j)=>z.map(({column:V,colIndex:K,colSpan:N,rowSpan:T,isLast:L})=>{var R,I;const w=En(V),{ellipsis:Q}=V,U=()=>V.type==="selection"?V.multiple!==!1?m(ft,null,m(Wd,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:x}),d?m(oD,{clsPrefix:t}):null):null:m(ft,null,m("div",{class:`${t}-data-table-th__title-wrapper`},m("div",{class:`${t}-data-table-th__title`},Q===!0||Q&&!Q.tooltip?m("div",{class:`${t}-data-table-th__ellipsis`},t0(V)):Q&&typeof Q=="object"?m(J3,Object.assign({},Q,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>t0(V)}):t0(V)),e0(V)?m(wB,{column:V}):null),a4(V)?m(HB,{column:V,options:V.filterOptions}):null,Im(V)?m(NB,{onResizeStart:()=>{E(V)},onResize:Se=>{C(V,Se)}}):null),X=w in o,re=w in n,he=B&&!V.fixed?"div":"th";return m(he,{ref:Se=>e[w]=Se,key:w,style:[B&&!V.fixed?{position:"absolute",left:Ht(B(K)),top:0,bottom:0}:{left:Ht((R=o[w])===null||R===void 0?void 0:R.start),right:Ht((I=n[w])===null||I===void 0?void 0:I.start)},{width:Ht(V.width),textAlign:V.titleAlign||V.align,height:j}],colspan:N,rowspan:T,"data-col-key":w,class:[`${t}-data-table-th`,(X||re)&&`${t}-data-table-th--fixed-${X?"left":"right"}`,{[`${t}-data-table-th--sorting`]:Om(V,g),[`${t}-data-table-th--filterable`]:a4(V),[`${t}-data-table-th--sortable`]:e0(V),[`${t}-data-table-th--selection`]:V.type==="selection",[`${t}-data-table-th--last`]:L},V.className],onClick:V.type!=="selection"&&V.type!=="expand"&&!("children"in V)?Se=>{b(Se,V)}:void 0},U())});if(v){const{headerHeight:z}=this;let B=0,j=0;return s.forEach(V=>{V.column.fixed==="left"?B++:V.column.fixed==="right"&&j++}),m(b3,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Ht(z)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:z,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:nD,visibleItemsProps:{clsPrefix:t,id:c,cols:s,width:So(this.scrollX)},renderItemWithCols:({startColIndex:V,endColIndex:K,getLeft:N})=>{const T=s.map((R,I)=>({column:R.column,isLast:I===s.length-1,colIndex:R.index,colSpan:1,rowSpan:1})).filter(({column:R},I)=>!!(V<=I&&I<=K||R.fixed)),L=k(T,N,Ht(z));return L.splice(B,0,m("th",{colspan:s.length-B-j,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",{style:{position:"relative"}},L)}},{default:({renderedItemWithCols:V})=>V})}const _=m("thead",{class:`${t}-data-table-thead`,"data-n-id":c},l.map(z=>m("tr",{class:`${t}-data-table-tr`},k(z,null,void 0))));if(!h)return _;const{handleTableHeaderScroll:F,scrollX:P}=this;return m("div",{class:`${t}-data-table-base-table-header`,onScroll:F},m("table",{class:`${t}-data-table-table`,style:{minWidth:So(P),tableLayout:f}},m("colgroup",null,s.map(z=>m("col",{key:z.key,style:z.style}))),_))}}),rD=ye({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:n,renderCell:r}=this;let i;const{render:a,key:l,ellipsis:s}=o;if(a&&!t?i=a(n,this.index):t?i=(e=n[l])===null||e===void 0?void 0:e.value:i=r?r(r1(n,l),n,o):r1(n,l),s)if(typeof s=="object"){const{mergedTheme:u}=this;return o.ellipsisComponent==="performant-ellipsis"?m(xB,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i}):m(J3,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i})}else return m("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),u4=ye({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return m("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},m(Qi,null,{default:()=>this.loading?m(kr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):m(Kt,{clsPrefix:e,key:"base-icon"},{default:()=>m(I3,null)})}))}}),iD=ye({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Oe(Tn);return()=>{const{rowKey:n}=e;return m(Wd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),aD=ye({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Oe(Tn);return()=>{const{rowKey:n}=e;return m(Am,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function lD(e,t){const o=[];function n(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(o.push({tmNode:a,striped:!1,key:a.key,index:i}),n(a.children,i)):o.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{o.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&n(i,r.index)}),o}const sD=ye({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:n,onMouseleave:r}=this;return m("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:r},m("colgroup",null,o.map(i=>m("col",{key:i.key,style:i.style}))),m("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),uD=ye({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:u,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:c,mergedCurrentPageRef:h,rowClassNameRef:f,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:v,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:x,hoverKeyRef:E,summaryRef:C,mergedSortStateRef:k,virtualScrollRef:_,virtualScrollXRef:F,heightForRowRef:P,minRowHeightRef:z,componentId:B,mergedTableLayoutRef:j,childTriggerColIndexRef:V,indentRef:K,rowPropsRef:N,maxHeightRef:T,stripedRef:L,loadingRef:R,onLoadRef:I,loadingKeySetRef:w,expandableRef:Q,stickyExpandedRowsRef:U,renderExpandIconRef:X,summaryPlacementRef:re,treeMateRef:he,scrollbarPropsRef:Se,setHeaderScrollLeft:pe,doUpdateExpandedRowKeys:fe,handleTableBodyScroll:we,doCheck:J,doUncheck:G,renderCell:Te}=Oe(Tn),Ne=Oe(ln),H=$(null),oe=$(null),ge=$(null),Ce=vt(()=>s.value.length===0),se=vt(()=>e.showHeader||!Ce.value),ie=vt(()=>e.showHeader||Ce.value);let ce="";const ne=D(()=>new Set(n.value));function ae(Le){var tt;return(tt=he.value.getNode(Le))===null||tt===void 0?void 0:tt.rawNode}function de(Le,tt,te){const me=ae(Le.key);if(!me){xn("data-table",`fail to get row data with key ${Le.key}`);return}if(te){const ze=s.value.findIndex(He=>He.key===ce);if(ze!==-1){const He=s.value.findIndex(ot=>ot.key===Le.key),je=Math.min(ze,He),Ge=Math.max(ze,He),Ze=[];s.value.slice(je,Ge+1).forEach(ot=>{ot.disabled||Ze.push(ot.key)}),tt?J(Ze,!1,me):G(Ze,me),ce=Le.key;return}}tt?J(Le.key,!1,me):G(Le.key,me),ce=Le.key}function le(Le){const tt=ae(Le.key);if(!tt){xn("data-table",`fail to get row data with key ${Le.key}`);return}J(Le.key,!0,tt)}function Y(){if(!se.value){const{value:tt}=ge;return tt||null}if(_.value)return Be();const{value:Le}=H;return Le?Le.containerRef:null}function ue(Le,tt){var te;if(w.value.has(Le))return;const{value:me}=n,ze=me.indexOf(Le),He=Array.from(me);~ze?(He.splice(ze,1),fe(He)):tt&&!tt.isLeaf&&!tt.shallowLoaded?(w.value.add(Le),(te=I.value)===null||te===void 0||te.call(I,tt.rawNode).then(()=>{const{value:je}=n,Ge=Array.from(je);~Ge.indexOf(Le)||Ge.push(Le),fe(Ge)}).finally(()=>{w.value.delete(Le)})):(He.push(Le),fe(He))}function ve(){E.value=null}function Be(){const{value:Le}=oe;return(Le==null?void 0:Le.listElRef)||null}function Ke(){const{value:Le}=oe;return(Le==null?void 0:Le.itemsElRef)||null}function Je(Le){var tt;we(Le),(tt=H.value)===null||tt===void 0||tt.sync()}function st(Le){var tt;const{onResize:te}=e;te&&te(Le),(tt=H.value)===null||tt===void 0||tt.sync()}const Ye={getScrollContainer:Y,scrollTo(Le,tt){var te,me;_.value?(te=oe.value)===null||te===void 0||te.scrollTo(Le,tt):(me=H.value)===null||me===void 0||me.scrollTo(Le,tt)}},pt=W([({props:Le})=>{const tt=me=>me===null?null:W(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),te=me=>me===null?null:W(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return W([tt(Le.leftActiveFixedColKey),te(Le.rightActiveFixedColKey),Le.leftActiveFixedChildrenColKeys.map(me=>tt(me)),Le.rightActiveFixedChildrenColKeys.map(me=>te(me))])}]);let Qe=!1;return Et(()=>{const{value:Le}=p,{value:tt}=g,{value:te}=v,{value:me}=b;if(!Qe&&Le===null&&te===null)return;const ze={leftActiveFixedColKey:Le,leftActiveFixedChildrenColKeys:tt,rightActiveFixedColKey:te,rightActiveFixedChildrenColKeys:me,componentId:B};pt.mount({id:`n-${B}`,force:!0,props:ze,anchorMetaName:Aa,parent:Ne==null?void 0:Ne.styleMountTarget}),Qe=!0}),Go(()=>{pt.unmount({id:`n-${B}`,parent:Ne==null?void 0:Ne.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:re,dataTableSlots:t,componentId:B,scrollbarInstRef:H,virtualListRef:oe,emptyElRef:ge,summary:C,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:l,loading:R,bodyShowHeaderOnly:ie,shouldDisplaySomeTablePart:se,empty:Ce,paginatedDataAndInfo:D(()=>{const{value:Le}=L;let tt=!1;return{data:s.value.map(Le?(me,ze)=>(me.isLeaf||(tt=!0),{tmNode:me,key:me.key,striped:ze%2===1,index:ze}):(me,ze)=>(me.isLeaf||(tt=!0),{tmNode:me,key:me.key,striped:!1,index:ze})),hasChildren:tt}}),rawPaginatedData:u,fixedColumnLeftMap:d,fixedColumnRightMap:c,currentPage:h,rowClassName:f,renderExpand:x,mergedExpandedRowKeySet:ne,hoverKey:E,mergedSortState:k,virtualScroll:_,virtualScrollX:F,heightForRow:P,minRowHeight:z,mergedTableLayout:j,childTriggerColIndex:V,indent:K,rowProps:N,maxHeight:T,loadingKeySet:w,expandable:Q,stickyExpandedRows:U,renderExpandIcon:X,scrollbarProps:Se,setHeaderScrollLeft:pe,handleVirtualListScroll:Je,handleVirtualListResize:st,handleMouseleaveTable:ve,virtualListContainer:Be,virtualListContent:Ke,handleTableBodyScroll:we,handleCheckboxUpdateChecked:de,handleRadioUpdateChecked:le,handleUpdateExpanded:ue,renderCell:Te},Ye)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:n,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:u}=this,d=t!==void 0||r!==void 0||a,c=!d&&i==="auto",h=t!==void 0||c,f={minWidth:So(t)||"100%"};t&&(f.width="100%");const p=m(or,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||c,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:f,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:u,onResize:s}),{default:()=>{const g={},v={},{cols:b,paginatedDataAndInfo:x,mergedTheme:E,fixedColumnLeftMap:C,fixedColumnRightMap:k,currentPage:_,rowClassName:F,mergedSortState:P,mergedExpandedRowKeySet:z,stickyExpandedRows:B,componentId:j,childTriggerColIndex:V,expandable:K,rowProps:N,handleMouseleaveTable:T,renderExpand:L,summary:R,handleCheckboxUpdateChecked:I,handleRadioUpdateChecked:w,handleUpdateExpanded:Q,heightForRow:U,minRowHeight:X,virtualScrollX:re}=this,{length:he}=b;let Se;const{data:pe,hasChildren:fe}=x,we=fe?lD(pe,z):pe;if(R){const ce=R(this.rawPaginatedData);if(Array.isArray(ce)){const ne=ce.map((ae,de)=>({isSummaryRow:!0,key:`__n_summary__${de}`,tmNode:{rawNode:ae,disabled:!0},index:-1}));Se=this.summaryPlacement==="top"?[...ne,...we]:[...we,...ne]}else{const ne={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ce,disabled:!0},index:-1};Se=this.summaryPlacement==="top"?[ne,...we]:[...we,ne]}}else Se=we;const J=fe?{width:Ht(this.indent)}:void 0,G=[];Se.forEach(ce=>{L&&z.has(ce.key)&&(!K||K(ce.tmNode.rawNode))?G.push(ce,{isExpandedRow:!0,key:`${ce.key}-expand`,tmNode:ce.tmNode,index:ce.index}):G.push(ce)});const{length:Te}=G,Ne={};pe.forEach(({tmNode:ce},ne)=>{Ne[ne]=ce.key});const H=B?this.bodyWidth:null,oe=H===null?void 0:`${H}px`,ge=this.virtualScrollX?"div":"td";let Ce=0,se=0;re&&b.forEach(ce=>{ce.column.fixed==="left"?Ce++:ce.column.fixed==="right"&&se++});const ie=({rowInfo:ce,displayedRowIndex:ne,isVirtual:ae,isVirtualX:de,startColIndex:le,endColIndex:Y,getLeft:ue})=>{const{index:ve}=ce;if("isExpandedRow"in ce){const{tmNode:{key:He,rawNode:je}}=ce;return m("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${He}__expand`},m("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,ne+1===Te&&`${o}-data-table-td--last-row`],colspan:he},B?m("div",{class:`${o}-data-table-expand`,style:{width:oe}},L(je,ve)):L(je,ve)))}const Be="isSummaryRow"in ce,Ke=!Be&&ce.striped,{tmNode:Je,key:st}=ce,{rawNode:Ye}=Je,pt=z.has(st),Qe=N?N(Ye,ve):void 0,Le=typeof F=="string"?F:AB(Ye,ve,F),tt=de?b.filter((He,je)=>!!(le<=je&&je<=Y||He.column.fixed)):b,te=de?Ht((U==null?void 0:U(Ye,ve))||X):void 0,me=tt.map(He=>{var je,Ge,Ze,ot,yt;const Bt=He.index;if(ne in g){const Yt=g[ne],no=Yt.indexOf(Bt);if(~no)return Yt.splice(no,1),null}const{column:kt}=He,xo=En(He),{rowSpan:Po,colSpan:Ao}=kt,No=Be?((je=ce.tmNode.rawNode[xo])===null||je===void 0?void 0:je.colSpan)||1:Ao?Ao(Ye,ve):1,Vo=Be?((Ge=ce.tmNode.rawNode[xo])===null||Ge===void 0?void 0:Ge.rowSpan)||1:Po?Po(Ye,ve):1,un=Bt+No===he,dn=ne+Vo===Te,be=Vo>1;if(be&&(v[ne]={[Bt]:[]}),No>1||be)for(let Yt=ne;Yt{Q(st,ce.tmNode)}})]:null,kt.type==="selection"?Be?null:kt.multiple===!1?m(aD,{key:_,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:()=>{w(ce.tmNode)}}):m(iD,{key:_,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:(Yt,no)=>{I(ce.tmNode,Yt,no.shiftKey)}}):kt.type==="expand"?Be?null:!kt.expandable||!((yt=kt.expandable)===null||yt===void 0)&&yt.call(kt,Ye)?m(u4,{clsPrefix:o,rowData:Ye,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{Q(st,null)}}):null:m(rD,{clsPrefix:o,index:ve,row:Ye,column:kt,isSummary:Be,mergedTheme:E,renderCell:this.renderCell}))});return de&&Ce&&se&&me.splice(Ce,0,m("td",{colspan:b.length-Ce-se,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",Object.assign({},Qe,{onMouseenter:He=>{var je;this.hoverKey=st,(je=Qe==null?void 0:Qe.onMouseenter)===null||je===void 0||je.call(Qe,He)},key:st,class:[`${o}-data-table-tr`,Be&&`${o}-data-table-tr--summary`,Ke&&`${o}-data-table-tr--striped`,pt&&`${o}-data-table-tr--expanded`,Le,Qe==null?void 0:Qe.class],style:[Qe==null?void 0:Qe.style,de&&{height:te}]}),me)};return n?m(b3,{ref:"virtualListRef",items:G,itemSize:this.minRowHeight,visibleItemsTag:sD,visibleItemsProps:{clsPrefix:o,id:j,cols:b,onMouseleave:T},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!re,columns:b,renderItemWithCols:re?({itemIndex:ce,item:ne,startColIndex:ae,endColIndex:de,getLeft:le})=>ie({displayedRowIndex:ce,isVirtual:!0,isVirtualX:!0,rowInfo:ne,startColIndex:ae,endColIndex:de,getLeft:le}):void 0},{default:({item:ce,index:ne,renderedItemWithCols:ae})=>ae||ie({rowInfo:ce,displayedRowIndex:ne,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(de){return 0}})}):m("table",{class:`${o}-data-table-table`,onMouseleave:T,style:{tableLayout:this.mergedTableLayout}},m("colgroup",null,b.map(ce=>m("col",{key:ce.key,style:ce.style}))),this.showHeader?m(qm,{discrete:!1}):null,this.empty?null:m("tbody",{"data-n-id":j,class:`${o}-data-table-tbody`},G.map((ce,ne)=>ie({rowInfo:ce,displayedRowIndex:ne,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(ae){return-1}}))))}});if(this.empty){const g=()=>m("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},wo(this.dataTableSlots.empty,()=>[m(L3,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?m(ft,null,p,g()):m(Rn,{onResize:this.onResize},{default:g})}return p}}),dD=ye({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:s}=Oe(Tn),u=$(null),d=$(null),c=$(null),h=$(!(o.value.length||t.value.length)),f=D(()=>({maxHeight:So(r.value),minHeight:So(i.value)}));function p(x){n.value=x.contentRect.width,s(),h.value||(h.value=!0)}function g(){var x;const{value:E}=u;return E?l.value?((x=E.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:E.$el:null}function v(){const{value:x}=d;return x?x.getScrollContainer():null}const b={getBodyElement:v,getHeaderElement:g,scrollTo(x,E){var C;(C=d.value)===null||C===void 0||C.scrollTo(x,E)}};return Et(()=>{const{value:x}=c;if(!x)return;const E=`${e.value}-data-table-base-table--transition-disabled`;h.value?setTimeout(()=>{x.classList.remove(E)},0):x.classList.add(E)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:c,headerInstRef:u,bodyInstRef:d,bodyStyle:f,flexHeight:a,handleBodyResize:p},b)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,n=t===void 0&&!o;return m("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:m(qm,{ref:"headerInstRef"}),m(uD,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}});function cD(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=$(e.defaultCheckedRowKeys),a=D(()=>{var k;const{checkedRowKeys:_}=e,F=_===void 0?i.value:_;return((k=r.value)===null||k===void 0?void 0:k.multiple)===!1?{checkedKeys:F.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(F,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=D(()=>a.value.checkedKeys),s=D(()=>a.value.indeterminateKeys),u=D(()=>new Set(l.value)),d=D(()=>new Set(s.value)),c=D(()=>{const{value:k}=u;return o.value.reduce((_,F)=>{const{key:P,disabled:z}=F;return _+(!z&&k.has(P)?1:0)},0)}),h=D(()=>o.value.filter(k=>k.disabled).length),f=D(()=>{const{length:k}=o.value,{value:_}=d;return c.value>0&&c.value_.has(F.key))}),p=D(()=>{const{length:k}=o.value;return c.value!==0&&c.value===k-h.value}),g=D(()=>o.value.length===0);function v(k,_,F){const{"onUpdate:checkedRowKeys":P,onUpdateCheckedRowKeys:z,onCheckedRowKeysChange:B}=e,j=[],{value:{getNode:V}}=n;k.forEach(K=>{var N;const T=(N=V(K))===null||N===void 0?void 0:N.rawNode;j.push(T)}),P&&Re(P,k,j,{row:_,action:F}),z&&Re(z,k,j,{row:_,action:F}),B&&Re(B,k,j,{row:_,action:F}),i.value=k}function b(k,_=!1,F){if(!e.loading){if(_){v(Array.isArray(k)?k.slice(0,1):[k],F,"check");return}v(n.value.check(k,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,F,"check")}}function x(k,_){e.loading||v(n.value.uncheck(k,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"uncheck")}function E(k=!1){const{value:_}=r;if(!_||e.loading)return;const F=[];(k?n.value.treeNodes:o.value).forEach(P=>{P.disabled||F.push(P.key)}),v(n.value.check(F,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function C(k=!1){const{value:_}=r;if(!_||e.loading)return;const F=[];(k?n.value.treeNodes:o.value).forEach(P=>{P.disabled||F.push(P.key)}),v(n.value.uncheck(F,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:f,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:v,doCheckAll:E,doUncheckAll:C,doCheck:b,doUncheck:x}}function mu(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function fD(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?hD(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function hD(e){return(t,o)=>{const n=t[e],r=o[e];return n==null?r==null?0:-1:r==null?1:typeof n=="number"&&typeof r=="number"?n-r:typeof n=="string"&&typeof r=="string"?n.localeCompare(r):0}}function pD(e,{dataRelatedColsRef:t,filteredDataRef:o}){const n=[];t.value.forEach(f=>{var p;f.sorter!==void 0&&h(n,{columnKey:f.key,sorter:f.sorter,order:(p=f.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=$(n),i=D(()=>{const f=t.value.filter(v=>v.type!=="selection"&&v.sorter!==void 0&&(v.sortOrder==="ascend"||v.sortOrder==="descend"||v.sortOrder===!1)),p=f.filter(v=>v.sortOrder!==!1);if(p.length)return p.map(v=>({columnKey:v.key,order:v.sortOrder,sorter:v.sorter}));if(f.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=D(()=>{const f=i.value.slice().sort((p,g)=>{const v=mu(p.sorter)||0;return(mu(g.sorter)||0)-v});return f.length?o.value.slice().sort((g,v)=>{let b=0;return f.some(x=>{const{columnKey:E,sorter:C,order:k}=x,_=fD(C,E);return _&&k&&(b=_(g.rawNode,v.rawNode),b!==0)?(b=b*zB(k),!0):!1}),b}):o.value});function l(f){let p=i.value.slice();return f&&mu(f.sorter)!==!1?(p=p.filter(g=>mu(g.sorter)!==!1),h(p,f),p):f||null}function s(f){const p=l(f);u(p)}function u(f){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:v}=e;p&&Re(p,f),g&&Re(g,f),v&&Re(v,f),r.value=f}function d(f,p="ascend"){if(!f)c();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===f);if(!(g!=null&&g.sorter))return;const v=g.sorter;s({columnKey:f,sorter:v,order:p})}}function c(){u(null)}function h(f,p){const g=f.findIndex(v=>(p==null?void 0:p.columnKey)&&v.columnKey===p.columnKey);g!==void 0&&g>=0?f[g]=p:f.push(p)}return{clearSorter:c,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function mD(e,{dataRelatedColsRef:t}){const o=D(()=>{const U=X=>{for(let re=0;re{const{childrenKey:U}=e;return Hd(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:X=>X[U],getDisabled:X=>{var re,he;return!!(!((he=(re=o.value)===null||re===void 0?void 0:re.disabled)===null||he===void 0)&&he.call(re,X))}})}),r=vt(()=>{const{columns:U}=e,{length:X}=U;let re=null;for(let he=0;he{const U=t.value.filter(he=>he.filterOptionValues!==void 0||he.filterOptionValue!==void 0),X={};return U.forEach(he=>{var Se;he.type==="selection"||he.type==="expand"||(he.filterOptionValues===void 0?X[he.key]=(Se=he.filterOptionValue)!==null&&Se!==void 0?Se:null:X[he.key]=he.filterOptionValues)}),Object.assign(i4(i.value),X)}),d=D(()=>{const U=u.value,{columns:X}=e;function re(pe){return(fe,we)=>!!~String(we[pe]).indexOf(String(fe))}const{value:{treeNodes:he}}=n,Se=[];return X.forEach(pe=>{pe.type==="selection"||pe.type==="expand"||"children"in pe||Se.push([pe.key,pe])}),he?he.filter(pe=>{const{rawNode:fe}=pe;for(const[we,J]of Se){let G=U[we];if(G==null||(Array.isArray(G)||(G=[G]),!G.length))continue;const Te=J.filter==="default"?re(we):J.filter;if(J&&typeof Te=="function")if(J.filterMode==="and"){if(G.some(Ne=>!Te(Ne,fe)))return!1}else{if(G.some(Ne=>Te(Ne,fe)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:h,mergedSortStateRef:f,sort:p,clearSorter:g}=pD(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(U=>{var X;if(U.filter){const re=U.defaultFilterOptionValues;U.filterMultiple?i.value[U.key]=re||[]:re!==void 0?i.value[U.key]=re===null?[]:re:i.value[U.key]=(X=U.defaultFilterOptionValue)!==null&&X!==void 0?X:null}});const v=D(()=>{const{pagination:U}=e;if(U!==!1)return U.page}),b=D(()=>{const{pagination:U}=e;if(U!==!1)return U.pageSize}),x=to(v,l),E=to(b,s),C=vt(()=>{const U=x.value;return e.remote?U:Math.max(1,Math.min(Math.ceil(d.value.length/E.value),U))}),k=D(()=>{const{pagination:U}=e;if(U){const{pageCount:X}=U;if(X!==void 0)return X}}),_=D(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const U=E.value,X=(C.value-1)*U;return c.value.slice(X,X+U)}),F=D(()=>_.value.map(U=>U.rawNode));function P(U){const{pagination:X}=e;if(X){const{onChange:re,"onUpdate:page":he,onUpdatePage:Se}=X;re&&Re(re,U),Se&&Re(Se,U),he&&Re(he,U),V(U)}}function z(U){const{pagination:X}=e;if(X){const{onPageSizeChange:re,"onUpdate:pageSize":he,onUpdatePageSize:Se}=X;re&&Re(re,U),Se&&Re(Se,U),he&&Re(he,U),K(U)}}const B=D(()=>{if(e.remote){const{pagination:U}=e;if(U){const{itemCount:X}=U;if(X!==void 0)return X}return}return d.value.length}),j=D(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":P,"onUpdate:pageSize":z,page:C.value,pageSize:E.value,pageCount:B.value===void 0?k.value:void 0,itemCount:B.value}));function V(U){const{"onUpdate:page":X,onPageChange:re,onUpdatePage:he}=e;he&&Re(he,U),X&&Re(X,U),re&&Re(re,U),l.value=U}function K(U){const{"onUpdate:pageSize":X,onPageSizeChange:re,onUpdatePageSize:he}=e;re&&Re(re,U),he&&Re(he,U),X&&Re(X,U),s.value=U}function N(U,X){const{onUpdateFilters:re,"onUpdate:filters":he,onFiltersChange:Se}=e;re&&Re(re,U,X),he&&Re(he,U,X),Se&&Re(Se,U,X),i.value=U}function T(U,X,re,he){var Se;(Se=e.onUnstableColumnResize)===null||Se===void 0||Se.call(e,U,X,re,he)}function L(U){V(U)}function R(){I()}function I(){w({})}function w(U){Q(U)}function Q(U){U?U&&(i.value=i4(U)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:C,mergedPaginationRef:j,paginatedDataRef:_,rawPaginatedDataRef:F,mergedFilterStateRef:u,mergedSortStateRef:f,hoverKeyRef:$(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:N,deriveNextSorter:h,doUpdatePageSize:K,doUpdatePage:V,onUnstableColumnResize:T,filter:Q,filters:w,clearFilter:R,clearFilters:I,clearSorter:g,page:L,sort:p}}function gD(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=$(),a=$(null),l=$([]),s=$(null),u=$([]),d=D(()=>So(e.scrollX)),c=D(()=>e.columns.filter(z=>z.fixed==="left")),h=D(()=>e.columns.filter(z=>z.fixed==="right")),f=D(()=>{const z={};let B=0;function j(V){V.forEach(K=>{const N={start:B,end:0};z[En(K)]=N,"children"in K?(j(K.children),N.end=B):(B+=r4(K)||0,N.end=B)})}return j(c.value),z}),p=D(()=>{const z={};let B=0;function j(V){for(let K=V.length-1;K>=0;--K){const N=V[K],T={start:B,end:0};z[En(N)]=T,"children"in N?(j(N.children),T.end=B):(B+=r4(N)||0,T.end=B)}}return j(h.value),z});function g(){var z,B;const{value:j}=c;let V=0;const{value:K}=f;let N=null;for(let T=0;T(((z=K[L])===null||z===void 0?void 0:z.start)||0)-V)N=L,V=((B=K[L])===null||B===void 0?void 0:B.end)||0;else break}a.value=N}function v(){l.value=[];let z=e.columns.find(B=>En(B)===a.value);for(;z&&"children"in z;){const B=z.children.length;if(B===0)break;const j=z.children[B-1];l.value.push(En(j)),z=j}}function b(){var z,B;const{value:j}=h,V=Number(e.scrollX),{value:K}=n;if(K===null)return;let N=0,T=null;const{value:L}=p;for(let R=j.length-1;R>=0;--R){const I=En(j[R]);if(Math.round(r+(((z=L[I])===null||z===void 0?void 0:z.start)||0)+K-N)En(B)===s.value);for(;z&&"children"in z&&z.children.length;){const B=z.children[0];u.value.push(En(B)),z=B}}function E(){const z=t.value?t.value.getHeaderElement():null,B=t.value?t.value.getBodyElement():null;return{header:z,body:B}}function C(){const{body:z}=E();z&&(z.scrollTop=0)}function k(){i.value!=="body"?Ql(F):i.value=void 0}function _(z){var B;(B=e.onScroll)===null||B===void 0||B.call(e,z),i.value!=="head"?Ql(F):i.value=void 0}function F(){const{header:z,body:B}=E();if(!B)return;const{value:j}=n;if(j!==null){if(e.maxHeight||e.flexHeight){if(!z)return;const V=r-z.scrollLeft;i.value=V!==0?"head":"body",i.value==="head"?(r=z.scrollLeft,B.scrollLeft=r):(r=B.scrollLeft,z.scrollLeft=r)}else r=B.scrollLeft;g(),v(),b(),x()}}function P(z){const{header:B}=E();B&&(B.scrollLeft=z,F())}return lt(o,()=>{C()}),{styleScrollXRef:d,fixedColumnLeftMapRef:f,fixedColumnRightMapRef:p,leftFixedColumnsRef:c,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:u,syncScrollState:F,handleTableBodyScroll:_,handleTableHeaderScroll:k,setHeaderScrollLeft:P}}function vD(){const e=$({});function t(r){return e.value[r]}function o(r,i){Im(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function bD(e,t){const o=[],n=[],r=[],i=new WeakMap;let a=-1,l=0,s=!1;function u(h,f){f>a&&(o[f]=[],a=f),h.forEach((p,g)=>{if("children"in p)u(p.children,f+1);else{const v="key"in p?p.key:void 0;n.push({key:En(p),style:PB(p,v!==void 0?So(t(v)):void 0),column:p,index:g,width:p.width===void 0?128:Number(p.width)}),l+=1,s||(s=!!p.ellipsis),r.push(p)}})}u(e,0);let d=0;function c(h,f){let p=0;h.forEach(g=>{var v;if("children"in g){const b=d,x={column:g,colIndex:d,colSpan:0,rowSpan:1,isLast:!1};c(g.children,f+1),g.children.forEach(E=>{var C,k;x.colSpan+=(k=(C=i.get(E))===null||C===void 0?void 0:C.colSpan)!==null&&k!==void 0?k:0}),b+x.colSpan===l&&(x.isLast=!0),i.set(g,x),o[f].push(x)}else{if(d1&&(p=d+b);const x=d+b===l,E={column:g,colSpan:b,colIndex:d,rowSpan:a-f+1,isLast:x};i.set(g,E),o[f].push(E),d+=1}})}return c(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function xD(e,t){const o=D(()=>bD(e.columns,t));return{rowsRef:D(()=>o.value.rows),colsRef:D(()=>o.value.cols),hasEllipsisRef:D(()=>o.value.hasEllipsis),dataRelatedColsRef:D(()=>o.value.dataRelatedCols)}}function yD(e,t){const o=vt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=vt(()=>{let u;for(const d of e.columns)if(d.type==="expand"){u=d.expandable;break}return u}),r=$(e.defaultExpandAll?o!=null&&o.value?(()=>{const u=[];return t.value.treeNodes.forEach(d=>{var c;!((c=n.value)===null||c===void 0)&&c.call(n,d.rawNode)&&u.push(d.key)}),u})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Ae(e,"expandedRowKeys"),a=Ae(e,"stickyExpandedRows"),l=to(i,r);function s(u){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":c}=e;d&&Re(d,u),c&&Re(c,u),r.value=u}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}const d4=wD(),CD=W([A("data-table",` + `)])]),YB={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},QB=Object.keys(Ba),JB=Object.assign(Object.assign(Object.assign({},Ba),YB),Ie.props),Um=ye({name:"Dropdown",inheritAttrs:!1,props:JB,setup(e){const t=$(!1),o=oo(Ae(e,"show"),t),n=D(()=>{const{keyField:H,childrenField:X}=e;return Hd(e.options,{getKey(N){return N[H]},getDisabled(N){return N.disabled===!0},getIgnored(N){return N.type==="divider"||N.type==="render"},getChildren(N){return N[X]}})}),r=D(()=>n.value.treeNodes),i=$(null),a=$(null),l=$(null),s=D(()=>{var H,X,N;return(N=(X=(H=i.value)!==null&&H!==void 0?H:a.value)!==null&&X!==void 0?X:l.value)!==null&&N!==void 0?N:null}),u=D(()=>n.value.getPath(s.value).keyPath),d=D(()=>n.value.getPath(e.value).keyPath),c=vt(()=>e.keyboard&&o.value);mw({keydown:{ArrowUp:{prevent:!0,handler:k},ArrowRight:{prevent:!0,handler:w},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:E},Enter:{prevent:!0,handler:F},Escape:x}},c);const{mergedClsPrefixRef:h,inlineThemeDisabled:f}=rt(e),p=Ie("Dropdown","-dropdown",XB,Gd,e,h);tt(qd,{labelFieldRef:Ae(e,"labelField"),childrenFieldRef:Ae(e,"childrenField"),renderLabelRef:Ae(e,"renderLabel"),renderIconRef:Ae(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:Ae(e,"animated"),mergedShowRef:o,nodePropsRef:Ae(e,"nodeProps"),renderOptionRef:Ae(e,"renderOption"),menuPropsRef:Ae(e,"menuProps"),doSelect:g,doUpdateShow:v}),lt(o,H=>{!e.animated&&!H&&b()});function g(H,X){const{onSelect:N}=e;N&&Re(N,H,X)}function v(H){const{"onUpdate:show":X,onUpdateShow:N}=e;X&&Re(X,H),N&&Re(N,H),t.value=H}function b(){i.value=null,a.value=null,l.value=null}function x(){v(!1)}function E(){z("left")}function w(){z("right")}function k(){z("up")}function _(){z("down")}function F(){const H=P();H!=null&&H.isLeaf&&o.value&&(g(H.key,H.rawNode),v(!1))}function P(){var H;const{value:X}=n,{value:N}=s;return!X||N===null?null:(H=X.getNode(N))!==null&&H!==void 0?H:null}function z(H){const{value:X}=s,{value:{getFirstAvailableNode:N}}=n;let T=null;if(X===null){const O=N();O!==null&&(T=O.key)}else{const O=P();if(O){let R;switch(H){case"down":R=O.getNext();break;case"up":R=O.getPrev();break;case"right":R=O.getChild();break;case"left":R=O.getParent();break}R&&(T=R.key)}}T!==null&&(i.value=null,a.value=T)}const A=D(()=>{const{size:H,inverted:X}=e,{common:{cubicBezierEaseInOut:N},self:T}=p.value,{padding:O,dividerColor:R,borderRadius:L,optionOpacityDisabled:ne,[Ee("optionIconSuffixWidth",H)]:y,[Ee("optionSuffixWidth",H)]:K,[Ee("optionIconPrefixWidth",H)]:U,[Ee("optionPrefixWidth",H)]:ue,[Ee("fontSize",H)]:se,[Ee("optionHeight",H)]:Fe,[Ee("optionIconSize",H)]:pe}=T,fe={"--n-bezier":N,"--n-font-size":se,"--n-padding":O,"--n-border-radius":L,"--n-option-height":Fe,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":U,"--n-option-suffix-width":K,"--n-option-icon-suffix-width":y,"--n-option-icon-size":pe,"--n-divider-color":R,"--n-option-opacity-disabled":ne};return X?(fe["--n-color"]=T.colorInverted,fe["--n-option-color-hover"]=T.optionColorHoverInverted,fe["--n-option-color-active"]=T.optionColorActiveInverted,fe["--n-option-text-color"]=T.optionTextColorInverted,fe["--n-option-text-color-hover"]=T.optionTextColorHoverInverted,fe["--n-option-text-color-active"]=T.optionTextColorActiveInverted,fe["--n-option-text-color-child-active"]=T.optionTextColorChildActiveInverted,fe["--n-prefix-color"]=T.prefixColorInverted,fe["--n-suffix-color"]=T.suffixColorInverted,fe["--n-group-header-text-color"]=T.groupHeaderTextColorInverted):(fe["--n-color"]=T.color,fe["--n-option-color-hover"]=T.optionColorHover,fe["--n-option-color-active"]=T.optionColorActive,fe["--n-option-text-color"]=T.optionTextColor,fe["--n-option-text-color-hover"]=T.optionTextColorHover,fe["--n-option-text-color-active"]=T.optionTextColorActive,fe["--n-option-text-color-child-active"]=T.optionTextColorChildActive,fe["--n-prefix-color"]=T.prefixColor,fe["--n-suffix-color"]=T.suffixColor,fe["--n-group-header-text-color"]=T.groupHeaderTextColor),fe}),G=f?gt("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),A,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:v,cssVars:f?void 0:A,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender}},render(){const e=(n,r,i,a,l)=>{var s;const{mergedClsPrefix:u,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const c=(d==null?void 0:d(void 0,this.tmNodes.map(f=>f.rawNode)))||{},h={ref:kp(r),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return m(jm,po(this.$attrs,h,c))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return m(Ga,Object.assign({},ei(this.$props,QB),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Km="_n_all__",Gm="_n_none__";function eD(e,t,o,n){return e?r=>{for(const i of e)switch(r){case Km:o(!0);return;case Gm:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function tD(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:Km};case"none":return{label:t.uncheckTableAll,key:Gm};default:return o}}):[]}const oD=ye({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Oe(Tn),l=D(()=>eD(n.value,r,i,a)),s=D(()=>tD(n.value,o.value));return()=>{var u,d,c,h;const{clsPrefix:f}=e;return m(Um,{theme:(d=(u=t.theme)===null||u===void 0?void 0:u.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(c=t.themeOverrides)===null||c===void 0?void 0:c.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>m(Gt,{clsPrefix:f,class:`${f}-data-table-check-extra`},{default:()=>m(u7,null)})})}}});function t0(e){return typeof e.title=="function"?e.title(e):e.title}const nD=ye({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:n}=this;return m("table",{style:{tableLayout:"fixed",width:n},class:`${e}-data-table-table`},m("colgroup",null,o.map(r=>m("col",{key:r.key,style:r.style}))),m("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),qm=ye({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:n,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:u,checkOptionsRef:d,mergedSortStateRef:c,componentId:h,mergedTableLayoutRef:f,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:g,headerHeightRef:v,onUnstableColumnResize:b,doUpdateResizableWidth:x,handleTableHeaderScroll:E,deriveNextSorter:w,doUncheckAll:k,doCheckAll:_}=Oe(Tn),F=$(),P=$({});function z(T){const O=P.value[T];return O==null?void 0:O.getBoundingClientRect().width}function A(){i.value?k():_()}function G(T,O){if(Ko(T,"dataTableFilter")||Ko(T,"dataTableResizable")||!e0(O))return;const R=c.value.find(ne=>ne.columnKey===O.key)||null,L=BB(O,R);w(L)}const H=new Map;function X(T){H.set(T.key,z(T.key))}function N(T,O){const R=H.get(T.key);if(R===void 0)return;const L=R+O,ne=$B(L,T.minWidth,T.maxWidth);b(L,ne,T,z),x(T,ne)}return{cellElsRef:P,componentId:h,mergedSortState:c,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,mergedTableLayout:f,headerCheckboxDisabled:p,headerHeight:v,virtualScrollHeader:g,virtualListRef:F,handleCheckboxUpdateChecked:A,handleColHeaderClick:G,handleTableHeaderScroll:E,handleColumnResizeStart:X,handleColumnResize:N}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,componentId:c,discrete:h,mergedTableLayout:f,headerCheckboxDisabled:p,mergedSortState:g,virtualScrollHeader:v,handleColHeaderClick:b,handleCheckboxUpdateChecked:x,handleColumnResizeStart:E,handleColumnResize:w}=this,k=(z,A,G)=>z.map(({column:H,colIndex:X,colSpan:N,rowSpan:T,isLast:O})=>{var R,L;const ne=En(H),{ellipsis:y}=H,K=()=>H.type==="selection"?H.multiple!==!1?m(ft,null,m(Wd,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:x}),d?m(oD,{clsPrefix:t}):null):null:m(ft,null,m("div",{class:`${t}-data-table-th__title-wrapper`},m("div",{class:`${t}-data-table-th__title`},y===!0||y&&!y.tooltip?m("div",{class:`${t}-data-table-th__ellipsis`},t0(H)):y&&typeof y=="object"?m(J3,Object.assign({},y,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>t0(H)}):t0(H)),e0(H)?m(wB,{column:H}):null),a4(H)?m(HB,{column:H,options:H.filterOptions}):null,Im(H)?m(NB,{onResizeStart:()=>{E(H)},onResize:Fe=>{w(H,Fe)}}):null),U=ne in o,ue=ne in n,se=A&&!H.fixed?"div":"th";return m(se,{ref:Fe=>e[ne]=Fe,key:ne,style:[A&&!H.fixed?{position:"absolute",left:Ht(A(X)),top:0,bottom:0}:{left:Ht((R=o[ne])===null||R===void 0?void 0:R.start),right:Ht((L=n[ne])===null||L===void 0?void 0:L.start)},{width:Ht(H.width),textAlign:H.titleAlign||H.align,height:G}],colspan:N,rowspan:T,"data-col-key":ne,class:[`${t}-data-table-th`,(U||ue)&&`${t}-data-table-th--fixed-${U?"left":"right"}`,{[`${t}-data-table-th--sorting`]:Om(H,g),[`${t}-data-table-th--filterable`]:a4(H),[`${t}-data-table-th--sortable`]:e0(H),[`${t}-data-table-th--selection`]:H.type==="selection",[`${t}-data-table-th--last`]:O},H.className],onClick:H.type!=="selection"&&H.type!=="expand"&&!("children"in H)?Fe=>{b(Fe,H)}:void 0},K())});if(v){const{headerHeight:z}=this;let A=0,G=0;return s.forEach(H=>{H.column.fixed==="left"?A++:H.column.fixed==="right"&&G++}),m(b3,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Ht(z)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:z,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:nD,visibleItemsProps:{clsPrefix:t,id:c,cols:s,width:So(this.scrollX)},renderItemWithCols:({startColIndex:H,endColIndex:X,getLeft:N})=>{const T=s.map((R,L)=>({column:R.column,isLast:L===s.length-1,colIndex:R.index,colSpan:1,rowSpan:1})).filter(({column:R},L)=>!!(H<=L&&L<=X||R.fixed)),O=k(T,N,Ht(z));return O.splice(A,0,m("th",{colspan:s.length-A-G,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",{style:{position:"relative"}},O)}},{default:({renderedItemWithCols:H})=>H})}const _=m("thead",{class:`${t}-data-table-thead`,"data-n-id":c},l.map(z=>m("tr",{class:`${t}-data-table-tr`},k(z,null,void 0))));if(!h)return _;const{handleTableHeaderScroll:F,scrollX:P}=this;return m("div",{class:`${t}-data-table-base-table-header`,onScroll:F},m("table",{class:`${t}-data-table-table`,style:{minWidth:So(P),tableLayout:f}},m("colgroup",null,s.map(z=>m("col",{key:z.key,style:z.style}))),_))}}),rD=ye({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:n,renderCell:r}=this;let i;const{render:a,key:l,ellipsis:s}=o;if(a&&!t?i=a(n,this.index):t?i=(e=n[l])===null||e===void 0?void 0:e.value:i=r?r(r1(n,l),n,o):r1(n,l),s)if(typeof s=="object"){const{mergedTheme:u}=this;return o.ellipsisComponent==="performant-ellipsis"?m(xB,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i}):m(J3,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i})}else return m("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),u4=ye({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return m("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},m(Qi,null,{default:()=>this.loading?m(kr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):m(Gt,{clsPrefix:e,key:"base-icon"},{default:()=>m(I3,null)})}))}}),iD=ye({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Oe(Tn);return()=>{const{rowKey:n}=e;return m(Wd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),aD=ye({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Oe(Tn);return()=>{const{rowKey:n}=e;return m(Am,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function lD(e,t){const o=[];function n(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(o.push({tmNode:a,striped:!1,key:a.key,index:i}),n(a.children,i)):o.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{o.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&n(i,r.index)}),o}const sD=ye({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:n,onMouseleave:r}=this;return m("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:r},m("colgroup",null,o.map(i=>m("col",{key:i.key,style:i.style}))),m("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),uD=ye({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:u,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:c,mergedCurrentPageRef:h,rowClassNameRef:f,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:v,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:x,hoverKeyRef:E,summaryRef:w,mergedSortStateRef:k,virtualScrollRef:_,virtualScrollXRef:F,heightForRowRef:P,minRowHeightRef:z,componentId:A,mergedTableLayoutRef:G,childTriggerColIndexRef:H,indentRef:X,rowPropsRef:N,maxHeightRef:T,stripedRef:O,loadingRef:R,onLoadRef:L,loadingKeySetRef:ne,expandableRef:y,stickyExpandedRowsRef:K,renderExpandIconRef:U,summaryPlacementRef:ue,treeMateRef:se,scrollbarPropsRef:Fe,setHeaderScrollLeft:pe,doUpdateExpandedRowKeys:fe,handleTableBodyScroll:Ce,doCheck:ee,doUncheck:q,renderCell:Te}=Oe(Tn),Ne=Oe(ln),j=$(null),V=$(null),ge=$(null),we=vt(()=>s.value.length===0),le=vt(()=>e.showHeader||!we.value),re=vt(()=>e.showHeader||we.value);let he="";const oe=D(()=>new Set(n.value));function ie(Le){var ot;return(ot=se.value.getNode(Le))===null||ot===void 0?void 0:ot.rawNode}function ce(Le,ot,te){const me=ie(Le.key);if(!me){xn("data-table",`fail to get row data with key ${Le.key}`);return}if(te){const ze=s.value.findIndex(He=>He.key===he);if(ze!==-1){const He=s.value.findIndex(nt=>nt.key===Le.key),je=Math.min(ze,He),qe=Math.max(ze,He),Ze=[];s.value.slice(je,qe+1).forEach(nt=>{nt.disabled||Ze.push(nt.key)}),ot?ee(Ze,!1,me):q(Ze,me),he=Le.key;return}}ot?ee(Le.key,!1,me):q(Le.key,me),he=Le.key}function ae(Le){const ot=ie(Le.key);if(!ot){xn("data-table",`fail to get row data with key ${Le.key}`);return}ee(Le.key,!0,ot)}function Q(){if(!le.value){const{value:ot}=ge;return ot||null}if(_.value)return Be();const{value:Le}=j;return Le?Le.containerRef:null}function de(Le,ot){var te;if(ne.value.has(Le))return;const{value:me}=n,ze=me.indexOf(Le),He=Array.from(me);~ze?(He.splice(ze,1),fe(He)):ot&&!ot.isLeaf&&!ot.shallowLoaded?(ne.value.add(Le),(te=L.value)===null||te===void 0||te.call(L,ot.rawNode).then(()=>{const{value:je}=n,qe=Array.from(je);~qe.indexOf(Le)||qe.push(Le),fe(qe)}).finally(()=>{ne.value.delete(Le)})):(He.push(Le),fe(He))}function ve(){E.value=null}function Be(){const{value:Le}=V;return(Le==null?void 0:Le.listElRef)||null}function Ge(){const{value:Le}=V;return(Le==null?void 0:Le.itemsElRef)||null}function et(Le){var ot;Ce(Le),(ot=j.value)===null||ot===void 0||ot.sync()}function st(Le){var ot;const{onResize:te}=e;te&&te(Le),(ot=j.value)===null||ot===void 0||ot.sync()}const Ye={getScrollContainer:Q,scrollTo(Le,ot){var te,me;_.value?(te=V.value)===null||te===void 0||te.scrollTo(Le,ot):(me=j.value)===null||me===void 0||me.scrollTo(Le,ot)}},pt=W([({props:Le})=>{const ot=me=>me===null?null:W(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),te=me=>me===null?null:W(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return W([ot(Le.leftActiveFixedColKey),te(Le.rightActiveFixedColKey),Le.leftActiveFixedChildrenColKeys.map(me=>ot(me)),Le.rightActiveFixedChildrenColKeys.map(me=>te(me))])}]);let Qe=!1;return Et(()=>{const{value:Le}=p,{value:ot}=g,{value:te}=v,{value:me}=b;if(!Qe&&Le===null&&te===null)return;const ze={leftActiveFixedColKey:Le,leftActiveFixedChildrenColKeys:ot,rightActiveFixedColKey:te,rightActiveFixedChildrenColKeys:me,componentId:A};pt.mount({id:`n-${A}`,force:!0,props:ze,anchorMetaName:Aa,parent:Ne==null?void 0:Ne.styleMountTarget}),Qe=!0}),Go(()=>{pt.unmount({id:`n-${A}`,parent:Ne==null?void 0:Ne.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:ue,dataTableSlots:t,componentId:A,scrollbarInstRef:j,virtualListRef:V,emptyElRef:ge,summary:w,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:l,loading:R,bodyShowHeaderOnly:re,shouldDisplaySomeTablePart:le,empty:we,paginatedDataAndInfo:D(()=>{const{value:Le}=O;let ot=!1;return{data:s.value.map(Le?(me,ze)=>(me.isLeaf||(ot=!0),{tmNode:me,key:me.key,striped:ze%2===1,index:ze}):(me,ze)=>(me.isLeaf||(ot=!0),{tmNode:me,key:me.key,striped:!1,index:ze})),hasChildren:ot}}),rawPaginatedData:u,fixedColumnLeftMap:d,fixedColumnRightMap:c,currentPage:h,rowClassName:f,renderExpand:x,mergedExpandedRowKeySet:oe,hoverKey:E,mergedSortState:k,virtualScroll:_,virtualScrollX:F,heightForRow:P,minRowHeight:z,mergedTableLayout:G,childTriggerColIndex:H,indent:X,rowProps:N,maxHeight:T,loadingKeySet:ne,expandable:y,stickyExpandedRows:K,renderExpandIcon:U,scrollbarProps:Fe,setHeaderScrollLeft:pe,handleVirtualListScroll:et,handleVirtualListResize:st,handleMouseleaveTable:ve,virtualListContainer:Be,virtualListContent:Ge,handleTableBodyScroll:Ce,handleCheckboxUpdateChecked:ce,handleRadioUpdateChecked:ae,handleUpdateExpanded:de,renderCell:Te},Ye)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:n,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:u}=this,d=t!==void 0||r!==void 0||a,c=!d&&i==="auto",h=t!==void 0||c,f={minWidth:So(t)||"100%"};t&&(f.width="100%");const p=m(or,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||c,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:f,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:u,onResize:s}),{default:()=>{const g={},v={},{cols:b,paginatedDataAndInfo:x,mergedTheme:E,fixedColumnLeftMap:w,fixedColumnRightMap:k,currentPage:_,rowClassName:F,mergedSortState:P,mergedExpandedRowKeySet:z,stickyExpandedRows:A,componentId:G,childTriggerColIndex:H,expandable:X,rowProps:N,handleMouseleaveTable:T,renderExpand:O,summary:R,handleCheckboxUpdateChecked:L,handleRadioUpdateChecked:ne,handleUpdateExpanded:y,heightForRow:K,minRowHeight:U,virtualScrollX:ue}=this,{length:se}=b;let Fe;const{data:pe,hasChildren:fe}=x,Ce=fe?lD(pe,z):pe;if(R){const he=R(this.rawPaginatedData);if(Array.isArray(he)){const oe=he.map((ie,ce)=>({isSummaryRow:!0,key:`__n_summary__${ce}`,tmNode:{rawNode:ie,disabled:!0},index:-1}));Fe=this.summaryPlacement==="top"?[...oe,...Ce]:[...Ce,...oe]}else{const oe={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:he,disabled:!0},index:-1};Fe=this.summaryPlacement==="top"?[oe,...Ce]:[...Ce,oe]}}else Fe=Ce;const ee=fe?{width:Ht(this.indent)}:void 0,q=[];Fe.forEach(he=>{O&&z.has(he.key)&&(!X||X(he.tmNode.rawNode))?q.push(he,{isExpandedRow:!0,key:`${he.key}-expand`,tmNode:he.tmNode,index:he.index}):q.push(he)});const{length:Te}=q,Ne={};pe.forEach(({tmNode:he},oe)=>{Ne[oe]=he.key});const j=A?this.bodyWidth:null,V=j===null?void 0:`${j}px`,ge=this.virtualScrollX?"div":"td";let we=0,le=0;ue&&b.forEach(he=>{he.column.fixed==="left"?we++:he.column.fixed==="right"&&le++});const re=({rowInfo:he,displayedRowIndex:oe,isVirtual:ie,isVirtualX:ce,startColIndex:ae,endColIndex:Q,getLeft:de})=>{const{index:ve}=he;if("isExpandedRow"in he){const{tmNode:{key:He,rawNode:je}}=he;return m("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${He}__expand`},m("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,oe+1===Te&&`${o}-data-table-td--last-row`],colspan:se},A?m("div",{class:`${o}-data-table-expand`,style:{width:V}},O(je,ve)):O(je,ve)))}const Be="isSummaryRow"in he,Ge=!Be&&he.striped,{tmNode:et,key:st}=he,{rawNode:Ye}=et,pt=z.has(st),Qe=N?N(Ye,ve):void 0,Le=typeof F=="string"?F:AB(Ye,ve,F),ot=ce?b.filter((He,je)=>!!(ae<=je&&je<=Q||He.column.fixed)):b,te=ce?Ht((K==null?void 0:K(Ye,ve))||U):void 0,me=ot.map(He=>{var je,qe,Ze,nt,yt;const Bt=He.index;if(oe in g){const Yt=g[oe],no=Yt.indexOf(Bt);if(~no)return Yt.splice(no,1),null}const{column:kt}=He,xo=En(He),{rowSpan:Po,colSpan:Ao}=kt,No=Be?((je=he.tmNode.rawNode[xo])===null||je===void 0?void 0:je.colSpan)||1:Ao?Ao(Ye,ve):1,Vo=Be?((qe=he.tmNode.rawNode[xo])===null||qe===void 0?void 0:qe.rowSpan)||1:Po?Po(Ye,ve):1,un=Bt+No===se,dn=oe+Vo===Te,be=Vo>1;if(be&&(v[oe]={[Bt]:[]}),No>1||be)for(let Yt=oe;Yt{y(st,he.tmNode)}})]:null,kt.type==="selection"?Be?null:kt.multiple===!1?m(aD,{key:_,rowKey:st,disabled:he.tmNode.disabled,onUpdateChecked:()=>{ne(he.tmNode)}}):m(iD,{key:_,rowKey:st,disabled:he.tmNode.disabled,onUpdateChecked:(Yt,no)=>{L(he.tmNode,Yt,no.shiftKey)}}):kt.type==="expand"?Be?null:!kt.expandable||!((yt=kt.expandable)===null||yt===void 0)&&yt.call(kt,Ye)?m(u4,{clsPrefix:o,rowData:Ye,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{y(st,null)}}):null:m(rD,{clsPrefix:o,index:ve,row:Ye,column:kt,isSummary:Be,mergedTheme:E,renderCell:this.renderCell}))});return ce&&we&&le&&me.splice(we,0,m("td",{colspan:b.length-we-le,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",Object.assign({},Qe,{onMouseenter:He=>{var je;this.hoverKey=st,(je=Qe==null?void 0:Qe.onMouseenter)===null||je===void 0||je.call(Qe,He)},key:st,class:[`${o}-data-table-tr`,Be&&`${o}-data-table-tr--summary`,Ge&&`${o}-data-table-tr--striped`,pt&&`${o}-data-table-tr--expanded`,Le,Qe==null?void 0:Qe.class],style:[Qe==null?void 0:Qe.style,ce&&{height:te}]}),me)};return n?m(b3,{ref:"virtualListRef",items:q,itemSize:this.minRowHeight,visibleItemsTag:sD,visibleItemsProps:{clsPrefix:o,id:G,cols:b,onMouseleave:T},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!ue,columns:b,renderItemWithCols:ue?({itemIndex:he,item:oe,startColIndex:ie,endColIndex:ce,getLeft:ae})=>re({displayedRowIndex:he,isVirtual:!0,isVirtualX:!0,rowInfo:oe,startColIndex:ie,endColIndex:ce,getLeft:ae}):void 0},{default:({item:he,index:oe,renderedItemWithCols:ie})=>ie||re({rowInfo:he,displayedRowIndex:oe,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(ce){return 0}})}):m("table",{class:`${o}-data-table-table`,onMouseleave:T,style:{tableLayout:this.mergedTableLayout}},m("colgroup",null,b.map(he=>m("col",{key:he.key,style:he.style}))),this.showHeader?m(qm,{discrete:!1}):null,this.empty?null:m("tbody",{"data-n-id":G,class:`${o}-data-table-tbody`},q.map((he,oe)=>re({rowInfo:he,displayedRowIndex:oe,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(ie){return-1}}))))}});if(this.empty){const g=()=>m("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},wo(this.dataTableSlots.empty,()=>[m(L3,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?m(ft,null,p,g()):m(Rn,{onResize:this.onResize},{default:g})}return p}}),dD=ye({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:s}=Oe(Tn),u=$(null),d=$(null),c=$(null),h=$(!(o.value.length||t.value.length)),f=D(()=>({maxHeight:So(r.value),minHeight:So(i.value)}));function p(x){n.value=x.contentRect.width,s(),h.value||(h.value=!0)}function g(){var x;const{value:E}=u;return E?l.value?((x=E.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:E.$el:null}function v(){const{value:x}=d;return x?x.getScrollContainer():null}const b={getBodyElement:v,getHeaderElement:g,scrollTo(x,E){var w;(w=d.value)===null||w===void 0||w.scrollTo(x,E)}};return Et(()=>{const{value:x}=c;if(!x)return;const E=`${e.value}-data-table-base-table--transition-disabled`;h.value?setTimeout(()=>{x.classList.remove(E)},0):x.classList.add(E)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:c,headerInstRef:u,bodyInstRef:d,bodyStyle:f,flexHeight:a,handleBodyResize:p},b)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,n=t===void 0&&!o;return m("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:m(qm,{ref:"headerInstRef"}),m(uD,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}});function cD(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=$(e.defaultCheckedRowKeys),a=D(()=>{var k;const{checkedRowKeys:_}=e,F=_===void 0?i.value:_;return((k=r.value)===null||k===void 0?void 0:k.multiple)===!1?{checkedKeys:F.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(F,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=D(()=>a.value.checkedKeys),s=D(()=>a.value.indeterminateKeys),u=D(()=>new Set(l.value)),d=D(()=>new Set(s.value)),c=D(()=>{const{value:k}=u;return o.value.reduce((_,F)=>{const{key:P,disabled:z}=F;return _+(!z&&k.has(P)?1:0)},0)}),h=D(()=>o.value.filter(k=>k.disabled).length),f=D(()=>{const{length:k}=o.value,{value:_}=d;return c.value>0&&c.value_.has(F.key))}),p=D(()=>{const{length:k}=o.value;return c.value!==0&&c.value===k-h.value}),g=D(()=>o.value.length===0);function v(k,_,F){const{"onUpdate:checkedRowKeys":P,onUpdateCheckedRowKeys:z,onCheckedRowKeysChange:A}=e,G=[],{value:{getNode:H}}=n;k.forEach(X=>{var N;const T=(N=H(X))===null||N===void 0?void 0:N.rawNode;G.push(T)}),P&&Re(P,k,G,{row:_,action:F}),z&&Re(z,k,G,{row:_,action:F}),A&&Re(A,k,G,{row:_,action:F}),i.value=k}function b(k,_=!1,F){if(!e.loading){if(_){v(Array.isArray(k)?k.slice(0,1):[k],F,"check");return}v(n.value.check(k,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,F,"check")}}function x(k,_){e.loading||v(n.value.uncheck(k,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"uncheck")}function E(k=!1){const{value:_}=r;if(!_||e.loading)return;const F=[];(k?n.value.treeNodes:o.value).forEach(P=>{P.disabled||F.push(P.key)}),v(n.value.check(F,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function w(k=!1){const{value:_}=r;if(!_||e.loading)return;const F=[];(k?n.value.treeNodes:o.value).forEach(P=>{P.disabled||F.push(P.key)}),v(n.value.uncheck(F,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:f,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:v,doCheckAll:E,doUncheckAll:w,doCheck:b,doUncheck:x}}function mu(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function fD(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?hD(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function hD(e){return(t,o)=>{const n=t[e],r=o[e];return n==null?r==null?0:-1:r==null?1:typeof n=="number"&&typeof r=="number"?n-r:typeof n=="string"&&typeof r=="string"?n.localeCompare(r):0}}function pD(e,{dataRelatedColsRef:t,filteredDataRef:o}){const n=[];t.value.forEach(f=>{var p;f.sorter!==void 0&&h(n,{columnKey:f.key,sorter:f.sorter,order:(p=f.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=$(n),i=D(()=>{const f=t.value.filter(v=>v.type!=="selection"&&v.sorter!==void 0&&(v.sortOrder==="ascend"||v.sortOrder==="descend"||v.sortOrder===!1)),p=f.filter(v=>v.sortOrder!==!1);if(p.length)return p.map(v=>({columnKey:v.key,order:v.sortOrder,sorter:v.sorter}));if(f.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=D(()=>{const f=i.value.slice().sort((p,g)=>{const v=mu(p.sorter)||0;return(mu(g.sorter)||0)-v});return f.length?o.value.slice().sort((g,v)=>{let b=0;return f.some(x=>{const{columnKey:E,sorter:w,order:k}=x,_=fD(w,E);return _&&k&&(b=_(g.rawNode,v.rawNode),b!==0)?(b=b*zB(k),!0):!1}),b}):o.value});function l(f){let p=i.value.slice();return f&&mu(f.sorter)!==!1?(p=p.filter(g=>mu(g.sorter)!==!1),h(p,f),p):f||null}function s(f){const p=l(f);u(p)}function u(f){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:v}=e;p&&Re(p,f),g&&Re(g,f),v&&Re(v,f),r.value=f}function d(f,p="ascend"){if(!f)c();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===f);if(!(g!=null&&g.sorter))return;const v=g.sorter;s({columnKey:f,sorter:v,order:p})}}function c(){u(null)}function h(f,p){const g=f.findIndex(v=>(p==null?void 0:p.columnKey)&&v.columnKey===p.columnKey);g!==void 0&&g>=0?f[g]=p:f.push(p)}return{clearSorter:c,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function mD(e,{dataRelatedColsRef:t}){const o=D(()=>{const K=U=>{for(let ue=0;ue{const{childrenKey:K}=e;return Hd(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:U=>U[K],getDisabled:U=>{var ue,se;return!!(!((se=(ue=o.value)===null||ue===void 0?void 0:ue.disabled)===null||se===void 0)&&se.call(ue,U))}})}),r=vt(()=>{const{columns:K}=e,{length:U}=K;let ue=null;for(let se=0;se{const K=t.value.filter(se=>se.filterOptionValues!==void 0||se.filterOptionValue!==void 0),U={};return K.forEach(se=>{var Fe;se.type==="selection"||se.type==="expand"||(se.filterOptionValues===void 0?U[se.key]=(Fe=se.filterOptionValue)!==null&&Fe!==void 0?Fe:null:U[se.key]=se.filterOptionValues)}),Object.assign(i4(i.value),U)}),d=D(()=>{const K=u.value,{columns:U}=e;function ue(pe){return(fe,Ce)=>!!~String(Ce[pe]).indexOf(String(fe))}const{value:{treeNodes:se}}=n,Fe=[];return U.forEach(pe=>{pe.type==="selection"||pe.type==="expand"||"children"in pe||Fe.push([pe.key,pe])}),se?se.filter(pe=>{const{rawNode:fe}=pe;for(const[Ce,ee]of Fe){let q=K[Ce];if(q==null||(Array.isArray(q)||(q=[q]),!q.length))continue;const Te=ee.filter==="default"?ue(Ce):ee.filter;if(ee&&typeof Te=="function")if(ee.filterMode==="and"){if(q.some(Ne=>!Te(Ne,fe)))return!1}else{if(q.some(Ne=>Te(Ne,fe)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:h,mergedSortStateRef:f,sort:p,clearSorter:g}=pD(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(K=>{var U;if(K.filter){const ue=K.defaultFilterOptionValues;K.filterMultiple?i.value[K.key]=ue||[]:ue!==void 0?i.value[K.key]=ue===null?[]:ue:i.value[K.key]=(U=K.defaultFilterOptionValue)!==null&&U!==void 0?U:null}});const v=D(()=>{const{pagination:K}=e;if(K!==!1)return K.page}),b=D(()=>{const{pagination:K}=e;if(K!==!1)return K.pageSize}),x=oo(v,l),E=oo(b,s),w=vt(()=>{const K=x.value;return e.remote?K:Math.max(1,Math.min(Math.ceil(d.value.length/E.value),K))}),k=D(()=>{const{pagination:K}=e;if(K){const{pageCount:U}=K;if(U!==void 0)return U}}),_=D(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const K=E.value,U=(w.value-1)*K;return c.value.slice(U,U+K)}),F=D(()=>_.value.map(K=>K.rawNode));function P(K){const{pagination:U}=e;if(U){const{onChange:ue,"onUpdate:page":se,onUpdatePage:Fe}=U;ue&&Re(ue,K),Fe&&Re(Fe,K),se&&Re(se,K),H(K)}}function z(K){const{pagination:U}=e;if(U){const{onPageSizeChange:ue,"onUpdate:pageSize":se,onUpdatePageSize:Fe}=U;ue&&Re(ue,K),Fe&&Re(Fe,K),se&&Re(se,K),X(K)}}const A=D(()=>{if(e.remote){const{pagination:K}=e;if(K){const{itemCount:U}=K;if(U!==void 0)return U}return}return d.value.length}),G=D(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":P,"onUpdate:pageSize":z,page:w.value,pageSize:E.value,pageCount:A.value===void 0?k.value:void 0,itemCount:A.value}));function H(K){const{"onUpdate:page":U,onPageChange:ue,onUpdatePage:se}=e;se&&Re(se,K),U&&Re(U,K),ue&&Re(ue,K),l.value=K}function X(K){const{"onUpdate:pageSize":U,onPageSizeChange:ue,onUpdatePageSize:se}=e;ue&&Re(ue,K),se&&Re(se,K),U&&Re(U,K),s.value=K}function N(K,U){const{onUpdateFilters:ue,"onUpdate:filters":se,onFiltersChange:Fe}=e;ue&&Re(ue,K,U),se&&Re(se,K,U),Fe&&Re(Fe,K,U),i.value=K}function T(K,U,ue,se){var Fe;(Fe=e.onUnstableColumnResize)===null||Fe===void 0||Fe.call(e,K,U,ue,se)}function O(K){H(K)}function R(){L()}function L(){ne({})}function ne(K){y(K)}function y(K){K?K&&(i.value=i4(K)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:w,mergedPaginationRef:G,paginatedDataRef:_,rawPaginatedDataRef:F,mergedFilterStateRef:u,mergedSortStateRef:f,hoverKeyRef:$(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:N,deriveNextSorter:h,doUpdatePageSize:X,doUpdatePage:H,onUnstableColumnResize:T,filter:y,filters:ne,clearFilter:R,clearFilters:L,clearSorter:g,page:O,sort:p}}function gD(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=$(),a=$(null),l=$([]),s=$(null),u=$([]),d=D(()=>So(e.scrollX)),c=D(()=>e.columns.filter(z=>z.fixed==="left")),h=D(()=>e.columns.filter(z=>z.fixed==="right")),f=D(()=>{const z={};let A=0;function G(H){H.forEach(X=>{const N={start:A,end:0};z[En(X)]=N,"children"in X?(G(X.children),N.end=A):(A+=r4(X)||0,N.end=A)})}return G(c.value),z}),p=D(()=>{const z={};let A=0;function G(H){for(let X=H.length-1;X>=0;--X){const N=H[X],T={start:A,end:0};z[En(N)]=T,"children"in N?(G(N.children),T.end=A):(A+=r4(N)||0,T.end=A)}}return G(h.value),z});function g(){var z,A;const{value:G}=c;let H=0;const{value:X}=f;let N=null;for(let T=0;T(((z=X[O])===null||z===void 0?void 0:z.start)||0)-H)N=O,H=((A=X[O])===null||A===void 0?void 0:A.end)||0;else break}a.value=N}function v(){l.value=[];let z=e.columns.find(A=>En(A)===a.value);for(;z&&"children"in z;){const A=z.children.length;if(A===0)break;const G=z.children[A-1];l.value.push(En(G)),z=G}}function b(){var z,A;const{value:G}=h,H=Number(e.scrollX),{value:X}=n;if(X===null)return;let N=0,T=null;const{value:O}=p;for(let R=G.length-1;R>=0;--R){const L=En(G[R]);if(Math.round(r+(((z=O[L])===null||z===void 0?void 0:z.start)||0)+X-N)En(A)===s.value);for(;z&&"children"in z&&z.children.length;){const A=z.children[0];u.value.push(En(A)),z=A}}function E(){const z=t.value?t.value.getHeaderElement():null,A=t.value?t.value.getBodyElement():null;return{header:z,body:A}}function w(){const{body:z}=E();z&&(z.scrollTop=0)}function k(){i.value!=="body"?Ql(F):i.value=void 0}function _(z){var A;(A=e.onScroll)===null||A===void 0||A.call(e,z),i.value!=="head"?Ql(F):i.value=void 0}function F(){const{header:z,body:A}=E();if(!A)return;const{value:G}=n;if(G!==null){if(e.maxHeight||e.flexHeight){if(!z)return;const H=r-z.scrollLeft;i.value=H!==0?"head":"body",i.value==="head"?(r=z.scrollLeft,A.scrollLeft=r):(r=A.scrollLeft,z.scrollLeft=r)}else r=A.scrollLeft;g(),v(),b(),x()}}function P(z){const{header:A}=E();A&&(A.scrollLeft=z,F())}return lt(o,()=>{w()}),{styleScrollXRef:d,fixedColumnLeftMapRef:f,fixedColumnRightMapRef:p,leftFixedColumnsRef:c,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:u,syncScrollState:F,handleTableBodyScroll:_,handleTableHeaderScroll:k,setHeaderScrollLeft:P}}function vD(){const e=$({});function t(r){return e.value[r]}function o(r,i){Im(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function bD(e,t){const o=[],n=[],r=[],i=new WeakMap;let a=-1,l=0,s=!1;function u(h,f){f>a&&(o[f]=[],a=f),h.forEach((p,g)=>{if("children"in p)u(p.children,f+1);else{const v="key"in p?p.key:void 0;n.push({key:En(p),style:PB(p,v!==void 0?So(t(v)):void 0),column:p,index:g,width:p.width===void 0?128:Number(p.width)}),l+=1,s||(s=!!p.ellipsis),r.push(p)}})}u(e,0);let d=0;function c(h,f){let p=0;h.forEach(g=>{var v;if("children"in g){const b=d,x={column:g,colIndex:d,colSpan:0,rowSpan:1,isLast:!1};c(g.children,f+1),g.children.forEach(E=>{var w,k;x.colSpan+=(k=(w=i.get(E))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),b+x.colSpan===l&&(x.isLast=!0),i.set(g,x),o[f].push(x)}else{if(d1&&(p=d+b);const x=d+b===l,E={column:g,colSpan:b,colIndex:d,rowSpan:a-f+1,isLast:x};i.set(g,E),o[f].push(E),d+=1}})}return c(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function xD(e,t){const o=D(()=>bD(e.columns,t));return{rowsRef:D(()=>o.value.rows),colsRef:D(()=>o.value.cols),hasEllipsisRef:D(()=>o.value.hasEllipsis),dataRelatedColsRef:D(()=>o.value.dataRelatedCols)}}function yD(e,t){const o=vt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=vt(()=>{let u;for(const d of e.columns)if(d.type==="expand"){u=d.expandable;break}return u}),r=$(e.defaultExpandAll?o!=null&&o.value?(()=>{const u=[];return t.value.treeNodes.forEach(d=>{var c;!((c=n.value)===null||c===void 0)&&c.call(n,d.rawNode)&&u.push(d.key)}),u})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Ae(e,"expandedRowKeys"),a=Ae(e,"stickyExpandedRows"),l=oo(i,r);function s(u){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":c}=e;d&&Re(d,u),c&&Re(c,u),r.value=u}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}const d4=wD(),CD=W([B("data-table",` width: 100%; font-size: var(--n-font-size); display: flex; @@ -2312,15 +2312,15 @@ ${t} --n-merged-td-color-hover: var(--n-td-color-hover); --n-merged-td-color-sorting: var(--n-td-color-sorting); --n-merged-td-color-striped: var(--n-td-color-striped); - `,[A("data-table-wrapper",` + `,[B("data-table-wrapper",` flex-grow: 1; display: flex; flex-direction: column; - `),ee("flex-height",[W(">",[A("data-table-wrapper",[W(">",[A("data-table-base-table",` + `),J("flex-height",[W(">",[B("data-table-wrapper",[W(">",[B("data-table-base-table",` display: flex; flex-direction: column; flex-grow: 1; - `,[W(">",[A("data-table-base-table-body","flex-basis: 0;",[W("&:last-child","flex-grow: 1;")])])])])])])]),W(">",[A("data-table-loading-wrapper",` + `,[W(">",[B("data-table-base-table-body","flex-basis: 0;",[W("&:last-child","flex-grow: 1;")])])])])])])]),W(">",[B("data-table-loading-wrapper",` color: var(--n-loading-color); font-size: var(--n-loading-size); position: absolute; @@ -2331,15 +2331,15 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[Pn({originalTransform:"translateX(-50%) translateY(-50%)"})])]),A("data-table-expand-placeholder",` + `,[Pn({originalTransform:"translateX(-50%) translateY(-50%)"})])]),B("data-table-expand-placeholder",` margin-right: 8px; display: inline-block; width: 16px; height: 1px; - `),A("data-table-indent",` + `),B("data-table-indent",` display: inline-block; height: 1px; - `),A("data-table-expand-trigger",` + `),B("data-table-expand-trigger",` display: inline-flex; margin-right: 8px; cursor: pointer; @@ -2350,7 +2350,7 @@ ${t} height: 16px; color: var(--n-td-text-color); transition: color .3s var(--n-bezier); - `,[ee("expanded",[A("icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})]),A("base-icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})])]),A("base-loading",` + `,[J("expanded",[B("icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})]),B("base-icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})])]),B("base-loading",` color: var(--n-loading-color); transition: color .3s var(--n-bezier); position: absolute; @@ -2358,34 +2358,34 @@ ${t} right: 0; top: 0; bottom: 0; - `,[en()]),A("icon",` + `,[en()]),B("icon",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[en()]),A("base-icon",` + `,[en()]),B("base-icon",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[en()])]),A("data-table-thead",` + `,[en()])]),B("data-table-thead",` transition: background-color .3s var(--n-bezier); background-color: var(--n-merged-th-color); - `),A("data-table-tr",` + `),B("data-table-tr",` position: relative; box-sizing: border-box; background-clip: padding-box; transition: background-color .3s var(--n-bezier); - `,[A("data-table-expand",` + `,[B("data-table-expand",` position: sticky; left: 0; overflow: hidden; margin: calc(var(--n-th-padding) * -1); padding: var(--n-th-padding); box-sizing: border-box; - `),ee("striped","background-color: var(--n-merged-td-color-striped);",[A("data-table-td","background-color: var(--n-merged-td-color-striped);")]),_t("summary",[W("&:hover","background-color: var(--n-merged-td-color-hover);",[W(">",[A("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),A("data-table-th",` + `),J("striped","background-color: var(--n-merged-td-color-striped);",[B("data-table-td","background-color: var(--n-merged-td-color-striped);")]),_t("summary",[W("&:hover","background-color: var(--n-merged-td-color-hover);",[W(">",[B("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),B("data-table-th",` padding: var(--n-th-padding); position: relative; text-align: start; @@ -2399,41 +2399,41 @@ ${t} color .3s var(--n-bezier), background-color .3s var(--n-bezier); font-weight: var(--n-th-font-weight); - `,[ee("filterable",` + `,[J("filterable",` padding-right: 36px; - `,[ee("sortable",` + `,[J("sortable",` padding-right: calc(var(--n-th-padding) + 36px); - `)]),d4,ee("selection",` + `)]),d4,J("selection",` padding: 0; text-align: center; line-height: 0; z-index: 3; - `),q("title-wrapper",` + `),Y("title-wrapper",` display: flex; align-items: center; flex-wrap: nowrap; max-width: 100%; - `,[q("title",` + `,[Y("title",` flex: 1; min-width: 0; - `)]),q("ellipsis",` + `)]),Y("ellipsis",` display: inline-block; vertical-align: bottom; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100%; - `),ee("hover",` + `),J("hover",` background-color: var(--n-merged-th-color-hover); - `),ee("sorting",` + `),J("sorting",` background-color: var(--n-merged-th-color-sorting); - `),ee("sortable",` + `),J("sortable",` cursor: pointer; - `,[q("ellipsis",` + `,[Y("ellipsis",` max-width: calc(100% - 18px); `),W("&:hover",` background-color: var(--n-merged-th-color-hover); - `)]),A("data-table-sorter",` + `)]),B("data-table-sorter",` height: var(--n-sorter-size); width: var(--n-sorter-size); margin-left: 4px; @@ -2444,13 +2444,13 @@ ${t} vertical-align: -0.2em; color: var(--n-th-icon-color); transition: color .3s var(--n-bezier); - `,[A("base-icon","transition: transform .3s var(--n-bezier)"),ee("desc",[A("base-icon",` + `,[B("base-icon","transition: transform .3s var(--n-bezier)"),J("desc",[B("base-icon",` transform: rotate(0deg); - `)]),ee("asc",[A("base-icon",` + `)]),J("asc",[B("base-icon",` transform: rotate(-180deg); - `)]),ee("asc, desc",` + `)]),J("asc, desc",` color: var(--n-th-icon-color-active); - `)]),A("data-table-resize-button",` + `)]),B("data-table-resize-button",` width: var(--n-resizable-container-size); position: absolute; top: 0; @@ -2470,11 +2470,11 @@ ${t} transition: background-color .3s var(--n-bezier); z-index: 1; content: ''; - `),ee("active",[W("&::after",` + `),J("active",[W("&::after",` background-color: var(--n-th-icon-color-active); `)]),W("&:hover::after",` background-color: var(--n-th-icon-color-active); - `)]),A("data-table-filter",` + `)]),B("data-table-filter",` position: absolute; z-index: auto; right: 0; @@ -2492,12 +2492,12 @@ ${t} color: var(--n-th-icon-color); `,[W("&:hover",` background-color: var(--n-th-button-color-hover); - `),ee("show",` + `),J("show",` background-color: var(--n-th-button-color-hover); - `),ee("active",` + `),J("active",` background-color: var(--n-th-button-color-hover); color: var(--n-th-icon-color-active); - `)])]),A("data-table-td",` + `)])]),B("data-table-td",` padding: var(--n-td-padding); text-align: start; box-sizing: border-box; @@ -2510,21 +2510,21 @@ ${t} background-color .3s var(--n-bezier), border-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[ee("expand",[A("data-table-expand-trigger",` + `,[J("expand",[B("data-table-expand-trigger",` margin-right: 0; - `)]),ee("last-row",` + `)]),J("last-row",` border-bottom: 0 solid var(--n-merged-border-color); `,[W("&::after",` bottom: 0 !important; `),W("&::before",` bottom: 0 !important; - `)]),ee("summary",` + `)]),J("summary",` background-color: var(--n-merged-th-color); - `),ee("hover",` + `),J("hover",` background-color: var(--n-merged-td-color-hover); - `),ee("sorting",` + `),J("sorting",` background-color: var(--n-merged-td-color-sorting); - `),q("ellipsis",` + `),Y("ellipsis",` display: inline-block; text-overflow: ellipsis; overflow: hidden; @@ -2532,11 +2532,11 @@ ${t} max-width: 100%; vertical-align: bottom; max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); - `),ee("selection, expand",` + `),J("selection, expand",` text-align: center; padding: 0; line-height: 0; - `),d4]),A("data-table-empty",` + `),d4]),B("data-table-empty",` box-sizing: border-box; padding: var(--n-empty-padding); flex-grow: 1; @@ -2546,42 +2546,42 @@ ${t} align-items: center; justify-content: center; transition: opacity .3s var(--n-bezier); - `,[ee("hide",` + `,[J("hide",` opacity: 0; - `)]),q("pagination",` + `)]),Y("pagination",` margin: var(--n-pagination-margin); display: flex; justify-content: flex-end; - `),A("data-table-wrapper",` + `),B("data-table-wrapper",` position: relative; opacity: 1; transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); border-top-left-radius: var(--n-border-radius); border-top-right-radius: var(--n-border-radius); line-height: var(--n-line-height); - `),ee("loading",[A("data-table-wrapper",` + `),J("loading",[B("data-table-wrapper",` opacity: var(--n-opacity-loading); pointer-events: none; - `)]),ee("single-column",[A("data-table-td",` + `)]),J("single-column",[B("data-table-td",` border-bottom: 0 solid var(--n-merged-border-color); `,[W("&::after, &::before",` bottom: 0 !important; - `)])]),_t("single-line",[A("data-table-th",` + `)])]),_t("single-line",[B("data-table-th",` border-right: 1px solid var(--n-merged-border-color); - `,[ee("last",` + `,[J("last",` border-right: 0 solid var(--n-merged-border-color); - `)]),A("data-table-td",` + `)]),B("data-table-td",` border-right: 1px solid var(--n-merged-border-color); - `,[ee("last-col",` + `,[J("last-col",` border-right: 0 solid var(--n-merged-border-color); - `)])]),ee("bordered",[A("data-table-wrapper",` + `)])]),J("bordered",[B("data-table-wrapper",` border: 1px solid var(--n-merged-border-color); border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); overflow: hidden; - `)]),A("data-table-base-table",[ee("transition-disabled",[A("data-table-th",[W("&::after, &::before","transition: none;")]),A("data-table-td",[W("&::after, &::before","transition: none;")])])]),ee("bottom-bordered",[A("data-table-td",[ee("last-row",` + `)]),B("data-table-base-table",[J("transition-disabled",[B("data-table-th",[W("&::after, &::before","transition: none;")]),B("data-table-td",[W("&::after, &::before","transition: none;")])])]),J("bottom-bordered",[B("data-table-td",[J("last-row",` border-bottom: 1px solid var(--n-merged-border-color); - `)])]),A("data-table-table",` + `)])]),B("data-table-table",` font-variant-numeric: tabular-nums; width: 100%; word-break: break-word; @@ -2589,7 +2589,7 @@ ${t} border-collapse: separate; border-spacing: 0; background-color: var(--n-merged-td-color); - `),A("data-table-base-table-header",` + `),B("data-table-base-table-header",` border-top-left-radius: calc(var(--n-border-radius) - 1px); border-top-right-radius: calc(var(--n-border-radius) - 1px); z-index: 3; @@ -2600,7 +2600,7 @@ ${t} `,[W("&::-webkit-scrollbar",` width: 0; height: 0; - `)]),A("data-table-check-extra",` + `)]),B("data-table-check-extra",` transition: color .3s var(--n-bezier); color: var(--n-th-icon-color); position: absolute; @@ -2609,31 +2609,31 @@ ${t} top: 50%; transform: translateY(-50%); z-index: 1; - `)]),A("data-table-filter-menu",[A("scrollbar",` + `)]),B("data-table-filter-menu",[B("scrollbar",` max-height: 240px; - `),q("group",` + `),Y("group",` display: flex; flex-direction: column; padding: 12px 12px 0 12px; - `,[A("checkbox",` + `,[B("checkbox",` margin-bottom: 12px; margin-right: 0; - `),A("radio",` + `),B("radio",` margin-bottom: 12px; margin-right: 0; - `)]),q("action",` + `)]),Y("action",` padding: var(--n-action-padding); display: flex; flex-wrap: nowrap; justify-content: space-evenly; border-top: 1px solid var(--n-action-divider-color); - `,[A("button",[W("&:not(:last-child)",` + `,[B("button",[W("&:not(:last-child)",` margin: var(--n-action-button-margin); `),W("&:last-child",` margin-right: 0; - `)])]),A("divider",` + `)])]),B("divider",` margin: 0 !important; - `)]),qi(A("data-table",` + `)]),qi(B("data-table",` --n-merged-th-color: var(--n-th-color-modal); --n-merged-td-color: var(--n-td-color-modal); --n-merged-border-color: var(--n-border-color-modal); @@ -2642,7 +2642,7 @@ ${t} --n-merged-th-color-sorting: var(--n-th-color-hover-modal); --n-merged-td-color-sorting: var(--n-td-color-hover-modal); --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),Ha(A("data-table",` + `)),Ha(B("data-table",` --n-merged-th-color: var(--n-th-color-popover); --n-merged-td-color: var(--n-td-color-popover); --n-merged-border-color: var(--n-border-color-popover); @@ -2651,7 +2651,7 @@ ${t} --n-merged-th-color-sorting: var(--n-th-color-hover-popover); --n-merged-td-color-sorting: var(--n-td-color-hover-popover); --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function wD(){return[ee("fixed-left",` + `))]);function wD(){return[J("fixed-left",` left: 0; position: sticky; z-index: 2; @@ -2665,7 +2665,7 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); right: -36px; - `)]),ee("fixed-right",` + `)]),J("fixed-right",` right: 0; position: sticky; z-index: 1; @@ -2679,7 +2679,7 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); left: -36px; - `)])]}const Zm=ye({name:"DataTable",alias:["AdvancedTable"],props:yB,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=rt(e),a=Vt("DataTable",i,n),l=D(()=>{const{bottomBordered:te}=e;return o.value?!1:te!==void 0?te:!0}),s=Ie("DataTable","-data-table",CD,_m,e,n),u=$(null),d=$(null),{getResizableWidth:c,clearResizableWidth:h,doUpdateResizableWidth:f}=vD(),{rowsRef:p,colsRef:g,dataRelatedColsRef:v,hasEllipsisRef:b}=xD(e,c),{treeMateRef:x,mergedCurrentPageRef:E,paginatedDataRef:C,rawPaginatedDataRef:k,selectionColumnRef:_,hoverKeyRef:F,mergedPaginationRef:P,mergedFilterStateRef:z,mergedSortStateRef:B,childTriggerColIndexRef:j,doUpdatePage:V,doUpdateFilters:K,onUnstableColumnResize:N,deriveNextSorter:T,filter:L,filters:R,clearFilter:I,clearFilters:w,clearSorter:Q,page:U,sort:X}=mD(e,{dataRelatedColsRef:v}),re=te=>{const{fileName:me="data.csv",keepOriginalData:ze=!1}=te||{},He=ze?e.data:k.value,je=TB(e.columns,He),Ge=new Blob([je],{type:"text/csv;charset=utf-8"}),Ze=URL.createObjectURL(Ge);r8(Ze,me.endsWith(".csv")?me:`${me}.csv`),URL.revokeObjectURL(Ze)},{doCheckAll:he,doUncheckAll:Se,doCheck:pe,doUncheck:fe,headerCheckboxDisabledRef:we,someRowsCheckedRef:J,allRowsCheckedRef:G,mergedCheckedRowKeySetRef:Te,mergedInderminateRowKeySetRef:Ne}=cD(e,{selectionColumnRef:_,treeMateRef:x,paginatedDataRef:C}),{stickyExpandedRowsRef:H,mergedExpandedRowKeysRef:oe,renderExpandRef:ge,expandableRef:Ce,doUpdateExpandedRowKeys:se}=yD(e,x),{handleTableBodyScroll:ie,handleTableHeaderScroll:ce,syncScrollState:ne,setHeaderScrollLeft:ae,leftActiveFixedColKeyRef:de,leftActiveFixedChildrenColKeysRef:le,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ve,rightFixedColumnsRef:Be,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:Je}=gD(e,{bodyWidthRef:u,mainTableInstRef:d,mergedCurrentPageRef:E}),{localeRef:st}=Fr("DataTable"),Ye=D(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);et(Tn,{props:e,treeMateRef:x,renderExpandIconRef:Ae(e,"renderExpandIcon"),loadingKeySetRef:$(new Set),slots:t,indentRef:Ae(e,"indent"),childTriggerColIndexRef:j,bodyWidthRef:u,componentId:ii(),hoverKeyRef:F,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:D(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:C,leftActiveFixedColKeyRef:de,leftActiveFixedChildrenColKeysRef:le,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ve,rightFixedColumnsRef:Be,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:Je,mergedCurrentPageRef:E,someRowsCheckedRef:J,allRowsCheckedRef:G,mergedSortStateRef:B,mergedFilterStateRef:z,loadingRef:Ae(e,"loading"),rowClassNameRef:Ae(e,"rowClassName"),mergedCheckedRowKeySetRef:Te,mergedExpandedRowKeysRef:oe,mergedInderminateRowKeySetRef:Ne,localeRef:st,expandableRef:Ce,stickyExpandedRowsRef:H,rowKeyRef:Ae(e,"rowKey"),renderExpandRef:ge,summaryRef:Ae(e,"summary"),virtualScrollRef:Ae(e,"virtualScroll"),virtualScrollXRef:Ae(e,"virtualScrollX"),heightForRowRef:Ae(e,"heightForRow"),minRowHeightRef:Ae(e,"minRowHeight"),virtualScrollHeaderRef:Ae(e,"virtualScrollHeader"),headerHeightRef:Ae(e,"headerHeight"),rowPropsRef:Ae(e,"rowProps"),stripedRef:Ae(e,"striped"),checkOptionsRef:D(()=>{const{value:te}=_;return te==null?void 0:te.options}),rawPaginatedDataRef:k,filterMenuCssVarsRef:D(()=>{const{self:{actionDividerColor:te,actionPadding:me,actionButtonMargin:ze}}=s.value;return{"--n-action-padding":me,"--n-action-button-margin":ze,"--n-action-divider-color":te}}),onLoadRef:Ae(e,"onLoad"),mergedTableLayoutRef:Ye,maxHeightRef:Ae(e,"maxHeight"),minHeightRef:Ae(e,"minHeight"),flexHeightRef:Ae(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:Ae(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Ae(e,"summaryPlacement"),filterIconPopoverPropsRef:Ae(e,"filterIconPopoverProps"),scrollbarPropsRef:Ae(e,"scrollbarProps"),syncScrollState:ne,doUpdatePage:V,doUpdateFilters:K,getResizableWidth:c,onUnstableColumnResize:N,clearResizableWidth:h,doUpdateResizableWidth:f,deriveNextSorter:T,doCheck:pe,doUncheck:fe,doCheckAll:he,doUncheckAll:Se,doUpdateExpandedRowKeys:se,handleTableHeaderScroll:ce,handleTableBodyScroll:ie,setHeaderScrollLeft:ae,renderCell:Ae(e,"renderCell")});const pt={filter:L,filters:R,clearFilters:w,clearSorter:Q,page:U,sort:X,clearFilter:I,downloadCsv:re,scrollTo:(te,me)=>{var ze;(ze=d.value)===null||ze===void 0||ze.scrollTo(te,me)}},Qe=D(()=>{const{size:te}=e,{common:{cubicBezierEaseInOut:me},self:{borderColor:ze,tdColorHover:He,tdColorSorting:je,tdColorSortingModal:Ge,tdColorSortingPopover:Ze,thColorSorting:ot,thColorSortingModal:yt,thColorSortingPopover:Bt,thColor:kt,thColorHover:xo,tdColor:Po,tdTextColor:Ao,thTextColor:No,thFontWeight:Vo,thButtonColorHover:un,thIconColor:dn,thIconColorActive:be,filterSize:Pe,borderRadius:it,lineHeight:wt,tdColorModal:Ot,thColorModal:$t,borderColorModal:Yt,thColorHoverModal:no,tdColorHoverModal:Fn,borderColorPopover:nr,thColorPopover:rr,tdColorPopover:di,tdColorHoverPopover:Ja,thColorHoverPopover:el,paginationMargin:tl,emptyPadding:ol,boxShadowAfter:Mr,boxShadowBefore:Rr,sorterSize:ic,resizableContainerSize:ac,resizableSize:lc,loadingColor:sc,loadingSize:uc,opacityLoading:dc,tdColorStriped:cc,tdColorStripedModal:fc,tdColorStripedPopover:hc,[Ee("fontSize",te)]:pc,[Ee("thPadding",te)]:mc,[Ee("tdPadding",te)]:gc}}=s.value;return{"--n-font-size":pc,"--n-th-padding":mc,"--n-td-padding":gc,"--n-bezier":me,"--n-border-radius":it,"--n-line-height":wt,"--n-border-color":ze,"--n-border-color-modal":Yt,"--n-border-color-popover":nr,"--n-th-color":kt,"--n-th-color-hover":xo,"--n-th-color-modal":$t,"--n-th-color-hover-modal":no,"--n-th-color-popover":rr,"--n-th-color-hover-popover":el,"--n-td-color":Po,"--n-td-color-hover":He,"--n-td-color-modal":Ot,"--n-td-color-hover-modal":Fn,"--n-td-color-popover":di,"--n-td-color-hover-popover":Ja,"--n-th-text-color":No,"--n-td-text-color":Ao,"--n-th-font-weight":Vo,"--n-th-button-color-hover":un,"--n-th-icon-color":dn,"--n-th-icon-color-active":be,"--n-filter-size":Pe,"--n-pagination-margin":tl,"--n-empty-padding":ol,"--n-box-shadow-before":Rr,"--n-box-shadow-after":Mr,"--n-sorter-size":ic,"--n-resizable-container-size":ac,"--n-resizable-size":lc,"--n-loading-size":uc,"--n-loading-color":sc,"--n-opacity-loading":dc,"--n-td-color-striped":cc,"--n-td-color-striped-modal":fc,"--n-td-color-striped-popover":hc,"n-td-color-sorting":je,"n-td-color-sorting-modal":Ge,"n-td-color-sorting-popover":Ze,"n-th-color-sorting":ot,"n-th-color-sorting-modal":yt,"n-th-color-sorting-popover":Bt}}),Le=r?gt("data-table",D(()=>e.size[0]),Qe,e):void 0,tt=D(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const te=P.value,{pageCount:me}=te;return me!==void 0?me>1:te.itemCount&&te.pageSize&&te.itemCount>te.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:a,mergedTheme:s,paginatedData:C,mergedBordered:o,mergedBottomBordered:l,mergedPagination:P,mergedShowPagination:tt,cssVars:r?void 0:Qe,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender},pt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),m("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},m("div",{class:`${e}-data-table-wrapper`},m(dD,{ref:"mainTableInstRef"})),this.mergedShowPagination?m("div",{class:`${e}-data-table__pagination`},m(cB,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,m(mo,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m("div",{class:`${e}-data-table-loading-wrapper`},wo(n.loading,()=>[m(kr,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),SD={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Xm(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:u,iconColorDisabled:d}=e;return Object.assign(Object.assign({},SD),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:u,iconColorDisabled:d})}const Ym={name:"TimePicker",common:We,peers:{Scrollbar:Lo,Button:Ho,Input:Xo},self:Xm},Qm={name:"TimePicker",common:Ve,peers:{Scrollbar:Zo,Button:Yo,Input:Sn},self:Xm},FD={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function Jm(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:u,textColor1:d,dividerColor:c,boxShadow2:h,borderRadius:f,fontWeightStrong:p}=e;return Object.assign(Object.assign({},FD),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:$e(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:n,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:c,calendarDaysDividerColor:c,calendarDividerColor:c,panelActionDividerColor:c,panelBoxShadow:h,panelBorderRadius:f,calendarTitleFontWeight:p,scrollItemBorderRadius:f,iconColor:s,iconColorDisabled:u})}const ED={name:"DatePicker",common:We,peers:{Input:Xo,Button:Ho,TimePicker:Ym,Scrollbar:Lo},self:Jm},kD={name:"DatePicker",common:Ve,peers:{Input:Sn,Button:Yo,TimePicker:Qm,Scrollbar:Zo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=Jm(e);return r.itemColorDisabled=Ue(t,o),r.itemColorIncluded=$e(n,{alpha:.15}),r.itemColorHover=Ue(t,o),r}},_D={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function eg(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:u,lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f}=e;return Object.assign(Object.assign({},_D),{lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:n,thColor:Ue(r,t),thColorModal:Ue(i,t),thColorPopover:Ue(a,t),thTextColor:n,thFontWeight:u,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ue(r,l),borderColorModal:Ue(i,l),borderColorPopover:Ue(a,l),borderRadius:s})}const MD={name:"Descriptions",common:We,self:eg},RD={name:"Descriptions",common:Ve,self:eg},zD={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function tg(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:u,successColor:d,warningColor:c,errorColor:h,primaryColor:f,dividerColor:p,borderRadius:g,fontWeightStrong:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},zD),{fontSize:x,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:n,closeColorHover:l,closeColorPressed:s,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:f,iconColorInfo:u,iconColorSuccess:d,iconColorWarning:c,iconColorError:h,borderRadius:g,titleFontWeight:v})}const t6={name:"Dialog",common:We,peers:{Button:Ho},self:tg},og={name:"Dialog",common:Ve,peers:{Button:Yo},self:tg},Zd={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},ng=Fs(Zd),$D=W([A("dialog",` + `)])]}const Zm=ye({name:"DataTable",alias:["AdvancedTable"],props:yB,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=rt(e),a=Wt("DataTable",i,n),l=D(()=>{const{bottomBordered:te}=e;return o.value?!1:te!==void 0?te:!0}),s=Ie("DataTable","-data-table",CD,_m,e,n),u=$(null),d=$(null),{getResizableWidth:c,clearResizableWidth:h,doUpdateResizableWidth:f}=vD(),{rowsRef:p,colsRef:g,dataRelatedColsRef:v,hasEllipsisRef:b}=xD(e,c),{treeMateRef:x,mergedCurrentPageRef:E,paginatedDataRef:w,rawPaginatedDataRef:k,selectionColumnRef:_,hoverKeyRef:F,mergedPaginationRef:P,mergedFilterStateRef:z,mergedSortStateRef:A,childTriggerColIndexRef:G,doUpdatePage:H,doUpdateFilters:X,onUnstableColumnResize:N,deriveNextSorter:T,filter:O,filters:R,clearFilter:L,clearFilters:ne,clearSorter:y,page:K,sort:U}=mD(e,{dataRelatedColsRef:v}),ue=te=>{const{fileName:me="data.csv",keepOriginalData:ze=!1}=te||{},He=ze?e.data:k.value,je=TB(e.columns,He),qe=new Blob([je],{type:"text/csv;charset=utf-8"}),Ze=URL.createObjectURL(qe);r8(Ze,me.endsWith(".csv")?me:`${me}.csv`),URL.revokeObjectURL(Ze)},{doCheckAll:se,doUncheckAll:Fe,doCheck:pe,doUncheck:fe,headerCheckboxDisabledRef:Ce,someRowsCheckedRef:ee,allRowsCheckedRef:q,mergedCheckedRowKeySetRef:Te,mergedInderminateRowKeySetRef:Ne}=cD(e,{selectionColumnRef:_,treeMateRef:x,paginatedDataRef:w}),{stickyExpandedRowsRef:j,mergedExpandedRowKeysRef:V,renderExpandRef:ge,expandableRef:we,doUpdateExpandedRowKeys:le}=yD(e,x),{handleTableBodyScroll:re,handleTableHeaderScroll:he,syncScrollState:oe,setHeaderScrollLeft:ie,leftActiveFixedColKeyRef:ce,leftActiveFixedChildrenColKeysRef:ae,rightActiveFixedColKeyRef:Q,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:ve,rightFixedColumnsRef:Be,fixedColumnLeftMapRef:Ge,fixedColumnRightMapRef:et}=gD(e,{bodyWidthRef:u,mainTableInstRef:d,mergedCurrentPageRef:E}),{localeRef:st}=Fr("DataTable"),Ye=D(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);tt(Tn,{props:e,treeMateRef:x,renderExpandIconRef:Ae(e,"renderExpandIcon"),loadingKeySetRef:$(new Set),slots:t,indentRef:Ae(e,"indent"),childTriggerColIndexRef:G,bodyWidthRef:u,componentId:ii(),hoverKeyRef:F,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:D(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:w,leftActiveFixedColKeyRef:ce,leftActiveFixedChildrenColKeysRef:ae,rightActiveFixedColKeyRef:Q,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:ve,rightFixedColumnsRef:Be,fixedColumnLeftMapRef:Ge,fixedColumnRightMapRef:et,mergedCurrentPageRef:E,someRowsCheckedRef:ee,allRowsCheckedRef:q,mergedSortStateRef:A,mergedFilterStateRef:z,loadingRef:Ae(e,"loading"),rowClassNameRef:Ae(e,"rowClassName"),mergedCheckedRowKeySetRef:Te,mergedExpandedRowKeysRef:V,mergedInderminateRowKeySetRef:Ne,localeRef:st,expandableRef:we,stickyExpandedRowsRef:j,rowKeyRef:Ae(e,"rowKey"),renderExpandRef:ge,summaryRef:Ae(e,"summary"),virtualScrollRef:Ae(e,"virtualScroll"),virtualScrollXRef:Ae(e,"virtualScrollX"),heightForRowRef:Ae(e,"heightForRow"),minRowHeightRef:Ae(e,"minRowHeight"),virtualScrollHeaderRef:Ae(e,"virtualScrollHeader"),headerHeightRef:Ae(e,"headerHeight"),rowPropsRef:Ae(e,"rowProps"),stripedRef:Ae(e,"striped"),checkOptionsRef:D(()=>{const{value:te}=_;return te==null?void 0:te.options}),rawPaginatedDataRef:k,filterMenuCssVarsRef:D(()=>{const{self:{actionDividerColor:te,actionPadding:me,actionButtonMargin:ze}}=s.value;return{"--n-action-padding":me,"--n-action-button-margin":ze,"--n-action-divider-color":te}}),onLoadRef:Ae(e,"onLoad"),mergedTableLayoutRef:Ye,maxHeightRef:Ae(e,"maxHeight"),minHeightRef:Ae(e,"minHeight"),flexHeightRef:Ae(e,"flexHeight"),headerCheckboxDisabledRef:Ce,paginationBehaviorOnFilterRef:Ae(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Ae(e,"summaryPlacement"),filterIconPopoverPropsRef:Ae(e,"filterIconPopoverProps"),scrollbarPropsRef:Ae(e,"scrollbarProps"),syncScrollState:oe,doUpdatePage:H,doUpdateFilters:X,getResizableWidth:c,onUnstableColumnResize:N,clearResizableWidth:h,doUpdateResizableWidth:f,deriveNextSorter:T,doCheck:pe,doUncheck:fe,doCheckAll:se,doUncheckAll:Fe,doUpdateExpandedRowKeys:le,handleTableHeaderScroll:he,handleTableBodyScroll:re,setHeaderScrollLeft:ie,renderCell:Ae(e,"renderCell")});const pt={filter:O,filters:R,clearFilters:ne,clearSorter:y,page:K,sort:U,clearFilter:L,downloadCsv:ue,scrollTo:(te,me)=>{var ze;(ze=d.value)===null||ze===void 0||ze.scrollTo(te,me)}},Qe=D(()=>{const{size:te}=e,{common:{cubicBezierEaseInOut:me},self:{borderColor:ze,tdColorHover:He,tdColorSorting:je,tdColorSortingModal:qe,tdColorSortingPopover:Ze,thColorSorting:nt,thColorSortingModal:yt,thColorSortingPopover:Bt,thColor:kt,thColorHover:xo,tdColor:Po,tdTextColor:Ao,thTextColor:No,thFontWeight:Vo,thButtonColorHover:un,thIconColor:dn,thIconColorActive:be,filterSize:Pe,borderRadius:it,lineHeight:St,tdColorModal:Ot,thColorModal:$t,borderColorModal:Yt,thColorHoverModal:no,tdColorHoverModal:Fn,borderColorPopover:nr,thColorPopover:rr,tdColorPopover:di,tdColorHoverPopover:Ja,thColorHoverPopover:el,paginationMargin:tl,emptyPadding:ol,boxShadowAfter:Mr,boxShadowBefore:Rr,sorterSize:ic,resizableContainerSize:ac,resizableSize:lc,loadingColor:sc,loadingSize:uc,opacityLoading:dc,tdColorStriped:cc,tdColorStripedModal:fc,tdColorStripedPopover:hc,[Ee("fontSize",te)]:pc,[Ee("thPadding",te)]:mc,[Ee("tdPadding",te)]:gc}}=s.value;return{"--n-font-size":pc,"--n-th-padding":mc,"--n-td-padding":gc,"--n-bezier":me,"--n-border-radius":it,"--n-line-height":St,"--n-border-color":ze,"--n-border-color-modal":Yt,"--n-border-color-popover":nr,"--n-th-color":kt,"--n-th-color-hover":xo,"--n-th-color-modal":$t,"--n-th-color-hover-modal":no,"--n-th-color-popover":rr,"--n-th-color-hover-popover":el,"--n-td-color":Po,"--n-td-color-hover":He,"--n-td-color-modal":Ot,"--n-td-color-hover-modal":Fn,"--n-td-color-popover":di,"--n-td-color-hover-popover":Ja,"--n-th-text-color":No,"--n-td-text-color":Ao,"--n-th-font-weight":Vo,"--n-th-button-color-hover":un,"--n-th-icon-color":dn,"--n-th-icon-color-active":be,"--n-filter-size":Pe,"--n-pagination-margin":tl,"--n-empty-padding":ol,"--n-box-shadow-before":Rr,"--n-box-shadow-after":Mr,"--n-sorter-size":ic,"--n-resizable-container-size":ac,"--n-resizable-size":lc,"--n-loading-size":uc,"--n-loading-color":sc,"--n-opacity-loading":dc,"--n-td-color-striped":cc,"--n-td-color-striped-modal":fc,"--n-td-color-striped-popover":hc,"n-td-color-sorting":je,"n-td-color-sorting-modal":qe,"n-td-color-sorting-popover":Ze,"n-th-color-sorting":nt,"n-th-color-sorting-modal":yt,"n-th-color-sorting-popover":Bt}}),Le=r?gt("data-table",D(()=>e.size[0]),Qe,e):void 0,ot=D(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const te=P.value,{pageCount:me}=te;return me!==void 0?me>1:te.itemCount&&te.pageSize&&te.itemCount>te.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:a,mergedTheme:s,paginatedData:w,mergedBordered:o,mergedBottomBordered:l,mergedPagination:P,mergedShowPagination:ot,cssVars:r?void 0:Qe,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender},pt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),m("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},m("div",{class:`${e}-data-table-wrapper`},m(dD,{ref:"mainTableInstRef"})),this.mergedShowPagination?m("div",{class:`${e}-data-table__pagination`},m(cB,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,m(mo,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m("div",{class:`${e}-data-table-loading-wrapper`},wo(n.loading,()=>[m(kr,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),SD={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Xm(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:u,iconColorDisabled:d}=e;return Object.assign(Object.assign({},SD),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:u,iconColorDisabled:d})}const Ym={name:"TimePicker",common:We,peers:{Scrollbar:Lo,Button:Ho,Input:Xo},self:Xm},Qm={name:"TimePicker",common:Ve,peers:{Scrollbar:Zo,Button:Yo,Input:Sn},self:Xm},FD={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function Jm(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:u,textColor1:d,dividerColor:c,boxShadow2:h,borderRadius:f,fontWeightStrong:p}=e;return Object.assign(Object.assign({},FD),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:$e(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:n,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:c,calendarDaysDividerColor:c,calendarDividerColor:c,panelActionDividerColor:c,panelBoxShadow:h,panelBorderRadius:f,calendarTitleFontWeight:p,scrollItemBorderRadius:f,iconColor:s,iconColorDisabled:u})}const ED={name:"DatePicker",common:We,peers:{Input:Xo,Button:Ho,TimePicker:Ym,Scrollbar:Lo},self:Jm},kD={name:"DatePicker",common:Ve,peers:{Input:Sn,Button:Yo,TimePicker:Qm,Scrollbar:Zo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=Jm(e);return r.itemColorDisabled=Ue(t,o),r.itemColorIncluded=$e(n,{alpha:.15}),r.itemColorHover=Ue(t,o),r}},_D={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function eg(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:u,lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f}=e;return Object.assign(Object.assign({},_D),{lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:n,thColor:Ue(r,t),thColorModal:Ue(i,t),thColorPopover:Ue(a,t),thTextColor:n,thFontWeight:u,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ue(r,l),borderColorModal:Ue(i,l),borderColorPopover:Ue(a,l),borderRadius:s})}const MD={name:"Descriptions",common:We,self:eg},RD={name:"Descriptions",common:Ve,self:eg},zD={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function tg(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:u,successColor:d,warningColor:c,errorColor:h,primaryColor:f,dividerColor:p,borderRadius:g,fontWeightStrong:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},zD),{fontSize:x,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:n,closeColorHover:l,closeColorPressed:s,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:f,iconColorInfo:u,iconColorSuccess:d,iconColorWarning:c,iconColorError:h,borderRadius:g,titleFontWeight:v})}const t6={name:"Dialog",common:We,peers:{Button:Ho},self:tg},og={name:"Dialog",common:Ve,peers:{Button:Yo},self:tg},Zd={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},ng=Fs(Zd),$D=W([B("dialog",` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); @@ -2694,9 +2694,9 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[q("icon",{color:"var(--n-icon-color)"}),ee("bordered",{border:"var(--n-border)"}),ee("icon-top",[q("close",{margin:"var(--n-close-margin)"}),q("icon",{margin:"var(--n-icon-margin)"}),q("content",{textAlign:"center"}),q("title",{justifyContent:"center"}),q("action",{justifyContent:"center"})]),ee("icon-left",[q("icon",{margin:"var(--n-icon-margin)"}),ee("closable",[q("title",` + `,[Y("icon",{color:"var(--n-icon-color)"}),J("bordered",{border:"var(--n-border)"}),J("icon-top",[Y("close",{margin:"var(--n-close-margin)"}),Y("icon",{margin:"var(--n-icon-margin)"}),Y("content",{textAlign:"center"}),Y("title",{justifyContent:"center"}),Y("action",{justifyContent:"center"})]),J("icon-left",[Y("icon",{margin:"var(--n-icon-margin)"}),J("closable",[Y("title",` padding-right: calc(var(--n-close-size) + 6px); - `)])]),q("close",` + `)])]),Y("close",` position: absolute; right: 0; top: 0; @@ -2705,67 +2705,67 @@ ${t} background-color .3s var(--n-bezier), color .3s var(--n-bezier); z-index: 1; - `),q("content",` + `),Y("content",` font-size: var(--n-font-size); margin: var(--n-content-margin); position: relative; word-break: break-word; - `,[ee("last","margin-bottom: 0;")]),q("action",` + `,[J("last","margin-bottom: 0;")]),Y("action",` display: flex; justify-content: flex-end; `,[W("> *:not(:last-child)",` margin-right: var(--n-action-space); - `)]),q("icon",` + `)]),Y("icon",` font-size: var(--n-icon-size); transition: color .3s var(--n-bezier); - `),q("title",` + `),Y("title",` transition: color .3s var(--n-bezier); display: flex; align-items: center; font-size: var(--n-title-font-size); font-weight: var(--n-title-font-weight); color: var(--n-title-text-color); - `),A("dialog-icon-container",` + `),B("dialog-icon-container",` display: flex; justify-content: center; - `)]),qi(A("dialog",` + `)]),qi(B("dialog",` width: 446px; max-width: calc(100vw - 32px); - `)),A("dialog",[Ap(` + `)),B("dialog",[Ap(` width: 446px; max-width: calc(100vw - 32px); - `)])]),PD={default:()=>m(ls,null),info:()=>m(ls,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(Id,null)},rg=ye({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Ie.props),Zd),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Vt("Dialog",r,o),a=D(()=>{var f,p;const{iconPlacement:g}=e;return g||((p=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function l(f){const{onPositiveClick:p}=e;p&&p(f)}function s(f){const{onNegativeClick:p}=e;p&&p(f)}function u(){const{onClose:f}=e;f&&f()}const d=Ie("Dialog","-dialog",$D,t6,e,o),c=D(()=>{const{type:f}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:v,lineHeight:b,border:x,titleTextColor:E,textColor:C,color:k,closeBorderRadius:_,closeColorHover:F,closeColorPressed:P,closeIconColor:z,closeIconColorHover:B,closeIconColorPressed:j,closeIconSize:V,borderRadius:K,titleFontWeight:N,titleFontSize:T,padding:L,iconSize:R,actionSpace:I,contentMargin:w,closeSize:Q,[p==="top"?"iconMarginIconTop":"iconMargin"]:U,[p==="top"?"closeMarginIconTop":"closeMargin"]:X,[Ee("iconColor",f)]:re}}=d.value,he=Mo(U);return{"--n-font-size":v,"--n-icon-color":re,"--n-bezier":g,"--n-close-margin":X,"--n-icon-margin-top":he.top,"--n-icon-margin-right":he.right,"--n-icon-margin-bottom":he.bottom,"--n-icon-margin-left":he.left,"--n-icon-size":R,"--n-close-size":Q,"--n-close-icon-size":V,"--n-close-border-radius":_,"--n-close-color-hover":F,"--n-close-color-pressed":P,"--n-close-icon-color":z,"--n-close-icon-color-hover":B,"--n-close-icon-color-pressed":j,"--n-color":k,"--n-text-color":C,"--n-border-radius":K,"--n-padding":L,"--n-line-height":b,"--n-border":x,"--n-content-margin":w,"--n-title-font-size":T,"--n-title-font-weight":N,"--n-title-text-color":E,"--n-action-space":I}}),h=n?gt("dialog",D(()=>`${e.type[0]}${a.value[0]}`),c,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:l,handleNegativeClick:s,handleCloseClick:u,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:l,action:s,negativeText:u,positiveText:d,positiveButtonProps:c,negativeButtonProps:h,handlePositiveClick:f,handleNegativeClick:p,mergedTheme:g,loading:v,type:b,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const E=i?m(Kt,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>bt(this.$slots.icon,k=>k||(this.icon?Jt(this.icon):PD[this.type]()))}):null,C=bt(this.$slots.action,k=>k||d||u||s?m("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},k||(s?[Jt(s)]:[this.negativeText&&m(Ft,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>Jt(this.negativeText)}),this.positiveText&&m(Ft,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:v,loading:v,onClick:f},c),{default:()=>Jt(this.positiveText)})])):null);return m("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${o}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:n,role:"dialog"},r?bt(this.$slots.close,k=>{const _=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return k?m("div",{class:_},k):m(li,{clsPrefix:x,class:_,onClick:this.handleCloseClick})}):null,i&&o==="top"?m("div",{class:`${x}-dialog-icon-container`},E):null,m("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?E:null,wo(this.$slots.header,()=>[Jt(a)])),m("div",{class:[`${x}-dialog__content`,C?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},wo(this.$slots.default,()=>[Jt(l)])),C)}}),ig="n-dialog-provider",ag="n-dialog-api",AD="n-dialog-reactive-list";function lg(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const sg={name:"Modal",common:We,peers:{Scrollbar:Lo,Dialog:t6,Card:j3},self:lg},BD={name:"Modal",common:Ve,peers:{Scrollbar:Zo,Dialog:og,Card:J7},self:lg},o6=Object.assign(Object.assign({},U3),Zd),DD=Fs(o6),TD=ye({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},o6),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=$(null),o=$(null),n=$(e.show),r=$(null),i=$(null);lt(Ae(e,"show"),v=>{v&&(n.value=!0)}),o8(D(()=>e.blockScroll&&n.value));const a=Oe(Lp);function l(){if(a.transformOriginRef.value==="center")return"";const{value:v}=r,{value:b}=i;if(v===null||b===null)return"";if(o.value){const x=o.value.containerScrollTop;return`${v}px ${b+x}px`}return""}function s(v){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!o.value)return;const x=o.value.containerScrollTop,{offsetLeft:E,offsetTop:C}=v;if(b){const k=b.y,_=b.x;r.value=-(E-_),i.value=-(C-k-x)}v.style.transformOrigin=l()}function u(v){Mt(()=>{s(v)})}function d(v){v.style.transformOrigin=l(),e.onBeforeLeave()}function c(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:v}=e;v&&v()}function f(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=$(null);return lt(g,v=>{v&&Mt(()=>{const b=v.el;b&&t.value!==b&&(t.value=b)})}),et(Es,t),et(ks,null),et(Na,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:f,handleCloseClick:h,handleAfterLeave:c,handleBeforeLeave:d,handleEnter:u}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Z0(e),!l){xn("modal","default slot is empty");return}l=qo(l),l.props=po({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?zo(m("div",{role:"none",class:`${a}-modal-body-wrapper`},m(or,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),m(x3,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return m(mo,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[bn,this.show]],{onClickoutside:c}=this;return c&&d.push([Hi,this.onClickoutside,void 0,{capture:!0}]),zo(this.preset==="confirm"||this.preset==="dialog"?m(rg,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ei(this.$props,ng),{"aria-modal":"true"}),e):this.preset==="card"?m(em,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ei(this.$props,_A),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),ID=W([A("modal-container",` + `)])]),PD={default:()=>m(ls,null),info:()=>m(ls,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(Id,null)},rg=ye({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Ie.props),Zd),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=rt(e),i=Wt("Dialog",r,o),a=D(()=>{var f,p;const{iconPlacement:g}=e;return g||((p=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function l(f){const{onPositiveClick:p}=e;p&&p(f)}function s(f){const{onNegativeClick:p}=e;p&&p(f)}function u(){const{onClose:f}=e;f&&f()}const d=Ie("Dialog","-dialog",$D,t6,e,o),c=D(()=>{const{type:f}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:v,lineHeight:b,border:x,titleTextColor:E,textColor:w,color:k,closeBorderRadius:_,closeColorHover:F,closeColorPressed:P,closeIconColor:z,closeIconColorHover:A,closeIconColorPressed:G,closeIconSize:H,borderRadius:X,titleFontWeight:N,titleFontSize:T,padding:O,iconSize:R,actionSpace:L,contentMargin:ne,closeSize:y,[p==="top"?"iconMarginIconTop":"iconMargin"]:K,[p==="top"?"closeMarginIconTop":"closeMargin"]:U,[Ee("iconColor",f)]:ue}}=d.value,se=Mo(K);return{"--n-font-size":v,"--n-icon-color":ue,"--n-bezier":g,"--n-close-margin":U,"--n-icon-margin-top":se.top,"--n-icon-margin-right":se.right,"--n-icon-margin-bottom":se.bottom,"--n-icon-margin-left":se.left,"--n-icon-size":R,"--n-close-size":y,"--n-close-icon-size":H,"--n-close-border-radius":_,"--n-close-color-hover":F,"--n-close-color-pressed":P,"--n-close-icon-color":z,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":G,"--n-color":k,"--n-text-color":w,"--n-border-radius":X,"--n-padding":O,"--n-line-height":b,"--n-border":x,"--n-content-margin":ne,"--n-title-font-size":T,"--n-title-font-weight":N,"--n-title-text-color":E,"--n-action-space":L}}),h=n?gt("dialog",D(()=>`${e.type[0]}${a.value[0]}`),c,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:l,handleNegativeClick:s,handleCloseClick:u,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:l,action:s,negativeText:u,positiveText:d,positiveButtonProps:c,negativeButtonProps:h,handlePositiveClick:f,handleNegativeClick:p,mergedTheme:g,loading:v,type:b,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const E=i?m(Gt,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>bt(this.$slots.icon,k=>k||(this.icon?Jt(this.icon):PD[this.type]()))}):null,w=bt(this.$slots.action,k=>k||d||u||s?m("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},k||(s?[Jt(s)]:[this.negativeText&&m(Ft,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>Jt(this.negativeText)}),this.positiveText&&m(Ft,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:v,loading:v,onClick:f},c),{default:()=>Jt(this.positiveText)})])):null);return m("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${o}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:n,role:"dialog"},r?bt(this.$slots.close,k=>{const _=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return k?m("div",{class:_},k):m(li,{clsPrefix:x,class:_,onClick:this.handleCloseClick})}):null,i&&o==="top"?m("div",{class:`${x}-dialog-icon-container`},E):null,m("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?E:null,wo(this.$slots.header,()=>[Jt(a)])),m("div",{class:[`${x}-dialog__content`,w?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},wo(this.$slots.default,()=>[Jt(l)])),w)}}),ig="n-dialog-provider",ag="n-dialog-api",AD="n-dialog-reactive-list";function lg(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const sg={name:"Modal",common:We,peers:{Scrollbar:Lo,Dialog:t6,Card:j3},self:lg},BD={name:"Modal",common:Ve,peers:{Scrollbar:Zo,Dialog:og,Card:J7},self:lg},o6=Object.assign(Object.assign({},U3),Zd),DD=Fs(o6),TD=ye({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},o6),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=$(null),o=$(null),n=$(e.show),r=$(null),i=$(null);lt(Ae(e,"show"),v=>{v&&(n.value=!0)}),o8(D(()=>e.blockScroll&&n.value));const a=Oe(Lp);function l(){if(a.transformOriginRef.value==="center")return"";const{value:v}=r,{value:b}=i;if(v===null||b===null)return"";if(o.value){const x=o.value.containerScrollTop;return`${v}px ${b+x}px`}return""}function s(v){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!o.value)return;const x=o.value.containerScrollTop,{offsetLeft:E,offsetTop:w}=v;if(b){const k=b.y,_=b.x;r.value=-(E-_),i.value=-(w-k-x)}v.style.transformOrigin=l()}function u(v){Mt(()=>{s(v)})}function d(v){v.style.transformOrigin=l(),e.onBeforeLeave()}function c(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:v}=e;v&&v()}function f(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=$(null);return lt(g,v=>{v&&Mt(()=>{const b=v.el;b&&t.value!==b&&(t.value=b)})}),tt(Es,t),tt(ks,null),tt(Na,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:f,handleCloseClick:h,handleAfterLeave:c,handleBeforeLeave:d,handleEnter:u}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Z0(e),!l){xn("modal","default slot is empty");return}l=qo(l),l.props=po({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?zo(m("div",{role:"none",class:`${a}-modal-body-wrapper`},m(or,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),m(x3,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return m(mo,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[bn,this.show]],{onClickoutside:c}=this;return c&&d.push([Hi,this.onClickoutside,void 0,{capture:!0}]),zo(this.preset==="confirm"||this.preset==="dialog"?m(rg,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ei(this.$props,ng),{"aria-modal":"true"}),e):this.preset==="card"?m(em,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ei(this.$props,_A),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),ID=W([B("modal-container",` position: fixed; left: 0; top: 0; height: 0; width: 0; display: flex; - `),A("modal-mask",` + `),B("modal-mask",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0, 0, 0, .4); - `,[Ts({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),A("modal-body-wrapper",` + `,[Ts({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),B("modal-body-wrapper",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; overflow: visible; - `,[A("modal-scroll-content",` + `,[B("modal-scroll-content",` min-height: 100%; display: flex; position: relative; - `)]),A("modal",` + `)]),B("modal",` position: relative; align-self: center; color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[Pn({duration:".25s",enterScale:".5"})])]),ug=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),o6),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),n6=ye({name:"Modal",inheritAttrs:!1,props:ug,setup(e){const t=$(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=rt(e),i=Ie("Modal","-modal",ID,sg,e,o),a=Xu(64),l=Zu(),s=Cr(),u=e.internalDialog?Oe(ig,null):null,d=e.internalModal?Oe(gw,null):null,c=n8();function h(_){const{onUpdateShow:F,"onUpdate:show":P,onHide:z}=e;F&&Re(F,_),P&&Re(P,_),z&&!_&&z(_)}function f(){const{onClose:_}=e;_?Promise.resolve(_()).then(F=>{F!==!1&&h(!1)}):h(!1)}function p(){const{onPositiveClick:_}=e;_?Promise.resolve(_()).then(F=>{F!==!1&&h(!1)}):h(!1)}function g(){const{onNegativeClick:_}=e;_?Promise.resolve(_()).then(F=>{F!==!1&&h(!1)}):h(!1)}function v(){const{onBeforeLeave:_,onBeforeHide:F}=e;_&&Re(_),F&&F()}function b(){const{onAfterLeave:_,onAfterHide:F}=e;_&&Re(_),F&&F()}function x(_){var F;const{onMaskClick:P}=e;P&&P(_),e.maskClosable&&!((F=t.value)===null||F===void 0)&&F.contains(Li(_))&&h(!1)}function E(_){var F;(F=e.onEsc)===null||F===void 0||F.call(e),e.show&&e.closeOnEsc&&Dp(_)&&(c.value||h(!1))}et(Lp,{getMousePosition:()=>{const _=u||d;if(_){const{clickedRef:F,clickedPositionRef:P}=_;if(F.value&&P.value)return P.value}return a.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:Ae(e,"internalAppear"),transformOriginRef:Ae(e,"transformOrigin")});const C=D(()=>{const{common:{cubicBezierEaseOut:_},self:{boxShadow:F,color:P,textColor:z}}=i.value;return{"--n-bezier-ease-out":_,"--n-box-shadow":F,"--n-color":P,"--n-text-color":z}}),k=r?gt("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:s,containerRef:t,presetProps:D(()=>ei(e,DD)),handleEsc:E,handleAfterLeave:b,handleClickoutside:x,handleBeforeLeave:v,doUpdateShow:h,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:f,cssVars:r?void 0:C,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e}=this;return m(g3,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return zo(m("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},m(TD,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var n;return m(mo,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[zd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),OD=Object.assign(Object.assign({},Zd),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),LD=ye({name:"DialogEnvironment",props:Object.assign(Object.assign({},OD),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=$(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(d){const{onPositiveClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function r(d){const{onNegativeClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:u}=this;return m(n6,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>m(rg,Object.assign({},ei(this.$props,ng),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),HD={injectionKey:String,to:[String,Object]},ND=ye({name:"DialogProvider",props:HD,setup(){const e=$([]),t={};function o(l={}){const s=ii(),u=It(Object.assign(Object.assign({},l),{key:s,destroy:()=>{var d;(d=t[`n-dialog-${s}`])===null||d===void 0||d.hide()}}));return e.value.push(u),u}const n=["info","success","warning","error"].map(l=>s=>o(Object.assign(Object.assign({},s),{type:l})));function r(l){const{value:s}=e;s.splice(s.findIndex(u=>u.key===l),1)}function i(){Object.values(t).forEach(l=>{l==null||l.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return et(ag,a),et(ig,{clickedRef:Xu(64),clickedPositionRef:Zu()}),et(AD,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return m(ft,null,[this.dialogList.map(o=>m(LD,Gi(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function VD(){const e=Oe(ag,null);return e===null&&yr("use-dialog","No outer founded."),e}function dg(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const cg={name:"Divider",common:We,self:dg},WD={name:"Divider",common:Ve,self:dg},jD=A("divider",` + `,[Pn({duration:".25s",enterScale:".5"})])]),ug=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),o6),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),n6=ye({name:"Modal",inheritAttrs:!1,props:ug,setup(e){const t=$(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=rt(e),i=Ie("Modal","-modal",ID,sg,e,o),a=Xu(64),l=Zu(),s=Cr(),u=e.internalDialog?Oe(ig,null):null,d=e.internalModal?Oe(gw,null):null,c=n8();function h(_){const{onUpdateShow:F,"onUpdate:show":P,onHide:z}=e;F&&Re(F,_),P&&Re(P,_),z&&!_&&z(_)}function f(){const{onClose:_}=e;_?Promise.resolve(_()).then(F=>{F!==!1&&h(!1)}):h(!1)}function p(){const{onPositiveClick:_}=e;_?Promise.resolve(_()).then(F=>{F!==!1&&h(!1)}):h(!1)}function g(){const{onNegativeClick:_}=e;_?Promise.resolve(_()).then(F=>{F!==!1&&h(!1)}):h(!1)}function v(){const{onBeforeLeave:_,onBeforeHide:F}=e;_&&Re(_),F&&F()}function b(){const{onAfterLeave:_,onAfterHide:F}=e;_&&Re(_),F&&F()}function x(_){var F;const{onMaskClick:P}=e;P&&P(_),e.maskClosable&&!((F=t.value)===null||F===void 0)&&F.contains(Li(_))&&h(!1)}function E(_){var F;(F=e.onEsc)===null||F===void 0||F.call(e),e.show&&e.closeOnEsc&&Dp(_)&&(c.value||h(!1))}tt(Lp,{getMousePosition:()=>{const _=u||d;if(_){const{clickedRef:F,clickedPositionRef:P}=_;if(F.value&&P.value)return P.value}return a.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:Ae(e,"internalAppear"),transformOriginRef:Ae(e,"transformOrigin")});const w=D(()=>{const{common:{cubicBezierEaseOut:_},self:{boxShadow:F,color:P,textColor:z}}=i.value;return{"--n-bezier-ease-out":_,"--n-box-shadow":F,"--n-color":P,"--n-text-color":z}}),k=r?gt("theme-class",void 0,w,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:s,containerRef:t,presetProps:D(()=>ei(e,DD)),handleEsc:E,handleAfterLeave:b,handleClickoutside:x,handleBeforeLeave:v,doUpdateShow:h,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:f,cssVars:r?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e}=this;return m(g3,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return zo(m("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},m(TD,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var n;return m(mo,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[zd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),OD=Object.assign(Object.assign({},Zd),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),LD=ye({name:"DialogEnvironment",props:Object.assign(Object.assign({},OD),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=$(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(d){const{onPositiveClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function r(d){const{onNegativeClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:u}=this;return m(n6,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>m(rg,Object.assign({},ei(this.$props,ng),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),HD={injectionKey:String,to:[String,Object]},ND=ye({name:"DialogProvider",props:HD,setup(){const e=$([]),t={};function o(l={}){const s=ii(),u=It(Object.assign(Object.assign({},l),{key:s,destroy:()=>{var d;(d=t[`n-dialog-${s}`])===null||d===void 0||d.hide()}}));return e.value.push(u),u}const n=["info","success","warning","error"].map(l=>s=>o(Object.assign(Object.assign({},s),{type:l})));function r(l){const{value:s}=e;s.splice(s.findIndex(u=>u.key===l),1)}function i(){Object.values(t).forEach(l=>{l==null||l.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return tt(ag,a),tt(ig,{clickedRef:Xu(64),clickedPositionRef:Zu()}),tt(AD,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return m(ft,null,[this.dialogList.map(o=>m(LD,Gi(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function VD(){const e=Oe(ag,null);return e===null&&yr("use-dialog","No outer founded."),e}function dg(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const cg={name:"Divider",common:We,self:dg},WD={name:"Divider",common:Ve,self:dg},jD=B("divider",` position: relative; display: flex; width: 100%; @@ -2781,32 +2781,32 @@ ${t} `,[_t("no-title",` display: flex; align-items: center; - `)]),q("title",` + `)]),Y("title",` display: flex; align-items: center; margin-left: 12px; margin-right: 12px; white-space: nowrap; font-weight: var(--n-font-weight); - `),ee("title-position-left",[q("line",[ee("left",{width:"28px"})])]),ee("title-position-right",[q("line",[ee("right",{width:"28px"})])]),ee("dashed",[q("line",` + `),J("title-position-left",[Y("line",[J("left",{width:"28px"})])]),J("title-position-right",[Y("line",[J("right",{width:"28px"})])]),J("dashed",[Y("line",` background-color: #0000; height: 0px; width: 100%; border-style: dashed; border-width: 1px 0 0; - `)]),ee("vertical",` + `)]),J("vertical",` display: inline-block; height: 1em; margin: 0 8px; vertical-align: middle; width: 1px; - `),q("line",` + `),Y("line",` border: none; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); height: 1px; width: 100%; margin: 0; - `),_t("dashed",[q("line",{backgroundColor:"var(--n-color)"})]),ee("dashed",[q("line",{borderColor:"var(--n-color)"})]),ee("vertical",{backgroundColor:"var(--n-color)"})]),UD=Object.assign(Object.assign({},Ie.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),KD=ye({name:"Divider",props:UD,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Divider","-divider",jD,cg,e,t),r=D(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:u}}=n.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":u}}),i=o?gt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:n,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:n,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${o}`]:t.default&&o}],style:i},n?null:m("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!n&&t.default?m(ft,null,m("div",{class:`${a}-divider__title`},this.$slots),m("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function fg(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,borderRadius:f,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:f,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:u,closeBorderRadius:f,resizableTriggerColorHover:p}}const hg={name:"Drawer",common:We,peers:{Scrollbar:Lo},self:fg},GD={name:"Drawer",common:Ve,peers:{Scrollbar:Zo},self:fg},qD=ye({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=$(!!e.show),o=$(null),n=Oe(m3);let r=0,i="",a=null;const l=$(!1),s=$(!1),u=D(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:c}=rt(e),h=Vt("Drawer",c,d),f=_,p=z=>{s.value=!0,r=u.value?z.clientY:z.clientX,i=document.body.style.cursor,document.body.style.cursor=u.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",k),document.body.addEventListener("mouseleave",f),document.body.addEventListener("mouseup",_)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:b,doUpdateWidth:x}=n,E=z=>{const{maxWidth:B}=e;if(B&&z>B)return B;const{minWidth:j}=e;return j&&z{const{maxHeight:B}=e;if(B&&z>B)return B;const{minHeight:j}=e;return j&&z{e.show&&(t.value=!0)}),lt(()=>e.show,z=>{z||_()}),Xt(()=>{_()});const F=D(()=>{const{show:z}=e,B=[[bn,z]];return e.showMask||B.push([Hi,e.onClickoutside,void 0,{capture:!0}]),B});function P(){var z;t.value=!1,(z=e.onAfterLeave)===null||z===void 0||z.call(e)}return o8(D(()=>e.blockScroll&&t.value)),et(ks,o),et(Na,null),et(Es,null),{bodyRef:o,rtlEnabled:h,mergedClsPrefix:n.mergedClsPrefixRef,isMounted:n.isMountedRef,mergedTheme:n.mergedThemeRef,displayed:t,transitionName:D(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:P,bodyDirectives:F,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:v,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?zo(m("div",{role:"none"},m(x3,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>m(mo,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>zo(m("div",po(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?m("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?m("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):m(or,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:ZD,cubicBezierEaseOut:XD}=sn;function YD({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${ZD}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${XD}`}),W(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:QD,cubicBezierEaseOut:JD}=sn;function eT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${QD}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${JD}`}),W(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:tT,cubicBezierEaseOut:oT}=sn;function nT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${tT}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${oT}`}),W(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:rT,cubicBezierEaseOut:iT}=sn;function aT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${rT}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${iT}`}),W(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const lT=W([A("drawer",` + `),_t("dashed",[Y("line",{backgroundColor:"var(--n-color)"})]),J("dashed",[Y("line",{borderColor:"var(--n-color)"})]),J("vertical",{backgroundColor:"var(--n-color)"})]),UD=Object.assign(Object.assign({},Ie.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),KD=ye({name:"Divider",props:UD,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Divider","-divider",jD,cg,e,t),r=D(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:u}}=n.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":u}}),i=o?gt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:n,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:n,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${o}`]:t.default&&o}],style:i},n?null:m("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!n&&t.default?m(ft,null,m("div",{class:`${a}-divider__title`},this.$slots),m("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function fg(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,borderRadius:f,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:f,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:u,closeBorderRadius:f,resizableTriggerColorHover:p}}const hg={name:"Drawer",common:We,peers:{Scrollbar:Lo},self:fg},GD={name:"Drawer",common:Ve,peers:{Scrollbar:Zo},self:fg},qD=ye({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=$(!!e.show),o=$(null),n=Oe(m3);let r=0,i="",a=null;const l=$(!1),s=$(!1),u=D(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:c}=rt(e),h=Wt("Drawer",c,d),f=_,p=z=>{s.value=!0,r=u.value?z.clientY:z.clientX,i=document.body.style.cursor,document.body.style.cursor=u.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",k),document.body.addEventListener("mouseleave",f),document.body.addEventListener("mouseup",_)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:b,doUpdateWidth:x}=n,E=z=>{const{maxWidth:A}=e;if(A&&z>A)return A;const{minWidth:G}=e;return G&&z{const{maxHeight:A}=e;if(A&&z>A)return A;const{minHeight:G}=e;return G&&z{e.show&&(t.value=!0)}),lt(()=>e.show,z=>{z||_()}),Xt(()=>{_()});const F=D(()=>{const{show:z}=e,A=[[bn,z]];return e.showMask||A.push([Hi,e.onClickoutside,void 0,{capture:!0}]),A});function P(){var z;t.value=!1,(z=e.onAfterLeave)===null||z===void 0||z.call(e)}return o8(D(()=>e.blockScroll&&t.value)),tt(ks,o),tt(Na,null),tt(Es,null),{bodyRef:o,rtlEnabled:h,mergedClsPrefix:n.mergedClsPrefixRef,isMounted:n.isMountedRef,mergedTheme:n.mergedThemeRef,displayed:t,transitionName:D(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:P,bodyDirectives:F,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:v,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?zo(m("div",{role:"none"},m(x3,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>m(mo,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>zo(m("div",po(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?m("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?m("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):m(or,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:ZD,cubicBezierEaseOut:XD}=sn;function YD({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${ZD}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${XD}`}),W(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:QD,cubicBezierEaseOut:JD}=sn;function eT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${QD}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${JD}`}),W(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:tT,cubicBezierEaseOut:oT}=sn;function nT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${tT}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${oT}`}),W(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:rT,cubicBezierEaseOut:iT}=sn;function aT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[W(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${rT}`}),W(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${iT}`}),W(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),W(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const lT=W([B("drawer",` word-break: break-word; line-height: var(--n-line-height); position: absolute; @@ -2818,34 +2818,34 @@ ${t} background-color: var(--n-color); color: var(--n-text-color); box-sizing: border-box; - `,[YD(),eT(),nT(),aT(),ee("unselectable",` + `,[YD(),eT(),nT(),aT(),J("unselectable",` user-select: none; -webkit-user-select: none; - `),ee("native-scrollbar",[A("drawer-content-wrapper",` + `),J("native-scrollbar",[B("drawer-content-wrapper",` overflow: auto; height: 100%; - `)]),q("resize-trigger",` + `)]),Y("resize-trigger",` position: absolute; background-color: #0000; transition: background-color .3s var(--n-bezier); - `,[ee("hover",` + `,[J("hover",` background-color: var(--n-resize-trigger-color-hover); - `)]),A("drawer-content-wrapper",` + `)]),B("drawer-content-wrapper",` box-sizing: border-box; - `),A("drawer-content",` + `),B("drawer-content",` height: 100%; display: flex; flex-direction: column; - `,[ee("native-scrollbar",[A("drawer-body-content-wrapper",` + `,[J("native-scrollbar",[B("drawer-body-content-wrapper",` height: 100%; overflow: auto; - `)]),A("drawer-body",` + `)]),B("drawer-body",` flex: 1 0 0; overflow: hidden; - `),A("drawer-body-content-wrapper",` + `),B("drawer-body-content-wrapper",` box-sizing: border-box; padding: var(--n-body-padding); - `),A("drawer-header",` + `),B("drawer-header",` font-weight: var(--n-title-font-weight); line-height: 1; font-size: var(--n-title-font-size); @@ -2857,74 +2857,74 @@ ${t} display: flex; justify-content: space-between; align-items: center; - `,[q("main",` + `,[Y("main",` flex: 1; - `),q("close",` + `),Y("close",` margin-left: 6px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),A("drawer-footer",` + `)]),B("drawer-footer",` display: flex; justify-content: flex-end; border-top: var(--n-footer-border-top); transition: border .3s var(--n-bezier); padding: var(--n-footer-padding); - `)]),ee("right-placement",` + `)]),J("right-placement",` top: 0; bottom: 0; right: 0; border-top-left-radius: var(--n-border-radius); border-bottom-left-radius: var(--n-border-radius); - `,[q("resize-trigger",` + `,[Y("resize-trigger",` width: 3px; height: 100%; top: 0; left: 0; transform: translateX(-1.5px); cursor: ew-resize; - `)]),ee("left-placement",` + `)]),J("left-placement",` top: 0; bottom: 0; left: 0; border-top-right-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `,[q("resize-trigger",` + `,[Y("resize-trigger",` width: 3px; height: 100%; top: 0; right: 0; transform: translateX(1.5px); cursor: ew-resize; - `)]),ee("top-placement",` + `)]),J("top-placement",` top: 0; left: 0; right: 0; border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `,[q("resize-trigger",` + `,[Y("resize-trigger",` width: 100%; height: 3px; bottom: 0; left: 0; transform: translateY(1.5px); cursor: ns-resize; - `)]),ee("bottom-placement",` + `)]),J("bottom-placement",` left: 0; bottom: 0; right: 0; border-top-left-radius: var(--n-border-radius); border-top-right-radius: var(--n-border-radius); - `,[q("resize-trigger",` + `,[Y("resize-trigger",` width: 100%; height: 3px; top: 0; left: 0; transform: translateY(-1.5px); cursor: ns-resize; - `)])]),W("body",[W(">",[A("drawer-container",` + `)])]),W("body",[W(">",[B("drawer-container",` position: fixed; - `)])]),A("drawer-container",` + `)])]),B("drawer-container",` position: relative; position: absolute; left: 0; @@ -2934,47 +2934,47 @@ ${t} pointer-events: none; `,[W("> *",` pointer-events: all; - `)]),A("drawer-mask",` + `)]),B("drawer-mask",` background-color: rgba(0, 0, 0, .3); position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `,[ee("invisible",` + `,[J("invisible",` background-color: rgba(0, 0, 0, 0) - `),Ts({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),sT=Object.assign(Object.assign({},Ie.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),uT=ye({name:"Drawer",inheritAttrs:!1,props:sT,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=rt(e),r=Cr(),i=Ie("Drawer","-drawer",lT,hg,e,t),a=$(e.defaultWidth),l=$(e.defaultHeight),s=to(Ae(e,"width"),a),u=to(Ae(e,"height"),l),d=D(()=>{const{placement:_}=e;return _==="top"||_==="bottom"?"":So(s.value)}),c=D(()=>{const{placement:_}=e;return _==="left"||_==="right"?"":So(u.value)}),h=_=>{const{onUpdateWidth:F,"onUpdate:width":P}=e;F&&Re(F,_),P&&Re(P,_),a.value=_},f=_=>{const{onUpdateHeight:F,"onUpdate:width":P}=e;F&&Re(F,_),P&&Re(P,_),l.value=_},p=D(()=>[{width:d.value,height:c.value},e.drawerStyle||""]);function g(_){const{onMaskClick:F,maskClosable:P}=e;P&&E(!1),F&&F(_)}function v(_){g(_)}const b=n8();function x(_){var F;(F=e.onEsc)===null||F===void 0||F.call(e),e.show&&e.closeOnEsc&&Dp(_)&&(b.value||E(!1))}function E(_){const{onHide:F,onUpdateShow:P,"onUpdate:show":z}=e;P&&Re(P,_),z&&Re(z,_),F&&!_&&Re(F,_)}et(m3,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:E,doUpdateHeight:f,doUpdateWidth:h});const C=D(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:F,cubicBezierEaseOut:P},self:{color:z,textColor:B,boxShadow:j,lineHeight:V,headerPadding:K,footerPadding:N,borderRadius:T,bodyPadding:L,titleFontSize:R,titleTextColor:I,titleFontWeight:w,headerBorderBottom:Q,footerBorderTop:U,closeIconColor:X,closeIconColorHover:re,closeIconColorPressed:he,closeColorHover:Se,closeColorPressed:pe,closeIconSize:fe,closeSize:we,closeBorderRadius:J,resizableTriggerColorHover:G}}=i.value;return{"--n-line-height":V,"--n-color":z,"--n-border-radius":T,"--n-text-color":B,"--n-box-shadow":j,"--n-bezier":_,"--n-bezier-out":P,"--n-bezier-in":F,"--n-header-padding":K,"--n-body-padding":L,"--n-footer-padding":N,"--n-title-text-color":I,"--n-title-font-size":R,"--n-title-font-weight":w,"--n-header-border-bottom":Q,"--n-footer-border-top":U,"--n-close-icon-color":X,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":he,"--n-close-size":we,"--n-close-color-hover":Se,"--n-close-color-pressed":pe,"--n-close-icon-size":fe,"--n-close-border-radius":J,"--n-resize-trigger-color-hover":G}}),k=n?gt("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:p,handleOutsideClick:v,handleMaskClick:g,handleEsc:x,mergedTheme:i,cssVars:n?void 0:C,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return m(g3,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),zo(m("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?m(mo,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,m(qD,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[zd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),dT={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},cT=ye({name:"DrawerContent",props:dT,setup(){const e=Oe(m3,null);e||yr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:n,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:l,headerClass:s,headerStyle:u,footerClass:d,footerStyle:c,scrollbarProps:h,closable:f,$slots:p}=this;return m("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},p.header||e||f?m("div",{class:[`${t}-drawer-header`,s],style:u,role:"none"},m("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),f&&m(li,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?m("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},m("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:l,role:"none"},p)):m(or,Object.assign({themeOverrides:n.peerOverrides.Scrollbar,theme:n.peers.Scrollbar},h,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:l}),p),p.footer?m("div",{class:[`${t}-drawer-footer`,d],style:c,role:"none"},p.footer()):null)}}),pg={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fT={name:"DynamicInput",common:Ve,peers:{Input:Sn,Button:Yo},self(){return pg}};function hT(){return pg}const pT={name:"DynamicInput",common:We,peers:{Input:Xo,Button:Ho},self:hT},mg={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},gg={name:"Space",self(){return mg}};function mT(){return mg}const r6={name:"Space",self:mT};let o0;function gT(){if(!wn)return!0;if(o0===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),o0=t}return o0}const vT=Object.assign(Object.assign({},Ie.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Tu=ye({name:"Space",props:vT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Ie("Space","-space",void 0,r6,e,t),r=Vt("Space",o,t);return{useGap:gT(),rtlEnabled:r,mergedClsPrefix:t,margin:D(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Ee("gap",i)]:a}}=n.value,{row:l,col:s}=xC(a);return{horizontal:so(s),vertical:so(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:n,justify:r,itemClass:i,itemStyle:a,margin:l,wrap:s,mergedClsPrefix:u,rtlEnabled:d,useGap:c,wrapItem:h,internalUseGap:f}=this,p=vr(c3(this),!1);if(!p.length)return null;const g=`${l.horizontal}px`,v=`${l.horizontal/2}px`,b=`${l.vertical}px`,x=`${l.vertical/2}px`,E=p.length-1,C=r.startsWith("space-");return m("div",{role:"none",class:[`${u}-space`,d&&`${u}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!s||e?"nowrap":"wrap",marginTop:c||e?"":`-${x}`,marginBottom:c||e?"":`-${x}`,alignItems:o,gap:c?`${l.vertical}px ${l.horizontal}px`:""}},!h&&(c||f)?p:p.map((k,_)=>k.type===vo?k:m("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},c?"":e?{marginBottom:_!==E?b:""}:d?{marginLeft:C?r==="space-between"&&_===E?"":v:_!==E?g:"",marginRight:C?r==="space-between"&&_===0?"":v:"",paddingTop:x,paddingBottom:x}:{marginRight:C?r==="space-between"&&_===E?"":v:_!==E?g:"",marginLeft:C?r==="space-between"&&_===0?"":v:"",paddingTop:x,paddingBottom:x}]},k)))}}),bT={name:"DynamicTags",common:Ve,peers:{Input:Sn,Button:Yo,Tag:F7,Space:gg},self(){return{inputWidth:"64px"}}},xT={name:"DynamicTags",common:We,peers:{Input:Xo,Button:Ho,Tag:H3,Space:r6},self(){return{inputWidth:"64px"}}},yT={name:"Element",common:Ve},vg={name:"Element",common:We},CT=Object.assign(Object.assign({},Ie.props),{tag:{type:String,default:"div"}}),wT=ye({name:"Element",alias:["El"],props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Element","-element",void 0,vg,e,t),r=D(()=>{const{common:a}=n.value;return Object.keys(a).reduce((l,s)=>(l[`--${BR(s)}`]=a[s],l),{})}),i=o?gt("element",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:o,cssVars:n,themeClass:r,onRender:i,$slots:a}=this;return i==null||i(),m(t,{role:"none",class:[`${o}-element`,r],style:n},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),bg={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},ST={name:"Flex",self(){return bg}};function FT(){return bg}const ET={name:"Flex",self:FT},kT={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function xg(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},kT),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:l,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})}const _T={name:"Form",common:We,self:xg},MT={name:"Form",common:Ve,self:xg},c4=1,yg="n-grid",Cg=1,RT={span:{type:[Number,String],default:Cg},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},wg=ye({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:RT,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:n,layoutShiftDisabledRef:r}=Oe(yg),i=xr();return{overflow:n,itemStyle:o,layoutShiftDisabled:r,mergedXGap:D(()=>Ht(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=Cg,privateShow:l=!0,privateColStart:s=void 0,privateOffset:u=0}=i.vnode.props,{value:d}=t,c=Ht(d||0);return{display:l?"":"none",gridColumn:`${s??`span ${a}`} / span ${a}`,marginLeft:u?`calc((100% - (${a} - 1) * ${c}) / ${a} * ${u} + ${c} * ${u})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:n,mergedXGap:r}=this;return m("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:n?`calc((100% - (${o} - 1) * ${r}) / ${o} * ${n} + ${r} * ${n})`:""}},this.$slots)}return m("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zT={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function Sg(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeColorHover:d,closeColorPressed:c,textColor1:h,textColor3:f,borderRadius:p,fontWeightStrong:g,boxShadow2:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},zT),{borderRadius:p,lineHeight:b,fontSize:x,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeBorderRadius:p,closeColorHover:d,closeColorPressed:c,headerTextColor:h,descriptionTextColor:f,actionTextColor:t,boxShadow:v})}const Fg={name:"Notification",common:We,peers:{Scrollbar:Lo},self:Sg},$T={name:"Notification",common:Ve,peers:{Scrollbar:Zo},self:Sg},PT={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Eg(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:u,boxShadow2:d,primaryColor:c,lineHeight:h,borderRadius:f,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},PT),{closeBorderRadius:f,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:c,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:c,lineHeight:h,borderRadius:f})}const kg={name:"Message",common:We,self:Eg},AT={name:"Message",common:Ve,self:Eg},BT={name:"ButtonGroup",common:Ve},DT={name:"ButtonGroup",common:We},TT={name:"GradientText",common:Ve,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:u,infoColorSuppl:d,fontWeightStrong:c}=e;return{fontWeight:c,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:s,colorStartError:r,colorEndError:u,colorStartSuccess:o,colorEndSuccess:l}}};function IT(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:$e(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:$e(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:$e(n,{alpha:.6}),colorEndWarning:n,colorStartError:$e(r,{alpha:.6}),colorEndError:r,colorStartSuccess:$e(o,{alpha:.6}),colorEndSuccess:o}}const OT={name:"GradientText",common:We,self:IT},LT={name:"InputNumber",common:Ve,peers:{Button:Yo,Input:Sn},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function HT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const _g={name:"InputNumber",common:We,peers:{Button:Ho,Input:Xo},self:HT},NT={name:"Layout",common:Ve,peers:{Scrollbar:Zo},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ue(o,a),siderToggleBarColorHover:Ue(o,l),__invertScrollbar:"false"}}};function VT(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:u}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:u,footerColor:a,footerColorInverted:u,headerBorderColor:i,headerBorderColorInverted:u,footerBorderColor:i,footerBorderColorInverted:u,siderBorderColor:i,siderBorderColorInverted:u,siderColor:r,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ue(n,l),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:"true"}}const WT={name:"Layout",common:We,peers:{Scrollbar:Lo},self:VT};function Mg(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:n,colorHoverModal:Ue(n,s),colorPopover:r,colorHoverPopover:Ue(r,s),borderColor:i,borderColorModal:Ue(n,i),borderColorPopover:Ue(r,i),borderRadius:a,fontSize:l}}const jT={name:"List",common:We,self:Mg},UT={name:"List",common:Ve,self:Mg},KT={name:"LoadingBar",common:Ve,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function GT(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const Rg={name:"LoadingBar",common:We,self:GT},qT={name:"Log",common:Ve,peers:{Scrollbar:Zo,Code:am},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}};function ZT(e){const{textColor2:t,modalColor:o,borderColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${n}`,loadingColor:i}}const zg={name:"Log",common:We,peers:{Scrollbar:Lo,Code:K3},self:ZT},XT={name:"Mention",common:Ve,peers:{InternalSelectMenu:Is,Input:Sn},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function YT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const QT={name:"Mention",common:We,peers:{InternalSelectMenu:Ka,Input:Xo},self:YT};function JT(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function $g(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:u}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:$e(n,{alpha:.1}),itemColorActiveHover:$e(n,{alpha:.1}),itemColorActiveCollapsed:$e(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},JT("#BBB",n,"#FFF","#AAA"))}const eI={name:"Menu",common:We,peers:{Tooltip:Os,Dropdown:Gd},self:$g},tI={name:"Menu",common:Ve,peers:{Tooltip:Ud,Dropdown:Q3},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=$g(e);return n.itemColorActive=$e(t,{alpha:.15}),n.itemColorActiveHover=$e(t,{alpha:.15}),n.itemColorActiveCollapsed=$e(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},oI={titleFontSize:"18px",backSize:"22px"};function Pg(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},oI),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:l,subtitleTextColor:n})}const Ag={name:"PageHeader",common:We,self:Pg},nI={name:"PageHeader",common:Ve,self:Pg},rI={iconSize:"22px"};function Bg(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},rI),{fontSize:t,iconColor:o})}const iI={name:"Popconfirm",common:We,peers:{Button:Ho,Popover:si},self:Bg},aI={name:"Popconfirm",common:Ve,peers:{Button:Yo,Popover:ea},self:Bg};function Dg(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Tg={name:"Progress",common:We,self:Dg},Ig={name:"Progress",common:Ve,self(e){const t=Dg(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},lI={name:"Rate",common:Ve,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};function sI(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const uI={name:"Rate",common:We,self:sI},dI={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Og(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},dI),{lineHeight:l,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const cI={name:"Result",common:We,self:Og},fI={name:"Result",common:Ve,self:Og},Lg={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},hI={name:"Slider",common:Ve,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:u,opacityDisabled:d}=e;return Object.assign(Object.assign({},Lg),{fontSize:u,markFontSize:u,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function pI(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:r,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:u,fontSize:d,opacityDisabled:c}=e;return Object.assign(Object.assign({},Lg),{fontSize:d,markFontSize:d,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:u,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}const Hg={name:"Slider",common:We,self:pI};function Ng(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}}const Vg={name:"Spin",common:We,self:Ng},mI={name:"Spin",common:Ve,self:Ng};function Wg(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const jg={name:"Statistic",common:We,self:Wg},gI={name:"Statistic",common:Ve,self:Wg},vI={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Ug(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},vI),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const bI={name:"Steps",common:We,self:Ug},xI={name:"Steps",common:Ve,self:Ug},Kg={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},yI={name:"Switch",common:Ve,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},Kg),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${$e(r,{alpha:.3})}`})}};function CI(e){const{primaryColor:t,opacityDisabled:o,borderRadius:n,textColor3:r}=e;return Object.assign(Object.assign({},Kg),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${$e(t,{alpha:.2})}`})}const Gg={name:"Switch",common:We,self:CI},wI={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function qg(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:u,fontWeightStrong:d,lineHeight:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},wI),{fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,lineHeight:c,borderRadius:u,borderColor:Ue(o,t),borderColorModal:Ue(n,t),borderColorPopover:Ue(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:Ue(o,a),tdColorStripedModal:Ue(n,a),tdColorStripedPopover:Ue(r,a),thColor:Ue(o,i),thColorModal:Ue(n,i),thColorPopover:Ue(r,i),thTextColor:l,tdTextColor:s,thFontWeight:d})}const Zg={name:"Table",common:We,self:qg},SI={name:"Table",common:Ve,self:qg},FI={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Xg(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:u,baseColor:d,dividerColor:c,fontWeight:h,textColor1:f,borderRadius:p,fontSize:g,fontWeightStrong:v}=e;return Object.assign(Object.assign({},FI),{colorSegment:u,tabFontSizeCard:g,tabTextColorLine:f,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:f,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:f,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:f,tabTextColorHoverCard:f,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:u,tabColorSegment:d,tabBorderColor:c,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:v})}const Yg={name:"Tabs",common:We,self:Xg},EI={name:"Tabs",common:Ve,self(e){const t=Xg(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Qg(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const kI={name:"Thing",common:We,self:Qg},_I={name:"Thing",common:Ve,self:Qg},Jg={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},MI={name:"Timeline",common:Ve,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Jg),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}};function RI(e){const{textColor3:t,infoColor:o,errorColor:n,successColor:r,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Jg),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}const zI={name:"Timeline",common:We,self:RI},ev={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},$I={name:"Transfer",common:Ve,peers:{Checkbox:qa,Scrollbar:Zo,Input:Sn,Empty:Ji,Button:Yo},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,hoverColor:p,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:E,dividerColor:C}=e;return Object.assign(Object.assign({},ev),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:C,borderColor:"#0000",listColor:s,headerColor:u,titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:E})}};function PI(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,borderColor:p,hoverColor:g,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:E,closeIconColorPressed:C}=e;return Object.assign(Object.assign({},ev),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:Ue(s,u),titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:g,titleFontWeight:t,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:E,closeIconColorPressed:C})}const AI={name:"Transfer",common:We,peers:{Checkbox:ta,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:PI};function tv(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:s,fontSize:u}=e;return{fontSize:u,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:$e(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const ov={name:"Tree",common:We,peers:{Checkbox:ta,Scrollbar:Lo,Empty:tr},self:tv},nv={name:"Tree",common:Ve,peers:{Checkbox:qa,Scrollbar:Zo,Empty:Ji},self(e){const{primaryColor:t}=e,o=tv(e);return o.nodeColorActive=$e(t,{alpha:.15}),o}},BI={name:"TreeSelect",common:Ve,peers:{Tree:nv,Empty:Ji,InternalSelection:N3}};function DI(e){const{popoverColor:t,boxShadow2:o,borderRadius:n,heightMedium:r,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:n,menuHeight:`calc(${r} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:a,headerPadding:"8px 12px"}}const TI={name:"TreeSelect",common:We,peers:{Tree:ov,Empty:tr,InternalSelection:Nd},self:DI},II={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function rv(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:u,textColor3:d,infoColor:c,warningColor:h,errorColor:f,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},II),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:u,pTextColor:o,pTextColor1Depth:u,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:c,headerBarColorError:f,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:o,textColor1Depth:u,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:c,textColorSuccess:p,textColorWarning:h,textColorError:f,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const OI={name:"Typography",common:We,self:rv},LI={name:"Typography",common:Ve,self:rv};function iv(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:u,lineHeight:d,borderRadius:c,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:c,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:u,itemColorHoverError:$e(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${s}`}}const HI={name:"Upload",common:We,peers:{Button:Ho,Progress:Tg},self:iv},NI={name:"Upload",common:Ve,peers:{Button:Yo,Progress:Ig},self(e){const{errorColor:t}=e,o=iv(e);return o.itemColorHoverError=$e(t,{alpha:.09}),o}},VI={name:"Watermark",common:Ve,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},av={name:"Watermark",common:We,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},WI={name:"Row",common:We},jI={name:"Row",common:Ve};function UI(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const KI={name:"FloatButtonGroup",common:We,self:UI},GI={name:"FloatButton",common:Ve,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,baseColor:s,borderRadius:u}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColorPrimary:s,borderRadiusSquare:u}}};function qI(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,borderRadius:s}=e;return{color:t,colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const ZI={name:"FloatButton",common:We,self:qI},XI={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},lv=24,n0="__ssr__",YI={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:lv},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},sv=ye({name:"Grid",inheritAttrs:!1,props:YI,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=rt(e),n=/^\d+$/,r=$(void 0),i=pw((o==null?void 0:o.value)||XI),a=vt(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),l=D(()=>{if(a.value)return e.responsive==="self"?r.value:i.value}),s=vt(()=>{var b;return(b=Number(aa(e.cols.toString(),l.value)))!==null&&b!==void 0?b:lv}),u=vt(()=>aa(e.xGap.toString(),l.value)),d=vt(()=>aa(e.yGap.toString(),l.value)),c=b=>{r.value=b.contentRect.width},h=b=>{Ql(c,b)},f=$(!1),p=D(()=>{if(e.responsive==="self")return h}),g=$(!1),v=$();return ut(()=>{const{value:b}=v;b&&b.hasAttribute(n0)&&(b.removeAttribute(n0),g.value=!0)}),et(yg,{layoutShiftDisabledRef:Ae(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:Ae(e,"itemStyle"),xGapRef:u,overflowRef:f}),{isSsr:!wn,contentEl:v,mergedClsPrefix:t,style:D(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Ht(e.xGap),rowGap:Ht(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:Ht(u.value),rowGap:Ht(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:f}},render(){if(this.layoutShiftDisabled)return m("div",po({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,n,r,i,a,l;this.overflow=!1;const s=vr(c3(this)),u=[],{collapsed:d,collapsedRows:c,responsiveCols:h,responsiveQuery:f}=this;s.forEach(x=>{var E,C,k,_,F;if(((E=x==null?void 0:x.type)===null||E===void 0?void 0:E.__GRID_ITEM__)!==!0)return;if(zC(x)){const B=qo(x);B.props?B.props.privateShow=!1:B.props={privateShow:!1},u.push({child:B,rawChildSpan:0});return}x.dirs=((C=x.dirs)===null||C===void 0?void 0:C.filter(({dir:B})=>B!==bn))||null,((k=x.dirs)===null||k===void 0?void 0:k.length)===0&&(x.dirs=null);const P=qo(x),z=Number((F=aa((_=P.props)===null||_===void 0?void 0:_.span,f))!==null&&F!==void 0?F:c4);z!==0&&u.push({child:P,rawChildSpan:z})});let p=0;const g=(t=u[u.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const x=(o=g.props)===null||o===void 0?void 0:o.suffix;x!==void 0&&x!==!1&&(p=Number((r=aa((n=g.props)===null||n===void 0?void 0:n.span,f))!==null&&r!==void 0?r:c4),g.props.privateSpan=p,g.props.privateColStart=h+1-p,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let v=0,b=!1;for(const{child:x,rawChildSpan:E}of u){if(b&&(this.overflow=!0),!b){const C=Number((l=aa((a=x.props)===null||a===void 0?void 0:a.offset,f))!==null&&l!==void 0?l:0),k=Math.min(E+C,h);if(x.props?(x.props.privateSpan=k,x.props.privateOffset=C):x.props={privateSpan:k,privateOffset:C},d){const _=v%h;k+_>h&&(v+=h-_),k+v+p>c*h?b=!0:v+=k}}b&&(x.props?x.props.privateShow!==!0&&(x.props.privateShow=!1):x.props={privateShow:!1})}return m("div",po({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[n0]:this.isSsr||void 0},this.$attrs),u.map(({child:x})=>x))};return this.isResponsive&&this.responsive==="self"?m(Rn,{onResize:this.handleResize},{default:e}):e()}});function uv(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const QI={name:"IconWrapper",common:We,self:uv},JI={name:"IconWrapper",common:Ve,self:uv};function eO(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const tO={name:"Image",common:We,peers:{Tooltip:Os},self:eO},oO={name:"Image",common:Ve,peers:{Tooltip:Ud},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function nO(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function rO(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function r0(e){return e==null?!0:!Number.isNaN(e)}function f4(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function i0(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const iO=W([A("input-number-suffix",` + `),Ts({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),sT=Object.assign(Object.assign({},Ie.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),uT=ye({name:"Drawer",inheritAttrs:!1,props:sT,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=rt(e),r=Cr(),i=Ie("Drawer","-drawer",lT,hg,e,t),a=$(e.defaultWidth),l=$(e.defaultHeight),s=oo(Ae(e,"width"),a),u=oo(Ae(e,"height"),l),d=D(()=>{const{placement:_}=e;return _==="top"||_==="bottom"?"":So(s.value)}),c=D(()=>{const{placement:_}=e;return _==="left"||_==="right"?"":So(u.value)}),h=_=>{const{onUpdateWidth:F,"onUpdate:width":P}=e;F&&Re(F,_),P&&Re(P,_),a.value=_},f=_=>{const{onUpdateHeight:F,"onUpdate:width":P}=e;F&&Re(F,_),P&&Re(P,_),l.value=_},p=D(()=>[{width:d.value,height:c.value},e.drawerStyle||""]);function g(_){const{onMaskClick:F,maskClosable:P}=e;P&&E(!1),F&&F(_)}function v(_){g(_)}const b=n8();function x(_){var F;(F=e.onEsc)===null||F===void 0||F.call(e),e.show&&e.closeOnEsc&&Dp(_)&&(b.value||E(!1))}function E(_){const{onHide:F,onUpdateShow:P,"onUpdate:show":z}=e;P&&Re(P,_),z&&Re(z,_),F&&!_&&Re(F,_)}tt(m3,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:E,doUpdateHeight:f,doUpdateWidth:h});const w=D(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:F,cubicBezierEaseOut:P},self:{color:z,textColor:A,boxShadow:G,lineHeight:H,headerPadding:X,footerPadding:N,borderRadius:T,bodyPadding:O,titleFontSize:R,titleTextColor:L,titleFontWeight:ne,headerBorderBottom:y,footerBorderTop:K,closeIconColor:U,closeIconColorHover:ue,closeIconColorPressed:se,closeColorHover:Fe,closeColorPressed:pe,closeIconSize:fe,closeSize:Ce,closeBorderRadius:ee,resizableTriggerColorHover:q}}=i.value;return{"--n-line-height":H,"--n-color":z,"--n-border-radius":T,"--n-text-color":A,"--n-box-shadow":G,"--n-bezier":_,"--n-bezier-out":P,"--n-bezier-in":F,"--n-header-padding":X,"--n-body-padding":O,"--n-footer-padding":N,"--n-title-text-color":L,"--n-title-font-size":R,"--n-title-font-weight":ne,"--n-header-border-bottom":y,"--n-footer-border-top":K,"--n-close-icon-color":U,"--n-close-icon-color-hover":ue,"--n-close-icon-color-pressed":se,"--n-close-size":Ce,"--n-close-color-hover":Fe,"--n-close-color-pressed":pe,"--n-close-icon-size":fe,"--n-close-border-radius":ee,"--n-resize-trigger-color-hover":q}}),k=n?gt("drawer",void 0,w,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:p,handleOutsideClick:v,handleMaskClick:g,handleEsc:x,mergedTheme:i,cssVars:n?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return m(g3,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),zo(m("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?m(mo,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,m(qD,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[zd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),dT={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},cT=ye({name:"DrawerContent",props:dT,setup(){const e=Oe(m3,null);e||yr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:n,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:l,headerClass:s,headerStyle:u,footerClass:d,footerStyle:c,scrollbarProps:h,closable:f,$slots:p}=this;return m("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},p.header||e||f?m("div",{class:[`${t}-drawer-header`,s],style:u,role:"none"},m("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),f&&m(li,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?m("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},m("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:l,role:"none"},p)):m(or,Object.assign({themeOverrides:n.peerOverrides.Scrollbar,theme:n.peers.Scrollbar},h,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:l}),p),p.footer?m("div",{class:[`${t}-drawer-footer`,d],style:c,role:"none"},p.footer()):null)}}),pg={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fT={name:"DynamicInput",common:Ve,peers:{Input:Sn,Button:Yo},self(){return pg}};function hT(){return pg}const pT={name:"DynamicInput",common:We,peers:{Input:Xo,Button:Ho},self:hT},mg={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},gg={name:"Space",self(){return mg}};function mT(){return mg}const r6={name:"Space",self:mT};let o0;function gT(){if(!wn)return!0;if(o0===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),o0=t}return o0}const vT=Object.assign(Object.assign({},Ie.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Tu=ye({name:"Space",props:vT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=rt(e),n=Ie("Space","-space",void 0,r6,e,t),r=Wt("Space",o,t);return{useGap:gT(),rtlEnabled:r,mergedClsPrefix:t,margin:D(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Ee("gap",i)]:a}}=n.value,{row:l,col:s}=xC(a);return{horizontal:so(s),vertical:so(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:n,justify:r,itemClass:i,itemStyle:a,margin:l,wrap:s,mergedClsPrefix:u,rtlEnabled:d,useGap:c,wrapItem:h,internalUseGap:f}=this,p=vr(c3(this),!1);if(!p.length)return null;const g=`${l.horizontal}px`,v=`${l.horizontal/2}px`,b=`${l.vertical}px`,x=`${l.vertical/2}px`,E=p.length-1,w=r.startsWith("space-");return m("div",{role:"none",class:[`${u}-space`,d&&`${u}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!s||e?"nowrap":"wrap",marginTop:c||e?"":`-${x}`,marginBottom:c||e?"":`-${x}`,alignItems:o,gap:c?`${l.vertical}px ${l.horizontal}px`:""}},!h&&(c||f)?p:p.map((k,_)=>k.type===vo?k:m("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},c?"":e?{marginBottom:_!==E?b:""}:d?{marginLeft:w?r==="space-between"&&_===E?"":v:_!==E?g:"",marginRight:w?r==="space-between"&&_===0?"":v:"",paddingTop:x,paddingBottom:x}:{marginRight:w?r==="space-between"&&_===E?"":v:_!==E?g:"",marginLeft:w?r==="space-between"&&_===0?"":v:"",paddingTop:x,paddingBottom:x}]},k)))}}),bT={name:"DynamicTags",common:Ve,peers:{Input:Sn,Button:Yo,Tag:F7,Space:gg},self(){return{inputWidth:"64px"}}},xT={name:"DynamicTags",common:We,peers:{Input:Xo,Button:Ho,Tag:H3,Space:r6},self(){return{inputWidth:"64px"}}},yT={name:"Element",common:Ve},vg={name:"Element",common:We},CT=Object.assign(Object.assign({},Ie.props),{tag:{type:String,default:"div"}}),wT=ye({name:"Element",alias:["El"],props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Element","-element",void 0,vg,e,t),r=D(()=>{const{common:a}=n.value;return Object.keys(a).reduce((l,s)=>(l[`--${BR(s)}`]=a[s],l),{})}),i=o?gt("element",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:o,cssVars:n,themeClass:r,onRender:i,$slots:a}=this;return i==null||i(),m(t,{role:"none",class:[`${o}-element`,r],style:n},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),bg={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},ST={name:"Flex",self(){return bg}};function FT(){return bg}const ET={name:"Flex",self:FT},kT={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function xg(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},kT),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:l,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})}const _T={name:"Form",common:We,self:xg},MT={name:"Form",common:Ve,self:xg},c4=1,yg="n-grid",Cg=1,RT={span:{type:[Number,String],default:Cg},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},wg=ye({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:RT,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:n,layoutShiftDisabledRef:r}=Oe(yg),i=xr();return{overflow:n,itemStyle:o,layoutShiftDisabled:r,mergedXGap:D(()=>Ht(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=Cg,privateShow:l=!0,privateColStart:s=void 0,privateOffset:u=0}=i.vnode.props,{value:d}=t,c=Ht(d||0);return{display:l?"":"none",gridColumn:`${s??`span ${a}`} / span ${a}`,marginLeft:u?`calc((100% - (${a} - 1) * ${c}) / ${a} * ${u} + ${c} * ${u})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:n,mergedXGap:r}=this;return m("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:n?`calc((100% - (${o} - 1) * ${r}) / ${o} * ${n} + ${r} * ${n})`:""}},this.$slots)}return m("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zT={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function Sg(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeColorHover:d,closeColorPressed:c,textColor1:h,textColor3:f,borderRadius:p,fontWeightStrong:g,boxShadow2:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},zT),{borderRadius:p,lineHeight:b,fontSize:x,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeBorderRadius:p,closeColorHover:d,closeColorPressed:c,headerTextColor:h,descriptionTextColor:f,actionTextColor:t,boxShadow:v})}const Fg={name:"Notification",common:We,peers:{Scrollbar:Lo},self:Sg},$T={name:"Notification",common:Ve,peers:{Scrollbar:Zo},self:Sg},PT={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Eg(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:u,boxShadow2:d,primaryColor:c,lineHeight:h,borderRadius:f,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},PT),{closeBorderRadius:f,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:c,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:c,lineHeight:h,borderRadius:f})}const kg={name:"Message",common:We,self:Eg},AT={name:"Message",common:Ve,self:Eg},BT={name:"ButtonGroup",common:Ve},DT={name:"ButtonGroup",common:We},TT={name:"GradientText",common:Ve,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:u,infoColorSuppl:d,fontWeightStrong:c}=e;return{fontWeight:c,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:s,colorStartError:r,colorEndError:u,colorStartSuccess:o,colorEndSuccess:l}}};function IT(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:$e(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:$e(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:$e(n,{alpha:.6}),colorEndWarning:n,colorStartError:$e(r,{alpha:.6}),colorEndError:r,colorStartSuccess:$e(o,{alpha:.6}),colorEndSuccess:o}}const OT={name:"GradientText",common:We,self:IT},LT={name:"InputNumber",common:Ve,peers:{Button:Yo,Input:Sn},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function HT(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const _g={name:"InputNumber",common:We,peers:{Button:Ho,Input:Xo},self:HT},NT={name:"Layout",common:Ve,peers:{Scrollbar:Zo},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ue(o,a),siderToggleBarColorHover:Ue(o,l),__invertScrollbar:"false"}}};function VT(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:u}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:u,footerColor:a,footerColorInverted:u,headerBorderColor:i,headerBorderColorInverted:u,footerBorderColor:i,footerBorderColorInverted:u,siderBorderColor:i,siderBorderColorInverted:u,siderColor:r,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ue(n,l),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:"true"}}const WT={name:"Layout",common:We,peers:{Scrollbar:Lo},self:VT};function Mg(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:n,colorHoverModal:Ue(n,s),colorPopover:r,colorHoverPopover:Ue(r,s),borderColor:i,borderColorModal:Ue(n,i),borderColorPopover:Ue(r,i),borderRadius:a,fontSize:l}}const jT={name:"List",common:We,self:Mg},UT={name:"List",common:Ve,self:Mg},KT={name:"LoadingBar",common:Ve,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function GT(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const Rg={name:"LoadingBar",common:We,self:GT},qT={name:"Log",common:Ve,peers:{Scrollbar:Zo,Code:am},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}};function ZT(e){const{textColor2:t,modalColor:o,borderColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${n}`,loadingColor:i}}const zg={name:"Log",common:We,peers:{Scrollbar:Lo,Code:K3},self:ZT},XT={name:"Mention",common:Ve,peers:{InternalSelectMenu:Is,Input:Sn},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function YT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const QT={name:"Mention",common:We,peers:{InternalSelectMenu:Ka,Input:Xo},self:YT};function JT(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function $g(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:u}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:$e(n,{alpha:.1}),itemColorActiveHover:$e(n,{alpha:.1}),itemColorActiveCollapsed:$e(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},JT("#BBB",n,"#FFF","#AAA"))}const eI={name:"Menu",common:We,peers:{Tooltip:Os,Dropdown:Gd},self:$g},tI={name:"Menu",common:Ve,peers:{Tooltip:Ud,Dropdown:Q3},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=$g(e);return n.itemColorActive=$e(t,{alpha:.15}),n.itemColorActiveHover=$e(t,{alpha:.15}),n.itemColorActiveCollapsed=$e(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},oI={titleFontSize:"18px",backSize:"22px"};function Pg(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},oI),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:l,subtitleTextColor:n})}const Ag={name:"PageHeader",common:We,self:Pg},nI={name:"PageHeader",common:Ve,self:Pg},rI={iconSize:"22px"};function Bg(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},rI),{fontSize:t,iconColor:o})}const iI={name:"Popconfirm",common:We,peers:{Button:Ho,Popover:si},self:Bg},aI={name:"Popconfirm",common:Ve,peers:{Button:Yo,Popover:ea},self:Bg};function Dg(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Tg={name:"Progress",common:We,self:Dg},Ig={name:"Progress",common:Ve,self(e){const t=Dg(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},lI={name:"Rate",common:Ve,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};function sI(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const uI={name:"Rate",common:We,self:sI},dI={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Og(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},dI),{lineHeight:l,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const cI={name:"Result",common:We,self:Og},fI={name:"Result",common:Ve,self:Og},Lg={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},hI={name:"Slider",common:Ve,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:u,opacityDisabled:d}=e;return Object.assign(Object.assign({},Lg),{fontSize:u,markFontSize:u,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function pI(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:r,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:u,fontSize:d,opacityDisabled:c}=e;return Object.assign(Object.assign({},Lg),{fontSize:d,markFontSize:d,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:u,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}const Hg={name:"Slider",common:We,self:pI};function Ng(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}}const Vg={name:"Spin",common:We,self:Ng},mI={name:"Spin",common:Ve,self:Ng};function Wg(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const jg={name:"Statistic",common:We,self:Wg},gI={name:"Statistic",common:Ve,self:Wg},vI={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Ug(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},vI),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const bI={name:"Steps",common:We,self:Ug},xI={name:"Steps",common:Ve,self:Ug},Kg={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},yI={name:"Switch",common:Ve,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},Kg),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${$e(r,{alpha:.3})}`})}};function CI(e){const{primaryColor:t,opacityDisabled:o,borderRadius:n,textColor3:r}=e;return Object.assign(Object.assign({},Kg),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${$e(t,{alpha:.2})}`})}const Gg={name:"Switch",common:We,self:CI},wI={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function qg(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:u,fontWeightStrong:d,lineHeight:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},wI),{fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,lineHeight:c,borderRadius:u,borderColor:Ue(o,t),borderColorModal:Ue(n,t),borderColorPopover:Ue(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:Ue(o,a),tdColorStripedModal:Ue(n,a),tdColorStripedPopover:Ue(r,a),thColor:Ue(o,i),thColorModal:Ue(n,i),thColorPopover:Ue(r,i),thTextColor:l,tdTextColor:s,thFontWeight:d})}const Zg={name:"Table",common:We,self:qg},SI={name:"Table",common:Ve,self:qg},FI={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Xg(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:u,baseColor:d,dividerColor:c,fontWeight:h,textColor1:f,borderRadius:p,fontSize:g,fontWeightStrong:v}=e;return Object.assign(Object.assign({},FI),{colorSegment:u,tabFontSizeCard:g,tabTextColorLine:f,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:f,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:f,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:f,tabTextColorHoverCard:f,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:u,tabColorSegment:d,tabBorderColor:c,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:v})}const Yg={name:"Tabs",common:We,self:Xg},EI={name:"Tabs",common:Ve,self(e){const t=Xg(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Qg(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const kI={name:"Thing",common:We,self:Qg},_I={name:"Thing",common:Ve,self:Qg},Jg={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},MI={name:"Timeline",common:Ve,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Jg),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}};function RI(e){const{textColor3:t,infoColor:o,errorColor:n,successColor:r,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Jg),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}const zI={name:"Timeline",common:We,self:RI},ev={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},$I={name:"Transfer",common:Ve,peers:{Checkbox:qa,Scrollbar:Zo,Input:Sn,Empty:Ji,Button:Yo},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,hoverColor:p,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:E,dividerColor:w}=e;return Object.assign(Object.assign({},ev),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:w,borderColor:"#0000",listColor:s,headerColor:u,titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:E})}};function PI(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,borderColor:p,hoverColor:g,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:E,closeIconColorPressed:w}=e;return Object.assign(Object.assign({},ev),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:Ue(s,u),titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:g,titleFontWeight:t,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:E,closeIconColorPressed:w})}const AI={name:"Transfer",common:We,peers:{Checkbox:ta,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:PI};function tv(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:s,fontSize:u}=e;return{fontSize:u,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:$e(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const ov={name:"Tree",common:We,peers:{Checkbox:ta,Scrollbar:Lo,Empty:tr},self:tv},nv={name:"Tree",common:Ve,peers:{Checkbox:qa,Scrollbar:Zo,Empty:Ji},self(e){const{primaryColor:t}=e,o=tv(e);return o.nodeColorActive=$e(t,{alpha:.15}),o}},BI={name:"TreeSelect",common:Ve,peers:{Tree:nv,Empty:Ji,InternalSelection:N3}};function DI(e){const{popoverColor:t,boxShadow2:o,borderRadius:n,heightMedium:r,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:n,menuHeight:`calc(${r} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:a,headerPadding:"8px 12px"}}const TI={name:"TreeSelect",common:We,peers:{Tree:ov,Empty:tr,InternalSelection:Nd},self:DI},II={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function rv(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:u,textColor3:d,infoColor:c,warningColor:h,errorColor:f,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},II),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:u,pTextColor:o,pTextColor1Depth:u,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:c,headerBarColorError:f,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:o,textColor1Depth:u,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:c,textColorSuccess:p,textColorWarning:h,textColorError:f,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const OI={name:"Typography",common:We,self:rv},LI={name:"Typography",common:Ve,self:rv};function iv(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:u,lineHeight:d,borderRadius:c,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:c,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:u,itemColorHoverError:$e(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${s}`}}const HI={name:"Upload",common:We,peers:{Button:Ho,Progress:Tg},self:iv},NI={name:"Upload",common:Ve,peers:{Button:Yo,Progress:Ig},self(e){const{errorColor:t}=e,o=iv(e);return o.itemColorHoverError=$e(t,{alpha:.09}),o}},VI={name:"Watermark",common:Ve,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},av={name:"Watermark",common:We,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},WI={name:"Row",common:We},jI={name:"Row",common:Ve};function UI(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const KI={name:"FloatButtonGroup",common:We,self:UI},GI={name:"FloatButton",common:Ve,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,baseColor:s,borderRadius:u}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColorPrimary:s,borderRadiusSquare:u}}};function qI(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,borderRadius:s}=e;return{color:t,colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const ZI={name:"FloatButton",common:We,self:qI},XI={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},lv=24,n0="__ssr__",YI={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:lv},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},sv=ye({name:"Grid",inheritAttrs:!1,props:YI,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=rt(e),n=/^\d+$/,r=$(void 0),i=pw((o==null?void 0:o.value)||XI),a=vt(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),l=D(()=>{if(a.value)return e.responsive==="self"?r.value:i.value}),s=vt(()=>{var b;return(b=Number(aa(e.cols.toString(),l.value)))!==null&&b!==void 0?b:lv}),u=vt(()=>aa(e.xGap.toString(),l.value)),d=vt(()=>aa(e.yGap.toString(),l.value)),c=b=>{r.value=b.contentRect.width},h=b=>{Ql(c,b)},f=$(!1),p=D(()=>{if(e.responsive==="self")return h}),g=$(!1),v=$();return ut(()=>{const{value:b}=v;b&&b.hasAttribute(n0)&&(b.removeAttribute(n0),g.value=!0)}),tt(yg,{layoutShiftDisabledRef:Ae(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:Ae(e,"itemStyle"),xGapRef:u,overflowRef:f}),{isSsr:!wn,contentEl:v,mergedClsPrefix:t,style:D(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Ht(e.xGap),rowGap:Ht(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:Ht(u.value),rowGap:Ht(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:f}},render(){if(this.layoutShiftDisabled)return m("div",po({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,n,r,i,a,l;this.overflow=!1;const s=vr(c3(this)),u=[],{collapsed:d,collapsedRows:c,responsiveCols:h,responsiveQuery:f}=this;s.forEach(x=>{var E,w,k,_,F;if(((E=x==null?void 0:x.type)===null||E===void 0?void 0:E.__GRID_ITEM__)!==!0)return;if(zC(x)){const A=qo(x);A.props?A.props.privateShow=!1:A.props={privateShow:!1},u.push({child:A,rawChildSpan:0});return}x.dirs=((w=x.dirs)===null||w===void 0?void 0:w.filter(({dir:A})=>A!==bn))||null,((k=x.dirs)===null||k===void 0?void 0:k.length)===0&&(x.dirs=null);const P=qo(x),z=Number((F=aa((_=P.props)===null||_===void 0?void 0:_.span,f))!==null&&F!==void 0?F:c4);z!==0&&u.push({child:P,rawChildSpan:z})});let p=0;const g=(t=u[u.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const x=(o=g.props)===null||o===void 0?void 0:o.suffix;x!==void 0&&x!==!1&&(p=Number((r=aa((n=g.props)===null||n===void 0?void 0:n.span,f))!==null&&r!==void 0?r:c4),g.props.privateSpan=p,g.props.privateColStart=h+1-p,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let v=0,b=!1;for(const{child:x,rawChildSpan:E}of u){if(b&&(this.overflow=!0),!b){const w=Number((l=aa((a=x.props)===null||a===void 0?void 0:a.offset,f))!==null&&l!==void 0?l:0),k=Math.min(E+w,h);if(x.props?(x.props.privateSpan=k,x.props.privateOffset=w):x.props={privateSpan:k,privateOffset:w},d){const _=v%h;k+_>h&&(v+=h-_),k+v+p>c*h?b=!0:v+=k}}b&&(x.props?x.props.privateShow!==!0&&(x.props.privateShow=!1):x.props={privateShow:!1})}return m("div",po({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[n0]:this.isSsr||void 0},this.$attrs),u.map(({child:x})=>x))};return this.isResponsive&&this.responsive==="self"?m(Rn,{onResize:this.handleResize},{default:e}):e()}});function uv(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const QI={name:"IconWrapper",common:We,self:uv},JI={name:"IconWrapper",common:Ve,self:uv};function eO(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const tO={name:"Image",common:We,peers:{Tooltip:Os},self:eO},oO={name:"Image",common:Ve,peers:{Tooltip:Ud},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function nO(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function rO(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function r0(e){return e==null?!0:!Number.isNaN(e)}function f4(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function i0(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const iO=W([B("input-number-suffix",` display: inline-block; margin-right: 10px; - `),A("input-number-prefix",` + `),B("input-number-prefix",` display: inline-block; margin-left: 10px; - `)]),h4=800,p4=100,aO=Object.assign(Object.assign({},Ie.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),lO=ye({name:"InputNumber",props:aO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:n}=rt(e),r=Ie("InputNumber","-input-number",iO,_g,e,o),{localeRef:i}=Fr("InputNumber"),a=Bn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:u}=a,d=$(null),c=$(null),h=$(null),f=$(e.defaultValue),p=Ae(e,"value"),g=to(p,f),v=$(""),b=se=>{const ie=String(se).split(".")[1];return ie?ie.length:0},x=se=>{const ie=[e.min,e.max,e.step,se].map(ce=>ce===void 0?0:b(ce));return Math.max(...ie)},E=vt(()=>{const{placeholder:se}=e;return se!==void 0?se:i.value.placeholder}),C=vt(()=>{const se=i0(e.step);return se!==null?se===0?1:Math.abs(se):1}),k=vt(()=>{const se=i0(e.min);return se!==null?se:null}),_=vt(()=>{const se=i0(e.max);return se!==null?se:null}),F=()=>{const{value:se}=g;if(r0(se)){const{format:ie,precision:ce}=e;ie?v.value=ie(se):se===null||ce===void 0||b(se)>ce?v.value=f4(se,void 0):v.value=f4(se,ce)}else v.value=String(se)};F();const P=se=>{const{value:ie}=g;if(se===ie){F();return}const{"onUpdate:value":ce,onUpdateValue:ne,onChange:ae}=e,{nTriggerFormInput:de,nTriggerFormChange:le}=a;ae&&Re(ae,se),ne&&Re(ne,se),ce&&Re(ce,se),f.value=se,de(),le()},z=({offset:se,doUpdateIfValid:ie,fixPrecision:ce,isInputing:ne})=>{const{value:ae}=v;if(ne&&rO(ae))return!1;const de=(e.parse||nO)(ae);if(de===null)return ie&&P(null),null;if(r0(de)){const le=b(de),{precision:Y}=e;if(Y!==void 0&&Yve){if(!ie||ne)return!1;ue=ve}if(Be!==null&&uez({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),j=vt(()=>{const{value:se}=g;if(e.validator&&se===null)return!1;const{value:ie}=C;return z({offset:-ie,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),V=vt(()=>{const{value:se}=g;if(e.validator&&se===null)return!1;const{value:ie}=C;return z({offset:+ie,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function K(se){const{onFocus:ie}=e,{nTriggerFormFocus:ce}=a;ie&&Re(ie,se),ce()}function N(se){var ie,ce;if(se.target===((ie=d.value)===null||ie===void 0?void 0:ie.wrapperElRef))return;const ne=z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ne!==!1){const le=(ce=d.value)===null||ce===void 0?void 0:ce.inputElRef;le&&(le.value=String(ne||"")),g.value===ne&&F()}else F();const{onBlur:ae}=e,{nTriggerFormBlur:de}=a;ae&&Re(ae,se),de(),Mt(()=>{F()})}function T(se){const{onClear:ie}=e;ie&&Re(ie,se)}function L(){const{value:se}=V;if(!se){we();return}const{value:ie}=g;if(ie===null)e.validator||P(Q());else{const{value:ce}=C;z({offset:ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function R(){const{value:se}=j;if(!se){pe();return}const{value:ie}=g;if(ie===null)e.validator||P(Q());else{const{value:ce}=C;z({offset:-ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const I=K,w=N;function Q(){if(e.validator)return null;const{value:se}=k,{value:ie}=_;return se!==null?Math.max(0,se):ie!==null?Math.min(0,ie):0}function U(se){T(se),P(null)}function X(se){var ie,ce,ne;!((ie=h.value)===null||ie===void 0)&&ie.$el.contains(se.target)&&se.preventDefault(),!((ce=c.value)===null||ce===void 0)&&ce.$el.contains(se.target)&&se.preventDefault(),(ne=d.value)===null||ne===void 0||ne.activate()}let re=null,he=null,Se=null;function pe(){Se&&(window.clearTimeout(Se),Se=null),re&&(window.clearInterval(re),re=null)}let fe=null;function we(){fe&&(window.clearTimeout(fe),fe=null),he&&(window.clearInterval(he),he=null)}function J(){pe(),Se=window.setTimeout(()=>{re=window.setInterval(()=>{R()},p4)},h4),Ct("mouseup",document,pe,{once:!0})}function G(){we(),fe=window.setTimeout(()=>{he=window.setInterval(()=>{L()},p4)},h4),Ct("mouseup",document,we,{once:!0})}const Te=()=>{he||L()},Ne=()=>{re||R()};function H(se){var ie,ce;if(se.key==="Enter"){if(se.target===((ie=d.value)===null||ie===void 0?void 0:ie.wrapperElRef))return;z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ce=d.value)===null||ce===void 0||ce.deactivate())}else if(se.key==="ArrowUp"){if(!V.value||e.keyboard.ArrowUp===!1)return;se.preventDefault(),z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&L()}else if(se.key==="ArrowDown"){if(!j.value||e.keyboard.ArrowDown===!1)return;se.preventDefault(),z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&R()}}function oe(se){v.value=se,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&z({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}lt(g,()=>{F()});const ge={focus:()=>{var se;return(se=d.value)===null||se===void 0?void 0:se.focus()},blur:()=>{var se;return(se=d.value)===null||se===void 0?void 0:se.blur()},select:()=>{var se;return(se=d.value)===null||se===void 0?void 0:se.select()}},Ce=Vt("InputNumber",n,o);return Object.assign(Object.assign({},ge),{rtlEnabled:Ce,inputInstRef:d,minusButtonInstRef:c,addButtonInstRef:h,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:f,mergedValue:g,mergedPlaceholder:E,displayedValueInvalid:B,mergedSize:l,mergedDisabled:s,displayedValue:v,addable:V,minusable:j,mergedStatus:u,handleFocus:I,handleBlur:w,handleClear:U,handleMouseDown:X,handleAddClick:Te,handleMinusClick:Ne,handleAddMousedown:G,handleMinusMousedown:J,handleKeyDown:H,handleUpdateDisplayedValue:oe,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:D(()=>{const{self:{iconColorDisabled:se}}=r.value,[ie,ce,ne,ae]=uo(se);return{textColorTextDisabled:`rgb(${ie}, ${ce}, ${ne})`,opacityDisabled:`${ae}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>m(Qf,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>wo(t["minus-icon"],()=>[m(Kt,{clsPrefix:e},{default:()=>m(Tz,null)})])}),n=()=>m(Qf,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>wo(t["add-icon"],()=>[m(Kt,{clsPrefix:e},{default:()=>m(s7,null)})])});return m("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},m(rn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[o(),bt(t.prefix,i=>i?m("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[bt(t.suffix,i=>i?m("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?o():null,n()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),dv={extraFontSize:"12px",width:"440px"},sO={name:"Transfer",common:Ve,peers:{Checkbox:qa,Scrollbar:Zo,Input:Sn,Empty:Ji,Button:Yo},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,inputColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,hoverColor:v}=e;return Object.assign(Object.assign({},dv),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:c,headerColor:h,titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:v,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}};function uO(e){const{fontWeight:t,iconColorDisabled:o,iconColor:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,cardColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,borderColor:v,hoverColor:b}=e;return Object.assign(Object.assign({},dv),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:v,listColor:c,headerColor:Ue(c,h),titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:v,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:t,iconColor:n,iconColorDisabled:o})}const dO={name:"Transfer",common:We,peers:{Checkbox:ta,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:uO},cv="n-loading-bar",fv="n-loading-bar-api",cO=A("loading-bar-container",` + `)]),h4=800,p4=100,aO=Object.assign(Object.assign({},Ie.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),lO=ye({name:"InputNumber",props:aO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:n}=rt(e),r=Ie("InputNumber","-input-number",iO,_g,e,o),{localeRef:i}=Fr("InputNumber"),a=Bn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:u}=a,d=$(null),c=$(null),h=$(null),f=$(e.defaultValue),p=Ae(e,"value"),g=oo(p,f),v=$(""),b=le=>{const re=String(le).split(".")[1];return re?re.length:0},x=le=>{const re=[e.min,e.max,e.step,le].map(he=>he===void 0?0:b(he));return Math.max(...re)},E=vt(()=>{const{placeholder:le}=e;return le!==void 0?le:i.value.placeholder}),w=vt(()=>{const le=i0(e.step);return le!==null?le===0?1:Math.abs(le):1}),k=vt(()=>{const le=i0(e.min);return le!==null?le:null}),_=vt(()=>{const le=i0(e.max);return le!==null?le:null}),F=()=>{const{value:le}=g;if(r0(le)){const{format:re,precision:he}=e;re?v.value=re(le):le===null||he===void 0||b(le)>he?v.value=f4(le,void 0):v.value=f4(le,he)}else v.value=String(le)};F();const P=le=>{const{value:re}=g;if(le===re){F();return}const{"onUpdate:value":he,onUpdateValue:oe,onChange:ie}=e,{nTriggerFormInput:ce,nTriggerFormChange:ae}=a;ie&&Re(ie,le),oe&&Re(oe,le),he&&Re(he,le),f.value=le,ce(),ae()},z=({offset:le,doUpdateIfValid:re,fixPrecision:he,isInputing:oe})=>{const{value:ie}=v;if(oe&&rO(ie))return!1;const ce=(e.parse||nO)(ie);if(ce===null)return re&&P(null),null;if(r0(ce)){const ae=b(ce),{precision:Q}=e;if(Q!==void 0&&Qve){if(!re||oe)return!1;de=ve}if(Be!==null&&dez({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),G=vt(()=>{const{value:le}=g;if(e.validator&&le===null)return!1;const{value:re}=w;return z({offset:-re,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),H=vt(()=>{const{value:le}=g;if(e.validator&&le===null)return!1;const{value:re}=w;return z({offset:+re,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function X(le){const{onFocus:re}=e,{nTriggerFormFocus:he}=a;re&&Re(re,le),he()}function N(le){var re,he;if(le.target===((re=d.value)===null||re===void 0?void 0:re.wrapperElRef))return;const oe=z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(oe!==!1){const ae=(he=d.value)===null||he===void 0?void 0:he.inputElRef;ae&&(ae.value=String(oe||"")),g.value===oe&&F()}else F();const{onBlur:ie}=e,{nTriggerFormBlur:ce}=a;ie&&Re(ie,le),ce(),Mt(()=>{F()})}function T(le){const{onClear:re}=e;re&&Re(re,le)}function O(){const{value:le}=H;if(!le){Ce();return}const{value:re}=g;if(re===null)e.validator||P(y());else{const{value:he}=w;z({offset:he,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function R(){const{value:le}=G;if(!le){pe();return}const{value:re}=g;if(re===null)e.validator||P(y());else{const{value:he}=w;z({offset:-he,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const L=X,ne=N;function y(){if(e.validator)return null;const{value:le}=k,{value:re}=_;return le!==null?Math.max(0,le):re!==null?Math.min(0,re):0}function K(le){T(le),P(null)}function U(le){var re,he,oe;!((re=h.value)===null||re===void 0)&&re.$el.contains(le.target)&&le.preventDefault(),!((he=c.value)===null||he===void 0)&&he.$el.contains(le.target)&&le.preventDefault(),(oe=d.value)===null||oe===void 0||oe.activate()}let ue=null,se=null,Fe=null;function pe(){Fe&&(window.clearTimeout(Fe),Fe=null),ue&&(window.clearInterval(ue),ue=null)}let fe=null;function Ce(){fe&&(window.clearTimeout(fe),fe=null),se&&(window.clearInterval(se),se=null)}function ee(){pe(),Fe=window.setTimeout(()=>{ue=window.setInterval(()=>{R()},p4)},h4),wt("mouseup",document,pe,{once:!0})}function q(){Ce(),fe=window.setTimeout(()=>{se=window.setInterval(()=>{O()},p4)},h4),wt("mouseup",document,Ce,{once:!0})}const Te=()=>{se||O()},Ne=()=>{ue||R()};function j(le){var re,he;if(le.key==="Enter"){if(le.target===((re=d.value)===null||re===void 0?void 0:re.wrapperElRef))return;z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((he=d.value)===null||he===void 0||he.deactivate())}else if(le.key==="ArrowUp"){if(!H.value||e.keyboard.ArrowUp===!1)return;le.preventDefault(),z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&O()}else if(le.key==="ArrowDown"){if(!G.value||e.keyboard.ArrowDown===!1)return;le.preventDefault(),z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&R()}}function V(le){v.value=le,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&z({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}lt(g,()=>{F()});const ge={focus:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.focus()},blur:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.blur()},select:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.select()}},we=Wt("InputNumber",n,o);return Object.assign(Object.assign({},ge),{rtlEnabled:we,inputInstRef:d,minusButtonInstRef:c,addButtonInstRef:h,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:f,mergedValue:g,mergedPlaceholder:E,displayedValueInvalid:A,mergedSize:l,mergedDisabled:s,displayedValue:v,addable:H,minusable:G,mergedStatus:u,handleFocus:L,handleBlur:ne,handleClear:K,handleMouseDown:U,handleAddClick:Te,handleMinusClick:Ne,handleAddMousedown:q,handleMinusMousedown:ee,handleKeyDown:j,handleUpdateDisplayedValue:V,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:D(()=>{const{self:{iconColorDisabled:le}}=r.value,[re,he,oe,ie]=uo(le);return{textColorTextDisabled:`rgb(${re}, ${he}, ${oe})`,opacityDisabled:`${ie}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>m(Qf,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>wo(t["minus-icon"],()=>[m(Gt,{clsPrefix:e},{default:()=>m(Tz,null)})])}),n=()=>m(Qf,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>wo(t["add-icon"],()=>[m(Gt,{clsPrefix:e},{default:()=>m(s7,null)})])});return m("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},m(rn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[o(),bt(t.prefix,i=>i?m("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[bt(t.suffix,i=>i?m("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?o():null,n()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),dv={extraFontSize:"12px",width:"440px"},sO={name:"Transfer",common:Ve,peers:{Checkbox:qa,Scrollbar:Zo,Input:Sn,Empty:Ji,Button:Yo},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,inputColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,hoverColor:v}=e;return Object.assign(Object.assign({},dv),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:c,headerColor:h,titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:v,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}};function uO(e){const{fontWeight:t,iconColorDisabled:o,iconColor:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,cardColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,borderColor:v,hoverColor:b}=e;return Object.assign(Object.assign({},dv),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:v,listColor:c,headerColor:Ue(c,h),titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:v,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:t,iconColor:n,iconColorDisabled:o})}const dO={name:"Transfer",common:We,peers:{Checkbox:ta,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:uO},cv="n-loading-bar",fv="n-loading-bar-api",cO=B("loading-bar-container",` z-index: 5999; position: fixed; top: 0; left: 0; right: 0; height: 2px; -`,[Ts({enterDuration:"0.3s",leaveDuration:"0.8s"}),A("loading-bar",` +`,[Ts({enterDuration:"0.3s",leaveDuration:"0.8s"}),B("loading-bar",` width: 100%; transition: max-width 4s linear, background .2s linear; height: var(--n-height); - `,[ee("starting",` + `,[J("starting",` background: var(--n-color-loading); - `),ee("finishing",` + `),J("finishing",` background: var(--n-color-loading); transition: max-width .2s linear, background .2s linear; - `),ee("error",` + `),J("error",` background: var(--n-color-error); transition: max-width .2s linear, background .2s linear; - `)])]);var gu=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function l(d){try{u(n.next(d))}catch(c){a(c)}}function s(d){try{u(n.throw(d))}catch(c){a(c)}}function u(d){d.done?i(d.value):r(d.value).then(l,s)}u((n=n.apply(e,t||[])).next())})};function vu(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const fO=ye({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=rt(),{props:t,mergedClsPrefixRef:o}=Oe(cv),n=$(null),r=$(!1),i=$(!1),a=$(!1),l=$(!1);let s=!1;const u=$(!1),d=D(()=>{const{loadingBarStyle:k}=t;return k?k[u.value?"error":"loading"]:""});function c(){return gu(this,void 0,void 0,function*(){r.value=!1,a.value=!1,s=!1,u.value=!1,l.value=!0,yield Mt(),l.value=!1})}function h(){return gu(this,arguments,void 0,function*(k=0,_=80,F="starting"){if(i.value=!0,yield c(),s)return;a.value=!0,yield Mt();const P=n.value;P&&(P.style.maxWidth=`${k}%`,P.style.transition="none",P.offsetWidth,P.className=vu(F,o.value),P.style.transition="",P.style.maxWidth=`${_}%`)})}function f(){return gu(this,void 0,void 0,function*(){if(s||u.value)return;i.value&&(yield Mt()),s=!0;const k=n.value;k&&(k.className=vu("finishing",o.value),k.style.maxWidth="100%",k.offsetWidth,a.value=!1)})}function p(){if(!(s||u.value))if(!a.value)h(100,100,"error").then(()=>{u.value=!0;const k=n.value;k&&(k.className=vu("error",o.value),k.offsetWidth,a.value=!1)});else{u.value=!0;const k=n.value;if(!k)return;k.className=vu("error",o.value),k.style.maxWidth="100%",k.offsetWidth,a.value=!1}}function g(){r.value=!0}function v(){r.value=!1}function b(){return gu(this,void 0,void 0,function*(){yield c()})}const x=Ie("LoadingBar","-loading-bar",cO,Rg,t,o),E=D(()=>{const{self:{height:k,colorError:_,colorLoading:F}}=x.value;return{"--n-height":k,"--n-color-loading":F,"--n-color-error":_}}),C=e?gt("loading-bar",void 0,E,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:l,start:h,error:p,finish:f,handleEnter:g,handleAfterEnter:v,handleAfterLeave:b,mergedLoadingBarStyle:d,cssVars:e?void 0:E,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return m(mo,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),zo(m("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},m("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[bn,this.loading||!this.loading&&this.entering]])}})}}),hO=Object.assign(Object.assign({},Ie.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),pO=ye({name:"LoadingBarProvider",props:hO,setup(e){const t=Cr(),o=$(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():Mt(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():Mt(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():Mt(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=rt(e);return et(fv,n),et(cv,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return m(ft,null,m(ys,{disabled:this.to===!1,to:this.to||"body"},m(fO,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function mO(){const e=Oe(fv,null);return e===null&&yr("use-loading-bar","No outer founded."),e}const gO=ye({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Fr("Log").localeRef}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-log-loader`},m(kr,{clsPrefix:e,strokeWidth:24,scale:.85}),m("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),hv="n-log",vO=ye({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:o,languageRef:n,mergedHljsRef:r}=Oe(hv),i=$(null),a=D(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(n.value,a.value))}function s(u,d){const{value:c}=r;return c&&u&&c.getLanguage(u)?c.highlight(d,{language:u}).value:d}return ut(()=>{o.value&&l()}),lt(Ae(e,"line"),()=>{o.value&&l()}),{highlight:o,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return m("pre",{ref:"selfRef"},e?null:t)}}),bO=A("log",` + `)])]);var gu=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function l(d){try{u(n.next(d))}catch(c){a(c)}}function s(d){try{u(n.throw(d))}catch(c){a(c)}}function u(d){d.done?i(d.value):r(d.value).then(l,s)}u((n=n.apply(e,t||[])).next())})};function vu(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const fO=ye({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=rt(),{props:t,mergedClsPrefixRef:o}=Oe(cv),n=$(null),r=$(!1),i=$(!1),a=$(!1),l=$(!1);let s=!1;const u=$(!1),d=D(()=>{const{loadingBarStyle:k}=t;return k?k[u.value?"error":"loading"]:""});function c(){return gu(this,void 0,void 0,function*(){r.value=!1,a.value=!1,s=!1,u.value=!1,l.value=!0,yield Mt(),l.value=!1})}function h(){return gu(this,arguments,void 0,function*(k=0,_=80,F="starting"){if(i.value=!0,yield c(),s)return;a.value=!0,yield Mt();const P=n.value;P&&(P.style.maxWidth=`${k}%`,P.style.transition="none",P.offsetWidth,P.className=vu(F,o.value),P.style.transition="",P.style.maxWidth=`${_}%`)})}function f(){return gu(this,void 0,void 0,function*(){if(s||u.value)return;i.value&&(yield Mt()),s=!0;const k=n.value;k&&(k.className=vu("finishing",o.value),k.style.maxWidth="100%",k.offsetWidth,a.value=!1)})}function p(){if(!(s||u.value))if(!a.value)h(100,100,"error").then(()=>{u.value=!0;const k=n.value;k&&(k.className=vu("error",o.value),k.offsetWidth,a.value=!1)});else{u.value=!0;const k=n.value;if(!k)return;k.className=vu("error",o.value),k.style.maxWidth="100%",k.offsetWidth,a.value=!1}}function g(){r.value=!0}function v(){r.value=!1}function b(){return gu(this,void 0,void 0,function*(){yield c()})}const x=Ie("LoadingBar","-loading-bar",cO,Rg,t,o),E=D(()=>{const{self:{height:k,colorError:_,colorLoading:F}}=x.value;return{"--n-height":k,"--n-color-loading":F,"--n-color-error":_}}),w=e?gt("loading-bar",void 0,E,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:l,start:h,error:p,finish:f,handleEnter:g,handleAfterEnter:v,handleAfterLeave:b,mergedLoadingBarStyle:d,cssVars:e?void 0:E,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return m(mo,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),zo(m("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},m("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[bn,this.loading||!this.loading&&this.entering]])}})}}),hO=Object.assign(Object.assign({},Ie.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),pO=ye({name:"LoadingBarProvider",props:hO,setup(e){const t=Cr(),o=$(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():Mt(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():Mt(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():Mt(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=rt(e);return tt(fv,n),tt(cv,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return m(ft,null,m(ys,{disabled:this.to===!1,to:this.to||"body"},m(fO,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function mO(){const e=Oe(fv,null);return e===null&&yr("use-loading-bar","No outer founded."),e}const gO=ye({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Fr("Log").localeRef}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-log-loader`},m(kr,{clsPrefix:e,strokeWidth:24,scale:.85}),m("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),hv="n-log",vO=ye({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:o,languageRef:n,mergedHljsRef:r}=Oe(hv),i=$(null),a=D(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(n.value,a.value))}function s(u,d){const{value:c}=r;return c&&u&&c.getLanguage(u)?c.highlight(d,{language:u}).value:d}return ut(()=>{o.value&&l()}),lt(Ae(e,"line"),()=>{o.value&&l()}),{highlight:o,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return m("pre",{ref:"selfRef"},e?null:t)}}),bO=B("log",` position: relative; box-sizing: border-box; transition: border-color .3s var(--n-bezier); @@ -2982,7 +2982,7 @@ ${t} white-space: pre-wrap; word-break: break-word; margin: 0; - `),A("log-loader",` + `),B("log-loader",` transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -3000,14 +3000,14 @@ ${t} color: var(--n-loader-text-color); background-color: var(--n-loader-color); font-size: var(--n-loader-font-size); - `,[Pn(),q("content",` + `,[Pn(),Y("content",` display: inline-block; vertical-align: bottom; line-height: 34px; padding-left: 40px; padding-right: 20px; white-space: nowrap; - `),A("base-loading",` + `),B("base-loading",` color: var(--n-loading-color); position: absolute; left: 12px; @@ -3017,12 +3017,12 @@ ${t} height: 20px; display: inline-block; `)])]),xO=Object.assign(Object.assign({},Ie.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),yO=ye({name:"Log",props:xO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=$(!1),r=D(()=>e.language!==void 0),i=D(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=D(()=>{const{log:x}=e;return x?x.split(` -`):e.lines}),l=$(null),s=Ie("Log","-log",bO,zg,e,t);function u(x){const E=x.target,C=E.firstElementChild;if(n.value){Mt(()=>{n.value=!1});return}const k=E.offsetHeight,_=E.scrollTop,F=C.offsetHeight,P=_,z=F-_-k;if(P<=e.offsetTop){const{onReachTop:B,onRequireMore:j}=e;j&&j("top"),B&&B()}if(z<=e.offsetBottom){const{onReachBottom:B,onRequireMore:j}=e;j&&j("bottom"),B&&B()}}const d=Bu(c,300);function c(x){if(n.value){Mt(()=>{n.value=!1});return}if(l.value){const{containerRef:E,contentRef:C}=l.value;if(E&&C){const k=E.offsetHeight,_=E.scrollTop,F=C.offsetHeight,P=_,z=F-_-k,B=x.deltaY;if(P===0&&B<0){const{onRequireMore:j}=e;j&&j("top")}if(z<=0&&B>0){const{onRequireMore:j}=e;j&&j("bottom")}}}}function h(x){const{value:E}=l;if(!E)return;const{silent:C,top:k,position:_}=x;C&&(n.value=!0),k!==void 0?E.scrollTo({left:0,top:k}):(_==="bottom"||_==="top")&&E.scrollTo({position:_})}function f(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",silent:x})}function p(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",silent:x})}et(hv,{languageRef:Ae(e,"language"),mergedHljsRef:l7(e),trimRef:Ae(e,"trim"),highlightRef:r});const g={scrollTo:h},v=D(()=>{const{self:{loaderFontSize:x,loaderTextColor:E,loaderColor:C,loaderBorder:k,loadingColor:_},common:{cubicBezierEaseInOut:F}}=s.value;return{"--n-bezier":F,"--n-loader-font-size":x,"--n-loader-border":k,"--n-loader-color":C,"--n-loader-text-color":E,"--n-loading-color":_}}),b=o?gt("log",void 0,v,e):void 0;return Object.assign(Object.assign({},g),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:f,scrollToBottom:p,handleWheel:d,handleScroll:u,cssVars:o?void 0:v,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[m(or,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>m(VA,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((n,r)=>m(vO,{key:r,line:n}))})}),m(mo,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m(gO,{clsPrefix:e}):null})])}}),pv={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},mv="n-message-api",gv="n-message-provider",CO=W([A("message-wrapper",` +`):e.lines}),l=$(null),s=Ie("Log","-log",bO,zg,e,t);function u(x){const E=x.target,w=E.firstElementChild;if(n.value){Mt(()=>{n.value=!1});return}const k=E.offsetHeight,_=E.scrollTop,F=w.offsetHeight,P=_,z=F-_-k;if(P<=e.offsetTop){const{onReachTop:A,onRequireMore:G}=e;G&&G("top"),A&&A()}if(z<=e.offsetBottom){const{onReachBottom:A,onRequireMore:G}=e;G&&G("bottom"),A&&A()}}const d=Bu(c,300);function c(x){if(n.value){Mt(()=>{n.value=!1});return}if(l.value){const{containerRef:E,contentRef:w}=l.value;if(E&&w){const k=E.offsetHeight,_=E.scrollTop,F=w.offsetHeight,P=_,z=F-_-k,A=x.deltaY;if(P===0&&A<0){const{onRequireMore:G}=e;G&&G("top")}if(z<=0&&A>0){const{onRequireMore:G}=e;G&&G("bottom")}}}}function h(x){const{value:E}=l;if(!E)return;const{silent:w,top:k,position:_}=x;w&&(n.value=!0),k!==void 0?E.scrollTo({left:0,top:k}):(_==="bottom"||_==="top")&&E.scrollTo({position:_})}function f(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",silent:x})}function p(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",silent:x})}tt(hv,{languageRef:Ae(e,"language"),mergedHljsRef:l7(e),trimRef:Ae(e,"trim"),highlightRef:r});const g={scrollTo:h},v=D(()=>{const{self:{loaderFontSize:x,loaderTextColor:E,loaderColor:w,loaderBorder:k,loadingColor:_},common:{cubicBezierEaseInOut:F}}=s.value;return{"--n-bezier":F,"--n-loader-font-size":x,"--n-loader-border":k,"--n-loader-color":w,"--n-loader-text-color":E,"--n-loading-color":_}}),b=o?gt("log",void 0,v,e):void 0;return Object.assign(Object.assign({},g),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:f,scrollToBottom:p,handleWheel:d,handleScroll:u,cssVars:o?void 0:v,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[m(or,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>m(VA,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((n,r)=>m(vO,{key:r,line:n}))})}),m(mo,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m(gO,{clsPrefix:e}):null})])}}),pv={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},mv="n-message-api",gv="n-message-provider",CO=W([B("message-wrapper",` margin: var(--n-margin); z-index: 0; transform-origin: top center; display: flex; - `,[Vd({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),A("message",` + `,[Vd({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),B("message",` box-sizing: border-box; display: flex; align-items: center; @@ -3041,18 +3041,18 @@ ${t} color: var(--n-text-color); background-color: var(--n-color); box-shadow: var(--n-box-shadow); - `,[q("content",` + `,[Y("content",` display: inline-block; line-height: var(--n-line-height); font-size: var(--n-font-size); - `),q("icon",` + `),Y("icon",` position: relative; margin: var(--n-icon-margin); height: var(--n-icon-size); width: var(--n-icon-size); font-size: var(--n-icon-size); flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>ee(`${e}-type`,[W("> *",` + `,[["default","info","success","warning","error","loading"].map(e=>J(`${e}-type`,[W("> *",` color: var(--n-icon-color-${e}); transition: color .3s var(--n-bezier); `)])),W("> *",` @@ -3061,7 +3061,7 @@ ${t} top: 0; right: 0; bottom: 0; - `,[en()])]),q("close",` + `,[en()])]),Y("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), @@ -3071,7 +3071,7 @@ ${t} color: var(--n-close-icon-color-hover); `),W("&:active",` color: var(--n-close-icon-color-pressed); - `)])]),A("message-container",` + `)])]),B("message-container",` z-index: 6000; position: fixed; height: 0; @@ -3079,104 +3079,104 @@ ${t} display: flex; flex-direction: column; align-items: center; - `,[ee("top",` + `,[J("top",` top: 12px; left: 0; right: 0; - `),ee("top-left",` + `),J("top-left",` top: 12px; left: 12px; right: 0; align-items: flex-start; - `),ee("top-right",` + `),J("top-right",` top: 12px; left: 0; right: 12px; align-items: flex-end; - `),ee("bottom",` + `),J("bottom",` bottom: 4px; left: 0; right: 0; justify-content: flex-end; - `),ee("bottom-left",` + `),J("bottom-left",` bottom: 4px; left: 12px; right: 0; justify-content: flex-end; align-items: flex-start; - `),ee("bottom-right",` + `),J("bottom-right",` bottom: 4px; left: 0; right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),wO={info:()=>m(ls,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(Id,null),default:()=>null},SO=ye({name:"Message",props:Object.assign(Object.assign({},pv),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=rt(e),{props:n,mergedClsPrefixRef:r}=Oe(gv),i=Vt("Message",o,r),a=Ie("Message","-message",CO,kg,n,r),l=D(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:d},self:{padding:c,margin:h,maxWidth:f,iconMargin:p,closeMargin:g,closeSize:v,iconSize:b,fontSize:x,lineHeight:E,borderRadius:C,iconColorInfo:k,iconColorSuccess:_,iconColorWarning:F,iconColorError:P,iconColorLoading:z,closeIconSize:B,closeBorderRadius:j,[Ee("textColor",u)]:V,[Ee("boxShadow",u)]:K,[Ee("color",u)]:N,[Ee("closeColorHover",u)]:T,[Ee("closeColorPressed",u)]:L,[Ee("closeIconColor",u)]:R,[Ee("closeIconColorPressed",u)]:I,[Ee("closeIconColorHover",u)]:w}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":c,"--n-max-width":f,"--n-font-size":x,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":B,"--n-close-border-radius":j,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":V,"--n-color":N,"--n-box-shadow":K,"--n-icon-color-info":k,"--n-icon-color-success":_,"--n-icon-color-warning":F,"--n-icon-color-error":P,"--n-icon-color-loading":z,"--n-close-color-hover":T,"--n-close-color-pressed":L,"--n-close-icon-color":R,"--n-close-icon-color-pressed":I,"--n-close-icon-color-hover":w,"--n-line-height":E,"--n-border-radius":C}}),s=t?gt("message",D(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:u,showIcon:d}=this;l==null||l();let c;return m("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):m("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(c=FO(s,t,r))&&d?m("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},m(Qi,null,{default:()=>c})):null,m("div",{class:`${r}-message__content`},Jt(n)),o?m(li,{clsPrefix:r,class:`${r}-message__close`,onClick:u,absolute:!0}):null))}});function FO(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?m(kr,{clsPrefix:o,strokeWidth:24,scale:.85}):wO[t]();return n?m(Kt,{clsPrefix:o,key:t},{default:()=>n}):null}}const EO=ye({name:"MessageEnvironment",props:Object.assign(Object.assign({},pv),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=$(!0);ut(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:c,onAfterHide:h,internalKey:f}=e;d&&d(),c&&c(f),h&&h()}function u(){a()}return{show:o,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:r,deactivate:u}},render(){return m(Ua,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(SO,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),kO=Object.assign(Object.assign({},Ie.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),vv=ye({name:"MessageProvider",props:kO,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=$([]),n=$({}),r={create(s,u){return i(s,Object.assign({type:"default"},u))},info(s,u){return i(s,Object.assign(Object.assign({},u),{type:"info"}))},success(s,u){return i(s,Object.assign(Object.assign({},u),{type:"success"}))},warning(s,u){return i(s,Object.assign(Object.assign({},u),{type:"warning"}))},error(s,u){return i(s,Object.assign(Object.assign({},u),{type:"error"}))},loading(s,u){return i(s,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:l};et(gv,{props:e,mergedClsPrefixRef:t}),et(mv,r);function i(s,u){const d=ii(),c=It(Object.assign(Object.assign({},u),{content:s,key:d,destroy:()=>{var f;(f=n.value[d])===null||f===void 0||f.hide()}})),{max:h}=e;return h&&o.value.length>=h&&o.value.shift(),o.value.push(c),c}function a(s){o.value.splice(o.value.findIndex(u=>u.key===s),1),delete n.value[s]}function l(){Object.values(n.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?m(ys,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>m(EO,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},Gi(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function _O(){const e=Oe(mv,null);return e===null&&yr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const MO=ye({name:"ModalEnvironment",props:Object.assign(Object.assign({},ug),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=$(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(){const{onPositiveClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function r(){const{onNegativeClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:n,show:r}=this;return m(n6,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:o,onEsc:n,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),m4="n-modal-provider",bv="n-modal-api",RO="n-modal-reactive-list",zO={to:[String,Object]},$O=ye({name:"ModalProvider",props:zO,setup(){const e=Xu(64),t=Zu(),o=$([]),n={};function r(s={}){const u=ii(),d=It(Object.assign(Object.assign({},s),{key:u,destroy:()=>{var c;(c=n[`n-modal-${u}`])===null||c===void 0||c.hide()}}));return o.value.push(d),d}function i(s){const{value:u}=o;u.splice(u.findIndex(d=>d.key===s),1)}function a(){Object.values(n).forEach(s=>{s==null||s.hide()})}const l={create:r,destroyAll:a};return et(bv,l),et(m4,{clickedRef:Xu(64),clickedPositionRef:Zu()}),et(RO,o),et(m4,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},l),{modalList:o,modalInstRefs:n,handleAfterLeave:i})},render(){var e,t;return m(ft,null,[this.modalList.map(o=>{var n;return m(MO,Gi(o,["destroy"],{to:(n=o.to)!==null&&n!==void 0?n:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function PO(){const e=Oe(bv,null);return e===null&&yr("use-modal","No outer founded."),e}const Xd="n-notification-provider",AO=ye({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Oe(Xd),n=$(null);return Et(()=>{var r,i;o.value>0?(r=n==null?void 0:n.value)===null||r===void 0||r.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:n,placement:r}=this;return m("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${r}`]},t?m(or,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),BO={info:()=>m(ls,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(Id,null),default:()=>null},i6={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},DO=Fs(i6),TO=ye({name:"Notification",props:i6,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:n}=Oe(Xd),{inlineThemeDisabled:r,mergedRtlRef:i}=rt(),a=Vt("Notification",i,t),l=D(()=>{const{type:u}=e,{self:{color:d,textColor:c,closeIconColor:h,closeIconColorHover:f,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:v,actionTextColor:b,borderRadius:x,headerFontWeight:E,boxShadow:C,lineHeight:k,fontSize:_,closeMargin:F,closeSize:P,width:z,padding:B,closeIconSize:j,closeBorderRadius:V,closeColorHover:K,closeColorPressed:N,titleFontSize:T,metaFontSize:L,descriptionFontSize:R,[Ee("iconColor",u)]:I},common:{cubicBezierEaseOut:w,cubicBezierEaseIn:Q,cubicBezierEaseInOut:U}}=o.value,{left:X,right:re,top:he,bottom:Se}=Mo(B);return{"--n-color":d,"--n-font-size":_,"--n-text-color":c,"--n-description-text-color":v,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":E,"--n-bezier":U,"--n-bezier-ease-out":w,"--n-bezier-ease-in":Q,"--n-border-radius":x,"--n-box-shadow":C,"--n-close-border-radius":V,"--n-close-color-hover":K,"--n-close-color-pressed":N,"--n-close-icon-color":h,"--n-close-icon-color-hover":f,"--n-close-icon-color-pressed":p,"--n-line-height":k,"--n-icon-color":I,"--n-close-margin":F,"--n-close-size":P,"--n-close-icon-size":j,"--n-width":z,"--n-padding-left":X,"--n-padding-right":re,"--n-padding-top":he,"--n-padding-bottom":Se,"--n-title-font-size":T,"--n-meta-font-size":L,"--n-description-font-size":R}}),s=r?gt("notification",D(()=>e.type[0]),l,n):void 0;return{mergedClsPrefix:t,showAvatar:D(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},m("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?m("div",{class:`${t}-notification__avatar`},this.avatar?Jt(this.avatar):this.type!=="default"?m(Kt,{clsPrefix:t},{default:()=>BO[this.type]()}):null):null,this.closable?m(li,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,m("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?m("div",{class:`${t}-notification-main__header`},Jt(this.title)):null,this.description?m("div",{class:`${t}-notification-main__description`},Jt(this.description)):null,this.content?m("pre",{class:`${t}-notification-main__content`},Jt(this.content)):null,this.meta||this.action?m("div",{class:`${t}-notification-main-footer`},this.meta?m("div",{class:`${t}-notification-main-footer__meta`},Jt(this.meta)):null,this.action?m("div",{class:`${t}-notification-main-footer__action`},Jt(this.action)):null):null)))}}),IO=Object.assign(Object.assign({},i6),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),OO=ye({name:"NotificationEnvironment",props:Object.assign(Object.assign({},IO),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Oe(Xd),o=$(!0);let n=null;function r(){o.value=!1,n&&window.clearTimeout(n)}function i(p){t.value++,Mt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:v}=e;g&&g(),v&&v()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function u(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:v,internalKey:b}=e;p&&p(),g(b),v&&v()}function d(){const{duration:p}=e;p&&(n=window.setTimeout(r,p))}function c(p){p.currentTarget===p.target&&n!==null&&(window.clearTimeout(n),n=null)}function h(p){p.currentTarget===p.target&&d()}function f(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return ut(()=>{e.duration&&(n=window.setTimeout(r,e.duration))}),{show:o,hide:r,handleClose:f,handleAfterLeave:u,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:c,handleMouseleave:h}},render(){return m(mo,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?m(TO,Object.assign({},ei(this.$props,DO),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),LO=W([A("notification-container",` + `)])]),wO={info:()=>m(ls,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(Id,null),default:()=>null},SO=ye({name:"Message",props:Object.assign(Object.assign({},pv),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=rt(e),{props:n,mergedClsPrefixRef:r}=Oe(gv),i=Wt("Message",o,r),a=Ie("Message","-message",CO,kg,n,r),l=D(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:d},self:{padding:c,margin:h,maxWidth:f,iconMargin:p,closeMargin:g,closeSize:v,iconSize:b,fontSize:x,lineHeight:E,borderRadius:w,iconColorInfo:k,iconColorSuccess:_,iconColorWarning:F,iconColorError:P,iconColorLoading:z,closeIconSize:A,closeBorderRadius:G,[Ee("textColor",u)]:H,[Ee("boxShadow",u)]:X,[Ee("color",u)]:N,[Ee("closeColorHover",u)]:T,[Ee("closeColorPressed",u)]:O,[Ee("closeIconColor",u)]:R,[Ee("closeIconColorPressed",u)]:L,[Ee("closeIconColorHover",u)]:ne}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":c,"--n-max-width":f,"--n-font-size":x,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":A,"--n-close-border-radius":G,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":H,"--n-color":N,"--n-box-shadow":X,"--n-icon-color-info":k,"--n-icon-color-success":_,"--n-icon-color-warning":F,"--n-icon-color-error":P,"--n-icon-color-loading":z,"--n-close-color-hover":T,"--n-close-color-pressed":O,"--n-close-icon-color":R,"--n-close-icon-color-pressed":L,"--n-close-icon-color-hover":ne,"--n-line-height":E,"--n-border-radius":w}}),s=t?gt("message",D(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:u,showIcon:d}=this;l==null||l();let c;return m("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):m("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(c=FO(s,t,r))&&d?m("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},m(Qi,null,{default:()=>c})):null,m("div",{class:`${r}-message__content`},Jt(n)),o?m(li,{clsPrefix:r,class:`${r}-message__close`,onClick:u,absolute:!0}):null))}});function FO(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?m(kr,{clsPrefix:o,strokeWidth:24,scale:.85}):wO[t]();return n?m(Gt,{clsPrefix:o,key:t},{default:()=>n}):null}}const EO=ye({name:"MessageEnvironment",props:Object.assign(Object.assign({},pv),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=$(!0);ut(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:c,onAfterHide:h,internalKey:f}=e;d&&d(),c&&c(f),h&&h()}function u(){a()}return{show:o,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:r,deactivate:u}},render(){return m(Ua,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(SO,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),kO=Object.assign(Object.assign({},Ie.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),vv=ye({name:"MessageProvider",props:kO,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=$([]),n=$({}),r={create(s,u){return i(s,Object.assign({type:"default"},u))},info(s,u){return i(s,Object.assign(Object.assign({},u),{type:"info"}))},success(s,u){return i(s,Object.assign(Object.assign({},u),{type:"success"}))},warning(s,u){return i(s,Object.assign(Object.assign({},u),{type:"warning"}))},error(s,u){return i(s,Object.assign(Object.assign({},u),{type:"error"}))},loading(s,u){return i(s,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:l};tt(gv,{props:e,mergedClsPrefixRef:t}),tt(mv,r);function i(s,u){const d=ii(),c=It(Object.assign(Object.assign({},u),{content:s,key:d,destroy:()=>{var f;(f=n.value[d])===null||f===void 0||f.hide()}})),{max:h}=e;return h&&o.value.length>=h&&o.value.shift(),o.value.push(c),c}function a(s){o.value.splice(o.value.findIndex(u=>u.key===s),1),delete n.value[s]}function l(){Object.values(n.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?m(ys,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>m(EO,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},Gi(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function _O(){const e=Oe(mv,null);return e===null&&yr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const MO=ye({name:"ModalEnvironment",props:Object.assign(Object.assign({},ug),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=$(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(){const{onPositiveClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function r(){const{onNegativeClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:n,show:r}=this;return m(n6,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:o,onEsc:n,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),m4="n-modal-provider",bv="n-modal-api",RO="n-modal-reactive-list",zO={to:[String,Object]},$O=ye({name:"ModalProvider",props:zO,setup(){const e=Xu(64),t=Zu(),o=$([]),n={};function r(s={}){const u=ii(),d=It(Object.assign(Object.assign({},s),{key:u,destroy:()=>{var c;(c=n[`n-modal-${u}`])===null||c===void 0||c.hide()}}));return o.value.push(d),d}function i(s){const{value:u}=o;u.splice(u.findIndex(d=>d.key===s),1)}function a(){Object.values(n).forEach(s=>{s==null||s.hide()})}const l={create:r,destroyAll:a};return tt(bv,l),tt(m4,{clickedRef:Xu(64),clickedPositionRef:Zu()}),tt(RO,o),tt(m4,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},l),{modalList:o,modalInstRefs:n,handleAfterLeave:i})},render(){var e,t;return m(ft,null,[this.modalList.map(o=>{var n;return m(MO,Gi(o,["destroy"],{to:(n=o.to)!==null&&n!==void 0?n:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function PO(){const e=Oe(bv,null);return e===null&&yr("use-modal","No outer founded."),e}const Xd="n-notification-provider",AO=ye({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Oe(Xd),n=$(null);return Et(()=>{var r,i;o.value>0?(r=n==null?void 0:n.value)===null||r===void 0||r.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:n,placement:r}=this;return m("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${r}`]},t?m(or,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),BO={info:()=>m(ls,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(Id,null),default:()=>null},i6={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},DO=Fs(i6),TO=ye({name:"Notification",props:i6,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:n}=Oe(Xd),{inlineThemeDisabled:r,mergedRtlRef:i}=rt(),a=Wt("Notification",i,t),l=D(()=>{const{type:u}=e,{self:{color:d,textColor:c,closeIconColor:h,closeIconColorHover:f,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:v,actionTextColor:b,borderRadius:x,headerFontWeight:E,boxShadow:w,lineHeight:k,fontSize:_,closeMargin:F,closeSize:P,width:z,padding:A,closeIconSize:G,closeBorderRadius:H,closeColorHover:X,closeColorPressed:N,titleFontSize:T,metaFontSize:O,descriptionFontSize:R,[Ee("iconColor",u)]:L},common:{cubicBezierEaseOut:ne,cubicBezierEaseIn:y,cubicBezierEaseInOut:K}}=o.value,{left:U,right:ue,top:se,bottom:Fe}=Mo(A);return{"--n-color":d,"--n-font-size":_,"--n-text-color":c,"--n-description-text-color":v,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":E,"--n-bezier":K,"--n-bezier-ease-out":ne,"--n-bezier-ease-in":y,"--n-border-radius":x,"--n-box-shadow":w,"--n-close-border-radius":H,"--n-close-color-hover":X,"--n-close-color-pressed":N,"--n-close-icon-color":h,"--n-close-icon-color-hover":f,"--n-close-icon-color-pressed":p,"--n-line-height":k,"--n-icon-color":L,"--n-close-margin":F,"--n-close-size":P,"--n-close-icon-size":G,"--n-width":z,"--n-padding-left":U,"--n-padding-right":ue,"--n-padding-top":se,"--n-padding-bottom":Fe,"--n-title-font-size":T,"--n-meta-font-size":O,"--n-description-font-size":R}}),s=r?gt("notification",D(()=>e.type[0]),l,n):void 0;return{mergedClsPrefix:t,showAvatar:D(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},m("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?m("div",{class:`${t}-notification__avatar`},this.avatar?Jt(this.avatar):this.type!=="default"?m(Gt,{clsPrefix:t},{default:()=>BO[this.type]()}):null):null,this.closable?m(li,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,m("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?m("div",{class:`${t}-notification-main__header`},Jt(this.title)):null,this.description?m("div",{class:`${t}-notification-main__description`},Jt(this.description)):null,this.content?m("pre",{class:`${t}-notification-main__content`},Jt(this.content)):null,this.meta||this.action?m("div",{class:`${t}-notification-main-footer`},this.meta?m("div",{class:`${t}-notification-main-footer__meta`},Jt(this.meta)):null,this.action?m("div",{class:`${t}-notification-main-footer__action`},Jt(this.action)):null):null)))}}),IO=Object.assign(Object.assign({},i6),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),OO=ye({name:"NotificationEnvironment",props:Object.assign(Object.assign({},IO),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Oe(Xd),o=$(!0);let n=null;function r(){o.value=!1,n&&window.clearTimeout(n)}function i(p){t.value++,Mt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:v}=e;g&&g(),v&&v()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function u(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:v,internalKey:b}=e;p&&p(),g(b),v&&v()}function d(){const{duration:p}=e;p&&(n=window.setTimeout(r,p))}function c(p){p.currentTarget===p.target&&n!==null&&(window.clearTimeout(n),n=null)}function h(p){p.currentTarget===p.target&&d()}function f(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return ut(()=>{e.duration&&(n=window.setTimeout(r,e.duration))}),{show:o,hide:r,handleClose:f,handleAfterLeave:u,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:c,handleMouseleave:h}},render(){return m(mo,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?m(TO,Object.assign({},ei(this.$props,DO),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),LO=W([B("notification-container",` z-index: 4000; position: fixed; overflow: visible; display: flex; flex-direction: column; align-items: flex-end; - `,[W(">",[A("scrollbar",` + `,[W(">",[B("scrollbar",` width: initial; overflow: visible; height: -moz-fit-content !important; height: fit-content !important; max-height: 100vh !important; - `,[W(">",[A("scrollbar-container",` + `,[W(">",[B("scrollbar-container",` height: -moz-fit-content !important; height: fit-content !important; max-height: 100vh !important; - `,[A("scrollbar-content",` + `,[B("scrollbar-content",` padding-top: 12px; padding-bottom: 33px; - `)])])])]),ee("top, top-right, top-left",` + `)])])])]),J("top, top-right, top-left",` top: 12px; - `,[W("&.transitioning >",[A("scrollbar",[W(">",[A("scrollbar-container",` + `,[W("&.transitioning >",[B("scrollbar",[W(">",[B("scrollbar-container",` min-height: 100vh !important; - `)])])])]),ee("bottom, bottom-right, bottom-left",` + `)])])])]),J("bottom, bottom-right, bottom-left",` bottom: 12px; - `,[W(">",[A("scrollbar",[W(">",[A("scrollbar-container",[A("scrollbar-content",` + `,[W(">",[B("scrollbar",[W(">",[B("scrollbar-container",[B("scrollbar-content",` padding-bottom: 12px; - `)])])])]),A("notification-wrapper",` + `)])])])]),B("notification-wrapper",` display: flex; align-items: flex-end; margin-bottom: 0; margin-top: 12px; - `)]),ee("top, bottom",` + `)]),J("top, bottom",` left: 50%; transform: translateX(-50%); - `,[A("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + `,[B("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` transform: scale(0.85); `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: scale(1); - `)])]),ee("top",[A("notification-wrapper",` + `)])]),J("top",[B("notification-wrapper",` transform-origin: top center; - `)]),ee("bottom",[A("notification-wrapper",` + `)]),J("bottom",[B("notification-wrapper",` transform-origin: bottom center; - `)]),ee("top-right, bottom-right",[A("notification",` + `)]),J("top-right, bottom-right",[B("notification",` margin-left: 28px; margin-right: 16px; - `)]),ee("top-left, bottom-left",[A("notification",` + `)]),J("top-left, bottom-left",[B("notification",` margin-left: 16px; margin-right: 28px; - `)]),ee("top-right",` + `)]),J("top-right",` right: 0; - `,[bu("top-right")]),ee("top-left",` + `,[bu("top-right")]),J("top-left",` left: 0; - `,[bu("top-left")]),ee("bottom-right",` + `,[bu("top-left")]),J("bottom-right",` right: 0; - `,[bu("bottom-right")]),ee("bottom-left",` + `,[bu("bottom-right")]),J("bottom-left",` left: 0; - `,[bu("bottom-left")]),ee("scrollable",[ee("top-right",` + `,[bu("bottom-left")]),J("scrollable",[J("top-right",` top: 0; - `),ee("top-left",` + `),J("top-left",` top: 0; - `),ee("bottom-right",` + `),J("bottom-right",` bottom: 0; - `),ee("bottom-left",` + `),J("bottom-left",` bottom: 0; - `)]),A("notification-wrapper",` + `)]),B("notification-wrapper",` margin-bottom: 12px; `,[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` opacity: 0; @@ -3204,7 +3204,7 @@ ${t} margin-top .3s linear, margin-bottom .3s linear, box-shadow .3s var(--n-bezier); - `)]),A("notification",` + `)]),B("notification",` background-color: var(--n-color); color: var(--n-text-color); transition: @@ -3227,16 +3227,16 @@ ${t} box-shadow: var(--n-box-shadow); box-sizing: border-box; opacity: 1; - `,[q("avatar",[A("icon",` + `,[Y("avatar",[B("icon",` color: var(--n-icon-color); - `),A("base-icon",` + `),B("base-icon",` color: var(--n-icon-color); - `)]),ee("show-avatar",[A("notification-main",` + `)]),J("show-avatar",[B("notification-main",` margin-left: 40px; width: calc(100% - 40px); - `)]),ee("closable",[A("notification-main",[W("> *:first-child",` + `)]),J("closable",[B("notification-main",[W("> *:first-child",` padding-right: 20px; - `)]),q("close",` + `)]),Y("close",` position: absolute; top: 0; right: 0; @@ -3244,7 +3244,7 @@ ${t} transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),q("avatar",` + `)]),Y("avatar",` position: absolute; top: var(--n-padding-top); left: var(--n-padding-left); @@ -3254,7 +3254,7 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[A("icon","transition: color .3s var(--n-bezier);")]),A("notification-main",` + `,[B("icon","transition: color .3s var(--n-bezier);")]),B("notification-main",` padding-top: var(--n-padding-top); padding-bottom: var(--n-padding-bottom); box-sizing: border-box; @@ -3262,32 +3262,32 @@ ${t} flex-direction: column; margin-left: 8px; width: calc(100% - 8px); - `,[A("notification-main-footer",` + `,[B("notification-main-footer",` display: flex; align-items: center; justify-content: space-between; margin-top: 12px; - `,[q("meta",` + `,[Y("meta",` font-size: var(--n-meta-font-size); transition: color .3s var(--n-bezier-ease-out); color: var(--n-description-text-color); - `),q("action",` + `),Y("action",` cursor: pointer; transition: color .3s var(--n-bezier-ease-out); color: var(--n-action-text-color); - `)]),q("header",` + `)]),Y("header",` font-weight: var(--n-title-font-weight); font-size: var(--n-title-font-size); transition: color .3s var(--n-bezier-ease-out); color: var(--n-title-text-color); - `),q("description",` + `),Y("description",` margin-top: 8px; font-size: var(--n-description-font-size); white-space: pre-wrap; word-wrap: break-word; transition: color .3s var(--n-bezier-ease-out); color: var(--n-description-text-color); - `),q("content",` + `),Y("content",` line-height: var(--n-line-height); margin: 12px 0 0 0; font-family: inherit; @@ -3295,47 +3295,47 @@ ${t} word-wrap: break-word; transition: color .3s var(--n-bezier-ease-out); color: var(--n-text-color); - `,[W("&:first-child","margin: 0;")])])])])]);function bu(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return A("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + `,[W("&:first-child","margin: 0;")])])])])]);function bu(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return B("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` transform: translate(${o}, 0); `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(0, 0); - `)])}const xv="n-notification-api",HO=Object.assign(Object.assign({},Ie.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),NO=ye({name:"NotificationProvider",props:HO,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=$([]),n={},r=new Set;function i(f){const p=ii(),g=()=>{r.add(p),n[p]&&n[p].hide()},v=It(Object.assign(Object.assign({},f),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&o.value.length-r.size>=b){let x=!1,E=0;for(const C of o.value){if(!r.has(C.key)){n[C.key]&&(C.destroy(),x=!0);break}E++}x||o.value.splice(E,1)}return o.value.push(v),v}const a=["info","success","warning","error"].map(f=>p=>i(Object.assign(Object.assign({},p),{type:f})));function l(f){r.delete(f),o.value.splice(o.value.findIndex(p=>p.key===f),1)}const s=Ie("Notification","-notification",LO,Fg,e,t),u={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:c,destroyAll:h},d=$(0);et(xv,u),et(Xd,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function c(f){return i(f)}function h(){Object.values(o.value).forEach(f=>{f.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:n,handleAfterLeave:l},u)},render(){var e,t,o;const{placement:n}=this;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?m(ys,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m(AO,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(r=>m(OO,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Gi(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function VO(){const e=Oe(xv,null);return e===null&&yr("use-notification","No outer `n-notification-provider` found."),e}const WO=W([A("page-header-header",` + `)])}const xv="n-notification-api",HO=Object.assign(Object.assign({},Ie.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),NO=ye({name:"NotificationProvider",props:HO,setup(e){const{mergedClsPrefixRef:t}=rt(e),o=$([]),n={},r=new Set;function i(f){const p=ii(),g=()=>{r.add(p),n[p]&&n[p].hide()},v=It(Object.assign(Object.assign({},f),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&o.value.length-r.size>=b){let x=!1,E=0;for(const w of o.value){if(!r.has(w.key)){n[w.key]&&(w.destroy(),x=!0);break}E++}x||o.value.splice(E,1)}return o.value.push(v),v}const a=["info","success","warning","error"].map(f=>p=>i(Object.assign(Object.assign({},p),{type:f})));function l(f){r.delete(f),o.value.splice(o.value.findIndex(p=>p.key===f),1)}const s=Ie("Notification","-notification",LO,Fg,e,t),u={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:c,destroyAll:h},d=$(0);tt(xv,u),tt(Xd,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function c(f){return i(f)}function h(){Object.values(o.value).forEach(f=>{f.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:n,handleAfterLeave:l},u)},render(){var e,t,o;const{placement:n}=this;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?m(ys,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m(AO,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(r=>m(OO,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Gi(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function VO(){const e=Oe(xv,null);return e===null&&yr("use-notification","No outer `n-notification-provider` found."),e}const WO=W([B("page-header-header",` margin-bottom: 20px; - `),A("page-header",` + `),B("page-header",` display: flex; align-items: center; justify-content: space-between; line-height: 1.5; font-size: var(--n-font-size); - `,[q("main",` + `,[Y("main",` display: flex; flex-wrap: nowrap; align-items: center; - `),q("back",` + `),Y("back",` display: flex; margin-right: 16px; font-size: var(--n-back-size); cursor: pointer; color: var(--n-back-color); transition: color .3s var(--n-bezier); - `,[W("&:hover","color: var(--n-back-color-hover);"),W("&:active","color: var(--n-back-color-pressed);")]),q("avatar",` + `,[W("&:hover","color: var(--n-back-color-hover);"),W("&:active","color: var(--n-back-color-pressed);")]),Y("avatar",` display: flex; margin-right: 12px - `),q("title",` + `),Y("title",` margin-right: 16px; transition: color .3s var(--n-bezier); font-size: var(--n-title-font-size); font-weight: var(--n-title-font-weight); color: var(--n-title-text-color); - `),q("subtitle",` + `),Y("subtitle",` font-size: 14px; transition: color .3s var(--n-bezier); color: var(--n-subtitle-text-color); - `)]),A("page-header-content",` + `)]),B("page-header-content",` font-size: var(--n-font-size); - `,[W("&:not(:first-child)","margin-top: 20px;")]),A("page-header-footer",` + `,[W("&:not(:first-child)","margin-top: 20px;")]),B("page-header-footer",` font-size: var(--n-font-size); - `,[W("&:not(:first-child)","margin-top: 20px;")])]),jO=Object.assign(Object.assign({},Ie.props),{title:String,subtitle:String,extra:String,onBack:Function}),UO=ye({name:"PageHeader",props:jO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("PageHeader","-page-header",WO,Ag,e,t),i=Vt("PageHeader",o,t),a=D(()=>{const{self:{titleTextColor:s,subtitleTextColor:u,backColor:d,fontSize:c,titleFontSize:h,backSize:f,titleFontWeight:p,backColorHover:g,backColorPressed:v},common:{cubicBezierEaseInOut:b}}=r.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":c,"--n-back-size":f,"--n-subtitle-text-color":u,"--n-back-color":d,"--n-back-color-hover":g,"--n-back-color-pressed":v,"--n-bezier":b}}),l=n?gt("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:o,subtitle:n,extra:r,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:u,extra:d,default:c,header:h,avatar:f,footer:p,back:g}=l,v=t,b=o||s,x=n||u,E=r||d;return m("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?m("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(v||f||b||x||E)&&m("div",{class:`${i}-page-header`,key:"header"},m("div",{class:`${i}-page-header__main`,key:"back"},v?m("div",{class:`${i}-page-header__back`,onClick:t},g?g():m(Kt,{clsPrefix:i},{default:()=>m(Oz,null)})):null,f?m("div",{class:`${i}-page-header__avatar`},f()):null,b?m("div",{class:`${i}-page-header__title`,key:"title"},o||s()):null,x?m("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},n||u()):null),E?m("div",{class:`${i}-page-header__extra`},r||d()):null),c?m("div",{class:`${i}-page-header-content`,key:"content"},c()):null,p?m("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),KO={name:"QrCode",common:Ve,self:e=>({borderRadius:e.borderRadius})};function GO(e){return{borderRadius:e.borderRadius}}const qO={name:"QrCode",common:We,self:GO},ZO={name:"Skeleton",common:Ve,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}};function XO(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}const yv={name:"Skeleton",common:We,self:XO},YO=W([A("skeleton",` + `,[W("&:not(:first-child)","margin-top: 20px;")])]),jO=Object.assign(Object.assign({},Ie.props),{title:String,subtitle:String,extra:String,onBack:Function}),UO=ye({name:"PageHeader",props:jO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("PageHeader","-page-header",WO,Ag,e,t),i=Wt("PageHeader",o,t),a=D(()=>{const{self:{titleTextColor:s,subtitleTextColor:u,backColor:d,fontSize:c,titleFontSize:h,backSize:f,titleFontWeight:p,backColorHover:g,backColorPressed:v},common:{cubicBezierEaseInOut:b}}=r.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":c,"--n-back-size":f,"--n-subtitle-text-color":u,"--n-back-color":d,"--n-back-color-hover":g,"--n-back-color-pressed":v,"--n-bezier":b}}),l=n?gt("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:o,subtitle:n,extra:r,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:u,extra:d,default:c,header:h,avatar:f,footer:p,back:g}=l,v=t,b=o||s,x=n||u,E=r||d;return m("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?m("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(v||f||b||x||E)&&m("div",{class:`${i}-page-header`,key:"header"},m("div",{class:`${i}-page-header__main`,key:"back"},v?m("div",{class:`${i}-page-header__back`,onClick:t},g?g():m(Gt,{clsPrefix:i},{default:()=>m(Oz,null)})):null,f?m("div",{class:`${i}-page-header__avatar`},f()):null,b?m("div",{class:`${i}-page-header__title`,key:"title"},o||s()):null,x?m("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},n||u()):null),E?m("div",{class:`${i}-page-header__extra`},r||d()):null),c?m("div",{class:`${i}-page-header-content`,key:"content"},c()):null,p?m("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),KO={name:"QrCode",common:Ve,self:e=>({borderRadius:e.borderRadius})};function GO(e){return{borderRadius:e.borderRadius}}const qO={name:"QrCode",common:We,self:GO},ZO={name:"Skeleton",common:Ve,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}};function XO(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}const yv={name:"Skeleton",common:We,self:XO},YO=W([B("skeleton",` height: 1em; width: 100%; transition: @@ -3357,8 +3357,8 @@ ${t} 100% { background: var(--n-color-start); } - `)]),QO=Object.assign(Object.assign({},Ie.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),JO=ye({name:"Skeleton",inheritAttrs:!1,props:QO,setup(e){vw();const{mergedClsPrefixRef:t}=rt(e),o=Ie("Skeleton","-skeleton",YO,yv,e,t);return{mergedClsPrefix:t,style:D(()=>{var n,r;const i=o.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:u,borderRadius:d}=l;let c;const{circle:h,sharp:f,round:p,width:g,height:v,size:b,text:x,animated:E}=e;b!==void 0&&(c=l[Ee("height",b)]);const C=h?(n=g??v)!==null&&n!==void 0?n:c:g,k=(r=h?g??v:v)!==null&&r!==void 0?r:c;return{display:x?"inline-block":"",verticalAlign:x?"-0.125em":"",borderRadius:h?"50%":p?"4096px":f?"":d,width:typeof C=="number"?Ht(C):C,height:typeof k=="number"?Ht(k):k,animation:E?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":u}})}},render(){const{repeat:e,style:t,mergedClsPrefix:o,$attrs:n}=this,r=m("div",po({class:`${o}-skeleton`,style:t},n));return e>1?m(ft,null,Ep(e,null).map(i=>[r,` -`])):r}});function g4(e){return window.TouchEvent&&e instanceof window.TouchEvent}function v4(){const e=new Map,t=o=>n=>{e.set(o,n)};return D5(()=>{e.clear()}),[e,t]}const eL=W([A("slider",` + `)]),QO=Object.assign(Object.assign({},Ie.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),JO=ye({name:"Skeleton",inheritAttrs:!1,props:QO,setup(e){vw();const{mergedClsPrefixRef:t}=rt(e),o=Ie("Skeleton","-skeleton",YO,yv,e,t);return{mergedClsPrefix:t,style:D(()=>{var n,r;const i=o.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:u,borderRadius:d}=l;let c;const{circle:h,sharp:f,round:p,width:g,height:v,size:b,text:x,animated:E}=e;b!==void 0&&(c=l[Ee("height",b)]);const w=h?(n=g??v)!==null&&n!==void 0?n:c:g,k=(r=h?g??v:v)!==null&&r!==void 0?r:c;return{display:x?"inline-block":"",verticalAlign:x?"-0.125em":"",borderRadius:h?"50%":p?"4096px":f?"":d,width:typeof w=="number"?Ht(w):w,height:typeof k=="number"?Ht(k):k,animation:E?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":u}})}},render(){const{repeat:e,style:t,mergedClsPrefix:o,$attrs:n}=this,r=m("div",po({class:`${o}-skeleton`,style:t},n));return e>1?m(ft,null,Ep(e,null).map(i=>[r,` +`])):r}});function g4(e){return window.TouchEvent&&e instanceof window.TouchEvent}function v4(){const e=new Map,t=o=>n=>{e.set(o,n)};return D5(()=>{e.clear()}),[e,t]}const eL=W([B("slider",` display: block; padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; position: relative; @@ -3367,101 +3367,101 @@ ${t} cursor: pointer; user-select: none; -webkit-user-select: none; - `,[ee("reverse",[A("slider-handles",[A("slider-handle-wrapper",` + `,[J("reverse",[B("slider-handles",[B("slider-handle-wrapper",` transform: translate(50%, -50%); - `)]),A("slider-dots",[A("slider-dot",` + `)]),B("slider-dots",[B("slider-dot",` transform: translateX(50%, -50%); - `)]),ee("vertical",[A("slider-handles",[A("slider-handle-wrapper",` + `)]),J("vertical",[B("slider-handles",[B("slider-handle-wrapper",` transform: translate(-50%, -50%); - `)]),A("slider-marks",[A("slider-mark",` + `)]),B("slider-marks",[B("slider-mark",` transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),A("slider-dots",[A("slider-dot",` + `)]),B("slider-dots",[B("slider-dot",` transform: translateX(-50%) translateY(0); - `)])])]),ee("vertical",` + `)])])]),J("vertical",` box-sizing: content-box; padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); width: var(--n-rail-width-vertical); height: 100%; - `,[A("slider-handles",` + `,[B("slider-handles",` top: calc(var(--n-handle-size) / 2); right: 0; bottom: calc(var(--n-handle-size) / 2); left: 0; - `,[A("slider-handle-wrapper",` + `,[B("slider-handle-wrapper",` top: unset; left: 50%; transform: translate(-50%, 50%); - `)]),A("slider-rail",` + `)]),B("slider-rail",` height: 100%; - `,[q("fill",` + `,[Y("fill",` top: unset; right: 0; bottom: unset; left: 0; - `)]),ee("with-mark",` + `)]),J("with-mark",` width: var(--n-rail-width-vertical); margin: 0 32px 0 8px; - `),A("slider-marks",` + `),B("slider-marks",` top: calc(var(--n-handle-size) / 2); right: unset; bottom: calc(var(--n-handle-size) / 2); left: 22px; font-size: var(--n-mark-font-size); - `,[A("slider-mark",` + `,[B("slider-mark",` transform: translateY(50%); white-space: nowrap; - `)]),A("slider-dots",` + `)]),B("slider-dots",` top: calc(var(--n-handle-size) / 2); right: unset; bottom: calc(var(--n-handle-size) / 2); left: 50%; - `,[A("slider-dot",` + `,[B("slider-dot",` transform: translateX(-50%) translateY(50%); - `)])]),ee("disabled",` + `)])]),J("disabled",` cursor: not-allowed; opacity: var(--n-opacity-disabled); - `,[A("slider-handle",` + `,[B("slider-handle",` cursor: not-allowed; - `)]),ee("with-mark",` + `)]),J("with-mark",` width: 100%; margin: 8px 0 32px 0; - `),W("&:hover",[A("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[q("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),A("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),ee("active",[A("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[q("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),A("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),A("slider-marks",` + `),W("&:hover",[B("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[Y("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),B("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),J("active",[B("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[Y("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),B("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),B("slider-marks",` position: absolute; top: 18px; left: calc(var(--n-handle-size) / 2); right: calc(var(--n-handle-size) / 2); - `,[A("slider-mark",` + `,[B("slider-mark",` position: absolute; transform: translateX(-50%); white-space: nowrap; - `)]),A("slider-rail",` + `)]),B("slider-rail",` width: 100%; position: relative; height: var(--n-rail-height); background-color: var(--n-rail-color); transition: background-color .3s var(--n-bezier); border-radius: calc(var(--n-rail-height) / 2); - `,[q("fill",` + `,[Y("fill",` position: absolute; top: 0; bottom: 0; border-radius: calc(var(--n-rail-height) / 2); transition: background-color .3s var(--n-bezier); background-color: var(--n-fill-color); - `)]),A("slider-handles",` + `)]),B("slider-handles",` position: absolute; top: 0; right: calc(var(--n-handle-size) / 2); bottom: 0; left: calc(var(--n-handle-size) / 2); - `,[A("slider-handle-wrapper",` + `,[B("slider-handle-wrapper",` outline: none; position: absolute; top: 50%; transform: translate(-50%, -50%); cursor: pointer; display: flex; - `,[A("slider-handle",` + `,[B("slider-handle",` height: var(--n-handle-size); width: var(--n-handle-size); border-radius: 50%; @@ -3471,16 +3471,16 @@ ${t} box-shadow: var(--n-handle-box-shadow); `,[W("&:hover",` box-shadow: var(--n-handle-box-shadow-hover); - `)]),W("&:focus",[A("slider-handle",` + `)]),W("&:focus",[B("slider-handle",` box-shadow: var(--n-handle-box-shadow-focus); `,[W("&:hover",` box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),A("slider-dots",` + `)])])])]),B("slider-dots",` position: absolute; top: 50%; left: calc(var(--n-handle-size) / 2); right: calc(var(--n-handle-size) / 2); - `,[ee("transition-disabled",[A("slider-dot","transition: none;")]),A("slider-dot",` + `,[J("transition-disabled",[B("slider-dot","transition: none;")]),B("slider-dot",` transition: border-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), @@ -3494,93 +3494,93 @@ ${t} box-sizing: border-box; border: var(--n-dot-border); background-color: var(--n-dot-color); - `,[ee("active","border: var(--n-dot-border-active);")])])]),A("slider-handle-indicator",` + `,[J("active","border: var(--n-dot-border-active);")])])]),B("slider-handle-indicator",` font-size: var(--n-font-size); padding: 6px 10px; border-radius: var(--n-indicator-border-radius); color: var(--n-indicator-text-color); background-color: var(--n-indicator-color); box-shadow: var(--n-indicator-box-shadow); - `,[Pn()]),A("slider-handle-indicator",` + `,[Pn()]),B("slider-handle-indicator",` font-size: var(--n-font-size); padding: 6px 10px; border-radius: var(--n-indicator-border-radius); color: var(--n-indicator-text-color); background-color: var(--n-indicator-color); box-shadow: var(--n-indicator-box-shadow); - `,[ee("top",` + `,[J("top",` margin-bottom: 12px; - `),ee("right",` + `),J("right",` margin-left: 12px; - `),ee("bottom",` + `),J("bottom",` margin-top: 12px; - `),ee("left",` + `),J("left",` margin-right: 12px; - `),Pn()]),qi(A("slider",[A("slider-dot","background-color: var(--n-dot-color-modal);")])),Ha(A("slider",[A("slider-dot","background-color: var(--n-dot-color-popover);")]))]),tL=0,oL=Object.assign(Object.assign({},Ie.props),{to:$o.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),nL=ye({name:"Slider",props:oL,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("Slider","-slider",eL,Hg,e,t),i=$(null),[a,l]=v4(),[s,u]=v4(),d=$(new Set),c=Bn(e),{mergedDisabledRef:h}=c,f=D(()=>{const{step:le}=e;if(Number(le)<=0||le==="mark")return 0;const Y=le.toString();let ue=0;return Y.includes(".")&&(ue=Y.length-Y.indexOf(".")-1),ue}),p=$(e.defaultValue),g=Ae(e,"value"),v=to(g,p),b=D(()=>{const{value:le}=v;return(e.range?le:[le]).map(X)}),x=D(()=>b.value.length>2),E=D(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),C=D(()=>{const{marks:le}=e;return le?Object.keys(le).map(Number.parseFloat):null}),k=$(-1),_=$(-1),F=$(-1),P=$(!1),z=$(!1),B=D(()=>{const{vertical:le,reverse:Y}=e;return le?Y?"top":"bottom":Y?"right":"left"}),j=D(()=>{if(x.value)return;const le=b.value,Y=re(e.range?Math.min(...le):e.min),ue=re(e.range?Math.max(...le):le[0]),{value:ve}=B;return e.vertical?{[ve]:`${Y}%`,height:`${ue-Y}%`}:{[ve]:`${Y}%`,width:`${ue-Y}%`}}),V=D(()=>{const le=[],{marks:Y}=e;if(Y){const ue=b.value.slice();ue.sort((st,Ye)=>st-Ye);const{value:ve}=B,{value:Be}=x,{range:Ke}=e,Je=Be?()=>!1:st=>Ke?st>=ue[0]&&st<=ue[ue.length-1]:st<=ue[0];for(const st of Object.keys(Y)){const Ye=Number(st);le.push({active:Je(Ye),key:Ye,label:Y[st],style:{[ve]:`${re(Ye)}%`}})}}return le});function K(le,Y){const ue=re(le),{value:ve}=B;return{[ve]:`${ue}%`,zIndex:Y===k.value?1:0}}function N(le){return e.showTooltip||F.value===le||k.value===le&&P.value}function T(le){return P.value?!(k.value===le&&_.value===le):!0}function L(le){var Y;~le&&(k.value=le,(Y=a.get(le))===null||Y===void 0||Y.focus())}function R(){s.forEach((le,Y)=>{N(Y)&&le.syncPosition()})}function I(le){const{"onUpdate:value":Y,onUpdateValue:ue}=e,{nTriggerFormInput:ve,nTriggerFormChange:Be}=c;ue&&Re(ue,le),Y&&Re(Y,le),p.value=le,ve(),Be()}function w(le){const{range:Y}=e;if(Y){if(Array.isArray(le)){const{value:ue}=b;le.join()!==ue.join()&&I(le)}}else Array.isArray(le)||b.value[0]!==le&&I(le)}function Q(le,Y){if(e.range){const ue=b.value.slice();ue.splice(Y,1,le),w(ue)}else w(le)}function U(le,Y,ue){const ve=ue!==void 0;ue||(ue=le-Y>0?1:-1);const Be=C.value||[],{step:Ke}=e;if(Ke==="mark"){const Ye=pe(le,Be.concat(Y),ve?ue:void 0);return Ye?Ye.value:Y}if(Ke<=0)return Y;const{value:Je}=f;let st;if(ve){const Ye=Number((Y/Ke).toFixed(Je)),pt=Math.floor(Ye),Qe=Ye>pt?pt:pt-1,Le=Ye0)&&(ve===null||Je0?1:-1),Y)}function G(le){var Y,ue;if(h.value||!g4(le)&&le.button!==tL)return;const ve=fe(le);if(ve===void 0)return;const Be=b.value.slice(),Ke=e.range?(ue=(Y=pe(ve,Be))===null||Y===void 0?void 0:Y.index)!==null&&ue!==void 0?ue:-1:0;Ke!==-1&&(le.preventDefault(),L(Ke),Te(),Q(U(ve,b.value[Ke]),Ke))}function Te(){P.value||(P.value=!0,e.onDragstart&&Re(e.onDragstart),Ct("touchend",document,oe),Ct("mouseup",document,oe),Ct("touchmove",document,H),Ct("mousemove",document,H))}function Ne(){P.value&&(P.value=!1,e.onDragend&&Re(e.onDragend),xt("touchend",document,oe),xt("mouseup",document,oe),xt("touchmove",document,H),xt("mousemove",document,H))}function H(le){const{value:Y}=k;if(!P.value||Y===-1){Ne();return}const ue=fe(le);ue!==void 0&&Q(U(ue,b.value[Y]),Y)}function oe(){Ne()}function ge(le){k.value=le,h.value||(F.value=le)}function Ce(le){k.value===le&&(k.value=-1,Ne()),F.value===le&&(F.value=-1)}function se(le){F.value=le}function ie(le){F.value===le&&(F.value=-1)}lt(k,(le,Y)=>void Mt(()=>_.value=Y)),lt(v,()=>{if(e.marks){if(z.value)return;z.value=!0,Mt(()=>{z.value=!1})}Mt(R)}),Xt(()=>{Ne()});const ce=D(()=>{const{self:{markFontSize:le,railColor:Y,railColorHover:ue,fillColor:ve,fillColorHover:Be,handleColor:Ke,opacityDisabled:Je,dotColor:st,dotColorModal:Ye,handleBoxShadow:pt,handleBoxShadowHover:Qe,handleBoxShadowActive:Le,handleBoxShadowFocus:tt,dotBorder:te,dotBoxShadow:me,railHeight:ze,railWidthVertical:He,handleSize:je,dotHeight:Ge,dotWidth:Ze,dotBorderRadius:ot,fontSize:yt,dotBorderActive:Bt,dotColorPopover:kt},common:{cubicBezierEaseInOut:xo}}=r.value;return{"--n-bezier":xo,"--n-dot-border":te,"--n-dot-border-active":Bt,"--n-dot-border-radius":ot,"--n-dot-box-shadow":me,"--n-dot-color":st,"--n-dot-color-modal":Ye,"--n-dot-color-popover":kt,"--n-dot-height":Ge,"--n-dot-width":Ze,"--n-fill-color":ve,"--n-fill-color-hover":Be,"--n-font-size":yt,"--n-handle-box-shadow":pt,"--n-handle-box-shadow-active":Le,"--n-handle-box-shadow-focus":tt,"--n-handle-box-shadow-hover":Qe,"--n-handle-color":Ke,"--n-handle-size":je,"--n-opacity-disabled":Je,"--n-rail-color":Y,"--n-rail-color-hover":ue,"--n-rail-height":ze,"--n-rail-width-vertical":He,"--n-mark-font-size":le}}),ne=n?gt("slider",void 0,ce,e):void 0,ae=D(()=>{const{self:{fontSize:le,indicatorColor:Y,indicatorBoxShadow:ue,indicatorTextColor:ve,indicatorBorderRadius:Be}}=r.value;return{"--n-font-size":le,"--n-indicator-border-radius":Be,"--n-indicator-box-shadow":ue,"--n-indicator-color":Y,"--n-indicator-text-color":ve}}),de=n?gt("slider-indicator",void 0,ae,e):void 0;return{mergedClsPrefix:t,namespace:o,uncontrolledValue:p,mergedValue:v,mergedDisabled:h,mergedPlacement:E,isMounted:Cr(),adjustedTo:$o(e),dotTransitionDisabled:z,markInfos:V,isShowTooltip:N,shouldKeepTooltipTransition:T,handleRailRef:i,setHandleRefs:l,setFollowerRefs:u,fillStyle:j,getHandleStyle:K,activeIndex:k,arrifiedValues:b,followerEnabledIndexSet:d,handleRailMouseDown:G,handleHandleFocus:ge,handleHandleBlur:Ce,handleHandleMouseEnter:se,handleHandleMouseLeave:ie,handleRailKeyDown:we,indicatorCssVars:n?void 0:ae,indicatorThemeClass:de==null?void 0:de.themeClass,indicatorOnRender:de==null?void 0:de.onRender,cssVars:n?void 0:ce,themeClass:ne==null?void 0:ne.themeClass,onRender:ne==null?void 0:ne.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:o,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-slider`,o,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},m("div",{class:`${t}-slider-rail`},m("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?m("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(r=>m("div",{key:r.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:r.active}],style:r.style}))):null,m("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((r,i)=>{const a=this.isShowTooltip(i);return m(_s,null,{default:()=>[m(Ms,null,{default:()=>m("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":r,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(r,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},wo(this.$slots.thumb,()=>[m("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&m(Rs,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===$o.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>m(mo,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),m("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(r):r)):null}})})]})})),this.marks?m("div",{class:`${t}-slider-marks`},this.markInfos.map(r=>m("div",{key:r.key,class:`${t}-slider-mark`,style:r.style},typeof r.label=="function"?r.label():r.label))):null))}}),rL=W([W("@keyframes spin-rotate",` + `),Pn()]),qi(B("slider",[B("slider-dot","background-color: var(--n-dot-color-modal);")])),Ha(B("slider",[B("slider-dot","background-color: var(--n-dot-color-popover);")]))]),tL=0,oL=Object.assign(Object.assign({},Ie.props),{to:$o.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),nL=ye({name:"Slider",props:oL,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=rt(e),r=Ie("Slider","-slider",eL,Hg,e,t),i=$(null),[a,l]=v4(),[s,u]=v4(),d=$(new Set),c=Bn(e),{mergedDisabledRef:h}=c,f=D(()=>{const{step:ae}=e;if(Number(ae)<=0||ae==="mark")return 0;const Q=ae.toString();let de=0;return Q.includes(".")&&(de=Q.length-Q.indexOf(".")-1),de}),p=$(e.defaultValue),g=Ae(e,"value"),v=oo(g,p),b=D(()=>{const{value:ae}=v;return(e.range?ae:[ae]).map(U)}),x=D(()=>b.value.length>2),E=D(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),w=D(()=>{const{marks:ae}=e;return ae?Object.keys(ae).map(Number.parseFloat):null}),k=$(-1),_=$(-1),F=$(-1),P=$(!1),z=$(!1),A=D(()=>{const{vertical:ae,reverse:Q}=e;return ae?Q?"top":"bottom":Q?"right":"left"}),G=D(()=>{if(x.value)return;const ae=b.value,Q=ue(e.range?Math.min(...ae):e.min),de=ue(e.range?Math.max(...ae):ae[0]),{value:ve}=A;return e.vertical?{[ve]:`${Q}%`,height:`${de-Q}%`}:{[ve]:`${Q}%`,width:`${de-Q}%`}}),H=D(()=>{const ae=[],{marks:Q}=e;if(Q){const de=b.value.slice();de.sort((st,Ye)=>st-Ye);const{value:ve}=A,{value:Be}=x,{range:Ge}=e,et=Be?()=>!1:st=>Ge?st>=de[0]&&st<=de[de.length-1]:st<=de[0];for(const st of Object.keys(Q)){const Ye=Number(st);ae.push({active:et(Ye),key:Ye,label:Q[st],style:{[ve]:`${ue(Ye)}%`}})}}return ae});function X(ae,Q){const de=ue(ae),{value:ve}=A;return{[ve]:`${de}%`,zIndex:Q===k.value?1:0}}function N(ae){return e.showTooltip||F.value===ae||k.value===ae&&P.value}function T(ae){return P.value?!(k.value===ae&&_.value===ae):!0}function O(ae){var Q;~ae&&(k.value=ae,(Q=a.get(ae))===null||Q===void 0||Q.focus())}function R(){s.forEach((ae,Q)=>{N(Q)&&ae.syncPosition()})}function L(ae){const{"onUpdate:value":Q,onUpdateValue:de}=e,{nTriggerFormInput:ve,nTriggerFormChange:Be}=c;de&&Re(de,ae),Q&&Re(Q,ae),p.value=ae,ve(),Be()}function ne(ae){const{range:Q}=e;if(Q){if(Array.isArray(ae)){const{value:de}=b;ae.join()!==de.join()&&L(ae)}}else Array.isArray(ae)||b.value[0]!==ae&&L(ae)}function y(ae,Q){if(e.range){const de=b.value.slice();de.splice(Q,1,ae),ne(de)}else ne(ae)}function K(ae,Q,de){const ve=de!==void 0;de||(de=ae-Q>0?1:-1);const Be=w.value||[],{step:Ge}=e;if(Ge==="mark"){const Ye=pe(ae,Be.concat(Q),ve?de:void 0);return Ye?Ye.value:Q}if(Ge<=0)return Q;const{value:et}=f;let st;if(ve){const Ye=Number((Q/Ge).toFixed(et)),pt=Math.floor(Ye),Qe=Ye>pt?pt:pt-1,Le=Ye0)&&(ve===null||et0?1:-1),Q)}function q(ae){var Q,de;if(h.value||!g4(ae)&&ae.button!==tL)return;const ve=fe(ae);if(ve===void 0)return;const Be=b.value.slice(),Ge=e.range?(de=(Q=pe(ve,Be))===null||Q===void 0?void 0:Q.index)!==null&&de!==void 0?de:-1:0;Ge!==-1&&(ae.preventDefault(),O(Ge),Te(),y(K(ve,b.value[Ge]),Ge))}function Te(){P.value||(P.value=!0,e.onDragstart&&Re(e.onDragstart),wt("touchend",document,V),wt("mouseup",document,V),wt("touchmove",document,j),wt("mousemove",document,j))}function Ne(){P.value&&(P.value=!1,e.onDragend&&Re(e.onDragend),xt("touchend",document,V),xt("mouseup",document,V),xt("touchmove",document,j),xt("mousemove",document,j))}function j(ae){const{value:Q}=k;if(!P.value||Q===-1){Ne();return}const de=fe(ae);de!==void 0&&y(K(de,b.value[Q]),Q)}function V(){Ne()}function ge(ae){k.value=ae,h.value||(F.value=ae)}function we(ae){k.value===ae&&(k.value=-1,Ne()),F.value===ae&&(F.value=-1)}function le(ae){F.value=ae}function re(ae){F.value===ae&&(F.value=-1)}lt(k,(ae,Q)=>void Mt(()=>_.value=Q)),lt(v,()=>{if(e.marks){if(z.value)return;z.value=!0,Mt(()=>{z.value=!1})}Mt(R)}),Xt(()=>{Ne()});const he=D(()=>{const{self:{markFontSize:ae,railColor:Q,railColorHover:de,fillColor:ve,fillColorHover:Be,handleColor:Ge,opacityDisabled:et,dotColor:st,dotColorModal:Ye,handleBoxShadow:pt,handleBoxShadowHover:Qe,handleBoxShadowActive:Le,handleBoxShadowFocus:ot,dotBorder:te,dotBoxShadow:me,railHeight:ze,railWidthVertical:He,handleSize:je,dotHeight:qe,dotWidth:Ze,dotBorderRadius:nt,fontSize:yt,dotBorderActive:Bt,dotColorPopover:kt},common:{cubicBezierEaseInOut:xo}}=r.value;return{"--n-bezier":xo,"--n-dot-border":te,"--n-dot-border-active":Bt,"--n-dot-border-radius":nt,"--n-dot-box-shadow":me,"--n-dot-color":st,"--n-dot-color-modal":Ye,"--n-dot-color-popover":kt,"--n-dot-height":qe,"--n-dot-width":Ze,"--n-fill-color":ve,"--n-fill-color-hover":Be,"--n-font-size":yt,"--n-handle-box-shadow":pt,"--n-handle-box-shadow-active":Le,"--n-handle-box-shadow-focus":ot,"--n-handle-box-shadow-hover":Qe,"--n-handle-color":Ge,"--n-handle-size":je,"--n-opacity-disabled":et,"--n-rail-color":Q,"--n-rail-color-hover":de,"--n-rail-height":ze,"--n-rail-width-vertical":He,"--n-mark-font-size":ae}}),oe=n?gt("slider",void 0,he,e):void 0,ie=D(()=>{const{self:{fontSize:ae,indicatorColor:Q,indicatorBoxShadow:de,indicatorTextColor:ve,indicatorBorderRadius:Be}}=r.value;return{"--n-font-size":ae,"--n-indicator-border-radius":Be,"--n-indicator-box-shadow":de,"--n-indicator-color":Q,"--n-indicator-text-color":ve}}),ce=n?gt("slider-indicator",void 0,ie,e):void 0;return{mergedClsPrefix:t,namespace:o,uncontrolledValue:p,mergedValue:v,mergedDisabled:h,mergedPlacement:E,isMounted:Cr(),adjustedTo:$o(e),dotTransitionDisabled:z,markInfos:H,isShowTooltip:N,shouldKeepTooltipTransition:T,handleRailRef:i,setHandleRefs:l,setFollowerRefs:u,fillStyle:G,getHandleStyle:X,activeIndex:k,arrifiedValues:b,followerEnabledIndexSet:d,handleRailMouseDown:q,handleHandleFocus:ge,handleHandleBlur:we,handleHandleMouseEnter:le,handleHandleMouseLeave:re,handleRailKeyDown:Ce,indicatorCssVars:n?void 0:ie,indicatorThemeClass:ce==null?void 0:ce.themeClass,indicatorOnRender:ce==null?void 0:ce.onRender,cssVars:n?void 0:he,themeClass:oe==null?void 0:oe.themeClass,onRender:oe==null?void 0:oe.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:o,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-slider`,o,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},m("div",{class:`${t}-slider-rail`},m("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?m("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(r=>m("div",{key:r.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:r.active}],style:r.style}))):null,m("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((r,i)=>{const a=this.isShowTooltip(i);return m(_s,null,{default:()=>[m(Ms,null,{default:()=>m("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":r,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(r,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},wo(this.$slots.thumb,()=>[m("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&m(Rs,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===$o.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>m(mo,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),m("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(r):r)):null}})})]})})),this.marks?m("div",{class:`${t}-slider-marks`},this.markInfos.map(r=>m("div",{key:r.key,class:`${t}-slider-mark`,style:r.style},typeof r.label=="function"?r.label():r.label))):null))}}),rL=W([W("@keyframes spin-rotate",` from { transform: rotate(0); } to { transform: rotate(360deg); } - `),A("spin-container",` + `),B("spin-container",` position: relative; - `,[A("spin-body",` + `,[B("spin-body",` position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); - `,[Ts()])]),A("spin-body",` + `,[Ts()])]),B("spin-body",` display: inline-flex; align-items: center; justify-content: center; flex-direction: column; - `),A("spin",` + `),B("spin",` display: inline-flex; height: var(--n-size); width: var(--n-size); font-size: var(--n-size); color: var(--n-color); - `,[ee("rotate",` + `,[J("rotate",` animation: spin-rotate 2s linear infinite; - `)]),A("spin-description",` + `)]),B("spin-description",` display: inline-block; font-size: var(--n-font-size); color: var(--n-text-color); transition: color .3s var(--n-bezier); margin-top: 8px; - `),A("spin-content",` + `),B("spin-content",` opacity: 1; transition: opacity .3s var(--n-bezier); pointer-events: all; - `,[ee("spinning",` + `,[J("spinning",` user-select: none; -webkit-user-select: none; pointer-events: none; opacity: var(--n-opacity-spinning); - `)])]),iL={small:20,medium:18,large:16},aL=Object.assign(Object.assign({},Ie.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),lL=ye({name:"Spin",props:aL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Spin","-spin",rL,Vg,e,t),r=D(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:u},self:d}=n.value,{opacitySpinning:c,color:h,textColor:f}=d,p=typeof s=="number"?Ht(s):d[Ee("size",s)];return{"--n-bezier":u,"--n-opacity-spinning":c,"--n-size":p,"--n-color":h,"--n-text-color":f}}),i=o?gt("spin",D(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),r,e):void 0,a=ts(e,["spinning","show"]),l=$(!1);return Et(s=>{let u;if(a.value){const{delay:d}=e;if(d){u=window.setTimeout(()=>{l.value=!0},d),s(()=>{clearTimeout(u)});return}}l.value=a.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:D(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:u}=e;return iL[typeof u=="number"?"medium":u]}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:n,description:r}=this,i=o.icon&&this.rotate,a=(r||o.description)&&m("div",{class:`${n}-spin-description`},r||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?m("div",{class:[`${n}-spin-body`,this.themeClass]},m("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),a):m("div",{class:[`${n}-spin-body`,this.themeClass]},m(kr,{clsPrefix:n,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?m("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},m("div",{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),m(mo,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),sL={name:"Split",common:Ve};function uL(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const dL={name:"Split",common:We,self:uL},cL=A("statistic",[q("label",` + `)])]),iL={small:20,medium:18,large:16},aL=Object.assign(Object.assign({},Ie.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),lL=ye({name:"Spin",props:aL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Spin","-spin",rL,Vg,e,t),r=D(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:u},self:d}=n.value,{opacitySpinning:c,color:h,textColor:f}=d,p=typeof s=="number"?Ht(s):d[Ee("size",s)];return{"--n-bezier":u,"--n-opacity-spinning":c,"--n-size":p,"--n-color":h,"--n-text-color":f}}),i=o?gt("spin",D(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),r,e):void 0,a=ts(e,["spinning","show"]),l=$(!1);return Et(s=>{let u;if(a.value){const{delay:d}=e;if(d){u=window.setTimeout(()=>{l.value=!0},d),s(()=>{clearTimeout(u)});return}}l.value=a.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:D(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:u}=e;return iL[typeof u=="number"?"medium":u]}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:n,description:r}=this,i=o.icon&&this.rotate,a=(r||o.description)&&m("div",{class:`${n}-spin-description`},r||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?m("div",{class:[`${n}-spin-body`,this.themeClass]},m("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),a):m("div",{class:[`${n}-spin-body`,this.themeClass]},m(kr,{clsPrefix:n,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?m("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},m("div",{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),m(mo,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),sL={name:"Split",common:Ve};function uL(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const dL={name:"Split",common:We,self:uL},cL=B("statistic",[Y("label",` font-weight: var(--n-label-font-weight); transition: .3s color var(--n-bezier); font-size: var(--n-label-font-size); color: var(--n-label-text-color); - `),A("statistic-value",` + `),B("statistic-value",` margin-top: 4px; font-weight: var(--n-value-font-weight); - `,[q("prefix",` + `,[Y("prefix",` margin: 0 4px 0 0; font-size: var(--n-value-font-size); transition: .3s color var(--n-bezier); color: var(--n-value-prefix-text-color); - `,[A("icon",{verticalAlign:"-0.125em"})]),q("content",` + `,[B("icon",{verticalAlign:"-0.125em"})]),Y("content",` font-size: var(--n-value-font-size); transition: .3s color var(--n-bezier); color: var(--n-value-text-color); - `),q("suffix",` + `),Y("suffix",` margin: 0 0 0 4px; font-size: var(--n-value-font-size); transition: .3s color var(--n-bezier); color: var(--n-value-suffix-text-color); - `,[A("icon",{verticalAlign:"-0.125em"})])])]),fL=Object.assign(Object.assign({},Ie.props),{tabularNums:Boolean,label:String,value:[String,Number]}),hL=ye({name:"Statistic",props:fL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Ie("Statistic","-statistic",cL,jg,e,t),i=Vt("Statistic",n,t),a=D(()=>{const{self:{labelFontWeight:s,valueFontSize:u,valueFontWeight:d,valuePrefixTextColor:c,labelTextColor:h,valueSuffixTextColor:f,valueTextColor:p,labelFontSize:g},common:{cubicBezierEaseInOut:v}}=r.value;return{"--n-bezier":v,"--n-label-font-size":g,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":u,"--n-value-prefix-text-color":c,"--n-value-suffix-text-color":f,"--n-value-text-color":p}}),l=o?gt("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:o,label:n,prefix:r,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},bt(n,a=>m("div",{class:`${t}-statistic__label`},this.label||a)),m("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},bt(r,a=>a&&m("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?m("span",{class:`${t}-statistic-value__content`},this.value):bt(o,a=>a&&m("span",{class:`${t}-statistic-value__content`},a)),bt(i,a=>a&&m("span",{class:`${t}-statistic-value__suffix`},a))))}}),pL=A("switch",` + `,[B("icon",{verticalAlign:"-0.125em"})])])]),fL=Object.assign(Object.assign({},Ie.props),{tabularNums:Boolean,label:String,value:[String,Number]}),hL=ye({name:"Statistic",props:fL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Ie("Statistic","-statistic",cL,jg,e,t),i=Wt("Statistic",n,t),a=D(()=>{const{self:{labelFontWeight:s,valueFontSize:u,valueFontWeight:d,valuePrefixTextColor:c,labelTextColor:h,valueSuffixTextColor:f,valueTextColor:p,labelFontSize:g},common:{cubicBezierEaseInOut:v}}=r.value;return{"--n-bezier":v,"--n-label-font-size":g,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":u,"--n-value-prefix-text-color":c,"--n-value-suffix-text-color":f,"--n-value-text-color":p}}),l=o?gt("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:o,label:n,prefix:r,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},bt(n,a=>m("div",{class:`${t}-statistic__label`},this.label||a)),m("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},bt(r,a=>a&&m("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?m("span",{class:`${t}-statistic-value__content`},this.value):bt(o,a=>a&&m("span",{class:`${t}-statistic-value__content`},a)),bt(i,a=>a&&m("span",{class:`${t}-statistic-value__suffix`},a))))}}),pL=B("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; @@ -3590,20 +3590,20 @@ ${t} outline: none; justify-content: center; align-items: center; -`,[q("children-placeholder",` +`,[Y("children-placeholder",` height: var(--n-rail-height); display: flex; flex-direction: column; overflow: hidden; pointer-events: none; visibility: hidden; - `),q("rail-placeholder",` + `),Y("rail-placeholder",` display: flex; flex-wrap: none; - `),q("button-placeholder",` + `),Y("button-placeholder",` width: calc(1.75 * var(--n-rail-height)); height: var(--n-rail-height); - `),A("base-loading",` + `),B("base-loading",` position: absolute; top: 50%; left: 50%; @@ -3611,7 +3611,7 @@ ${t} font-size: calc(var(--n-button-width) - 4px); color: var(--n-loading-color); transition: color .3s var(--n-bezier); - `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),q("checked, unchecked",` + `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),Y("checked, unchecked",` transition: color .3s var(--n-bezier); color: var(--n-text-color); box-sizing: border-box; @@ -3622,16 +3622,16 @@ ${t} display: flex; align-items: center; line-height: 1; - `),q("checked",` + `),Y("checked",` right: 0; padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),q("unchecked",` + `),Y("unchecked",` left: 0; justify-content: flex-end; padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),W("&:focus",[q("rail",` + `),W("&:focus",[Y("rail",` box-shadow: var(--n-box-shadow-focus); - `)]),ee("round",[q("rail","border-radius: calc(var(--n-rail-height) / 2);",[q("button","border-radius: calc(var(--n-button-height) / 2);")])]),_t("disabled",[_t("icon",[ee("rubber-band",[ee("pressed",[q("rail",[q("button","max-width: var(--n-button-width-pressed);")])]),q("rail",[W("&:active",[q("button","max-width: var(--n-button-width-pressed);")])]),ee("active",[ee("pressed",[q("rail",[q("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),q("rail",[W("&:active",[q("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),ee("active",[q("rail",[q("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),q("rail",` + `)]),J("round",[Y("rail","border-radius: calc(var(--n-rail-height) / 2);",[Y("button","border-radius: calc(var(--n-button-height) / 2);")])]),_t("disabled",[_t("icon",[J("rubber-band",[J("pressed",[Y("rail",[Y("button","max-width: var(--n-button-width-pressed);")])]),Y("rail",[W("&:active",[Y("button","max-width: var(--n-button-width-pressed);")])]),J("active",[J("pressed",[Y("rail",[Y("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),Y("rail",[W("&:active",[Y("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),J("active",[Y("rail",[Y("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),Y("rail",` overflow: hidden; height: var(--n-rail-height); min-width: var(--n-rail-width); @@ -3643,7 +3643,7 @@ ${t} background .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-rail-color); - `,[q("button-icon",` + `,[Y("button-icon",` color: var(--n-icon-color); transition: color .3s var(--n-bezier); font-size: calc(var(--n-button-height) - 4px); @@ -3656,7 +3656,7 @@ ${t} justify-content: center; align-items: center; line-height: 1; - `,[en()]),q("button",` + `,[en()]),Y("button",` align-items: center; top: var(--n-offset); left: var(--n-offset); @@ -3676,12 +3676,12 @@ ${t} opacity .3s var(--n-bezier), max-width .3s var(--n-bezier), box-shadow .3s var(--n-bezier); - `)]),ee("active",[q("rail","background-color: var(--n-rail-color-active);")]),ee("loading",[q("rail",` + `)]),J("active",[Y("rail","background-color: var(--n-rail-color-active);")]),J("loading",[Y("rail",` cursor: wait; - `)]),ee("disabled",[q("rail",` + `)]),J("disabled",[Y("rail",` cursor: not-allowed; opacity: .5; - `)])]),mL=Object.assign(Object.assign({},Ie.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let hl;const gL=ye({name:"Switch",props:mL,setup(e){hl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?hl=CSS.supports("width","max(1px)"):hl=!1:hl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Switch","-switch",pL,Gg,e,t),r=Bn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,l=$(e.defaultValue),s=Ae(e,"value"),u=to(s,l),d=D(()=>u.value===e.checkedValue),c=$(!1),h=$(!1),f=D(()=>{const{railStyle:P}=e;if(P)return P({focused:h.value,checked:d.value})});function p(P){const{"onUpdate:value":z,onChange:B,onUpdateValue:j}=e,{nTriggerFormInput:V,nTriggerFormChange:K}=r;z&&Re(z,P),j&&Re(j,P),B&&Re(B,P),l.value=P,V(),K()}function g(){const{nTriggerFormFocus:P}=r;P()}function v(){const{nTriggerFormBlur:P}=r;P()}function b(){e.loading||a.value||(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function x(){h.value=!0,g()}function E(){h.value=!1,v(),c.value=!1}function C(P){e.loading||a.value||P.key===" "&&(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),c.value=!1)}function k(P){e.loading||a.value||P.key===" "&&(P.preventDefault(),c.value=!0)}const _=D(()=>{const{value:P}=i,{self:{opacityDisabled:z,railColor:B,railColorActive:j,buttonBoxShadow:V,buttonColor:K,boxShadowFocus:N,loadingColor:T,textColor:L,iconColor:R,[Ee("buttonHeight",P)]:I,[Ee("buttonWidth",P)]:w,[Ee("buttonWidthPressed",P)]:Q,[Ee("railHeight",P)]:U,[Ee("railWidth",P)]:X,[Ee("railBorderRadius",P)]:re,[Ee("buttonBorderRadius",P)]:he},common:{cubicBezierEaseInOut:Se}}=n.value;let pe,fe,we;return hl?(pe=`calc((${U} - ${I}) / 2)`,fe=`max(${U}, ${I})`,we=`max(${X}, calc(${X} + ${I} - ${U}))`):(pe=Ht((so(U)-so(I))/2),fe=Ht(Math.max(so(U),so(I))),we=so(U)>so(I)?X:Ht(so(X)+so(I)-so(U))),{"--n-bezier":Se,"--n-button-border-radius":he,"--n-button-box-shadow":V,"--n-button-color":K,"--n-button-width":w,"--n-button-width-pressed":Q,"--n-button-height":I,"--n-height":fe,"--n-offset":pe,"--n-opacity-disabled":z,"--n-rail-border-radius":re,"--n-rail-color":B,"--n-rail-color-active":j,"--n-rail-height":U,"--n-rail-width":X,"--n-width":we,"--n-box-shadow-focus":N,"--n-loading-color":T,"--n-text-color":L,"--n-icon-color":R}}),F=o?gt("switch",D(()=>i.value[0]),_,e):void 0;return{handleClick:b,handleBlur:E,handleFocus:x,handleKeyup:C,handleKeydown:k,mergedRailStyle:f,pressed:c,mergedClsPrefix:t,mergedValue:u,checked:d,mergedDisabled:a,cssVars:o?void 0:_,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:n,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:l,icon:s,"checked-icon":u,"unchecked-icon":d}=i,c=!(Ai(s)&&Ai(u)&&Ai(d));return m("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,c&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},m("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:n},bt(a,h=>bt(l,f=>h||f?m("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),h),m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),f)):null)),m("div",{class:`${e}-switch__button`},bt(s,h=>bt(u,f=>bt(d,p=>m(Qi,null,{default:()=>this.loading?m(kr,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(f||h)?m("div",{class:`${e}-switch__button-icon`,key:f?"checked-icon":"icon"},f||h):!this.checked&&(p||h)?m("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),bt(a,h=>h&&m("div",{key:"checked",class:`${e}-switch__checked`},h)),bt(l,h=>h&&m("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),vL=W([A("table",` + `)])]),mL=Object.assign(Object.assign({},Ie.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let hl;const gL=ye({name:"Switch",props:mL,setup(e){hl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?hl=CSS.supports("width","max(1px)"):hl=!1:hl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=rt(e),n=Ie("Switch","-switch",pL,Gg,e,t),r=Bn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,l=$(e.defaultValue),s=Ae(e,"value"),u=oo(s,l),d=D(()=>u.value===e.checkedValue),c=$(!1),h=$(!1),f=D(()=>{const{railStyle:P}=e;if(P)return P({focused:h.value,checked:d.value})});function p(P){const{"onUpdate:value":z,onChange:A,onUpdateValue:G}=e,{nTriggerFormInput:H,nTriggerFormChange:X}=r;z&&Re(z,P),G&&Re(G,P),A&&Re(A,P),l.value=P,H(),X()}function g(){const{nTriggerFormFocus:P}=r;P()}function v(){const{nTriggerFormBlur:P}=r;P()}function b(){e.loading||a.value||(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function x(){h.value=!0,g()}function E(){h.value=!1,v(),c.value=!1}function w(P){e.loading||a.value||P.key===" "&&(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),c.value=!1)}function k(P){e.loading||a.value||P.key===" "&&(P.preventDefault(),c.value=!0)}const _=D(()=>{const{value:P}=i,{self:{opacityDisabled:z,railColor:A,railColorActive:G,buttonBoxShadow:H,buttonColor:X,boxShadowFocus:N,loadingColor:T,textColor:O,iconColor:R,[Ee("buttonHeight",P)]:L,[Ee("buttonWidth",P)]:ne,[Ee("buttonWidthPressed",P)]:y,[Ee("railHeight",P)]:K,[Ee("railWidth",P)]:U,[Ee("railBorderRadius",P)]:ue,[Ee("buttonBorderRadius",P)]:se},common:{cubicBezierEaseInOut:Fe}}=n.value;let pe,fe,Ce;return hl?(pe=`calc((${K} - ${L}) / 2)`,fe=`max(${K}, ${L})`,Ce=`max(${U}, calc(${U} + ${L} - ${K}))`):(pe=Ht((so(K)-so(L))/2),fe=Ht(Math.max(so(K),so(L))),Ce=so(K)>so(L)?U:Ht(so(U)+so(L)-so(K))),{"--n-bezier":Fe,"--n-button-border-radius":se,"--n-button-box-shadow":H,"--n-button-color":X,"--n-button-width":ne,"--n-button-width-pressed":y,"--n-button-height":L,"--n-height":fe,"--n-offset":pe,"--n-opacity-disabled":z,"--n-rail-border-radius":ue,"--n-rail-color":A,"--n-rail-color-active":G,"--n-rail-height":K,"--n-rail-width":U,"--n-width":Ce,"--n-box-shadow-focus":N,"--n-loading-color":T,"--n-text-color":O,"--n-icon-color":R}}),F=o?gt("switch",D(()=>i.value[0]),_,e):void 0;return{handleClick:b,handleBlur:E,handleFocus:x,handleKeyup:w,handleKeydown:k,mergedRailStyle:f,pressed:c,mergedClsPrefix:t,mergedValue:u,checked:d,mergedDisabled:a,cssVars:o?void 0:_,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:n,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:l,icon:s,"checked-icon":u,"unchecked-icon":d}=i,c=!(Ai(s)&&Ai(u)&&Ai(d));return m("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,c&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},m("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:n},bt(a,h=>bt(l,f=>h||f?m("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),h),m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),f)):null)),m("div",{class:`${e}-switch__button`},bt(s,h=>bt(u,f=>bt(d,p=>m(Qi,null,{default:()=>this.loading?m(kr,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(f||h)?m("div",{class:`${e}-switch__button-icon`,key:f?"checked-icon":"icon"},f||h):!this.checked&&(p||h)?m("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),bt(a,h=>h&&m("div",{key:"checked",class:`${e}-switch__checked`},h)),bt(l,h=>h&&m("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),vL=W([B("table",` font-size: var(--n-font-size); font-variant-numeric: tabular-nums; line-height: var(--n-line-height); @@ -3729,34 +3729,34 @@ ${t} border-bottom: 1px solid var(--n-merged-border-color); `,[W("&:last-child",` border-right: 0px solid var(--n-merged-border-color); - `)]),ee("bordered",` + `)]),J("bordered",` border: 1px solid var(--n-merged-border-color); border-radius: var(--n-border-radius); `,[W("tr",[W("&:last-child",[W("td",` border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),ee("single-line",[W("th",` + `)])])]),J("single-line",[W("th",` border-right: 0px solid var(--n-merged-border-color); `),W("td",` border-right: 0px solid var(--n-merged-border-color); - `)]),ee("single-column",[W("tr",[W("&:not(:last-child)",[W("td",` + `)]),J("single-column",[W("tr",[W("&:not(:last-child)",[W("td",` border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),ee("striped",[W("tr:nth-of-type(even)",[W("td","background-color: var(--n-td-color-striped)")])]),_t("bottom-bordered",[W("tr",[W("&:last-child",[W("td",` + `)])])]),J("striped",[W("tr:nth-of-type(even)",[W("td","background-color: var(--n-td-color-striped)")])]),_t("bottom-bordered",[W("tr",[W("&:last-child",[W("td",` border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),qi(A("table",` + `)])])])]),qi(B("table",` background-color: var(--n-td-color-modal); --n-merged-border-color: var(--n-border-color-modal); `,[W("th",` background-color: var(--n-th-color-modal); `),W("td",` background-color: var(--n-td-color-modal); - `)])),Ha(A("table",` + `)])),Ha(B("table",` background-color: var(--n-td-color-popover); --n-merged-border-color: var(--n-border-color-popover); `,[W("th",` background-color: var(--n-th-color-popover); `),W("td",` background-color: var(--n-td-color-popover); - `)]))]),bL=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),xL=ye({name:"Table",props:bL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Ie("Table","-table",vL,Zg,e,t),i=Vt("Table",n,t),a=D(()=>{const{size:s}=e,{self:{borderColor:u,tdColor:d,tdColorModal:c,tdColorPopover:h,thColor:f,thColorModal:p,thColorPopover:g,thTextColor:v,tdTextColor:b,borderRadius:x,thFontWeight:E,lineHeight:C,borderColorModal:k,borderColorPopover:_,tdColorStriped:F,tdColorStripedModal:P,tdColorStripedPopover:z,[Ee("fontSize",s)]:B,[Ee("tdPadding",s)]:j,[Ee("thPadding",s)]:V},common:{cubicBezierEaseInOut:K}}=r.value;return{"--n-bezier":K,"--n-td-color":d,"--n-td-color-modal":c,"--n-td-color-popover":h,"--n-td-text-color":b,"--n-border-color":u,"--n-border-color-modal":k,"--n-border-color-popover":_,"--n-border-radius":x,"--n-font-size":B,"--n-th-color":f,"--n-th-color-modal":p,"--n-th-color-popover":g,"--n-th-font-weight":E,"--n-th-text-color":v,"--n-line-height":C,"--n-td-padding":j,"--n-th-padding":V,"--n-td-color-striped":F,"--n-td-color-striped-modal":P,"--n-td-color-striped-popover":z}}),l=o?gt("table",D(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),a6="n-tabs",Cv={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},yL=ye({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Cv,setup(e){const t=Oe(a6,null);return t||yr("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return m("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),CL=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Gi(Cv,["displayDirective"])),rd=ye({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:CL,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:s,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:c,handleAdd:h,activateTab:f,handleClose:p}=Oe(a6);return{trigger:c,mergedClosable:D(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?r.value:g}),style:i,addStyle:a,tabClass:l,addTabClass:s,clsPrefix:t,value:o,type:n,handleClose(g){g.stopPropagation(),!e.disabled&&p(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){h();return}const{name:g}=e,v=++u.id;if(g!==o.value){const{value:b}=d;b?Promise.resolve(b(e.name,o.value)).then(x=>{x&&u.id===v&&f(g)}):f(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:l,trigger:s,$slots:{default:u}}=this,d=r??i;return m("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?m("div",{class:`${t}-tabs-tab-pad`}):null,m("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},po({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:s==="click"?this.activateTab:void 0,onMouseenter:s==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),m("span",{class:`${t}-tabs-tab__label`},e?m(ft,null,m("div",{class:`${t}-tabs-tab__height-placeholder`}," "),m(Kt,{clsPrefix:t},{default:()=>m(s7,null)})):u?u():typeof d=="object"?d:Jt(d??o)),l&&this.type==="card"?m(li,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),wL=A("tabs",` + `)]))]),bL=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),xL=ye({name:"Table",props:bL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=rt(e),r=Ie("Table","-table",vL,Zg,e,t),i=Wt("Table",n,t),a=D(()=>{const{size:s}=e,{self:{borderColor:u,tdColor:d,tdColorModal:c,tdColorPopover:h,thColor:f,thColorModal:p,thColorPopover:g,thTextColor:v,tdTextColor:b,borderRadius:x,thFontWeight:E,lineHeight:w,borderColorModal:k,borderColorPopover:_,tdColorStriped:F,tdColorStripedModal:P,tdColorStripedPopover:z,[Ee("fontSize",s)]:A,[Ee("tdPadding",s)]:G,[Ee("thPadding",s)]:H},common:{cubicBezierEaseInOut:X}}=r.value;return{"--n-bezier":X,"--n-td-color":d,"--n-td-color-modal":c,"--n-td-color-popover":h,"--n-td-text-color":b,"--n-border-color":u,"--n-border-color-modal":k,"--n-border-color-popover":_,"--n-border-radius":x,"--n-font-size":A,"--n-th-color":f,"--n-th-color-modal":p,"--n-th-color-popover":g,"--n-th-font-weight":E,"--n-th-text-color":v,"--n-line-height":w,"--n-td-padding":G,"--n-th-padding":H,"--n-td-color-striped":F,"--n-td-color-striped-modal":P,"--n-td-color-striped-popover":z}}),l=o?gt("table",D(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),a6="n-tabs",Cv={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},yL=ye({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Cv,setup(e){const t=Oe(a6,null);return t||yr("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return m("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),CL=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Gi(Cv,["displayDirective"])),rd=ye({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:CL,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:s,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:c,handleAdd:h,activateTab:f,handleClose:p}=Oe(a6);return{trigger:c,mergedClosable:D(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?r.value:g}),style:i,addStyle:a,tabClass:l,addTabClass:s,clsPrefix:t,value:o,type:n,handleClose(g){g.stopPropagation(),!e.disabled&&p(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){h();return}const{name:g}=e,v=++u.id;if(g!==o.value){const{value:b}=d;b?Promise.resolve(b(e.name,o.value)).then(x=>{x&&u.id===v&&f(g)}):f(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:l,trigger:s,$slots:{default:u}}=this,d=r??i;return m("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?m("div",{class:`${t}-tabs-tab-pad`}):null,m("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},po({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:s==="click"?this.activateTab:void 0,onMouseenter:s==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),m("span",{class:`${t}-tabs-tab__label`},e?m(ft,null,m("div",{class:`${t}-tabs-tab__height-placeholder`}," "),m(Gt,{clsPrefix:t},{default:()=>m(s7,null)})):u?u():typeof d=="object"?d:Jt(d??o)),l&&this.type==="card"?m(li,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),wL=B("tabs",` box-sizing: border-box; width: 100%; display: flex; @@ -3764,37 +3764,37 @@ ${t} transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); -`,[ee("segment-type",[A("tabs-rail",[W("&.transition-disabled",[A("tabs-capsule",` +`,[J("segment-type",[B("tabs-rail",[W("&.transition-disabled",[B("tabs-capsule",` transition: none; - `)])])]),ee("top",[A("tab-pane",` + `)])])]),J("top",[B("tab-pane",` padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); - `)]),ee("left",[A("tab-pane",` + `)]),J("left",[B("tab-pane",` padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); - `)]),ee("left, right",` + `)]),J("left, right",` flex-direction: row; - `,[A("tabs-bar",` + `,[B("tabs-bar",` width: 2px; right: 0; transition: top .2s var(--n-bezier), max-height .2s var(--n-bezier), background-color .3s var(--n-bezier); - `),A("tabs-tab",` + `),B("tabs-tab",` padding: var(--n-tab-padding-vertical); - `)]),ee("right",` + `)]),J("right",` flex-direction: row-reverse; - `,[A("tab-pane",` + `,[B("tab-pane",` padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); - `),A("tabs-bar",` + `),B("tabs-bar",` left: 0; - `)]),ee("bottom",` + `)]),J("bottom",` flex-direction: column-reverse; justify-content: flex-end; - `,[A("tab-pane",` + `,[B("tab-pane",` padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); - `),A("tabs-bar",` + `),B("tabs-bar",` top: 0; - `)]),A("tabs-rail",` + `)]),B("tabs-rail",` position: relative; padding: 3px; border-radius: var(--n-tab-border-radius); @@ -3803,47 +3803,47 @@ ${t} transition: background-color .3s var(--n-bezier); display: flex; align-items: center; - `,[A("tabs-capsule",` + `,[B("tabs-capsule",` border-radius: var(--n-tab-border-radius); position: absolute; pointer-events: none; background-color: var(--n-tab-color-segment); box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); transition: transform 0.3s var(--n-bezier); - `),A("tabs-tab-wrapper",` + `),B("tabs-tab-wrapper",` flex-basis: 0; flex-grow: 1; display: flex; align-items: center; justify-content: center; - `,[A("tabs-tab",` + `,[B("tabs-tab",` overflow: hidden; border-radius: var(--n-tab-border-radius); width: 100%; display: flex; align-items: center; justify-content: center; - `,[ee("active",` + `,[J("active",` font-weight: var(--n-font-weight-strong); color: var(--n-tab-text-color-active); `),W("&:hover",` color: var(--n-tab-text-color-hover); - `)])])]),ee("flex",[A("tabs-nav",` + `)])])]),J("flex",[B("tabs-nav",` width: 100%; position: relative; - `,[A("tabs-wrapper",` + `,[B("tabs-wrapper",` width: 100%; - `,[A("tabs-tab",` + `,[B("tabs-tab",` margin-right: 0; - `)])])]),A("tabs-nav",` + `)])])]),B("tabs-nav",` box-sizing: border-box; line-height: 1.5; display: flex; transition: border-color .3s var(--n-bezier); - `,[q("prefix, suffix",` + `,[Y("prefix, suffix",` display: flex; align-items: center; - `),q("prefix","padding-right: 16px;"),q("suffix","padding-left: 16px;")]),ee("top, bottom",[A("tabs-nav-scroll-wrapper",[W("&::before",` + `),Y("prefix","padding-right: 16px;"),Y("suffix","padding-left: 16px;")]),J("top, bottom",[B("tabs-nav-scroll-wrapper",[W("&::before",` top: 0; bottom: 0; left: 0; @@ -3853,13 +3853,13 @@ ${t} bottom: 0; right: 0; width: 20px; - `),ee("shadow-start",[W("&::before",` + `),J("shadow-start",[W("&::before",` box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),ee("shadow-end",[W("&::after",` + `)]),J("shadow-end",[W("&::after",` box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)])])]),ee("left, right",[A("tabs-nav-scroll-content",` + `)])])]),J("left, right",[B("tabs-nav-scroll-content",` flex-direction: column; - `),A("tabs-nav-scroll-wrapper",[W("&::before",` + `),B("tabs-nav-scroll-wrapper",[W("&::before",` top: 0; left: 0; right: 0; @@ -3869,15 +3869,15 @@ ${t} left: 0; right: 0; height: 20px; - `),ee("shadow-start",[W("&::before",` + `),J("shadow-start",[W("&::before",` box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); - `)]),ee("shadow-end",[W("&::after",` + `)]),J("shadow-end",[W("&::after",` box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); - `)])])]),A("tabs-nav-scroll-wrapper",` + `)])])]),B("tabs-nav-scroll-wrapper",` flex: 1; position: relative; overflow: hidden; - `,[A("tabs-nav-y-scroll",` + `,[B("tabs-nav-y-scroll",` height: 100%; width: 100%; overflow-y: auto; @@ -3891,23 +3891,23 @@ ${t} content: ""; position: absolute; z-index: 1; - `)]),A("tabs-nav-scroll-content",` + `)]),B("tabs-nav-scroll-content",` display: flex; position: relative; min-width: 100%; min-height: 100%; width: fit-content; box-sizing: border-box; - `),A("tabs-wrapper",` + `),B("tabs-wrapper",` display: inline-flex; flex-wrap: nowrap; position: relative; - `),A("tabs-tab-wrapper",` + `),B("tabs-tab-wrapper",` display: flex; flex-wrap: nowrap; flex-shrink: 0; flex-grow: 0; - `),A("tabs-tab",` + `),B("tabs-tab",` cursor: pointer; white-space: nowrap; flex-wrap: nowrap; @@ -3922,16 +3922,16 @@ ${t} color .3s var(--n-bezier), background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[ee("disabled",{cursor:"not-allowed"}),q("close",` + `,[J("disabled",{cursor:"not-allowed"}),Y("close",` margin-left: 6px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `),q("label",` + `),Y("label",` display: flex; align-items: center; z-index: 1; - `)]),A("tabs-bar",` + `)]),B("tabs-bar",` position: absolute; bottom: 0; height: 2px; @@ -3944,13 +3944,13 @@ ${t} background-color .3s var(--n-bezier); `,[W("&.transition-disabled",` transition: none; - `),ee("disabled",` + `),J("disabled",` background-color: var(--n-tab-text-color-disabled) - `)]),A("tabs-pane-wrapper",` + `)]),B("tabs-pane-wrapper",` position: relative; overflow: hidden; transition: max-height .2s var(--n-bezier); - `),A("tab-pane",` + `),B("tab-pane",` color: var(--n-pane-text-color); width: 100%; transition: @@ -3977,56 +3977,56 @@ ${t} `),W("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` transform: translateX(0); opacity: 1; - `)]),A("tabs-tab-pad",` + `)]),B("tabs-tab-pad",` box-sizing: border-box; width: var(--n-tab-gap); flex-grow: 0; flex-shrink: 0; - `),ee("line-type, bar-type",[A("tabs-tab",` + `),J("line-type, bar-type",[B("tabs-tab",` font-weight: var(--n-tab-font-weight); box-sizing: border-box; vertical-align: bottom; - `,[W("&:hover",{color:"var(--n-tab-text-color-hover)"}),ee("active",` + `,[W("&:hover",{color:"var(--n-tab-text-color-hover)"}),J("active",` color: var(--n-tab-text-color-active); font-weight: var(--n-tab-font-weight-active); - `),ee("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),A("tabs-nav",[ee("line-type",[ee("top",[q("prefix, suffix",` + `),J("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),B("tabs-nav",[J("line-type",[J("top",[Y("prefix, suffix",` border-bottom: 1px solid var(--n-tab-border-color); - `),A("tabs-nav-scroll-content",` + `),B("tabs-nav-scroll-content",` border-bottom: 1px solid var(--n-tab-border-color); - `),A("tabs-bar",` + `),B("tabs-bar",` bottom: -1px; - `)]),ee("left",[q("prefix, suffix",` + `)]),J("left",[Y("prefix, suffix",` border-right: 1px solid var(--n-tab-border-color); - `),A("tabs-nav-scroll-content",` + `),B("tabs-nav-scroll-content",` border-right: 1px solid var(--n-tab-border-color); - `),A("tabs-bar",` + `),B("tabs-bar",` right: -1px; - `)]),ee("right",[q("prefix, suffix",` + `)]),J("right",[Y("prefix, suffix",` border-left: 1px solid var(--n-tab-border-color); - `),A("tabs-nav-scroll-content",` + `),B("tabs-nav-scroll-content",` border-left: 1px solid var(--n-tab-border-color); - `),A("tabs-bar",` + `),B("tabs-bar",` left: -1px; - `)]),ee("bottom",[q("prefix, suffix",` + `)]),J("bottom",[Y("prefix, suffix",` border-top: 1px solid var(--n-tab-border-color); - `),A("tabs-nav-scroll-content",` + `),B("tabs-nav-scroll-content",` border-top: 1px solid var(--n-tab-border-color); - `),A("tabs-bar",` + `),B("tabs-bar",` top: -1px; - `)]),q("prefix, suffix",` + `)]),Y("prefix, suffix",` transition: border-color .3s var(--n-bezier); - `),A("tabs-nav-scroll-content",` + `),B("tabs-nav-scroll-content",` transition: border-color .3s var(--n-bezier); - `),A("tabs-bar",` + `),B("tabs-bar",` border-radius: 0; - `)]),ee("card-type",[q("prefix, suffix",` + `)]),J("card-type",[Y("prefix, suffix",` transition: border-color .3s var(--n-bezier); - `),A("tabs-pad",` + `),B("tabs-pad",` flex-grow: 1; transition: border-color .3s var(--n-bezier); - `),A("tabs-tab-pad",` + `),B("tabs-tab-pad",` transition: border-color .3s var(--n-bezier); - `),A("tabs-tab",` + `),B("tabs-tab",` font-weight: var(--n-tab-font-weight); border: 1px solid var(--n-tab-border-color); background-color: var(--n-tab-color); @@ -4037,90 +4037,90 @@ ${t} justify-content: space-between; font-size: var(--n-tab-font-size); color: var(--n-tab-text-color); - `,[ee("addable",` + `,[J("addable",` padding-left: 8px; padding-right: 8px; font-size: 16px; justify-content: center; - `,[q("height-placeholder",` + `,[Y("height-placeholder",` width: 0; font-size: var(--n-tab-font-size); `),_t("disabled",[W("&:hover",` color: var(--n-tab-text-color-hover); - `)])]),ee("closable","padding-right: 8px;"),ee("active",` + `)])]),J("closable","padding-right: 8px;"),J("active",` background-color: #0000; font-weight: var(--n-tab-font-weight-active); color: var(--n-tab-text-color-active); - `),ee("disabled","color: var(--n-tab-text-color-disabled);")])]),ee("left, right",` + `),J("disabled","color: var(--n-tab-text-color-disabled);")])]),J("left, right",` flex-direction: column; - `,[q("prefix, suffix",` + `,[Y("prefix, suffix",` padding: var(--n-tab-padding-vertical); - `),A("tabs-wrapper",` + `),B("tabs-wrapper",` flex-direction: column; - `),A("tabs-tab-wrapper",` + `),B("tabs-tab-wrapper",` flex-direction: column; - `,[A("tabs-tab-pad",` + `,[B("tabs-tab-pad",` height: var(--n-tab-gap-vertical); width: 100%; - `)])]),ee("top",[ee("card-type",[A("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),q("prefix, suffix",` + `)])]),J("top",[J("card-type",[B("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),Y("prefix, suffix",` border-bottom: 1px solid var(--n-tab-border-color); - `),A("tabs-tab",` + `),B("tabs-tab",` border-top-left-radius: var(--n-tab-border-radius); border-top-right-radius: var(--n-tab-border-radius); - `,[ee("active",` + `,[J("active",` border-bottom: 1px solid #0000; - `)]),A("tabs-tab-pad",` + `)]),B("tabs-tab-pad",` border-bottom: 1px solid var(--n-tab-border-color); - `),A("tabs-pad",` + `),B("tabs-pad",` border-bottom: 1px solid var(--n-tab-border-color); - `)])]),ee("left",[ee("card-type",[A("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),q("prefix, suffix",` + `)])]),J("left",[J("card-type",[B("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),Y("prefix, suffix",` border-right: 1px solid var(--n-tab-border-color); - `),A("tabs-tab",` + `),B("tabs-tab",` border-top-left-radius: var(--n-tab-border-radius); border-bottom-left-radius: var(--n-tab-border-radius); - `,[ee("active",` + `,[J("active",` border-right: 1px solid #0000; - `)]),A("tabs-tab-pad",` + `)]),B("tabs-tab-pad",` border-right: 1px solid var(--n-tab-border-color); - `),A("tabs-pad",` + `),B("tabs-pad",` border-right: 1px solid var(--n-tab-border-color); - `)])]),ee("right",[ee("card-type",[A("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),q("prefix, suffix",` + `)])]),J("right",[J("card-type",[B("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),Y("prefix, suffix",` border-left: 1px solid var(--n-tab-border-color); - `),A("tabs-tab",` + `),B("tabs-tab",` border-top-right-radius: var(--n-tab-border-radius); border-bottom-right-radius: var(--n-tab-border-radius); - `,[ee("active",` + `,[J("active",` border-left: 1px solid #0000; - `)]),A("tabs-tab-pad",` + `)]),B("tabs-tab-pad",` border-left: 1px solid var(--n-tab-border-color); - `),A("tabs-pad",` + `),B("tabs-pad",` border-left: 1px solid var(--n-tab-border-color); - `)])]),ee("bottom",[ee("card-type",[A("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),q("prefix, suffix",` + `)])]),J("bottom",[J("card-type",[B("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),Y("prefix, suffix",` border-top: 1px solid var(--n-tab-border-color); - `),A("tabs-tab",` + `),B("tabs-tab",` border-bottom-left-radius: var(--n-tab-border-radius); border-bottom-right-radius: var(--n-tab-border-radius); - `,[ee("active",` + `,[J("active",` border-top: 1px solid #0000; - `)]),A("tabs-tab-pad",` + `)]),B("tabs-tab-pad",` border-top: 1px solid var(--n-tab-border-color); - `),A("tabs-pad",` + `),B("tabs-pad",` border-top: 1px solid var(--n-tab-border-color); - `)])])])]),SL=Object.assign(Object.assign({},Ie.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),FL=ye({name:"Tabs",props:SL,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=rt(e),s=Ie("Tabs","-tabs",wL,Yg,e,a),u=$(null),d=$(null),c=$(null),h=$(null),f=$(null),p=$(null),g=$(!0),v=$(!0),b=ts(e,["labelSize","size"]),x=ts(e,["activeName","value"]),E=$((n=(o=x.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=vr(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),C=to(x,E),k={id:0},_=D(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});lt(C,()=>{k.id=0,j(),V()});function F(){var ne;const{value:ae}=C;return ae===null?null:(ne=u.value)===null||ne===void 0?void 0:ne.querySelector(`[data-name="${ae}"]`)}function P(ne){if(e.type==="card")return;const{value:ae}=d;if(!ae)return;const de=ae.style.opacity==="0";if(ne){const le=`${a.value}-tabs-bar--disabled`,{barWidth:Y,placement:ue}=e;if(ne.dataset.disabled==="true"?ae.classList.add(le):ae.classList.remove(le),["top","bottom"].includes(ue)){if(B(["top","maxHeight","height"]),typeof Y=="number"&&ne.offsetWidth>=Y){const ve=Math.floor((ne.offsetWidth-Y)/2)+ne.offsetLeft;ae.style.left=`${ve}px`,ae.style.maxWidth=`${Y}px`}else ae.style.left=`${ne.offsetLeft}px`,ae.style.maxWidth=`${ne.offsetWidth}px`;ae.style.width="8192px",de&&(ae.style.transition="none"),ae.offsetWidth,de&&(ae.style.transition="",ae.style.opacity="1")}else{if(B(["left","maxWidth","width"]),typeof Y=="number"&&ne.offsetHeight>=Y){const ve=Math.floor((ne.offsetHeight-Y)/2)+ne.offsetTop;ae.style.top=`${ve}px`,ae.style.maxHeight=`${Y}px`}else ae.style.top=`${ne.offsetTop}px`,ae.style.maxHeight=`${ne.offsetHeight}px`;ae.style.height="8192px",de&&(ae.style.transition="none"),ae.offsetHeight,de&&(ae.style.transition="",ae.style.opacity="1")}}}function z(){if(e.type==="card")return;const{value:ne}=d;ne&&(ne.style.opacity="0")}function B(ne){const{value:ae}=d;if(ae)for(const de of ne)ae.style[de]=""}function j(){if(e.type==="card")return;const ne=F();ne?P(ne):z()}function V(){var ne;const ae=(ne=f.value)===null||ne===void 0?void 0:ne.$el;if(!ae)return;const de=F();if(!de)return;const{scrollLeft:le,offsetWidth:Y}=ae,{offsetLeft:ue,offsetWidth:ve}=de;le>ue?ae.scrollTo({top:0,left:ue,behavior:"smooth"}):ue+ve>le+Y&&ae.scrollTo({top:0,left:ue+ve-Y,behavior:"smooth"})}const K=$(null);let N=0,T=null;function L(ne){const ae=K.value;if(ae){N=ne.getBoundingClientRect().height;const de=`${N}px`,le=()=>{ae.style.height=de,ae.style.maxHeight=de};T?(le(),T(),T=null):T=le}}function R(ne){const ae=K.value;if(ae){const de=ne.getBoundingClientRect().height,le=()=>{document.body.offsetHeight,ae.style.maxHeight=`${de}px`,ae.style.height=`${Math.max(N,de)}px`};T?(T(),T=null,le()):T=le}}function I(){const ne=K.value;if(ne){ne.style.maxHeight="",ne.style.height="";const{paneWrapperStyle:ae}=e;if(typeof ae=="string")ne.style.cssText=ae;else if(ae){const{maxHeight:de,height:le}=ae;de!==void 0&&(ne.style.maxHeight=de),le!==void 0&&(ne.style.height=le)}}}const w={value:[]},Q=$("next");function U(ne){const ae=C.value;let de="next";for(const le of w.value){if(le===ae)break;if(le===ne){de="prev";break}}Q.value=de,X(ne)}function X(ne){const{onActiveNameChange:ae,onUpdateValue:de,"onUpdate:value":le}=e;ae&&Re(ae,ne),de&&Re(de,ne),le&&Re(le,ne),E.value=ne}function re(ne){const{onClose:ae}=e;ae&&Re(ae,ne)}function he(){const{value:ne}=d;if(!ne)return;const ae="transition-disabled";ne.classList.add(ae),j(),ne.classList.remove(ae)}const Se=$(null);function pe({transitionDisabled:ne}){const ae=u.value;if(!ae)return;ne&&ae.classList.add("transition-disabled");const de=F();de&&Se.value&&(Se.value.style.width=`${de.offsetWidth}px`,Se.value.style.height=`${de.offsetHeight}px`,Se.value.style.transform=`translateX(${de.offsetLeft-so(getComputedStyle(ae).paddingLeft)}px)`,ne&&Se.value.offsetWidth),ne&&ae.classList.remove("transition-disabled")}lt([C],()=>{e.type==="segment"&&Mt(()=>{pe({transitionDisabled:!1})})}),ut(()=>{e.type==="segment"&&pe({transitionDisabled:!0})});let fe=0;function we(ne){var ae;if(ne.contentRect.width===0&&ne.contentRect.height===0||fe===ne.contentRect.width)return;fe=ne.contentRect.width;const{type:de}=e;if((de==="line"||de==="bar")&&he(),de!=="segment"){const{placement:le}=e;oe((le==="top"||le==="bottom"?(ae=f.value)===null||ae===void 0?void 0:ae.$el:p.value)||null)}}const J=Bu(we,64);lt([()=>e.justifyContent,()=>e.size],()=>{Mt(()=>{const{type:ne}=e;(ne==="line"||ne==="bar")&&he()})});const G=$(!1);function Te(ne){var ae;const{target:de,contentRect:{width:le,height:Y}}=ne,ue=de.parentElement.parentElement.offsetWidth,ve=de.parentElement.parentElement.offsetHeight,{placement:Be}=e;if(!G.value)Be==="top"||Be==="bottom"?ueKe.$el.offsetWidth&&(G.value=!1):ve-Y>Ke.$el.offsetHeight&&(G.value=!1)}oe(((ae=f.value)===null||ae===void 0?void 0:ae.$el)||null)}const Ne=Bu(Te,64);function H(){const{onAdd:ne}=e;ne&&ne(),Mt(()=>{const ae=F(),{value:de}=f;!ae||!de||de.scrollTo({left:ae.offsetLeft,top:0,behavior:"smooth"})})}function oe(ne){if(!ne)return;const{placement:ae}=e;if(ae==="top"||ae==="bottom"){const{scrollLeft:de,scrollWidth:le,offsetWidth:Y}=ne;g.value=de<=0,v.value=de+Y>=le}else{const{scrollTop:de,scrollHeight:le,offsetHeight:Y}=ne;g.value=de<=0,v.value=de+Y>=le}}const ge=Bu(ne=>{oe(ne.target)},64);et(a6,{triggerRef:Ae(e,"trigger"),tabStyleRef:Ae(e,"tabStyle"),tabClassRef:Ae(e,"tabClass"),addTabStyleRef:Ae(e,"addTabStyle"),addTabClassRef:Ae(e,"addTabClass"),paneClassRef:Ae(e,"paneClass"),paneStyleRef:Ae(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Ae(e,"type"),closableRef:Ae(e,"closable"),valueRef:C,tabChangeIdRef:k,onBeforeLeaveRef:Ae(e,"onBeforeLeave"),activateTab:U,handleClose:re,handleAdd:H}),h3(()=>{j(),V()}),Et(()=>{const{value:ne}=c;if(!ne)return;const{value:ae}=a,de=`${ae}-tabs-nav-scroll-wrapper--shadow-start`,le=`${ae}-tabs-nav-scroll-wrapper--shadow-end`;g.value?ne.classList.remove(de):ne.classList.add(de),v.value?ne.classList.remove(le):ne.classList.add(le)});const Ce={syncBarPosition:()=>{j()}},se=()=>{pe({transitionDisabled:!0})},ie=D(()=>{const{value:ne}=b,{type:ae}=e,de={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ae],le=`${ne}${de}`,{self:{barColor:Y,closeIconColor:ue,closeIconColorHover:ve,closeIconColorPressed:Be,tabColor:Ke,tabBorderColor:Je,paneTextColor:st,tabFontWeight:Ye,tabBorderRadius:pt,tabFontWeightActive:Qe,colorSegment:Le,fontWeightStrong:tt,tabColorSegment:te,closeSize:me,closeIconSize:ze,closeColorHover:He,closeColorPressed:je,closeBorderRadius:Ge,[Ee("panePadding",ne)]:Ze,[Ee("tabPadding",le)]:ot,[Ee("tabPaddingVertical",le)]:yt,[Ee("tabGap",le)]:Bt,[Ee("tabGap",`${le}Vertical`)]:kt,[Ee("tabTextColor",ae)]:xo,[Ee("tabTextColorActive",ae)]:Po,[Ee("tabTextColorHover",ae)]:Ao,[Ee("tabTextColorDisabled",ae)]:No,[Ee("tabFontSize",ne)]:Vo},common:{cubicBezierEaseInOut:un}}=s.value;return{"--n-bezier":un,"--n-color-segment":Le,"--n-bar-color":Y,"--n-tab-font-size":Vo,"--n-tab-text-color":xo,"--n-tab-text-color-active":Po,"--n-tab-text-color-disabled":No,"--n-tab-text-color-hover":Ao,"--n-pane-text-color":st,"--n-tab-border-color":Je,"--n-tab-border-radius":pt,"--n-close-size":me,"--n-close-icon-size":ze,"--n-close-color-hover":He,"--n-close-color-pressed":je,"--n-close-border-radius":Ge,"--n-close-icon-color":ue,"--n-close-icon-color-hover":ve,"--n-close-icon-color-pressed":Be,"--n-tab-color":Ke,"--n-tab-font-weight":Ye,"--n-tab-font-weight-active":Qe,"--n-tab-padding":ot,"--n-tab-padding-vertical":yt,"--n-tab-gap":Bt,"--n-tab-gap-vertical":kt,"--n-pane-padding-left":Mo(Ze,"left"),"--n-pane-padding-right":Mo(Ze,"right"),"--n-pane-padding-top":Mo(Ze,"top"),"--n-pane-padding-bottom":Mo(Ze,"bottom"),"--n-font-weight-strong":tt,"--n-tab-color-segment":te}}),ce=l?gt("tabs",D(()=>`${b.value[0]}${e.type[0]}`),ie,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,segmentCapsuleElRef:Se,tabsPaneWrapperRef:K,tabsElRef:u,barElRef:d,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:c,addTabFixed:G,tabWrapperStyle:_,handleNavResize:J,mergedSize:b,handleScroll:ge,handleTabsResize:Ne,cssVars:l?void 0:ie,themeClass:ce==null?void 0:ce.themeClass,animationDirection:Q,renderNameListRef:w,yScrollElRef:p,handleSegmentResize:se,onAnimationBeforeLeave:L,onAnimationEnter:R,onAnimationAfterEnter:I,onRender:ce==null?void 0:ce.onRender},Ce)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:s,paneWrapperStyle:u,$slots:{default:d,prefix:c,suffix:h}}=this;l==null||l();const f=d?vr(d()).filter(k=>k.type.__TAB_PANE__===!0):[],p=d?vr(d()).filter(k=>k.type.__TAB__===!0):[],g=!p.length,v=t==="card",b=t==="segment",x=!v&&!b&&this.justifyContent;a.value=[];const E=()=>{const k=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((_,F)=>(a.value.push(_.props.name),a0(m(rd,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:F!==0&&(!x||x==="center"||x==="start"||x==="end")}),_.children?{default:_.children.tab}:void 0)))):p.map((_,F)=>(a.value.push(_.props.name),a0(F!==0&&!x?y4(_):_))),!n&&r&&v?x4(r,(g?f.length:p.length)!==0):null,x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return m("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&r?m(Rn,{onResize:this.handleTabsResize},{default:()=>k}):k,v?m("div",{class:`${e}-tabs-pad`}):null,v?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},C=b?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${C}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${C}`,`${e}-tabs-nav`]},bt(c,k=>k&&m("div",{class:`${e}-tabs-nav__prefix`},k)),b?m(Rn,{onResize:this.handleSegmentResize},{default:()=>m("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},m("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},m("div",{class:`${e}-tabs-wrapper`},m("div",{class:`${e}-tabs-tab`}))),g?f.map((k,_)=>(a.value.push(k.props.name),m(rd,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0}),k.children?{default:k.children.tab}:void 0))):p.map((k,_)=>(a.value.push(k.props.name),_===0?k:y4(k))))}):m(Rn,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(C)?m(aS,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:E}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},E()))}),n&&r&&v?x4(r,!0):null,bt(h,k=>k&&m("div",{class:`${e}-tabs-nav__suffix`},k))),g&&(this.animated&&(C==="top"||C==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:u,class:[`${e}-tabs-pane-wrapper`,s]},b4(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):b4(f,this.mergedValue,this.renderedNames)))}});function b4(e,t,o,n,r,i,a){const l=[];return e.forEach(s=>{const{name:u,displayDirective:d,"display-directive":c}=s.props,h=p=>d===p||c===p,f=t===u;if(s.key!==void 0&&(s.key=u),f||h("show")||h("show:lazy")&&o.has(u)){o.has(u)||o.add(u);const p=!h("if");l.push(p?zo(s,[[bn,f]]):s)}}),a?m(i3,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>l}):l}function x4(e,t){return m(rd,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function y4(e){const t=qo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function a0(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const EL=W([A("watermark-container",` + `)])])])]),SL=Object.assign(Object.assign({},Ie.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),FL=ye({name:"Tabs",props:SL,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=rt(e),s=Ie("Tabs","-tabs",wL,Yg,e,a),u=$(null),d=$(null),c=$(null),h=$(null),f=$(null),p=$(null),g=$(!0),v=$(!0),b=ts(e,["labelSize","size"]),x=ts(e,["activeName","value"]),E=$((n=(o=x.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=vr(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),w=oo(x,E),k={id:0},_=D(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});lt(w,()=>{k.id=0,G(),H()});function F(){var oe;const{value:ie}=w;return ie===null?null:(oe=u.value)===null||oe===void 0?void 0:oe.querySelector(`[data-name="${ie}"]`)}function P(oe){if(e.type==="card")return;const{value:ie}=d;if(!ie)return;const ce=ie.style.opacity==="0";if(oe){const ae=`${a.value}-tabs-bar--disabled`,{barWidth:Q,placement:de}=e;if(oe.dataset.disabled==="true"?ie.classList.add(ae):ie.classList.remove(ae),["top","bottom"].includes(de)){if(A(["top","maxHeight","height"]),typeof Q=="number"&&oe.offsetWidth>=Q){const ve=Math.floor((oe.offsetWidth-Q)/2)+oe.offsetLeft;ie.style.left=`${ve}px`,ie.style.maxWidth=`${Q}px`}else ie.style.left=`${oe.offsetLeft}px`,ie.style.maxWidth=`${oe.offsetWidth}px`;ie.style.width="8192px",ce&&(ie.style.transition="none"),ie.offsetWidth,ce&&(ie.style.transition="",ie.style.opacity="1")}else{if(A(["left","maxWidth","width"]),typeof Q=="number"&&oe.offsetHeight>=Q){const ve=Math.floor((oe.offsetHeight-Q)/2)+oe.offsetTop;ie.style.top=`${ve}px`,ie.style.maxHeight=`${Q}px`}else ie.style.top=`${oe.offsetTop}px`,ie.style.maxHeight=`${oe.offsetHeight}px`;ie.style.height="8192px",ce&&(ie.style.transition="none"),ie.offsetHeight,ce&&(ie.style.transition="",ie.style.opacity="1")}}}function z(){if(e.type==="card")return;const{value:oe}=d;oe&&(oe.style.opacity="0")}function A(oe){const{value:ie}=d;if(ie)for(const ce of oe)ie.style[ce]=""}function G(){if(e.type==="card")return;const oe=F();oe?P(oe):z()}function H(){var oe;const ie=(oe=f.value)===null||oe===void 0?void 0:oe.$el;if(!ie)return;const ce=F();if(!ce)return;const{scrollLeft:ae,offsetWidth:Q}=ie,{offsetLeft:de,offsetWidth:ve}=ce;ae>de?ie.scrollTo({top:0,left:de,behavior:"smooth"}):de+ve>ae+Q&&ie.scrollTo({top:0,left:de+ve-Q,behavior:"smooth"})}const X=$(null);let N=0,T=null;function O(oe){const ie=X.value;if(ie){N=oe.getBoundingClientRect().height;const ce=`${N}px`,ae=()=>{ie.style.height=ce,ie.style.maxHeight=ce};T?(ae(),T(),T=null):T=ae}}function R(oe){const ie=X.value;if(ie){const ce=oe.getBoundingClientRect().height,ae=()=>{document.body.offsetHeight,ie.style.maxHeight=`${ce}px`,ie.style.height=`${Math.max(N,ce)}px`};T?(T(),T=null,ae()):T=ae}}function L(){const oe=X.value;if(oe){oe.style.maxHeight="",oe.style.height="";const{paneWrapperStyle:ie}=e;if(typeof ie=="string")oe.style.cssText=ie;else if(ie){const{maxHeight:ce,height:ae}=ie;ce!==void 0&&(oe.style.maxHeight=ce),ae!==void 0&&(oe.style.height=ae)}}}const ne={value:[]},y=$("next");function K(oe){const ie=w.value;let ce="next";for(const ae of ne.value){if(ae===ie)break;if(ae===oe){ce="prev";break}}y.value=ce,U(oe)}function U(oe){const{onActiveNameChange:ie,onUpdateValue:ce,"onUpdate:value":ae}=e;ie&&Re(ie,oe),ce&&Re(ce,oe),ae&&Re(ae,oe),E.value=oe}function ue(oe){const{onClose:ie}=e;ie&&Re(ie,oe)}function se(){const{value:oe}=d;if(!oe)return;const ie="transition-disabled";oe.classList.add(ie),G(),oe.classList.remove(ie)}const Fe=$(null);function pe({transitionDisabled:oe}){const ie=u.value;if(!ie)return;oe&&ie.classList.add("transition-disabled");const ce=F();ce&&Fe.value&&(Fe.value.style.width=`${ce.offsetWidth}px`,Fe.value.style.height=`${ce.offsetHeight}px`,Fe.value.style.transform=`translateX(${ce.offsetLeft-so(getComputedStyle(ie).paddingLeft)}px)`,oe&&Fe.value.offsetWidth),oe&&ie.classList.remove("transition-disabled")}lt([w],()=>{e.type==="segment"&&Mt(()=>{pe({transitionDisabled:!1})})}),ut(()=>{e.type==="segment"&&pe({transitionDisabled:!0})});let fe=0;function Ce(oe){var ie;if(oe.contentRect.width===0&&oe.contentRect.height===0||fe===oe.contentRect.width)return;fe=oe.contentRect.width;const{type:ce}=e;if((ce==="line"||ce==="bar")&&se(),ce!=="segment"){const{placement:ae}=e;V((ae==="top"||ae==="bottom"?(ie=f.value)===null||ie===void 0?void 0:ie.$el:p.value)||null)}}const ee=Bu(Ce,64);lt([()=>e.justifyContent,()=>e.size],()=>{Mt(()=>{const{type:oe}=e;(oe==="line"||oe==="bar")&&se()})});const q=$(!1);function Te(oe){var ie;const{target:ce,contentRect:{width:ae,height:Q}}=oe,de=ce.parentElement.parentElement.offsetWidth,ve=ce.parentElement.parentElement.offsetHeight,{placement:Be}=e;if(!q.value)Be==="top"||Be==="bottom"?deGe.$el.offsetWidth&&(q.value=!1):ve-Q>Ge.$el.offsetHeight&&(q.value=!1)}V(((ie=f.value)===null||ie===void 0?void 0:ie.$el)||null)}const Ne=Bu(Te,64);function j(){const{onAdd:oe}=e;oe&&oe(),Mt(()=>{const ie=F(),{value:ce}=f;!ie||!ce||ce.scrollTo({left:ie.offsetLeft,top:0,behavior:"smooth"})})}function V(oe){if(!oe)return;const{placement:ie}=e;if(ie==="top"||ie==="bottom"){const{scrollLeft:ce,scrollWidth:ae,offsetWidth:Q}=oe;g.value=ce<=0,v.value=ce+Q>=ae}else{const{scrollTop:ce,scrollHeight:ae,offsetHeight:Q}=oe;g.value=ce<=0,v.value=ce+Q>=ae}}const ge=Bu(oe=>{V(oe.target)},64);tt(a6,{triggerRef:Ae(e,"trigger"),tabStyleRef:Ae(e,"tabStyle"),tabClassRef:Ae(e,"tabClass"),addTabStyleRef:Ae(e,"addTabStyle"),addTabClassRef:Ae(e,"addTabClass"),paneClassRef:Ae(e,"paneClass"),paneStyleRef:Ae(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Ae(e,"type"),closableRef:Ae(e,"closable"),valueRef:w,tabChangeIdRef:k,onBeforeLeaveRef:Ae(e,"onBeforeLeave"),activateTab:K,handleClose:ue,handleAdd:j}),h3(()=>{G(),H()}),Et(()=>{const{value:oe}=c;if(!oe)return;const{value:ie}=a,ce=`${ie}-tabs-nav-scroll-wrapper--shadow-start`,ae=`${ie}-tabs-nav-scroll-wrapper--shadow-end`;g.value?oe.classList.remove(ce):oe.classList.add(ce),v.value?oe.classList.remove(ae):oe.classList.add(ae)});const we={syncBarPosition:()=>{G()}},le=()=>{pe({transitionDisabled:!0})},re=D(()=>{const{value:oe}=b,{type:ie}=e,ce={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ie],ae=`${oe}${ce}`,{self:{barColor:Q,closeIconColor:de,closeIconColorHover:ve,closeIconColorPressed:Be,tabColor:Ge,tabBorderColor:et,paneTextColor:st,tabFontWeight:Ye,tabBorderRadius:pt,tabFontWeightActive:Qe,colorSegment:Le,fontWeightStrong:ot,tabColorSegment:te,closeSize:me,closeIconSize:ze,closeColorHover:He,closeColorPressed:je,closeBorderRadius:qe,[Ee("panePadding",oe)]:Ze,[Ee("tabPadding",ae)]:nt,[Ee("tabPaddingVertical",ae)]:yt,[Ee("tabGap",ae)]:Bt,[Ee("tabGap",`${ae}Vertical`)]:kt,[Ee("tabTextColor",ie)]:xo,[Ee("tabTextColorActive",ie)]:Po,[Ee("tabTextColorHover",ie)]:Ao,[Ee("tabTextColorDisabled",ie)]:No,[Ee("tabFontSize",oe)]:Vo},common:{cubicBezierEaseInOut:un}}=s.value;return{"--n-bezier":un,"--n-color-segment":Le,"--n-bar-color":Q,"--n-tab-font-size":Vo,"--n-tab-text-color":xo,"--n-tab-text-color-active":Po,"--n-tab-text-color-disabled":No,"--n-tab-text-color-hover":Ao,"--n-pane-text-color":st,"--n-tab-border-color":et,"--n-tab-border-radius":pt,"--n-close-size":me,"--n-close-icon-size":ze,"--n-close-color-hover":He,"--n-close-color-pressed":je,"--n-close-border-radius":qe,"--n-close-icon-color":de,"--n-close-icon-color-hover":ve,"--n-close-icon-color-pressed":Be,"--n-tab-color":Ge,"--n-tab-font-weight":Ye,"--n-tab-font-weight-active":Qe,"--n-tab-padding":nt,"--n-tab-padding-vertical":yt,"--n-tab-gap":Bt,"--n-tab-gap-vertical":kt,"--n-pane-padding-left":Mo(Ze,"left"),"--n-pane-padding-right":Mo(Ze,"right"),"--n-pane-padding-top":Mo(Ze,"top"),"--n-pane-padding-bottom":Mo(Ze,"bottom"),"--n-font-weight-strong":ot,"--n-tab-color-segment":te}}),he=l?gt("tabs",D(()=>`${b.value[0]}${e.type[0]}`),re,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:w,renderedNames:new Set,segmentCapsuleElRef:Fe,tabsPaneWrapperRef:X,tabsElRef:u,barElRef:d,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:c,addTabFixed:q,tabWrapperStyle:_,handleNavResize:ee,mergedSize:b,handleScroll:ge,handleTabsResize:Ne,cssVars:l?void 0:re,themeClass:he==null?void 0:he.themeClass,animationDirection:y,renderNameListRef:ne,yScrollElRef:p,handleSegmentResize:le,onAnimationBeforeLeave:O,onAnimationEnter:R,onAnimationAfterEnter:L,onRender:he==null?void 0:he.onRender},we)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:s,paneWrapperStyle:u,$slots:{default:d,prefix:c,suffix:h}}=this;l==null||l();const f=d?vr(d()).filter(k=>k.type.__TAB_PANE__===!0):[],p=d?vr(d()).filter(k=>k.type.__TAB__===!0):[],g=!p.length,v=t==="card",b=t==="segment",x=!v&&!b&&this.justifyContent;a.value=[];const E=()=>{const k=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((_,F)=>(a.value.push(_.props.name),a0(m(rd,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:F!==0&&(!x||x==="center"||x==="start"||x==="end")}),_.children?{default:_.children.tab}:void 0)))):p.map((_,F)=>(a.value.push(_.props.name),a0(F!==0&&!x?y4(_):_))),!n&&r&&v?x4(r,(g?f.length:p.length)!==0):null,x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return m("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&r?m(Rn,{onResize:this.handleTabsResize},{default:()=>k}):k,v?m("div",{class:`${e}-tabs-pad`}):null,v?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},w=b?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${w}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${w}`,`${e}-tabs-nav`]},bt(c,k=>k&&m("div",{class:`${e}-tabs-nav__prefix`},k)),b?m(Rn,{onResize:this.handleSegmentResize},{default:()=>m("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},m("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},m("div",{class:`${e}-tabs-wrapper`},m("div",{class:`${e}-tabs-tab`}))),g?f.map((k,_)=>(a.value.push(k.props.name),m(rd,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0}),k.children?{default:k.children.tab}:void 0))):p.map((k,_)=>(a.value.push(k.props.name),_===0?k:y4(k))))}):m(Rn,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(w)?m(aS,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:E}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},E()))}),n&&r&&v?x4(r,!0):null,bt(h,k=>k&&m("div",{class:`${e}-tabs-nav__suffix`},k))),g&&(this.animated&&(w==="top"||w==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:u,class:[`${e}-tabs-pane-wrapper`,s]},b4(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):b4(f,this.mergedValue,this.renderedNames)))}});function b4(e,t,o,n,r,i,a){const l=[];return e.forEach(s=>{const{name:u,displayDirective:d,"display-directive":c}=s.props,h=p=>d===p||c===p,f=t===u;if(s.key!==void 0&&(s.key=u),f||h("show")||h("show:lazy")&&o.has(u)){o.has(u)||o.add(u);const p=!h("if");l.push(p?zo(s,[[bn,f]]):s)}}),a?m(i3,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>l}):l}function x4(e,t){return m(rd,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function y4(e){const t=qo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function a0(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const EL=W([B("watermark-container",` position: relative; `,[_t("selectable",` user-select: none; -webkit-user-select: none; - `),ee("global-rotate",` + `),J("global-rotate",` overflow: hidden; - `),ee("fullscreen",` + `),J("fullscreen",` top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; position: fixed; - `)]),A("watermark",` + `)]),B("watermark",` position: absolute; top: 0; left: 0; @@ -4128,21 +4128,21 @@ ${t} height: 100%; pointer-events: none; background-repeat: repeat; - `,[ee("fullscreen",` + `,[J("fullscreen",` position: fixed; - `),ee("global-rotate",` + `),J("global-rotate",` position: absolute; height: max(284vh, 284vw); width: max(284vh, 284vw); - `)])]);function kL(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const _L=Object.assign(Object.assign({},Ie.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),ML=ye({name:"Watermark",props:_L,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=rt(e),n=Ie("Watermark","-watermark",EL,av,e,o),r=$(""),i=wn?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=$(!1);return h3(()=>l.value=!0),Et(()=>{if(!i)return;l.value;const s=kL(a),{xGap:u,yGap:d,width:c,height:h,yOffset:f,xOffset:p,rotate:g,image:v,content:b,fontColor:x,fontStyle:E,fontVariant:C,fontStretch:k,fontWeight:_,fontFamily:F,fontSize:P,lineHeight:z,debug:B}=e,j=(u+c)*s,V=(d+h)*s,K=p*s,N=f*s;if(i.width=j,i.height=V,a){a.translate(0,0);const T=c*s,L=h*s;if(B&&(a.strokeStyle="grey",a.strokeRect(0,0,T,L)),a.rotate(g*(Math.PI/180)),v){const R=new Image;R.crossOrigin="anonymous",R.referrerPolicy="no-referrer",R.src=v,R.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:I,imageHeight:w}=e;a.drawImage(R,K,N,(e.imageWidth||(w?R.width*w/R.height:R.width))*s,(e.imageHeight||(I?R.height*I/R.width:R.height))*s),r.value=i.toDataURL()}}else if(b){B&&(a.strokeStyle="green",a.strokeRect(0,0,T,L)),a.font=`${E} ${C} ${_} ${k} ${P*s}px/${z*s}px ${F||n.value.self.fontFamily}`,a.fillStyle=x;let R=0;const{textAlign:I}=e;b.split(` -`).map(w=>{const Q=a.measureText(w).width;return R=Math.max(R,Q),{width:Q,line:w}}).forEach(({line:w,width:Q},U)=>{const X=I==="left"?0:I==="center"?(R-Q)/2:R-Q;a.fillText(w,K+X,N+z*s*(U+1))}),r.value=i.toDataURL()}else b||(a.clearRect(0,0,i.width,i.height),r.value=i.toDataURL())}else MC("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:u,fullscreen:d,zIndex:c}=e,h=o.value,f=u!==0&&d,p="max(142vh, 142vw)",g=m("div",{class:[`${h}-watermark`,u!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:u?`translateX(-50%) translateY(-50%) rotate(${u}deg)`:void 0,zIndex:f?void 0:c,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:u===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${r.value}), url(${r.value})`:`url(${r.value})`}});return e.fullscreen&&!u?g:m("div",{class:[`${h}-watermark-container`,u!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:f?c:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),g)}}}),RL=ye({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var n;return(n=t.default)===null||n===void 0?void 0:n.call(t)}}}),zL={message:_O,notification:VO,loadingBar:mO,dialog:VD,modal:PO};function $L({providersAndProps:e,configProviderProps:t}){let o=mp(r);const n={app:o};function r(){return m(G3,S(t),{default:()=>e.map(({type:l,Provider:s,props:u})=>m(s,S(u),{default:()=>m(RL,{onSetup:()=>n[l]=zL[l]()})}))})}let i;return wn&&(i=document.createElement("div"),document.body.appendChild(i),o.mount(i)),Object.assign({unmount:()=>{var l;if(o===null||i===null){xn("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,o=null}},n)}function lo(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:n,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const l=[];return e.forEach(u=>{switch(u){case"message":l.push({type:u,Provider:vv,props:o});break;case"notification":l.push({type:u,Provider:NO,props:r});break;case"dialog":l.push({type:u,Provider:ND,props:n});break;case"loadingBar":l.push({type:u,Provider:pO,props:i});break;case"modal":l.push({type:u,Provider:$O,props:a})}}),$L({providersAndProps:l,configProviderProps:t})}const PL="2.40.1";function AL({componentPrefix:e="N",components:t=[]}={}){const o=[];function n(i,a,l){i.component(e+a)||i.component(e+a,l)}function r(i){o.includes(i)||(o.push(i),t.forEach(a=>{const{name:l,alias:s}=a;n(i,l,a),s&&s.forEach(u=>{n(i,u,a)})}))}return{version:PL,componentPrefix:e,install:r}}const wv=()=>({}),BL={name:"Equation",common:We,self:wv},DL={name:"Equation",common:Ve,self:wv},TL={name:"FloatButtonGroup",common:Ve,self(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},oo={name:"dark",common:Ve,Alert:q$,Anchor:nP,AutoComplete:xP,Avatar:H7,AvatarGroup:MP,BackTop:RP,Badge:PP,Breadcrumb:OP,Button:Yo,ButtonGroup:BT,Calendar:YP,Card:J7,Carousel:zA,Cascader:AA,Checkbox:qa,Code:am,Collapse:WA,CollapseTransition:qA,ColorPicker:QP,DataTable:gB,DatePicker:kD,Descriptions:RD,Dialog:og,Divider:WD,Drawer:GD,Dropdown:Q3,DynamicInput:fT,DynamicTags:bT,Element:yT,Empty:Ji,Ellipsis:wm,Equation:DL,Flex:ST,Form:MT,GradientText:TT,Icon:VB,IconWrapper:JI,Image:oO,Input:Sn,InputNumber:LT,LegacyTransfer:sO,Layout:NT,List:UT,LoadingBar:KT,Log:qT,Menu:tI,Mention:XT,Message:AT,Modal:BD,Notification:$T,PageHeader:nI,Pagination:xm,Popconfirm:aI,Popover:ea,Popselect:pm,Progress:Ig,QrCode:KO,Radio:Fm,Rate:lI,Result:fI,Row:jI,Scrollbar:Zo,Select:vm,Skeleton:ZO,Slider:hI,Space:gg,Spin:mI,Statistic:gI,Steps:xI,Switch:yI,Table:SI,Tabs:EI,Tag:F7,Thing:_I,TimePicker:Qm,Timeline:MI,Tooltip:Ud,Transfer:$I,Tree:nv,TreeSelect:BI,Typography:LI,Upload:NI,Watermark:VI,Split:sL,FloatButton:GI,FloatButtonGroup:TL},Gt={name:"light",common:We,Alert:z7,Anchor:oP,AutoComplete:bP,Avatar:V3,AvatarGroup:_P,BackTop:$P,Badge:W7,Breadcrumb:U7,Button:Ho,ButtonGroup:DT,Calendar:XP,Card:j3,Carousel:RA,Cascader:PA,Checkbox:ta,Code:K3,Collapse:sm,CollapseTransition:hm,ColorPicker:X7,DataTable:_m,DatePicker:ED,Descriptions:MD,Dialog:t6,Divider:cg,Drawer:hg,Dropdown:Gd,DynamicInput:pT,DynamicTags:xT,Element:vg,Empty:tr,Equation:BL,Ellipsis:Y3,Flex:ET,Form:_T,GradientText:OT,Icon:Nm,IconWrapper:QI,Image:tO,Input:Xo,InputNumber:_g,Layout:WT,LegacyTransfer:dO,List:jT,LoadingBar:Rg,Log:zg,Menu:eI,Mention:QT,Message:kg,Modal:sg,Notification:Fg,PageHeader:Ag,Pagination:X3,Popconfirm:iI,Popover:si,Popselect:jd,Progress:Tg,QrCode:qO,Radio:Kd,Rate:uI,Row:WI,Result:cI,Scrollbar:Lo,Skeleton:yv,Select:Z3,Slider:Hg,Space:r6,Spin:Vg,Statistic:jg,Steps:bI,Switch:Gg,Table:Zg,Tabs:Yg,Tag:H3,Thing:kI,TimePicker:Ym,Timeline:zI,Tooltip:Os,Transfer:AI,Tree:ov,TreeSelect:TI,Typography:OI,Upload:HI,Watermark:av,Split:dL,FloatButton:ZI,FloatButtonGroup:KI},IL=ye({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M8.5 2a.5.5 0 0 0 0 1h3.793L3 12.293V8.5a.5.5 0 0 0-1 0v4.9a.6.6 0 0 0 .6.6h4.9a.5.5 0 0 0 0-1H3.707L13 3.707V7.5a.5.5 0 0 0 1 0V2.6a.6.6 0 0 0-.6-.6H8.5z",fill:"currentColor"})))}}),OL=ye({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},m("path",{d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18H4z",fill:"currentColor"}),m("path",{d:"M30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586L30 3.416z",fill:"currentColor"}))}}),LL=m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"1em",height:"1em",color:"currentColor"}},m("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V2H14.5C14.7761 2 15 2.22386 15 2.5C15 2.77614 14.7761 3 14.5 3H14V3.5C14 3.77614 13.7761 4 13.5 4C13.2239 4 13 3.77614 13 3.5V3H12.5C12.2239 3 12 2.77614 12 2.5C12 2.22386 12.2239 2 12.5 2H13V1.5C13 1.22386 13.2239 1 13.5 1Z",fill:"currentColor"}),m("path",{d:"M3.5 3C3.77615 3 4 3.22386 4 3.5V4H4.5C4.77615 4 5 4.22386 5 4.5C5 4.77614 4.77615 5 4.5 5H4V5.5C4 5.77614 3.77615 6 3.5 6C3.22386 6 3 5.77614 3 5.5V5H2.5C2.22386 5 2 4.77614 2 4.5C2 4.22386 2.22386 4 2.5 4H3V3.5C3 3.22386 3.22386 3 3.5 3Z",fill:"currentColor"}),m("path",{d:"M12.5 12C12.7761 12 13 11.7761 13 11.5C13 11.2239 12.7761 11 12.5 11H12V10.5C12 10.2239 11.7761 10 11.5 10C11.2239 10 11 10.2239 11 10.5V11H10.5C10.2239 11 10 11.2239 10 11.5C10 11.7761 10.2239 12 10.5 12H11V12.5C11 12.7761 11.2239 13 11.5 13C11.7761 13 12 12.7761 12 12.5V12H12.5Z",fill:"currentColor"}),m("path",{d:"M8.72956 4.56346C9.4771 3.81592 10.6891 3.81592 11.4367 4.56347C12.1842 5.31102 12.1842 6.52303 11.4367 7.27058L4.26679 14.4404C3.51924 15.1879 2.30723 15.1879 1.55968 14.4404C0.812134 13.6928 0.812138 12.4808 1.55969 11.7333L8.72956 4.56346ZM8.25002 6.4572L2.26679 12.4404C1.90977 12.7974 1.90977 13.3763 2.26679 13.7333C2.62381 14.0903 3.20266 14.0903 3.55968 13.7333L9.54292 7.75009L8.25002 6.4572ZM10.25 7.04299L10.7295 6.56347C11.0866 6.20645 11.0866 5.6276 10.7296 5.27057C10.3725 4.91355 9.79368 4.91355 9.43666 5.27057L8.95713 5.7501L10.25 7.04299Z",fill:"currentColor"}));function HL(e){return e.includes("pacity")?!1:!!(e.includes("color")||e.includes("Color"))}const NL=ye({name:"ThemeEditor",inheritAttrs:!1,setup(){const e=$(!1),t=$(null),o=Oe(ln,null),n=$(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),r=D(()=>{var E,C,k,_;const F=(o==null?void 0:o.mergedThemeRef.value)||Gt,P=o==null?void 0:o.mergedThemeOverridesRef.value,z=Fi({},F.common||Gt.common,P==null?void 0:P.common,n.value.common||{}),B={common:z};for(const j of Object.keys(Gt))j!=="common"&&(B[j]=((C=(E=F[j])===null||E===void 0?void 0:E.self)===null||C===void 0?void 0:C.call(E,z))||((_=(k=Gt[j]).self)===null||_===void 0?void 0:_.call(k,z)),P&&B[j]&&Fi(B[j],P[j]));return B}),i=D(()=>{var E;return((E=o==null?void 0:o.mergedThemeRef.value)===null||E===void 0?void 0:E.common)||Gt.common}),a=$(!1),l=$(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),s=$(""),u=$(""),d=$(""),c=$("");function h(){n.value=ya(zt(l.value))}function f(E,C,k){const{value:_}=l;E in _||(_[E]={});const F=_[E];k?F[C]=k:delete F[C]}function p(){l.value={},n.value={}}function g(){const{value:E}=t;E&&E.click()}function v(){e.value=!e.value}function b(){const{value:E}=t;if(!E)return;const C=E.files,k=C==null?void 0:C[0];k&&k.text().then(_=>{n.value=JSON.parse(_),l.value=JSON.parse(_)}).catch(_=>{alert("Imported File is Invalid"),console.error(_)}).finally(()=>{E.value=""})}function x(){const E=URL.createObjectURL(new Blob([JSON.stringify(n.value,void 0,2)]));r8(E,"naive-ui-theme-overrides.json"),URL.revokeObjectURL(E)}return lt(n,E=>{localStorage["naive-ui-theme-overrides"]=JSON.stringify(E)}),{locale:Fr("ThemeEditor").localeRef,themeCommonDefault:i,theme:r,showPanel:a,tempOverrides:l,overrides:n,compNamePattern:u,tempCompNamePattern:c,varNamePattern:s,tempVarNamePattern:d,fileInputRef:t,applyTempOverrides:h,setTempOverrides:f,handleClearAllClick:p,handleExportClick:x,handleImportClick:g,handleInputFileChange:b,toggleMaximized:v,isMaximized:e}},render(){return m(G3,{themeOverrides:this.overrides},{default:()=>{var e,t;return[m(Ga,{scrollable:!0,arrowPointToCenter:!0,trigger:"manual",show:this.showPanel,displayDirective:"show",placement:"top-end",style:{width:this.isMaximized?"calc(100vw - 80px)":"288px",height:"calc(100vh - 200px)",padding:0}},{trigger:()=>m(wT,{style:[{position:"fixed",zIndex:10,bottom:"40px",right:`calc(40px + ${o1.value})`,width:"44px",height:"44px",fontSize:"26px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"var(--popover-color)",color:"var(--text-color-2)",transition:"color .3s var(--cubic-bezier-ease-in-out), background-color .3s var(--cubic-bezier-ease-in-out), box-shadow .3s var(--cubic-bezier-ease-in-out)",boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",cursor:"pointer"},this.$attrs.style],onClick:()=>{this.showPanel=!this.showPanel}},{default:()=>LL}),default:()=>m(ft,null,m("input",{type:"file",ref:"fileInputRef",style:{display:"block",width:0,height:0,visibility:"hidden"},onChange:this.handleInputFileChange}),m(Tu,{vertical:!0},{default:()=>[m(Tu,{align:"center",justify:"space-between",style:{marginBottom:"8px",fontSize:"18px",fontWeight:500}},{default:()=>m(ft,null,m("span",null,this.locale.title),m(Ft,{onClick:this.toggleMaximized,secondary:!0,circle:!0,size:"tiny"},{icon:()=>m(Ut,{component:this.isMaximized?OL:IL})}))}),this.locale.filterCompName,m(rn,{onChange:()=>{this.compNamePattern=this.tempCompNamePattern},onInput:o=>{this.tempCompNamePattern=o},value:this.tempCompNamePattern,placeholder:this.locale.filterCompName}),this.locale.filterVarName,m(rn,{onChange:o=>{this.varNamePattern=o},onInput:o=>{this.tempVarNamePattern=o},value:this.tempVarNamePattern,placeholder:this.locale.filterVarName}),m(Ft,{size:"small",onClick:()=>{this.compNamePattern="",this.varNamePattern="",this.tempCompNamePattern="",this.tempVarNamePattern=""},block:!0},{default:()=>this.locale.clearSearch}),m(Ft,{size:"small",onClick:this.handleClearAllClick,block:!0},{default:()=>this.locale.clearAllVars}),m(Tu,{itemStyle:{flex:1}},{default:()=>m(ft,null,m(Ft,{block:!0,size:"small",onClick:this.handleImportClick},{default:()=>this.locale.import}),m(Ft,{block:!0,size:"small",onClick:this.handleExportClick},{default:()=>this.locale.export}))})]}),m(KD,null),m(dm,null,{default:()=>{const{theme:o,compNamePattern:n,varNamePattern:r}=this,i=Object.keys(o),a=n.toLowerCase(),l=r.toLowerCase();let s=0;const u=i.filter(d=>d.toLowerCase().includes(a)).map(d=>{const c=d==="common"?this.themeCommonDefault:o[d];if(c===void 0)return null;const h=Object.keys(c).filter(f=>f!=="name"&&f.toLowerCase().includes(l));return h.length?(s+=1,m(cm,{title:d,name:d},{default:()=>m(sv,{xGap:32,yGap:16,responsive:"screen",cols:this.isMaximized?"1 xs:1 s:2 m:3 l:4":1},{default:()=>h.map(f=>m(wg,null,{default:()=>{var p,g,v,b;return m(ft,null,m("div",{key:`${f}Label`,style:{wordBreak:"break-word"}},f),HL(f)?m(FA,{key:f,modes:["rgb","hex"],value:((g=(p=this.tempOverrides)===null||p===void 0?void 0:p[d])===null||g===void 0?void 0:g[f])||c[f],onComplete:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)}},{action:()=>{var x,E;return m(Ft,{size:"small",disabled:c[f]===((E=(x=this.tempOverrides)===null||x===void 0?void 0:x[d])===null||E===void 0?void 0:E[f]),onClick:()=>{this.setTempOverrides(d,f,c[f]),this.applyTempOverrides()}},{default:()=>this.locale.restore})}}):m(rn,{key:f,onChange:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)},value:((b=(v=this.tempOverrides)===null||v===void 0?void 0:v[d])===null||b===void 0?void 0:b[f])||"",placeholder:c[f]}))}}))})})):null});return s?u:m(L3,null)}}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)]}})}});/*! + `)])]);function kL(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const _L=Object.assign(Object.assign({},Ie.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),ML=ye({name:"Watermark",props:_L,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=rt(e),n=Ie("Watermark","-watermark",EL,av,e,o),r=$(""),i=wn?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=$(!1);return h3(()=>l.value=!0),Et(()=>{if(!i)return;l.value;const s=kL(a),{xGap:u,yGap:d,width:c,height:h,yOffset:f,xOffset:p,rotate:g,image:v,content:b,fontColor:x,fontStyle:E,fontVariant:w,fontStretch:k,fontWeight:_,fontFamily:F,fontSize:P,lineHeight:z,debug:A}=e,G=(u+c)*s,H=(d+h)*s,X=p*s,N=f*s;if(i.width=G,i.height=H,a){a.translate(0,0);const T=c*s,O=h*s;if(A&&(a.strokeStyle="grey",a.strokeRect(0,0,T,O)),a.rotate(g*(Math.PI/180)),v){const R=new Image;R.crossOrigin="anonymous",R.referrerPolicy="no-referrer",R.src=v,R.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:L,imageHeight:ne}=e;a.drawImage(R,X,N,(e.imageWidth||(ne?R.width*ne/R.height:R.width))*s,(e.imageHeight||(L?R.height*L/R.width:R.height))*s),r.value=i.toDataURL()}}else if(b){A&&(a.strokeStyle="green",a.strokeRect(0,0,T,O)),a.font=`${E} ${w} ${_} ${k} ${P*s}px/${z*s}px ${F||n.value.self.fontFamily}`,a.fillStyle=x;let R=0;const{textAlign:L}=e;b.split(` +`).map(ne=>{const y=a.measureText(ne).width;return R=Math.max(R,y),{width:y,line:ne}}).forEach(({line:ne,width:y},K)=>{const U=L==="left"?0:L==="center"?(R-y)/2:R-y;a.fillText(ne,X+U,N+z*s*(K+1))}),r.value=i.toDataURL()}else b||(a.clearRect(0,0,i.width,i.height),r.value=i.toDataURL())}else MC("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:u,fullscreen:d,zIndex:c}=e,h=o.value,f=u!==0&&d,p="max(142vh, 142vw)",g=m("div",{class:[`${h}-watermark`,u!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:u?`translateX(-50%) translateY(-50%) rotate(${u}deg)`:void 0,zIndex:f?void 0:c,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:u===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${r.value}), url(${r.value})`:`url(${r.value})`}});return e.fullscreen&&!u?g:m("div",{class:[`${h}-watermark-container`,u!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:f?c:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),g)}}}),RL=ye({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var n;return(n=t.default)===null||n===void 0?void 0:n.call(t)}}}),zL={message:_O,notification:VO,loadingBar:mO,dialog:VD,modal:PO};function $L({providersAndProps:e,configProviderProps:t}){let o=mp(r);const n={app:o};function r(){return m(G3,S(t),{default:()=>e.map(({type:l,Provider:s,props:u})=>m(s,S(u),{default:()=>m(RL,{onSetup:()=>n[l]=zL[l]()})}))})}let i;return wn&&(i=document.createElement("div"),document.body.appendChild(i),o.mount(i)),Object.assign({unmount:()=>{var l;if(o===null||i===null){xn("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,o=null}},n)}function ao(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:n,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const l=[];return e.forEach(u=>{switch(u){case"message":l.push({type:u,Provider:vv,props:o});break;case"notification":l.push({type:u,Provider:NO,props:r});break;case"dialog":l.push({type:u,Provider:ND,props:n});break;case"loadingBar":l.push({type:u,Provider:pO,props:i});break;case"modal":l.push({type:u,Provider:$O,props:a})}}),$L({providersAndProps:l,configProviderProps:t})}const PL="2.40.1";function AL({componentPrefix:e="N",components:t=[]}={}){const o=[];function n(i,a,l){i.component(e+a)||i.component(e+a,l)}function r(i){o.includes(i)||(o.push(i),t.forEach(a=>{const{name:l,alias:s}=a;n(i,l,a),s&&s.forEach(u=>{n(i,u,a)})}))}return{version:PL,componentPrefix:e,install:r}}const wv=()=>({}),BL={name:"Equation",common:We,self:wv},DL={name:"Equation",common:Ve,self:wv},TL={name:"FloatButtonGroup",common:Ve,self(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},to={name:"dark",common:Ve,Alert:q$,Anchor:nP,AutoComplete:xP,Avatar:H7,AvatarGroup:MP,BackTop:RP,Badge:PP,Breadcrumb:OP,Button:Yo,ButtonGroup:BT,Calendar:YP,Card:J7,Carousel:zA,Cascader:AA,Checkbox:qa,Code:am,Collapse:WA,CollapseTransition:qA,ColorPicker:QP,DataTable:gB,DatePicker:kD,Descriptions:RD,Dialog:og,Divider:WD,Drawer:GD,Dropdown:Q3,DynamicInput:fT,DynamicTags:bT,Element:yT,Empty:Ji,Ellipsis:wm,Equation:DL,Flex:ST,Form:MT,GradientText:TT,Icon:VB,IconWrapper:JI,Image:oO,Input:Sn,InputNumber:LT,LegacyTransfer:sO,Layout:NT,List:UT,LoadingBar:KT,Log:qT,Menu:tI,Mention:XT,Message:AT,Modal:BD,Notification:$T,PageHeader:nI,Pagination:xm,Popconfirm:aI,Popover:ea,Popselect:pm,Progress:Ig,QrCode:KO,Radio:Fm,Rate:lI,Result:fI,Row:jI,Scrollbar:Zo,Select:vm,Skeleton:ZO,Slider:hI,Space:gg,Spin:mI,Statistic:gI,Steps:xI,Switch:yI,Table:SI,Tabs:EI,Tag:F7,Thing:_I,TimePicker:Qm,Timeline:MI,Tooltip:Ud,Transfer:$I,Tree:nv,TreeSelect:BI,Typography:LI,Upload:NI,Watermark:VI,Split:sL,FloatButton:GI,FloatButtonGroup:TL},Vt={name:"light",common:We,Alert:z7,Anchor:oP,AutoComplete:bP,Avatar:V3,AvatarGroup:_P,BackTop:$P,Badge:W7,Breadcrumb:U7,Button:Ho,ButtonGroup:DT,Calendar:XP,Card:j3,Carousel:RA,Cascader:PA,Checkbox:ta,Code:K3,Collapse:sm,CollapseTransition:hm,ColorPicker:X7,DataTable:_m,DatePicker:ED,Descriptions:MD,Dialog:t6,Divider:cg,Drawer:hg,Dropdown:Gd,DynamicInput:pT,DynamicTags:xT,Element:vg,Empty:tr,Equation:BL,Ellipsis:Y3,Flex:ET,Form:_T,GradientText:OT,Icon:Nm,IconWrapper:QI,Image:tO,Input:Xo,InputNumber:_g,Layout:WT,LegacyTransfer:dO,List:jT,LoadingBar:Rg,Log:zg,Menu:eI,Mention:QT,Message:kg,Modal:sg,Notification:Fg,PageHeader:Ag,Pagination:X3,Popconfirm:iI,Popover:si,Popselect:jd,Progress:Tg,QrCode:qO,Radio:Kd,Rate:uI,Row:WI,Result:cI,Scrollbar:Lo,Skeleton:yv,Select:Z3,Slider:Hg,Space:r6,Spin:Vg,Statistic:jg,Steps:bI,Switch:Gg,Table:Zg,Tabs:Yg,Tag:H3,Thing:kI,TimePicker:Ym,Timeline:zI,Tooltip:Os,Transfer:AI,Tree:ov,TreeSelect:TI,Typography:OI,Upload:HI,Watermark:av,Split:dL,FloatButton:ZI,FloatButtonGroup:KI},IL=ye({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M8.5 2a.5.5 0 0 0 0 1h3.793L3 12.293V8.5a.5.5 0 0 0-1 0v4.9a.6.6 0 0 0 .6.6h4.9a.5.5 0 0 0 0-1H3.707L13 3.707V7.5a.5.5 0 0 0 1 0V2.6a.6.6 0 0 0-.6-.6H8.5z",fill:"currentColor"})))}}),OL=ye({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},m("path",{d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18H4z",fill:"currentColor"}),m("path",{d:"M30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586L30 3.416z",fill:"currentColor"}))}}),LL=m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"1em",height:"1em",color:"currentColor"}},m("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V2H14.5C14.7761 2 15 2.22386 15 2.5C15 2.77614 14.7761 3 14.5 3H14V3.5C14 3.77614 13.7761 4 13.5 4C13.2239 4 13 3.77614 13 3.5V3H12.5C12.2239 3 12 2.77614 12 2.5C12 2.22386 12.2239 2 12.5 2H13V1.5C13 1.22386 13.2239 1 13.5 1Z",fill:"currentColor"}),m("path",{d:"M3.5 3C3.77615 3 4 3.22386 4 3.5V4H4.5C4.77615 4 5 4.22386 5 4.5C5 4.77614 4.77615 5 4.5 5H4V5.5C4 5.77614 3.77615 6 3.5 6C3.22386 6 3 5.77614 3 5.5V5H2.5C2.22386 5 2 4.77614 2 4.5C2 4.22386 2.22386 4 2.5 4H3V3.5C3 3.22386 3.22386 3 3.5 3Z",fill:"currentColor"}),m("path",{d:"M12.5 12C12.7761 12 13 11.7761 13 11.5C13 11.2239 12.7761 11 12.5 11H12V10.5C12 10.2239 11.7761 10 11.5 10C11.2239 10 11 10.2239 11 10.5V11H10.5C10.2239 11 10 11.2239 10 11.5C10 11.7761 10.2239 12 10.5 12H11V12.5C11 12.7761 11.2239 13 11.5 13C11.7761 13 12 12.7761 12 12.5V12H12.5Z",fill:"currentColor"}),m("path",{d:"M8.72956 4.56346C9.4771 3.81592 10.6891 3.81592 11.4367 4.56347C12.1842 5.31102 12.1842 6.52303 11.4367 7.27058L4.26679 14.4404C3.51924 15.1879 2.30723 15.1879 1.55968 14.4404C0.812134 13.6928 0.812138 12.4808 1.55969 11.7333L8.72956 4.56346ZM8.25002 6.4572L2.26679 12.4404C1.90977 12.7974 1.90977 13.3763 2.26679 13.7333C2.62381 14.0903 3.20266 14.0903 3.55968 13.7333L9.54292 7.75009L8.25002 6.4572ZM10.25 7.04299L10.7295 6.56347C11.0866 6.20645 11.0866 5.6276 10.7296 5.27057C10.3725 4.91355 9.79368 4.91355 9.43666 5.27057L8.95713 5.7501L10.25 7.04299Z",fill:"currentColor"}));function HL(e){return e.includes("pacity")?!1:!!(e.includes("color")||e.includes("Color"))}const NL=ye({name:"ThemeEditor",inheritAttrs:!1,setup(){const e=$(!1),t=$(null),o=Oe(ln,null),n=$(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),r=D(()=>{var E,w,k,_;const F=(o==null?void 0:o.mergedThemeRef.value)||Vt,P=o==null?void 0:o.mergedThemeOverridesRef.value,z=Fi({},F.common||Vt.common,P==null?void 0:P.common,n.value.common||{}),A={common:z};for(const G of Object.keys(Vt))G!=="common"&&(A[G]=((w=(E=F[G])===null||E===void 0?void 0:E.self)===null||w===void 0?void 0:w.call(E,z))||((_=(k=Vt[G]).self)===null||_===void 0?void 0:_.call(k,z)),P&&A[G]&&Fi(A[G],P[G]));return A}),i=D(()=>{var E;return((E=o==null?void 0:o.mergedThemeRef.value)===null||E===void 0?void 0:E.common)||Vt.common}),a=$(!1),l=$(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),s=$(""),u=$(""),d=$(""),c=$("");function h(){n.value=ya(zt(l.value))}function f(E,w,k){const{value:_}=l;E in _||(_[E]={});const F=_[E];k?F[w]=k:delete F[w]}function p(){l.value={},n.value={}}function g(){const{value:E}=t;E&&E.click()}function v(){e.value=!e.value}function b(){const{value:E}=t;if(!E)return;const w=E.files,k=w==null?void 0:w[0];k&&k.text().then(_=>{n.value=JSON.parse(_),l.value=JSON.parse(_)}).catch(_=>{alert("Imported File is Invalid"),console.error(_)}).finally(()=>{E.value=""})}function x(){const E=URL.createObjectURL(new Blob([JSON.stringify(n.value,void 0,2)]));r8(E,"naive-ui-theme-overrides.json"),URL.revokeObjectURL(E)}return lt(n,E=>{localStorage["naive-ui-theme-overrides"]=JSON.stringify(E)}),{locale:Fr("ThemeEditor").localeRef,themeCommonDefault:i,theme:r,showPanel:a,tempOverrides:l,overrides:n,compNamePattern:u,tempCompNamePattern:c,varNamePattern:s,tempVarNamePattern:d,fileInputRef:t,applyTempOverrides:h,setTempOverrides:f,handleClearAllClick:p,handleExportClick:x,handleImportClick:g,handleInputFileChange:b,toggleMaximized:v,isMaximized:e}},render(){return m(G3,{themeOverrides:this.overrides},{default:()=>{var e,t;return[m(Ga,{scrollable:!0,arrowPointToCenter:!0,trigger:"manual",show:this.showPanel,displayDirective:"show",placement:"top-end",style:{width:this.isMaximized?"calc(100vw - 80px)":"288px",height:"calc(100vh - 200px)",padding:0}},{trigger:()=>m(wT,{style:[{position:"fixed",zIndex:10,bottom:"40px",right:`calc(40px + ${o1.value})`,width:"44px",height:"44px",fontSize:"26px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"var(--popover-color)",color:"var(--text-color-2)",transition:"color .3s var(--cubic-bezier-ease-in-out), background-color .3s var(--cubic-bezier-ease-in-out), box-shadow .3s var(--cubic-bezier-ease-in-out)",boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",cursor:"pointer"},this.$attrs.style],onClick:()=>{this.showPanel=!this.showPanel}},{default:()=>LL}),default:()=>m(ft,null,m("input",{type:"file",ref:"fileInputRef",style:{display:"block",width:0,height:0,visibility:"hidden"},onChange:this.handleInputFileChange}),m(Tu,{vertical:!0},{default:()=>[m(Tu,{align:"center",justify:"space-between",style:{marginBottom:"8px",fontSize:"18px",fontWeight:500}},{default:()=>m(ft,null,m("span",null,this.locale.title),m(Ft,{onClick:this.toggleMaximized,secondary:!0,circle:!0,size:"tiny"},{icon:()=>m(Kt,{component:this.isMaximized?OL:IL})}))}),this.locale.filterCompName,m(rn,{onChange:()=>{this.compNamePattern=this.tempCompNamePattern},onInput:o=>{this.tempCompNamePattern=o},value:this.tempCompNamePattern,placeholder:this.locale.filterCompName}),this.locale.filterVarName,m(rn,{onChange:o=>{this.varNamePattern=o},onInput:o=>{this.tempVarNamePattern=o},value:this.tempVarNamePattern,placeholder:this.locale.filterVarName}),m(Ft,{size:"small",onClick:()=>{this.compNamePattern="",this.varNamePattern="",this.tempCompNamePattern="",this.tempVarNamePattern=""},block:!0},{default:()=>this.locale.clearSearch}),m(Ft,{size:"small",onClick:this.handleClearAllClick,block:!0},{default:()=>this.locale.clearAllVars}),m(Tu,{itemStyle:{flex:1}},{default:()=>m(ft,null,m(Ft,{block:!0,size:"small",onClick:this.handleImportClick},{default:()=>this.locale.import}),m(Ft,{block:!0,size:"small",onClick:this.handleExportClick},{default:()=>this.locale.export}))})]}),m(KD,null),m(dm,null,{default:()=>{const{theme:o,compNamePattern:n,varNamePattern:r}=this,i=Object.keys(o),a=n.toLowerCase(),l=r.toLowerCase();let s=0;const u=i.filter(d=>d.toLowerCase().includes(a)).map(d=>{const c=d==="common"?this.themeCommonDefault:o[d];if(c===void 0)return null;const h=Object.keys(c).filter(f=>f!=="name"&&f.toLowerCase().includes(l));return h.length?(s+=1,m(cm,{title:d,name:d},{default:()=>m(sv,{xGap:32,yGap:16,responsive:"screen",cols:this.isMaximized?"1 xs:1 s:2 m:3 l:4":1},{default:()=>h.map(f=>m(wg,null,{default:()=>{var p,g,v,b;return m(ft,null,m("div",{key:`${f}Label`,style:{wordBreak:"break-word"}},f),HL(f)?m(FA,{key:f,modes:["rgb","hex"],value:((g=(p=this.tempOverrides)===null||p===void 0?void 0:p[d])===null||g===void 0?void 0:g[f])||c[f],onComplete:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)}},{action:()=>{var x,E;return m(Ft,{size:"small",disabled:c[f]===((E=(x=this.tempOverrides)===null||x===void 0?void 0:x[d])===null||E===void 0?void 0:E[f]),onClick:()=>{this.setTempOverrides(d,f,c[f]),this.applyTempOverrides()}},{default:()=>this.locale.restore})}}):m(rn,{key:f,onChange:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)},value:((b=(v=this.tempOverrides)===null||v===void 0?void 0:v[d])===null||b===void 0?void 0:b[f])||"",placeholder:c[f]}))}}))})})):null});return s?u:m(L3,null)}}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)]}})}});/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const ba=typeof document<"u";function Sv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function VL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Sv(e.default)}const Lt=Object.assign;function l0(e,t){const o={};for(const n in t){const r=t[n];o[n]=An(r)?r.map(e):e(r)}return o}const Hl=()=>{},An=Array.isArray,Fv=/#/g,WL=/&/g,jL=/\//g,UL=/=/g,KL=/\?/g,Ev=/\+/g,GL=/%5B/g,qL=/%5D/g,kv=/%5E/g,ZL=/%60/g,_v=/%7B/g,XL=/%7C/g,Mv=/%7D/g,YL=/%20/g;function l6(e){return encodeURI(""+e).replace(XL,"|").replace(GL,"[").replace(qL,"]")}function QL(e){return l6(e).replace(_v,"{").replace(Mv,"}").replace(kv,"^")}function b1(e){return l6(e).replace(Ev,"%2B").replace(YL,"+").replace(Fv,"%23").replace(WL,"%26").replace(ZL,"`").replace(_v,"{").replace(Mv,"}").replace(kv,"^")}function JL(e){return b1(e).replace(UL,"%3D")}function eH(e){return l6(e).replace(Fv,"%23").replace(KL,"%3F")}function tH(e){return e==null?"":eH(e).replace(jL,"%2F")}function us(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const oH=/\/$/,nH=e=>e.replace(oH,"");function s0(e,t,o="/"){let n,r={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),r=e(i)),l>-1&&(n=n||t.slice(0,l),a=t.slice(l,t.length)),n=lH(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:us(a)}}function rH(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function C4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iH(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&Da(t.matched[n],o.matched[r])&&Rv(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Da(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!aH(e[o],t[o]))return!1;return!0}function aH(e,t){return An(e)?w4(e,t):An(t)?w4(t,e):e===t}function w4(e,t){return An(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function lH(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,a,l;for(a=0;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const Br={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ds;(function(e){e.pop="pop",e.push="push"})(ds||(ds={}));var Nl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nl||(Nl={}));function sH(e){if(!e)if(ba){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nH(e)}const uH=/^[^#]+#/;function dH(e,t){return e.replace(uH,"#")+t}function cH(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const Yd=()=>({left:window.scrollX,top:window.scrollY});function fH(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=cH(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function S4(e,t){return(history.state?history.state.position-t:-1)+e}const x1=new Map;function hH(e,t){x1.set(e,t)}function pH(e){const t=x1.get(e);return x1.delete(e),t}let mH=()=>location.protocol+"//"+location.host;function zv(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,s=r.slice(l);return s[0]!=="/"&&(s="/"+s),C4(s,"")}return C4(o,e)+n+r}function gH(e,t,o,n){let r=[],i=[],a=null;const l=({state:h})=>{const f=zv(e,location),p=o.value,g=t.value;let v=0;if(h){if(o.value=f,t.value=h,a&&a===p){a=null;return}v=g?h.position-g.position:0}else n(f);r.forEach(b=>{b(o.value,p,{delta:v,type:ds.pop,direction:v?v>0?Nl.forward:Nl.back:Nl.unknown})})};function s(){a=o.value}function u(h){r.push(h);const f=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return i.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Lt({},h.state,{scroll:Yd()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:s,listen:u,destroy:c}}function F4(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?Yd():null}}function vH(e){const{history:t,location:o}=window,n={value:zv(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,u,d){const c=e.indexOf("#"),h=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+s:mH()+e+s;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(f){console.error(f),o[d?"replace":"assign"](h)}}function a(s,u){const d=Lt({},t.state,F4(r.value.back,s,r.value.forward,!0),u,{position:r.value.position});i(s,d,!0),n.value=s}function l(s,u){const d=Lt({},r.value,t.state,{forward:s,scroll:Yd()});i(d.current,d,!0);const c=Lt({},F4(n.value,s,null),{position:d.position+1},u);i(s,c,!1),n.value=s}return{location:n,state:r,push:l,replace:a}}function bH(e){e=sH(e);const t=vH(e),o=gH(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Lt({location:"",base:e,go:n,createHref:dH.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function xH(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),bH(e)}function yH(e){return typeof e=="string"||e&&typeof e=="object"}function $v(e){return typeof e=="string"||typeof e=="symbol"}const Pv=Symbol("");var E4;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(E4||(E4={}));function Ta(e,t){return Lt(new Error,{type:e,[Pv]:!0},t)}function sr(e,t){return e instanceof Error&&Pv in e&&(t==null||!!(e.type&t))}const k4="[^/]+?",CH={sensitive:!1,strict:!1,start:!0,end:!0},wH=/[.+*?^${}()[\]/\\]/g;function SH(e,t){const o=Lt({},CH,t),n=[];let r=o.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];o.strict&&!u.length&&(r+="/");for(let c=0;ct.length?t.length===1&&t[0]===80?1:-1:0}function Av(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const EH={type:0,value:""},kH=/[a-zA-Z0-9_]/;function _H(e){if(!e)return[[]];if(e==="/")return[[EH]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${o})/"${u}": ${f}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let l=0,s,u="",d="";function c(){u&&(o===0?i.push({type:0,value:u}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l{a(E)}:Hl}function a(c){if($v(c)){const h=n.get(c);h&&(n.delete(c),o.splice(o.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=o.indexOf(c);h>-1&&(o.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function l(){return o}function s(c){const h=PH(c,o);o.splice(h,0,c),c.record.name&&!z4(c)&&n.set(c.record.name,c)}function u(c,h){let f,p={},g,v;if("name"in c&&c.name){if(f=n.get(c.name),!f)throw Ta(1,{location:c});v=f.record.name,p=Lt(M4(h.params,f.keys.filter(E=>!E.optional).concat(f.parent?f.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),c.params&&M4(c.params,f.keys.map(E=>E.name))),g=f.stringify(p)}else if(c.path!=null)g=c.path,f=o.find(E=>E.re.test(g)),f&&(p=f.parse(g),v=f.record.name);else{if(f=h.name?n.get(h.name):o.find(E=>E.re.test(h.path)),!f)throw Ta(1,{location:c,currentLocation:h});v=f.record.name,p=Lt({},h.params,c.params),g=f.stringify(p)}const b=[];let x=f;for(;x;)b.unshift(x.record),x=x.parent;return{name:v,path:g,params:p,matched:b,meta:$H(b)}}e.forEach(c=>i(c));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:d,getRoutes:l,getRecordMatcher:r}}function M4(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function R4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:zH(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function zH(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function z4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $H(e){return e.reduce((t,o)=>Lt(t,o.meta),{})}function $4(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function PH(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;Av(e,t[i])<0?n=i:o=i+1}const r=AH(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function AH(e){let t=e;for(;t=t.parent;)if(Bv(t)&&Av(e,t)===0)return t}function Bv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function BH(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&b1(i)):[n&&b1(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function DH(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=An(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const TH=Symbol(""),A4=Symbol(""),Qd=Symbol(""),s6=Symbol(""),y1=Symbol("");function pl(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Hr(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,s)=>{const u=h=>{h===!1?s(Ta(4,{from:o,to:t})):h instanceof Error?s(h):yH(h)?s(Ta(2,{from:t,to:h})):(a&&n.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),l())},d=i(()=>e.call(n&&n.instances[r],t,o,u));let c=Promise.resolve(d);e.length<3&&(c=c.then(u)),c.catch(h=>s(h))})}function u0(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(Sv(s)){const d=(s.__vccOpts||s)[t];d&&i.push(Hr(d,o,n,a,l,r))}else{let u=s();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);const c=VL(d)?d.default:d;a.mods[l]=d,a.components[l]=c;const f=(c.__vccOpts||c)[t];return f&&Hr(f,o,n,a,l,r)()}))}}return i}function B4(e){const t=Oe(Qd),o=Oe(s6),n=D(()=>{const s=S(e.to);return t.resolve(s)}),r=D(()=>{const{matched:s}=n.value,{length:u}=s,d=s[u-1],c=o.matched;if(!d||!c.length)return-1;const h=c.findIndex(Da.bind(null,d));if(h>-1)return h;const f=D4(s[u-2]);return u>1&&D4(d)===f&&c[c.length-1].path!==f?c.findIndex(Da.bind(null,s[u-2])):h}),i=D(()=>r.value>-1&&LH(o.params,n.value.params)),a=D(()=>r.value>-1&&r.value===o.matched.length-1&&Rv(o.params,n.value.params));function l(s={}){return OH(s)?t[S(e.replace)?"replace":"push"](S(e.to)).catch(Hl):Promise.resolve()}return{route:n,href:D(()=>n.value.href),isActive:i,isExactActive:a,navigate:l}}const IH=ye({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:B4,setup(e,{slots:t}){const o=It(B4(e)),{options:n}=Oe(Qd),r=D(()=>({[T4(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[T4(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),Sl=IH;function OH(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function LH(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!An(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function D4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const T4=(e,t,o)=>e??t??o,HH=ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Oe(y1),r=D(()=>e.route||n.value),i=Oe(A4,0),a=D(()=>{let u=S(i);const{matched:d}=r.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),l=D(()=>r.value.matched[a.value]);et(A4,D(()=>a.value+1)),et(TH,l),et(y1,r);const s=$();return lt(()=>[s.value,l.value,e.name],([u,d,c],[h,f,p])=>{d&&(d.instances[c]=u,f&&f!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),u&&d&&(!f||!Da(d,f)||!h)&&(d.enterCallbacks[c]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,c=l.value,h=c&&c.components[d];if(!h)return I4(o.default,{Component:h,route:u});const f=c.props[d],p=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=m(h,Lt({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[d]=null)},ref:s}));return I4(o.default,{Component:v,route:u})||v}}});function I4(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Dv=HH;function NH(e){const t=RH(e.routes,e),o=e.parseQuery||BH,n=e.stringifyQuery||P4,r=e.history,i=pl(),a=pl(),l=pl(),s=xd(Br);let u=Br;ba&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=l0.bind(null,fe=>""+fe),c=l0.bind(null,tH),h=l0.bind(null,us);function f(fe,we){let J,G;return $v(fe)?(J=t.getRecordMatcher(fe),G=we):G=fe,t.addRoute(G,J)}function p(fe){const we=t.getRecordMatcher(fe);we&&t.removeRoute(we)}function g(){return t.getRoutes().map(fe=>fe.record)}function v(fe){return!!t.getRecordMatcher(fe)}function b(fe,we){if(we=Lt({},we||s.value),typeof fe=="string"){const oe=s0(o,fe,we.path),ge=t.resolve({path:oe.path},we),Ce=r.createHref(oe.fullPath);return Lt(oe,ge,{params:h(ge.params),hash:us(oe.hash),redirectedFrom:void 0,href:Ce})}let J;if(fe.path!=null)J=Lt({},fe,{path:s0(o,fe.path,we.path).path});else{const oe=Lt({},fe.params);for(const ge in oe)oe[ge]==null&&delete oe[ge];J=Lt({},fe,{params:c(oe)}),we.params=c(we.params)}const G=t.resolve(J,we),Te=fe.hash||"";G.params=d(h(G.params));const Ne=rH(n,Lt({},fe,{hash:QL(Te),path:G.path})),H=r.createHref(Ne);return Lt({fullPath:Ne,hash:Te,query:n===P4?DH(fe.query):fe.query||{}},G,{redirectedFrom:void 0,href:H})}function x(fe){return typeof fe=="string"?s0(o,fe,s.value.path):Lt({},fe)}function E(fe,we){if(u!==fe)return Ta(8,{from:we,to:fe})}function C(fe){return F(fe)}function k(fe){return C(Lt(x(fe),{replace:!0}))}function _(fe){const we=fe.matched[fe.matched.length-1];if(we&&we.redirect){const{redirect:J}=we;let G=typeof J=="function"?J(fe):J;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=x(G):{path:G},G.params={}),Lt({query:fe.query,hash:fe.hash,params:G.path!=null?{}:fe.params},G)}}function F(fe,we){const J=u=b(fe),G=s.value,Te=fe.state,Ne=fe.force,H=fe.replace===!0,oe=_(J);if(oe)return F(Lt(x(oe),{state:typeof oe=="object"?Lt({},Te,oe.state):Te,force:Ne,replace:H}),we||J);const ge=J;ge.redirectedFrom=we;let Ce;return!Ne&&iH(n,G,J)&&(Ce=Ta(16,{to:ge,from:G}),U(G,G,!0,!1)),(Ce?Promise.resolve(Ce):B(ge,G)).catch(se=>sr(se)?sr(se,2)?se:Q(se):I(se,ge,G)).then(se=>{if(se){if(sr(se,2))return F(Lt({replace:H},x(se.to),{state:typeof se.to=="object"?Lt({},Te,se.to.state):Te,force:Ne}),we||ge)}else se=V(ge,G,!0,H,Te);return j(ge,G,se),se})}function P(fe,we){const J=E(fe,we);return J?Promise.reject(J):Promise.resolve()}function z(fe){const we=he.values().next().value;return we&&typeof we.runWithContext=="function"?we.runWithContext(fe):fe()}function B(fe,we){let J;const[G,Te,Ne]=VH(fe,we);J=u0(G.reverse(),"beforeRouteLeave",fe,we);for(const oe of G)oe.leaveGuards.forEach(ge=>{J.push(Hr(ge,fe,we))});const H=P.bind(null,fe,we);return J.push(H),pe(J).then(()=>{J=[];for(const oe of i.list())J.push(Hr(oe,fe,we));return J.push(H),pe(J)}).then(()=>{J=u0(Te,"beforeRouteUpdate",fe,we);for(const oe of Te)oe.updateGuards.forEach(ge=>{J.push(Hr(ge,fe,we))});return J.push(H),pe(J)}).then(()=>{J=[];for(const oe of Ne)if(oe.beforeEnter)if(An(oe.beforeEnter))for(const ge of oe.beforeEnter)J.push(Hr(ge,fe,we));else J.push(Hr(oe.beforeEnter,fe,we));return J.push(H),pe(J)}).then(()=>(fe.matched.forEach(oe=>oe.enterCallbacks={}),J=u0(Ne,"beforeRouteEnter",fe,we,z),J.push(H),pe(J))).then(()=>{J=[];for(const oe of a.list())J.push(Hr(oe,fe,we));return J.push(H),pe(J)}).catch(oe=>sr(oe,8)?oe:Promise.reject(oe))}function j(fe,we,J){l.list().forEach(G=>z(()=>G(fe,we,J)))}function V(fe,we,J,G,Te){const Ne=E(fe,we);if(Ne)return Ne;const H=we===Br,oe=ba?history.state:{};J&&(G||H?r.replace(fe.fullPath,Lt({scroll:H&&oe&&oe.scroll},Te)):r.push(fe.fullPath,Te)),s.value=fe,U(fe,we,J,H),Q()}let K;function N(){K||(K=r.listen((fe,we,J)=>{if(!Se.listening)return;const G=b(fe),Te=_(G);if(Te){F(Lt(Te,{replace:!0}),G).catch(Hl);return}u=G;const Ne=s.value;ba&&hH(S4(Ne.fullPath,J.delta),Yd()),B(G,Ne).catch(H=>sr(H,12)?H:sr(H,2)?(F(H.to,G).then(oe=>{sr(oe,20)&&!J.delta&&J.type===ds.pop&&r.go(-1,!1)}).catch(Hl),Promise.reject()):(J.delta&&r.go(-J.delta,!1),I(H,G,Ne))).then(H=>{H=H||V(G,Ne,!1),H&&(J.delta&&!sr(H,8)?r.go(-J.delta,!1):J.type===ds.pop&&sr(H,20)&&r.go(-1,!1)),j(G,Ne,H)}).catch(Hl)}))}let T=pl(),L=pl(),R;function I(fe,we,J){Q(fe);const G=L.list();return G.length?G.forEach(Te=>Te(fe,we,J)):console.error(fe),Promise.reject(fe)}function w(){return R&&s.value!==Br?Promise.resolve():new Promise((fe,we)=>{T.add([fe,we])})}function Q(fe){return R||(R=!fe,N(),T.list().forEach(([we,J])=>fe?J(fe):we()),T.reset()),fe}function U(fe,we,J,G){const{scrollBehavior:Te}=e;if(!ba||!Te)return Promise.resolve();const Ne=!J&&pH(S4(fe.fullPath,0))||(G||!J)&&history.state&&history.state.scroll||null;return Mt().then(()=>Te(fe,we,Ne)).then(H=>H&&fH(H)).catch(H=>I(H,fe,we))}const X=fe=>r.go(fe);let re;const he=new Set,Se={currentRoute:s,listening:!0,addRoute:f,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:b,options:e,push:C,replace:k,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:L.add,isReady:w,install(fe){const we=this;fe.component("RouterLink",Sl),fe.component("RouterView",Dv),fe.config.globalProperties.$router=we,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>S(s)}),ba&&!re&&s.value===Br&&(re=!0,C(r.location).catch(Te=>{}));const J={};for(const Te in Br)Object.defineProperty(J,Te,{get:()=>s.value[Te],enumerable:!0});fe.provide(Qd,we),fe.provide(s6,m5(J)),fe.provide(y1,s);const G=fe.unmount;he.add(fe),fe.unmount=function(){he.delete(fe),he.size<1&&(u=Br,K&&K(),K=null,s.value=Br,re=!1,R=!1),G()}}};function pe(fe){return fe.reduce((we,J)=>we.then(()=>z(J)),Promise.resolve())}return Se}function VH(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aDa(u,l))?n.push(l):o.push(l));const s=e.matched[a];s&&(t.matched.find(u=>Da(u,s))||r.push(s))}return[o,n,r]}function WH(){return Oe(Qd)}function Tv(e){return Oe(s6)}function Me(e,t){return e.then(function(o){return[null,o]}).catch(function(o){return[o,void 0]})}let jH=0;function UH(e){return`${e}_callback_${Date.now()}_${jH++}`}function Fe(e,t){return typeof t>"u"&&(t={}),new Promise((o,n)=>{const r=UH("exec");window[r]=(a,l,s)=>{o({errno:a,stdout:l,stderr:s}),i(r)};function i(a){delete window[a]}try{ksu.exec(e,JSON.stringify(t),r)}catch(a){n(a),i(r)}})}const ui=Ki("logs",()=>{const e=$("");function t(r,i){e.value+=`[error] ${r}${i!==void 0?":"+i:""} + */const ba=typeof document<"u";function Sv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function VL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Sv(e.default)}const Lt=Object.assign;function l0(e,t){const o={};for(const n in t){const r=t[n];o[n]=An(r)?r.map(e):e(r)}return o}const Hl=()=>{},An=Array.isArray,Fv=/#/g,WL=/&/g,jL=/\//g,UL=/=/g,KL=/\?/g,Ev=/\+/g,GL=/%5B/g,qL=/%5D/g,kv=/%5E/g,ZL=/%60/g,_v=/%7B/g,XL=/%7C/g,Mv=/%7D/g,YL=/%20/g;function l6(e){return encodeURI(""+e).replace(XL,"|").replace(GL,"[").replace(qL,"]")}function QL(e){return l6(e).replace(_v,"{").replace(Mv,"}").replace(kv,"^")}function b1(e){return l6(e).replace(Ev,"%2B").replace(YL,"+").replace(Fv,"%23").replace(WL,"%26").replace(ZL,"`").replace(_v,"{").replace(Mv,"}").replace(kv,"^")}function JL(e){return b1(e).replace(UL,"%3D")}function eH(e){return l6(e).replace(Fv,"%23").replace(KL,"%3F")}function tH(e){return e==null?"":eH(e).replace(jL,"%2F")}function us(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const oH=/\/$/,nH=e=>e.replace(oH,"");function s0(e,t,o="/"){let n,r={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),r=e(i)),l>-1&&(n=n||t.slice(0,l),a=t.slice(l,t.length)),n=lH(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:us(a)}}function rH(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function C4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iH(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&Da(t.matched[n],o.matched[r])&&Rv(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Da(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!aH(e[o],t[o]))return!1;return!0}function aH(e,t){return An(e)?w4(e,t):An(t)?w4(t,e):e===t}function w4(e,t){return An(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function lH(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,a,l;for(a=0;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const Br={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ds;(function(e){e.pop="pop",e.push="push"})(ds||(ds={}));var Nl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nl||(Nl={}));function sH(e){if(!e)if(ba){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nH(e)}const uH=/^[^#]+#/;function dH(e,t){return e.replace(uH,"#")+t}function cH(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const Yd=()=>({left:window.scrollX,top:window.scrollY});function fH(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=cH(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function S4(e,t){return(history.state?history.state.position-t:-1)+e}const x1=new Map;function hH(e,t){x1.set(e,t)}function pH(e){const t=x1.get(e);return x1.delete(e),t}let mH=()=>location.protocol+"//"+location.host;function zv(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,s=r.slice(l);return s[0]!=="/"&&(s="/"+s),C4(s,"")}return C4(o,e)+n+r}function gH(e,t,o,n){let r=[],i=[],a=null;const l=({state:h})=>{const f=zv(e,location),p=o.value,g=t.value;let v=0;if(h){if(o.value=f,t.value=h,a&&a===p){a=null;return}v=g?h.position-g.position:0}else n(f);r.forEach(b=>{b(o.value,p,{delta:v,type:ds.pop,direction:v?v>0?Nl.forward:Nl.back:Nl.unknown})})};function s(){a=o.value}function u(h){r.push(h);const f=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return i.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Lt({},h.state,{scroll:Yd()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:s,listen:u,destroy:c}}function F4(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?Yd():null}}function vH(e){const{history:t,location:o}=window,n={value:zv(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,u,d){const c=e.indexOf("#"),h=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+s:mH()+e+s;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(f){console.error(f),o[d?"replace":"assign"](h)}}function a(s,u){const d=Lt({},t.state,F4(r.value.back,s,r.value.forward,!0),u,{position:r.value.position});i(s,d,!0),n.value=s}function l(s,u){const d=Lt({},r.value,t.state,{forward:s,scroll:Yd()});i(d.current,d,!0);const c=Lt({},F4(n.value,s,null),{position:d.position+1},u);i(s,c,!1),n.value=s}return{location:n,state:r,push:l,replace:a}}function bH(e){e=sH(e);const t=vH(e),o=gH(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Lt({location:"",base:e,go:n,createHref:dH.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function xH(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),bH(e)}function yH(e){return typeof e=="string"||e&&typeof e=="object"}function $v(e){return typeof e=="string"||typeof e=="symbol"}const Pv=Symbol("");var E4;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(E4||(E4={}));function Ta(e,t){return Lt(new Error,{type:e,[Pv]:!0},t)}function sr(e,t){return e instanceof Error&&Pv in e&&(t==null||!!(e.type&t))}const k4="[^/]+?",CH={sensitive:!1,strict:!1,start:!0,end:!0},wH=/[.+*?^${}()[\]/\\]/g;function SH(e,t){const o=Lt({},CH,t),n=[];let r=o.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];o.strict&&!u.length&&(r+="/");for(let c=0;ct.length?t.length===1&&t[0]===80?1:-1:0}function Av(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const EH={type:0,value:""},kH=/[a-zA-Z0-9_]/;function _H(e){if(!e)return[[]];if(e==="/")return[[EH]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${o})/"${u}": ${f}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let l=0,s,u="",d="";function c(){u&&(o===0?i.push({type:0,value:u}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l{a(E)}:Hl}function a(c){if($v(c)){const h=n.get(c);h&&(n.delete(c),o.splice(o.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=o.indexOf(c);h>-1&&(o.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function l(){return o}function s(c){const h=PH(c,o);o.splice(h,0,c),c.record.name&&!z4(c)&&n.set(c.record.name,c)}function u(c,h){let f,p={},g,v;if("name"in c&&c.name){if(f=n.get(c.name),!f)throw Ta(1,{location:c});v=f.record.name,p=Lt(M4(h.params,f.keys.filter(E=>!E.optional).concat(f.parent?f.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),c.params&&M4(c.params,f.keys.map(E=>E.name))),g=f.stringify(p)}else if(c.path!=null)g=c.path,f=o.find(E=>E.re.test(g)),f&&(p=f.parse(g),v=f.record.name);else{if(f=h.name?n.get(h.name):o.find(E=>E.re.test(h.path)),!f)throw Ta(1,{location:c,currentLocation:h});v=f.record.name,p=Lt({},h.params,c.params),g=f.stringify(p)}const b=[];let x=f;for(;x;)b.unshift(x.record),x=x.parent;return{name:v,path:g,params:p,matched:b,meta:$H(b)}}e.forEach(c=>i(c));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:d,getRoutes:l,getRecordMatcher:r}}function M4(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function R4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:zH(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function zH(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function z4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $H(e){return e.reduce((t,o)=>Lt(t,o.meta),{})}function $4(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function PH(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;Av(e,t[i])<0?n=i:o=i+1}const r=AH(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function AH(e){let t=e;for(;t=t.parent;)if(Bv(t)&&Av(e,t)===0)return t}function Bv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function BH(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&b1(i)):[n&&b1(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function DH(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=An(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const TH=Symbol(""),A4=Symbol(""),Qd=Symbol(""),s6=Symbol(""),y1=Symbol("");function pl(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Hr(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,s)=>{const u=h=>{h===!1?s(Ta(4,{from:o,to:t})):h instanceof Error?s(h):yH(h)?s(Ta(2,{from:t,to:h})):(a&&n.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),l())},d=i(()=>e.call(n&&n.instances[r],t,o,u));let c=Promise.resolve(d);e.length<3&&(c=c.then(u)),c.catch(h=>s(h))})}function u0(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(Sv(s)){const d=(s.__vccOpts||s)[t];d&&i.push(Hr(d,o,n,a,l,r))}else{let u=s();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);const c=VL(d)?d.default:d;a.mods[l]=d,a.components[l]=c;const f=(c.__vccOpts||c)[t];return f&&Hr(f,o,n,a,l,r)()}))}}return i}function B4(e){const t=Oe(Qd),o=Oe(s6),n=D(()=>{const s=S(e.to);return t.resolve(s)}),r=D(()=>{const{matched:s}=n.value,{length:u}=s,d=s[u-1],c=o.matched;if(!d||!c.length)return-1;const h=c.findIndex(Da.bind(null,d));if(h>-1)return h;const f=D4(s[u-2]);return u>1&&D4(d)===f&&c[c.length-1].path!==f?c.findIndex(Da.bind(null,s[u-2])):h}),i=D(()=>r.value>-1&&LH(o.params,n.value.params)),a=D(()=>r.value>-1&&r.value===o.matched.length-1&&Rv(o.params,n.value.params));function l(s={}){return OH(s)?t[S(e.replace)?"replace":"push"](S(e.to)).catch(Hl):Promise.resolve()}return{route:n,href:D(()=>n.value.href),isActive:i,isExactActive:a,navigate:l}}const IH=ye({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:B4,setup(e,{slots:t}){const o=It(B4(e)),{options:n}=Oe(Qd),r=D(()=>({[T4(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[T4(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),Sl=IH;function OH(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function LH(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!An(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function D4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const T4=(e,t,o)=>e??t??o,HH=ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Oe(y1),r=D(()=>e.route||n.value),i=Oe(A4,0),a=D(()=>{let u=S(i);const{matched:d}=r.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),l=D(()=>r.value.matched[a.value]);tt(A4,D(()=>a.value+1)),tt(TH,l),tt(y1,r);const s=$();return lt(()=>[s.value,l.value,e.name],([u,d,c],[h,f,p])=>{d&&(d.instances[c]=u,f&&f!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),u&&d&&(!f||!Da(d,f)||!h)&&(d.enterCallbacks[c]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,c=l.value,h=c&&c.components[d];if(!h)return I4(o.default,{Component:h,route:u});const f=c.props[d],p=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=m(h,Lt({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[d]=null)},ref:s}));return I4(o.default,{Component:v,route:u})||v}}});function I4(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Dv=HH;function NH(e){const t=RH(e.routes,e),o=e.parseQuery||BH,n=e.stringifyQuery||P4,r=e.history,i=pl(),a=pl(),l=pl(),s=xd(Br);let u=Br;ba&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=l0.bind(null,fe=>""+fe),c=l0.bind(null,tH),h=l0.bind(null,us);function f(fe,Ce){let ee,q;return $v(fe)?(ee=t.getRecordMatcher(fe),q=Ce):q=fe,t.addRoute(q,ee)}function p(fe){const Ce=t.getRecordMatcher(fe);Ce&&t.removeRoute(Ce)}function g(){return t.getRoutes().map(fe=>fe.record)}function v(fe){return!!t.getRecordMatcher(fe)}function b(fe,Ce){if(Ce=Lt({},Ce||s.value),typeof fe=="string"){const V=s0(o,fe,Ce.path),ge=t.resolve({path:V.path},Ce),we=r.createHref(V.fullPath);return Lt(V,ge,{params:h(ge.params),hash:us(V.hash),redirectedFrom:void 0,href:we})}let ee;if(fe.path!=null)ee=Lt({},fe,{path:s0(o,fe.path,Ce.path).path});else{const V=Lt({},fe.params);for(const ge in V)V[ge]==null&&delete V[ge];ee=Lt({},fe,{params:c(V)}),Ce.params=c(Ce.params)}const q=t.resolve(ee,Ce),Te=fe.hash||"";q.params=d(h(q.params));const Ne=rH(n,Lt({},fe,{hash:QL(Te),path:q.path})),j=r.createHref(Ne);return Lt({fullPath:Ne,hash:Te,query:n===P4?DH(fe.query):fe.query||{}},q,{redirectedFrom:void 0,href:j})}function x(fe){return typeof fe=="string"?s0(o,fe,s.value.path):Lt({},fe)}function E(fe,Ce){if(u!==fe)return Ta(8,{from:Ce,to:fe})}function w(fe){return F(fe)}function k(fe){return w(Lt(x(fe),{replace:!0}))}function _(fe){const Ce=fe.matched[fe.matched.length-1];if(Ce&&Ce.redirect){const{redirect:ee}=Ce;let q=typeof ee=="function"?ee(fe):ee;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=x(q):{path:q},q.params={}),Lt({query:fe.query,hash:fe.hash,params:q.path!=null?{}:fe.params},q)}}function F(fe,Ce){const ee=u=b(fe),q=s.value,Te=fe.state,Ne=fe.force,j=fe.replace===!0,V=_(ee);if(V)return F(Lt(x(V),{state:typeof V=="object"?Lt({},Te,V.state):Te,force:Ne,replace:j}),Ce||ee);const ge=ee;ge.redirectedFrom=Ce;let we;return!Ne&&iH(n,q,ee)&&(we=Ta(16,{to:ge,from:q}),K(q,q,!0,!1)),(we?Promise.resolve(we):A(ge,q)).catch(le=>sr(le)?sr(le,2)?le:y(le):L(le,ge,q)).then(le=>{if(le){if(sr(le,2))return F(Lt({replace:j},x(le.to),{state:typeof le.to=="object"?Lt({},Te,le.to.state):Te,force:Ne}),Ce||ge)}else le=H(ge,q,!0,j,Te);return G(ge,q,le),le})}function P(fe,Ce){const ee=E(fe,Ce);return ee?Promise.reject(ee):Promise.resolve()}function z(fe){const Ce=se.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(fe):fe()}function A(fe,Ce){let ee;const[q,Te,Ne]=VH(fe,Ce);ee=u0(q.reverse(),"beforeRouteLeave",fe,Ce);for(const V of q)V.leaveGuards.forEach(ge=>{ee.push(Hr(ge,fe,Ce))});const j=P.bind(null,fe,Ce);return ee.push(j),pe(ee).then(()=>{ee=[];for(const V of i.list())ee.push(Hr(V,fe,Ce));return ee.push(j),pe(ee)}).then(()=>{ee=u0(Te,"beforeRouteUpdate",fe,Ce);for(const V of Te)V.updateGuards.forEach(ge=>{ee.push(Hr(ge,fe,Ce))});return ee.push(j),pe(ee)}).then(()=>{ee=[];for(const V of Ne)if(V.beforeEnter)if(An(V.beforeEnter))for(const ge of V.beforeEnter)ee.push(Hr(ge,fe,Ce));else ee.push(Hr(V.beforeEnter,fe,Ce));return ee.push(j),pe(ee)}).then(()=>(fe.matched.forEach(V=>V.enterCallbacks={}),ee=u0(Ne,"beforeRouteEnter",fe,Ce,z),ee.push(j),pe(ee))).then(()=>{ee=[];for(const V of a.list())ee.push(Hr(V,fe,Ce));return ee.push(j),pe(ee)}).catch(V=>sr(V,8)?V:Promise.reject(V))}function G(fe,Ce,ee){l.list().forEach(q=>z(()=>q(fe,Ce,ee)))}function H(fe,Ce,ee,q,Te){const Ne=E(fe,Ce);if(Ne)return Ne;const j=Ce===Br,V=ba?history.state:{};ee&&(q||j?r.replace(fe.fullPath,Lt({scroll:j&&V&&V.scroll},Te)):r.push(fe.fullPath,Te)),s.value=fe,K(fe,Ce,ee,j),y()}let X;function N(){X||(X=r.listen((fe,Ce,ee)=>{if(!Fe.listening)return;const q=b(fe),Te=_(q);if(Te){F(Lt(Te,{replace:!0}),q).catch(Hl);return}u=q;const Ne=s.value;ba&&hH(S4(Ne.fullPath,ee.delta),Yd()),A(q,Ne).catch(j=>sr(j,12)?j:sr(j,2)?(F(j.to,q).then(V=>{sr(V,20)&&!ee.delta&&ee.type===ds.pop&&r.go(-1,!1)}).catch(Hl),Promise.reject()):(ee.delta&&r.go(-ee.delta,!1),L(j,q,Ne))).then(j=>{j=j||H(q,Ne,!1),j&&(ee.delta&&!sr(j,8)?r.go(-ee.delta,!1):ee.type===ds.pop&&sr(j,20)&&r.go(-1,!1)),G(q,Ne,j)}).catch(Hl)}))}let T=pl(),O=pl(),R;function L(fe,Ce,ee){y(fe);const q=O.list();return q.length?q.forEach(Te=>Te(fe,Ce,ee)):console.error(fe),Promise.reject(fe)}function ne(){return R&&s.value!==Br?Promise.resolve():new Promise((fe,Ce)=>{T.add([fe,Ce])})}function y(fe){return R||(R=!fe,N(),T.list().forEach(([Ce,ee])=>fe?ee(fe):Ce()),T.reset()),fe}function K(fe,Ce,ee,q){const{scrollBehavior:Te}=e;if(!ba||!Te)return Promise.resolve();const Ne=!ee&&pH(S4(fe.fullPath,0))||(q||!ee)&&history.state&&history.state.scroll||null;return Mt().then(()=>Te(fe,Ce,Ne)).then(j=>j&&fH(j)).catch(j=>L(j,fe,Ce))}const U=fe=>r.go(fe);let ue;const se=new Set,Fe={currentRoute:s,listening:!0,addRoute:f,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:b,options:e,push:w,replace:k,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:O.add,isReady:ne,install(fe){const Ce=this;fe.component("RouterLink",Sl),fe.component("RouterView",Dv),fe.config.globalProperties.$router=Ce,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>S(s)}),ba&&!ue&&s.value===Br&&(ue=!0,w(r.location).catch(Te=>{}));const ee={};for(const Te in Br)Object.defineProperty(ee,Te,{get:()=>s.value[Te],enumerable:!0});fe.provide(Qd,Ce),fe.provide(s6,m5(ee)),fe.provide(y1,s);const q=fe.unmount;se.add(fe),fe.unmount=function(){se.delete(fe),se.size<1&&(u=Br,X&&X(),X=null,s.value=Br,ue=!1,R=!1),q()}}};function pe(fe){return fe.reduce((Ce,ee)=>Ce.then(()=>z(ee)),Promise.resolve())}return Fe}function VH(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aDa(u,l))?n.push(l):o.push(l));const s=e.matched[a];s&&(t.matched.find(u=>Da(u,s))||r.push(s))}return[o,n,r]}function WH(){return Oe(Qd)}function Tv(e){return Oe(s6)}function _e(e,t){return e.then(function(o){return[null,o]}).catch(function(o){return[o,void 0]})}let jH=0;function UH(e){return`${e}_callback_${Date.now()}_${jH++}`}function Se(e,t){return typeof t>"u"&&(t={}),new Promise((o,n)=>{const r=UH("exec");window[r]=(a,l,s)=>{o({errno:a,stdout:l,stderr:s}),i(r)};function i(a){delete window[a]}try{ksu.exec(e,JSON.stringify(t),r)}catch(a){n(a),i(r)}})}const ui=Ki("logs",()=>{const e=$("");function t(r,i){e.value+=`[error] ${r}${i!==void 0?":"+i:""} `}function o(r,i){const a=`[info] ${r}${i!==void 0?":"+i:""} `;e.value+=a,console.log(a)}function n(r,i){e.value+=`[success] ${r}${i!==void 0?":"+i:""} -`}return{content:e,error:t,info:o,success:n}}),ke=(e,t="Uncaught")=>e.then(o=>(O4("Resolved",o,t),o)).catch(o=>{throw O4("Rejected",o,t),o}),O4=(e,t,o)=>{const n=ui(),r=e==="Resolved"?"success":"error";typeof t=="string"?t.trim().startsWith("<")&&t.trim().endsWith(">")?n[r](`${e}:${o}`,"XML data detected."):n[r](`${e}:${o}`,t):typeof t=="object"?Array.isArray(t)?n[r](`${e}:${o}`,JSON.stringify(t,null,2)):t instanceof Error?n.error(`${e}::${o}`,t.message):n[r](`${e}:${o}`,JSON.stringify(t,null,2)):typeof t=="function"?n[r](`${e}:${o}`,`Function called ${t.name?t.name:"anonymous function"}`):n[r](`${e}:${o}`,t)},KH=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "SELECT * FROM gamebooster_table WHERE package_name!='none';" -json)"`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Fe(o);if(i&&r(l),a)try{const s=JSON.parse(a);n(s)}catch(s){r(s)}else r(i)}}),o)},EX=()=>{const e="am start -n com.miui.securitycenter/com.miui.gamebooster.ui.SelectGameLandActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},kX=(e,t,o)=>{const i=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "UPDATE gamebooster_table SET game_ratio='${t}', game_gravity='${o}' WHERE package_name='${e}'; SELECT changes();")"`;return ke(new Promise(async(a,l)=>{{const{errno:s,stdout:u,stderr:d}=await Fe(i);s&&l(d),u&&a(u)}}),i)};function GH(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(0),i=$(0),a=$(0),l=$([{label:"关闭键盘",type:"error",key:0},{label:"连接键盘",type:"success",key:1},{label:"复位键盘",type:"warning",key:2}]),s=$({label:"关闭键盘",type:"error",key:0}),u=async()=>{n.create({title:"想启用该功能吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("该功能仅兼容")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("水龙(Amktiao)")])," ",M("的移植包,不兼容其他移植包作者,请确保当前使用的是水龙的移植包再启用该功能,确定要继续吗?")])]),positiveText:"确认启用",negativeText:"我再想想",onPositiveClick:()=>{e.showThirdPartySetting.amktiaoROMInterface=!0}})},d=async f=>{const[p,g]=await Me(new Promise((v,b)=>{f===1?n.create({title:"想切换为键盘链接模式吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("切换为")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("键盘连接状态")])," ",M("前,请确保设备先连接上键盘,否则会存在静电击穿 CPU 的风险,确定要继续吗?")])]),positiveText:"确定切换为键盘连接状态",negativeText:"我再想想",onPositiveClick:()=>{v("positiveClick")},onNegativeClick:()=>{b("negativeClick")}}):v("positiveClick")}));g&&lV(f).then(v=>{a.value=f,s.value=l.value[f]}).catch(v=>{n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"})})},c=async f=>{const[p,g]=await Me(JN(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Me(eV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=1)}else{const[v,b]=await Me(tV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=0)}},h=async f=>{const[p,g]=await Me(nV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Me(rV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=1}else{const[v,b]=await Me(iV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=0}};return ut(async()=>{if(e.hasPenUpdateControl){const[,f]=await Me(QN());Number(f)&&(r.value=1)}if(e.hasPenEnableControl){const[,f]=await Me(oV());Number(f)&&(i.value=1)}if(e.hasKeyboardControl){const[,f]=await Me(aV());if(f){const p=Number(f);a.value=p,s.value=l.value[p]}}}),{currentPenUpdate:r,currentPenEnable:i,currentKeyboardMode:a,keyboardModeOptions:l,currentKeyboardModeSelect:s,changeKeyboardMode:d,changePenUpdateMode:c,changePenEnableMode:h,enableSetting:u}}const u6=e=>{const t=/([A-Za-z0-9+/=]{16,})/g,o=e.match(t);return o&&o.length>0?o[0]:null},Eo=(e,t)=>t?`${t}(${e})`:e,qH=e=>{const t={};return e.split(` +`}return{content:e,error:t,info:o,success:n}}),ke=(e,t="Uncaught")=>e.then(o=>(O4("Resolved",o,t),o)).catch(o=>{throw O4("Rejected",o,t),o}),O4=(e,t,o)=>{const n=ui(),r=e==="Resolved"?"success":"error";typeof t=="string"?t.trim().startsWith("<")&&t.trim().endsWith(">")?n[r](`${e}:${o}`,"XML data detected."):n[r](`${e}:${o}`,t):typeof t=="object"?Array.isArray(t)?n[r](`${e}:${o}`,JSON.stringify(t,null,2)):t instanceof Error?n.error(`${e}::${o}`,t.message):n[r](`${e}:${o}`,JSON.stringify(t,null,2)):typeof t=="function"?n[r](`${e}:${o}`,`Function called ${t.name?t.name:"anonymous function"}`):n[r](`${e}:${o}`,t)},KH=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "SELECT * FROM gamebooster_table WHERE package_name!='none';" -json)"`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);if(i&&r(l),a)try{const s=JSON.parse(a);n(s)}catch(s){r(s)}else r(i)}}),o)},AX=()=>{const e="am start -n com.miui.securitycenter/com.miui.gamebooster.ui.SelectGameLandActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},BX=(e,t,o)=>{const i=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "UPDATE gamebooster_table SET game_ratio='${t}', game_gravity='${o}' WHERE package_name='${e}'; SELECT changes();")"`;return ke(new Promise(async(a,l)=>{{const{errno:s,stdout:u,stderr:d}=await Se(i);s&&l(d),u&&a(u)}}),i)};function GH(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(0),i=$(0),a=$(0),l=$([{label:"关闭键盘",type:"error",key:0},{label:"连接键盘",type:"success",key:1},{label:"复位键盘",type:"warning",key:2}]),s=$({label:"关闭键盘",type:"error",key:0}),u=async()=>{n.create({title:"想启用该功能吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("该功能仅兼容")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("水龙(Amktiao)")])," ",M("的移植包,不兼容其他移植包作者,请确保当前使用的是水龙的移植包再启用该功能,确定要继续吗?")])]),positiveText:"确认启用",negativeText:"我再想想",onPositiveClick:()=>{e.showThirdPartySetting.amktiaoROMInterface=!0}})},d=async f=>{const[p,g]=await _e(new Promise((v,b)=>{f===1?n.create({title:"想切换为键盘链接模式吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("切换为")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("键盘连接状态")])," ",M("前,请确保设备先连接上键盘,否则会存在静电击穿 CPU 的风险,确定要继续吗?")])]),positiveText:"确定切换为键盘连接状态",negativeText:"我再想想",onPositiveClick:()=>{v("positiveClick")},onNegativeClick:()=>{b("negativeClick")}}):v("positiveClick")}));g&&lV(f).then(v=>{a.value=f,s.value=l.value[f]}).catch(v=>{n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"})})},c=async f=>{const[p,g]=await _e(JN(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await _e(eV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=1)}else{const[v,b]=await _e(tV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=0)}},h=async f=>{const[p,g]=await _e(nV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await _e(rV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=1}else{const[v,b]=await _e(iV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=0}};return ut(async()=>{if(e.hasPenUpdateControl){const[,f]=await _e(QN());Number(f)&&(r.value=1)}if(e.hasPenEnableControl){const[,f]=await _e(oV());Number(f)&&(i.value=1)}if(e.hasKeyboardControl){const[,f]=await _e(aV());if(f){const p=Number(f);a.value=p,s.value=l.value[p]}}}),{currentPenUpdate:r,currentPenEnable:i,currentKeyboardMode:a,keyboardModeOptions:l,currentKeyboardModeSelect:s,changeKeyboardMode:d,changePenUpdateMode:c,changePenEnableMode:h,enableSetting:u}}const u6=e=>{const t=/([A-Za-z0-9+/=]{16,})/g,o=e.match(t);return o&&o.length>0?o[0]:null},Eo=(e,t)=>t?`${t}(${e})`:e,qH=e=>{const t={};return e.split(` `).forEach(o=>{if(o=o.trim(),o&&!o.startsWith("#")){const[n,r]=o.split("=");n&&r&&(t[n.trim()]=r.trim())}}),t},ZH=e=>e?e==="*:0"?"VIEW_POLICY_DEFAULT":e==="*:1"?"VIEW_POLICY_STRETCH":e==="*:2"?"VIEW_POLICY_AUTO_COLUMNS":e==="*:6"?"VIEW_POLICY_FLOAT":"CUSTOM_VIEW_POLICY":"UNDEFINED_VIEW_POLICY",d0=(e,t,o)=>{var i;const n=t?(i=t.supportModes)==null?void 0:i.split(","):null,r={};return e&&!e.fullRule&&(r.embeddedEnable=o==="embedded"),t&&(n!=null&&n.includes("full")&&(r.ratio_fullScreenEnable=o==="fullScreen",e&&e.hasOwnProperty("fullRule")&&(r.fullScreenEnable=!0)),r.hasOwnProperty("fullScreen")||(r.fixedOrientationEnable=o==="fixedOrientation")),r},Iv=(e,t)=>{var i;const o=(i=t==null?void 0:t.supportModes)==null?void 0:i.split(","),n=t==null?void 0:t.defaultSettings;let r="disabled";return t&&(r="fixedOrientation"),t&&t.hasOwnProperty("disable")&&t.disable&&(r="disabled"),t&&t.hasOwnProperty("supportModes")&&(o!=null&&o.includes("full"))&&(!n||n==="full")&&(r="fullScreen"),e&&!e.hasOwnProperty("fullRule")&&(!n||n==="ae")&&(r="embedded"),r},ml=e=>{if(e==="disabled")return 0;if(e==="embedded")return 1;if(e==="fixedOrientation")return 2;if(e==="fullScreen")return 3;throw new Error("wrong error AppModeCode!")},Ov=e=>TR(e,t=>typeof t=="string"?Tf(t)==="true"?!0:Tf(t)==="false"?!1:isNaN(Number(t))?t:Number(t):t),hn=(e,t,o,n=!1)=>{const r=new DOMParser;let i=r.parseFromString(e,"application/xml");if(n){let u=`<${t}> ${e} @@ -4150,16 +4150,16 @@ ${t} `.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"");i=r.parseFromString(u,"application/xml")}const a=i.getElementsByTagName(o),l={};return Array.from(a).forEach(s=>{const u=s.getAttribute("name");if(u){const d={};Array.from(s.attributes).forEach(c=>{d[c.name]=c.value}),l[u]={name:u,...Ov(d)}}}),l},ct=(e,t,o)=>{const n=r=>{let i="";if(!Object.keys(e))return i;for(const a in r)if(r.hasOwnProperty(a)){i+=` <${t}`;for(const[l,s]of Object.entries(r[a]))i+=` ${l}="${String(s)}"`;i+=` /> `}return i};return o?` <${o}> -${n(e)}`:n(e)},Vl=e=>VR(e,"name"),L4=(e,t,o,n={},r={},i={})=>{const a=St(),l=[];return new Set([...Object.keys(e),...Object.keys(t),...Object.keys(n),...Object.keys(r)]).forEach(u=>{var F;const d=n[u]??e[u],c=r[u]??t[u],h=i[u]??o[u],f=(F=c==null?void 0:c.supportModes)==null?void 0:F.split(",");c==null||c.defaultSettings;let p="disabled",g=d?!d.fullRule:!1,v=(f==null?void 0:f.includes("fo"))||c&&!c.hasOwnProperty("disable")||!1,b=(f==null?void 0:f.includes("full"))||!1,x=n[u]||r[u]||i[u]?"custom":"module";if(a.MIOSVersion&&a.MIOSVersion>=2)h?(p="disabled",h.fixedOrientationEnable&&(p="fixedOrientation"),h.ratio_fullScreenEnable&&(p="fullScreen"),h.embeddedEnable&&(p="embedded")):p=Iv(d,c);else if(h!=null&&h.hasOwnProperty("embeddedEnable"))h.embeddedEnable&&d?p=d.fullRule?"fullScreen":"embedded":c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation");else if(c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation"),d){const P=d.hasOwnProperty("defaultSettings")&&d.defaultSettings;(!d.hasOwnProperty("defaultSettings")||P)&&(p=d.fullRule?"fullScreen":"embedded")}const E=Vl(d),C=Vl(c),k=Vl(h),_={name:u,settingMode:p,isSupportEmbedded:g,isSupportFixedOrientation:v,isSupportFullScreen:b,ruleMode:x,embeddedRules:E||void 0,fixedOrientationRule:C||void 0,settingRule:k||void 0};l.push(_)}),l},H4=(e,t={},o={})=>{const n=[];return new Set([...Object.keys(e),...Object.keys(t)]).forEach(i=>{const a=t[i]?t[i]:e[i],l=o[i];let s="module";t[i]&&(s="custom");const u=Vl(l),d=Vl(a),c={name:i,ruleMode:s,settingMode:ZH(a.activityRule||""),autoUIRule:d||void 0,settingRule:u||void 0};n.push(c)}),n},St=Ki("device",()=>{const e=$(),t=$(),o=$(),n=It({socName:"",socModel:"",display0Panel:"",memoryInfo:""}),r=$(),i=$(!1),a=$(),l=$(!1),s=$(!1),u=$(!1),d=$(!1),c=$(window.innerWidth),h=$(!1),f=$(""),p=$([]),g=$({}),v=$(""),b=$(""),x=$("Magisk"),E=$(!1),C=It({installed:!1,mode:void 0}),k=It({KSU:!1,KSU_VER:"",KSU_VER_CODE:0,KSU_KERNEL_VER_CODE:0,APATCH:!1,APATCH_VER_CODE:0,APATCH_VER:0,MAGISK_VER:"",MAGISK_VER_CODE:""}),_=It({sohQcom:0,sohMTK:0,sohXMPower:0,chargeFullDesign:0,chargeFull:0,cycleCount:0}),F=It({OS2_PAD_EMBEDDED_APP_MANAGER:!0,Hyper_OS_DOT_BLACK_LIST_MANAGER:!0,GAME_BOOSTER_RADIO_MANAGER:!0,GAME_BOOSTER_CUSTOM_RATIO:!1}),P=$(),z=$(!1),B=$(!1),j=$(!1),V=$(!1),K=$("autoRhythm"),N=$(!0),T=It([]),L=It({GameMode:!1,MIUIContentExt:!1,lowWebViewVersion:!1,patchModeAlert:!1}),R=It({amktiaoROMInterface:!1}),I=D(()=>T.length>0);async function w(){return new Promise(async(U,X)=>{const[re,he]=await Me(ON());re?(T.push({type:"getAndroidApplicationPackageNameListErr",title:"获取用户已安装的应用包名",msg:re}),X(re)):(he&&(p.value=he==null?void 0:he.split(",")),U(p.value))})}async function Q(){const U=[Me(nN()),Me(fN()),Me(IN()),Me(KN()),Me(pN()),Me(SN()),Me(mN()),Me(gN()),Me(wN()),Me(vN()),Me(bN()),Me(xN()),Me(ZN()),Me(XN()),Me(YN()),Me(sV()),Me(JH()),Me(eN()),Me(CV()),Me(yV())],X=await Promise.all(U),[[,re],[,he],[,Se],[,pe],[,fe],[,we],[,J],[,G],[,Te],[,Ne],[,H],[,oe],[,ge],[,Ce],[,se],[,ie],[,ce],[,ne],[,ae],[,de]]=X;if(re!=null&&re.length||T.push({type:"moduleInfo",title:"模块信息",msg:"获取模块信息失败"}),re!=null&&re.length){const Qe=Ov({...qH(re),dir:"/data/adb/modules/MIUI_MagicWindow+"});Qe.versionCode&&(r.value?r.value{const e="getprop ro.build.characteristics";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},YH=()=>{const e="getprop ro.build.version.sdk";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(Number(r))}}),e)},QH=()=>{const e="getprop ro.mi.os.version.code";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(Number(r))}}),e)},JH=()=>{const e="getprop ro.vendor.qti.soc_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},eN=()=>{const e="getprop ro.vendor.qti.soc_model";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},tN=()=>{const e="getprop ro.config.miui_compat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},oN=()=>{const e="getprop ro.config.miui_appcompat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},nN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/module.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},rN=()=>{const e=`grep -q '^is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_patch_mode=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},iN=()=>{const e=`sed -i '/^is_patch_mode=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_patch_mode successfully." || echo "Remove is_patch_mode failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},aN=()=>{const e="grep 'is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},lN=()=>{const e=`grep -q '^is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_disabled_os2_system_app_optimize=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},sN=()=>{const e=`sed -i '/^is_disabled_os2_system_app_optimize=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_disabled_os2_system_app_optimize successfully." || echo "Remove is_disabled_os2_system_app_optimize failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},uN=()=>{const e="grep 'is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},dN=()=>{const e=`sed -i '/^# 开启游戏显示布局/d; /^ro.config.miui_compat_enable=/d; /^ro.config.miui_appcompat_enable=/d' /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},cN=()=>{const e=`grep -qxF "# 开启游戏显示布局" system.prop || echo -e " +${n(e)}`:n(e)},Vl=e=>VR(e,"name"),L4=(e,t,o,n={},r={},i={})=>{const a=Ct(),l=[];return new Set([...Object.keys(e),...Object.keys(t),...Object.keys(n),...Object.keys(r)]).forEach(u=>{var F;const d=n[u]??e[u],c=r[u]??t[u],h=i[u]??o[u],f=(F=c==null?void 0:c.supportModes)==null?void 0:F.split(",");c==null||c.defaultSettings;let p="disabled",g=d?!d.fullRule:!1,v=(f==null?void 0:f.includes("fo"))||c&&!c.hasOwnProperty("disable")||!1,b=(f==null?void 0:f.includes("full"))||!1,x=n[u]||r[u]||i[u]?"custom":"module";if(a.MIOSVersion&&a.MIOSVersion>=2)h?(p="disabled",h.fixedOrientationEnable&&(p="fixedOrientation"),h.ratio_fullScreenEnable&&(p="fullScreen"),h.embeddedEnable&&(p="embedded")):p=Iv(d,c);else if(h!=null&&h.hasOwnProperty("embeddedEnable"))h.embeddedEnable&&d?p=d.fullRule?"fullScreen":"embedded":c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation");else if(c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation"),d){const P=d.hasOwnProperty("defaultSettings")&&d.defaultSettings;(!d.hasOwnProperty("defaultSettings")||P)&&(p=d.fullRule?"fullScreen":"embedded")}const E=Vl(d),w=Vl(c),k=Vl(h),_={name:u,settingMode:p,isSupportEmbedded:g,isSupportFixedOrientation:v,isSupportFullScreen:b,ruleMode:x,embeddedRules:E||void 0,fixedOrientationRule:w||void 0,settingRule:k||void 0};l.push(_)}),l},H4=(e,t={},o={})=>{const n=[];return new Set([...Object.keys(e),...Object.keys(t)]).forEach(i=>{const a=t[i]?t[i]:e[i],l=o[i];let s="module";t[i]&&(s="custom");const u=Vl(l),d=Vl(a),c={name:i,ruleMode:s,settingMode:ZH(a.activityRule||""),autoUIRule:d||void 0,settingRule:u||void 0};n.push(c)}),n},Ct=Ki("device",()=>{const e=$(),t=$(),o=$(),n=It({socName:"",socModel:"",display0Panel:"",memoryInfo:""}),r=$(),i=$(!1),a=$(),l=$(!1),s=$(!1),u=$(!1),d=$(!1),c=$(window.innerWidth),h=$(!1),f=$(""),p=$([]),g=$({}),v=$(""),b=$(""),x=$("Magisk"),E=$(!1),w=It({installed:!1,mode:void 0}),k=It({KSU:!1,KSU_VER:"",KSU_VER_CODE:0,KSU_KERNEL_VER_CODE:0,APATCH:!1,APATCH_VER_CODE:0,APATCH_VER:0,MAGISK_VER:"",MAGISK_VER_CODE:""}),_=It({sohQcom:0,sohMTK:0,sohXMPower:0,chargeFullDesign:0,chargeFull:0,cycleCount:0}),F=It({OS2_PAD_EMBEDDED_APP_MANAGER:!0,Hyper_OS_DOT_BLACK_LIST_MANAGER:!0,GAME_BOOSTER_RADIO_MANAGER:!0,GAME_BOOSTER_CUSTOM_RATIO:!1}),P=$(),z=$(!1),A=$(!1),G=$(!1),H=$(!1),X=$("autoRhythm"),N=$(!0),T=It([]),O=It({GameMode:!1,MIUIContentExt:!1,lowWebViewVersion:!1,patchModeAlert:!1}),R=It({amktiaoROMInterface:!1}),L=D(()=>T.length>0);async function ne(){return new Promise(async(K,U)=>{const[ue,se]=await _e(ON());ue?(T.push({type:"getAndroidApplicationPackageNameListErr",title:"获取用户已安装的应用包名",msg:ue}),U(ue)):(se&&(p.value=se==null?void 0:se.split(",")),K(p.value))})}async function y(){const K=[_e(nN()),_e(fN()),_e(IN()),_e(KN()),_e(pN()),_e(SN()),_e(mN()),_e(gN()),_e(wN()),_e(vN()),_e(bN()),_e(xN()),_e(ZN()),_e(XN()),_e(YN()),_e(sV()),_e(JH()),_e(eN()),_e(CV()),_e(yV())],U=await Promise.all(K),[[,ue],[,se],[,Fe],[,pe],[,fe],[,Ce],[,ee],[,q],[,Te],[,Ne],[,j],[,V],[,ge],[,we],[,le],[,re],[,he],[,oe],[,ie],[,ce]]=U;if(ue!=null&&ue.length||T.push({type:"moduleInfo",title:"模块信息",msg:"获取模块信息失败"}),ue!=null&&ue.length){const Qe=Ov({...qH(ue),dir:"/data/adb/modules/MIUI_MagicWindow+"});Qe.versionCode&&(r.value?r.value{const e="getprop ro.build.characteristics";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},YH=()=>{const e="getprop ro.build.version.sdk";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(Number(r))}}),e)},QH=()=>{const e="getprop ro.mi.os.version.code";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(Number(r))}}),e)},JH=()=>{const e="getprop ro.vendor.qti.soc_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},eN=()=>{const e="getprop ro.vendor.qti.soc_model";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},tN=()=>{const e="getprop ro.config.miui_compat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},oN=()=>{const e="getprop ro.config.miui_appcompat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},nN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/module.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},rN=()=>{const e=`grep -q '^is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_patch_mode=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},iN=()=>{const e=`sed -i '/^is_patch_mode=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_patch_mode successfully." || echo "Remove is_patch_mode failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},aN=()=>{const e="grep 'is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},lN=()=>{const e=`grep -q '^is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_disabled_os2_system_app_optimize=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},sN=()=>{const e=`sed -i '/^is_disabled_os2_system_app_optimize=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_disabled_os2_system_app_optimize successfully." || echo "Remove is_disabled_os2_system_app_optimize failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},uN=()=>{const e="grep 'is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},dN=()=>{const e=`sed -i '/^# 开启游戏显示布局/d; /^ro.config.miui_compat_enable=/d; /^ro.config.miui_appcompat_enable=/d' /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},cN=()=>{const e=`grep -qxF "# 开启游戏显示布局" system.prop || echo -e " # 开启游戏显示布局 ro.config.miui_compat_enable=true -ro.config.miui_appcompat_enable=true" >> /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},fN=()=>{const e="settings get global device_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},hN=()=>{const e="settings get secure show_rotation_suggestions";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},pN=()=>{const e="settings get global miui_version_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},mN=()=>{const e="cat /sys/class/qcom-battery/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},gN=()=>{const e="cat /sys/class/power_supply/bms/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},vN=()=>{const e="cat /sys/class/power_supply/battery/charge_full_design";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},bN=()=>{const e="cat /sys/class/power_supply/battery/charge_full";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},xN=()=>{const e="cat /sys/class/power_supply/battery/cycle_count";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},yN=()=>{const e="cat /sys/class/qcom-battery/fg1_rsoc";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},CN=()=>{const e="cat /sys/class/power_supply/bms/capacity_raw";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},wN=()=>{const e="cat /sys/class/xm_power/fg_master/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},SN=()=>{const e="settings get global miui_pre_version";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},FN=e=>{const t=`settings put secure show_rotation_suggestions ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i==="null"?"":i)}}),t)},EN=()=>{const e=`grep -q '^is_hide_gesture_line=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_hide_gesture_line=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},kN=()=>{const e=`sed -i '/^is_hide_gesture_line=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_hide_gesture_line successfully." || echo "Remove is_hide_gesture_line failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},_N=e=>{const t=`settings put global hide_gesture_line ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i==="null"?"":i)}}),t)},MN=()=>{const e="settings get global hide_gesture_line";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},RN=e=>{const t=`settings put secure key_invisible_mode_state ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i==="null"?"":i)}}),t)},zN=()=>{const e="settings get secure key_invisible_mode_state";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},$N=()=>{const e="am start -n com.miui.securitycenter/com.miui.permcenter.settings.InvisibleModeActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},PN=e=>{const t=`settings put system miui_cursor_style ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i==="null"?"":i)}}),t)},AN=()=>{const e="settings get system miui_cursor_style";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},BN=e=>{const t=`settings put secure mouse_gesture_naturalscroll ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i==="null"?"":i)}}),t)},DN=()=>{const e="settings get secure mouse_gesture_naturalscroll";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},Lv=e=>{const t=`settings put system pointer_speed ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i==="null"?"":i)}}),t)},TN=()=>{const e="settings get system pointer_speed";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},IN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/temp/root_manager_info.txt";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},ON=()=>{const e=`pm list packages -a | awk -F':' '{print $2}' | tr ' +ro.config.miui_appcompat_enable=true" >> /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},fN=()=>{const e="settings get global device_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},hN=()=>{const e="settings get secure show_rotation_suggestions";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},pN=()=>{const e="settings get global miui_version_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},mN=()=>{const e="cat /sys/class/qcom-battery/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},gN=()=>{const e="cat /sys/class/power_supply/bms/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},vN=()=>{const e="cat /sys/class/power_supply/battery/charge_full_design";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},bN=()=>{const e="cat /sys/class/power_supply/battery/charge_full";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},xN=()=>{const e="cat /sys/class/power_supply/battery/cycle_count";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},yN=()=>{const e="cat /sys/class/qcom-battery/fg1_rsoc";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},CN=()=>{const e="cat /sys/class/power_supply/bms/capacity_raw";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},wN=()=>{const e="cat /sys/class/xm_power/fg_master/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},SN=()=>{const e="settings get global miui_pre_version";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},FN=e=>{const t=`settings put secure show_rotation_suggestions ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},EN=()=>{const e=`grep -q '^is_hide_gesture_line=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_hide_gesture_line=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},kN=()=>{const e=`sed -i '/^is_hide_gesture_line=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_hide_gesture_line successfully." || echo "Remove is_hide_gesture_line failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},_N=e=>{const t=`settings put global hide_gesture_line ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},MN=()=>{const e="settings get global hide_gesture_line";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},RN=e=>{const t=`settings put secure key_invisible_mode_state ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},zN=()=>{const e="settings get secure key_invisible_mode_state";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},$N=()=>{const e="am start -n com.miui.securitycenter/com.miui.permcenter.settings.InvisibleModeActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},PN=e=>{const t=`settings put system miui_cursor_style ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},AN=()=>{const e="settings get system miui_cursor_style";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},BN=e=>{const t=`settings put secure mouse_gesture_naturalscroll ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},DN=()=>{const e="settings get secure mouse_gesture_naturalscroll";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},Lv=e=>{const t=`settings put system pointer_speed ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},TN=()=>{const e="settings get system pointer_speed";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},IN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/temp/root_manager_info.txt";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},ON=()=>{const e=`pm list packages -a | awk -F':' '{print $2}' | tr ' ' ',' | sed 's/,$/ -/'`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},LN=()=>{const e='CLASSPATH="/data/adb/modules/MIUI_MagicWindow+/common/utils/classes.dex" app_process /system/bin com.xayah.dex.HiddenApiUtil getInstalledPackagesAsUser 0 "user" "pkgName|label"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},HN=()=>{const e='ls /system/product/priv-app/MIUIContentExtension/MIUIContentExtension.apk &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},NN=()=>{const e="am start -n com.miui.contentextension/.setting.activity.MainSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Hv=()=>{const e='reboot && echo "Reboot command executed successfully." || echo "Reboot command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Reboot command executed successfully."?t(r):o(r)}}),e)},_X=(e,t)=>{const o=`echo "${e.replace(/"/g,'\\"')}" > /data/adb/MIUI_MagicWindow+/logs-${t}.txt`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Fe(o);i?r(l):n("save command executed successfully.")}})},MX=()=>{const e='pkill -9 -f com.android.systemui && echo "kill command executed successfully." || echo "kill command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="kill command executed successfully."?t(r):o(r)}}),e)},VN=e=>{const t=`pgrep -f ${e} > /dev/null && kill -9 $(pgrep -f ${e}) || true && pgrep -f com.miui.securitycenter > /dev/null && kill -9 $(pgrep -f com.miui.securitycenter) || true && pgrep -f com.miui.securityadd > /dev/null && kill -9 $(pgrep -f com.miui.securityadd) || true && am start -n com.miui.securityadd/com.miui.gamebooster.GameBoosterRichWebActivity`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},WN=e=>{const t=`cmd activity ${e}service -n com.miui.powerkeeper/.ui.framerate.FrameRateService`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},jN=e=>{const t=St(),o=[];return e.split(` -`).forEach(r=>{const a=(t.androidTargetSdk&&t.androidTargetSdk>=35?/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*vsync=([\d.]+),\s*synthetic=(true|false),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/:/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/).exec(r);if(a)if(t.androidTargetSdk&&t.androidTargetSdk>=35){const[l,s,u,d,c,h,f,p,g]=a,v={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),vsync:parseInt(h),synthetic:f==="true",alternativeRefreshRates:p?p.split(",").map(b=>parseFloat(b.trim())):[],supportedHdrTypes:g?g.split(",").map(b=>parseInt(b.trim(),10)):[]};o.push(v)}else{const[l,s,u,d,c,h,f]=a,p={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),alternativeRefreshRates:h?h.split(",").map(g=>parseFloat(g.trim())):[],supportedHdrTypes:f?f.split(",").map(g=>parseInt(g.trim(),10)):[]};o.push(p)}}),o},UN=()=>{const e="dumpsys display | grep 'DisplayModeRecord'";return ke(new Promise(async(t,o)=>{try{const{errno:n,stdout:r,stderr:i}=await Fe(e);if(n){o(i);return}const a=jN(r);t(a)}catch(n){o(n)}}),e)},Jd=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(`sh /data/adb/modules/MIUI_MagicWindow+/common/source/update_rule/update_rule.sh${e?` ${e}`:""}`);n?o(i):t(r)}}),"updateMiuiEmbeddingWindowRule"),KN=()=>{const e='ls -d /data/adb/shamiko/ &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},GN=()=>{const e='ls /data/adb/shamiko/whitelist &>/dev/null && echo "whitelist" || echo "blacklist"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},qN=e=>{const t=e==="whitelist"?"touch /data/adb/shamiko/whitelist":"rm -rf /data/adb/shamiko/whitelist";return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},ZN=()=>{const e='ls /sys/touchpanel/pen_update &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},XN=()=>{const e='ls /sys/touchpanel/pen_enable &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},YN=()=>{const e='ls /sys/touchpanel/keyboard &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},QN=()=>{const e="cat /sys/touchpanel/pen_update";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},JN=e=>{const t=`echo ${e} > /sys/touchpanel/pen_update`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},eV=()=>{const e=`grep -q '^is_amktiao_pen_update=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_update=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},tV=()=>{const e=`sed -i '/^is_amktiao_pen_update=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_update successfully." || echo "Remove is_amktiao_pen_update failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},oV=()=>{const e="cat /sys/touchpanel/pen_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},nV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_enable`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},rV=()=>{const e=`grep -q '^is_amktiao_pen_enable=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_enable=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},iV=()=>{const e=`sed -i '/^is_amktiao_pen_enable=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_enable successfully." || echo "Remove is_amktiao_pen_enable failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},aV=()=>{const e="cat /sys/touchpanel/keyboard | head -n 1";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},lV=e=>{const t=`echo ${e} > /sys/touchpanel/keyboard`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},sV=()=>{const e="getprop ro.config.miui_desktop_mode_enabled";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},uV=()=>{const e=`grep -q '^is_add_miui_desktop_mode_enabled=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_add_miui_desktop_mode_enabled=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dV=()=>{const e=`sed -i '/^is_add_miui_desktop_mode_enabled=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_add_miui_desktop_mode_enabled successfully." || echo "Remove is_add_miui_desktop_mode_enabled failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},cV=()=>{const e=`grep -q '^ro.config.miui_desktop_mode_enabled=' /data/adb/modules/MIUI_MagicWindow+/system.prop || (echo "ro.config.miui_desktop_mode_enabled=true" | tee -a /data/adb/modules/MIUI_MagicWindow+/system.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},fV=()=>{const e=`sed -i '/^ro.config.miui_desktop_mode_enabled=/d' //data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Remove ro.config.miui_desktop_mode_enabled successfully." || echo "Remove ro.config.miui_desktop_mode_enabled failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},hV=()=>{const e="settings get system miui_dkt_mode";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},pV=e=>{const t=`settings put system miui_dkt_mode ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},mV=()=>{const e=`grep -q '^is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_enable_show_notification_icon_num=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},N4=()=>{const e=`sed -i '/^is_enable_show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_enable_show_notification_icon_num successfully." || echo "Remove is_enable_show_notification_icon_num failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},gV=()=>{const e="grep 'is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},vV=()=>{const e=`sed -i '/^show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove show_notification_icon_num successfully." || echo "Remove show_notification_icon_num failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},bV=e=>{const t=`grep -q '^show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "show_notification_icon_num=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},xV=e=>{const t=`settings put system status_bar_show_notification_icon ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},yV=()=>{const e="cat /proc/mv";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r==="null"?"":r)}}),e)},CV=()=>{const e="cat /sys/class/mi_display/disp-DSI-0/panel_info";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);if(n)o(i);else{r==="null"&&t("");const a=r.split("=");Array.isArray(a)&&a.length===2?t(a[1]):t("")}}}),e)},wV=e=>{const t=`service call SurfaceFlinger 1035 i32 ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},V4=e=>{const t=`service call SurfaceFlinger 1034 i32 ${e?1:0}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},Nv=()=>{const e="am start com.miui.voiceassist/com.xiaomi.voiceassistant.CTAAlertActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},SV=()=>{const e="am startservice -n com.xiaomi.aiasst.vision/.control.translation.AiTranslateService --es from systemui.plugin.tile.aisubtitles --es floatingWindowType startAiSubtitlesWindow";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},FV=()=>{const e="am start -n com.miui.mediaeditor/com.miui.gallery.vlog.template2.VlogTemplateActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},EV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$ReduceBrightColorsSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},kV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$AccessibilityInversionSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},_V=()=>{const e='am start -n com.android.phone/com.android.phone.EmergencyDialer -e shortcut "volume_down_up_three_time"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},MV=()=>{const e="am start -a android.intent.action.VIEW -n com.android.settings/.RunningServices -f 0x10000000";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},RV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$NotificationStationActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},zV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$MemorySettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},$V=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.ai.AiWallpaperListActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},PV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeClientActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},AV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeServerActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},BV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.AiWallpaperGuideActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},DV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationChatActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},TV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationSynchronizeActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},IV=()=>{const e="am start -n com.google.android.gms/com.google.android.gms.googlesettings.ui.GoogleSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},OV=()=>{const e="am start -n com.miui.securitycenter/com.miui.autotask.activity.TaskManagerActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},LV=()=>{const e="am broadcast -a android.telephony.action.SECRET_CODE -d android_secret_code://5776733 android";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},HV=()=>{const e="am start -n com.android.thememanager/com.android.thememanager.activity.ThemeTabActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Vv=()=>{const e="am start -n com.miui.securitycenter/com.miui.apppredict.activity.AppClassificationActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},NV=()=>{const e="am start -n com.hyperos.aitoolbox/com.xiaomi.windowsgame.ui.GameEngineLauncherActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},VV=()=>{const e='ls /data/data/com.miui.securitycenter/databases/gamebooster.db &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},WV=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "DELETE FROM gamebooster_table WHERE package_name='com.miui.contentextension'; SELECT changes();")"`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Fe(o);i?r(l):(l&&r(l),n(a))}}),o)},W4=e=>{const t=`chmod ${e} /data/user/0/com.miui.contentextension/files/blacklistConfig`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):o(i)}}),t)},jV=()=>{const e="getprop persist.sys.stability.smartfocusio";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},UV=()=>{const e="grep 'is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},j4=()=>{const e=`sed -i '/^is_auto_start_miui_cursor_style_type=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_auto_start_miui_cursor_style_type successfully." || echo "Remove is_auto_start_miui_cursor_style_type failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},KV=e=>{const t=`grep -q '^is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_auto_start_miui_cursor_style_type=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Fe(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},Wv=Ki("gameBooster",()=>{const e=$([]),t=D(()=>{const u=n.value.trim().toLowerCase();return e.value.reduce((c,h)=>{const f=h.package_name.trim().toLowerCase(),p=h.app_name?h.app_name.toLowerCase():"";return!f.includes(u)&&!p.includes(u)||c.push(h),c},[])}),o=D(()=>a.length>0);D(()=>e.value.length);const n=$(""),r=$(!0),i=$(!1),a=It([]),l=D(()=>new Set([...e.value]));async function s(){r.value=!0;const[u,d]=await Me(VV());if(u&&(r.value=!1,i.value=!1),d){i.value=!0;const[c,h]=await Me(KH());c&&(r.value=!1,e.value=[]),h&&(r.value=!1,e.value=h)}a.length||(r.value=!1)}return{gameBoosterList:e,filterGameBoosterList:t,allPackageName:l,hasGameBoosterDataBase:i,searchKeyWord:n,errorLogging:a,isNeedShowErrorModal:o,loading:r,initDefault:s}},{persist:{pick:[]}});function d6(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ls(){let e=[],t={addEventListener(o,n,r,i){return o.addEventListener(n,r,i),t.add(()=>o.removeEventListener(n,r,i))},requestAnimationFrame(...o){let n=requestAnimationFrame(...o);t.add(()=>cancelAnimationFrame(n))},nextFrame(...o){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...o)})},setTimeout(...o){let n=setTimeout(...o);t.add(()=>clearTimeout(n))},microTask(...o){let n={current:!0};return d6(()=>{n.current&&o[0]()}),t.add(()=>{n.current=!1})},style(o,n,r){let i=o.style.getPropertyValue(n);return Object.assign(o.style,{[n]:r}),this.add(()=>{Object.assign(o.style,{[n]:i})})},group(o){let n=Ls();return o(n),this.add(()=>n.dispose())},add(o){return e.push(o),()=>{let n=e.indexOf(o);if(n>=0)for(let r of e.splice(n,1))r()}},dispose(){for(let o of e.splice(0))o()}};return t}var U4;let GV=Symbol("headlessui.useid"),qV=0;const c6=(U4=zx)!=null?U4:function(){return Oe(GV,()=>`${++qV}`)()};function fo(e){var t;if(e==null||e.value==null)return null;let o=(t=e.value.$el)!=null?t:e.value;return o instanceof Node?o:null}function Qn(e,t,...o){if(e in t){let r=t[e];return typeof r=="function"?r(...o):r}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qn),n}var ZV=Object.defineProperty,XV=(e,t,o)=>t in e?ZV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,K4=(e,t,o)=>(XV(e,typeof t!="symbol"?t+"":t,o),o);let YV=class{constructor(){K4(this,"current",this.detect()),K4(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Hs=new YV;function Za(e){if(Hs.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=fo(e);if(t)return t.ownerDocument}return document}let C1=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Vr||{}),jv=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jv||{}),QV=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(QV||{});function JV(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(C1)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var Uv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Uv||{});function eW(e,t=0){var o;return e===((o=Za(e))==null?void 0:o.body)?!1:Qn(t,{0(){return e.matches(C1)},1(){let n=e;for(;n!==null;){if(n.matches(C1))return!0;n=n.parentElement}return!1}})}var tW=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(tW||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ti(e){e==null||e.focus({preventScroll:!0})}let oW=["textarea","input"].join(",");function nW(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,oW))!=null?o:!1}function rW(e,t=o=>o){return e.slice().sort((o,n)=>{let r=t(o),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Iu(e,t,{sorted:o=!0,relativeTo:n=null,skipElements:r=[]}={}){var i;let a=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,l=Array.isArray(e)?o?rW(e):e:JV(e);r.length>0&&l.length>1&&(l=l.filter(p=>!r.includes(p))),n=n??a.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},c=0,h=l.length,f;do{if(c>=h||c+h<=0)return 0;let p=u+c;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}f=l[p],f==null||f.focus(d),c+=s}while(f!==a.activeElement);return t&6&&nW(f)&&f.select(),2}function Kv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function iW(){return/Android/gi.test(window.navigator.userAgent)}function aW(){return Kv()||iW()}function xu(e,t,o){Hs.isServer||Et(n=>{document.addEventListener(e,t,o),n(()=>document.removeEventListener(e,t,o))})}function Gv(e,t,o){Hs.isServer||Et(n=>{window.addEventListener(e,t,o),n(()=>window.removeEventListener(e,t,o))})}function lW(e,t,o=D(()=>!0)){function n(i,a){if(!o.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let s=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let u of s){if(u===null)continue;let d=u instanceof HTMLElement?u:fo(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!eW(l,Uv.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=$(null);xu("pointerdown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),xu("mousedown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),xu("click",i=>{aW()||r.value&&(n(i,()=>r.value),r.value=null)},!0),xu("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Gv("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var id=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(id||{}),jr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jr||{});function _r({visible:e=!0,features:t=0,ourProps:o,theirProps:n,...r}){var i;let a=Zv(n,o),l=Object.assign(r,{props:a});if(e||t&2&&a.static)return c0(l);if(t&1){let s=(i=a.unmount)==null||i?0:1;return Qn(s,{0(){return null},1(){return c0({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return c0(l)}function c0({props:e,attrs:t,slots:o,slot:n,name:r}){var i,a;let{as:l,...s}=Xv(e,["unmount","static"]),u=(i=o.default)==null?void 0:i.call(o,n),d={};if(n){let c=!1,h=[];for(let[f,p]of Object.entries(n))typeof p=="boolean"&&(c=!0),p===!0&&h.push(f);c&&(d["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(u=qv(u??[]),Object.keys(s).length>0||Object.keys(t).length>0){let[c,...h]=u??[];if(!sW(c)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(s).concat(Object.keys(t)).map(g=>g.trim()).filter((g,v,b)=>b.indexOf(g)===v).sort((g,v)=>g.localeCompare(v)).map(g=>` - ${g}`).join(` +/'`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},LN=()=>{const e='CLASSPATH="/data/adb/modules/MIUI_MagicWindow+/common/utils/classes.dex" app_process /system/bin com.xayah.dex.HiddenApiUtil getInstalledPackagesAsUser 0 "user" "pkgName|label"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},HN=()=>{const e='ls /system/product/priv-app/MIUIContentExtension/MIUIContentExtension.apk &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},NN=()=>{const e="am start -n com.miui.contentextension/.setting.activity.MainSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Hv=()=>{const e='reboot && echo "Reboot command executed successfully." || echo "Reboot command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Reboot command executed successfully."?t(r):o(r)}}),e)},DX=(e,t)=>{const o=`echo "${e.replace(/"/g,'\\"')}" > /data/adb/MIUI_MagicWindow+/logs-${t}.txt`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n("save command executed successfully.")}})},TX=()=>{const e='pkill -9 -f com.android.systemui && echo "kill command executed successfully." || echo "kill command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="kill command executed successfully."?t(r):o(r)}}),e)},VN=e=>{const t=`pgrep -f ${e} > /dev/null && kill -9 $(pgrep -f ${e}) || true && pgrep -f com.miui.securitycenter > /dev/null && kill -9 $(pgrep -f com.miui.securitycenter) || true && pgrep -f com.miui.securityadd > /dev/null && kill -9 $(pgrep -f com.miui.securityadd) || true && am start -n com.miui.securityadd/com.miui.gamebooster.GameBoosterRichWebActivity`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},WN=e=>{const t=`cmd activity ${e}service -n com.miui.powerkeeper/.ui.framerate.FrameRateService`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},jN=e=>{const t=Ct(),o=[];return e.split(` +`).forEach(r=>{const a=(t.androidTargetSdk&&t.androidTargetSdk>=35?/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*vsync=([\d.]+),\s*synthetic=(true|false),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/:/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/).exec(r);if(a)if(t.androidTargetSdk&&t.androidTargetSdk>=35){const[l,s,u,d,c,h,f,p,g]=a,v={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),vsync:parseInt(h),synthetic:f==="true",alternativeRefreshRates:p?p.split(",").map(b=>parseFloat(b.trim())):[],supportedHdrTypes:g?g.split(",").map(b=>parseInt(b.trim(),10)):[]};o.push(v)}else{const[l,s,u,d,c,h,f]=a,p={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),alternativeRefreshRates:h?h.split(",").map(g=>parseFloat(g.trim())):[],supportedHdrTypes:f?f.split(",").map(g=>parseInt(g.trim(),10)):[]};o.push(p)}}),o},UN=()=>{const e="dumpsys display | grep 'DisplayModeRecord'";return ke(new Promise(async(t,o)=>{try{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n){o(i);return}const a=jN(r);t(a)}catch(n){o(n)}}),e)},Jd=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(`sh /data/adb/modules/MIUI_MagicWindow+/common/source/update_rule/update_rule.sh${e?` ${e}`:""}`);n?o(i):t(r)}}),"updateMiuiEmbeddingWindowRule"),KN=()=>{const e='ls -d /data/adb/shamiko/ &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},GN=()=>{const e='ls /data/adb/shamiko/whitelist &>/dev/null && echo "whitelist" || echo "blacklist"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},qN=e=>{const t=e==="whitelist"?"touch /data/adb/shamiko/whitelist":"rm -rf /data/adb/shamiko/whitelist";return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},ZN=()=>{const e='ls /sys/touchpanel/pen_update &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},XN=()=>{const e='ls /sys/touchpanel/pen_enable &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},YN=()=>{const e='ls /sys/touchpanel/keyboard &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},QN=()=>{const e="cat /sys/touchpanel/pen_update";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},JN=e=>{const t=`echo ${e} > /sys/touchpanel/pen_update`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},eV=()=>{const e=`grep -q '^is_amktiao_pen_update=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_update=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},tV=()=>{const e=`sed -i '/^is_amktiao_pen_update=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_update successfully." || echo "Remove is_amktiao_pen_update failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},oV=()=>{const e="cat /sys/touchpanel/pen_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},nV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_enable`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},rV=()=>{const e=`grep -q '^is_amktiao_pen_enable=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_enable=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},iV=()=>{const e=`sed -i '/^is_amktiao_pen_enable=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_enable successfully." || echo "Remove is_amktiao_pen_enable failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},aV=()=>{const e="cat /sys/touchpanel/keyboard | head -n 1";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},lV=e=>{const t=`echo ${e} > /sys/touchpanel/keyboard`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},sV=()=>{const e="getprop ro.config.miui_desktop_mode_enabled";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},uV=()=>{const e=`grep -q '^is_add_miui_desktop_mode_enabled=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_add_miui_desktop_mode_enabled=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dV=()=>{const e=`sed -i '/^is_add_miui_desktop_mode_enabled=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_add_miui_desktop_mode_enabled successfully." || echo "Remove is_add_miui_desktop_mode_enabled failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},cV=()=>{const e=`grep -q '^ro.config.miui_desktop_mode_enabled=' /data/adb/modules/MIUI_MagicWindow+/system.prop || (echo "ro.config.miui_desktop_mode_enabled=true" | tee -a /data/adb/modules/MIUI_MagicWindow+/system.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},fV=()=>{const e=`sed -i '/^ro.config.miui_desktop_mode_enabled=/d' //data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Remove ro.config.miui_desktop_mode_enabled successfully." || echo "Remove ro.config.miui_desktop_mode_enabled failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},hV=()=>{const e="settings get system miui_dkt_mode";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},pV=e=>{const t=`settings put system miui_dkt_mode ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},mV=()=>{const e=`grep -q '^is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_enable_show_notification_icon_num=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},N4=()=>{const e=`sed -i '/^is_enable_show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_enable_show_notification_icon_num successfully." || echo "Remove is_enable_show_notification_icon_num failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},gV=()=>{const e="grep 'is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},vV=()=>{const e=`sed -i '/^show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove show_notification_icon_num successfully." || echo "Remove show_notification_icon_num failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},bV=e=>{const t=`grep -q '^show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "show_notification_icon_num=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},xV=e=>{const t=`settings put system status_bar_show_notification_icon ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},yV=()=>{const e="cat /proc/mv";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},CV=()=>{const e="cat /sys/class/mi_display/disp-DSI-0/panel_info";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n)o(i);else{r==="null"&&t("");const a=r.split("=");Array.isArray(a)&&a.length===2?t(a[1]):t("")}}}),e)},wV=e=>{const t=`service call SurfaceFlinger 1035 i32 ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},V4=e=>{const t=`service call SurfaceFlinger 1034 i32 ${e?1:0}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},Nv=()=>{const e="am start com.miui.voiceassist/com.xiaomi.voiceassistant.CTAAlertActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},SV=()=>{const e="am startservice -n com.xiaomi.aiasst.vision/.control.translation.AiTranslateService --es from systemui.plugin.tile.aisubtitles --es floatingWindowType startAiSubtitlesWindow";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},FV=()=>{const e="am start -n com.miui.mediaeditor/com.miui.gallery.vlog.template2.VlogTemplateActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},EV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$ReduceBrightColorsSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},kV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$AccessibilityInversionSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},_V=()=>{const e='am start -n com.android.phone/com.android.phone.EmergencyDialer -e shortcut "volume_down_up_three_time"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},MV=()=>{const e="am start -a android.intent.action.VIEW -n com.android.settings/.RunningServices -f 0x10000000";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},RV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$NotificationStationActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},zV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$MemorySettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},$V=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.ai.AiWallpaperListActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},PV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeClientActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},AV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeServerActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},BV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.AiWallpaperGuideActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},DV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationChatActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},TV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationSynchronizeActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},IV=()=>{const e="am start -n com.google.android.gms/com.google.android.gms.googlesettings.ui.GoogleSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},OV=()=>{const e="am start -n com.miui.securitycenter/com.miui.autotask.activity.TaskManagerActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},LV=()=>{const e="am broadcast -a android.telephony.action.SECRET_CODE -d android_secret_code://5776733 android";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},HV=()=>{const e="am start -n com.android.thememanager/com.android.thememanager.activity.ThemeTabActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Vv=()=>{const e="am start -n com.miui.securitycenter/com.miui.apppredict.activity.AppClassificationActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},NV=()=>{const e="am start -n com.hyperos.aitoolbox/com.xiaomi.windowsgame.ui.GameEngineLauncherActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},VV=()=>{const e='ls /data/data/com.miui.securitycenter/databases/gamebooster.db &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},WV=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "DELETE FROM gamebooster_table WHERE package_name='com.miui.contentextension'; SELECT changes();")"`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):(l&&r(l),n(a))}}),o)},W4=e=>{const t=`chmod ${e} /data/user/0/com.miui.contentextension/files/blacklistConfig`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},jV=()=>{const e="getprop persist.sys.stability.smartfocusio";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},UV=()=>{const e="grep 'is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},j4=()=>{const e=`sed -i '/^is_auto_start_miui_cursor_style_type=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_auto_start_miui_cursor_style_type successfully." || echo "Remove is_auto_start_miui_cursor_style_type failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},KV=e=>{const t=`grep -q '^is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_auto_start_miui_cursor_style_type=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},GV=()=>{const e="getprop persist.miui.extm.dm_opt.enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},qV=()=>{const e="echo $(awk '{print int($3 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},ZV=()=>{const e="echo $(awk '{print int($2 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},XV=()=>{const e="echo $(awk '{print int($1 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Wv=Ki("gameBooster",()=>{const e=$([]),t=D(()=>{const u=n.value.trim().toLowerCase();return e.value.reduce((c,h)=>{const f=h.package_name.trim().toLowerCase(),p=h.app_name?h.app_name.toLowerCase():"";return!f.includes(u)&&!p.includes(u)||c.push(h),c},[])}),o=D(()=>a.length>0);D(()=>e.value.length);const n=$(""),r=$(!0),i=$(!1),a=It([]),l=D(()=>new Set([...e.value]));async function s(){r.value=!0;const[u,d]=await _e(VV());if(u&&(r.value=!1,i.value=!1),d){i.value=!0;const[c,h]=await _e(KH());c&&(r.value=!1,e.value=[]),h&&(r.value=!1,e.value=h)}a.length||(r.value=!1)}return{gameBoosterList:e,filterGameBoosterList:t,allPackageName:l,hasGameBoosterDataBase:i,searchKeyWord:n,errorLogging:a,isNeedShowErrorModal:o,loading:r,initDefault:s}},{persist:{pick:[]}});function d6(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ls(){let e=[],t={addEventListener(o,n,r,i){return o.addEventListener(n,r,i),t.add(()=>o.removeEventListener(n,r,i))},requestAnimationFrame(...o){let n=requestAnimationFrame(...o);t.add(()=>cancelAnimationFrame(n))},nextFrame(...o){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...o)})},setTimeout(...o){let n=setTimeout(...o);t.add(()=>clearTimeout(n))},microTask(...o){let n={current:!0};return d6(()=>{n.current&&o[0]()}),t.add(()=>{n.current=!1})},style(o,n,r){let i=o.style.getPropertyValue(n);return Object.assign(o.style,{[n]:r}),this.add(()=>{Object.assign(o.style,{[n]:i})})},group(o){let n=Ls();return o(n),this.add(()=>n.dispose())},add(o){return e.push(o),()=>{let n=e.indexOf(o);if(n>=0)for(let r of e.splice(n,1))r()}},dispose(){for(let o of e.splice(0))o()}};return t}var U4;let YV=Symbol("headlessui.useid"),QV=0;const c6=(U4=zx)!=null?U4:function(){return Oe(YV,()=>`${++QV}`)()};function fo(e){var t;if(e==null||e.value==null)return null;let o=(t=e.value.$el)!=null?t:e.value;return o instanceof Node?o:null}function Qn(e,t,...o){if(e in t){let r=t[e];return typeof r=="function"?r(...o):r}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qn),n}var JV=Object.defineProperty,eW=(e,t,o)=>t in e?JV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,K4=(e,t,o)=>(eW(e,typeof t!="symbol"?t+"":t,o),o);let tW=class{constructor(){K4(this,"current",this.detect()),K4(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Hs=new tW;function Za(e){if(Hs.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=fo(e);if(t)return t.ownerDocument}return document}let C1=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Vr||{}),jv=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jv||{}),oW=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(oW||{});function nW(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(C1)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var Uv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Uv||{});function rW(e,t=0){var o;return e===((o=Za(e))==null?void 0:o.body)?!1:Qn(t,{0(){return e.matches(C1)},1(){let n=e;for(;n!==null;){if(n.matches(C1))return!0;n=n.parentElement}return!1}})}var iW=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(iW||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ti(e){e==null||e.focus({preventScroll:!0})}let aW=["textarea","input"].join(",");function lW(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,aW))!=null?o:!1}function sW(e,t=o=>o){return e.slice().sort((o,n)=>{let r=t(o),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Iu(e,t,{sorted:o=!0,relativeTo:n=null,skipElements:r=[]}={}){var i;let a=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,l=Array.isArray(e)?o?sW(e):e:nW(e);r.length>0&&l.length>1&&(l=l.filter(p=>!r.includes(p))),n=n??a.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},c=0,h=l.length,f;do{if(c>=h||c+h<=0)return 0;let p=u+c;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}f=l[p],f==null||f.focus(d),c+=s}while(f!==a.activeElement);return t&6&&lW(f)&&f.select(),2}function Kv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function uW(){return/Android/gi.test(window.navigator.userAgent)}function dW(){return Kv()||uW()}function xu(e,t,o){Hs.isServer||Et(n=>{document.addEventListener(e,t,o),n(()=>document.removeEventListener(e,t,o))})}function Gv(e,t,o){Hs.isServer||Et(n=>{window.addEventListener(e,t,o),n(()=>window.removeEventListener(e,t,o))})}function cW(e,t,o=D(()=>!0)){function n(i,a){if(!o.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let s=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let u of s){if(u===null)continue;let d=u instanceof HTMLElement?u:fo(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!rW(l,Uv.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=$(null);xu("pointerdown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),xu("mousedown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),xu("click",i=>{dW()||r.value&&(n(i,()=>r.value),r.value=null)},!0),xu("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Gv("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var id=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(id||{}),jr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jr||{});function _r({visible:e=!0,features:t=0,ourProps:o,theirProps:n,...r}){var i;let a=Zv(n,o),l=Object.assign(r,{props:a});if(e||t&2&&a.static)return c0(l);if(t&1){let s=(i=a.unmount)==null||i?0:1;return Qn(s,{0(){return null},1(){return c0({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return c0(l)}function c0({props:e,attrs:t,slots:o,slot:n,name:r}){var i,a;let{as:l,...s}=Xv(e,["unmount","static"]),u=(i=o.default)==null?void 0:i.call(o,n),d={};if(n){let c=!1,h=[];for(let[f,p]of Object.entries(n))typeof p=="boolean"&&(c=!0),p===!0&&h.push(f);c&&(d["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(u=qv(u??[]),Object.keys(s).length>0||Object.keys(t).length>0){let[c,...h]=u??[];if(!fW(c)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(s).concat(Object.keys(t)).map(g=>g.trim()).filter((g,v,b)=>b.indexOf(g)===v).sort((g,v)=>g.localeCompare(v)).map(g=>` - ${g}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(` `)].join(` -`));let f=Zv((a=c.props)!=null?a:{},s,d),p=qo(c,f,!0);for(let g in f)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=f[g]);return p}return Array.isArray(u)&&u.length===1?u[0]:u}return m(l,Object.assign({},s,d),{default:()=>u})}function qv(e){return e.flatMap(t=>t.type===ft?qv(t.children):[t])}function Zv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},o={};for(let n of e)for(let r in n)r.startsWith("on")&&typeof n[r]=="function"?(o[r]!=null||(o[r]=[]),o[r].push(n[r])):t[r]=n[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(o).map(n=>[n,void 0])));for(let n in o)Object.assign(t,{[n](r,...i){let a=o[n];for(let l of a){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function Xv(e,t=[]){let o=Object.assign({},e);for(let n of t)n in o&&delete o[n];return o}function sW(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ad=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ad||{});let w1=ye({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:o}){return()=>{var n;let{features:r,...i}=e,a={"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return _r({ourProps:a,theirProps:i,slot:{},attrs:o,slots:t,name:"Hidden"})}}}),Yv=Symbol("Context");var Jo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jo||{});function uW(){return f6()!==null}function f6(){return Oe(Yv,null)}function dW(e){et(Yv,e)}var Qv=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Qv||{});function cW(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let yi=[];cW(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yi[0]!==t.target&&(yi.unshift(t.target),yi=yi.filter(o=>o!=null&&o.isConnected),yi.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Jv(e,t,o,n){Hs.isServer||Et(r=>{e=e??window,e.addEventListener(t,o,n),r(()=>e.removeEventListener(t,o,n))})}var Fl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Fl||{});function fW(){let e=$(0);return Gv("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function e9(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let o of e.value){let n=fo(o);n instanceof HTMLElement&&t.add(n)}return t}var t9=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(t9||{});let gl=Object.assign(ye({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:n}){let r=$(null);n({el:r,$el:r});let i=D(()=>Za(r)),a=$(!1);ut(()=>a.value=!0),Go(()=>a.value=!1),pW({ownerDocument:i},D(()=>a.value&&!!(e.features&16)));let l=mW({ownerDocument:i,container:r,initialFocus:D(()=>e.initialFocus)},D(()=>a.value&&!!(e.features&2)));gW({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},D(()=>a.value&&!!(e.features&8)));let s=fW();function u(f){let p=fo(r);p&&(g=>g())(()=>{Qn(s.value,{[Fl.Forwards]:()=>{Iu(p,Vr.First,{skipElements:[f.relatedTarget]})},[Fl.Backwards]:()=>{Iu(p,Vr.Last,{skipElements:[f.relatedTarget]})}})})}let d=$(!1);function c(f){f.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(f){if(!a.value)return;let p=e9(e.containers);fo(r)instanceof HTMLElement&&p.add(fo(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(o9(p,g)||(d.value?Iu(fo(r),Qn(s.value,{[Fl.Forwards]:()=>Vr.Next,[Fl.Backwards]:()=>Vr.Previous})|Vr.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Ti(f.target)))}return()=>{let f={},p={ref:r,onKeydown:c,onFocusout:h},{features:g,initialFocus:v,containers:b,...x}=e;return m(ft,[!!(g&4)&&m(w1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable}),_r({ourProps:p,theirProps:{...t,...x},slot:f,attrs:t,slots:o,name:"FocusTrap"}),!!(g&4)&&m(w1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable})])}}}),{features:t9});function hW(e){let t=$(yi.slice());return lt([e],([o],[n])=>{n===!0&&o===!1?d6(()=>{t.value.splice(0)}):n===!1&&o===!0&&(t.value=yi.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(n=>n!=null&&n.isConnected))!=null?o:null}}function pW({ownerDocument:e},t){let o=hW(t);ut(()=>{Et(()=>{var n,r;t.value||((n=e.value)==null?void 0:n.activeElement)===((r=e.value)==null?void 0:r.body)&&Ti(o())},{flush:"post"})}),Go(()=>{t.value&&Ti(o())})}function mW({ownerDocument:e,container:t,initialFocus:o},n){let r=$(null),i=$(!1);return ut(()=>i.value=!0),Go(()=>i.value=!1),ut(()=>{lt([t,o,n],(a,l)=>{if(a.every((u,d)=>(l==null?void 0:l[d])===u)||!n.value)return;let s=fo(t);s&&d6(()=>{var u,d;if(!i.value)return;let c=fo(o),h=(u=e.value)==null?void 0:u.activeElement;if(c){if(c===h){r.value=h;return}}else if(s.contains(h)){r.value=h;return}c?Ti(c):Iu(s,Vr.First|Vr.NoScroll)===jv.Error&&console.warn("There are no focusable elements inside the "),r.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function gW({ownerDocument:e,container:t,containers:o,previousActiveElement:n},r){var i;Jv((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!r.value)return;let l=e9(o);fo(t)instanceof HTMLElement&&l.add(fo(t));let s=n.value;if(!s)return;let u=a.target;u&&u instanceof HTMLElement?o9(l,u)?(n.value=u,Ti(u)):(a.preventDefault(),a.stopPropagation(),Ti(s)):Ti(n.value)},!0)}function o9(e,t){for(let o of e)if(o.contains(t))return!0;return!1}function vW(e){let t=xd(e.getSnapshot());return Go(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function bW(e,t){let o=e(),n=new Set;return{getSnapshot(){return o},subscribe(r){return n.add(r),()=>n.delete(r)},dispatch(r,...i){let a=t[r].call(o,...i);a&&(o=a,n.forEach(l=>l()))}}}function xW(){let e;return{before({doc:t}){var o;let n=t.documentElement;e=((o=t.defaultView)!=null?o:window).innerWidth-n.clientWidth},after({doc:t,d:o}){let n=t.documentElement,r=n.clientWidth-n.offsetWidth,i=e-r;o.style(n,"paddingRight",`${i}px`)}}}function yW(){return Kv()?{before({doc:e,d:t,meta:o}){function n(r){return o.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Ls();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),d=e.querySelector(u);d&&!n(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(n(l.target)){let s=l.target;for(;s.parentElement&&n(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(n(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;i!==s&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function CW(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function wW(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let Ei=bW(()=>new Map,{PUSH(e,t){var o;let n=(o=this.get(e))!=null?o:{doc:e,count:0,d:Ls(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let o=this.get(e);return o&&(o.count--,o.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:o}){let n={doc:e,d:t,meta:wW(o)},r=[yW(),xW(),CW()];r.forEach(({before:i})=>i==null?void 0:i(n)),r.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ei.subscribe(()=>{let e=Ei.getSnapshot(),t=new Map;for(let[o]of e)t.set(o,o.documentElement.style.overflow);for(let o of e.values()){let n=t.get(o.doc)==="hidden",r=o.count!==0;(r&&!n||!r&&n)&&Ei.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&Ei.dispatch("TEARDOWN",o)}});function SW(e,t,o){let n=vW(Ei),r=D(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return lt([e,t],([i,a],[l],s)=>{if(!i||!a)return;Ei.dispatch("PUSH",i,o);let u=!1;s(()=>{u||(Ei.dispatch("POP",l??i,o),u=!0)})},{immediate:!0}),r}let f0=new Map,vl=new Map;function G4(e,t=$(!0)){Et(o=>{var n;if(!t.value)return;let r=fo(e);if(!r)return;o(function(){var a;if(!r)return;let l=(a=vl.get(r))!=null?a:1;if(l===1?vl.delete(r):vl.set(r,l-1),l!==1)return;let s=f0.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,f0.delete(r))});let i=(n=vl.get(r))!=null?n:0;vl.set(r,i+1),i===0&&(f0.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function FW({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let n=$(null),r=Za(n);function i(){var a,l,s;let u=[];for(let d of e)d!==null&&(d instanceof HTMLElement?u.push(d):"value"in d&&d.value instanceof HTMLElement&&u.push(d.value));if(t!=null&&t.value)for(let d of t.value)u.push(d);for(let d of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(fo(n))||d.contains((s=(l=fo(n))==null?void 0:l.getRootNode())==null?void 0:s.host)||u.some(c=>d.contains(c))||u.push(d));return u}return{resolveContainers:i,contains(a){return i().some(l=>l.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return o!=null?null:m(w1,{features:ad.Hidden,ref:n})}}}let n9=Symbol("ForcePortalRootContext");function EW(){return Oe(n9,!1)}let q4=ye({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return et(n9,e.force),()=>{let{force:n,...r}=e;return _r({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}}),r9=Symbol("StackContext");var S1=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(S1||{});function kW(){return Oe(r9,()=>{})}function _W({type:e,enabled:t,element:o,onUpdate:n}){let r=kW();function i(...a){n==null||n(...a),r(...a)}ut(()=>{lt(t,(a,l)=>{a?i(0,e,o):l===!0&&i(1,e,o)},{immediate:!0,flush:"sync"})}),Go(()=>{t.value&&i(1,e,o)}),et(r9,i)}let MW=Symbol("DescriptionContext");function RW({slot:e=$({}),name:t="Description",props:o={}}={}){let n=$([]);function r(i){return n.value.push(i),()=>{let a=n.value.indexOf(i);a!==-1&&n.value.splice(a,1)}}return et(MW,{register:r,slot:e,name:t,props:o}),D(()=>n.value.length>0?n.value.join(" "):void 0)}function zW(e){let t=Za(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let o=t.getElementById("headlessui-portal-root");if(o)return o;let n=t.createElement("div");return n.setAttribute("id","headlessui-portal-root"),t.body.appendChild(n)}const F1=new WeakMap;function $W(e){var t;return(t=F1.get(e))!=null?t:0}function Z4(e,t){let o=t($W(e));return o<=0?F1.delete(e):F1.set(e,o),o}let PW=ye({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let n=$(null),r=D(()=>Za(n)),i=EW(),a=Oe(i9,null),l=$(i===!0||a==null?zW(n.value):a.resolveTarget());l.value&&Z4(l.value,h=>h+1);let s=$(!1);ut(()=>{s.value=!0}),Et(()=>{i||a!=null&&(l.value=a.resolveTarget())});let u=Oe(E1,null),d=!1,c=xr();return lt(n,()=>{if(d||!u)return;let h=fo(n);h&&(Go(u.register(h),c),d=!0)}),Go(()=>{var h,f;let p=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!p||l.value!==p||Z4(l.value,g=>g-1)||l.value.children.length>0||(f=l.value.parentElement)==null||f.removeChild(l.value)}),()=>{if(!s.value||l.value===null)return null;let h={ref:n,"data-headlessui-portal":""};return m(ys,{to:l.value},_r({ourProps:h,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),E1=Symbol("PortalParentContext");function AW(){let e=Oe(E1,null),t=$([]);function o(i){return t.value.push(i),e&&e.register(i),()=>n(i)}function n(i){let a=t.value.indexOf(i);a!==-1&&t.value.splice(a,1),e&&e.unregister(i)}let r={register:o,unregister:n,portals:t};return[t,ye({name:"PortalWrapper",setup(i,{slots:a}){return et(E1,r),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let i9=Symbol("PortalGroupContext"),BW=ye({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let n=It({resolveTarget(){return e.target}});return et(i9,n),()=>{let{target:r,...i}=e;return _r({theirProps:i,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});var DW=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(DW||{});let k1=Symbol("DialogContext");function a9(e){let t=Oe(k1,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,a9),o}return t}let yu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",TW=ye({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:yu},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){var i,a;let l=(i=e.id)!=null?i:`headlessui-dialog-${c6()}`,s=$(!1);ut(()=>{s.value=!0});let u=!1,d=D(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${d}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=$(0),h=f6(),f=D(()=>e.open===yu&&h!==null?(h.value&Jo.Open)===Jo.Open:e.open),p=$(null),g=D(()=>Za(p));if(r({el:p,$el:p}),!(e.open!==yu||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof f.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${f.value===yu?void 0:e.open}`);let v=D(()=>s.value&&f.value?0:1),b=D(()=>v.value===0),x=D(()=>c.value>1),E=Oe(k1,null)!==null,[C,k]=AW(),{resolveContainers:_,mainTreeNodeRef:F,MainTreeNode:P}=FW({portals:C,defaultContainers:[D(()=>{var U;return(U=R.panelRef.value)!=null?U:p.value})]}),z=D(()=>x.value?"parent":"leaf"),B=D(()=>h!==null?(h.value&Jo.Closing)===Jo.Closing:!1),j=D(()=>E||B.value?!1:b.value),V=D(()=>{var U,X,re;return(re=Array.from((X=(U=g.value)==null?void 0:U.querySelectorAll("body > *"))!=null?X:[]).find(he=>he.id==="headlessui-portal-root"?!1:he.contains(fo(F))&&he instanceof HTMLElement))!=null?re:null});G4(V,j);let K=D(()=>x.value?!0:b.value),N=D(()=>{var U,X,re;return(re=Array.from((X=(U=g.value)==null?void 0:U.querySelectorAll("[data-headlessui-portal]"))!=null?X:[]).find(he=>he.contains(fo(F))&&he instanceof HTMLElement))!=null?re:null});G4(N,K),_W({type:"Dialog",enabled:D(()=>v.value===0),element:p,onUpdate:(U,X)=>{if(X==="Dialog")return Qn(U,{[S1.Add]:()=>c.value+=1,[S1.Remove]:()=>c.value-=1})}});let T=RW({name:"DialogDescription",slot:D(()=>({open:f.value}))}),L=$(null),R={titleId:L,panelRef:$(null),dialogState:v,setTitleId(U){L.value!==U&&(L.value=U)},close(){t("close",!1)}};et(k1,R);let I=D(()=>!(!b.value||x.value));lW(_,(U,X)=>{U.preventDefault(),R.close(),Mt(()=>X==null?void 0:X.focus())},I);let w=D(()=>!(x.value||v.value!==0));Jv((a=g.value)==null?void 0:a.defaultView,"keydown",U=>{w.value&&(U.defaultPrevented||U.key===Qv.Escape&&(U.preventDefault(),U.stopPropagation(),R.close()))});let Q=D(()=>!(B.value||v.value!==0||E));return SW(g,Q,U=>{var X;return{containers:[...(X=U.containers)!=null?X:[],_]}}),Et(U=>{if(v.value!==0)return;let X=fo(p);if(!X)return;let re=new ResizeObserver(he=>{for(let Se of he){let pe=Se.target.getBoundingClientRect();pe.x===0&&pe.y===0&&pe.width===0&&pe.height===0&&R.close()}});re.observe(X),U(()=>re.disconnect())}),()=>{let{open:U,initialFocus:X,...re}=e,he={...o,ref:p,id:l,role:d.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":L.value,"aria-describedby":T.value},Se={open:v.value===0};return m(q4,{force:!0},()=>[m(PW,()=>m(BW,{target:p.value},()=>m(q4,{force:!1},()=>m(gl,{initialFocus:X,containers:_,features:b.value?Qn(z.value,{parent:gl.features.RestoreFocus,leaf:gl.features.All&~gl.features.FocusLock}):gl.features.None},()=>m(k,{},()=>_r({ourProps:he,theirProps:{...re,...o},slot:Se,attrs:o,slots:n,visible:v.value===0,features:id.RenderStrategy|id.Static,name:"Dialog"})))))),m(P)])}}}),IW=ye({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:o,expose:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${c6()}`,a=a9("DialogPanel");n({el:a.panelRef,$el:a.panelRef});function l(s){s.stopPropagation()}return()=>{let{...s}=e,u={id:i,ref:a.panelRef,onClick:l};return _r({ourProps:u,theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}});function OW(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function h0(e,...t){e&&t.length>0&&e.classList.add(...t)}function Cu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var _1=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(_1||{});function LW(e,t){let o=Ls();if(!e)return o.dispose;let{transitionDuration:n,transitionDelay:r}=getComputedStyle(e),[i,a]=[n,r].map(l=>{let[s=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return s});return i!==0?o.setTimeout(()=>t("finished"),i+a):t("finished"),o.add(()=>t("cancelled")),o.dispose}function X4(e,t,o,n,r,i){let a=Ls(),l=i!==void 0?OW(i):()=>{};return Cu(e,...r),h0(e,...t,...o),a.nextFrame(()=>{Cu(e,...o),h0(e,...n),a.add(LW(e,s=>(Cu(e,...n,...t),h0(e,...r),l(s))))}),a.add(()=>Cu(e,...t,...o,...n,...r)),a.add(()=>l("cancelled")),a.dispose}function vi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let h6=Symbol("TransitionContext");var HW=(e=>(e.Visible="visible",e.Hidden="hidden",e))(HW||{});function NW(){return Oe(h6,null)!==null}function VW(){let e=Oe(h6,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function WW(){let e=Oe(p6,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let p6=Symbol("NestingContext");function ec(e){return"children"in e?ec(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function l9(e){let t=$([]),o=$(!1);ut(()=>o.value=!0),Go(()=>o.value=!1);function n(i,a=jr.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(Qn(a,{[jr.Unmount](){t.value.splice(l,1)},[jr.Hidden](){t.value[l].state="hidden"}}),!ec(t)&&o.value&&(e==null||e()))}function r(i){let a=t.value.find(({id:l})=>l===i);return a?a.state!=="visible"&&(a.state="visible"):t.value.push({id:i,state:"visible"}),()=>n(i,jr.Unmount)}return{children:t,register:r,unregister:n}}let s9=id.RenderStrategy,Ou=ye({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){let i=$(0);function a(){i.value|=Jo.Opening,t("beforeEnter")}function l(){i.value&=~Jo.Opening,t("afterEnter")}function s(){i.value|=Jo.Closing,t("beforeLeave")}function u(){i.value&=~Jo.Closing,t("afterLeave")}if(!NW()&&uW())return()=>m(u9,{...e,onBeforeEnter:a,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:u},n);let d=$(null),c=D(()=>e.unmount?jr.Unmount:jr.Hidden);r({el:d,$el:d});let{show:h,appear:f}=VW(),{register:p,unregister:g}=WW(),v=$(h.value?"visible":"hidden"),b={value:!0},x=c6(),E={value:!1},C=l9(()=>{!E.value&&v.value!=="hidden"&&(v.value="hidden",g(x),u())});ut(()=>{let K=p(x);Go(K)}),Et(()=>{if(c.value===jr.Hidden&&x){if(h.value&&v.value!=="visible"){v.value="visible";return}Qn(v.value,{hidden:()=>g(x),visible:()=>p(x)})}});let k=vi(e.enter),_=vi(e.enterFrom),F=vi(e.enterTo),P=vi(e.entered),z=vi(e.leave),B=vi(e.leaveFrom),j=vi(e.leaveTo);ut(()=>{Et(()=>{if(v.value==="visible"){let K=fo(d);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function V(K){let N=b.value&&!f.value,T=fo(d);!T||!(T instanceof HTMLElement)||N||(E.value=!0,h.value&&a(),h.value||s(),K(h.value?X4(T,k,_,F,P,L=>{E.value=!1,L===_1.Finished&&l()}):X4(T,z,B,j,P,L=>{E.value=!1,L===_1.Finished&&(ec(C)||(v.value="hidden",g(x),u()))})))}return ut(()=>{lt([h],(K,N,T)=>{V(T),b.value=!1},{immediate:!0})}),et(p6,C),dW(D(()=>Qn(v.value,{visible:Jo.Open,hidden:Jo.Closed})|i.value)),()=>{let{appear:K,show:N,enter:T,enterFrom:L,enterTo:R,entered:I,leave:w,leaveFrom:Q,leaveTo:U,...X}=e,re={ref:d},he={...X,...f.value&&h.value&&Hs.isServer?{class:xe([o.class,X.class,...k,..._])}:{}};return _r({theirProps:he,ourProps:re,slot:{},slots:n,attrs:o,features:s9,visible:v.value==="visible",name:"TransitionChild"})}}}),jW=Ou,u9=ye({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n}){let r=f6(),i=D(()=>e.show===null&&r!==null?(r.value&Jo.Open)===Jo.Open:e.show);Et(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let a=$(i.value?"visible":"hidden"),l=l9(()=>{a.value="hidden"}),s=$(!0),u={show:i,appear:D(()=>e.appear||!s.value)};return ut(()=>{Et(()=>{s.value=!1,i.value?a.value="visible":ec(l)||(a.value="hidden")})}),et(p6,l),et(h6,u),()=>{let d=Xv(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return _r({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[m(jW,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...c,...d},n.default)]},attrs:{},features:s9,visible:a.value==="visible",name:"Transition"})}}});function d9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function UW(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function c9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function f9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})])}function h9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function p9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function KW(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7.848 8.25 1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-1.664A4.33 4.33 0 0 0 10.607 12m3.736 0 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379M14.343 12l-2.882 1.664"})])}function ld(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"})])}function m9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"})])}function g9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function v9(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function GW(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function b9(){const e=D(()=>t.miuiCompatEnable&&t.miuiAppCompatEnable&&t.androidTargetSdk&&t.androidTargetSdk>31),t=St();return ut(()=>{}),{isSupportGameMode:e}}function x9(){const e=St(),t=ui(),o=$(!1),n=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:r,modal:i}=lo(["message","modal"],{configProviderProps:n}),a=async()=>{if(!o.value){await navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CdxVMTx4nf"),i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("未检测到系统存在传送门,请先通过模块修补传送门再进入~")]),y("p",null,[M("已经复制模块下载链接到剪切板了,请务必选择固化并修复传送门~")]),y("p",null,[M("下载链接:https://caiyun.139.com/m/i?135CdxVMTx4nf")])]),negativeText:"确定"});return}i.create({title:"确认打开传送门吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("即将打开")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("传送门")])," ",M("管理界面,确定要继续吗?")])]),positiveText:"确定打开",negativeText:"我再想想",onPositiveClick:async()=>{NN().then(d=>{i.create({title:"已开启",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("好耶OwO~")]),y("p",null,[M("已经成功开启")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("传送门")])," ",M("的管理界面了~")])]),positiveText:"确定"})},d=>{i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>y("p",null,[M("出现异常,无法正常打开传送门QwQ,详细问题可浏览日志记录~")]),negativeText:"确定"})})}})},l=async()=>{const[d,c]=await Me(WV());if(d){t.error("修复传送门失败",d),console.log("进来了修复失败",d);return}console.log("进来了修复成功",c),t.success("修复传送门成功",c),i.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,已经成功修复传送门~实际生效还需要重启")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板/手机管家")])," ",M("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){VN("com.miui.contentextension").then(async h=>{i.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(h=>{i.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}})},s=async()=>{i.create({title:"确认固化应用黑名单吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("固化")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M("后可以避免被系统异常重置,但是后续添加")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M("需要先解除固化,确定要继续吗?")])]),positiveText:"确定固化",negativeText:"我再想想",onPositiveClick:async()=>{W4(400)}})},u=async()=>{i.create({title:"确认解除应用黑名单的固化吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("解除")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M("固化后可以修改应用黑名单列表,修改完毕后建议重新固化")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M(",以避免被系统异常重置,确定要继续吗?")])]),positiveText:"确定解除",negativeText:"我再想想",onPositiveClick:async()=>{W4(600)}})};return ut(()=>{HN().then(d=>{d==="exists"&&(o.value=!0)})}),{open:a,fix:l,isInstallMIUIContentExtension:o,setAuthIsOnlyRead:s,setAuthIsReadAndWrite:u}}const qW={class:"fixed inset-0 flex"},ZW={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},XW={class:"flex flex-1 flex-col"},YW={role:"list",class:"flex flex-1 flex-col gap-y-7"},QW={role:"list",class:"-mx-2 space-y-1"},JW={role:"list",class:"-mx-2 mt-2 space-y-1"},ej={class:"truncate"},tj={class:"mt-auto"},oj={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"},nj={class:"flex flex-1 flex-col"},rj={role:"list",class:"flex flex-1 flex-col gap-y-7"},ij={role:"list",class:"-mx-2 space-y-1"},aj={role:"list",class:"-mx-2 mt-2 space-y-1"},lj={class:"truncate"},sj={class:"mt-auto"},uj={class:"min-h-screen lg:pl-72"},dj={class:"sticky top-0 z-40 backdrop-blur-md lg:mx-auto"},cj={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},fj={class:"flex h-full w-full content-center items-center justify-center"},hj={class:"flex items-center gap-x-4 lg:gap-x-6"},pj={class:"mx-auto max-w-7xl px-4 pb-1 sm:px-6 lg:px-8"},mj=ye({__name:"Sidebar",setup(e){const t=Tv();b9();const o=St(),n=Wv();x9();const r=D(()=>({theme:o.isDarkMode?oo:Gt})),{message:i,modal:a}=lo(["message","modal"],{configProviderProps:r}),l=It([{name:"应用横屏布局",routeName:"home",href:"/",icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-putong"},null)])},{name:"应用布局优化",routeName:"autoui",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=33)},href:"/autoui",icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-yingyong2"},null)])},{name:"游戏显示布局",routeName:"game-booster",href:"/game-booster",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=32&&n.hasGameBoosterDataBase)},icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-youxi7"},null)])},{name:"窗口控制器",routeName:"dot-black-list",href:"/dot-black-list",isShow(){return!!(o.MIOSVersion&&o.MIOSVersion>=1)},icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-kongzhitai"},null)])},{name:"外设按键映射",routeName:"magic-control",href:"/magic-control",icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-youxi8"},null)]),isShow(){return o.deviceCharacteristics==="tablet"}},{name:"精选应用",routeName:"appStore",href:"/appStore",icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-linggan"},null)])},{name:"日志记录",routeName:"logs",href:"/logs",icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-biaoji"},null)])},{name:"新春彩蛋",routeName:"eggs",href:"/eggs",icon:()=>y("svg",{class:"icon","aria-hidden":"true"},[y("use",{"xlink:href":"#icon-chunjie"},null)])}]),s=[{id:1,name:"模块首页",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com",initial:"H",current:!1},{id:2,name:"打赏",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com/donation.html",initial:"D",current:!1}],u=$(!1),d=()=>{o.windowWidth=window.innerWidth};return ut(()=>{window.addEventListener("resize",d)}),Xt(()=>{window.removeEventListener("resize",d)}),(c,h)=>(at("n-badge"),_e(),De("div",null,[y(S(u9),{as:"template",show:u.value},{default:Z(()=>[y(S(TW),{as:"div",class:"relative z-50 lg:hidden",onClose:h[1]||(h[1]=f=>u.value=!1)},{default:Z(()=>[y(S(Ou),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Z(()=>h[4]||(h[4]=[O("div",{class:"fixed inset-0 bg-zinc-900/80"},null,-1)])),_:1}),O("div",qW,[y(S(Ou),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:Z(()=>[y(S(IW),{class:xe(["relative mr-16 flex w-full max-w-xs flex-1",S(o).isDarkMode?"bg-zinc-900":"bg-white"])},{default:Z(()=>[y(S(Ou),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Z(()=>[O("div",ZW,[O("button",{type:"button",class:"-m-2.5 p-2.5",onClick:h[0]||(h[0]=f=>u.value=!1)},[h[5]||(h[5]=O("span",{class:"sr-only"},"Close sidebar",-1)),y(S(GW),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),O("div",{class:xe(["flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-4",S(o).isDarkMode?"bg-[#151515]":"bg-[#f6f6f6]"])},[h[7]||(h[7]=O("div",{class:"flex h-2 shrink-0 items-center"},null,-1)),O("nav",XW,[O("ul",YW,[O("li",null,[O("ul",QW,[(_e(!0),De(ft,null,Ci(l,f=>(_e(),De("li",{key:f.name},[zo((_e(),At(eu(f.href&&f.routeName?"RouterLink":"a"),po({ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.routeName===S(t).name?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:Z(()=>[(_e(),At(eu(f.icon),{class:xe([f.routeName===S(t).name?S(o).isDarkMode?"text-teal-400":"text-teal-600":S(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),M(" "+nt(f.name),1)]),_:2},1040,["onClick","class"])),[[bn,f.isShow?f.isShow():!0]])]))),128))])]),O("li",null,[O("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),O("ul",JW,[(_e(),De(ft,null,Ci(s,f=>O("li",{key:f.name},[y(S(Sl),{to:f.href,class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>[O("span",{class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":S(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},nt(f.initial),3),O("span",ej,nt(f.name),1)]),_:2},1032,["to","class"])])),64))])]),O("li",tj,[y(S(Sl),{to:"/settings",class:xe([S(t).name==="settings"?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group-mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>h[6]||(h[6]=[O("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[O("use",{"xlink:href":"#icon-shezhi"})],-1),M(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),_:1},8,["class"])]),_:1})])]),_:1})]),_:1},8,["show"]),O("div",oj,[O("div",{class:xe(["flex grow flex-col gap-y-5 overflow-y-auto border-r",S(o).isDarkMode?"border-gray-700 bg-[#151515]":"border-gray-200 bg-[#f6f6f6]","px-6 pb-4"])},[h[9]||(h[9]=O("div",{class:"flex h-10 shrink-0 items-center"},null,-1)),O("nav",nj,[O("ul",rj,[O("li",null,[O("ul",ij,[(_e(!0),De(ft,null,Ci(l,f=>(_e(),De("li",{key:f.name},[!f.isShow||f.isShow()?(_e(),At(eu(f.href&&f.routeName?"RouterLink":"a"),po({key:0,ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.routeName===S(t).name?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:Z(()=>[(_e(),At(eu(f.icon),{class:xe([f.routeName===S(t).name?S(o).isDarkMode?"text-teal-400":"text-teal-600":S(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),M(" "+nt(f.name),1)]),_:2},1040,["onClick","class"])):qe("",!0)]))),128))])]),O("li",null,[O("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),O("ul",aj,[(_e(),De(ft,null,Ci(s,f=>O("li",{key:f.name},[y(S(Sl),{to:f.href,class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>[O("span",{class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":S(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},nt(f.initial),3),O("span",lj,nt(f.name),1)]),_:2},1032,["to","class"])])),64))])]),O("li",sj,[y(S(Sl),{to:"/settings",class:xe([S(t).name==="settings"?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>h[8]||(h[8]=[O("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[O("use",{"xlink:href":"#icon-shezhi"})],-1),M(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),O("div",uj,[O("div",dj,[O("div",{class:xe(["flex h-14 items-center gap-x-4 border-b",S(o).isDarkMode?"border-gray-700 bg-zinc-900/50":"border-gray-200 bg-white/50"])},[O("button",{type:"button",class:"m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:h[2]||(h[2]=f=>u.value=!0)},[h[10]||(h[10]=O("span",{class:"sr-only"},"Open sidebar",-1)),y(S(UW),{class:"h-6 w-6","aria-hidden":"true"})]),O("div",cj,[O("div",fj,[O("h1",{class:xe([S(o).isDarkMode?"text-gray-300":"text-gray-600","text-lg font-bold","text-h1 animated-bg bg-clip-text text-center text-transparent"]),style:{"background-image":`linear-gradient(\r +`));let f=Zv((a=c.props)!=null?a:{},s,d),p=qo(c,f,!0);for(let g in f)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=f[g]);return p}return Array.isArray(u)&&u.length===1?u[0]:u}return m(l,Object.assign({},s,d),{default:()=>u})}function qv(e){return e.flatMap(t=>t.type===ft?qv(t.children):[t])}function Zv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},o={};for(let n of e)for(let r in n)r.startsWith("on")&&typeof n[r]=="function"?(o[r]!=null||(o[r]=[]),o[r].push(n[r])):t[r]=n[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(o).map(n=>[n,void 0])));for(let n in o)Object.assign(t,{[n](r,...i){let a=o[n];for(let l of a){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function Xv(e,t=[]){let o=Object.assign({},e);for(let n of t)n in o&&delete o[n];return o}function fW(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ad=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ad||{});let w1=ye({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:o}){return()=>{var n;let{features:r,...i}=e,a={"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return _r({ourProps:a,theirProps:i,slot:{},attrs:o,slots:t,name:"Hidden"})}}}),Yv=Symbol("Context");var Jo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jo||{});function hW(){return f6()!==null}function f6(){return Oe(Yv,null)}function pW(e){tt(Yv,e)}var Qv=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Qv||{});function mW(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let yi=[];mW(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yi[0]!==t.target&&(yi.unshift(t.target),yi=yi.filter(o=>o!=null&&o.isConnected),yi.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Jv(e,t,o,n){Hs.isServer||Et(r=>{e=e??window,e.addEventListener(t,o,n),r(()=>e.removeEventListener(t,o,n))})}var Fl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Fl||{});function gW(){let e=$(0);return Gv("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function e9(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let o of e.value){let n=fo(o);n instanceof HTMLElement&&t.add(n)}return t}var t9=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(t9||{});let gl=Object.assign(ye({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:n}){let r=$(null);n({el:r,$el:r});let i=D(()=>Za(r)),a=$(!1);ut(()=>a.value=!0),Go(()=>a.value=!1),bW({ownerDocument:i},D(()=>a.value&&!!(e.features&16)));let l=xW({ownerDocument:i,container:r,initialFocus:D(()=>e.initialFocus)},D(()=>a.value&&!!(e.features&2)));yW({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},D(()=>a.value&&!!(e.features&8)));let s=gW();function u(f){let p=fo(r);p&&(g=>g())(()=>{Qn(s.value,{[Fl.Forwards]:()=>{Iu(p,Vr.First,{skipElements:[f.relatedTarget]})},[Fl.Backwards]:()=>{Iu(p,Vr.Last,{skipElements:[f.relatedTarget]})}})})}let d=$(!1);function c(f){f.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(f){if(!a.value)return;let p=e9(e.containers);fo(r)instanceof HTMLElement&&p.add(fo(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(o9(p,g)||(d.value?Iu(fo(r),Qn(s.value,{[Fl.Forwards]:()=>Vr.Next,[Fl.Backwards]:()=>Vr.Previous})|Vr.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Ti(f.target)))}return()=>{let f={},p={ref:r,onKeydown:c,onFocusout:h},{features:g,initialFocus:v,containers:b,...x}=e;return m(ft,[!!(g&4)&&m(w1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable}),_r({ourProps:p,theirProps:{...t,...x},slot:f,attrs:t,slots:o,name:"FocusTrap"}),!!(g&4)&&m(w1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable})])}}}),{features:t9});function vW(e){let t=$(yi.slice());return lt([e],([o],[n])=>{n===!0&&o===!1?d6(()=>{t.value.splice(0)}):n===!1&&o===!0&&(t.value=yi.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(n=>n!=null&&n.isConnected))!=null?o:null}}function bW({ownerDocument:e},t){let o=vW(t);ut(()=>{Et(()=>{var n,r;t.value||((n=e.value)==null?void 0:n.activeElement)===((r=e.value)==null?void 0:r.body)&&Ti(o())},{flush:"post"})}),Go(()=>{t.value&&Ti(o())})}function xW({ownerDocument:e,container:t,initialFocus:o},n){let r=$(null),i=$(!1);return ut(()=>i.value=!0),Go(()=>i.value=!1),ut(()=>{lt([t,o,n],(a,l)=>{if(a.every((u,d)=>(l==null?void 0:l[d])===u)||!n.value)return;let s=fo(t);s&&d6(()=>{var u,d;if(!i.value)return;let c=fo(o),h=(u=e.value)==null?void 0:u.activeElement;if(c){if(c===h){r.value=h;return}}else if(s.contains(h)){r.value=h;return}c?Ti(c):Iu(s,Vr.First|Vr.NoScroll)===jv.Error&&console.warn("There are no focusable elements inside the "),r.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function yW({ownerDocument:e,container:t,containers:o,previousActiveElement:n},r){var i;Jv((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!r.value)return;let l=e9(o);fo(t)instanceof HTMLElement&&l.add(fo(t));let s=n.value;if(!s)return;let u=a.target;u&&u instanceof HTMLElement?o9(l,u)?(n.value=u,Ti(u)):(a.preventDefault(),a.stopPropagation(),Ti(s)):Ti(n.value)},!0)}function o9(e,t){for(let o of e)if(o.contains(t))return!0;return!1}function CW(e){let t=xd(e.getSnapshot());return Go(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function wW(e,t){let o=e(),n=new Set;return{getSnapshot(){return o},subscribe(r){return n.add(r),()=>n.delete(r)},dispatch(r,...i){let a=t[r].call(o,...i);a&&(o=a,n.forEach(l=>l()))}}}function SW(){let e;return{before({doc:t}){var o;let n=t.documentElement;e=((o=t.defaultView)!=null?o:window).innerWidth-n.clientWidth},after({doc:t,d:o}){let n=t.documentElement,r=n.clientWidth-n.offsetWidth,i=e-r;o.style(n,"paddingRight",`${i}px`)}}}function FW(){return Kv()?{before({doc:e,d:t,meta:o}){function n(r){return o.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Ls();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),d=e.querySelector(u);d&&!n(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(n(l.target)){let s=l.target;for(;s.parentElement&&n(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(n(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;i!==s&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function EW(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function kW(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let Ei=wW(()=>new Map,{PUSH(e,t){var o;let n=(o=this.get(e))!=null?o:{doc:e,count:0,d:Ls(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let o=this.get(e);return o&&(o.count--,o.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:o}){let n={doc:e,d:t,meta:kW(o)},r=[FW(),SW(),EW()];r.forEach(({before:i})=>i==null?void 0:i(n)),r.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ei.subscribe(()=>{let e=Ei.getSnapshot(),t=new Map;for(let[o]of e)t.set(o,o.documentElement.style.overflow);for(let o of e.values()){let n=t.get(o.doc)==="hidden",r=o.count!==0;(r&&!n||!r&&n)&&Ei.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&Ei.dispatch("TEARDOWN",o)}});function _W(e,t,o){let n=CW(Ei),r=D(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return lt([e,t],([i,a],[l],s)=>{if(!i||!a)return;Ei.dispatch("PUSH",i,o);let u=!1;s(()=>{u||(Ei.dispatch("POP",l??i,o),u=!0)})},{immediate:!0}),r}let f0=new Map,vl=new Map;function G4(e,t=$(!0)){Et(o=>{var n;if(!t.value)return;let r=fo(e);if(!r)return;o(function(){var a;if(!r)return;let l=(a=vl.get(r))!=null?a:1;if(l===1?vl.delete(r):vl.set(r,l-1),l!==1)return;let s=f0.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,f0.delete(r))});let i=(n=vl.get(r))!=null?n:0;vl.set(r,i+1),i===0&&(f0.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function MW({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let n=$(null),r=Za(n);function i(){var a,l,s;let u=[];for(let d of e)d!==null&&(d instanceof HTMLElement?u.push(d):"value"in d&&d.value instanceof HTMLElement&&u.push(d.value));if(t!=null&&t.value)for(let d of t.value)u.push(d);for(let d of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(fo(n))||d.contains((s=(l=fo(n))==null?void 0:l.getRootNode())==null?void 0:s.host)||u.some(c=>d.contains(c))||u.push(d));return u}return{resolveContainers:i,contains(a){return i().some(l=>l.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return o!=null?null:m(w1,{features:ad.Hidden,ref:n})}}}let n9=Symbol("ForcePortalRootContext");function RW(){return Oe(n9,!1)}let q4=ye({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return tt(n9,e.force),()=>{let{force:n,...r}=e;return _r({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}}),r9=Symbol("StackContext");var S1=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(S1||{});function zW(){return Oe(r9,()=>{})}function $W({type:e,enabled:t,element:o,onUpdate:n}){let r=zW();function i(...a){n==null||n(...a),r(...a)}ut(()=>{lt(t,(a,l)=>{a?i(0,e,o):l===!0&&i(1,e,o)},{immediate:!0,flush:"sync"})}),Go(()=>{t.value&&i(1,e,o)}),tt(r9,i)}let PW=Symbol("DescriptionContext");function AW({slot:e=$({}),name:t="Description",props:o={}}={}){let n=$([]);function r(i){return n.value.push(i),()=>{let a=n.value.indexOf(i);a!==-1&&n.value.splice(a,1)}}return tt(PW,{register:r,slot:e,name:t,props:o}),D(()=>n.value.length>0?n.value.join(" "):void 0)}function BW(e){let t=Za(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let o=t.getElementById("headlessui-portal-root");if(o)return o;let n=t.createElement("div");return n.setAttribute("id","headlessui-portal-root"),t.body.appendChild(n)}const F1=new WeakMap;function DW(e){var t;return(t=F1.get(e))!=null?t:0}function Z4(e,t){let o=t(DW(e));return o<=0?F1.delete(e):F1.set(e,o),o}let TW=ye({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let n=$(null),r=D(()=>Za(n)),i=RW(),a=Oe(i9,null),l=$(i===!0||a==null?BW(n.value):a.resolveTarget());l.value&&Z4(l.value,h=>h+1);let s=$(!1);ut(()=>{s.value=!0}),Et(()=>{i||a!=null&&(l.value=a.resolveTarget())});let u=Oe(E1,null),d=!1,c=xr();return lt(n,()=>{if(d||!u)return;let h=fo(n);h&&(Go(u.register(h),c),d=!0)}),Go(()=>{var h,f;let p=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!p||l.value!==p||Z4(l.value,g=>g-1)||l.value.children.length>0||(f=l.value.parentElement)==null||f.removeChild(l.value)}),()=>{if(!s.value||l.value===null)return null;let h={ref:n,"data-headlessui-portal":""};return m(ys,{to:l.value},_r({ourProps:h,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),E1=Symbol("PortalParentContext");function IW(){let e=Oe(E1,null),t=$([]);function o(i){return t.value.push(i),e&&e.register(i),()=>n(i)}function n(i){let a=t.value.indexOf(i);a!==-1&&t.value.splice(a,1),e&&e.unregister(i)}let r={register:o,unregister:n,portals:t};return[t,ye({name:"PortalWrapper",setup(i,{slots:a}){return tt(E1,r),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let i9=Symbol("PortalGroupContext"),OW=ye({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let n=It({resolveTarget(){return e.target}});return tt(i9,n),()=>{let{target:r,...i}=e;return _r({theirProps:i,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});var LW=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(LW||{});let k1=Symbol("DialogContext");function a9(e){let t=Oe(k1,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,a9),o}return t}let yu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",HW=ye({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:yu},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){var i,a;let l=(i=e.id)!=null?i:`headlessui-dialog-${c6()}`,s=$(!1);ut(()=>{s.value=!0});let u=!1,d=D(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${d}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=$(0),h=f6(),f=D(()=>e.open===yu&&h!==null?(h.value&Jo.Open)===Jo.Open:e.open),p=$(null),g=D(()=>Za(p));if(r({el:p,$el:p}),!(e.open!==yu||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof f.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${f.value===yu?void 0:e.open}`);let v=D(()=>s.value&&f.value?0:1),b=D(()=>v.value===0),x=D(()=>c.value>1),E=Oe(k1,null)!==null,[w,k]=IW(),{resolveContainers:_,mainTreeNodeRef:F,MainTreeNode:P}=MW({portals:w,defaultContainers:[D(()=>{var K;return(K=R.panelRef.value)!=null?K:p.value})]}),z=D(()=>x.value?"parent":"leaf"),A=D(()=>h!==null?(h.value&Jo.Closing)===Jo.Closing:!1),G=D(()=>E||A.value?!1:b.value),H=D(()=>{var K,U,ue;return(ue=Array.from((U=(K=g.value)==null?void 0:K.querySelectorAll("body > *"))!=null?U:[]).find(se=>se.id==="headlessui-portal-root"?!1:se.contains(fo(F))&&se instanceof HTMLElement))!=null?ue:null});G4(H,G);let X=D(()=>x.value?!0:b.value),N=D(()=>{var K,U,ue;return(ue=Array.from((U=(K=g.value)==null?void 0:K.querySelectorAll("[data-headlessui-portal]"))!=null?U:[]).find(se=>se.contains(fo(F))&&se instanceof HTMLElement))!=null?ue:null});G4(N,X),$W({type:"Dialog",enabled:D(()=>v.value===0),element:p,onUpdate:(K,U)=>{if(U==="Dialog")return Qn(K,{[S1.Add]:()=>c.value+=1,[S1.Remove]:()=>c.value-=1})}});let T=AW({name:"DialogDescription",slot:D(()=>({open:f.value}))}),O=$(null),R={titleId:O,panelRef:$(null),dialogState:v,setTitleId(K){O.value!==K&&(O.value=K)},close(){t("close",!1)}};tt(k1,R);let L=D(()=>!(!b.value||x.value));cW(_,(K,U)=>{K.preventDefault(),R.close(),Mt(()=>U==null?void 0:U.focus())},L);let ne=D(()=>!(x.value||v.value!==0));Jv((a=g.value)==null?void 0:a.defaultView,"keydown",K=>{ne.value&&(K.defaultPrevented||K.key===Qv.Escape&&(K.preventDefault(),K.stopPropagation(),R.close()))});let y=D(()=>!(A.value||v.value!==0||E));return _W(g,y,K=>{var U;return{containers:[...(U=K.containers)!=null?U:[],_]}}),Et(K=>{if(v.value!==0)return;let U=fo(p);if(!U)return;let ue=new ResizeObserver(se=>{for(let Fe of se){let pe=Fe.target.getBoundingClientRect();pe.x===0&&pe.y===0&&pe.width===0&&pe.height===0&&R.close()}});ue.observe(U),K(()=>ue.disconnect())}),()=>{let{open:K,initialFocus:U,...ue}=e,se={...o,ref:p,id:l,role:d.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":O.value,"aria-describedby":T.value},Fe={open:v.value===0};return m(q4,{force:!0},()=>[m(TW,()=>m(OW,{target:p.value},()=>m(q4,{force:!1},()=>m(gl,{initialFocus:U,containers:_,features:b.value?Qn(z.value,{parent:gl.features.RestoreFocus,leaf:gl.features.All&~gl.features.FocusLock}):gl.features.None},()=>m(k,{},()=>_r({ourProps:se,theirProps:{...ue,...o},slot:Fe,attrs:o,slots:n,visible:v.value===0,features:id.RenderStrategy|id.Static,name:"Dialog"})))))),m(P)])}}}),NW=ye({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:o,expose:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${c6()}`,a=a9("DialogPanel");n({el:a.panelRef,$el:a.panelRef});function l(s){s.stopPropagation()}return()=>{let{...s}=e,u={id:i,ref:a.panelRef,onClick:l};return _r({ourProps:u,theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}});function VW(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function h0(e,...t){e&&t.length>0&&e.classList.add(...t)}function Cu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var _1=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(_1||{});function WW(e,t){let o=Ls();if(!e)return o.dispose;let{transitionDuration:n,transitionDelay:r}=getComputedStyle(e),[i,a]=[n,r].map(l=>{let[s=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return s});return i!==0?o.setTimeout(()=>t("finished"),i+a):t("finished"),o.add(()=>t("cancelled")),o.dispose}function X4(e,t,o,n,r,i){let a=Ls(),l=i!==void 0?VW(i):()=>{};return Cu(e,...r),h0(e,...t,...o),a.nextFrame(()=>{Cu(e,...o),h0(e,...n),a.add(WW(e,s=>(Cu(e,...n,...t),h0(e,...r),l(s))))}),a.add(()=>Cu(e,...t,...o,...n,...r)),a.add(()=>l("cancelled")),a.dispose}function vi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let h6=Symbol("TransitionContext");var jW=(e=>(e.Visible="visible",e.Hidden="hidden",e))(jW||{});function UW(){return Oe(h6,null)!==null}function KW(){let e=Oe(h6,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function GW(){let e=Oe(p6,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let p6=Symbol("NestingContext");function ec(e){return"children"in e?ec(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function l9(e){let t=$([]),o=$(!1);ut(()=>o.value=!0),Go(()=>o.value=!1);function n(i,a=jr.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(Qn(a,{[jr.Unmount](){t.value.splice(l,1)},[jr.Hidden](){t.value[l].state="hidden"}}),!ec(t)&&o.value&&(e==null||e()))}function r(i){let a=t.value.find(({id:l})=>l===i);return a?a.state!=="visible"&&(a.state="visible"):t.value.push({id:i,state:"visible"}),()=>n(i,jr.Unmount)}return{children:t,register:r,unregister:n}}let s9=id.RenderStrategy,Ou=ye({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){let i=$(0);function a(){i.value|=Jo.Opening,t("beforeEnter")}function l(){i.value&=~Jo.Opening,t("afterEnter")}function s(){i.value|=Jo.Closing,t("beforeLeave")}function u(){i.value&=~Jo.Closing,t("afterLeave")}if(!UW()&&hW())return()=>m(u9,{...e,onBeforeEnter:a,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:u},n);let d=$(null),c=D(()=>e.unmount?jr.Unmount:jr.Hidden);r({el:d,$el:d});let{show:h,appear:f}=KW(),{register:p,unregister:g}=GW(),v=$(h.value?"visible":"hidden"),b={value:!0},x=c6(),E={value:!1},w=l9(()=>{!E.value&&v.value!=="hidden"&&(v.value="hidden",g(x),u())});ut(()=>{let X=p(x);Go(X)}),Et(()=>{if(c.value===jr.Hidden&&x){if(h.value&&v.value!=="visible"){v.value="visible";return}Qn(v.value,{hidden:()=>g(x),visible:()=>p(x)})}});let k=vi(e.enter),_=vi(e.enterFrom),F=vi(e.enterTo),P=vi(e.entered),z=vi(e.leave),A=vi(e.leaveFrom),G=vi(e.leaveTo);ut(()=>{Et(()=>{if(v.value==="visible"){let X=fo(d);if(X instanceof Comment&&X.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function H(X){let N=b.value&&!f.value,T=fo(d);!T||!(T instanceof HTMLElement)||N||(E.value=!0,h.value&&a(),h.value||s(),X(h.value?X4(T,k,_,F,P,O=>{E.value=!1,O===_1.Finished&&l()}):X4(T,z,A,G,P,O=>{E.value=!1,O===_1.Finished&&(ec(w)||(v.value="hidden",g(x),u()))})))}return ut(()=>{lt([h],(X,N,T)=>{H(T),b.value=!1},{immediate:!0})}),tt(p6,w),pW(D(()=>Qn(v.value,{visible:Jo.Open,hidden:Jo.Closed})|i.value)),()=>{let{appear:X,show:N,enter:T,enterFrom:O,enterTo:R,entered:L,leave:ne,leaveFrom:y,leaveTo:K,...U}=e,ue={ref:d},se={...U,...f.value&&h.value&&Hs.isServer?{class:xe([o.class,U.class,...k,..._])}:{}};return _r({theirProps:se,ourProps:ue,slot:{},slots:n,attrs:o,features:s9,visible:v.value==="visible",name:"TransitionChild"})}}}),qW=Ou,u9=ye({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n}){let r=f6(),i=D(()=>e.show===null&&r!==null?(r.value&Jo.Open)===Jo.Open:e.show);Et(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let a=$(i.value?"visible":"hidden"),l=l9(()=>{a.value="hidden"}),s=$(!0),u={show:i,appear:D(()=>e.appear||!s.value)};return ut(()=>{Et(()=>{s.value=!1,i.value?a.value="visible":ec(l)||(a.value="hidden")})}),tt(p6,l),tt(h6,u),()=>{let d=Xv(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return _r({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[m(qW,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...c,...d},n.default)]},attrs:{},features:s9,visible:a.value==="visible",name:"Transition"})}}});function d9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function ZW(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function c9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function f9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})])}function h9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function p9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function XW(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7.848 8.25 1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-1.664A4.33 4.33 0 0 0 10.607 12m3.736 0 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379M14.343 12l-2.882 1.664"})])}function ld(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"})])}function m9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"})])}function g9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function v9(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function YW(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function b9(){const e=D(()=>t.miuiCompatEnable&&t.miuiAppCompatEnable&&t.androidTargetSdk&&t.androidTargetSdk>31),t=Ct();return ut(()=>{}),{isSupportGameMode:e}}function x9(){const e=Ct(),t=ui(),o=$(!1),n=D(()=>({theme:e.isDarkMode?to:Vt})),{message:r,modal:i}=ao(["message","modal"],{configProviderProps:n}),a=async()=>{if(!o.value){await navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CdxVMTx4nf"),i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("未检测到系统存在传送门,请先通过模块修补传送门再进入~")]),C("p",null,[M("已经复制模块下载链接到剪切板了,请务必选择固化并修复传送门~")]),C("p",null,[M("下载链接:https://caiyun.139.com/m/i?135CdxVMTx4nf")])]),negativeText:"确定"});return}i.create({title:"确认打开传送门吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("即将打开")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("传送门")])," ",M("管理界面,确定要继续吗?")])]),positiveText:"确定打开",negativeText:"我再想想",onPositiveClick:async()=>{NN().then(d=>{i.create({title:"已开启",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("好耶OwO~")]),C("p",null,[M("已经成功开启")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("传送门")])," ",M("的管理界面了~")])]),positiveText:"确定"})},d=>{i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>C("p",null,[M("出现异常,无法正常打开传送门QwQ,详细问题可浏览日志记录~")]),negativeText:"确定"})})}})},l=async()=>{const[d,c]=await _e(WV());if(d){t.error("修复传送门失败",d),console.log("进来了修复失败",d);return}console.log("进来了修复成功",c),t.success("修复传送门成功",c),i.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,已经成功修复传送门~实际生效还需要重启")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板/手机管家")])," ",M("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){VN("com.miui.contentextension").then(async h=>{i.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(h=>{i.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}})},s=async()=>{i.create({title:"确认固化应用黑名单吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("固化")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M("后可以避免被系统异常重置,但是后续添加")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M("需要先解除固化,确定要继续吗?")])]),positiveText:"确定固化",negativeText:"我再想想",onPositiveClick:async()=>{W4(400)}})},u=async()=>{i.create({title:"确认解除应用黑名单的固化吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("解除")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M("固化后可以修改应用黑名单列表,修改完毕后建议重新固化")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用黑名单")])," ",M(",以避免被系统异常重置,确定要继续吗?")])]),positiveText:"确定解除",negativeText:"我再想想",onPositiveClick:async()=>{W4(600)}})};return ut(()=>{HN().then(d=>{d==="exists"&&(o.value=!0)})}),{open:a,fix:l,isInstallMIUIContentExtension:o,setAuthIsOnlyRead:s,setAuthIsReadAndWrite:u}}const QW={class:"fixed inset-0 flex"},JW={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},ej={class:"flex flex-1 flex-col"},tj={role:"list",class:"flex flex-1 flex-col gap-y-7"},oj={role:"list",class:"-mx-2 space-y-1"},nj={role:"list",class:"-mx-2 mt-2 space-y-1"},rj={class:"truncate"},ij={class:"mt-auto"},aj={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"},lj={class:"flex flex-1 flex-col"},sj={role:"list",class:"flex flex-1 flex-col gap-y-7"},uj={role:"list",class:"-mx-2 space-y-1"},dj={role:"list",class:"-mx-2 mt-2 space-y-1"},cj={class:"truncate"},fj={class:"mt-auto"},hj={class:"min-h-screen lg:pl-72"},pj={class:"sticky top-0 z-40 backdrop-blur-md lg:mx-auto"},mj={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},gj={class:"flex h-full w-full content-center items-center justify-center"},vj={class:"flex items-center gap-x-4 lg:gap-x-6"},bj={class:"mx-auto max-w-7xl px-4 pb-1 sm:px-6 lg:px-8"},xj=ye({__name:"Sidebar",setup(e){const t=Tv();b9();const o=Ct(),n=Wv();x9();const r=D(()=>({theme:o.isDarkMode?to:Vt})),{message:i,modal:a}=ao(["message","modal"],{configProviderProps:r}),l=It([{name:"应用横屏布局",routeName:"home",href:"/",icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-putong"},null)])},{name:"应用布局优化",routeName:"autoui",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=33)},href:"/autoui",icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-yingyong2"},null)])},{name:"游戏显示布局",routeName:"game-booster",href:"/game-booster",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=32&&n.hasGameBoosterDataBase)},icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-youxi7"},null)])},{name:"窗口控制器",routeName:"dot-black-list",href:"/dot-black-list",isShow(){return!!(o.MIOSVersion&&o.MIOSVersion>=1)},icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-kongzhitai"},null)])},{name:"外设按键映射",routeName:"magic-control",href:"/magic-control",icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-youxi8"},null)]),isShow(){return o.deviceCharacteristics==="tablet"}},{name:"精选应用",routeName:"appStore",href:"/appStore",icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-linggan"},null)])},{name:"日志记录",routeName:"logs",href:"/logs",icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-biaoji"},null)])},{name:"新春彩蛋",routeName:"eggs",href:"/eggs",icon:()=>C("svg",{class:"icon","aria-hidden":"true"},[C("use",{"xlink:href":"#icon-chunjie"},null)])}]),s=[{id:1,name:"模块首页",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com",initial:"H",current:!1},{id:2,name:"打赏",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com/donation.html",initial:"D",current:!1}],u=$(!1),d=()=>{o.windowWidth=window.innerWidth};return ut(()=>{window.addEventListener("resize",d)}),Xt(()=>{window.removeEventListener("resize",d)}),(c,h)=>(at("n-badge"),Me(),De("div",null,[C(S(u9),{as:"template",show:u.value},{default:Z(()=>[C(S(HW),{as:"div",class:"relative z-50 lg:hidden",onClose:h[1]||(h[1]=f=>u.value=!1)},{default:Z(()=>[C(S(Ou),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Z(()=>h[4]||(h[4]=[I("div",{class:"fixed inset-0 bg-zinc-900/80"},null,-1)])),_:1}),I("div",QW,[C(S(Ou),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:Z(()=>[C(S(NW),{class:xe(["relative mr-16 flex w-full max-w-xs flex-1",S(o).isDarkMode?"bg-zinc-900":"bg-white"])},{default:Z(()=>[C(S(Ou),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Z(()=>[I("div",JW,[I("button",{type:"button",class:"-m-2.5 p-2.5",onClick:h[0]||(h[0]=f=>u.value=!1)},[h[5]||(h[5]=I("span",{class:"sr-only"},"Close sidebar",-1)),C(S(YW),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),I("div",{class:xe(["flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-4",S(o).isDarkMode?"bg-[#151515]":"bg-[#f6f6f6]"])},[h[7]||(h[7]=I("div",{class:"flex h-2 shrink-0 items-center"},null,-1)),I("nav",ej,[I("ul",tj,[I("li",null,[I("ul",oj,[(Me(!0),De(ft,null,Ci(l,f=>(Me(),De("li",{key:f.name},[zo((Me(),At(eu(f.href&&f.routeName?"RouterLink":"a"),po({ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.routeName===S(t).name?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:Z(()=>[(Me(),At(eu(f.icon),{class:xe([f.routeName===S(t).name?S(o).isDarkMode?"text-teal-400":"text-teal-600":S(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),M(" "+Je(f.name),1)]),_:2},1040,["onClick","class"])),[[bn,f.isShow?f.isShow():!0]])]))),128))])]),I("li",null,[I("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),I("ul",nj,[(Me(),De(ft,null,Ci(s,f=>I("li",{key:f.name},[C(S(Sl),{to:f.href,class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>[I("span",{class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":S(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},Je(f.initial),3),I("span",rj,Je(f.name),1)]),_:2},1032,["to","class"])])),64))])]),I("li",ij,[C(S(Sl),{to:"/settings",class:xe([S(t).name==="settings"?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group-mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>h[6]||(h[6]=[I("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[I("use",{"xlink:href":"#icon-shezhi"})],-1),M(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),_:1},8,["class"])]),_:1})])]),_:1})]),_:1},8,["show"]),I("div",aj,[I("div",{class:xe(["flex grow flex-col gap-y-5 overflow-y-auto border-r",S(o).isDarkMode?"border-gray-700 bg-[#151515]":"border-gray-200 bg-[#f6f6f6]","px-6 pb-4"])},[h[9]||(h[9]=I("div",{class:"flex h-10 shrink-0 items-center"},null,-1)),I("nav",lj,[I("ul",sj,[I("li",null,[I("ul",uj,[(Me(!0),De(ft,null,Ci(l,f=>(Me(),De("li",{key:f.name},[!f.isShow||f.isShow()?(Me(),At(eu(f.href&&f.routeName?"RouterLink":"a"),po({key:0,ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.routeName===S(t).name?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:Z(()=>[(Me(),At(eu(f.icon),{class:xe([f.routeName===S(t).name?S(o).isDarkMode?"text-teal-400":"text-teal-600":S(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),M(" "+Je(f.name),1)]),_:2},1040,["onClick","class"])):Ke("",!0)]))),128))])]),I("li",null,[I("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),I("ul",dj,[(Me(),De(ft,null,Ci(s,f=>I("li",{key:f.name},[C(S(Sl),{to:f.href,class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>[I("span",{class:xe([f.href===S(t).fullPath?S(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":S(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},Je(f.initial),3),I("span",cj,Je(f.name),1)]),_:2},1032,["to","class"])])),64))])]),I("li",fj,[C(S(Sl),{to:"/settings",class:xe([S(t).name==="settings"?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:Z(()=>h[8]||(h[8]=[I("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[I("use",{"xlink:href":"#icon-shezhi"})],-1),M(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),I("div",hj,[I("div",pj,[I("div",{class:xe(["flex h-14 items-center gap-x-4 border-b",S(o).isDarkMode?"border-gray-700 bg-zinc-900/50":"border-gray-200 bg-white/50"])},[I("button",{type:"button",class:"m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:h[2]||(h[2]=f=>u.value=!0)},[h[10]||(h[10]=I("span",{class:"sr-only"},"Open sidebar",-1)),C(S(ZW),{class:"h-6 w-6","aria-hidden":"true"})]),I("div",mj,[I("div",gj,[I("h1",{class:xe([S(o).isDarkMode?"text-gray-300":"text-gray-600","text-lg font-bold","text-h1 animated-bg bg-clip-text text-center text-transparent"]),style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r @@ -4167,12 +4167,12 @@ ro.config.miui_appcompat_enable=true" >> /data/adb/modules/MIUI_MagicWindow+/sys rgb(135, 148, 255) 70.98%,\r rgb(60, 112, 255) 91.35%,\r rgb(60, 112, 255) 110.17%\r - )`}},"完美横屏应用计划 For Web UI",2),qe("",!0)]),O("div",hj,[O("button",{onClick:h[3]||(h[3]=()=>S(i).warning("此区域尚未开放,请以后再来探索吧~")),type:"button",class:"m-2.5 p-2.5 text-gray-400 hover:text-gray-500"},h[11]||(h[11]=[O("span",{class:"sr-only"},"消息中心",-1),O("svg",{class:"icon h-7 w-7","aria-hidden":"true"},[O("use",{"xlink:href":"#icon-xiaoxi"})],-1)]))])])],2)]),O("main",null,[O("div",pj,[Cs(c.$slots,"default")])])])]))}}),y9=ye({__name:"ErrorModal",props:{modelValue:{type:Boolean},errorLogging:{}},setup(e,{emit:t}){const o=e;$(!1);const n=t,r=$(o.modelValue);lt(()=>o.modelValue,a=>{r.value=a});const i=()=>{n("update:modelValue",!1)};return(a,l)=>{const s=at("n-alert"),u=at("n-card"),d=at("n-modal");return _e(),At(d,{onPositiveClick:i,onClose:i,style:{width:"600px"},title:"发生错误",type:"error","block-scroll":"true","positive-text":"确认",preset:"dialog","mask-closable":!0,show:o.modelValue},{default:Z(()=>[y(u,{bordered:!1},{default:Z(()=>[(_e(!0),De(ft,null,Ci(o.errorLogging,c=>(_e(),At(s,{title:`[发生错误] ${c.type}`,class:"mb-5",type:"error"},{default:Z(()=>[O("p",null,"错误描述:无法获取"+nt(c.title),1),O("p",null,"错误详情:"+nt(c.msg),1)]),_:2},1032,["title"]))),256))]),_:1})]),_:1},8,["show"])}}}),gj={class:"splash-screen"},vj=ye({__name:"SplashScreen",setup(e){return St(),(t,o)=>(_e(),De("div",gj,o[0]||(o[0]=[O("div",{class:"flex h-full flex-col items-center justify-center"},[O("div",{class:"mt-[61px] bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[40px] font-[600] leading-[53px] text-black/50 mix-blend-color-burn tablet:mt-[75px] tablet:text-[64px] tablet:leading-[85px]"},"完美横屏应用计划"),O("div",{class:"mt-12 bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[20px] font-[600] leading-[27px] text-black/50 mix-blend-color-burn tablet:mt-[23px] tablet:text-[24px] tablet:font-[600] tablet:leading-[32px]"},"正在加载中,请稍等……")],-1)])))}}),C9=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},bj=C9(vj,[["__scopeId","data-v-1cac3c56"]]),xj="modulepreload",yj=function(e){return"/"+e},Y4={},kn=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(s=>{if(s=yj(s),s in Y4)return;Y4[s]=!0;const u=s.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":xj,u||(c.as="script"),c.crossOrigin="",c.href=s,l&&c.setAttribute("nonce",l),document.head.appendChild(c),u)return new Promise((h,f)=>{c.addEventListener("load",h),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Cj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},wj=()=>{const e="cat /product/etc/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Sj=(e,t)=>{const o=`cmd miui_embedding_window set-appMode ${e} ${t}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Fe(o);i?r(l):n(a)}}),o)},Fj=(e,t)=>{const o=`cmd miui_embedding_window ${t} ${e}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Fe(o);i?r(l):n(a)}}),o)},Ej=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},kj=()=>{const e="cat /product/etc/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},_j=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Mj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Rj=()=>{const e="cat /data/system/users/0/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},zj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},$j=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},w9=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(`am compat reset-all ${e}`);n?o(i):t(r)}}),"resetApplicationCompats"),xa=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],i=St();if(e.isPatchMode){const{errno:p,stdout:g,stderr:v}=await Fe(`echo '${e.patchEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_rules_list.xml`);p?n.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:v}):r.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:"更新成功"});const{errno:b,stdout:x,stderr:E}=await Fe(`echo '${e.patchFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/fixed_orientation_list.xml`);if(b?n.push({type:"patchFixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:E}):r.push({type:"patchixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:C,stdout:k,stderr:_}=await Fe(`echo '${e.patchEmbeddedSettingConfigXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_setting_config.xml`);C?n.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:_}):r.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:"更新成功"})}}const{errno:a,stdout:l,stderr:s}=await Fe(`echo '${e.customEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml`);a?n.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:s}):r.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:"更新成功"});const{errno:u,stdout:d,stderr:c}=await Fe(`echo '${e.customFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml`);if(u?n.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:c}):r.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:p,stdout:g,stderr:v}=await Fe(`echo '${e.settingConfigXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:"更新成功"})}else{const{errno:p,stdout:g,stderr:v}=await Fe(`echo '${e.settingConfigXML}' > /data/system/users/0/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:"更新成功"})}if(e.setAppMode){const[p,g]=await Me(w9(e.setAppMode.name));p&&n.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:p}),g&&r.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:g})}const[h,f]=await Me(Jd("miui_embedding_window"));if(h&&n.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局规则",message:h}),f&&r.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局配置文件",message:f.split(` -`)}),e.switchAction){const{errno:p,stdout:g,stderr:v}=await Fe(`cmd miui_embedding_window ${e.switchAction.action} ${e.switchAction.name}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:g})}if(e.setAppMode){const{errno:p,stdout:g,stderr:v}=await Fe(`cmd miui_embedding_window set-appMode ${e.setAppMode.name} ${e.setAppMode.action}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置为${e.setAppMode.action}`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置${e.setAppMode.action}`,message:g})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),Pj=["com.lbe.security.miui","com.miui.player","com.miui.fm","com.miui.hybrid","com.miui.securitycenter","com.miui.compass","com.miui.contentextension","com.miui.misound","com.miui.voiceassist","com.lbe.security.miui","com.miui.securityadd"],Aj=["com.miui.touchassistant","com.miui.whitenoise","com.tencent.mobileqq","com.tencent.mm","com.alibaba.android.rimet","com.coolapk.market","com.sina.weibo","com.baidu.tieba","com.xuetangx.ykt","io.github.vvb2060.magisk","com.topjohnwu.magisk","io.github.huskydg.magisk","io.github.a13e300.ksuwebui","me.weishu.kernelsu","me.bmax.apatch","com.dna.tools","com.coolapk.market","com.sevtinge.hyperceiler","com.github.kr328.clash.foss","com.github.kr328.clash","com.github.metacubex.clash.meta","com.rocket.e5b382b19324e0a","dev.miuiicons.pedroz","com.tencent.androidqqmail","com.jingdong.app.mall","com.tencent.wework","com.tencent.weworkenterprise","com.taobao.trip","com.fenbi.android.leo","com.duokan.reader","com.xiaomi.shop","com.xiaomi.smarthome","com.youdao.dict","com.netease.uu","com.lemon.lv","com.valvesoftware.android.steam.community","com.douban.book.reader","com.amazon.kindlefc","com.alicloud.databox","com.huawei.appmarket","com.huawei.smarthome","mark.via","com.fenbi.android.servant","com.fenbi.android.zhaojiao","com.eusoft.eudic","com.eusoft.ting.en","com.cnki.android.cnkimobile","com.zui.calculator","com.jd.app.reader","com.huajiao","com.youku.phone","com.tencent.qqlive","com.xiaomi.gamecenter","com.kugou.android","com.ss.android.ugc.aweme","com.ss.android.ugc.live","com.ss.android.ugc.aweme.lite","com.smile.gifmaker","com.kuaishou.nebula","com.bdatu.geography","com.ubestkid.beilehu.android","youqu.android.todesk","com.tencent.docs","com.github.metacubex.clash.meta","com.tencent.pao","com.estrongs.android.pop","com.adobe.reader","com.microsoft.skydrive","cn.com.langeasy.LangEasyLexis","cn.ticktick.task","com.google.earth","com.omarea.vtools","com.plan.kot32.tomatotime","com.farplace.qingzhuo","com.xiachufang","com.happyteam.dubbingshow","czh.mindnode","com.chrissen.card","top.onepix.timeblock","www.imxiaoyu.com.musiceditor","com.mmbox.xbrowser","com.lemon.lv","com.flyersoft.moonreader","com.flyersoft.moonreaderp","com.yikaobang.yixue","com.kwai.m2u","com.qiyi.video.pad","com.smile.gifmaker","com.baidu.baidutranslate","org.zwanoo.android.speedtest","com.xiwang.zaixian","com.yozo.office","com.taobao.taobao","cn.canva.editor","com.singularity.tiangong","com.mubu.app","chuxin.shimo.shimowendang","com.roblox.client","com.netease.cloudmusic","com.netease.mc.mi","com.netease.x19","com.netease.mc.huawei","com.netease.mc.vivo","com.netease.mc.oppo","com.netease.mc.honor","com.netease.mc.bilibili","com.netease.mc.nearme.gamecenter","com.netease.mc.aligames","com.netease.mc.lenovo","com.netease.mc.meta","com.netease.mc.baidu","com.netease.mc","com.netease.mctest","com.hicloud.browser","com.hihonor.health","com.ss.android.ugc.livelite","com.oray.sunlogin","com.microsoft.todos","com.jdjdc.jdfastjdc","com.google.android.apps.translate","com.adsk.sketchbook","com.pick.sketchbook","com.ihuman.recite","com.ctfile","com.quark.scanking","com.hunantv.imgo.activity","com.sohu.sohuvideo","com.wuba.town.client","com.yhqx.player","com.lixiangdong.mediaplayer","cn.ylkj.zmjh","com.yixinli.muse","com.antutu.ABenchMark","cn.honor.qinxuan","com.fenbi.android.zenglish.hd","com.huawei.videoeditor","com.huawei.genexcloud.speedtest","com.huawei.smarthome","com.huawei.ch18","com.hihonor.dz.reader","com.hihonor.health","com.hihonor.vmall","com.hihonor.magichome","com.hihonor.heartstudy","cn.ieway.evcapture","cn.ieway.evplayer2","com.aliyun.wuying.enterprise","com.jingdong.app.reader.campus","com.UCMobile","com.quark.browser","com.smzdm.client.android","com.baidu.netdisk","com.mfcloudcalculate.networkdisk","com.chinamobile.mcloud","info.muge.appshare","com.x7890.shortcutcreator","org.kde.kdeconnect_tp","com.tencent.weread","com.larus.nova","com.moonshot.kimichat","com.baidu.newapp","com.tencent.hunyuan.app.chat","jp.pokemon.pokemonsleep","com.heytap.headset","com.twitter.android","cn.jagat.main","com.furrybar.chat.app","me.ele","com.max.xiaoheihe","com.ruanmei.ithome","com.youdao.translator","com.netflix.NGP.MonumentValley3","com.ophone.reader.ui","studio.fountainhead.habicat","com.hihonor.appmarket","cn.wenyu.bodian","com.zte.smarthome","com.phoenix.read","com.bilibili.app.in","com.bilibili.app.blue","com.joey.colors.simple.c","com.hanfuhui","com.hurantech.cherrysleep","tech.caicheng.youshi","org.panda.words","com.tencent.phoenix","com.tencent.wetype","com.tencent.wehear","com.tencent.weishi","com.ctg.itrdc.clouddesk","com.oppo.store","com.pupumall.customer","me.tangke.gamecores","com.xunmeng.pinduoduo","com.vblast.flipaclip","com.gstarmc.android","com.quickview3d","com.aihuishou.opt","com.duolingo","cn.etouch.ecalendar.life","cn.etouch.ecalendar"],p0=[...Pj,...Aj],Ns=Ki("embedded",()=>{const e=$(!1),t=$(!1),o=$({}),n=$(!1),r=$({}),i=$({}),a=$({}),l=$({}),s=$({}),u=$({}),d=$({}),c=$({}),h=$({}),f=D(()=>{const N=St(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...N.installedAndroidApplicationPackageNameList,...p0]),L=Object.entries(r.value).filter(([R])=>T.has(R));return Object.fromEntries(L)}),p=D(()=>{const N=St(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...N.installedAndroidApplicationPackageNameList,...p0]),L=Object.entries(l.value).filter(([R])=>T.has(R));return Object.fromEntries(L)}),g=D(()=>{const N=St(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...N.installedAndroidApplicationPackageNameList,...p0]),L=Object.entries(c.value).filter(([R])=>T.has(R));return Object.fromEntries(L)}),v=$([]),b=D(()=>{const N=St(),T=new Set(N.installedAndroidApplicationPackageNameList);return v.value.reduce((R,I)=>(T.has(I.name)&&R.push(I.name),R),[])}),x=D(()=>{const N=St(),T=new Set(N.installedAndroidApplicationPackageNameList);return v.value.reduce((R,I)=>{var w;return T.has(I.name)&&(w=I.fixedOrientationRule)!=null&&w.compatChange&&R.push(I.name),R},[])}),E=$(""),C=$(""),k=n7(N=>{E.value=N.trim().toLowerCase()},500);lt(C,N=>{k(N)});const _=D(()=>{const N=v.value,T=St(),L=new Set(T.installedAndroidApplicationPackageNameList),R=t.value,I=E.value,w=o.value,Q=T.installedAppNameList;return N.reduce((U,X)=>{const re=X.name.trim().toLowerCase();Q[X.name]&&!X.applicationName&&(X.applicationName=Q[X.name]),w[X.name]&&!X.applicationName&&(X.applicationName=w[X.name]);const he=X.applicationName?X.applicationName.toLowerCase():"";return!re.includes(I)&&!he.includes(I)||R&&!L.has(X.name)||U.push(X),U},[]).sort((U,X)=>U.ruleMode==="custom"&&X.ruleMode!=="custom"?-1:U.ruleMode!=="custom"&&X.ruleMode==="custom"?1:U.name.localeCompare(X.name))}),F=D(()=>B.length>0),P=D(()=>v.value.length),z=$(!0),B=It([]),j=D(()=>new Set([...e.value?Object.keys(f.value):Object.keys(r.value),...e.value?Object.keys(p.value):Object.keys(l.value),...Object.keys(a.value),...Object.keys(u.value)]));function V(){const N=St();v.value=L4(e.value?f.value:r.value,e.value?p.value:l.value,N.MIOSVersion&&N.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value)}async function K(){const N=St();z.value=!0;const L=(await kn(()=>import("./applicationName-Dtr4j3Qt.js"),[])).default;o.value=L;const[R,I]=await Me(aN());R?B.push({type:"getIsPatchModeErr",title:"补丁模式",msg:R}):I==="true"?e.value=!0:e.value=!1;const w=[Cj(),wj(),_j(),Ej(),kj(),Mj(),zj(),Rj(),$j()],[[Q,U],[X,re],[he,Se],[pe,fe],[we,J],[G,Te],[Ne,H],[oe,ge],[Ce,se]]=await Promise.all(w.map(ce=>Me(ce)));Q&&(r.value={},B.push({type:"sourceEmbeddedRulesList",title:"[模块]平行窗口配置文件",msg:Q})),U&&(r.value=hn(U,"package_config","package")),X&&(i.value={},B.push({type:"SystemEmbeddedRulesList",title:"[系统]平行窗口配置文件",msg:X})),re&&(i.value=hn(re,"package_config","package")),he&&(a.value={}),Se&&(a.value=hn(Se,"package_config","package",!0),console.log(a.value,"customConfigEmbeddedRulesList.value")),pe&&(l.value={},B.push({type:"sourceFixedOrientationList",title:"[模块]信箱模式配置文件",msg:pe})),fe&&(l.value=hn(fe,"package_config","package")),we&&(s.value={}),J&&(s.value=hn(J,"package_config","package")),G&&(u.value={}),Te&&(u.value=hn(Te,"package_config","package",!0)),Ne&&(c.value={}),H&&(c.value=hn(H,"setting_rule","setting")),oe&&(d.value={}),ge&&(d.value=hn(ge,"setting_rule","setting")),Ce&&(h.value={}),se&&(h.value=hn(se,"setting_rule","setting",!0)),ui().info("deviceStore.MIOSVersion",N.MIOSVersion),v.value=L4(e.value?f.value:r.value,e.value?p.value:l.value,N.MIOSVersion&&N.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value),B.length||(z.value=!1,N.needReloadData&&e.value&&(n.value=!0))}return{sourceEmbeddedRulesList:r,sourceFixedOrientationList:l,patchEmbeddedRulesList:f,patchFixedOrientationList:p,patchEmbeddedSettingConfig:g,customConfigEmbeddedRulesList:a,customConfigFixedOrientationList:u,customConfigEmbeddedSettingConfig:h,filterSetAppModeAppList:b,filterResetAppCompatAppList:x,systemEmbeddedSettingConfig:d,systemEmbeddedRulesList:i,systemFixedOrientationList:s,mergeRuleList:v,filterInstalledApps:t,filterMergeRuleList:_,searchKeyWord:C,errorLogging:B,isNeedShowErrorModal:F,loading:z,ruleCount:P,allPackageName:j,applicationName:o,isPatchMode:e,initDefault:K,updateMergeRuleList:V,isNeedShowReloadPathModeDialog:n}},{persist:{pick:["filterInstalledApps"]}}),S9=Ki("font",()=>{const e=$("MiSans"),t=D(()=>`${e.value}, system-ui, sans-serif`);return{currentFont:e,setFont:n=>{e.value=n},currentFontFamily:t}},{persist:{pick:["currentFont"]}}),Bj=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db "SELECT dataId FROM cloud_all_data WHERE moduleName='MiuiFreeform';")"`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Fe(o);if(i&&r(l),a)try{const s=a.split(` -`);n(s)}catch(s){r(s)}}})},Dj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/dot_black_list.json";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);if(n)o(i);else if(r)try{t(JSON.parse(r))}catch{o("dot_black_list config is empty")}else o(null)}}),e)},Tj=()=>{const e="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",t="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db";return new Promise(async(o,n)=>{{const[,r]=await Me(Bj());if(r){const i=async s=>{const u=`echo "$(${e} ${t} "SELECT productData FROM cloud_all_data WHERE dataId='${s}';")"`;return ke(new Promise(async(d,c)=>{const{errno:h,stdout:f,stderr:p}=await Fe(u);if(h&&c(p),f)try{const g=JSON.parse(f);g.dot_black_list?d({dataId:Number(s),productData:g||{},dataList:g.dot_black_list||[]}):d({dataId:Number(s),productData:g||{},dataList:[]})}catch(g){c(g)}}),u)},[a,l]=await Me(Promise.all(r.map(s=>i(s))));a&&n(a),l&&o(l)}}})},Ij=()=>{const e='ls /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db &>/dev/null && echo "exists" || echo "not exists"';return new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):r==="exists"?t(r):o(r)}})},zX=e=>{const t="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",o="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db",n=[],r=[];return ke(new Promise(async(i,a)=>{{const l=Array.from(new Set(e.customDotBlackList)),s=async c=>{const h=`echo '${JSON.stringify(c)}' > /data/adb/MIUI_MagicWindow+/config/dot_black_list.json`;return ke(new Promise(async(f,p)=>{const{errno:g,stdout:v,stderr:b}=await Fe(h);g?(n.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:b}),p(b)):(r.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:"更新成功"}),f(v))}),h)},[u,d]=await Me(s(l));if(u)a(u);else{const c=e.sourceDotBlackList.map(g=>{const v=ya(g.productData);return v.dot_black_list=e.dotBlackList,{dataId:g.dataId,productData:v}}),h=async(g,v)=>{const b=`echo "$(${t} ${o} "UPDATE cloud_all_data SET productData='${JSON.stringify(v).replace(/"/g,'\\"')}' WHERE dataId='${g}'; SELECT changes();")"`;return ke(new Promise(async(x,E)=>{const{errno:C,stdout:k,stderr:_}=await Fe(b);C?E(_):k==="1"?x(k):E(k)}),b)},[f,p]=await Me(Promise.all(c.map(g=>h(g.dataId,g.productData))));f&&a(f),p&&i({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}}}),"updateDotBlackList")},Oj=Ki("dotBlackList",()=>{const e=$(!1),t=$([]),o=D(()=>{if(t.value.length===0)return[];const v=t.value[0].dataList,b=new Set(v);return t.value.slice(1).forEach(x=>{const E=new Set(x.dataList);for(const C of b)E.has(C)||b.delete(C)}),v.filter(x=>b.has(x))}),n=$([]),r=D(()=>{const b=St().installedAppNameList,x=o.value.map(_=>{const F=n.value.includes(_),P=b[_]||a.value[_];return{name:_,applicationName:P,ruleMode:F?"custom":"system",status:!0}}),E=n.value.filter(_=>!o.value.includes(_)).map(_=>{const F=b[_]||a.value[_];return{name:_,applicationName:F,ruleMode:"custom",status:!1}}),C=Math.floor(x.length/2);return[...x.slice(0,C),...E,...x.slice(C)]}),i=D(()=>{const v=d.value.trim().toLowerCase(),b=r.value,x=St();return b.reduce((E,C)=>{const k=C.name.trim().toLowerCase(),_=C.applicationName?C.applicationName.toLowerCase():"";if(!k.includes(v)&&!_.includes(v))return E;const F=new Set(x.installedAndroidApplicationPackageNameList);return e.value&&!F.has(C.name)||E.push(C),E},[]).sort((E,C)=>E.ruleMode==="custom"&&C.ruleMode!=="custom"?-1:E.ruleMode!=="custom"&&C.ruleMode==="custom"?1:E.name.localeCompare(C.name))}),a=$({}),l=$([]),s=D(()=>f.length>0),u=D(()=>l.value.length),d=$(""),c=$(!0),h=$(!1),f=It([]),p=D(()=>new Set([...n.value,...o.value]));async function g(){c.value=!0;const b=(await kn(()=>import("./applicationName-Dtr4j3Qt.js"),[])).default;a.value=b;const[x,E]=await Me(Ij());if(x&&(h.value=!1),E){h.value=!0;const[C,k]=await Me(Tj());C&&(t.value=[]),k&&(t.value=k);const[_,F]=await Me(Dj());_&&(n.value=[]),F&&(n.value=F),c.value=!1}}return{mergeRuleList:l,allPackageName:p,sourceDotBlackList:t,hasHTMLViewerCloudData:h,systemDotBlackList:o,customDotBlackList:n,mergeDotBlackList:r,filterMergeDotBlackList:i,applicationName:a,searchKeyWord:d,errorLogging:f,isNeedShowErrorModal:s,filterInstalledApps:e,loading:c,ruleCount:u,initDefault:g}},{persist:{pick:["filterInstalledApps"]}}),Lj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Hj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},Nj=()=>{const e="cat /data/system/users/0/autoui_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Fe(e);n?o(i):t(r)}}),e)},bl=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],{errno:i,stdout:a,stderr:l}=await Fe(`echo '${e.customAutoUIListXML}' > /data/adb/MIUI_MagicWindow+/config/autoui_list.xml`);i?n.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:l}):r.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:"更新成功"});const{errno:s,stdout:u,stderr:d}=await Fe(`echo '${e.settingConfigXML}' > /data/system/users/0/autoui_setting_config.xml`);s?n.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:d}):r.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:"更新成功"});const[c,h]=await Me(Jd("miui_auto_ui"));if(c&&n.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:c}),h&&r.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:h.split(` -`)}),e.reloadRuleAction){const{errno:f,stdout:p,stderr:g}=await Fe(`cmd miui_auto_ui ${e.reloadRuleAction.action} ${e.reloadRuleAction.name}`);f?n.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:g}):r.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:p})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),m6=Ki("autoui",()=>{const e=$(!1),t=$({}),o=$({}),n=$({}),r=$({}),i=$([]),a=D(()=>{const g=u.value.trim().toLowerCase(),v=i.value,b=St(),x=b.installedAppNameList;return v.reduce((E,C)=>{const k=C.name.trim().toLowerCase();x[C.name]&&!C.applicationName&&(C.applicationName=x[C.name]),n.value[C.name]&&!C.applicationName&&(C.applicationName=n.value[C.name]);const _=C.applicationName?C.applicationName.toLowerCase():"";if(!k.includes(g)&&!_.includes(g))return E;const F=new Set(b.installedAndroidApplicationPackageNameList);return e.value&&!F.has(C.name)||E.push(C),E},[]).sort((E,C)=>E.ruleMode==="custom"&&C.ruleMode!=="custom"?-1:E.ruleMode!=="custom"&&C.ruleMode==="custom"?1:E.name.localeCompare(C.name))}),l=D(()=>c.length>0),s=D(()=>i.value.length),u=$(""),d=$(!0),c=It([]),h=D(()=>new Set([...Object.keys(t.value),...Object.keys(o.value)]));function f(){i.value=H4(t.value,o.value,r.value)}async function p(){d.value=!0;const v=(await kn(()=>import("./applicationName-Dtr4j3Qt.js"),[])).default;n.value=v;const[b,x]=await Me(Lj());b&&c.push({type:"sourceAutoUIList",title:"[模块]应用布局优化配置文件",msg:b}),x&&(t.value=hn(x,"packageRules","package"));const[E,C]=await Me(Hj());E||(o.value=hn(C,"packageRules","package",!0));const[k,_]=await Me(Nj());k&&(r.value={}),_&&(r.value=hn(_,"setting_config","setting")),i.value=H4(t.value,o.value,r.value),c.length||(d.value=!1)}return{sourceAutoUIList:t,customConfigAutoUIList:o,autoUISettingConfig:r,mergeRuleList:i,filterMergeRuleList:a,applicationName:n,searchKeyWord:u,errorLogging:c,isNeedShowErrorModal:l,updateMergeRuleList:f,filterInstalledApps:e,loading:d,ruleCount:s,allPackageName:h,initDefault:p}},{persist:{pick:["filterInstalledApps"]}}),Vj=ye({__name:"App",setup(e){const t=St(),o=ui(),n=Wv(),r=D(()=>({theme:t.isDarkMode?oo:Gt})),{message:i,modal:a}=lo(["message","modal"],{configProviderProps:r}),l=Ns(),s=S9(),u=m6(),d=Oj(),c=$(!1),h=$(!0);Et(p=>{!t.loading&&!l.loading&&(h.value=!1),(t.errorLogging.length||l.errorLogging.length)&&(h.value=!1),p(()=>{})}),lt(()=>s.currentFont,(p,g)=>{p&&document.documentElement.style.setProperty("--global-font-family",s.currentFontFamily)},{immediate:!0}),lt(()=>t.isNeedShowErrorModal,(p,g)=>{p&&(c.value=!0)},{immediate:!1});function f(){return!!window.matchMedia("(prefers-color-scheme: dark)").matches}return Et(p=>{const g=window.matchMedia("(prefers-color-scheme: dark)");t.rhythmMode==="autoRhythm"&&(t.isDarkMode=f());const v=b=>{t.rhythmMode==="autoRhythm"&&(t.isDarkMode=b.matches)};g.addEventListener("change",v),p(()=>{g.removeEventListener("change",v)})}),ut(async()=>{window.onerror=function(p,g,v,b,x){o&&o.error("[JavaScript Error]",p.toString())},window.addEventListener("unhandledrejection",function(p){o&&o.error("[JavaScript Promise Error]",p.reason.toString())}),await t.initDefault(),t.androidTargetSdk&&t.androidTargetSdk===30?a.create({title:"不适配说明",type:"error",preset:"dialog",content:()=>y("p",null,[M("Web UI 未对Android 11做适配,无法使用~")]),negativeText:"确定"}):(t.androidTargetSdk&&t.androidTargetSdk<=33&&!t.skipConfirm.lowWebViewVersion&&a.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("Web UI 强依赖部分较新内核的JavaScript API实现,为了确保模块正常工作,Android 13/12的小米设备可能需要升级系统内置WebView版本,请通过Google Play商店升级!")]),y("p",null,[M("下载地址:https://play.google.com/store/apps/details?id=com.google.android.webview")]),y("p",null,[M("如果下载的是Beta/Dev/Canary版本的WebView,则需要前往[开发者选项-WebView实现]进行切换~")])]),positiveText:"复制下载链接到剪切板",negativeText:"已升级,不再提醒",onPositiveClick:()=>{navigator.clipboard.writeText("https://play.google.com/store/apps/details?id=com.google.android.webview")},onNegativeClick:()=>{t.skipConfirm.lowWebViewVersion=!0}}),l.initDefault(),u.initDefault(),n.initDefault(),t.MIOSVersion&&t.MIOSVersion>=1&&d.initDefault())}),(p,g)=>{const v=at("n-config-provider");return _e(),De("div",{class:xe(["app-container h-full",`${S(t).isDarkMode?"bg-zinc-900 theme-dark-mode":"bg-white"}`])},[y(v,{theme:S(t).isDarkMode?S(oo):void 0},{default:Z(()=>[y(S(mj),null,{default:Z(()=>[y(S(Dv))]),_:1}),y(y9,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),errorLogging:S(t).errorLogging},null,8,["modelValue","errorLogging"]),h.value?(_e(),At(bj,{key:0})):qe("",!0)]),_:1},8,["theme"])],2)}}}),Wj=C9(Vj,[["__scopeId","data-v-d3d3a0fe"]]),F9="/images/icons/all_app.png",sd="/images/icons/ai_icon.png";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const jj=4,Q4=0,J4=1,Uj=2;function Xa(e){let t=e.length;for(;--t>=0;)e[t]=0}const Kj=0,E9=1,Gj=2,qj=3,Zj=258,g6=29,Vs=256,cs=Vs+1+g6,Ma=30,v6=19,k9=2*cs+1,ki=15,m0=16,Xj=7,b6=256,_9=16,M9=17,R9=18,M1=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Lu=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Yj=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),z9=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Qj=512,fr=new Array((cs+2)*2);Xa(fr);const Wl=new Array(Ma*2);Xa(Wl);const fs=new Array(Qj);Xa(fs);const hs=new Array(Zj-qj+1);Xa(hs);const x6=new Array(g6);Xa(x6);const ud=new Array(Ma);Xa(ud);function g0(e,t,o,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=o,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}let $9,P9,A9;function v0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const B9=e=>e<256?fs[e]:fs[256+(e>>>7)],ps=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Uo=(e,t,o)=>{e.bi_valid>m0-o?(e.bi_buf|=t<>m0-e.bi_valid,e.bi_valid+=o-m0):(e.bi_buf|=t<{Uo(e,o[t*2],o[t*2+1])},D9=(e,t)=>{let o=0;do o|=e&1,e>>>=1,o<<=1;while(--t>0);return o>>>1},Jj=e=>{e.bi_valid===16?(ps(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},eU=(e,t)=>{const o=t.dyn_tree,n=t.max_code,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,s=t.stat_desc.max_length;let u,d,c,h,f,p,g=0;for(h=0;h<=ki;h++)e.bl_count[h]=0;for(o[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;us&&(h=s,g++),o[d*2+1]=h,!(d>n)&&(e.bl_count[h]++,f=0,d>=l&&(f=a[d-l]),p=o[d*2],e.opt_len+=p*(h+f),i&&(e.static_len+=p*(r[d*2+1]+f)));if(g!==0){do{for(h=s-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[s]--,g-=2}while(g>0);for(h=s;h!==0;h--)for(d=e.bl_count[h];d!==0;)c=e.heap[--u],!(c>n)&&(o[c*2+1]!==h&&(e.opt_len+=(h-o[c*2+1])*o[c*2],o[c*2+1]=h),d--)}},T9=(e,t,o)=>{const n=new Array(ki+1);let r=0,i,a;for(i=1;i<=ki;i++)r=r+o[i-1]<<1,n[i]=r;for(a=0;a<=t;a++){let l=e[a*2+1];l!==0&&(e[a*2]=D9(n[l]++,l))}},tU=()=>{let e,t,o,n,r;const i=new Array(ki+1);for(o=0,n=0;n>=7;n{let t;for(t=0;t{e.bi_valid>8?ps(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},eh=(e,t,o,n)=>{const r=t*2,i=o*2;return e[r]{const n=e.heap[o];let r=o<<1;for(;r<=e.heap_len&&(r{let n,r,i=0,a,l;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+i++]&255,n+=(e.pending_buf[e.sym_buf+i++]&255)<<8,r=e.pending_buf[e.sym_buf+i++],n===0?Wn(e,r,t):(a=hs[r],Wn(e,a+Vs+1,t),l=M1[a],l!==0&&(r-=x6[a],Uo(e,r,l)),n--,a=B9(n),Wn(e,a,o),l=Lu[a],l!==0&&(n-=ud[a],Uo(e,n,l)));while(i{const o=t.dyn_tree,n=t.stat_desc.static_tree,r=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,l,s=-1,u;for(e.heap_len=0,e.heap_max=k9,a=0;a>1;a>=1;a--)b0(e,o,a);u=i;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],b0(e,o,1),l=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=l,o[u*2]=o[a*2]+o[l*2],e.depth[u]=(e.depth[a]>=e.depth[l]?e.depth[a]:e.depth[l])+1,o[a*2+1]=o[l*2+1]=u,e.heap[1]=u++,b0(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],eU(e,t),T9(o,s,e.bl_count)},oh=(e,t,o)=>{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),t[(o+1)*2+1]=65535,n=0;n<=o;n++)i=a,a=t[(n+1)*2+1],!(++l{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),n=0;n<=o;n++)if(i=a,a=t[(n+1)*2+1],!(++l{let t;for(oh(e,e.dyn_ltree,e.l_desc.max_code),oh(e,e.dyn_dtree,e.d_desc.max_code),R1(e,e.bl_desc),t=v6-1;t>=3&&e.bl_tree[z9[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},nU=(e,t,o,n)=>{let r;for(Uo(e,t-257,5),Uo(e,o-1,5),Uo(e,n-4,4),r=0;r{let t=4093624447,o;for(o=0;o<=31;o++,t>>>=1)if(t&1&&e.dyn_ltree[o*2]!==0)return Q4;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return J4;for(o=32;o{rh||(tU(),rh=!0),e.l_desc=new v0(e.dyn_ltree,$9),e.d_desc=new v0(e.dyn_dtree,P9),e.bl_desc=new v0(e.bl_tree,A9),e.bi_buf=0,e.bi_valid=0,I9(e)},L9=(e,t,o,n)=>{Uo(e,(Kj<<1)+(n?1:0),3),O9(e),ps(e,o),ps(e,~o),o&&e.pending_buf.set(e.window.subarray(t,t+o),e.pending),e.pending+=o},aU=e=>{Uo(e,E9<<1,3),Wn(e,b6,fr),Jj(e)},lU=(e,t,o,n)=>{let r,i,a=0;e.level>0?(e.strm.data_type===Uj&&(e.strm.data_type=rU(e)),R1(e,e.l_desc),R1(e,e.d_desc),a=oU(e),r=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=r&&(r=i)):r=i=o+5,o+4<=r&&t!==-1?L9(e,t,o,n):e.strategy===jj||i===r?(Uo(e,(E9<<1)+(n?1:0),3),th(e,fr,Wl)):(Uo(e,(Gj<<1)+(n?1:0),3),nU(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),th(e,e.dyn_ltree,e.dyn_dtree)),I9(e),n&&O9(e)},sU=(e,t,o)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=o,t===0?e.dyn_ltree[o*2]++:(e.matches++,t--,e.dyn_ltree[(hs[o]+Vs+1)*2]++,e.dyn_dtree[B9(t)*2]++),e.sym_next===e.sym_end);var uU=iU,dU=L9,cU=lU,fU=sU,hU=aU,pU={_tr_init:uU,_tr_stored_block:dU,_tr_flush_block:cU,_tr_tally:fU,_tr_align:hU};const mU=(e,t,o,n)=>{let r=e&65535|0,i=e>>>16&65535|0,a=0;for(;o!==0;){a=o>2e3?2e3:o,o-=a;do r=r+t[n++]|0,i=i+r|0;while(--a);r%=65521,i%=65521}return r|i<<16|0};var ms=mU;const gU=()=>{let e,t=[];for(var o=0;o<256;o++){e=o;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[o]=e}return t},vU=new Uint32Array(gU()),bU=(e,t,o,n)=>{const r=vU,i=n+o;e^=-1;for(let a=n;a>>8^r[(e^t[a])&255];return e^-1};var yo=bU,Vi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},oa={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:xU,_tr_stored_block:z1,_tr_flush_block:yU,_tr_tally:Zr,_tr_align:CU}=pU,{Z_NO_FLUSH:Xr,Z_PARTIAL_FLUSH:wU,Z_FULL_FLUSH:SU,Z_FINISH:mn,Z_BLOCK:ih,Z_OK:Fo,Z_STREAM_END:ah,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:FU,Z_BUF_ERROR:x0,Z_DEFAULT_COMPRESSION:EU,Z_FILTERED:kU,Z_HUFFMAN_ONLY:wu,Z_RLE:_U,Z_FIXED:MU,Z_DEFAULT_STRATEGY:RU,Z_UNKNOWN:zU,Z_DEFLATED:tc}=oa,$U=9,PU=15,AU=8,BU=29,DU=256,$1=DU+1+BU,TU=30,IU=19,OU=2*$1+1,LU=15,Rt=3,Ur=258,qn=Ur+Rt+1,HU=32,Ia=42,y6=57,P1=69,A1=73,B1=91,D1=103,_i=113,El=666,Io=1,Ya=2,Wi=3,Qa=4,NU=3,Mi=(e,t)=>(e.msg=Vi[t],t),lh=e=>e*2-(e>4?9:0),Wr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},VU=e=>{let t,o,n,r=e.w_size;t=e.hash_size,n=t;do o=e.head[--n],e.head[n]=o>=r?o-r:0;while(--t);t=r,n=t;do o=e.prev[--n],e.prev[n]=o>=r?o-r:0;while(--t)};let WU=(e,t,o)=>(t<{const t=e.state;let o=t.pending;o>e.avail_out&&(o=e.avail_out),o!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+o),e.next_out),e.next_out+=o,t.pending_out+=o,e.total_out+=o,e.avail_out-=o,t.pending-=o,t.pending===0&&(t.pending_out=0))},nn=(e,t)=>{yU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qo(e.strm)},Dt=(e,t)=>{e.pending_buf[e.pending++]=t},xl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},T1=(e,t,o,n)=>{let r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),o),e.state.wrap===1?e.adler=ms(e.adler,t,r,o):e.state.wrap===2&&(e.adler=yo(e.adler,t,r,o)),e.next_in+=r,e.total_in+=r,r)},H9=(e,t)=>{let o=e.max_chain_length,n=e.strstart,r,i,a=e.prev_length,l=e.nice_match;const s=e.strstart>e.w_size-qn?e.strstart-(e.w_size-qn):0,u=e.window,d=e.w_mask,c=e.prev,h=e.strstart+Ur;let f=u[n+a-1],p=u[n+a];e.prev_length>=e.good_match&&(o>>=2),l>e.lookahead&&(l=e.lookahead);do if(r=t,!(u[r+a]!==p||u[r+a-1]!==f||u[r]!==u[n]||u[++r]!==u[n+1])){n+=2,r++;do;while(u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&na){if(e.match_start=t,a=i,i>=l)break;f=u[n+a-1],p=u[n+a]}}while((t=c[t&d])>s&&--o!==0);return a<=e.lookahead?a:e.lookahead},Oa=e=>{const t=e.w_size;let o,n,r;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-qn)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),VU(e),n+=t),e.strm.avail_in===0)break;if(o=T1(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=o,e.lookahead+e.insert>=Rt)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Yr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Yr(e,e.ins_h,e.window[r+Rt-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert{let o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,r,i,a=0,l=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_outr+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Qo(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(T1(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(a===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_wateri&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(T1(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===mn)&&t!==Xr&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,a=t===mn&&e.strm.avail_in===0&&n===r?1:0,z1(e,e.block_start,n,a),e.block_start+=n,Qo(e.strm)),a?Wi:Io)},y0=(e,t)=>{let o,n;for(;;){if(e.lookahead=Rt&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),o!==0&&e.strstart-o<=e.w_size-qn&&(e.match_length=H9(e,o)),e.match_length>=Rt)if(n=Zr(e,e.strstart-e.match_start,e.match_length-Rt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Rt){e.match_length--;do e.strstart++,e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+1]);else n=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=e.strstart{let o,n,r;for(;;){if(e.lookahead=Rt&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Rt-1,o!==0&&e.prev_length4096)&&(e.match_length=Rt-1)),e.prev_length>=Rt&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-Rt,n=Zr(e,e.strstart-1-e.prev_match,e.prev_length-Rt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Rt-1,e.strstart++,n&&(nn(e,!1),e.strm.avail_out===0))return Io}else if(e.match_available){if(n=Zr(e,0,e.window[e.strstart-1]),n&&nn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Io}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Zr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let o,n,r,i;const a=e.window;for(;;){if(e.lookahead<=Ur){if(Oa(e),e.lookahead<=Ur&&t===Xr)return Io;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Rt&&e.strstart>0&&(r=e.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){i=e.strstart+Ur;do;while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Rt?(o=Zr(e,1,e.match_length-Rt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Wi:Qa):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:Ya},UU=(e,t)=>{let o;for(;;){if(e.lookahead===0&&(Oa(e),e.lookahead===0)){if(t===Xr)return Io;break}if(e.match_length=0,o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Wi:Qa):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:Ya};function Hn(e,t,o,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=o,this.max_chain=n,this.func=r}const kl=[new Hn(0,0,0,0,N9),new Hn(4,4,8,4,y0),new Hn(4,5,16,8,y0),new Hn(4,6,32,32,y0),new Hn(4,4,16,16,pa),new Hn(8,16,32,32,pa),new Hn(8,16,128,128,pa),new Hn(8,32,128,256,pa),new Hn(32,128,258,1024,pa),new Hn(32,258,258,4096,pa)],KU=e=>{e.window_size=2*e.w_size,Wr(e.head),e.max_lazy_match=kl[e.level].max_lazy,e.good_match=kl[e.level].good_length,e.nice_match=kl[e.level].nice_length,e.max_chain_length=kl[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Rt-1,e.match_available=0,e.ins_h=0};function GU(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=tc,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(OU*2),this.dyn_dtree=new Uint16Array((2*TU+1)*2),this.bl_tree=new Uint16Array((2*IU+1)*2),Wr(this.dyn_ltree),Wr(this.dyn_dtree),Wr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(LU+1),this.heap=new Uint16Array(2*$1+1),Wr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*$1+1),Wr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ws=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ia&&t.status!==y6&&t.status!==P1&&t.status!==A1&&t.status!==B1&&t.status!==D1&&t.status!==_i&&t.status!==El?1:0},V9=e=>{if(Ws(e))return Mi(e,Gn);e.total_in=e.total_out=0,e.data_type=zU;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?y6:t.wrap?Ia:_i,e.adler=t.wrap===2?0:1,t.last_flush=-2,xU(t),Fo},W9=e=>{const t=V9(e);return t===Fo&&KU(e.state),t},qU=(e,t)=>Ws(e)||e.state.wrap!==2?Gn:(e.state.gzhead=t,Fo),j9=(e,t,o,n,r,i)=>{if(!e)return Gn;let a=1;if(t===EU&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>$U||o!==tc||n<8||n>15||t<0||t>9||i<0||i>MU||n===8&&a!==1)return Mi(e,Gn);n===8&&(n=9);const l=new GU;return e.state=l,l.strm=e,l.status=Ia,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<j9(e,t,tc,PU,AU,RU),XU=(e,t)=>{if(Ws(e)||t>ih||t<0)return e?Mi(e,Gn):Gn;const o=e.state;if(!e.output||e.avail_in!==0&&!e.input||o.status===El&&t!==mn)return Mi(e,e.avail_out===0?x0:Gn);const n=o.last_flush;if(o.last_flush=t,o.pending!==0){if(Qo(e),e.avail_out===0)return o.last_flush=-1,Fo}else if(e.avail_in===0&&lh(t)<=lh(n)&&t!==mn)return Mi(e,x0);if(o.status===El&&e.avail_in!==0)return Mi(e,x0);if(o.status===Ia&&o.wrap===0&&(o.status=_i),o.status===Ia){let r=tc+(o.w_bits-8<<4)<<8,i=-1;if(o.strategy>=wu||o.level<2?i=0:o.level<6?i=1:o.level===6?i=2:i=3,r|=i<<6,o.strstart!==0&&(r|=HU),r+=31-r%31,xl(o,r),o.strstart!==0&&(xl(o,e.adler>>>16),xl(o,e.adler&65535)),e.adler=1,o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Fo}if(o.status===y6){if(e.adler=0,Dt(o,31),Dt(o,139),Dt(o,8),o.gzhead)Dt(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),Dt(o,o.gzhead.time&255),Dt(o,o.gzhead.time>>8&255),Dt(o,o.gzhead.time>>16&255),Dt(o,o.gzhead.time>>24&255),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(Dt(o,o.gzhead.extra.length&255),Dt(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=yo(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=P1;else if(Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,NU),o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Fo}if(o.status===P1){if(o.gzhead.extra){let r=o.pending,i=(o.gzhead.extra.length&65535)-o.gzindex;for(;o.pending+i>o.pending_buf_size;){let l=o.pending_buf_size-o.pending;if(o.pending_buf.set(o.gzhead.extra.subarray(o.gzindex,o.gzindex+l),o.pending),o.pending=o.pending_buf_size,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex+=l,Qo(e),o.pending!==0)return o.last_flush=-1,Fo;r=0,i-=l}let a=new Uint8Array(o.gzhead.extra);o.pending_buf.set(a.subarray(o.gzindex,o.gzindex+i),o.pending),o.pending+=i,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=A1}if(o.status===A1){if(o.gzhead.name){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Fo;r=0}o.gzindexr&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=B1}if(o.status===B1){if(o.gzhead.comment){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Fo;r=0}o.gzindexr&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r))}o.status=D1}if(o.status===D1){if(o.gzhead.hcrc){if(o.pending+2>o.pending_buf_size&&(Qo(e),o.pending!==0))return o.last_flush=-1,Fo;Dt(o,e.adler&255),Dt(o,e.adler>>8&255),e.adler=0}if(o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Fo}if(e.avail_in!==0||o.lookahead!==0||t!==Xr&&o.status!==El){let r=o.level===0?N9(o,t):o.strategy===wu?UU(o,t):o.strategy===_U?jU(o,t):kl[o.level].func(o,t);if((r===Wi||r===Qa)&&(o.status=El),r===Io||r===Wi)return e.avail_out===0&&(o.last_flush=-1),Fo;if(r===Ya&&(t===wU?CU(o):t!==ih&&(z1(o,0,0,!1),t===SU&&(Wr(o.head),o.lookahead===0&&(o.strstart=0,o.block_start=0,o.insert=0))),Qo(e),e.avail_out===0))return o.last_flush=-1,Fo}return t!==mn?Fo:o.wrap<=0?ah:(o.wrap===2?(Dt(o,e.adler&255),Dt(o,e.adler>>8&255),Dt(o,e.adler>>16&255),Dt(o,e.adler>>24&255),Dt(o,e.total_in&255),Dt(o,e.total_in>>8&255),Dt(o,e.total_in>>16&255),Dt(o,e.total_in>>24&255)):(xl(o,e.adler>>>16),xl(o,e.adler&65535)),Qo(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?Fo:ah)},YU=e=>{if(Ws(e))return Gn;const t=e.state.status;return e.state=null,t===_i?Mi(e,FU):Fo},QU=(e,t)=>{let o=t.length;if(Ws(e))return Gn;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==Ia||n.lookahead)return Gn;if(r===1&&(e.adler=ms(e.adler,t,o,0)),n.wrap=0,o>=n.w_size){r===0&&(Wr(n.head),n.strstart=0,n.block_start=0,n.insert=0);let s=new Uint8Array(n.w_size);s.set(t.subarray(o-n.w_size,o),0),t=s,o=n.w_size}const i=e.avail_in,a=e.next_in,l=e.input;for(e.avail_in=o,e.next_in=0,e.input=t,Oa(n);n.lookahead>=Rt;){let s=n.strstart,u=n.lookahead-(Rt-1);do n.ins_h=Yr(n,n.ins_h,n.window[s+Rt-1]),n.prev[s&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=s,s++;while(--u);n.strstart=s,n.lookahead=Rt-1,Oa(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Rt-1,n.match_available=0,e.next_in=a,e.input=l,e.avail_in=i,n.wrap=r,Fo};var JU=ZU,eK=j9,tK=W9,oK=V9,nK=qU,rK=XU,iK=YU,aK=QU,lK="pako deflate (from Nodeca project)",jl={deflateInit:JU,deflateInit2:eK,deflateReset:tK,deflateResetKeep:oK,deflateSetHeader:nK,deflate:rK,deflateEnd:iK,deflateSetDictionary:aK,deflateInfo:lK};const sK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var uK=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const o=t.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(const n in o)sK(o,n)&&(e[n]=o[n])}}return e},dK=e=>{let t=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;gs[254]=gs[254]=1;var cK=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,o,n,r,i,a=e.length,l=0;for(r=0;r>>6,t[i++]=128|o&63):o<65536?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return t};const fK=(e,t)=>{if(t<65534&&e.subarray&&U9)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n{const o=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,r;const i=new Array(o*2);for(r=0,n=0;n4){i[r++]=65533,n+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&n1){i[r++]=65533;continue}a<65536?i[r++]=a:(a-=65536,i[r++]=55296|a>>10&1023,i[r++]=56320|a&1023)}return fK(i,r)},pK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let o=t-1;for(;o>=0&&(e[o]&192)===128;)o--;return o<0||o===0?t:o+gs[e[o]]>t?o:t},vs={string2buf:cK,buf2string:hK,utf8border:pK};function mK(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var K9=mK;const G9=Object.prototype.toString,{Z_NO_FLUSH:gK,Z_SYNC_FLUSH:vK,Z_FULL_FLUSH:bK,Z_FINISH:xK,Z_OK:dd,Z_STREAM_END:yK,Z_DEFAULT_COMPRESSION:CK,Z_DEFAULT_STRATEGY:wK,Z_DEFLATED:SK}=oa;function js(e){this.options=oc.assign({level:CK,method:SK,chunkSize:16384,windowBits:15,memLevel:8,strategy:wK},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new K9,this.strm.avail_out=0;let o=jl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(o!==dd)throw new Error(Vi[o]);if(t.header&&jl.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=vs.string2buf(t.dictionary):G9.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,o=jl.deflateSetDictionary(this.strm,n),o!==dd)throw new Error(Vi[o]);this._dict_set=!0}}js.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize;let r,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?xK:gK,typeof e=="string"?o.input=vs.string2buf(e):G9.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){if(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),(i===vK||i===bK)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(r=jl.deflate(o,i),r===yK)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),r=jl.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===dd;if(o.avail_out===0){this.onData(o.output);continue}if(i>0&&o.next_out>0){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(o.avail_in===0)break}return!0};js.prototype.onData=function(e){this.chunks.push(e)};js.prototype.onEnd=function(e){e===dd&&(this.result=oc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function C6(e,t){const o=new js(t);if(o.push(e,!0),o.err)throw o.msg||Vi[o.err];return o.result}function FK(e,t){return t=t||{},t.raw=!0,C6(e,t)}function EK(e,t){return t=t||{},t.gzip=!0,C6(e,t)}var kK=js,_K=C6,MK=FK,RK=EK,zK=oa,$K={Deflate:kK,deflate:_K,deflateRaw:MK,gzip:RK,constants:zK};const Su=16209,PK=16191;var AK=function(t,o){let n,r,i,a,l,s,u,d,c,h,f,p,g,v,b,x,E,C,k,_,F,P,z,B;const j=t.state;n=t.next_in,z=t.input,r=n+(t.avail_in-5),i=t.next_out,B=t.output,a=i-(o-t.avail_out),l=i+(t.avail_out-257),s=j.dmax,u=j.wsize,d=j.whave,c=j.wnext,h=j.window,f=j.hold,p=j.bits,g=j.lencode,v=j.distcode,b=(1<>>24,f>>>=C,p-=C,C=E>>>16&255,C===0)B[i++]=E&65535;else if(C&16){k=E&65535,C&=15,C&&(p>>=C,p-=C),p<15&&(f+=z[n++]<>>24,f>>>=C,p-=C,C=E>>>16&255,C&16){if(_=E&65535,C&=15,ps){t.msg="invalid distance too far back",j.mode=Su;break e}if(f>>>=C,p-=C,C=i-a,_>C){if(C=_-C,C>d&&j.sane){t.msg="invalid distance too far back",j.mode=Su;break e}if(F=0,P=h,c===0){if(F+=u-C,C2;)B[i++]=P[F++],B[i++]=P[F++],B[i++]=P[F++],k-=3;k&&(B[i++]=P[F++],k>1&&(B[i++]=P[F++]))}else{F=i-_;do B[i++]=B[F++],B[i++]=B[F++],B[i++]=B[F++],k-=3;while(k>2);k&&(B[i++]=B[F++],k>1&&(B[i++]=B[F++]))}}else if(C&64){t.msg="invalid distance code",j.mode=Su;break e}else{E=v[(E&65535)+(f&(1<>3,n-=k,p-=k<<3,f&=(1<{const s=l.bits;let u=0,d=0,c=0,h=0,f=0,p=0,g=0,v=0,b=0,x=0,E,C,k,_,F,P=null,z;const B=new Uint16Array(ma+1),j=new Uint16Array(ma+1);let V=null,K,N,T;for(u=0;u<=ma;u++)B[u]=0;for(d=0;d=1&&B[h]===0;h--);if(f>h&&(f=h),h===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,l.bits=1,0;for(c=1;c0&&(e===dh||h!==1))return-1;for(j[1]=0,u=1;ush||e===ch&&b>uh)return 1;for(;;){K=u-g,a[d]+1=z?(N=V[a[d]-z],T=P[a[d]-z]):(N=96,T=0),E=1<>g)+C]=K<<24|N<<16|T|0;while(C!==0);for(E=1<>=1;if(E!==0?(x&=E-1,x+=E):x=0,d++,--B[u]===0){if(u===h)break;u=t[o+a[d]]}if(u>f&&(x&_)!==k){for(g===0&&(g=f),F+=c,p=u-g,v=1<sh||e===ch&&b>uh)return 1;k=x&_,r[k]=f<<24|p<<16|F-i|0}}return x!==0&&(r[F+x]=u-g<<24|64<<16|0),l.bits=f,0};var Ul=OK;const LK=0,q9=1,Z9=2,{Z_FINISH:fh,Z_BLOCK:HK,Z_TREES:Fu,Z_OK:ji,Z_STREAM_END:NK,Z_NEED_DICT:VK,Z_STREAM_ERROR:Cn,Z_DATA_ERROR:X9,Z_MEM_ERROR:Y9,Z_BUF_ERROR:WK,Z_DEFLATED:hh}=oa,nc=16180,ph=16181,mh=16182,gh=16183,vh=16184,bh=16185,xh=16186,yh=16187,Ch=16188,wh=16189,cd=16190,ur=16191,w0=16192,Sh=16193,S0=16194,Fh=16195,Eh=16196,kh=16197,_h=16198,Eu=16199,ku=16200,Mh=16201,Rh=16202,zh=16203,$h=16204,Ph=16205,F0=16206,Ah=16207,Bh=16208,Qt=16209,Q9=16210,J9=16211,jK=852,UK=592,KK=15,GK=KK,Dh=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function qK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const na=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeJ9?1:0},eb=e=>{if(na(e))return Cn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=nc,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(jK),t.distcode=t.distdyn=new Int32Array(UK),t.sane=1,t.back=-1,ji},tb=e=>{if(na(e))return Cn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,eb(e)},ob=(e,t)=>{let o;if(na(e))return Cn;const n=e.state;return t<0?(o=0,t=-t):(o=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Cn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=o,n.wbits=t,tb(e))},nb=(e,t)=>{if(!e)return Cn;const o=new qK;e.state=o,o.strm=e,o.window=null,o.mode=nc;const n=ob(e,t);return n!==ji&&(e.state=null),n},ZK=e=>nb(e,GK);let Th=!0,E0,k0;const XK=e=>{if(Th){E0=new Int32Array(512),k0=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ul(q9,e.lens,0,288,E0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ul(Z9,e.lens,0,32,k0,0,e.work,{bits:5}),Th=!1}e.lencode=E0,e.lenbits=9,e.distcode=k0,e.distbits=5},rb=(e,t,o,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(o-i.wsize,o),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(o-n,o-n+r),i.wnext),n-=r,n?(i.window.set(t.subarray(o-n,o),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave{let o,n,r,i,a,l,s,u,d,c,h,f,p,g,v=0,b,x,E,C,k,_,F,P;const z=new Uint8Array(4);let B,j;const V=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(na(e)||!e.output||!e.input&&e.avail_in!==0)return Cn;o=e.state,o.mode===ur&&(o.mode=w0),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,c=l,h=s,P=ji;e:for(;;)switch(o.mode){case nc:if(o.wrap===0){o.mode=w0;break}for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=yo(o.check,z,2,0),u=0,d=0,o.mode=ph;break}if(o.head&&(o.head.done=!1),!(o.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",o.mode=Qt;break}if((u&15)!==hh){e.msg="unknown compression method",o.mode=Qt;break}if(u>>>=4,d-=4,F=(u&15)+8,o.wbits===0&&(o.wbits=F),F>15||F>o.wbits){e.msg="invalid window size",o.mode=Qt;break}o.dmax=1<>8&1),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=yo(o.check,z,2,0)),u=0,d=0,o.mode=mh;case mh:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>8&255,z[2]=u>>>16&255,z[3]=u>>>24&255,o.check=yo(o.check,z,4,0)),u=0,d=0,o.mode=gh;case gh:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>8),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=yo(o.check,z,2,0)),u=0,d=0,o.mode=vh;case vh:if(o.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=yo(o.check,z,2,0)),u=0,d=0}else o.head&&(o.head.extra=null);o.mode=bh;case bh:if(o.flags&1024&&(f=o.length,f>l&&(f=l),f&&(o.head&&(F=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(n.subarray(i,i+f),F)),o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,o.length-=f),o.length))break e;o.length=0,o.mode=xh;case xh:if(o.flags&2048){if(l===0)break e;f=0;do F=n[i+f++],o.head&&F&&o.length<65536&&(o.head.name+=String.fromCharCode(F));while(F&&f>9&1,o.head.done=!0),e.adler=o.check=0,o.mode=ur;break;case wh:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>=d&7,d-=d&7,o.mode=F0;break}for(;d<3;){if(l===0)break e;l--,u+=n[i++]<>>=1,d-=1,u&3){case 0:o.mode=Sh;break;case 1:if(XK(o),o.mode=Eu,t===Fu){u>>>=2,d-=2;break e}break;case 2:o.mode=Eh;break;case 3:e.msg="invalid block type",o.mode=Qt}u>>>=2,d-=2;break;case Sh:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[i++]<>>16^65535)){e.msg="invalid stored block lengths",o.mode=Qt;break}if(o.length=u&65535,u=0,d=0,o.mode=S0,t===Fu)break e;case S0:o.mode=Fh;case Fh:if(f=o.length,f){if(f>l&&(f=l),f>s&&(f=s),f===0)break e;r.set(n.subarray(i,i+f),a),l-=f,i+=f,s-=f,a+=f,o.length-=f;break}o.mode=ur;break;case Eh:for(;d<14;){if(l===0)break e;l--,u+=n[i++]<>>=5,d-=5,o.ndist=(u&31)+1,u>>>=5,d-=5,o.ncode=(u&15)+4,u>>>=4,d-=4,o.nlen>286||o.ndist>30){e.msg="too many length or distance symbols",o.mode=Qt;break}o.have=0,o.mode=kh;case kh:for(;o.have>>=3,d-=3}for(;o.have<19;)o.lens[V[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,B={bits:o.lenbits},P=Ul(LK,o.lens,0,19,o.lencode,0,o.work,B),o.lenbits=B.bits,P){e.msg="invalid code lengths set",o.mode=Qt;break}o.have=0,o.mode=_h;case _h:for(;o.have>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=b,d-=b,o.lens[o.have++]=E;else{if(E===16){for(j=b+2;d>>=b,d-=b,o.have===0){e.msg="invalid bit length repeat",o.mode=Qt;break}F=o.lens[o.have-1],f=3+(u&3),u>>>=2,d-=2}else if(E===17){for(j=b+3;d>>=b,d-=b,F=0,f=3+(u&7),u>>>=3,d-=3}else{for(j=b+7;d>>=b,d-=b,F=0,f=11+(u&127),u>>>=7,d-=7}if(o.have+f>o.nlen+o.ndist){e.msg="invalid bit length repeat",o.mode=Qt;break}for(;f--;)o.lens[o.have++]=F}}if(o.mode===Qt)break;if(o.lens[256]===0){e.msg="invalid code -- missing end-of-block",o.mode=Qt;break}if(o.lenbits=9,B={bits:o.lenbits},P=Ul(q9,o.lens,0,o.nlen,o.lencode,0,o.work,B),o.lenbits=B.bits,P){e.msg="invalid literal/lengths set",o.mode=Qt;break}if(o.distbits=6,o.distcode=o.distdyn,B={bits:o.distbits},P=Ul(Z9,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,B),o.distbits=B.bits,P){e.msg="invalid distances set",o.mode=Qt;break}if(o.mode=Eu,t===Fu)break e;case Eu:o.mode=ku;case ku:if(l>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,AK(e,h),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,o.mode===ur&&(o.back=-1);break}for(o.back=0;v=o.lencode[u&(1<>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>C)],b=v>>>24,x=v>>>16&255,E=v&65535,!(C+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=C,d-=C,o.back+=C}if(u>>>=b,d-=b,o.back+=b,o.length=E,x===0){o.mode=Ph;break}if(x&32){o.back=-1,o.mode=ur;break}if(x&64){e.msg="invalid literal/length code",o.mode=Qt;break}o.extra=x&15,o.mode=Mh;case Mh:if(o.extra){for(j=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=Rh;case Rh:for(;v=o.distcode[u&(1<>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>C)],b=v>>>24,x=v>>>16&255,E=v&65535,!(C+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=C,d-=C,o.back+=C}if(u>>>=b,d-=b,o.back+=b,x&64){e.msg="invalid distance code",o.mode=Qt;break}o.offset=E,o.extra=x&15,o.mode=zh;case zh:if(o.extra){for(j=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){e.msg="invalid distance too far back",o.mode=Qt;break}o.mode=$h;case $h:if(s===0)break e;if(f=h-s,o.offset>f){if(f=o.offset-f,f>o.whave&&o.sane){e.msg="invalid distance too far back",o.mode=Qt;break}f>o.wnext?(f-=o.wnext,p=o.wsize-f):p=o.wnext-f,f>o.length&&(f=o.length),g=o.window}else g=r,p=a-o.offset,f=o.length;f>s&&(f=s),s-=f,o.length-=f;do r[a++]=g[p++];while(--f);o.length===0&&(o.mode=ku);break;case Ph:if(s===0)break e;r[a++]=o.length,s--,o.mode=ku;break;case F0:if(o.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[i++]<{if(na(e))return Cn;let t=e.state;return t.window&&(t.window=null),e.state=null,ji},JK=(e,t)=>{if(na(e))return Cn;const o=e.state;return o.wrap&2?(o.head=t,t.done=!1,ji):Cn},eG=(e,t)=>{const o=t.length;let n,r,i;return na(e)||(n=e.state,n.wrap!==0&&n.mode!==cd)?Cn:n.mode===cd&&(r=1,r=ms(r,t,o,0),r!==n.check)?X9:(i=rb(e,t,o,o),i?(n.mode=Q9,Y9):(n.havedict=1,ji))};var tG=tb,oG=ob,nG=eb,rG=ZK,iG=nb,aG=YK,lG=QK,sG=JK,uG=eG,dG="pako inflate (from Nodeca project)",hr={inflateReset:tG,inflateReset2:oG,inflateResetKeep:nG,inflateInit:rG,inflateInit2:iG,inflate:aG,inflateEnd:lG,inflateGetHeader:sG,inflateSetDictionary:uG,inflateInfo:dG};function cG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var fG=cG;const ib=Object.prototype.toString,{Z_NO_FLUSH:hG,Z_FINISH:pG,Z_OK:bs,Z_STREAM_END:_0,Z_NEED_DICT:M0,Z_STREAM_ERROR:mG,Z_DATA_ERROR:Ih,Z_MEM_ERROR:gG}=oa;function Us(e){this.options=oc.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new K9,this.strm.avail_out=0;let o=hr.inflateInit2(this.strm,t.windowBits);if(o!==bs)throw new Error(Vi[o]);if(this.header=new fG,hr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=vs.string2buf(t.dictionary):ib.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=hr.inflateSetDictionary(this.strm,t.dictionary),o!==bs)))throw new Error(Vi[o])}Us.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,a,l;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?pG:hG,ib.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),i=hr.inflate(o,a),i===M0&&r&&(i=hr.inflateSetDictionary(o,r),i===bs?i=hr.inflate(o,a):i===Ih&&(i=M0));o.avail_in>0&&i===_0&&o.state.wrap>0&&e[o.next_in]!==0;)hr.inflateReset(o),i=hr.inflate(o,a);switch(i){case mG:case Ih:case M0:case gG:return this.onEnd(i),this.ended=!0,!1}if(l=o.avail_out,o.next_out&&(o.avail_out===0||i===_0))if(this.options.to==="string"){let s=vs.utf8border(o.output,o.next_out),u=o.next_out-s,d=vs.buf2string(o.output,s);o.next_out=u,o.avail_out=n-u,u&&o.output.set(o.output.subarray(s,s+u),0),this.onData(d)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(!(i===bs&&l===0)){if(i===_0)return i=hr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};Us.prototype.onData=function(e){this.chunks.push(e)};Us.prototype.onEnd=function(e){e===bs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=oc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function w6(e,t){const o=new Us(t);if(o.push(e),o.err)throw o.msg||Vi[o.err];return o.result}function vG(e,t){return t=t||{},t.raw=!0,w6(e,t)}var bG=Us,xG=w6,yG=vG,CG=w6,wG=oa,SG={Inflate:bG,inflate:xG,inflateRaw:yG,ungzip:CG,constants:wG};const{Deflate:FG,deflate:EG,deflateRaw:kG,gzip:_G}=$K,{Inflate:MG,inflate:RG,inflateRaw:zG,ungzip:$G}=SG;var PG=FG,AG=EG,BG=kG,DG=_G,TG=MG,IG=RG,OG=zG,LG=$G,HG=oa,La={Deflate:PG,deflate:AG,deflateRaw:BG,gzip:DG,Inflate:TG,inflate:IG,inflateRaw:OG,ungzip:LG,constants:HG};function yl(e){const t=Ns(),o=It({moduleEmbeddedRules:ya(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]),currentEmbeddedRules:ya(t.customConfigEmbeddedRulesList[e]||(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]))||{},moduleFixedOrientation:ya(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]),currentFixedOrientation:ya(t.customConfigFixedOrientationList[e]||(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]))||{}});return{...b5(o)}}const ab=e=>{const t=/^[a-zA-Z0-9_.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},NG=e=>{const t=/^[a-zA-Z0-9_:,.*-]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},VG=e=>{const t=/^[a-zA-Z0-9_,.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},WG={class:"mb-4"},jG={class:"mb-4"},UG={class:"mb-4"},KG={class:"mb-4"},GG={class:"mb-4"},qG={class:"mb-4"},Oh=ye({__name:"EmbeddedAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=$(null),r=e,i=$(!1),a=St(),l=Ns(),s=ui(),u=D(()=>({theme:a.isDarkMode?oo:Gt})),{message:d,modal:c}=lo(["message","modal"],{configProviderProps:u});let h,f;const p=[{label:"强制应用所有界面横屏[nra:cr:rcr:nr]",key:"fullScreen_nra:cr:rcr:nr",rule:"nra:cr:rcr:nr"},{label:"继承应用自身设置横屏[*]",key:"fullScreen_*",rule:"*"},{label:"自定义",key:"fullScreen_custom"}],g=D(()=>{const J=[{label:"默认横屏规则",key:"fullScreen_default",rule:""}];return a.MIOSVersion&&a.MIOSVersion>=2?[...J,...p]:p}),v=[{label:"大尺寸[11:10]",key:"ratio_11_10",ratio:1.1},{label:"中尺寸",key:"ratio_default"},{label:"小尺寸[15:10]",key:"ratio_15_10",ratio:1.5},{label:"小尺寸[18:10]",key:"ratio_18:10",ratio:1.8},{label:"自定义",key:"ratio_custom"}],b=$(g.value[0]),x=$(),E=$(!0),C=$(),k=$(),_=$(v[1]),F=$(),P=$(.5),z=$(!1),B=$(!1),j=$([]),V=J=>{const G=document.querySelector(".n-drawer-content");G instanceof HTMLElement&&(s.info("resizeDrawerContent",J),G.style.height=J?"calc(100% + 200px)":"100%")},K=J=>{var G;V(!0),(G=n.value)==null||G.$el.scrollIntoView({behavior:"smooth",block:"start"})},N=J=>{var G;V(!1),(G=n.value)==null||G.$el.scrollIntoView({behavior:"smooth",block:"start"})},T=$({openDrawer:J=>new Promise((G,Te)=>{var Ne,H,oe,ge,Ce,se,ie;if(r.type==="update"&&!J){Te(new Error("更新模式下必须传入初始化参数")),d.error("初始化参数不能为空");return}h=G,f=Te,r.type==="add"&&(k.value="add",b.value=g.value[0],he.value="",x.value=a.MIOSVersion&&a.MIOSVersion>=2?"":"nra:cr:rcr:nr",j.value=["fullScreen","fixedOrientation","disabled"],X.value=!1,re.value=!1,z.value=!1),r.type==="update"&&J&&(k.value="update",B.value=!1,P.value=.5,C.value=J.ruleMode,he.value=J.name,pe.value=J.isSupportEmbedded,J.embeddedRules&&J.embeddedRules.hasOwnProperty("splitRatio")&&(P.value=J.embeddedRules.splitRatio??.5),J.embeddedRules&&J.embeddedRules.hasOwnProperty("relaunch")?X.value=!!J.embeddedRules.relaunch:X.value=!0,w.value=J.settingMode,Q.value=((Ne=J.fixedOrientationRule)==null?void 0:Ne.disable)??!1,U.value=((H=J.fixedOrientationRule)==null?void 0:H.isShowDivider)??!1,x.value=((oe=J.embeddedRules)==null?void 0:oe.fullRule)??void 0,z.value=((Ce=(ge=J.fixedOrientationRule)==null?void 0:ge.compatChange)==null?void 0:Ce.split(",").includes("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"))??!1,x.value==="nra:cr:rcr:nr"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[1]:g.value[0]:J.embeddedRules&&!J.embeddedRules.hasOwnProperty("fullRule")?(x.value=a.MIOSVersion&&a.MIOSVersion>=2?void 0:"nra:cr:rcr:nr",b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[0]:g.value[1]):x.value==="*"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[2]:g.value[1]:b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[3]:g.value[2],E.value=((se=J.embeddedRules)==null?void 0:se.supportFullSize)??!1,J.fixedOrientationRule&&J.fixedOrientationRule.hasOwnProperty("relaunch")?X.value=!!J.fixedOrientationRule.relaunch:X.value=!1,F.value=((ie=J.fixedOrientationRule)==null?void 0:ie.ratio)??void 0,F.value?F.value===1.1?_.value=v[0]:F.value===1.5?_.value=v[2]:F.value===1.8?_.value=v[3]:_.value=v[4]:_.value=v[1]),i.value=!0}),closeDrawer:()=>{i.value=!1,f("Drawer closed without submission")}}),L=(J,G)=>{b.value=G,x.value=["fullScreen_nra:cr:rcr:nr","fullScreen_*"].includes(J)?G.rule:void 0},R=(J,G)=>{_.value=G,F.value=["ratio_11_10","ratio_15_10","ratio_18:10"].includes(J)?G.ratio:J==="ratio_custom"?1.5:void 0},I=({focused:J,checked:G})=>{const Te={};return G?(Te.background="#2080f0",J&&(Te.boxShadow="0 0 0 2px #2080f040")):(Te.background="#d03050",J&&(Te.boxShadow="0 0 0 2px #d0305040")),Te},w=$("fullScreen"),Q=$(!1),U=$(!0),X=$(!0),re=$(!1),he=$(""),Se=$(""),pe=$(!1),fe=async()=>{if(!he.value){c.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>y("p",null,[M("噫?应用包名不能为空(敲")])});return}if(w.value==="fullScreen"&&!x.value&&(!a.MIOSVersion||a.MIOSVersion<2)){c.create({title:"应用全屏规则不能为空",type:"error",preset:"dialog",content:()=>y("p",null,[M("噫?应用全屏规则不能为空(敲")])});return}if(r.type==="add"&&l.allPackageName.has(he.value)){c.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>y("p",null,[M("噫?这个应用包名已经存在列表中了(敲")])});return}if(r.type==="update"&&pe.value&&w.value==="fullScreen"){const[Ne]=await Me(new Promise((H,oe)=>{c.create({title:"确认使用全屏规则吗?",type:"warning",preset:"dialog",content:()=>C.value==="custom"?y("p",null,[M("当前应用已存在")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的自定义规则")])," ",M(",继续提交可能导致")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的自定义规则")])," ",M("丢失。确定要继续吗?")]):y("p",null,[M("当前应用已存在")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M(",继续更新将会被更替为")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("全屏规则")])," ",M(",如后续需要改回")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M("可能需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{H("positiveClick")},onNegativeClick:()=>{oe("negativeClick")}})}));if(Ne)return}if(r.type==="update"&&C.value==="module"&&B.value){const[Ne]=await Me(new Promise((H,oe)=>{c.create({title:"确认使用平行窗口自定义规则吗?",type:"warning",preset:"dialog",content:()=>y("p",null,[M("当前应用已存在")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M(",继续更新将会被更替为")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的自定义规则")])," ",M(",且该应用规则不再随模块版本更新,如后续需要改回")," ",y("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{H("positiveClick")},onNegativeClick:()=>{oe("negativeClick")}})}));if(Ne)return}we.value=!0;const J=()=>{we.value=!1,i.value=!1},G=()=>{we.value=!1},Te={name:he.value,settingMode:w.value,modePayload:{...w.value==="fullScreen"&&{fullRule:x.value},...w.value==="fullScreen"&&(!a.MIOSVersion||a.MIOSVersion<2)&&{skipSelfAdaptive:Q.value},...w.value==="fullScreen"&&{isShowDivider:U.value},...w.value==="fullScreen"&&{supportFullSize:E.value},...w.value==="fixedOrientation"&&{ratio:F.value},...w.value==="fixedOrientation"&&{foRelaunch:X.value},...w.value==="fixedOrientation"&&a.MIOSVersion&&a.MIOSVersion>=2&&{forceFixedOrientation:z.value},...w.value==="embedded"&&(C.value==="custom"||C.value==="module"&&B.value)&&{splitRatio:P.value},...w.value==="embedded"&&(C.value==="custom"||C.value==="module"&&B.value)&&{emRelaunch:re.value}},loadingCallback:G,closeCallback:J};h(Te)},we=$(!1);return t({openDrawer:T.value.openDrawer}),(J,G)=>{const Te=at("n-input-group-label"),Ne=at("n-input"),H=at("n-input-group"),oe=at("n-tag"),ge=at("n-alert"),Ce=at("n-switch"),se=at("n-card"),ie=at("n-slider"),ce=at("n-input-number"),ne=at("n-tab-pane"),ae=at("n-button"),de=at("n-dropdown"),le=at("n-tabs"),Y=at("n-drawer-content"),ue=at("n-drawer");return _e(),De(ft,null,[Cs(J.$slots,"default",qh(n3({openDrawer:T.value.openDrawer}))),y(ue,{show:i.value,"onUpdate:show":G[21]||(G[21]=ve=>i.value=ve),width:S(a).windowWidth>=640?"450px":"100%",placement:"right"},{default:Z(()=>[y(Y,{title:r.title,closable:""},{footer:Z(()=>[y(ae,{type:"info",loading:we.value,"onUpdate:loading":G[19]||(G[19]=ve=>we.value=ve),onClick:G[20]||(G[20]=()=>fe())},{default:Z(()=>G[54]||(G[54]=[M(" 提交 ")])),_:1},8,["loading"])]),default:Z(()=>[y(H,null,{default:Z(()=>[y(Te,{size:"large"},{default:Z(()=>G[22]||(G[22]=[M("应用包名")])),_:1}),y(Ne,{size:"large",status:Se.value,value:he.value,"onUpdate:value":G[0]||(G[0]=ve=>he.value=ve),"allow-input":ve=>ab(ve),readonly:r.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),C.value==="custom"?(_e(),At(ge,{key:0,type:"info",class:"mt-5"},{default:Z(()=>[G[25]||(G[25]=M(" 当前应用已被 ")),y(oe,{bordered:!1,type:"info"},{default:Z(()=>G[23]||(G[23]=[M("自定义规则")])),_:1}),G[26]||(G[26]=M(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),y(oe,{bordered:!1,type:"info"},{default:Z(()=>G[24]||(G[24]=[M("自定义规则")])),_:1}),G[27]||(G[27]=M(" 。 "))]),_:1})):qe("",!0),y(le,{class:"my-3",type:"segment",animated:"",value:w.value,"onUpdate:value":G[18]||(G[18]=ve=>w.value=ve)},{default:Z(()=>[r.type==="update"&&pe.value?(_e(),At(ne,{key:0,name:"embedded",tab:"平行窗口"},{default:Z(()=>[y(ge,{"show-icon":!1,bordered:!1,title:"应用分屏显示",type:"success"},{default:Z(()=>G[28]||(G[28]=[M(" 开启后,未适配横屏应用界面将通过平行窗口显示 ")])),_:1}),C.value==="module"?(_e(),At(se,{key:0,bordered:!1,title:"切换自定义规则",size:"small"},{default:Z(()=>[O("div",WG,[y(oe,{bordered:!1,type:"info"},{default:Z(()=>G[29]||(G[29]=[M(" 切换为自定义规则后该应用不再随模块更新 ")])),_:1})]),y(Ce,{"rail-style":I,value:B.value,"onUpdate:value":G[1]||(G[1]=ve=>B.value=ve),size:"large"},{checked:Z(()=>G[30]||(G[30]=[M("使用自定义规则")])),unchecked:Z(()=>G[31]||(G[31]=[M("不使用自定义规则")])),_:1},8,["value"])]),_:1})):qe("",!0),C.value==="custom"||B.value?(_e(),At(se,{key:1,bordered:!1,title:"平行窗口默认分屏比例",size:"small"},{default:Z(()=>[y(ie,{value:P.value,"onUpdate:value":G[2]||(G[2]=ve=>P.value=ve),size:"small",min:.01,max:.99,step:.01},null,8,["value"]),y(ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入平行窗口默认分屏比例",value:P.value,"onUpdate:value":G[3]||(G[3]=ve=>P.value=ve),min:.01,max:.99,step:.01},null,8,["value"])]),_:1})):qe("",!0),C.value==="custom"||B.value?(_e(),At(se,{key:2,bordered:!1,title:"平行窗口显示比例发生变化时是否重载",size:"small"},{default:Z(()=>[O("div",jG,[y(oe,{bordered:!1,type:"success"},{default:Z(()=>G[32]||(G[32]=[M(" 适用于开启 "),O("span",{class:"font-bold"},"平行窗口滑动条",-1),M(" 的应用 ")])),_:1})]),y(Ce,{"rail-style":I,value:re.value,"onUpdate:value":G[4]||(G[4]=ve=>re.value=ve),size:"large"},{checked:Z(()=>G[33]||(G[33]=[M("平行窗口显示比例变化时重载")])),unchecked:Z(()=>G[34]||(G[34]=[M("平行窗口显示比例变化时不重载")])),_:1},8,["value"])]),_:1})):qe("",!0)]),_:1})):qe("",!0),y(ne,{name:"fullScreen",tab:"全屏"},{default:Z(()=>[y(ge,{"show-icon":!1,bordered:!1,title:"应用横屏显示",type:"info"},{default:Z(()=>G[35]||(G[35]=[M(" 开启后,未适配横屏应用界面将全屏显示,并可更改显示规则 ")])),_:1}),y(se,{bordered:!1,title:"横屏显示规则",size:"small"},{default:Z(()=>[y(de,{modelValue:b.value,"onUpdate:modelValue":G[5]||(G[5]=ve=>b.value=ve),size:"large",trigger:"click",options:g.value,onSelect:L},{default:Z(()=>[y(ae,{block:"",type:"info",dashed:""},{default:Z(()=>[M(nt(b.value.label),1)]),_:1})]),_:1},8,["modelValue","options"])]),_:1}),b.value.key==="fullScreen_custom"?(_e(),At(se,{key:0,bordered:!1,title:"自定义横屏规则",size:"small"},{default:Z(()=>[y(H,null,{default:Z(()=>[y(Ne,{ref_key:"currentFullRuleRef",ref:n,onFocus:G[6]||(G[6]=()=>K("currentFullRuleRef")),onBlur:G[7]||(G[7]=()=>N("currentFullRuleRef")),value:x.value,"onUpdate:value":G[8]||(G[8]=ve=>x.value=ve),placeholder:"请输入横屏规则"},null,8,["value"])]),_:1})]),_:1})):qe("",!0),!S(a).MIOSVersion||S(a).MIOSVersion<2?(_e(),At(se,{key:1,class:"",bordered:!1,title:"跳过应用自适配声明",size:"small"},{default:Z(()=>[O("div",UG,[y(oe,{bordered:!1,type:"success"},{default:Z(()=>G[36]||(G[36]=[M(" 适用于即使设置了 "),O("span",{class:"font-bold"},"横屏规则",-1),M(" 仍无法横屏的应用 ")])),_:1})]),y(Ce,{"rail-style":I,value:Q.value,"onUpdate:value":G[9]||(G[9]=ve=>Q.value=ve),size:"large"},{checked:Z(()=>G[37]||(G[37]=[M("跳过自适配声明")])),unchecked:Z(()=>G[38]||(G[38]=[M("不跳过自适配声明")])),_:1},8,["value"])]),_:1})):qe("",!0),y(se,{bordered:!1,title:"平行窗口滑动条",size:"small"},{default:Z(()=>[O("div",KG,[y(oe,{bordered:!1,type:"success"},{default:Z(()=>G[39]||(G[39]=[M(" 适用于原生适配 "),O("span",{class:"font-bold"},"Android Embedded",-1),M(" 的应用 ")])),_:1})]),y(Ce,{"rail-style":I,value:U.value,"onUpdate:value":G[10]||(G[10]=ve=>U.value=ve),size:"large"},{checked:Z(()=>G[40]||(G[40]=[M("启用平行窗口滑动条")])),unchecked:Z(()=>G[41]||(G[41]=[M("关闭平行窗口滑动条")])),_:1},8,["value"])]),_:1}),U.value?(_e(),At(se,{key:2,bordered:!1,title:"平行窗口可滑动至全屏",size:"small"},{default:Z(()=>[O("div",GG,[y(oe,{bordered:!1,type:"success"},{default:Z(()=>G[42]||(G[42]=[M(" 适用于原生适配 "),O("span",{class:"font-bold"},"Android Embedded",-1),M(" 的应用 ")])),_:1})]),y(Ce,{"rail-style":I,value:E.value,"onUpdate:value":G[11]||(G[11]=ve=>E.value=ve),size:"large"},{checked:Z(()=>G[43]||(G[43]=[M("平行窗口可滑动至全屏")])),unchecked:Z(()=>G[44]||(G[44]=[M("平行窗口不可滑动至全屏")])),_:1},8,["value"])]),_:1})):qe("",!0)]),_:1}),y(ne,{name:"fixedOrientation",tab:"居中布局"},{default:Z(()=>[y(ge,{"show-icon":!1,bordered:!1,title:"应用居中显示",type:"warning"},{default:Z(()=>G[45]||(G[45]=[M(" 开启后,未适配横屏应用界面将居中显示,并可更改显示比例 ")])),_:1}),y(se,{bordered:!1,title:"居中显示比例",size:"small"},{default:Z(()=>[y(de,{value:_.value,"onUpdate:value":G[12]||(G[12]=ve=>_.value=ve),size:"large",trigger:"click",options:v,onSelect:R},{default:Z(()=>[y(ae,{block:"",type:"error",dashed:""},{default:Z(()=>[M(nt(_.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),_.value.key==="ratio_custom"?(_e(),At(se,{key:0,bordered:!1,title:"自定义显示比例",size:"small"},{default:Z(()=>[y(ie,{size:"small",value:F.value,"onUpdate:value":G[13]||(G[13]=ve=>F.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"]),y(ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入自定义显示比例",value:F.value,"onUpdate:value":G[14]||(G[14]=ve=>F.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"])]),_:1})):qe("",!0),y(se,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:Z(()=>[y(Ce,{"rail-style":I,value:X.value,"onUpdate:value":G[15]||(G[15]=ve=>X.value=ve),size:"large"},{checked:Z(()=>G[46]||(G[46]=[M("应用比例变化时重载应用")])),unchecked:Z(()=>G[47]||(G[47]=[M("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1}),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(_e(),At(se,{key:1,class:"",bordered:!1,title:"强制应用居中显示",size:"small"},{default:Z(()=>[O("div",qG,[y(oe,{bordered:!1,type:"success"},{default:Z(()=>G[48]||(G[48]=[M(" 适用于即使设置了 "),O("span",{class:"font-bold"},"居中布局",-1),M(" 仍无法居中显示的应用 ")])),_:1})]),y(Ce,{"rail-style":I,value:z.value,"onUpdate:value":G[16]||(G[16]=ve=>z.value=ve),size:"large"},{checked:Z(()=>G[49]||(G[49]=[M("强制应用居中显示")])),unchecked:Z(()=>G[50]||(G[50]=[M("不强制应用居中显示")])),_:1},8,["value"])]),_:1})):qe("",!0)]),_:1}),y(ne,{name:"disabled",tab:"原始布局"},{default:Z(()=>[y(ge,{"show-icon":!1,bordered:!1,title:"应用原始布局",type:"error"},{default:Z(()=>G[51]||(G[51]=[M(" 开启后,将禁用任何系统规则干预,应用会根据自身的适配规则进行显示,大多数应用仅竖屏显示 ")])),_:1}),y(se,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:Z(()=>[y(Ce,{"rail-style":I,value:X.value,"onUpdate:value":G[17]||(G[17]=ve=>X.value=ve),size:"large"},{checked:Z(()=>G[52]||(G[52]=[M("应用比例变化时重载应用")])),unchecked:Z(()=>G[53]||(G[53]=[M("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function lb(){const e=St(),t=$(!1),o=()=>new Promise(async(n,r)=>{if(t.value)r("已经有存在的任务了!");else{t.value=!0;const[i,a]=await Me(LN());if(i&&(r(i),t.value=!1),a){const l=a.trim().split(` -`).filter(u=>u),s={};l.forEach(u=>{const[,d,c]=u.split(",");s[d]=c}),e.installedAppNameList=s,n(s),t.value=!1}}});return{loading:t,installedAppNameList:e.installedAppNameList,getList:o}}function ZG(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-.53 14.03a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V8.25a.75.75 0 0 0-1.5 0v5.69l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3Z","clip-rule":"evenodd"})])}function XG(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M12 7.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}),O("path",{"fill-rule":"evenodd",d:"M1.5 4.875C1.5 3.839 2.34 3 3.375 3h17.25c1.035 0 1.875.84 1.875 1.875v9.75c0 1.036-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 14.625v-9.75ZM8.25 9.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM18.75 9a.75.75 0 0 0-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 0 0 .75-.75V9.75a.75.75 0 0 0-.75-.75h-.008ZM4.5 9.75A.75.75 0 0 1 5.25 9h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H5.25a.75.75 0 0 1-.75-.75V9.75Z","clip-rule":"evenodd"}),O("path",{d:"M2.25 18a.75.75 0 0 0 0 1.5c5.4 0 10.63.722 15.6 2.075 1.19.324 2.4-.558 2.4-1.82V18.75a.75.75 0 0 0-.75-.75H2.25Z"})])}function YG(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"}),O("path",{"fill-rule":"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z","clip-rule":"evenodd"})])}function QG(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z","clip-rule":"evenodd"})])}function JG(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}function sb(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 0 0-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 0 0-2.282.819l-.922 1.597a1.875 1.875 0 0 0 .432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 0 0 0 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 0 0-.432 2.385l.922 1.597a1.875 1.875 0 0 0 2.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 0 0 2.28-.819l.923-1.597a1.875 1.875 0 0 0-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 0 0 0-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 0 0-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 0 0-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 0 0-1.85-1.567h-1.843ZM12 15.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z","clip-rule":"evenodd"})])}function eq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M16.5 7.5h-9v9h9v-9Z"}),O("path",{"fill-rule":"evenodd",d:"M8.25 2.25A.75.75 0 0 1 9 3v.75h2.25V3a.75.75 0 0 1 1.5 0v.75H15V3a.75.75 0 0 1 1.5 0v.75h.75a3 3 0 0 1 3 3v.75H21A.75.75 0 0 1 21 9h-.75v2.25H21a.75.75 0 0 1 0 1.5h-.75V15H21a.75.75 0 0 1 0 1.5h-.75v.75a3 3 0 0 1-3 3h-.75V21a.75.75 0 0 1-1.5 0v-.75h-2.25V21a.75.75 0 0 1-1.5 0v-.75H9V21a.75.75 0 0 1-1.5 0v-.75h-.75a3 3 0 0 1-3-3v-.75H3A.75.75 0 0 1 3 15h.75v-2.25H3a.75.75 0 0 1 0-1.5h.75V9H3a.75.75 0 0 1 0-1.5h.75v-.75a3 3 0 0 1 3-3h.75V3a.75.75 0 0 1 .75-.75ZM6 6.75A.75.75 0 0 1 6.75 6h10.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V6.75Z","clip-rule":"evenodd"})])}function ub(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm0 8.625a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM15.375 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0ZM7.5 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z","clip-rule":"evenodd"})])}function tq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),O("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),O("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function oq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M1.5 5.625c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v12.75c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 18.375V5.625Zm1.5 0v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5A.375.375 0 0 0 3 5.625Zm16.125-.375a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5A.375.375 0 0 0 21 7.125v-1.5a.375.375 0 0 0-.375-.375h-1.5ZM21 9.375A.375.375 0 0 0 20.625 9h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5ZM4.875 18.75a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5ZM3.375 15h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375Zm0-3.75h1.5a.375.375 0 0 0 .375-.375v-1.5A.375.375 0 0 0 4.875 9h-1.5A.375.375 0 0 0 3 9.375v1.5c0 .207.168.375.375.375Zm4.125 0a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 0-1.5h-9Z","clip-rule":"evenodd"})])}function db(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M3.792 2.938A49.069 49.069 0 0 1 12 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 0 1 1.541 1.836v1.044a3 3 0 0 1-.879 2.121l-6.182 6.182a1.5 1.5 0 0 0-.439 1.061v2.927a3 3 0 0 1-1.658 2.684l-1.757.878A.75.75 0 0 1 9.75 21v-5.818a1.5 1.5 0 0 0-.44-1.06L3.13 7.938a3 3 0 0 1-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836Z","clip-rule":"evenodd"})])}function nq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z","clip-rule":"evenodd"})])}function S6(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function rq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M8.128 9.155a3.751 3.751 0 1 1 .713-1.321l1.136.656a.75.75 0 0 1 .222 1.104l-.006.007a.75.75 0 0 1-1.032.157 1.421 1.421 0 0 0-.113-.072l-.92-.531Zm-4.827-3.53a2.25 2.25 0 0 1 3.994 2.063.756.756 0 0 0-.122.23 2.25 2.25 0 0 1-3.872-2.293ZM13.348 8.272a5.073 5.073 0 0 0-3.428 3.57 5.08 5.08 0 0 0-.165 1.202 1.415 1.415 0 0 1-.707 1.201l-.96.554a3.751 3.751 0 1 0 .734 1.309l13.729-7.926a.75.75 0 0 0-.181-1.374l-.803-.215a5.25 5.25 0 0 0-2.894.05l-5.325 1.629Zm-9.223 7.03a2.25 2.25 0 1 0 2.25 3.897 2.25 2.25 0 0 0-2.25-3.897ZM12 12.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"}),O("path",{d:"M16.372 12.615a.75.75 0 0 1 .75 0l5.43 3.135a.75.75 0 0 1-.182 1.374l-.802.215a5.25 5.25 0 0 1-2.894-.051l-5.147-1.574a.75.75 0 0 1-.156-1.367l3-1.732Z"})])}function iq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M5.507 4.048A3 3 0 0 1 7.785 3h8.43a3 3 0 0 1 2.278 1.048l1.722 2.008A4.533 4.533 0 0 0 19.5 6h-15c-.243 0-.482.02-.715.056l1.722-2.008Z"}),O("path",{"fill-rule":"evenodd",d:"M1.5 10.5a3 3 0 0 1 3-3h15a3 3 0 1 1 0 6h-15a3 3 0 0 1-3-3Zm15 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm2.25.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM4.5 15a3 3 0 1 0 0 6h15a3 3 0 1 0 0-6h-15Zm11.25 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.5 18a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function aq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M4.08 5.227A3 3 0 0 1 6.979 3H17.02a3 3 0 0 1 2.9 2.227l2.113 7.926A5.228 5.228 0 0 0 18.75 12H5.25a5.228 5.228 0 0 0-3.284 1.153L4.08 5.227Z"}),O("path",{"fill-rule":"evenodd",d:"M5.25 13.5a3.75 3.75 0 1 0 0 7.5h13.5a3.75 3.75 0 1 0 0-7.5H5.25Zm10.5 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm3.75-.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function lq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{d:"M6 3a3 3 0 0 0-3 3v1.5a.75.75 0 0 0 1.5 0V6A1.5 1.5 0 0 1 6 4.5h1.5a.75.75 0 0 0 0-1.5H6ZM16.5 3a.75.75 0 0 0 0 1.5H18A1.5 1.5 0 0 1 19.5 6v1.5a.75.75 0 0 0 1.5 0V6a3 3 0 0 0-3-3h-1.5ZM12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5ZM4.5 16.5a.75.75 0 0 0-1.5 0V18a3 3 0 0 0 3 3h1.5a.75.75 0 0 0 0-1.5H6A1.5 1.5 0 0 1 4.5 18v-1.5ZM21 16.5a.75.75 0 0 0-1.5 0V18a1.5 1.5 0 0 1-1.5 1.5h-1.5a.75.75 0 0 0 0 1.5H18a3 3 0 0 0 3-3v-1.5Z"})])}function sq(e,t){return _e(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}function F6(e){let t="",o=new Uint8Array(e),n=o.byteLength;for(let r=0;r({theme:n.isDarkMode?oo:Gt})),{message:h,modal:f,notification:p}=lo(["message","modal","notification"],{configProviderProps:c}),g=T(),v=$(!1),b=$(null);function x(L){return()=>m(Ut,null,{default:()=>m(L)})}const E=async()=>{const[L,R]=await Me(o.getList());L&&f.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>y("p",null,[M("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),R&&f.create({title:"获取成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},C=()=>{r.filterInstalledApps=!r.filterInstalledApps};lt(()=>r.isNeedShowErrorModal,(L,R)=>{L&&(v.value=!0)},{immediate:!1});const k=async()=>{await n.getAndroidApplicationPackageNameList(),await r.initDefault()},_=async()=>{t.value="";const[,L]=await Me(new Promise((R,I)=>{f.create({title:"请粘贴分享规则口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:t.value,"onUpdate:value":w=>{t.value=w},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){R("positiveClick")}})}));if(L){a.value=!0;const R=t.value,I=u6(R);if(!(I!=null&&I.length)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,解析")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("口令发生错误,无法正常解析。")]),negativeText:"确定"}),a.value=!1;return}try{const w=E6(I),Q=La.inflate(w,{to:"string"}),U=JSON.parse(Q);if(U.type!=="embedded"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,该")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("不适用于应用横屏布局。")]),negativeText:"确定"}),a.value=!1;return}if(U.device==="pad"&&n.deviceCharacteristics!=="tablet"||U.device==="fold"&&n.deviceCharacteristics==="tablet"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),a.value=!1;return}if(U.comp===1&&n.MIOSVersion&&n.MIOSVersion>1){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,该")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("仅兼容Android 13 - 14 的小米机型。")]),negativeText:"确定"}),a.value=!1;return}if(U.comp===2&&(!n.MIOSVersion||n.MIOSVersion===1)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,该")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("仅兼容Hyper OS 2.0的小米机型。")]),negativeText:"确定"}),a.value=!1;return}r.customConfigEmbeddedRulesList[U.name]=U.em,r.customConfigFixedOrientationList[U.name]=U.fo,n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[U.name]={name:U.name,...d0(r.customConfigEmbeddedRulesList[U.name],r.customConfigFixedOrientationList[U.name],U.mode)}:r.systemEmbeddedSettingConfig[U.name]={name:U.name,embeddedEnable:!!["embedded","fullScreen"].includes(U.mode)};const[X,re]=await Me(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:U.name,action:ml(U.mode)}}:{switchAction:{name:U.name,action:["embedded","fullScreen"].includes(U.mode)?"enable":"disable"}}}));X?(f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),a.value=!1):(r.updateMergeRuleList(),await k(),a.value=!1,f.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(U.name,n.installedAppNameList[U.name]||r.applicationName[U.name])])," ",M("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区-平行窗口")])," ",M("内")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(U.mode)?"打开":"关闭"])," ",M("该应用的开关再做尝试~")]),positiveText:"确定"}))}catch{f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),a.value=!1}}},F=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:L=>{F.page=L},onUpdatePageSize:L=>{F.pageSize=L,F.page=1}}),P=$(!1),z=async()=>{l.value=!0,await k();const[L,R]=await Me(Jd("miui_embedding_window"));L&&(f.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),l.value=!1),R&&(f.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),l.value=!1)},B=async()=>{await n.getAndroidApplicationPackageNameList(),P.value=!0;const[L,R]=await Me(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")}}));L?(f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),P.value=!1):(r.updateMergeRuleList(),P.value=!1,f.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("好耶w,已根据您设备当前的整体应用情况重新")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修剪模块应用适配列表")])," ",M(",后续每次更新模块或者安装新的应用后,建议重新操作")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M("。")])]),negativeText:"确定"}))},j=async()=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(u.value){const[L,R]=await Me(u.value.openDrawer());if(L)console.log("操作取消:",L);else{R.settingMode==="fullScreen"&&(R.modePayload.fullRule&&(r.customConfigEmbeddedRulesList[R.name]={name:R.name,fullRule:R.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),r.customConfigFixedOrientationList[R.name]={name:R.name,...R.modePayload.isShowDivider?{isShowDivider:!0}:{},...R.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...R.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),R.settingMode==="fixedOrientation"&&(r.customConfigFixedOrientationList[R.name]={name:R.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...R.modePayload.ratio!==void 0?{ratio:R.modePayload.ratio}:{},...R.modePayload.foRelaunch!==void 0?{relaunch:R.modePayload.foRelaunch}:{}}),R.settingMode==="disabled"&&(r.customConfigFixedOrientationList[R.name]={name:R.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...R.modePayload.foRelaunch!==void 0?{relaunch:R.modePayload.foRelaunch}:{}}),n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[R.name]={name:R.name,...d0(r.customConfigEmbeddedRulesList[R.name],r.customConfigFixedOrientationList[R.name],R.settingMode)}:r.systemEmbeddedSettingConfig[R.name]={name:R.name,embeddedEnable:!!["embedded","fullScreen"].includes(R.settingMode)};const[I,w]=await Me(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:R.name,action:ml(R.settingMode)}}:{switchAction:{name:R.name,action:["embedded","fullScreen"].includes(R.settingMode)?"enable":"disable"}}}));I?(f.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(f.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",M("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板并且在")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区-平行窗口")])," ",M("内")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(R.settingMode)?"打开":"关闭"])," ",M("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},V=async(L,R)=>{var I;if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(d.value){i.info(JSON.stringify(L),"rowww");const[w,Q]=await Me(d.value.openDrawer(L));if(w)console.log("操作取消:",w);else{if(Q.settingMode==="fullScreen"){const{moduleEmbeddedRules:re,currentEmbeddedRules:he,moduleFixedOrientation:Se,currentFixedOrientation:pe}=yl(L.name);he.value?(Q.modePayload.fullRule&&(he.value.fullRule=Q.modePayload.fullRule,he.value.skipSelfAdaptive=!0),n.MIOSVersion&&n.MIOSVersion>=2&&!Q.modePayload.fullRule&&he.value.fullRule&&delete he.value.fullRule,ca(re.value,he.value)||(r.customConfigEmbeddedRulesList[L.name]={name:L.name,...he.value})):Q.modePayload.fullRule?r.customConfigEmbeddedRulesList[L.name]={name:L.name,fullRule:Q.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}:n.MIOSVersion&&n.MIOSVersion>=2&&(r.customConfigEmbeddedRulesList[L.name]={name:L.name,skipSelfAdaptive:!0}),pe.value?(Q.modePayload.hasOwnProperty("isShowDivider")&&(pe.value.isShowDivider=Q.modePayload.isShowDivider),Q.modePayload.hasOwnProperty("supportFullSize")&&(pe.value.supportFullSize=Q.modePayload.supportFullSize),n.MIOSVersion&&n.MIOSVersion>=2?(pe.value.hasOwnProperty("disable")&&(delete pe.value.disable,pe.value.supportModes="full,fo",pe.value.defaultSettings="full"),pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange):Q.modePayload.hasOwnProperty("skipSelfAdaptive")&&(pe.value.disable=Q.modePayload.skipSelfAdaptive),ca(Se.value,pe.value)||(r.customConfigFixedOrientationList[L.name]={name:L.name,...pe.value})):r.customConfigFixedOrientationList[L.name]={name:L.name,...Q.modePayload.isShowDivider?{isShowDivider:!0}:{},...Q.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...Q.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(Q.settingMode==="fixedOrientation"){const{moduleEmbeddedRules:re,currentEmbeddedRules:he,moduleFixedOrientation:Se,currentFixedOrientation:pe}=yl(L.name);if(pe.value){if(pe.value.hasOwnProperty("disable")&&delete pe.value.disable,pe.value.hasOwnProperty("isScale")&&delete pe.value.isScale,Q.modePayload.ratio!==void 0?pe.value.ratio=Q.modePayload.ratio:delete pe.value.ratio,Q.modePayload.foRelaunch!==void 0?pe.value.relaunch=Q.modePayload.foRelaunch:delete pe.value.relaunch,n.MIOSVersion&&n.MIOSVersion>=2)if(pe.value.supportModes="full,fo",pe.value.defaultSettings="fo",pe.value.skipSelfAdaptive=!0,Q.modePayload.hasOwnProperty("forceFixedOrientation")&&Q.modePayload.forceFixedOrientation)if(pe.value.compatChange){const J=new Set((I=pe.value.compatChange)==null?void 0:I.split(","));J.add("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"),pe.value.compatChange=[...J].join(",")}else pe.value.compatChange="OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT";else pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange;ca(Se.value,pe.value)||(r.customConfigFixedOrientationList[L.name]={name:L.name,...pe.value})}else r.customConfigFixedOrientationList[L.name]={name:L.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2&&Q.modePayload.forceFixedOrientation?{compatChange:"OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"}:{},...Q.modePayload.ratio!==void 0?{ratio:Q.modePayload.ratio}:{},...Q.modePayload.foRelaunch!==void 0?{relaunch:Q.modePayload.foRelaunch}:{}}}if(Q.settingMode==="disabled"&&L.settingMode!==Q.settingMode){const{moduleEmbeddedRules:re,currentEmbeddedRules:he,moduleFixedOrientation:Se,currentFixedOrientation:pe}=yl(L.name);pe.value?(pe.value.skipSelfAdaptive=!0,pe.value.disable=!0,pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange,ca(Se.value,pe.value)||(r.customConfigFixedOrientationList[L.name]={name:L.name,...pe.value})):r.customConfigFixedOrientationList[L.name]={name:L.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(Q.settingMode==="embedded"){if(L.settingMode!==Q.settingMode&&L.ruleMode==="custom"&&L.isSupportEmbedded&&delete r.customConfigEmbeddedRulesList[L.name],r.customConfigEmbeddedRulesList[L.name])Q.modePayload.hasOwnProperty("splitRatio")&&(r.customConfigEmbeddedRulesList[L.name].splitRatio=Q.modePayload.splitRatio),Q.modePayload.hasOwnProperty("relaunch")&&(r.customConfigEmbeddedRulesList[L.name].relaunch=Q.modePayload.emRelaunch);else{let re=!1;Q.modePayload.hasOwnProperty("splitRatio")&&(re=!0),Q.modePayload.hasOwnProperty("emRelaunch")&&(re=!0),re&&(r.customConfigEmbeddedRulesList[L.name]={...r.isPatchMode?r.patchEmbeddedRulesList[L.name]:r.sourceEmbeddedRulesList[L.name],...Q.modePayload.hasOwnProperty("splitRatio")&&{splitRatio:Q.modePayload.splitRatio},...Q.modePayload.hasOwnProperty("emRelaunch")&&{relaunch:Q.modePayload.emRelaunch}})}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:re,currentEmbeddedRules:he,moduleFixedOrientation:Se,currentFixedOrientation:pe}=yl(L.name);pe.value&&(pe.hasOwnProperty("disable")&&delete pe.value.disable,pe.hasOwnProperty("defaultSettings")&&delete pe.value.defaultSettings,pe.hasOwnProperty("skipSelfAdaptive")||(pe.value.skipSelfAdaptive=!0),pe.hasOwnProperty("compatChange")&&delete pe.value.compatChange),pe.value&&(he.hasOwnProperty("skipSelfAdaptive")||(he.value.skipSelfAdaptive=!0)),ca(re.value,he.value)||(r.customConfigFixedOrientationList[L.name]={name:L.name,...pe.value}),ca(Se.value,pe.value)||(r.customConfigEmbeddedRulesList[L.name]={name:L.name,...he.value})}}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:re,currentEmbeddedRules:he,moduleFixedOrientation:Se,currentFixedOrientation:pe}=yl(L.name);L.settingMode!==Q.settingMode&&(r.customConfigEmbeddedSettingConfig[L.name]={name:L.name,...d0(he.value,pe.value,Q.settingMode)})}else r.systemEmbeddedSettingConfig[L.name]={name:L.name,embeddedEnable:!!["embedded","fullScreen"].includes(Q.settingMode)};const[U,X]=await Me(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:L.name,action:ml(Q.settingMode)}}:{switchAction:{name:L.name,action:["embedded","fullScreen"].includes(Q.settingMode)?"enable":"disable"}}}));U?(f.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),Q.loadingCallback&&Q.loadingCallback()):(f.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区-平行窗口")])," ",M("内")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(Q.settingMode)?"打开":"关闭"])," ",M("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),Q.loadingCallback&&Q.loadingCallback(),Q.closeCallback&&Q.closeCallback())}}},K=async(L,R,I,w)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,不兼容折叠屏设备!");return}if(L==="cleanCustomRule"){const Q=f.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>y("p",null,[M("清除自定义规则后,你对")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(I.name,I.applicationName)])," ",M("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("模块规则")])," ",M(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{Q.loading=!0,r.customConfigEmbeddedRulesList[I.name]&&delete r.customConfigEmbeddedRulesList[I.name],r.customConfigFixedOrientationList[I.name]&&delete r.customConfigFixedOrientationList[I.name],r.customConfigEmbeddedSettingConfig[I.name]&&delete r.customConfigEmbeddedSettingConfig[I.name];const[U,X]=await Me(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:I.name,action:ml(Iv(r.isPatchMode?r.patchEmbeddedRulesList[I.name]:r.sourceEmbeddedRulesList[I.name],r.isPatchMode?r.patchFixedOrientationList[I.name]:r.sourceFixedOrientationList[I.name]))}}:{switchAction:{name:I.name,action:(r.isPatchMode?r.patchEmbeddedRulesList[I.name]:r.sourceEmbeddedRulesList[I.name])?"enable":"disable"}}}));U?(f.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),Q.loading=!1):(f.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),Q.loading=!1,r.updateMergeRuleList())}})}if(L==="shareCustomRule"){const Q={name:I.name,cmpt:n.MIOSVersion&&n.MIOSVersion>=2?2:1,em:{name:I.name,...I.embeddedRules},fo:{name:I.name,...I.fixedOrientationRule},type:"embedded",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:I.settingMode},U=JSON.stringify(Q),X=La.deflate(U,{level:9,memLevel:9,windowBits:15}),re=new Uint8Array(X),he=F6(re),[Se]=await Me(navigator.clipboard.writeText(`我分享了一个[应用横屏布局]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: -${he}`));if(Se){f.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("复制")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(I.name,I.applicationName)])," ",M("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),negativeText:"确定"});return}else f.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("好耶w,复制")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(I.name,I.applicationName)])," ",M("分享口令成功了~")]),y("p",null,[M("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),y("p",null,[M("分享口令导入入口位于")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局- 从分享口令导入")])," ",M("。")])]),positiveText:"确定"})}},N=(L,R)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}f.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("模块已对")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})};function T(){return[{title:"应用名称",minWidth:250,key:"name",render(L,R){return y("div",null,[L.applicationName&&y("p",null,[L.applicationName]),L.name&&y("p",null,[y("span",{class:{hidden:!L.applicationName}},[M("(")]),L.name,y("span",{class:{hidden:!L.applicationName}},[M(")")])])])}},{title:"规则来源",minWidth:100,key:"ruleMode",render(L,R){const I={icon:L.ruleMode==="custom"?ub:S6};if(L.ruleMode==="custom"){const w=[{label:"分享自定义规则",key:"shareCustomRule",icon:x(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:x(g9)}];return y(at("n-dropdown"),{onSelect:(Q,U)=>K(Q,U,L),size:"large",trigger:"click",options:w},{default:()=>[y(at("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[M("自定义规则")],...I})]})}return y(at("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>N(L)},{default:()=>[M("模块规则")],...I})}},{title:"应用规则修复",minWidth:100,key:"setting",render(L,R){const I={icon:sq},w=(Q,U)=>{f.create({title:"想修复应用规则吗?",type:"warning",preset:"dialog",content:()=>y("p",null,[M("由于小米的BUG,部分情况下会导致应用当前适配规则与实际显示效果不符,模块可以主动修复")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(Q.name,Q.applicationName)])," ",M("由于系统错误的兼容性配置导致应用布局异常的问题,确定要继续吗?")]),positiveText:"确定修复",negativeText:"我再想想",onPositiveClick:async()=>{const[X,re]=await Me(w9(Q.name));if(X)f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])});else{if(n.MIOSVersion&&n.MIOSVersion>=2){const[he,Se]=await Me(Sj(Q.name,ml(Q.settingMode)));he&&(i.error("SetAppModeErr",he),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}else{const[he,Se]=await Me(Fj(Q.name,["embedded","fullScreen"].includes(Q.settingMode)?"enable":"disable"));he&&(i.error("SwitchActionErr",he),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}f.create({title:"修复应用规则成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,修复")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(Q.name,Q.applicationName)])," ",M("的应用规则成功了OwO~")])})}}})};return y("div",null,[y(at("n-button"),{size:"small",dashed:!0,type:"warning",onClick:()=>w(L)},{default:()=>[M("应用规则修复")],...I})])}},{title:"当前规则",minWidth:100,key:"settingMode",render(L,R){const I={icon:sb},w={embedded:{type:"success",name:"平行窗口",onClick(Q,U){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}V(Q)}},fullScreen:{type:"info",name:"全屏",onClick(Q,U){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备不兼容折叠屏设备!")])});return}V(Q)}},fixedOrientation:{type:"warning",name:"居中布局",onClick(Q,U){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}V(Q)}},disabled:{type:"error",name:"原始布局",onClick(Q,U){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}V(Q)}}};return y(at("n-button"),{size:"small",strong:!0,dashed:!0,type:w[L.settingMode].type,onClick:()=>w[L.settingMode].onClick(L,R)},{default:()=>[w[L.settingMode].name],...I})}}]}return ut(()=>{Et(()=>{r.isNeedShowReloadPathModeDialog&&Mt(async()=>{const[,L]=await Me(new Promise((R,I)=>{f.create({title:"是否需要重新生成定制应用数据?",type:"info",preset:"dialog",content:()=>y("p",null,[M("检测到您最近已经更新了模块版本并且开启了")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("定制模式")])," ",M(",模块需要重新操作")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M(",确定要继续吗?")]),positiveText:"确定",negativeText:"取消",onPositiveClick(){R("success")},onNegativeClick(){I("cancel")},onMaskClick(){I("cancel")},onClose(){I("cancel")}})}));L&&B(),r.isNeedShowReloadPathModeDialog=!1,n.needReloadData=!1})})}),(L,R)=>{const I=at("n-alert"),w=at("n-input-group"),Q=at("n-card");return _e(),De(ft,null,[O("main",uq,[O("div",dq,[O("div",cq,[R[12]||(R[12]=O("h3",{class:xe("text-base font-semibold leading-7")},[O("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient( + )`}},"完美横屏应用计划 For Web UI",2),Ke("",!0)]),I("div",vj,[I("button",{onClick:h[3]||(h[3]=()=>S(i).warning("此区域尚未开放,请以后再来探索吧~")),type:"button",class:"m-2.5 p-2.5 text-gray-400 hover:text-gray-500"},h[11]||(h[11]=[I("span",{class:"sr-only"},"消息中心",-1),I("svg",{class:"icon h-7 w-7","aria-hidden":"true"},[I("use",{"xlink:href":"#icon-xiaoxi"})],-1)]))])])],2)]),I("main",null,[I("div",bj,[Cs(c.$slots,"default")])])])]))}}),y9=ye({__name:"ErrorModal",props:{modelValue:{type:Boolean},errorLogging:{}},setup(e,{emit:t}){const o=e;$(!1);const n=t,r=$(o.modelValue);lt(()=>o.modelValue,a=>{r.value=a});const i=()=>{n("update:modelValue",!1)};return(a,l)=>{const s=at("n-alert"),u=at("n-card"),d=at("n-modal");return Me(),At(d,{onPositiveClick:i,onClose:i,style:{width:"600px"},title:"发生错误",type:"error","block-scroll":"true","positive-text":"确认",preset:"dialog","mask-closable":!0,show:o.modelValue},{default:Z(()=>[C(u,{bordered:!1},{default:Z(()=>[(Me(!0),De(ft,null,Ci(o.errorLogging,c=>(Me(),At(s,{title:`[发生错误] ${c.type}`,class:"mb-5",type:"error"},{default:Z(()=>[I("p",null,"错误描述:无法获取"+Je(c.title),1),I("p",null,"错误详情:"+Je(c.msg),1)]),_:2},1032,["title"]))),256))]),_:1})]),_:1},8,["show"])}}}),yj={class:"splash-screen"},Cj=ye({__name:"SplashScreen",setup(e){return Ct(),(t,o)=>(Me(),De("div",yj,o[0]||(o[0]=[I("div",{class:"flex h-full flex-col items-center justify-center"},[I("div",{class:"mt-[61px] bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[40px] font-[600] leading-[53px] text-black/50 mix-blend-color-burn tablet:mt-[75px] tablet:text-[64px] tablet:leading-[85px]"},"完美横屏应用计划"),I("div",{class:"mt-12 bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[20px] font-[600] leading-[27px] text-black/50 mix-blend-color-burn tablet:mt-[23px] tablet:text-[24px] tablet:font-[600] tablet:leading-[32px]"},"正在加载中,请稍等……")],-1)])))}}),C9=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},wj=C9(Cj,[["__scopeId","data-v-1cac3c56"]]),Sj="modulepreload",Fj=function(e){return"/"+e},Y4={},kn=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(s=>{if(s=Fj(s),s in Y4)return;Y4[s]=!0;const u=s.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":Sj,u||(c.as="script"),c.crossOrigin="",c.href=s,l&&c.setAttribute("nonce",l),document.head.appendChild(c),u)return new Promise((h,f)=>{c.addEventListener("load",h),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Ej=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},kj=()=>{const e="cat /product/etc/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},_j=(e,t)=>{const o=`cmd miui_embedding_window set-appMode ${e} ${t}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n(a)}}),o)},Mj=(e,t)=>{const o=`cmd miui_embedding_window ${t} ${e}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n(a)}}),o)},Rj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},zj=()=>{const e="cat /product/etc/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},$j=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Pj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Aj=()=>{const e="cat /data/system/users/0/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Bj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Dj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},w9=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(`am compat reset-all ${e}`);n?o(i):t(r)}}),"resetApplicationCompats"),xa=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],i=Ct();if(e.isPatchMode){const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.patchEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_rules_list.xml`);p?n.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:v}):r.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:"更新成功"});const{errno:b,stdout:x,stderr:E}=await Se(`echo '${e.patchFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/fixed_orientation_list.xml`);if(b?n.push({type:"patchFixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:E}):r.push({type:"patchixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:w,stdout:k,stderr:_}=await Se(`echo '${e.patchEmbeddedSettingConfigXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_setting_config.xml`);w?n.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:_}):r.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:"更新成功"})}}const{errno:a,stdout:l,stderr:s}=await Se(`echo '${e.customEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml`);a?n.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:s}):r.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:"更新成功"});const{errno:u,stdout:d,stderr:c}=await Se(`echo '${e.customFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml`);if(u?n.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:c}):r.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.settingConfigXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:"更新成功"})}else{const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.settingConfigXML}' > /data/system/users/0/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:"更新成功"})}if(e.setAppMode){const[p,g]=await _e(w9(e.setAppMode.name));p&&n.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:p}),g&&r.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:g})}const[h,f]=await _e(Jd("miui_embedding_window"));if(h&&n.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局规则",message:h}),f&&r.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局配置文件",message:f.split(` +`)}),e.switchAction){const{errno:p,stdout:g,stderr:v}=await Se(`cmd miui_embedding_window ${e.switchAction.action} ${e.switchAction.name}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:g})}if(e.setAppMode){const{errno:p,stdout:g,stderr:v}=await Se(`cmd miui_embedding_window set-appMode ${e.setAppMode.name} ${e.setAppMode.action}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置为${e.setAppMode.action}`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置${e.setAppMode.action}`,message:g})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),Tj=["com.lbe.security.miui","com.miui.player","com.miui.fm","com.miui.hybrid","com.miui.securitycenter","com.miui.compass","com.miui.contentextension","com.miui.misound","com.miui.voiceassist","com.lbe.security.miui","com.miui.securityadd"],Ij=["com.miui.touchassistant","com.miui.whitenoise","com.tencent.mobileqq","com.tencent.mm","com.alibaba.android.rimet","com.coolapk.market","com.sina.weibo","com.baidu.tieba","com.xuetangx.ykt","io.github.vvb2060.magisk","com.topjohnwu.magisk","io.github.huskydg.magisk","io.github.a13e300.ksuwebui","me.weishu.kernelsu","me.bmax.apatch","com.dna.tools","com.coolapk.market","com.sevtinge.hyperceiler","com.github.kr328.clash.foss","com.github.kr328.clash","com.github.metacubex.clash.meta","com.rocket.e5b382b19324e0a","dev.miuiicons.pedroz","com.tencent.androidqqmail","com.jingdong.app.mall","com.tencent.wework","com.tencent.weworkenterprise","com.taobao.trip","com.fenbi.android.leo","com.duokan.reader","com.xiaomi.shop","com.xiaomi.smarthome","com.youdao.dict","com.netease.uu","com.lemon.lv","com.valvesoftware.android.steam.community","com.douban.book.reader","com.amazon.kindlefc","com.alicloud.databox","com.huawei.appmarket","com.huawei.smarthome","mark.via","com.fenbi.android.servant","com.fenbi.android.zhaojiao","com.eusoft.eudic","com.eusoft.ting.en","com.cnki.android.cnkimobile","com.zui.calculator","com.jd.app.reader","com.huajiao","com.youku.phone","com.tencent.qqlive","com.xiaomi.gamecenter","com.kugou.android","com.ss.android.ugc.aweme","com.ss.android.ugc.live","com.ss.android.ugc.aweme.lite","com.smile.gifmaker","com.kuaishou.nebula","com.bdatu.geography","com.ubestkid.beilehu.android","youqu.android.todesk","com.tencent.docs","com.github.metacubex.clash.meta","com.tencent.pao","com.estrongs.android.pop","com.adobe.reader","com.microsoft.skydrive","cn.com.langeasy.LangEasyLexis","cn.ticktick.task","com.google.earth","com.omarea.vtools","com.plan.kot32.tomatotime","com.farplace.qingzhuo","com.xiachufang","com.happyteam.dubbingshow","czh.mindnode","com.chrissen.card","top.onepix.timeblock","www.imxiaoyu.com.musiceditor","com.mmbox.xbrowser","com.lemon.lv","com.flyersoft.moonreader","com.flyersoft.moonreaderp","com.yikaobang.yixue","com.kwai.m2u","com.qiyi.video.pad","com.smile.gifmaker","com.baidu.baidutranslate","org.zwanoo.android.speedtest","com.xiwang.zaixian","com.yozo.office","com.taobao.taobao","cn.canva.editor","com.singularity.tiangong","com.mubu.app","chuxin.shimo.shimowendang","com.roblox.client","com.netease.cloudmusic","com.netease.mc.mi","com.netease.x19","com.netease.mc.huawei","com.netease.mc.vivo","com.netease.mc.oppo","com.netease.mc.honor","com.netease.mc.bilibili","com.netease.mc.nearme.gamecenter","com.netease.mc.aligames","com.netease.mc.lenovo","com.netease.mc.meta","com.netease.mc.baidu","com.netease.mc","com.netease.mctest","com.hicloud.browser","com.hihonor.health","com.ss.android.ugc.livelite","com.oray.sunlogin","com.microsoft.todos","com.jdjdc.jdfastjdc","com.google.android.apps.translate","com.adsk.sketchbook","com.pick.sketchbook","com.ihuman.recite","com.ctfile","com.quark.scanking","com.hunantv.imgo.activity","com.sohu.sohuvideo","com.wuba.town.client","com.yhqx.player","com.lixiangdong.mediaplayer","cn.ylkj.zmjh","com.yixinli.muse","com.antutu.ABenchMark","cn.honor.qinxuan","com.fenbi.android.zenglish.hd","com.huawei.videoeditor","com.huawei.genexcloud.speedtest","com.huawei.smarthome","com.huawei.ch18","com.hihonor.dz.reader","com.hihonor.health","com.hihonor.vmall","com.hihonor.magichome","com.hihonor.heartstudy","cn.ieway.evcapture","cn.ieway.evplayer2","com.aliyun.wuying.enterprise","com.jingdong.app.reader.campus","com.UCMobile","com.quark.browser","com.smzdm.client.android","com.baidu.netdisk","com.mfcloudcalculate.networkdisk","com.chinamobile.mcloud","info.muge.appshare","com.x7890.shortcutcreator","org.kde.kdeconnect_tp","com.tencent.weread","com.larus.nova","com.moonshot.kimichat","com.baidu.newapp","com.tencent.hunyuan.app.chat","jp.pokemon.pokemonsleep","com.heytap.headset","com.twitter.android","cn.jagat.main","com.furrybar.chat.app","me.ele","com.max.xiaoheihe","com.ruanmei.ithome","com.youdao.translator","com.netflix.NGP.MonumentValley3","com.ophone.reader.ui","studio.fountainhead.habicat","com.hihonor.appmarket","cn.wenyu.bodian","com.zte.smarthome","com.phoenix.read","com.bilibili.app.in","com.bilibili.app.blue","com.joey.colors.simple.c","com.hanfuhui","com.hurantech.cherrysleep","tech.caicheng.youshi","org.panda.words","com.tencent.phoenix","com.tencent.wetype","com.tencent.wehear","com.tencent.weishi","com.ctg.itrdc.clouddesk","com.oppo.store","com.pupumall.customer","me.tangke.gamecores","com.xunmeng.pinduoduo","com.vblast.flipaclip","com.gstarmc.android","com.quickview3d","com.aihuishou.opt","com.duolingo","cn.etouch.ecalendar.life","cn.etouch.ecalendar"],p0=[...Tj,...Ij],Ns=Ki("embedded",()=>{const e=$(!1),t=$(!1),o=$({}),n=$(!1),r=$({}),i=$({}),a=$({}),l=$({}),s=$({}),u=$({}),d=$({}),c=$({}),h=$({}),f=D(()=>{const N=Ct(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...N.installedAndroidApplicationPackageNameList,...p0]),O=Object.entries(r.value).filter(([R])=>T.has(R));return Object.fromEntries(O)}),p=D(()=>{const N=Ct(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...N.installedAndroidApplicationPackageNameList,...p0]),O=Object.entries(l.value).filter(([R])=>T.has(R));return Object.fromEntries(O)}),g=D(()=>{const N=Ct(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...N.installedAndroidApplicationPackageNameList,...p0]),O=Object.entries(c.value).filter(([R])=>T.has(R));return Object.fromEntries(O)}),v=$([]),b=D(()=>{const N=Ct(),T=new Set(N.installedAndroidApplicationPackageNameList);return v.value.reduce((R,L)=>(T.has(L.name)&&R.push(L.name),R),[])}),x=D(()=>{const N=Ct(),T=new Set(N.installedAndroidApplicationPackageNameList);return v.value.reduce((R,L)=>{var ne;return T.has(L.name)&&(ne=L.fixedOrientationRule)!=null&&ne.compatChange&&R.push(L.name),R},[])}),E=$(""),w=$(""),k=n7(N=>{E.value=N.trim().toLowerCase()},500);lt(w,N=>{k(N)});const _=D(()=>{const N=v.value,T=Ct(),O=new Set(T.installedAndroidApplicationPackageNameList),R=t.value,L=E.value,ne=o.value,y=T.installedAppNameList;return N.reduce((K,U)=>{const ue=U.name.trim().toLowerCase();y[U.name]&&!U.applicationName&&(U.applicationName=y[U.name]),ne[U.name]&&!U.applicationName&&(U.applicationName=ne[U.name]);const se=U.applicationName?U.applicationName.toLowerCase():"";return!ue.includes(L)&&!se.includes(L)||R&&!O.has(U.name)||K.push(U),K},[]).sort((K,U)=>K.ruleMode==="custom"&&U.ruleMode!=="custom"?-1:K.ruleMode!=="custom"&&U.ruleMode==="custom"?1:K.name.localeCompare(U.name))}),F=D(()=>A.length>0),P=D(()=>v.value.length),z=$(!0),A=It([]),G=D(()=>new Set([...e.value?Object.keys(f.value):Object.keys(r.value),...e.value?Object.keys(p.value):Object.keys(l.value),...Object.keys(a.value),...Object.keys(u.value)]));function H(){const N=Ct();v.value=L4(e.value?f.value:r.value,e.value?p.value:l.value,N.MIOSVersion&&N.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value)}async function X(){const N=Ct();z.value=!0;const O=(await kn(()=>import("./applicationName-Dtr4j3Qt.js"),[])).default;o.value=O;const[R,L]=await _e(aN());R?A.push({type:"getIsPatchModeErr",title:"补丁模式",msg:R}):L==="true"?e.value=!0:e.value=!1;const ne=[Ej(),kj(),$j(),Rj(),zj(),Pj(),Bj(),Aj(),Dj()],[[y,K],[U,ue],[se,Fe],[pe,fe],[Ce,ee],[q,Te],[Ne,j],[V,ge],[we,le]]=await Promise.all(ne.map(he=>_e(he)));y&&(r.value={},A.push({type:"sourceEmbeddedRulesList",title:"[模块]平行窗口配置文件",msg:y})),K&&(r.value=hn(K,"package_config","package")),U&&(i.value={},A.push({type:"SystemEmbeddedRulesList",title:"[系统]平行窗口配置文件",msg:U})),ue&&(i.value=hn(ue,"package_config","package")),se&&(a.value={}),Fe&&(a.value=hn(Fe,"package_config","package",!0),console.log(a.value,"customConfigEmbeddedRulesList.value")),pe&&(l.value={},A.push({type:"sourceFixedOrientationList",title:"[模块]信箱模式配置文件",msg:pe})),fe&&(l.value=hn(fe,"package_config","package")),Ce&&(s.value={}),ee&&(s.value=hn(ee,"package_config","package")),q&&(u.value={}),Te&&(u.value=hn(Te,"package_config","package",!0)),Ne&&(c.value={}),j&&(c.value=hn(j,"setting_rule","setting")),V&&(d.value={}),ge&&(d.value=hn(ge,"setting_rule","setting")),we&&(h.value={}),le&&(h.value=hn(le,"setting_rule","setting",!0)),ui().info("deviceStore.MIOSVersion",N.MIOSVersion),v.value=L4(e.value?f.value:r.value,e.value?p.value:l.value,N.MIOSVersion&&N.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value),A.length||(z.value=!1,N.needReloadData&&e.value&&(n.value=!0))}return{sourceEmbeddedRulesList:r,sourceFixedOrientationList:l,patchEmbeddedRulesList:f,patchFixedOrientationList:p,patchEmbeddedSettingConfig:g,customConfigEmbeddedRulesList:a,customConfigFixedOrientationList:u,customConfigEmbeddedSettingConfig:h,filterSetAppModeAppList:b,filterResetAppCompatAppList:x,systemEmbeddedSettingConfig:d,systemEmbeddedRulesList:i,systemFixedOrientationList:s,mergeRuleList:v,filterInstalledApps:t,filterMergeRuleList:_,searchKeyWord:w,errorLogging:A,isNeedShowErrorModal:F,loading:z,ruleCount:P,allPackageName:G,applicationName:o,isPatchMode:e,initDefault:X,updateMergeRuleList:H,isNeedShowReloadPathModeDialog:n}},{persist:{pick:["filterInstalledApps"]}}),S9=Ki("font",()=>{const e=$("MiSans"),t=D(()=>`${e.value}, system-ui, sans-serif`);return{currentFont:e,setFont:n=>{e.value=n},currentFontFamily:t}},{persist:{pick:["currentFont"]}}),Oj=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db "SELECT dataId FROM cloud_all_data WHERE moduleName='MiuiFreeform';")"`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);if(i&&r(l),a)try{const s=a.split(` +`);n(s)}catch(s){r(s)}}})},Lj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/dot_black_list.json";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n)o(i);else if(r)try{t(JSON.parse(r))}catch{o("dot_black_list config is empty")}else o(null)}}),e)},Hj=()=>{const e="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",t="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db";return new Promise(async(o,n)=>{{const[,r]=await _e(Oj());if(r){const i=async s=>{const u=`echo "$(${e} ${t} "SELECT productData FROM cloud_all_data WHERE dataId='${s}';")"`;return ke(new Promise(async(d,c)=>{const{errno:h,stdout:f,stderr:p}=await Se(u);if(h&&c(p),f)try{const g=JSON.parse(f);g.dot_black_list?d({dataId:Number(s),productData:g||{},dataList:g.dot_black_list||[]}):d({dataId:Number(s),productData:g||{},dataList:[]})}catch(g){c(g)}}),u)},[a,l]=await _e(Promise.all(r.map(s=>i(s))));a&&n(a),l&&o(l)}}})},Nj=()=>{const e='ls /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db &>/dev/null && echo "exists" || echo "not exists"';return new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}})},OX=e=>{const t="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",o="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db",n=[],r=[];return ke(new Promise(async(i,a)=>{{const l=Array.from(new Set(e.customDotBlackList)),s=async c=>{const h=`echo '${JSON.stringify(c)}' > /data/adb/MIUI_MagicWindow+/config/dot_black_list.json`;return ke(new Promise(async(f,p)=>{const{errno:g,stdout:v,stderr:b}=await Se(h);g?(n.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:b}),p(b)):(r.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:"更新成功"}),f(v))}),h)},[u,d]=await _e(s(l));if(u)a(u);else{const c=e.sourceDotBlackList.map(g=>{const v=ya(g.productData);return v.dot_black_list=e.dotBlackList,{dataId:g.dataId,productData:v}}),h=async(g,v)=>{const b=`echo "$(${t} ${o} "UPDATE cloud_all_data SET productData='${JSON.stringify(v).replace(/"/g,'\\"')}' WHERE dataId='${g}'; SELECT changes();")"`;return ke(new Promise(async(x,E)=>{const{errno:w,stdout:k,stderr:_}=await Se(b);w?E(_):k==="1"?x(k):E(k)}),b)},[f,p]=await _e(Promise.all(c.map(g=>h(g.dataId,g.productData))));f&&a(f),p&&i({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}}}),"updateDotBlackList")},Vj=Ki("dotBlackList",()=>{const e=$(!1),t=$([]),o=D(()=>{if(t.value.length===0)return[];const v=t.value[0].dataList,b=new Set(v);return t.value.slice(1).forEach(x=>{const E=new Set(x.dataList);for(const w of b)E.has(w)||b.delete(w)}),v.filter(x=>b.has(x))}),n=$([]),r=D(()=>{const b=Ct().installedAppNameList,x=o.value.map(_=>{const F=n.value.includes(_),P=b[_]||a.value[_];return{name:_,applicationName:P,ruleMode:F?"custom":"system",status:!0}}),E=n.value.filter(_=>!o.value.includes(_)).map(_=>{const F=b[_]||a.value[_];return{name:_,applicationName:F,ruleMode:"custom",status:!1}}),w=Math.floor(x.length/2);return[...x.slice(0,w),...E,...x.slice(w)]}),i=D(()=>{const v=d.value.trim().toLowerCase(),b=r.value,x=Ct();return b.reduce((E,w)=>{const k=w.name.trim().toLowerCase(),_=w.applicationName?w.applicationName.toLowerCase():"";if(!k.includes(v)&&!_.includes(v))return E;const F=new Set(x.installedAndroidApplicationPackageNameList);return e.value&&!F.has(w.name)||E.push(w),E},[]).sort((E,w)=>E.ruleMode==="custom"&&w.ruleMode!=="custom"?-1:E.ruleMode!=="custom"&&w.ruleMode==="custom"?1:E.name.localeCompare(w.name))}),a=$({}),l=$([]),s=D(()=>f.length>0),u=D(()=>l.value.length),d=$(""),c=$(!0),h=$(!1),f=It([]),p=D(()=>new Set([...n.value,...o.value]));async function g(){c.value=!0;const b=(await kn(()=>import("./applicationName-Dtr4j3Qt.js"),[])).default;a.value=b;const[x,E]=await _e(Nj());if(x&&(h.value=!1),E){h.value=!0;const[w,k]=await _e(Hj());w&&(t.value=[]),k&&(t.value=k);const[_,F]=await _e(Lj());_&&(n.value=[]),F&&(n.value=F),c.value=!1}}return{mergeRuleList:l,allPackageName:p,sourceDotBlackList:t,hasHTMLViewerCloudData:h,systemDotBlackList:o,customDotBlackList:n,mergeDotBlackList:r,filterMergeDotBlackList:i,applicationName:a,searchKeyWord:d,errorLogging:f,isNeedShowErrorModal:s,filterInstalledApps:e,loading:c,ruleCount:u,initDefault:g}},{persist:{pick:["filterInstalledApps"]}}),Wj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},jj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Uj=()=>{const e="cat /data/system/users/0/autoui_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},bl=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],{errno:i,stdout:a,stderr:l}=await Se(`echo '${e.customAutoUIListXML}' > /data/adb/MIUI_MagicWindow+/config/autoui_list.xml`);i?n.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:l}):r.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:"更新成功"});const{errno:s,stdout:u,stderr:d}=await Se(`echo '${e.settingConfigXML}' > /data/system/users/0/autoui_setting_config.xml`);s?n.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:d}):r.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:"更新成功"});const[c,h]=await _e(Jd("miui_auto_ui"));if(c&&n.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:c}),h&&r.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:h.split(` +`)}),e.reloadRuleAction){const{errno:f,stdout:p,stderr:g}=await Se(`cmd miui_auto_ui ${e.reloadRuleAction.action} ${e.reloadRuleAction.name}`);f?n.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:g}):r.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:p})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),m6=Ki("autoui",()=>{const e=$(!1),t=$({}),o=$({}),n=$({}),r=$({}),i=$([]),a=D(()=>{const g=u.value.trim().toLowerCase(),v=i.value,b=Ct(),x=b.installedAppNameList;return v.reduce((E,w)=>{const k=w.name.trim().toLowerCase();x[w.name]&&!w.applicationName&&(w.applicationName=x[w.name]),n.value[w.name]&&!w.applicationName&&(w.applicationName=n.value[w.name]);const _=w.applicationName?w.applicationName.toLowerCase():"";if(!k.includes(g)&&!_.includes(g))return E;const F=new Set(b.installedAndroidApplicationPackageNameList);return e.value&&!F.has(w.name)||E.push(w),E},[]).sort((E,w)=>E.ruleMode==="custom"&&w.ruleMode!=="custom"?-1:E.ruleMode!=="custom"&&w.ruleMode==="custom"?1:E.name.localeCompare(w.name))}),l=D(()=>c.length>0),s=D(()=>i.value.length),u=$(""),d=$(!0),c=It([]),h=D(()=>new Set([...Object.keys(t.value),...Object.keys(o.value)]));function f(){i.value=H4(t.value,o.value,r.value)}async function p(){d.value=!0;const v=(await kn(()=>import("./applicationName-Dtr4j3Qt.js"),[])).default;n.value=v;const[b,x]=await _e(Wj());b&&c.push({type:"sourceAutoUIList",title:"[模块]应用布局优化配置文件",msg:b}),x&&(t.value=hn(x,"packageRules","package"));const[E,w]=await _e(jj());E||(o.value=hn(w,"packageRules","package",!0));const[k,_]=await _e(Uj());k&&(r.value={}),_&&(r.value=hn(_,"setting_config","setting")),i.value=H4(t.value,o.value,r.value),c.length||(d.value=!1)}return{sourceAutoUIList:t,customConfigAutoUIList:o,autoUISettingConfig:r,mergeRuleList:i,filterMergeRuleList:a,applicationName:n,searchKeyWord:u,errorLogging:c,isNeedShowErrorModal:l,updateMergeRuleList:f,filterInstalledApps:e,loading:d,ruleCount:s,allPackageName:h,initDefault:p}},{persist:{pick:["filterInstalledApps"]}}),Kj=ye({__name:"App",setup(e){const t=Ct(),o=ui(),n=Wv(),r=D(()=>({theme:t.isDarkMode?to:Vt})),{message:i,modal:a}=ao(["message","modal"],{configProviderProps:r}),l=Ns(),s=S9(),u=m6(),d=Vj(),c=$(!1),h=$(!0);Et(p=>{!t.loading&&!l.loading&&(h.value=!1),(t.errorLogging.length||l.errorLogging.length)&&(h.value=!1),p(()=>{})}),lt(()=>s.currentFont,(p,g)=>{p&&document.documentElement.style.setProperty("--global-font-family",s.currentFontFamily)},{immediate:!0}),lt(()=>t.isNeedShowErrorModal,(p,g)=>{p&&(c.value=!0)},{immediate:!1});function f(){return!!window.matchMedia("(prefers-color-scheme: dark)").matches}return Et(p=>{const g=window.matchMedia("(prefers-color-scheme: dark)");t.rhythmMode==="autoRhythm"&&(t.isDarkMode=f());const v=b=>{t.rhythmMode==="autoRhythm"&&(t.isDarkMode=b.matches)};g.addEventListener("change",v),p(()=>{g.removeEventListener("change",v)})}),ut(async()=>{window.onerror=function(p,g,v,b,x){o&&o.error("[JavaScript Error]",p.toString())},window.addEventListener("unhandledrejection",function(p){o&&o.error("[JavaScript Promise Error]",p.reason.toString())}),await t.initDefault(),t.androidTargetSdk&&t.androidTargetSdk===30?a.create({title:"不适配说明",type:"error",preset:"dialog",content:()=>C("p",null,[M("Web UI 未对Android 11做适配,无法使用~")]),negativeText:"确定"}):(t.androidTargetSdk&&t.androidTargetSdk<=33&&!t.skipConfirm.lowWebViewVersion&&a.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("Web UI 强依赖部分较新内核的JavaScript API实现,为了确保模块正常工作,Android 13/12的小米设备可能需要升级系统内置WebView版本,请通过Google Play商店升级!")]),C("p",null,[M("下载地址:https://play.google.com/store/apps/details?id=com.google.android.webview")]),C("p",null,[M("如果下载的是Beta/Dev/Canary版本的WebView,则需要前往[开发者选项-WebView实现]进行切换~")])]),positiveText:"复制下载链接到剪切板",negativeText:"已升级,不再提醒",onPositiveClick:()=>{navigator.clipboard.writeText("https://play.google.com/store/apps/details?id=com.google.android.webview")},onNegativeClick:()=>{t.skipConfirm.lowWebViewVersion=!0}}),l.initDefault(),u.initDefault(),n.initDefault(),t.MIOSVersion&&t.MIOSVersion>=1&&d.initDefault())}),(p,g)=>{const v=at("n-config-provider");return Me(),De("div",{class:xe(["app-container h-full",`${S(t).isDarkMode?"bg-zinc-900 theme-dark-mode":"bg-white"}`])},[C(v,{theme:S(t).isDarkMode?S(to):void 0},{default:Z(()=>[C(S(xj),null,{default:Z(()=>[C(S(Dv))]),_:1}),C(y9,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),errorLogging:S(t).errorLogging},null,8,["modelValue","errorLogging"]),h.value?(Me(),At(wj,{key:0})):Ke("",!0)]),_:1},8,["theme"])],2)}}}),Gj=C9(Kj,[["__scopeId","data-v-d3d3a0fe"]]),F9="/images/icons/all_app.png",sd="/images/icons/ai_icon.png";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const qj=4,Q4=0,J4=1,Zj=2;function Xa(e){let t=e.length;for(;--t>=0;)e[t]=0}const Xj=0,E9=1,Yj=2,Qj=3,Jj=258,g6=29,Vs=256,cs=Vs+1+g6,Ma=30,v6=19,k9=2*cs+1,ki=15,m0=16,eU=7,b6=256,_9=16,M9=17,R9=18,M1=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Lu=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),tU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),z9=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oU=512,fr=new Array((cs+2)*2);Xa(fr);const Wl=new Array(Ma*2);Xa(Wl);const fs=new Array(oU);Xa(fs);const hs=new Array(Jj-Qj+1);Xa(hs);const x6=new Array(g6);Xa(x6);const ud=new Array(Ma);Xa(ud);function g0(e,t,o,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=o,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}let $9,P9,A9;function v0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const B9=e=>e<256?fs[e]:fs[256+(e>>>7)],ps=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Uo=(e,t,o)=>{e.bi_valid>m0-o?(e.bi_buf|=t<>m0-e.bi_valid,e.bi_valid+=o-m0):(e.bi_buf|=t<{Uo(e,o[t*2],o[t*2+1])},D9=(e,t)=>{let o=0;do o|=e&1,e>>>=1,o<<=1;while(--t>0);return o>>>1},nU=e=>{e.bi_valid===16?(ps(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},rU=(e,t)=>{const o=t.dyn_tree,n=t.max_code,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,s=t.stat_desc.max_length;let u,d,c,h,f,p,g=0;for(h=0;h<=ki;h++)e.bl_count[h]=0;for(o[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;us&&(h=s,g++),o[d*2+1]=h,!(d>n)&&(e.bl_count[h]++,f=0,d>=l&&(f=a[d-l]),p=o[d*2],e.opt_len+=p*(h+f),i&&(e.static_len+=p*(r[d*2+1]+f)));if(g!==0){do{for(h=s-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[s]--,g-=2}while(g>0);for(h=s;h!==0;h--)for(d=e.bl_count[h];d!==0;)c=e.heap[--u],!(c>n)&&(o[c*2+1]!==h&&(e.opt_len+=(h-o[c*2+1])*o[c*2],o[c*2+1]=h),d--)}},T9=(e,t,o)=>{const n=new Array(ki+1);let r=0,i,a;for(i=1;i<=ki;i++)r=r+o[i-1]<<1,n[i]=r;for(a=0;a<=t;a++){let l=e[a*2+1];l!==0&&(e[a*2]=D9(n[l]++,l))}},iU=()=>{let e,t,o,n,r;const i=new Array(ki+1);for(o=0,n=0;n>=7;n{let t;for(t=0;t{e.bi_valid>8?ps(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},eh=(e,t,o,n)=>{const r=t*2,i=o*2;return e[r]{const n=e.heap[o];let r=o<<1;for(;r<=e.heap_len&&(r{let n,r,i=0,a,l;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+i++]&255,n+=(e.pending_buf[e.sym_buf+i++]&255)<<8,r=e.pending_buf[e.sym_buf+i++],n===0?Wn(e,r,t):(a=hs[r],Wn(e,a+Vs+1,t),l=M1[a],l!==0&&(r-=x6[a],Uo(e,r,l)),n--,a=B9(n),Wn(e,a,o),l=Lu[a],l!==0&&(n-=ud[a],Uo(e,n,l)));while(i{const o=t.dyn_tree,n=t.stat_desc.static_tree,r=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,l,s=-1,u;for(e.heap_len=0,e.heap_max=k9,a=0;a>1;a>=1;a--)b0(e,o,a);u=i;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],b0(e,o,1),l=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=l,o[u*2]=o[a*2]+o[l*2],e.depth[u]=(e.depth[a]>=e.depth[l]?e.depth[a]:e.depth[l])+1,o[a*2+1]=o[l*2+1]=u,e.heap[1]=u++,b0(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],rU(e,t),T9(o,s,e.bl_count)},oh=(e,t,o)=>{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),t[(o+1)*2+1]=65535,n=0;n<=o;n++)i=a,a=t[(n+1)*2+1],!(++l{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),n=0;n<=o;n++)if(i=a,a=t[(n+1)*2+1],!(++l{let t;for(oh(e,e.dyn_ltree,e.l_desc.max_code),oh(e,e.dyn_dtree,e.d_desc.max_code),R1(e,e.bl_desc),t=v6-1;t>=3&&e.bl_tree[z9[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},lU=(e,t,o,n)=>{let r;for(Uo(e,t-257,5),Uo(e,o-1,5),Uo(e,n-4,4),r=0;r{let t=4093624447,o;for(o=0;o<=31;o++,t>>>=1)if(t&1&&e.dyn_ltree[o*2]!==0)return Q4;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return J4;for(o=32;o{rh||(iU(),rh=!0),e.l_desc=new v0(e.dyn_ltree,$9),e.d_desc=new v0(e.dyn_dtree,P9),e.bl_desc=new v0(e.bl_tree,A9),e.bi_buf=0,e.bi_valid=0,I9(e)},L9=(e,t,o,n)=>{Uo(e,(Xj<<1)+(n?1:0),3),O9(e),ps(e,o),ps(e,~o),o&&e.pending_buf.set(e.window.subarray(t,t+o),e.pending),e.pending+=o},dU=e=>{Uo(e,E9<<1,3),Wn(e,b6,fr),nU(e)},cU=(e,t,o,n)=>{let r,i,a=0;e.level>0?(e.strm.data_type===Zj&&(e.strm.data_type=sU(e)),R1(e,e.l_desc),R1(e,e.d_desc),a=aU(e),r=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=r&&(r=i)):r=i=o+5,o+4<=r&&t!==-1?L9(e,t,o,n):e.strategy===qj||i===r?(Uo(e,(E9<<1)+(n?1:0),3),th(e,fr,Wl)):(Uo(e,(Yj<<1)+(n?1:0),3),lU(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),th(e,e.dyn_ltree,e.dyn_dtree)),I9(e),n&&O9(e)},fU=(e,t,o)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=o,t===0?e.dyn_ltree[o*2]++:(e.matches++,t--,e.dyn_ltree[(hs[o]+Vs+1)*2]++,e.dyn_dtree[B9(t)*2]++),e.sym_next===e.sym_end);var hU=uU,pU=L9,mU=cU,gU=fU,vU=dU,bU={_tr_init:hU,_tr_stored_block:pU,_tr_flush_block:mU,_tr_tally:gU,_tr_align:vU};const xU=(e,t,o,n)=>{let r=e&65535|0,i=e>>>16&65535|0,a=0;for(;o!==0;){a=o>2e3?2e3:o,o-=a;do r=r+t[n++]|0,i=i+r|0;while(--a);r%=65521,i%=65521}return r|i<<16|0};var ms=xU;const yU=()=>{let e,t=[];for(var o=0;o<256;o++){e=o;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[o]=e}return t},CU=new Uint32Array(yU()),wU=(e,t,o,n)=>{const r=CU,i=n+o;e^=-1;for(let a=n;a>>8^r[(e^t[a])&255];return e^-1};var yo=wU,Vi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},oa={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:SU,_tr_stored_block:z1,_tr_flush_block:FU,_tr_tally:Zr,_tr_align:EU}=bU,{Z_NO_FLUSH:Xr,Z_PARTIAL_FLUSH:kU,Z_FULL_FLUSH:_U,Z_FINISH:mn,Z_BLOCK:ih,Z_OK:Fo,Z_STREAM_END:ah,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:MU,Z_BUF_ERROR:x0,Z_DEFAULT_COMPRESSION:RU,Z_FILTERED:zU,Z_HUFFMAN_ONLY:wu,Z_RLE:$U,Z_FIXED:PU,Z_DEFAULT_STRATEGY:AU,Z_UNKNOWN:BU,Z_DEFLATED:tc}=oa,DU=9,TU=15,IU=8,OU=29,LU=256,$1=LU+1+OU,HU=30,NU=19,VU=2*$1+1,WU=15,Rt=3,Ur=258,qn=Ur+Rt+1,jU=32,Ia=42,y6=57,P1=69,A1=73,B1=91,D1=103,_i=113,El=666,Io=1,Ya=2,Wi=3,Qa=4,UU=3,Mi=(e,t)=>(e.msg=Vi[t],t),lh=e=>e*2-(e>4?9:0),Wr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},KU=e=>{let t,o,n,r=e.w_size;t=e.hash_size,n=t;do o=e.head[--n],e.head[n]=o>=r?o-r:0;while(--t);t=r,n=t;do o=e.prev[--n],e.prev[n]=o>=r?o-r:0;while(--t)};let GU=(e,t,o)=>(t<{const t=e.state;let o=t.pending;o>e.avail_out&&(o=e.avail_out),o!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+o),e.next_out),e.next_out+=o,t.pending_out+=o,e.total_out+=o,e.avail_out-=o,t.pending-=o,t.pending===0&&(t.pending_out=0))},nn=(e,t)=>{FU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qo(e.strm)},Dt=(e,t)=>{e.pending_buf[e.pending++]=t},xl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},T1=(e,t,o,n)=>{let r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),o),e.state.wrap===1?e.adler=ms(e.adler,t,r,o):e.state.wrap===2&&(e.adler=yo(e.adler,t,r,o)),e.next_in+=r,e.total_in+=r,r)},H9=(e,t)=>{let o=e.max_chain_length,n=e.strstart,r,i,a=e.prev_length,l=e.nice_match;const s=e.strstart>e.w_size-qn?e.strstart-(e.w_size-qn):0,u=e.window,d=e.w_mask,c=e.prev,h=e.strstart+Ur;let f=u[n+a-1],p=u[n+a];e.prev_length>=e.good_match&&(o>>=2),l>e.lookahead&&(l=e.lookahead);do if(r=t,!(u[r+a]!==p||u[r+a-1]!==f||u[r]!==u[n]||u[++r]!==u[n+1])){n+=2,r++;do;while(u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&na){if(e.match_start=t,a=i,i>=l)break;f=u[n+a-1],p=u[n+a]}}while((t=c[t&d])>s&&--o!==0);return a<=e.lookahead?a:e.lookahead},Oa=e=>{const t=e.w_size;let o,n,r;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-qn)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),KU(e),n+=t),e.strm.avail_in===0)break;if(o=T1(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=o,e.lookahead+e.insert>=Rt)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Yr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Yr(e,e.ins_h,e.window[r+Rt-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert{let o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,r,i,a=0,l=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_outr+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Qo(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(T1(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(a===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_wateri&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(T1(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===mn)&&t!==Xr&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,a=t===mn&&e.strm.avail_in===0&&n===r?1:0,z1(e,e.block_start,n,a),e.block_start+=n,Qo(e.strm)),a?Wi:Io)},y0=(e,t)=>{let o,n;for(;;){if(e.lookahead=Rt&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),o!==0&&e.strstart-o<=e.w_size-qn&&(e.match_length=H9(e,o)),e.match_length>=Rt)if(n=Zr(e,e.strstart-e.match_start,e.match_length-Rt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Rt){e.match_length--;do e.strstart++,e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+1]);else n=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=e.strstart{let o,n,r;for(;;){if(e.lookahead=Rt&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Rt-1,o!==0&&e.prev_length4096)&&(e.match_length=Rt-1)),e.prev_length>=Rt&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-Rt,n=Zr(e,e.strstart-1-e.prev_match,e.prev_length-Rt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+Rt-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Rt-1,e.strstart++,n&&(nn(e,!1),e.strm.avail_out===0))return Io}else if(e.match_available){if(n=Zr(e,0,e.window[e.strstart-1]),n&&nn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Io}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Zr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let o,n,r,i;const a=e.window;for(;;){if(e.lookahead<=Ur){if(Oa(e),e.lookahead<=Ur&&t===Xr)return Io;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Rt&&e.strstart>0&&(r=e.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){i=e.strstart+Ur;do;while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Rt?(o=Zr(e,1,e.match_length-Rt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Wi:Qa):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:Ya},ZU=(e,t)=>{let o;for(;;){if(e.lookahead===0&&(Oa(e),e.lookahead===0)){if(t===Xr)return Io;break}if(e.match_length=0,o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Wi:Qa):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:Ya};function Hn(e,t,o,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=o,this.max_chain=n,this.func=r}const kl=[new Hn(0,0,0,0,N9),new Hn(4,4,8,4,y0),new Hn(4,5,16,8,y0),new Hn(4,6,32,32,y0),new Hn(4,4,16,16,pa),new Hn(8,16,32,32,pa),new Hn(8,16,128,128,pa),new Hn(8,32,128,256,pa),new Hn(32,128,258,1024,pa),new Hn(32,258,258,4096,pa)],XU=e=>{e.window_size=2*e.w_size,Wr(e.head),e.max_lazy_match=kl[e.level].max_lazy,e.good_match=kl[e.level].good_length,e.nice_match=kl[e.level].nice_length,e.max_chain_length=kl[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Rt-1,e.match_available=0,e.ins_h=0};function YU(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=tc,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(VU*2),this.dyn_dtree=new Uint16Array((2*HU+1)*2),this.bl_tree=new Uint16Array((2*NU+1)*2),Wr(this.dyn_ltree),Wr(this.dyn_dtree),Wr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(WU+1),this.heap=new Uint16Array(2*$1+1),Wr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*$1+1),Wr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ws=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ia&&t.status!==y6&&t.status!==P1&&t.status!==A1&&t.status!==B1&&t.status!==D1&&t.status!==_i&&t.status!==El?1:0},V9=e=>{if(Ws(e))return Mi(e,Gn);e.total_in=e.total_out=0,e.data_type=BU;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?y6:t.wrap?Ia:_i,e.adler=t.wrap===2?0:1,t.last_flush=-2,SU(t),Fo},W9=e=>{const t=V9(e);return t===Fo&&XU(e.state),t},QU=(e,t)=>Ws(e)||e.state.wrap!==2?Gn:(e.state.gzhead=t,Fo),j9=(e,t,o,n,r,i)=>{if(!e)return Gn;let a=1;if(t===RU&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>DU||o!==tc||n<8||n>15||t<0||t>9||i<0||i>PU||n===8&&a!==1)return Mi(e,Gn);n===8&&(n=9);const l=new YU;return e.state=l,l.strm=e,l.status=Ia,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<j9(e,t,tc,TU,IU,AU),eK=(e,t)=>{if(Ws(e)||t>ih||t<0)return e?Mi(e,Gn):Gn;const o=e.state;if(!e.output||e.avail_in!==0&&!e.input||o.status===El&&t!==mn)return Mi(e,e.avail_out===0?x0:Gn);const n=o.last_flush;if(o.last_flush=t,o.pending!==0){if(Qo(e),e.avail_out===0)return o.last_flush=-1,Fo}else if(e.avail_in===0&&lh(t)<=lh(n)&&t!==mn)return Mi(e,x0);if(o.status===El&&e.avail_in!==0)return Mi(e,x0);if(o.status===Ia&&o.wrap===0&&(o.status=_i),o.status===Ia){let r=tc+(o.w_bits-8<<4)<<8,i=-1;if(o.strategy>=wu||o.level<2?i=0:o.level<6?i=1:o.level===6?i=2:i=3,r|=i<<6,o.strstart!==0&&(r|=jU),r+=31-r%31,xl(o,r),o.strstart!==0&&(xl(o,e.adler>>>16),xl(o,e.adler&65535)),e.adler=1,o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Fo}if(o.status===y6){if(e.adler=0,Dt(o,31),Dt(o,139),Dt(o,8),o.gzhead)Dt(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),Dt(o,o.gzhead.time&255),Dt(o,o.gzhead.time>>8&255),Dt(o,o.gzhead.time>>16&255),Dt(o,o.gzhead.time>>24&255),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(Dt(o,o.gzhead.extra.length&255),Dt(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=yo(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=P1;else if(Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,UU),o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Fo}if(o.status===P1){if(o.gzhead.extra){let r=o.pending,i=(o.gzhead.extra.length&65535)-o.gzindex;for(;o.pending+i>o.pending_buf_size;){let l=o.pending_buf_size-o.pending;if(o.pending_buf.set(o.gzhead.extra.subarray(o.gzindex,o.gzindex+l),o.pending),o.pending=o.pending_buf_size,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex+=l,Qo(e),o.pending!==0)return o.last_flush=-1,Fo;r=0,i-=l}let a=new Uint8Array(o.gzhead.extra);o.pending_buf.set(a.subarray(o.gzindex,o.gzindex+i),o.pending),o.pending+=i,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=A1}if(o.status===A1){if(o.gzhead.name){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Fo;r=0}o.gzindexr&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=B1}if(o.status===B1){if(o.gzhead.comment){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Fo;r=0}o.gzindexr&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r))}o.status=D1}if(o.status===D1){if(o.gzhead.hcrc){if(o.pending+2>o.pending_buf_size&&(Qo(e),o.pending!==0))return o.last_flush=-1,Fo;Dt(o,e.adler&255),Dt(o,e.adler>>8&255),e.adler=0}if(o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Fo}if(e.avail_in!==0||o.lookahead!==0||t!==Xr&&o.status!==El){let r=o.level===0?N9(o,t):o.strategy===wu?ZU(o,t):o.strategy===$U?qU(o,t):kl[o.level].func(o,t);if((r===Wi||r===Qa)&&(o.status=El),r===Io||r===Wi)return e.avail_out===0&&(o.last_flush=-1),Fo;if(r===Ya&&(t===kU?EU(o):t!==ih&&(z1(o,0,0,!1),t===_U&&(Wr(o.head),o.lookahead===0&&(o.strstart=0,o.block_start=0,o.insert=0))),Qo(e),e.avail_out===0))return o.last_flush=-1,Fo}return t!==mn?Fo:o.wrap<=0?ah:(o.wrap===2?(Dt(o,e.adler&255),Dt(o,e.adler>>8&255),Dt(o,e.adler>>16&255),Dt(o,e.adler>>24&255),Dt(o,e.total_in&255),Dt(o,e.total_in>>8&255),Dt(o,e.total_in>>16&255),Dt(o,e.total_in>>24&255)):(xl(o,e.adler>>>16),xl(o,e.adler&65535)),Qo(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?Fo:ah)},tK=e=>{if(Ws(e))return Gn;const t=e.state.status;return e.state=null,t===_i?Mi(e,MU):Fo},oK=(e,t)=>{let o=t.length;if(Ws(e))return Gn;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==Ia||n.lookahead)return Gn;if(r===1&&(e.adler=ms(e.adler,t,o,0)),n.wrap=0,o>=n.w_size){r===0&&(Wr(n.head),n.strstart=0,n.block_start=0,n.insert=0);let s=new Uint8Array(n.w_size);s.set(t.subarray(o-n.w_size,o),0),t=s,o=n.w_size}const i=e.avail_in,a=e.next_in,l=e.input;for(e.avail_in=o,e.next_in=0,e.input=t,Oa(n);n.lookahead>=Rt;){let s=n.strstart,u=n.lookahead-(Rt-1);do n.ins_h=Yr(n,n.ins_h,n.window[s+Rt-1]),n.prev[s&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=s,s++;while(--u);n.strstart=s,n.lookahead=Rt-1,Oa(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Rt-1,n.match_available=0,e.next_in=a,e.input=l,e.avail_in=i,n.wrap=r,Fo};var nK=JU,rK=j9,iK=W9,aK=V9,lK=QU,sK=eK,uK=tK,dK=oK,cK="pako deflate (from Nodeca project)",jl={deflateInit:nK,deflateInit2:rK,deflateReset:iK,deflateResetKeep:aK,deflateSetHeader:lK,deflate:sK,deflateEnd:uK,deflateSetDictionary:dK,deflateInfo:cK};const fK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var hK=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const o=t.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(const n in o)fK(o,n)&&(e[n]=o[n])}}return e},pK=e=>{let t=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;gs[254]=gs[254]=1;var mK=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,o,n,r,i,a=e.length,l=0;for(r=0;r>>6,t[i++]=128|o&63):o<65536?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return t};const gK=(e,t)=>{if(t<65534&&e.subarray&&U9)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n{const o=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,r;const i=new Array(o*2);for(r=0,n=0;n4){i[r++]=65533,n+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&n1){i[r++]=65533;continue}a<65536?i[r++]=a:(a-=65536,i[r++]=55296|a>>10&1023,i[r++]=56320|a&1023)}return gK(i,r)},bK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let o=t-1;for(;o>=0&&(e[o]&192)===128;)o--;return o<0||o===0?t:o+gs[e[o]]>t?o:t},vs={string2buf:mK,buf2string:vK,utf8border:bK};function xK(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var K9=xK;const G9=Object.prototype.toString,{Z_NO_FLUSH:yK,Z_SYNC_FLUSH:CK,Z_FULL_FLUSH:wK,Z_FINISH:SK,Z_OK:dd,Z_STREAM_END:FK,Z_DEFAULT_COMPRESSION:EK,Z_DEFAULT_STRATEGY:kK,Z_DEFLATED:_K}=oa;function js(e){this.options=oc.assign({level:EK,method:_K,chunkSize:16384,windowBits:15,memLevel:8,strategy:kK},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new K9,this.strm.avail_out=0;let o=jl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(o!==dd)throw new Error(Vi[o]);if(t.header&&jl.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=vs.string2buf(t.dictionary):G9.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,o=jl.deflateSetDictionary(this.strm,n),o!==dd)throw new Error(Vi[o]);this._dict_set=!0}}js.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize;let r,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?SK:yK,typeof e=="string"?o.input=vs.string2buf(e):G9.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){if(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),(i===CK||i===wK)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(r=jl.deflate(o,i),r===FK)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),r=jl.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===dd;if(o.avail_out===0){this.onData(o.output);continue}if(i>0&&o.next_out>0){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(o.avail_in===0)break}return!0};js.prototype.onData=function(e){this.chunks.push(e)};js.prototype.onEnd=function(e){e===dd&&(this.result=oc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function C6(e,t){const o=new js(t);if(o.push(e,!0),o.err)throw o.msg||Vi[o.err];return o.result}function MK(e,t){return t=t||{},t.raw=!0,C6(e,t)}function RK(e,t){return t=t||{},t.gzip=!0,C6(e,t)}var zK=js,$K=C6,PK=MK,AK=RK,BK=oa,DK={Deflate:zK,deflate:$K,deflateRaw:PK,gzip:AK,constants:BK};const Su=16209,TK=16191;var IK=function(t,o){let n,r,i,a,l,s,u,d,c,h,f,p,g,v,b,x,E,w,k,_,F,P,z,A;const G=t.state;n=t.next_in,z=t.input,r=n+(t.avail_in-5),i=t.next_out,A=t.output,a=i-(o-t.avail_out),l=i+(t.avail_out-257),s=G.dmax,u=G.wsize,d=G.whave,c=G.wnext,h=G.window,f=G.hold,p=G.bits,g=G.lencode,v=G.distcode,b=(1<>>24,f>>>=w,p-=w,w=E>>>16&255,w===0)A[i++]=E&65535;else if(w&16){k=E&65535,w&=15,w&&(p>>=w,p-=w),p<15&&(f+=z[n++]<>>24,f>>>=w,p-=w,w=E>>>16&255,w&16){if(_=E&65535,w&=15,ps){t.msg="invalid distance too far back",G.mode=Su;break e}if(f>>>=w,p-=w,w=i-a,_>w){if(w=_-w,w>d&&G.sane){t.msg="invalid distance too far back",G.mode=Su;break e}if(F=0,P=h,c===0){if(F+=u-w,w2;)A[i++]=P[F++],A[i++]=P[F++],A[i++]=P[F++],k-=3;k&&(A[i++]=P[F++],k>1&&(A[i++]=P[F++]))}else{F=i-_;do A[i++]=A[F++],A[i++]=A[F++],A[i++]=A[F++],k-=3;while(k>2);k&&(A[i++]=A[F++],k>1&&(A[i++]=A[F++]))}}else if(w&64){t.msg="invalid distance code",G.mode=Su;break e}else{E=v[(E&65535)+(f&(1<>3,n-=k,p-=k<<3,f&=(1<{const s=l.bits;let u=0,d=0,c=0,h=0,f=0,p=0,g=0,v=0,b=0,x=0,E,w,k,_,F,P=null,z;const A=new Uint16Array(ma+1),G=new Uint16Array(ma+1);let H=null,X,N,T;for(u=0;u<=ma;u++)A[u]=0;for(d=0;d=1&&A[h]===0;h--);if(f>h&&(f=h),h===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,l.bits=1,0;for(c=1;c0&&(e===dh||h!==1))return-1;for(G[1]=0,u=1;ush||e===ch&&b>uh)return 1;for(;;){X=u-g,a[d]+1=z?(N=H[a[d]-z],T=P[a[d]-z]):(N=96,T=0),E=1<>g)+w]=X<<24|N<<16|T|0;while(w!==0);for(E=1<>=1;if(E!==0?(x&=E-1,x+=E):x=0,d++,--A[u]===0){if(u===h)break;u=t[o+a[d]]}if(u>f&&(x&_)!==k){for(g===0&&(g=f),F+=c,p=u-g,v=1<sh||e===ch&&b>uh)return 1;k=x&_,r[k]=f<<24|p<<16|F-i|0}}return x!==0&&(r[F+x]=u-g<<24|64<<16|0),l.bits=f,0};var Ul=VK;const WK=0,q9=1,Z9=2,{Z_FINISH:fh,Z_BLOCK:jK,Z_TREES:Fu,Z_OK:ji,Z_STREAM_END:UK,Z_NEED_DICT:KK,Z_STREAM_ERROR:Cn,Z_DATA_ERROR:X9,Z_MEM_ERROR:Y9,Z_BUF_ERROR:GK,Z_DEFLATED:hh}=oa,nc=16180,ph=16181,mh=16182,gh=16183,vh=16184,bh=16185,xh=16186,yh=16187,Ch=16188,wh=16189,cd=16190,ur=16191,w0=16192,Sh=16193,S0=16194,Fh=16195,Eh=16196,kh=16197,_h=16198,Eu=16199,ku=16200,Mh=16201,Rh=16202,zh=16203,$h=16204,Ph=16205,F0=16206,Ah=16207,Bh=16208,Qt=16209,Q9=16210,J9=16211,qK=852,ZK=592,XK=15,YK=XK,Dh=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function QK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const na=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeJ9?1:0},eb=e=>{if(na(e))return Cn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=nc,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(qK),t.distcode=t.distdyn=new Int32Array(ZK),t.sane=1,t.back=-1,ji},tb=e=>{if(na(e))return Cn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,eb(e)},ob=(e,t)=>{let o;if(na(e))return Cn;const n=e.state;return t<0?(o=0,t=-t):(o=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Cn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=o,n.wbits=t,tb(e))},nb=(e,t)=>{if(!e)return Cn;const o=new QK;e.state=o,o.strm=e,o.window=null,o.mode=nc;const n=ob(e,t);return n!==ji&&(e.state=null),n},JK=e=>nb(e,YK);let Th=!0,E0,k0;const eG=e=>{if(Th){E0=new Int32Array(512),k0=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ul(q9,e.lens,0,288,E0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ul(Z9,e.lens,0,32,k0,0,e.work,{bits:5}),Th=!1}e.lencode=E0,e.lenbits=9,e.distcode=k0,e.distbits=5},rb=(e,t,o,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(o-i.wsize,o),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(o-n,o-n+r),i.wnext),n-=r,n?(i.window.set(t.subarray(o-n,o),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave{let o,n,r,i,a,l,s,u,d,c,h,f,p,g,v=0,b,x,E,w,k,_,F,P;const z=new Uint8Array(4);let A,G;const H=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(na(e)||!e.output||!e.input&&e.avail_in!==0)return Cn;o=e.state,o.mode===ur&&(o.mode=w0),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,c=l,h=s,P=ji;e:for(;;)switch(o.mode){case nc:if(o.wrap===0){o.mode=w0;break}for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=yo(o.check,z,2,0),u=0,d=0,o.mode=ph;break}if(o.head&&(o.head.done=!1),!(o.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",o.mode=Qt;break}if((u&15)!==hh){e.msg="unknown compression method",o.mode=Qt;break}if(u>>>=4,d-=4,F=(u&15)+8,o.wbits===0&&(o.wbits=F),F>15||F>o.wbits){e.msg="invalid window size",o.mode=Qt;break}o.dmax=1<>8&1),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=yo(o.check,z,2,0)),u=0,d=0,o.mode=mh;case mh:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>8&255,z[2]=u>>>16&255,z[3]=u>>>24&255,o.check=yo(o.check,z,4,0)),u=0,d=0,o.mode=gh;case gh:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>8),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=yo(o.check,z,2,0)),u=0,d=0,o.mode=vh;case vh:if(o.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=yo(o.check,z,2,0)),u=0,d=0}else o.head&&(o.head.extra=null);o.mode=bh;case bh:if(o.flags&1024&&(f=o.length,f>l&&(f=l),f&&(o.head&&(F=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(n.subarray(i,i+f),F)),o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,o.length-=f),o.length))break e;o.length=0,o.mode=xh;case xh:if(o.flags&2048){if(l===0)break e;f=0;do F=n[i+f++],o.head&&F&&o.length<65536&&(o.head.name+=String.fromCharCode(F));while(F&&f>9&1,o.head.done=!0),e.adler=o.check=0,o.mode=ur;break;case wh:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>=d&7,d-=d&7,o.mode=F0;break}for(;d<3;){if(l===0)break e;l--,u+=n[i++]<>>=1,d-=1,u&3){case 0:o.mode=Sh;break;case 1:if(eG(o),o.mode=Eu,t===Fu){u>>>=2,d-=2;break e}break;case 2:o.mode=Eh;break;case 3:e.msg="invalid block type",o.mode=Qt}u>>>=2,d-=2;break;case Sh:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[i++]<>>16^65535)){e.msg="invalid stored block lengths",o.mode=Qt;break}if(o.length=u&65535,u=0,d=0,o.mode=S0,t===Fu)break e;case S0:o.mode=Fh;case Fh:if(f=o.length,f){if(f>l&&(f=l),f>s&&(f=s),f===0)break e;r.set(n.subarray(i,i+f),a),l-=f,i+=f,s-=f,a+=f,o.length-=f;break}o.mode=ur;break;case Eh:for(;d<14;){if(l===0)break e;l--,u+=n[i++]<>>=5,d-=5,o.ndist=(u&31)+1,u>>>=5,d-=5,o.ncode=(u&15)+4,u>>>=4,d-=4,o.nlen>286||o.ndist>30){e.msg="too many length or distance symbols",o.mode=Qt;break}o.have=0,o.mode=kh;case kh:for(;o.have>>=3,d-=3}for(;o.have<19;)o.lens[H[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,A={bits:o.lenbits},P=Ul(WK,o.lens,0,19,o.lencode,0,o.work,A),o.lenbits=A.bits,P){e.msg="invalid code lengths set",o.mode=Qt;break}o.have=0,o.mode=_h;case _h:for(;o.have>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=b,d-=b,o.lens[o.have++]=E;else{if(E===16){for(G=b+2;d>>=b,d-=b,o.have===0){e.msg="invalid bit length repeat",o.mode=Qt;break}F=o.lens[o.have-1],f=3+(u&3),u>>>=2,d-=2}else if(E===17){for(G=b+3;d>>=b,d-=b,F=0,f=3+(u&7),u>>>=3,d-=3}else{for(G=b+7;d>>=b,d-=b,F=0,f=11+(u&127),u>>>=7,d-=7}if(o.have+f>o.nlen+o.ndist){e.msg="invalid bit length repeat",o.mode=Qt;break}for(;f--;)o.lens[o.have++]=F}}if(o.mode===Qt)break;if(o.lens[256]===0){e.msg="invalid code -- missing end-of-block",o.mode=Qt;break}if(o.lenbits=9,A={bits:o.lenbits},P=Ul(q9,o.lens,0,o.nlen,o.lencode,0,o.work,A),o.lenbits=A.bits,P){e.msg="invalid literal/lengths set",o.mode=Qt;break}if(o.distbits=6,o.distcode=o.distdyn,A={bits:o.distbits},P=Ul(Z9,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,A),o.distbits=A.bits,P){e.msg="invalid distances set",o.mode=Qt;break}if(o.mode=Eu,t===Fu)break e;case Eu:o.mode=ku;case ku:if(l>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,IK(e,h),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,o.mode===ur&&(o.back=-1);break}for(o.back=0;v=o.lencode[u&(1<>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>w)],b=v>>>24,x=v>>>16&255,E=v&65535,!(w+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=w,d-=w,o.back+=w}if(u>>>=b,d-=b,o.back+=b,o.length=E,x===0){o.mode=Ph;break}if(x&32){o.back=-1,o.mode=ur;break}if(x&64){e.msg="invalid literal/length code",o.mode=Qt;break}o.extra=x&15,o.mode=Mh;case Mh:if(o.extra){for(G=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=Rh;case Rh:for(;v=o.distcode[u&(1<>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>w)],b=v>>>24,x=v>>>16&255,E=v&65535,!(w+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=w,d-=w,o.back+=w}if(u>>>=b,d-=b,o.back+=b,x&64){e.msg="invalid distance code",o.mode=Qt;break}o.offset=E,o.extra=x&15,o.mode=zh;case zh:if(o.extra){for(G=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){e.msg="invalid distance too far back",o.mode=Qt;break}o.mode=$h;case $h:if(s===0)break e;if(f=h-s,o.offset>f){if(f=o.offset-f,f>o.whave&&o.sane){e.msg="invalid distance too far back",o.mode=Qt;break}f>o.wnext?(f-=o.wnext,p=o.wsize-f):p=o.wnext-f,f>o.length&&(f=o.length),g=o.window}else g=r,p=a-o.offset,f=o.length;f>s&&(f=s),s-=f,o.length-=f;do r[a++]=g[p++];while(--f);o.length===0&&(o.mode=ku);break;case Ph:if(s===0)break e;r[a++]=o.length,s--,o.mode=ku;break;case F0:if(o.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[i++]<{if(na(e))return Cn;let t=e.state;return t.window&&(t.window=null),e.state=null,ji},nG=(e,t)=>{if(na(e))return Cn;const o=e.state;return o.wrap&2?(o.head=t,t.done=!1,ji):Cn},rG=(e,t)=>{const o=t.length;let n,r,i;return na(e)||(n=e.state,n.wrap!==0&&n.mode!==cd)?Cn:n.mode===cd&&(r=1,r=ms(r,t,o,0),r!==n.check)?X9:(i=rb(e,t,o,o),i?(n.mode=Q9,Y9):(n.havedict=1,ji))};var iG=tb,aG=ob,lG=eb,sG=JK,uG=nb,dG=tG,cG=oG,fG=nG,hG=rG,pG="pako inflate (from Nodeca project)",hr={inflateReset:iG,inflateReset2:aG,inflateResetKeep:lG,inflateInit:sG,inflateInit2:uG,inflate:dG,inflateEnd:cG,inflateGetHeader:fG,inflateSetDictionary:hG,inflateInfo:pG};function mG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gG=mG;const ib=Object.prototype.toString,{Z_NO_FLUSH:vG,Z_FINISH:bG,Z_OK:bs,Z_STREAM_END:_0,Z_NEED_DICT:M0,Z_STREAM_ERROR:xG,Z_DATA_ERROR:Ih,Z_MEM_ERROR:yG}=oa;function Us(e){this.options=oc.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new K9,this.strm.avail_out=0;let o=hr.inflateInit2(this.strm,t.windowBits);if(o!==bs)throw new Error(Vi[o]);if(this.header=new gG,hr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=vs.string2buf(t.dictionary):ib.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=hr.inflateSetDictionary(this.strm,t.dictionary),o!==bs)))throw new Error(Vi[o])}Us.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,a,l;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?bG:vG,ib.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),i=hr.inflate(o,a),i===M0&&r&&(i=hr.inflateSetDictionary(o,r),i===bs?i=hr.inflate(o,a):i===Ih&&(i=M0));o.avail_in>0&&i===_0&&o.state.wrap>0&&e[o.next_in]!==0;)hr.inflateReset(o),i=hr.inflate(o,a);switch(i){case xG:case Ih:case M0:case yG:return this.onEnd(i),this.ended=!0,!1}if(l=o.avail_out,o.next_out&&(o.avail_out===0||i===_0))if(this.options.to==="string"){let s=vs.utf8border(o.output,o.next_out),u=o.next_out-s,d=vs.buf2string(o.output,s);o.next_out=u,o.avail_out=n-u,u&&o.output.set(o.output.subarray(s,s+u),0),this.onData(d)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(!(i===bs&&l===0)){if(i===_0)return i=hr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};Us.prototype.onData=function(e){this.chunks.push(e)};Us.prototype.onEnd=function(e){e===bs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=oc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function w6(e,t){const o=new Us(t);if(o.push(e),o.err)throw o.msg||Vi[o.err];return o.result}function CG(e,t){return t=t||{},t.raw=!0,w6(e,t)}var wG=Us,SG=w6,FG=CG,EG=w6,kG=oa,_G={Inflate:wG,inflate:SG,inflateRaw:FG,ungzip:EG,constants:kG};const{Deflate:MG,deflate:RG,deflateRaw:zG,gzip:$G}=DK,{Inflate:PG,inflate:AG,inflateRaw:BG,ungzip:DG}=_G;var TG=MG,IG=RG,OG=zG,LG=$G,HG=PG,NG=AG,VG=BG,WG=DG,jG=oa,La={Deflate:TG,deflate:IG,deflateRaw:OG,gzip:LG,Inflate:HG,inflate:NG,inflateRaw:VG,ungzip:WG,constants:jG};function yl(e){const t=Ns(),o=It({moduleEmbeddedRules:ya(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]),currentEmbeddedRules:ya(t.customConfigEmbeddedRulesList[e]||(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]))||{},moduleFixedOrientation:ya(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]),currentFixedOrientation:ya(t.customConfigFixedOrientationList[e]||(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]))||{}});return{...b5(o)}}const ab=e=>{const t=/^[a-zA-Z0-9_.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},UG=e=>{const t=/^[a-zA-Z0-9_:,.*-]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},KG=e=>{const t=/^[a-zA-Z0-9_,.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},GG={class:"mb-4"},qG={class:"mb-4"},ZG={class:"mb-4"},XG={class:"mb-4"},YG={class:"mb-4"},QG={class:"mb-4"},Oh=ye({__name:"EmbeddedAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=$(null),r=e,i=$(!1),a=Ct(),l=Ns(),s=ui(),u=D(()=>({theme:a.isDarkMode?to:Vt})),{message:d,modal:c}=ao(["message","modal"],{configProviderProps:u});let h,f;const p=[{label:"强制应用所有界面横屏[nra:cr:rcr:nr]",key:"fullScreen_nra:cr:rcr:nr",rule:"nra:cr:rcr:nr"},{label:"继承应用自身设置横屏[*]",key:"fullScreen_*",rule:"*"},{label:"自定义",key:"fullScreen_custom"}],g=D(()=>{const ee=[{label:"默认横屏规则",key:"fullScreen_default",rule:""}];return a.MIOSVersion&&a.MIOSVersion>=2?[...ee,...p]:p}),v=[{label:"大尺寸[11:10]",key:"ratio_11_10",ratio:1.1},{label:"中尺寸",key:"ratio_default"},{label:"小尺寸[15:10]",key:"ratio_15_10",ratio:1.5},{label:"小尺寸[18:10]",key:"ratio_18:10",ratio:1.8},{label:"自定义",key:"ratio_custom"}],b=$(g.value[0]),x=$(),E=$(!0),w=$(),k=$(),_=$(v[1]),F=$(),P=$(.5),z=$(!1),A=$(!1),G=$([]),H=ee=>{const q=document.querySelector(".n-drawer-content");q instanceof HTMLElement&&(s.info("resizeDrawerContent",ee),q.style.height=ee?"calc(100% + 200px)":"100%")},X=ee=>{var q;H(!0),(q=n.value)==null||q.$el.scrollIntoView({behavior:"smooth",block:"start"})},N=ee=>{var q;H(!1),(q=n.value)==null||q.$el.scrollIntoView({behavior:"smooth",block:"start"})},T=$({openDrawer:ee=>new Promise((q,Te)=>{var Ne,j,V,ge,we,le,re;if(r.type==="update"&&!ee){Te(new Error("更新模式下必须传入初始化参数")),d.error("初始化参数不能为空");return}h=q,f=Te,r.type==="add"&&(k.value="add",b.value=g.value[0],se.value="",x.value=a.MIOSVersion&&a.MIOSVersion>=2?"":"nra:cr:rcr:nr",G.value=["fullScreen","fixedOrientation","disabled"],U.value=!1,ue.value=!1,z.value=!1),r.type==="update"&&ee&&(k.value="update",A.value=!1,P.value=.5,w.value=ee.ruleMode,se.value=ee.name,pe.value=ee.isSupportEmbedded,ee.embeddedRules&&ee.embeddedRules.hasOwnProperty("splitRatio")&&(P.value=ee.embeddedRules.splitRatio??.5),ee.embeddedRules&&ee.embeddedRules.hasOwnProperty("relaunch")?U.value=!!ee.embeddedRules.relaunch:U.value=!0,ne.value=ee.settingMode,y.value=((Ne=ee.fixedOrientationRule)==null?void 0:Ne.disable)??!1,K.value=((j=ee.fixedOrientationRule)==null?void 0:j.isShowDivider)??!1,x.value=((V=ee.embeddedRules)==null?void 0:V.fullRule)??void 0,z.value=((we=(ge=ee.fixedOrientationRule)==null?void 0:ge.compatChange)==null?void 0:we.split(",").includes("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"))??!1,x.value==="nra:cr:rcr:nr"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[1]:g.value[0]:ee.embeddedRules&&!ee.embeddedRules.hasOwnProperty("fullRule")?(x.value=a.MIOSVersion&&a.MIOSVersion>=2?void 0:"nra:cr:rcr:nr",b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[0]:g.value[1]):x.value==="*"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[2]:g.value[1]:b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[3]:g.value[2],E.value=((le=ee.embeddedRules)==null?void 0:le.supportFullSize)??!1,ee.fixedOrientationRule&&ee.fixedOrientationRule.hasOwnProperty("relaunch")?U.value=!!ee.fixedOrientationRule.relaunch:U.value=!1,F.value=((re=ee.fixedOrientationRule)==null?void 0:re.ratio)??void 0,F.value?F.value===1.1?_.value=v[0]:F.value===1.5?_.value=v[2]:F.value===1.8?_.value=v[3]:_.value=v[4]:_.value=v[1]),i.value=!0}),closeDrawer:()=>{i.value=!1,f("Drawer closed without submission")}}),O=(ee,q)=>{b.value=q,x.value=["fullScreen_nra:cr:rcr:nr","fullScreen_*"].includes(ee)?q.rule:void 0},R=(ee,q)=>{_.value=q,F.value=["ratio_11_10","ratio_15_10","ratio_18:10"].includes(ee)?q.ratio:ee==="ratio_custom"?1.5:void 0},L=({focused:ee,checked:q})=>{const Te={};return q?(Te.background="#2080f0",ee&&(Te.boxShadow="0 0 0 2px #2080f040")):(Te.background="#d03050",ee&&(Te.boxShadow="0 0 0 2px #d0305040")),Te},ne=$("fullScreen"),y=$(!1),K=$(!0),U=$(!0),ue=$(!1),se=$(""),Fe=$(""),pe=$(!1),fe=async()=>{if(!se.value){c.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>C("p",null,[M("噫?应用包名不能为空(敲")])});return}if(ne.value==="fullScreen"&&!x.value&&(!a.MIOSVersion||a.MIOSVersion<2)){c.create({title:"应用全屏规则不能为空",type:"error",preset:"dialog",content:()=>C("p",null,[M("噫?应用全屏规则不能为空(敲")])});return}if(r.type==="add"&&l.allPackageName.has(se.value)){c.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>C("p",null,[M("噫?这个应用包名已经存在列表中了(敲")])});return}if(r.type==="update"&&pe.value&&ne.value==="fullScreen"){const[Ne]=await _e(new Promise((j,V)=>{c.create({title:"确认使用全屏规则吗?",type:"warning",preset:"dialog",content:()=>w.value==="custom"?C("p",null,[M("当前应用已存在")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的自定义规则")])," ",M(",继续提交可能导致")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的自定义规则")])," ",M("丢失。确定要继续吗?")]):C("p",null,[M("当前应用已存在")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M(",继续更新将会被更替为")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("全屏规则")])," ",M(",如后续需要改回")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M("可能需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{j("positiveClick")},onNegativeClick:()=>{V("negativeClick")}})}));if(Ne)return}if(r.type==="update"&&w.value==="module"&&A.value){const[Ne]=await _e(new Promise((j,V)=>{c.create({title:"确认使用平行窗口自定义规则吗?",type:"warning",preset:"dialog",content:()=>C("p",null,[M("当前应用已存在")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M(",继续更新将会被更替为")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的自定义规则")])," ",M(",且该应用规则不再随模块版本更新,如后续需要改回")," ",C("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平行窗口的模块规则")])," ",M("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{j("positiveClick")},onNegativeClick:()=>{V("negativeClick")}})}));if(Ne)return}Ce.value=!0;const ee=()=>{Ce.value=!1,i.value=!1},q=()=>{Ce.value=!1},Te={name:se.value,settingMode:ne.value,modePayload:{...ne.value==="fullScreen"&&{fullRule:x.value},...ne.value==="fullScreen"&&(!a.MIOSVersion||a.MIOSVersion<2)&&{skipSelfAdaptive:y.value},...ne.value==="fullScreen"&&{isShowDivider:K.value},...ne.value==="fullScreen"&&{supportFullSize:E.value},...ne.value==="fixedOrientation"&&{ratio:F.value},...ne.value==="fixedOrientation"&&{foRelaunch:U.value},...ne.value==="fixedOrientation"&&a.MIOSVersion&&a.MIOSVersion>=2&&{forceFixedOrientation:z.value},...ne.value==="embedded"&&(w.value==="custom"||w.value==="module"&&A.value)&&{splitRatio:P.value},...ne.value==="embedded"&&(w.value==="custom"||w.value==="module"&&A.value)&&{emRelaunch:ue.value}},loadingCallback:q,closeCallback:ee};h(Te)},Ce=$(!1);return t({openDrawer:T.value.openDrawer}),(ee,q)=>{const Te=at("n-input-group-label"),Ne=at("n-input"),j=at("n-input-group"),V=at("n-tag"),ge=at("n-alert"),we=at("n-switch"),le=at("n-card"),re=at("n-slider"),he=at("n-input-number"),oe=at("n-tab-pane"),ie=at("n-button"),ce=at("n-dropdown"),ae=at("n-tabs"),Q=at("n-drawer-content"),de=at("n-drawer");return Me(),De(ft,null,[Cs(ee.$slots,"default",qh(n3({openDrawer:T.value.openDrawer}))),C(de,{show:i.value,"onUpdate:show":q[21]||(q[21]=ve=>i.value=ve),width:S(a).windowWidth>=640?"450px":"100%",placement:"right"},{default:Z(()=>[C(Q,{title:r.title,closable:""},{footer:Z(()=>[C(ie,{type:"info",loading:Ce.value,"onUpdate:loading":q[19]||(q[19]=ve=>Ce.value=ve),onClick:q[20]||(q[20]=()=>fe())},{default:Z(()=>q[54]||(q[54]=[M(" 提交 ")])),_:1},8,["loading"])]),default:Z(()=>[C(j,null,{default:Z(()=>[C(Te,{size:"large"},{default:Z(()=>q[22]||(q[22]=[M("应用包名")])),_:1}),C(Ne,{size:"large",status:Fe.value,value:se.value,"onUpdate:value":q[0]||(q[0]=ve=>se.value=ve),"allow-input":ve=>ab(ve),readonly:r.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),w.value==="custom"?(Me(),At(ge,{key:0,type:"info",class:"mt-5"},{default:Z(()=>[q[25]||(q[25]=M(" 当前应用已被 ")),C(V,{bordered:!1,type:"info"},{default:Z(()=>q[23]||(q[23]=[M("自定义规则")])),_:1}),q[26]||(q[26]=M(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),C(V,{bordered:!1,type:"info"},{default:Z(()=>q[24]||(q[24]=[M("自定义规则")])),_:1}),q[27]||(q[27]=M(" 。 "))]),_:1})):Ke("",!0),C(ae,{class:"my-3",type:"segment",animated:"",value:ne.value,"onUpdate:value":q[18]||(q[18]=ve=>ne.value=ve)},{default:Z(()=>[r.type==="update"&&pe.value?(Me(),At(oe,{key:0,name:"embedded",tab:"平行窗口"},{default:Z(()=>[C(ge,{"show-icon":!1,bordered:!1,title:"应用分屏显示",type:"success"},{default:Z(()=>q[28]||(q[28]=[M(" 开启后,未适配横屏应用界面将通过平行窗口显示 ")])),_:1}),w.value==="module"?(Me(),At(le,{key:0,bordered:!1,title:"切换自定义规则",size:"small"},{default:Z(()=>[I("div",GG,[C(V,{bordered:!1,type:"info"},{default:Z(()=>q[29]||(q[29]=[M(" 切换为自定义规则后该应用不再随模块更新 ")])),_:1})]),C(we,{"rail-style":L,value:A.value,"onUpdate:value":q[1]||(q[1]=ve=>A.value=ve),size:"large"},{checked:Z(()=>q[30]||(q[30]=[M("使用自定义规则")])),unchecked:Z(()=>q[31]||(q[31]=[M("不使用自定义规则")])),_:1},8,["value"])]),_:1})):Ke("",!0),w.value==="custom"||A.value?(Me(),At(le,{key:1,bordered:!1,title:"平行窗口默认分屏比例",size:"small"},{default:Z(()=>[C(re,{value:P.value,"onUpdate:value":q[2]||(q[2]=ve=>P.value=ve),size:"small",min:.01,max:.99,step:.01},null,8,["value"]),C(he,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入平行窗口默认分屏比例",value:P.value,"onUpdate:value":q[3]||(q[3]=ve=>P.value=ve),min:.01,max:.99,step:.01},null,8,["value"])]),_:1})):Ke("",!0),w.value==="custom"||A.value?(Me(),At(le,{key:2,bordered:!1,title:"平行窗口显示比例发生变化时是否重载",size:"small"},{default:Z(()=>[I("div",qG,[C(V,{bordered:!1,type:"success"},{default:Z(()=>q[32]||(q[32]=[M(" 适用于开启 "),I("span",{class:"font-bold"},"平行窗口滑动条",-1),M(" 的应用 ")])),_:1})]),C(we,{"rail-style":L,value:ue.value,"onUpdate:value":q[4]||(q[4]=ve=>ue.value=ve),size:"large"},{checked:Z(()=>q[33]||(q[33]=[M("平行窗口显示比例变化时重载")])),unchecked:Z(()=>q[34]||(q[34]=[M("平行窗口显示比例变化时不重载")])),_:1},8,["value"])]),_:1})):Ke("",!0)]),_:1})):Ke("",!0),C(oe,{name:"fullScreen",tab:"全屏"},{default:Z(()=>[C(ge,{"show-icon":!1,bordered:!1,title:"应用横屏显示",type:"info"},{default:Z(()=>q[35]||(q[35]=[M(" 开启后,未适配横屏应用界面将全屏显示,并可更改显示规则 ")])),_:1}),C(le,{bordered:!1,title:"横屏显示规则",size:"small"},{default:Z(()=>[C(ce,{modelValue:b.value,"onUpdate:modelValue":q[5]||(q[5]=ve=>b.value=ve),size:"large",trigger:"click",options:g.value,onSelect:O},{default:Z(()=>[C(ie,{block:"",type:"info",dashed:""},{default:Z(()=>[M(Je(b.value.label),1)]),_:1})]),_:1},8,["modelValue","options"])]),_:1}),b.value.key==="fullScreen_custom"?(Me(),At(le,{key:0,bordered:!1,title:"自定义横屏规则",size:"small"},{default:Z(()=>[C(j,null,{default:Z(()=>[C(Ne,{ref_key:"currentFullRuleRef",ref:n,onFocus:q[6]||(q[6]=()=>X("currentFullRuleRef")),onBlur:q[7]||(q[7]=()=>N("currentFullRuleRef")),value:x.value,"onUpdate:value":q[8]||(q[8]=ve=>x.value=ve),placeholder:"请输入横屏规则"},null,8,["value"])]),_:1})]),_:1})):Ke("",!0),!S(a).MIOSVersion||S(a).MIOSVersion<2?(Me(),At(le,{key:1,class:"",bordered:!1,title:"跳过应用自适配声明",size:"small"},{default:Z(()=>[I("div",ZG,[C(V,{bordered:!1,type:"success"},{default:Z(()=>q[36]||(q[36]=[M(" 适用于即使设置了 "),I("span",{class:"font-bold"},"横屏规则",-1),M(" 仍无法横屏的应用 ")])),_:1})]),C(we,{"rail-style":L,value:y.value,"onUpdate:value":q[9]||(q[9]=ve=>y.value=ve),size:"large"},{checked:Z(()=>q[37]||(q[37]=[M("跳过自适配声明")])),unchecked:Z(()=>q[38]||(q[38]=[M("不跳过自适配声明")])),_:1},8,["value"])]),_:1})):Ke("",!0),C(le,{bordered:!1,title:"平行窗口滑动条",size:"small"},{default:Z(()=>[I("div",XG,[C(V,{bordered:!1,type:"success"},{default:Z(()=>q[39]||(q[39]=[M(" 适用于原生适配 "),I("span",{class:"font-bold"},"Android Embedded",-1),M(" 的应用 ")])),_:1})]),C(we,{"rail-style":L,value:K.value,"onUpdate:value":q[10]||(q[10]=ve=>K.value=ve),size:"large"},{checked:Z(()=>q[40]||(q[40]=[M("启用平行窗口滑动条")])),unchecked:Z(()=>q[41]||(q[41]=[M("关闭平行窗口滑动条")])),_:1},8,["value"])]),_:1}),K.value?(Me(),At(le,{key:2,bordered:!1,title:"平行窗口可滑动至全屏",size:"small"},{default:Z(()=>[I("div",YG,[C(V,{bordered:!1,type:"success"},{default:Z(()=>q[42]||(q[42]=[M(" 适用于原生适配 "),I("span",{class:"font-bold"},"Android Embedded",-1),M(" 的应用 ")])),_:1})]),C(we,{"rail-style":L,value:E.value,"onUpdate:value":q[11]||(q[11]=ve=>E.value=ve),size:"large"},{checked:Z(()=>q[43]||(q[43]=[M("平行窗口可滑动至全屏")])),unchecked:Z(()=>q[44]||(q[44]=[M("平行窗口不可滑动至全屏")])),_:1},8,["value"])]),_:1})):Ke("",!0)]),_:1}),C(oe,{name:"fixedOrientation",tab:"居中布局"},{default:Z(()=>[C(ge,{"show-icon":!1,bordered:!1,title:"应用居中显示",type:"warning"},{default:Z(()=>q[45]||(q[45]=[M(" 开启后,未适配横屏应用界面将居中显示,并可更改显示比例 ")])),_:1}),C(le,{bordered:!1,title:"居中显示比例",size:"small"},{default:Z(()=>[C(ce,{value:_.value,"onUpdate:value":q[12]||(q[12]=ve=>_.value=ve),size:"large",trigger:"click",options:v,onSelect:R},{default:Z(()=>[C(ie,{block:"",type:"error",dashed:""},{default:Z(()=>[M(Je(_.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),_.value.key==="ratio_custom"?(Me(),At(le,{key:0,bordered:!1,title:"自定义显示比例",size:"small"},{default:Z(()=>[C(re,{size:"small",value:F.value,"onUpdate:value":q[13]||(q[13]=ve=>F.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"]),C(he,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入自定义显示比例",value:F.value,"onUpdate:value":q[14]||(q[14]=ve=>F.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"])]),_:1})):Ke("",!0),C(le,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:Z(()=>[C(we,{"rail-style":L,value:U.value,"onUpdate:value":q[15]||(q[15]=ve=>U.value=ve),size:"large"},{checked:Z(()=>q[46]||(q[46]=[M("应用比例变化时重载应用")])),unchecked:Z(()=>q[47]||(q[47]=[M("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1}),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(Me(),At(le,{key:1,class:"",bordered:!1,title:"强制应用居中显示",size:"small"},{default:Z(()=>[I("div",QG,[C(V,{bordered:!1,type:"success"},{default:Z(()=>q[48]||(q[48]=[M(" 适用于即使设置了 "),I("span",{class:"font-bold"},"居中布局",-1),M(" 仍无法居中显示的应用 ")])),_:1})]),C(we,{"rail-style":L,value:z.value,"onUpdate:value":q[16]||(q[16]=ve=>z.value=ve),size:"large"},{checked:Z(()=>q[49]||(q[49]=[M("强制应用居中显示")])),unchecked:Z(()=>q[50]||(q[50]=[M("不强制应用居中显示")])),_:1},8,["value"])]),_:1})):Ke("",!0)]),_:1}),C(oe,{name:"disabled",tab:"原始布局"},{default:Z(()=>[C(ge,{"show-icon":!1,bordered:!1,title:"应用原始布局",type:"error"},{default:Z(()=>q[51]||(q[51]=[M(" 开启后,将禁用任何系统规则干预,应用会根据自身的适配规则进行显示,大多数应用仅竖屏显示 ")])),_:1}),C(le,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:Z(()=>[C(we,{"rail-style":L,value:U.value,"onUpdate:value":q[17]||(q[17]=ve=>U.value=ve),size:"large"},{checked:Z(()=>q[52]||(q[52]=[M("应用比例变化时重载应用")])),unchecked:Z(()=>q[53]||(q[53]=[M("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function lb(){const e=Ct(),t=$(!1),o=()=>new Promise(async(n,r)=>{if(t.value)r("已经有存在的任务了!");else{t.value=!0;const[i,a]=await _e(LN());if(i&&(r(i),t.value=!1),a){const l=a.trim().split(` +`).filter(u=>u),s={};l.forEach(u=>{const[,d,c]=u.split(",");s[d]=c}),e.installedAppNameList=s,n(s),t.value=!1}}});return{loading:t,installedAppNameList:e.installedAppNameList,getList:o}}function JG(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-.53 14.03a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V8.25a.75.75 0 0 0-1.5 0v5.69l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3Z","clip-rule":"evenodd"})])}function eq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M12 7.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}),I("path",{"fill-rule":"evenodd",d:"M1.5 4.875C1.5 3.839 2.34 3 3.375 3h17.25c1.035 0 1.875.84 1.875 1.875v9.75c0 1.036-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 14.625v-9.75ZM8.25 9.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM18.75 9a.75.75 0 0 0-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 0 0 .75-.75V9.75a.75.75 0 0 0-.75-.75h-.008ZM4.5 9.75A.75.75 0 0 1 5.25 9h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H5.25a.75.75 0 0 1-.75-.75V9.75Z","clip-rule":"evenodd"}),I("path",{d:"M2.25 18a.75.75 0 0 0 0 1.5c5.4 0 10.63.722 15.6 2.075 1.19.324 2.4-.558 2.4-1.82V18.75a.75.75 0 0 0-.75-.75H2.25Z"})])}function tq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"}),I("path",{"fill-rule":"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z","clip-rule":"evenodd"})])}function oq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z","clip-rule":"evenodd"})])}function nq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}function sb(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 0 0-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 0 0-2.282.819l-.922 1.597a1.875 1.875 0 0 0 .432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 0 0 0 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 0 0-.432 2.385l.922 1.597a1.875 1.875 0 0 0 2.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 0 0 2.28-.819l.923-1.597a1.875 1.875 0 0 0-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 0 0 0-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 0 0-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 0 0-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 0 0-1.85-1.567h-1.843ZM12 15.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z","clip-rule":"evenodd"})])}function rq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M16.5 7.5h-9v9h9v-9Z"}),I("path",{"fill-rule":"evenodd",d:"M8.25 2.25A.75.75 0 0 1 9 3v.75h2.25V3a.75.75 0 0 1 1.5 0v.75H15V3a.75.75 0 0 1 1.5 0v.75h.75a3 3 0 0 1 3 3v.75H21A.75.75 0 0 1 21 9h-.75v2.25H21a.75.75 0 0 1 0 1.5h-.75V15H21a.75.75 0 0 1 0 1.5h-.75v.75a3 3 0 0 1-3 3h-.75V21a.75.75 0 0 1-1.5 0v-.75h-2.25V21a.75.75 0 0 1-1.5 0v-.75H9V21a.75.75 0 0 1-1.5 0v-.75h-.75a3 3 0 0 1-3-3v-.75H3A.75.75 0 0 1 3 15h.75v-2.25H3a.75.75 0 0 1 0-1.5h.75V9H3a.75.75 0 0 1 0-1.5h.75v-.75a3 3 0 0 1 3-3h.75V3a.75.75 0 0 1 .75-.75ZM6 6.75A.75.75 0 0 1 6.75 6h10.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V6.75Z","clip-rule":"evenodd"})])}function ub(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm0 8.625a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM15.375 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0ZM7.5 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z","clip-rule":"evenodd"})])}function iq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),I("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),I("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function aq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M1.5 5.625c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v12.75c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 18.375V5.625Zm1.5 0v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5A.375.375 0 0 0 3 5.625Zm16.125-.375a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5A.375.375 0 0 0 21 7.125v-1.5a.375.375 0 0 0-.375-.375h-1.5ZM21 9.375A.375.375 0 0 0 20.625 9h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5ZM4.875 18.75a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5ZM3.375 15h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375Zm0-3.75h1.5a.375.375 0 0 0 .375-.375v-1.5A.375.375 0 0 0 4.875 9h-1.5A.375.375 0 0 0 3 9.375v1.5c0 .207.168.375.375.375Zm4.125 0a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 0-1.5h-9Z","clip-rule":"evenodd"})])}function db(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M3.792 2.938A49.069 49.069 0 0 1 12 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 0 1 1.541 1.836v1.044a3 3 0 0 1-.879 2.121l-6.182 6.182a1.5 1.5 0 0 0-.439 1.061v2.927a3 3 0 0 1-1.658 2.684l-1.757.878A.75.75 0 0 1 9.75 21v-5.818a1.5 1.5 0 0 0-.44-1.06L3.13 7.938a3 3 0 0 1-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836Z","clip-rule":"evenodd"})])}function lq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z","clip-rule":"evenodd"})])}function S6(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function sq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M8.128 9.155a3.751 3.751 0 1 1 .713-1.321l1.136.656a.75.75 0 0 1 .222 1.104l-.006.007a.75.75 0 0 1-1.032.157 1.421 1.421 0 0 0-.113-.072l-.92-.531Zm-4.827-3.53a2.25 2.25 0 0 1 3.994 2.063.756.756 0 0 0-.122.23 2.25 2.25 0 0 1-3.872-2.293ZM13.348 8.272a5.073 5.073 0 0 0-3.428 3.57 5.08 5.08 0 0 0-.165 1.202 1.415 1.415 0 0 1-.707 1.201l-.96.554a3.751 3.751 0 1 0 .734 1.309l13.729-7.926a.75.75 0 0 0-.181-1.374l-.803-.215a5.25 5.25 0 0 0-2.894.05l-5.325 1.629Zm-9.223 7.03a2.25 2.25 0 1 0 2.25 3.897 2.25 2.25 0 0 0-2.25-3.897ZM12 12.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"}),I("path",{d:"M16.372 12.615a.75.75 0 0 1 .75 0l5.43 3.135a.75.75 0 0 1-.182 1.374l-.802.215a5.25 5.25 0 0 1-2.894-.051l-5.147-1.574a.75.75 0 0 1-.156-1.367l3-1.732Z"})])}function uq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M5.507 4.048A3 3 0 0 1 7.785 3h8.43a3 3 0 0 1 2.278 1.048l1.722 2.008A4.533 4.533 0 0 0 19.5 6h-15c-.243 0-.482.02-.715.056l1.722-2.008Z"}),I("path",{"fill-rule":"evenodd",d:"M1.5 10.5a3 3 0 0 1 3-3h15a3 3 0 1 1 0 6h-15a3 3 0 0 1-3-3Zm15 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm2.25.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM4.5 15a3 3 0 1 0 0 6h15a3 3 0 1 0 0-6h-15Zm11.25 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.5 18a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function dq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M4.08 5.227A3 3 0 0 1 6.979 3H17.02a3 3 0 0 1 2.9 2.227l2.113 7.926A5.228 5.228 0 0 0 18.75 12H5.25a5.228 5.228 0 0 0-3.284 1.153L4.08 5.227Z"}),I("path",{"fill-rule":"evenodd",d:"M5.25 13.5a3.75 3.75 0 1 0 0 7.5h13.5a3.75 3.75 0 1 0 0-7.5H5.25Zm10.5 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm3.75-.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function cq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{d:"M6 3a3 3 0 0 0-3 3v1.5a.75.75 0 0 0 1.5 0V6A1.5 1.5 0 0 1 6 4.5h1.5a.75.75 0 0 0 0-1.5H6ZM16.5 3a.75.75 0 0 0 0 1.5H18A1.5 1.5 0 0 1 19.5 6v1.5a.75.75 0 0 0 1.5 0V6a3 3 0 0 0-3-3h-1.5ZM12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5ZM4.5 16.5a.75.75 0 0 0-1.5 0V18a3 3 0 0 0 3 3h1.5a.75.75 0 0 0 0-1.5H6A1.5 1.5 0 0 1 4.5 18v-1.5ZM21 16.5a.75.75 0 0 0-1.5 0V18a1.5 1.5 0 0 1-1.5 1.5h-1.5a.75.75 0 0 0 0 1.5H18a3 3 0 0 0 3-3v-1.5Z"})])}function fq(e,t){return Me(),De("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[I("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}function F6(e){let t="",o=new Uint8Array(e),n=o.byteLength;for(let r=0;r({theme:n.isDarkMode?to:Vt})),{message:h,modal:f,notification:p}=ao(["message","modal","notification"],{configProviderProps:c}),g=T(),v=$(!1),b=$(null);function x(O){return()=>m(Kt,null,{default:()=>m(O)})}const E=async()=>{const[O,R]=await _e(o.getList());O&&f.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>C("p",null,[M("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),R&&f.create({title:"获取成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},w=()=>{r.filterInstalledApps=!r.filterInstalledApps};lt(()=>r.isNeedShowErrorModal,(O,R)=>{O&&(v.value=!0)},{immediate:!1});const k=async()=>{await n.getAndroidApplicationPackageNameList(),await r.initDefault()},_=async()=>{t.value="";const[,O]=await _e(new Promise((R,L)=>{f.create({title:"请粘贴分享规则口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:t.value,"onUpdate:value":ne=>{t.value=ne},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){R("positiveClick")}})}));if(O){a.value=!0;const R=t.value,L=u6(R);if(!(L!=null&&L.length)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,解析")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("口令发生错误,无法正常解析。")]),negativeText:"确定"}),a.value=!1;return}try{const ne=E6(L),y=La.inflate(ne,{to:"string"}),K=JSON.parse(y);if(K.type!=="embedded"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,该")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("不适用于应用横屏布局。")]),negativeText:"确定"}),a.value=!1;return}if(K.device==="pad"&&n.deviceCharacteristics!=="tablet"||K.device==="fold"&&n.deviceCharacteristics==="tablet"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),a.value=!1;return}if(K.comp===1&&n.MIOSVersion&&n.MIOSVersion>1){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,该")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("仅兼容Android 13 - 14 的小米机型。")]),negativeText:"确定"}),a.value=!1;return}if(K.comp===2&&(!n.MIOSVersion||n.MIOSVersion===1)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,该")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("仅兼容Hyper OS 2.0的小米机型。")]),negativeText:"确定"}),a.value=!1;return}r.customConfigEmbeddedRulesList[K.name]=K.em,r.customConfigFixedOrientationList[K.name]=K.fo,n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[K.name]={name:K.name,...d0(r.customConfigEmbeddedRulesList[K.name],r.customConfigFixedOrientationList[K.name],K.mode)}:r.systemEmbeddedSettingConfig[K.name]={name:K.name,embeddedEnable:!!["embedded","fullScreen"].includes(K.mode)};const[U,ue]=await _e(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:K.name,action:ml(K.mode)}}:{switchAction:{name:K.name,action:["embedded","fullScreen"].includes(K.mode)?"enable":"disable"}}}));U?(f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),a.value=!1):(r.updateMergeRuleList(),await k(),a.value=!1,f.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(K.name,n.installedAppNameList[K.name]||r.applicationName[K.name])])," ",M("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区-平行窗口")])," ",M("内")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(K.mode)?"打开":"关闭"])," ",M("该应用的开关再做尝试~")]),positiveText:"确定"}))}catch{f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),a.value=!1}}},F=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:O=>{F.page=O},onUpdatePageSize:O=>{F.pageSize=O,F.page=1}}),P=$(!1),z=async()=>{l.value=!0,await k();const[O,R]=await _e(Jd("miui_embedding_window"));O&&(f.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),l.value=!1),R&&(f.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),l.value=!1)},A=async()=>{await n.getAndroidApplicationPackageNameList(),P.value=!0;const[O,R]=await _e(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")}}));O?(f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),P.value=!1):(r.updateMergeRuleList(),P.value=!1,f.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("好耶w,已根据您设备当前的整体应用情况重新")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修剪模块应用适配列表")])," ",M(",后续每次更新模块或者安装新的应用后,建议重新操作")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M("。")])]),negativeText:"确定"}))},G=async()=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(u.value){const[O,R]=await _e(u.value.openDrawer());if(O)console.log("操作取消:",O);else{R.settingMode==="fullScreen"&&(R.modePayload.fullRule&&(r.customConfigEmbeddedRulesList[R.name]={name:R.name,fullRule:R.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),r.customConfigFixedOrientationList[R.name]={name:R.name,...R.modePayload.isShowDivider?{isShowDivider:!0}:{},...R.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...R.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),R.settingMode==="fixedOrientation"&&(r.customConfigFixedOrientationList[R.name]={name:R.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...R.modePayload.ratio!==void 0?{ratio:R.modePayload.ratio}:{},...R.modePayload.foRelaunch!==void 0?{relaunch:R.modePayload.foRelaunch}:{}}),R.settingMode==="disabled"&&(r.customConfigFixedOrientationList[R.name]={name:R.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...R.modePayload.foRelaunch!==void 0?{relaunch:R.modePayload.foRelaunch}:{}}),n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[R.name]={name:R.name,...d0(r.customConfigEmbeddedRulesList[R.name],r.customConfigFixedOrientationList[R.name],R.settingMode)}:r.systemEmbeddedSettingConfig[R.name]={name:R.name,embeddedEnable:!!["embedded","fullScreen"].includes(R.settingMode)};const[L,ne]=await _e(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:R.name,action:ml(R.settingMode)}}:{switchAction:{name:R.name,action:["embedded","fullScreen"].includes(R.settingMode)?"enable":"disable"}}}));L?(f.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(f.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",M("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板并且在")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区-平行窗口")])," ",M("内")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(R.settingMode)?"打开":"关闭"])," ",M("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},H=async(O,R)=>{var L;if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(d.value){i.info(JSON.stringify(O),"rowww");const[ne,y]=await _e(d.value.openDrawer(O));if(ne)console.log("操作取消:",ne);else{if(y.settingMode==="fullScreen"){const{moduleEmbeddedRules:ue,currentEmbeddedRules:se,moduleFixedOrientation:Fe,currentFixedOrientation:pe}=yl(O.name);se.value?(y.modePayload.fullRule&&(se.value.fullRule=y.modePayload.fullRule,se.value.skipSelfAdaptive=!0),n.MIOSVersion&&n.MIOSVersion>=2&&!y.modePayload.fullRule&&se.value.fullRule&&delete se.value.fullRule,ca(ue.value,se.value)||(r.customConfigEmbeddedRulesList[O.name]={name:O.name,...se.value})):y.modePayload.fullRule?r.customConfigEmbeddedRulesList[O.name]={name:O.name,fullRule:y.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}:n.MIOSVersion&&n.MIOSVersion>=2&&(r.customConfigEmbeddedRulesList[O.name]={name:O.name,skipSelfAdaptive:!0}),pe.value?(y.modePayload.hasOwnProperty("isShowDivider")&&(pe.value.isShowDivider=y.modePayload.isShowDivider),y.modePayload.hasOwnProperty("supportFullSize")&&(pe.value.supportFullSize=y.modePayload.supportFullSize),n.MIOSVersion&&n.MIOSVersion>=2?(pe.value.hasOwnProperty("disable")&&(delete pe.value.disable,pe.value.supportModes="full,fo",pe.value.defaultSettings="full"),pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange):y.modePayload.hasOwnProperty("skipSelfAdaptive")&&(pe.value.disable=y.modePayload.skipSelfAdaptive),ca(Fe.value,pe.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value})):r.customConfigFixedOrientationList[O.name]={name:O.name,...y.modePayload.isShowDivider?{isShowDivider:!0}:{},...y.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...y.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(y.settingMode==="fixedOrientation"){const{moduleEmbeddedRules:ue,currentEmbeddedRules:se,moduleFixedOrientation:Fe,currentFixedOrientation:pe}=yl(O.name);if(pe.value){if(pe.value.hasOwnProperty("disable")&&delete pe.value.disable,pe.value.hasOwnProperty("isScale")&&delete pe.value.isScale,y.modePayload.ratio!==void 0?pe.value.ratio=y.modePayload.ratio:delete pe.value.ratio,y.modePayload.foRelaunch!==void 0?pe.value.relaunch=y.modePayload.foRelaunch:delete pe.value.relaunch,n.MIOSVersion&&n.MIOSVersion>=2)if(pe.value.supportModes="full,fo",pe.value.defaultSettings="fo",pe.value.skipSelfAdaptive=!0,y.modePayload.hasOwnProperty("forceFixedOrientation")&&y.modePayload.forceFixedOrientation)if(pe.value.compatChange){const ee=new Set((L=pe.value.compatChange)==null?void 0:L.split(","));ee.add("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"),pe.value.compatChange=[...ee].join(",")}else pe.value.compatChange="OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT";else pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange;ca(Fe.value,pe.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value})}else r.customConfigFixedOrientationList[O.name]={name:O.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2&&y.modePayload.forceFixedOrientation?{compatChange:"OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"}:{},...y.modePayload.ratio!==void 0?{ratio:y.modePayload.ratio}:{},...y.modePayload.foRelaunch!==void 0?{relaunch:y.modePayload.foRelaunch}:{}}}if(y.settingMode==="disabled"&&O.settingMode!==y.settingMode){const{moduleEmbeddedRules:ue,currentEmbeddedRules:se,moduleFixedOrientation:Fe,currentFixedOrientation:pe}=yl(O.name);pe.value?(pe.value.skipSelfAdaptive=!0,pe.value.disable=!0,pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange,ca(Fe.value,pe.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value})):r.customConfigFixedOrientationList[O.name]={name:O.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(y.settingMode==="embedded"){if(O.settingMode!==y.settingMode&&O.ruleMode==="custom"&&O.isSupportEmbedded&&delete r.customConfigEmbeddedRulesList[O.name],r.customConfigEmbeddedRulesList[O.name])y.modePayload.hasOwnProperty("splitRatio")&&(r.customConfigEmbeddedRulesList[O.name].splitRatio=y.modePayload.splitRatio),y.modePayload.hasOwnProperty("relaunch")&&(r.customConfigEmbeddedRulesList[O.name].relaunch=y.modePayload.emRelaunch);else{let ue=!1;y.modePayload.hasOwnProperty("splitRatio")&&(ue=!0),y.modePayload.hasOwnProperty("emRelaunch")&&(ue=!0),ue&&(r.customConfigEmbeddedRulesList[O.name]={...r.isPatchMode?r.patchEmbeddedRulesList[O.name]:r.sourceEmbeddedRulesList[O.name],...y.modePayload.hasOwnProperty("splitRatio")&&{splitRatio:y.modePayload.splitRatio},...y.modePayload.hasOwnProperty("emRelaunch")&&{relaunch:y.modePayload.emRelaunch}})}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:ue,currentEmbeddedRules:se,moduleFixedOrientation:Fe,currentFixedOrientation:pe}=yl(O.name);pe.value&&(pe.hasOwnProperty("disable")&&delete pe.value.disable,pe.hasOwnProperty("defaultSettings")&&delete pe.value.defaultSettings,pe.hasOwnProperty("skipSelfAdaptive")||(pe.value.skipSelfAdaptive=!0),pe.hasOwnProperty("compatChange")&&delete pe.value.compatChange),pe.value&&(se.hasOwnProperty("skipSelfAdaptive")||(se.value.skipSelfAdaptive=!0)),ca(ue.value,se.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value}),ca(Fe.value,pe.value)||(r.customConfigEmbeddedRulesList[O.name]={name:O.name,...se.value})}}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:ue,currentEmbeddedRules:se,moduleFixedOrientation:Fe,currentFixedOrientation:pe}=yl(O.name);O.settingMode!==y.settingMode&&(r.customConfigEmbeddedSettingConfig[O.name]={name:O.name,...d0(se.value,pe.value,y.settingMode)})}else r.systemEmbeddedSettingConfig[O.name]={name:O.name,embeddedEnable:!!["embedded","fullScreen"].includes(y.settingMode)};const[K,U]=await _e(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:O.name,action:ml(y.settingMode)}}:{switchAction:{name:O.name,action:["embedded","fullScreen"].includes(y.settingMode)?"enable":"disable"}}}));K?(f.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loadingCallback&&y.loadingCallback()):(f.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(O.name,O.applicationName)])," ",M("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区-平行窗口")])," ",M("内")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(y.settingMode)?"打开":"关闭"])," ",M("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),y.loadingCallback&&y.loadingCallback(),y.closeCallback&&y.closeCallback())}}},X=async(O,R,L,ne)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,不兼容折叠屏设备!");return}if(O==="cleanCustomRule"){const y=f.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>C("p",null,[M("清除自定义规则后,你对")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("模块规则")])," ",M(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{y.loading=!0,r.customConfigEmbeddedRulesList[L.name]&&delete r.customConfigEmbeddedRulesList[L.name],r.customConfigFixedOrientationList[L.name]&&delete r.customConfigFixedOrientationList[L.name],r.customConfigEmbeddedSettingConfig[L.name]&&delete r.customConfigEmbeddedSettingConfig[L.name];const[K,U]=await _e(xa({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:L.name,action:ml(Iv(r.isPatchMode?r.patchEmbeddedRulesList[L.name]:r.sourceEmbeddedRulesList[L.name],r.isPatchMode?r.patchFixedOrientationList[L.name]:r.sourceFixedOrientationList[L.name]))}}:{switchAction:{name:L.name,action:(r.isPatchMode?r.patchEmbeddedRulesList[L.name]:r.sourceEmbeddedRulesList[L.name])?"enable":"disable"}}}));K?(f.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loading=!1):(f.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),y.loading=!1,r.updateMergeRuleList())}})}if(O==="shareCustomRule"){const y={name:L.name,cmpt:n.MIOSVersion&&n.MIOSVersion>=2?2:1,em:{name:L.name,...L.embeddedRules},fo:{name:L.name,...L.fixedOrientationRule},type:"embedded",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:L.settingMode},K=JSON.stringify(y),U=La.deflate(K,{level:9,memLevel:9,windowBits:15}),ue=new Uint8Array(U),se=F6(ue),[Fe]=await _e(navigator.clipboard.writeText(`我分享了一个[应用横屏布局]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +${se}`));if(Fe){f.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("复制")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),negativeText:"确定"});return}else f.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("好耶w,复制")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("分享口令成功了~")]),C("p",null,[M("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),C("p",null,[M("分享口令导入入口位于")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局- 从分享口令导入")])," ",M("。")])]),positiveText:"确定"})}},N=(O,R)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}f.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("模块已对")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(O.name,O.applicationName)])," ",M("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})};function T(){return[{title:"应用名称",minWidth:250,key:"name",render(O,R){return C("div",null,[O.applicationName&&C("p",null,[O.applicationName]),O.name&&C("p",null,[C("span",{class:{hidden:!O.applicationName}},[M("(")]),O.name,C("span",{class:{hidden:!O.applicationName}},[M(")")])])])}},{title:"规则来源",minWidth:100,key:"ruleMode",render(O,R){const L={icon:O.ruleMode==="custom"?ub:S6};if(O.ruleMode==="custom"){const ne=[{label:"分享自定义规则",key:"shareCustomRule",icon:x(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:x(g9)}];return C(at("n-dropdown"),{onSelect:(y,K)=>X(y,K,O),size:"large",trigger:"click",options:ne},{default:()=>[C(at("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[M("自定义规则")],...L})]})}return C(at("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>N(O)},{default:()=>[M("模块规则")],...L})}},{title:"应用规则修复",minWidth:100,key:"setting",render(O,R){const L={icon:fq},ne=(y,K)=>{f.create({title:"想修复应用规则吗?",type:"warning",preset:"dialog",content:()=>C("p",null,[M("由于小米的BUG,部分情况下会导致应用当前适配规则与实际显示效果不符,模块可以主动修复")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(y.name,y.applicationName)])," ",M("由于系统错误的兼容性配置导致应用布局异常的问题,确定要继续吗?")]),positiveText:"确定修复",negativeText:"我再想想",onPositiveClick:async()=>{const[U,ue]=await _e(w9(y.name));if(U)f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])});else{if(n.MIOSVersion&&n.MIOSVersion>=2){const[se,Fe]=await _e(_j(y.name,ml(y.settingMode)));se&&(i.error("SetAppModeErr",se),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}else{const[se,Fe]=await _e(Mj(y.name,["embedded","fullScreen"].includes(y.settingMode)?"enable":"disable"));se&&(i.error("SwitchActionErr",se),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}f.create({title:"修复应用规则成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,修复")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(y.name,y.applicationName)])," ",M("的应用规则成功了OwO~")])})}}})};return C("div",null,[C(at("n-button"),{size:"small",dashed:!0,type:"warning",onClick:()=>ne(O)},{default:()=>[M("应用规则修复")],...L})])}},{title:"当前规则",minWidth:100,key:"settingMode",render(O,R){const L={icon:sb},ne={embedded:{type:"success",name:"平行窗口",onClick(y,K){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}},fullScreen:{type:"info",name:"全屏",onClick(y,K){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备不兼容折叠屏设备!")])});return}H(y)}},fixedOrientation:{type:"warning",name:"居中布局",onClick(y,K){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}},disabled:{type:"error",name:"原始布局",onClick(y,K){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}}};return C(at("n-button"),{size:"small",strong:!0,dashed:!0,type:ne[O.settingMode].type,onClick:()=>ne[O.settingMode].onClick(O,R)},{default:()=>[ne[O.settingMode].name],...L})}}]}return ut(()=>{Et(()=>{r.isNeedShowReloadPathModeDialog&&Mt(async()=>{const[,O]=await _e(new Promise((R,L)=>{f.create({title:"是否需要重新生成定制应用数据?",type:"info",preset:"dialog",content:()=>C("p",null,[M("检测到您最近已经更新了模块版本并且开启了")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("定制模式")])," ",M(",模块需要重新操作")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M(",确定要继续吗?")]),positiveText:"确定",negativeText:"取消",onPositiveClick(){R("success")},onNegativeClick(){L("cancel")},onMaskClick(){L("cancel")},onClose(){L("cancel")}})}));O&&A(),r.isNeedShowReloadPathModeDialog=!1,n.needReloadData=!1})})}),(O,R)=>{const L=at("n-alert"),ne=at("n-input-group"),y=at("n-card");return Me(),De(ft,null,[I("main",hq,[I("div",pq,[I("div",mq,[R[12]||(R[12]=I("h3",{class:xe("text-base font-semibold leading-7")},[I("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient( 101.22deg, rgb(255, 182, 133) -18.32%, rgb(255, 111, 29) 7.01%, @@ -4180,8 +4180,8 @@ ${he}`));if(Se){f.create({title:"复制分享口令失败",type:"error",preset:" rgb(135, 148, 255) 70.98%, rgb(60, 112, 255) 91.35%, rgb(60, 112, 255) 110.17% - )`}},"应用横屏布局")],-1)),O("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用横屏布局,优化应用在横屏下的体验。 ",2)])]),y(Q,{size:"small"},{default:Z(()=>[S(n).skipConfirm.patchModeAlert?qe("",!0):(_e(),At(I,{key:0,type:"info",class:"mb-3",closable:"",onClose:R[0]||(R[0]=()=>{S(n).skipConfirm.patchModeAlert=!0})},{default:Z(()=>R[13]||(R[13]=[M(" 由于小米系统优化不佳的原因,大量的应用适配规则可能导致系统出现卡顿、掉帧等问题,建议老机型可以前往开启模块的定制模式,详情可以前往模块设置中了解。 ")])),_:1})),O("div",fq,[y(S(Ft),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(r).loading,onClick:j},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(p9))]),_:1})]),default:Z(()=>[R[14]||(R[14]=M(" 添加应用 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(r).loading,onClick:R[1]||(R[1]=()=>k())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(d9))]),_:1})]),default:Z(()=>[R[15]||(R[15]=M(" 刷新应用列表 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(r).loading||l.value,onClick:R[2]||(R[2]=()=>z())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(m9))]),_:1})]),default:Z(()=>[R[16]||(R[16]=M(" 热重载应用数据 "))]),_:1},8,["loading"]),S(r).isPatchMode?(_e(),At(S(Ft),{key:0,class:"mb-3 mr-3",type:"error",loading:S(n).loading||S(r).loading||P.value,onClick:R[3]||(R[3]=()=>B())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(KW))]),_:1})]),default:Z(()=>[R[17]||(R[17]=M(" 生成定制应用数据 "))]),_:1},8,["loading"])):qe("",!0),y(S(Ft),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(r).loading||S(o).loading.value,onClick:R[4]||(R[4]=U=>E())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(c9))]),_:1})]),default:Z(()=>[R[18]||(R[18]=M(" 获取已安装应用名称 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(r).loading||a.value,onClick:R[5]||(R[5]=U=>_())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(ld))]),_:1})]),default:Z(()=>[R[19]||(R[19]=M(" 从分享口令导入 "))]),_:1},8,["loading"])]),O("div",hq,[y(S(Ft),{class:"mb-3 mr-3",type:S(r).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(r).loading,secondary:"",onClick:C},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[S(r).filterInstalledApps?(_e(),At(S(db),{key:0})):(_e(),At(S(f9),{key:1}))]),_:1})]),default:Z(()=>[M(" "+nt(S(r).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[6]||(R[6]=()=>Vv())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>R[20]||(R[20]=[O("img",{src:F9},null,-1)])),_:1})]),default:Z(()=>[R[21]||(R[21]=M(" 应用抽屉 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[7]||(R[7]=()=>Nv())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>R[22]||(R[22]=[O("img",{src:sd},null,-1)])),_:1})]),default:Z(()=>[R[23]||(R[23]=M(" 超级小爱 "))]),_:1},8,["loading"])]),O("div",pq,[y(w,null,{default:Z(()=>[y(S(rn),{size:"large",clearable:"",value:S(r).searchKeyWord,"onUpdate:value":R[8]||(R[8]=U=>S(r).searchKeyWord=U),ref_key:"searchKeyWordInput",ref:s,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),y(S(Ft),{size:"large",type:"primary",onClick:R[9]||(R[9]=()=>{var U;(U=s.value)==null||U.blur()})},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(h9))]),_:1})]),default:Z(()=>[R[24]||(R[24]=M(" 搜索 "))]),_:1}),y(S(Ft),{size:"large",bordered:"",onClick:R[10]||(R[10]=()=>{S(r).searchKeyWord=""})},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(v9))]),_:1})]),default:Z(()=>[R[25]||(R[25]=M(" 清空 "))]),_:1})]),_:1})])]),_:1}),y(S(Zm),{ref_key:"embeddedTableRef",ref:b,loading:S(n).loading||S(r).loading,columns:S(g),class:"mt-3",data:S(r).filterMergeRuleList,pagination:F},null,8,["loading","columns","data","pagination"])]),y(y9,{modelValue:v.value,"onUpdate:modelValue":R[11]||(R[11]=U=>v.value=U),errorLogging:S(r).errorLogging},null,8,["modelValue","errorLogging"]),y(Oh,{ref_key:"addEmbeddedApp",ref:u,type:"add",title:"添加应用"},null,512),y(Oh,{ref_key:"updateEmbeddedApp",ref:d,type:"update",title:"更新应用"},null,512)],64)}}}),Lh=ye({__name:"AutoUIAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=$(null),r=$(null),i=e,a=$(!1),l=St(),s=m6(),u=ui(),d=D(()=>({theme:l.isDarkMode?oo:Gt})),{message:c,modal:h}=lo(["message","modal"],{configProviderProps:d});let f,p;const g=[{label:"空白规则",key:"UNDEFINED_VIEW_POLICY"},{label:"全局缩放[*:0]",key:"VIEW_POLICY_DEFAULT",rule:"*:0"},{label:"全局拉伸[*:1]",key:"VIEW_POLICY_STRETCH",rule:"*:1"},{label:"全局栅格[*:2]",key:"VIEW_POLICY_AUTO_COLUMNS",rule:"*:2"},{label:"全局浮动[*:6]",key:"VIEW_POLICY_FLOAT",rule:"*:6"},{label:"精确适配",key:"CUSTOM_VIEW_POLICY"}],v=$(g[0]),b=$(""),x=$(""),E=$(),C=$(!1),k=$(!1),_=$(),F=$({openDrawer:R=>new Promise((I,w)=>{var Q,U,X,re;if(i.type==="update"&&!R){w(new Error("更新模式下必须传入初始化参数")),c.error("初始化参数不能为空");return}if(f=I,p=w,i.type==="add"&&(_.value="add",K.value="",b.value="",v.value=g[0],x.value="",k.value=!1,C.value=!0),i.type==="update"&&R){switch(_.value="update",K.value=R.name,E.value=R.ruleMode,b.value=((Q=R.autoUIRule)==null?void 0:Q.activityRule)||"",b.value){case"":{v.value=g[0];break}case"*:0":{v.value=g[1];break}case"*:1":{v.value=g[2];break}case"*:2":{v.value=g[3];break}case"*:6":{v.value=g[4];break}default:{v.value=g[5];break}}x.value=((U=R.autoUIRule)==null?void 0:U.skippedActivityRule)||"",k.value=((X=R.autoUIRule)==null?void 0:X.skippedAppConfigChange)||!1,C.value=((re=R.autoUIRule)==null?void 0:re.optimizeWebView)||!1}a.value=!0}),closeDrawer:()=>{a.value=!1,p("Drawer closed without submission")}}),P=(R,I)=>{v.value=I,b.value=I.rule||""},z=({focused:R,checked:I})=>{const w={};return I?(w.background="#2080f0",R&&(w.boxShadow="0 0 0 2px #2080f040")):(w.background="#d03050",R&&(w.boxShadow="0 0 0 2px #d0305040")),w},B=R=>{const I=document.querySelector(".n-drawer-content");I instanceof HTMLElement&&(u.info("resizeDrawerContent",R),I.style.height=R?"calc(100% + 200px)":"100%")},j=R=>{var I,w;R==="currentActivityRuleRef"&&(B(!0),(I=r.value)==null||I.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&(B(!0),(w=n.value)==null||w.$el.scrollIntoView({behavior:"smooth",block:"start"}))},V=R=>{var I,w;R==="currentActivityRuleRef"&&(B(!1),(I=r.value)==null||I.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&(B(!1),(w=n.value)==null||w.$el.scrollIntoView({behavior:"smooth",block:"start"}))},K=$(""),N=$(""),T=async()=>{if(!K.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>y("p",null,[M("噫?应用包名不能为空(敲")])});return}if(i.type==="add"&&s.allPackageName.has(K.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>y("p",null,[M("噫?这个应用包名已经存在列表中了(敲")])});return}L.value=!0;const R=()=>{L.value=!1,a.value=!1},I=()=>{L.value=!1},w={name:K.value,modePayload:{optimizeWebView:C.value,skippedAppConfigChange:k.value,...v.value.key!=="UNDEFINED_VIEW_POLICY"&&b.value?{activityRule:b.value}:{},...b.value&&x.value?{skippedActivityRule:x.value}:{}},loadingCallback:I,closeCallback:R};h.create({title:"确认应用布局优化规则吗?",type:"warning",preset:"dialog",content:()=>y("p",null,[M("应用布局优化的规则仅在应用横屏全屏场景下才会生效,建议将应用的横屏配置修改为")," ",y("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("全屏")]),M(",规则效果以应用个体差异而异,建议多多尝试。继续更新将会被更替为")," ",y("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M(",且该应用规则不再随模块版本更新,如后续需要改回")," ",y("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("模块规则")])," ",M("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定应用",negativeText:"我再想想",onPositiveClick:async()=>{f(w)},onNegativeClick(){I()},onMaskClick(){I()},onClose(){I()}})},L=$(!1);return $(0),t({openDrawer:F.value.openDrawer}),(R,I)=>{const w=at("n-input-group-label"),Q=at("n-input"),U=at("n-input-group"),X=at("n-tag"),re=at("n-alert"),he=at("n-button"),Se=at("n-dropdown"),pe=at("n-card"),fe=at("n-switch"),we=at("n-drawer-content"),J=at("n-drawer");return _e(),De(ft,null,[Cs(R.$slots,"default",qh(n3({openDrawer:F.value.openDrawer}))),y(J,{show:a.value,"onUpdate:show":I[12]||(I[12]=G=>a.value=G),width:S(l).windowWidth>=640?"450px":"100%",placement:"right"},{default:Z(()=>[y(we,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:i.title,closable:""},{footer:Z(()=>[y(he,{type:"info",loading:L.value,"onUpdate:loading":I[10]||(I[10]=G=>L.value=G),onClick:I[11]||(I[11]=()=>T())},{default:Z(()=>I[23]||(I[23]=[M(" 提交 ")])),_:1},8,["loading"])]),default:Z(()=>[y(U,{class:xe(S(l).MIOSVersion&&S(l).MIOSVersion>=2?"":"mb-5")},{default:Z(()=>[y(w,{size:"large"},{default:Z(()=>I[13]||(I[13]=[M("应用包名")])),_:1}),y(Q,{size:"large",status:N.value,value:K.value,"onUpdate:value":I[0]||(I[0]=G=>K.value=G),"allow-input":G=>ab(G),readonly:i.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1},8,["class"]),E.value==="custom"?(_e(),At(re,{key:0,type:"info",class:"mb-2"},{default:Z(()=>[I[16]||(I[16]=M(" 当前应用已被 ")),y(X,{bordered:!1,type:"info"},{default:Z(()=>I[14]||(I[14]=[M("自定义规则")])),_:1}),I[17]||(I[17]=M(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),y(X,{bordered:!1,type:"info"},{default:Z(()=>I[15]||(I[15]=[M("自定义规则")])),_:1}),I[18]||(I[18]=M(" 。 "))]),_:1})):qe("",!0),y(pe,{bordered:!1,title:"应用布局优化规则",size:"small"},{default:Z(()=>[y(Se,{value:v.value,"onUpdate:value":I[1]||(I[1]=G=>v.value=G),size:"large",trigger:"click",options:g,onSelect:P},{default:Z(()=>[y(he,{block:"",type:"info",dashed:""},{default:Z(()=>[M(nt(v.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),v.value.key==="CUSTOM_VIEW_POLICY"?(_e(),At(pe,{key:1,bordered:!1,title:"自定义应用布局优化规则",size:"small"},{default:Z(()=>[y(U,null,{default:Z(()=>[y(Q,{"display-directive":"show",ref_key:"currentActivityRuleRef",ref:r,onFocus:I[2]||(I[2]=()=>j("currentActivityRuleRef")),onBlur:I[3]||(I[3]=()=>V("currentActivityRuleRef")),"allow-input":G=>NG(G),type:"textarea",autosize:{minRows:3,maxRows:3},value:b.value,"onUpdate:value":I[4]||(I[4]=G=>b.value=G),placeholder:"请输入自定义应用布局优化规则"},null,8,["allow-input","value"])]),_:1})]),_:1})):qe("",!0),y(pe,{bordered:!1,title:"跳过应用布局优化的Activity规则",size:"small"},{default:Z(()=>[y(U,null,{default:Z(()=>[y(Q,{"display-directive":"show",ref_key:"currentSkippedActivityRuleRef",ref:n,onFocus:I[5]||(I[5]=()=>j("currentSkippedActivityRuleRef")),onBlur:I[6]||(I[6]=()=>V("currentSkippedActivityRuleRef")),"allow-input":G=>VG(G),type:"textarea",autosize:{minRows:3,maxRows:3},value:x.value,"onUpdate:value":I[7]||(I[7]=G=>x.value=G),placeholder:"请输入跳过应用布局优化的Activity规则"},null,8,["allow-input","value"])]),_:1})]),_:1}),y(pe,{bordered:!1,title:"优化WebView页面",size:"small"},{default:Z(()=>[y(fe,{"rail-style":z,value:C.value,"onUpdate:value":I[8]||(I[8]=G=>C.value=G),size:"large"},{checked:Z(()=>I[19]||(I[19]=[M("优化WebView页面")])),unchecked:Z(()=>I[20]||(I[20]=[M("不优化WebView页面")])),_:1},8,["value"])]),_:1}),y(pe,{bordered:!1,title:"跳过应用配置改变",size:"small"},{default:Z(()=>[y(fe,{"rail-style":z,value:k.value,"onUpdate:value":I[9]||(I[9]=G=>k.value=G),size:"large"},{checked:Z(()=>I[21]||(I[21]=[M("跳过应用配置改变")])),unchecked:Z(()=>I[22]||(I[22]=[M("不跳过应用配置改变")])),_:1},8,["value"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function gq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt}));lo(["message","modal"],{configProviderProps:t});const o=()=>{},n=()=>{};return ut(()=>{}),{add:o,update:n}}const vq={class:"autoui-view mb-10"},bq={class:"mt-3"},xq={class:"mb-3 px-4 sm:px-0"},yq={class:"flex flex-wrap"},Cq={class:"flex flex-wrap"},wq=ye({__name:"AutoUIView",setup(e){const t=$(null),o=K(),n=St(),r=lb(),i=D(()=>({theme:n.isDarkMode?oo:Gt})),{message:a,modal:l,notification:s}=lo(["message","modal","notification"],{configProviderProps:i}),u=m6(),d=$(!1),c=$(!1);gq();const h=$(null),f=$(null);WH(),ui(),Tv();const p=$("");function g(N){return()=>m(Ut,null,{default:()=>m(N)})}const v=async()=>{await n.getAndroidApplicationPackageNameList(),await u.initDefault()},b=async()=>{const[N,T]=await Me(r.getList());N&&l.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>y("p",null,[M("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),T&&l.create({title:"获取成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},x=()=>{u.filterInstalledApps=!u.filterInstalledApps},E=async()=>{c.value=!0,await v();const[N,T]=await Me(Jd("miui_auto_ui"));N&&(l.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),c.value=!1),T&&(l.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),c.value=!1)},C=async()=>{p.value="";const[,N]=await Me(new Promise((T,L)=>{l.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:p.value,"onUpdate:value":R=>{p.value=R},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){T("positiveClick")}})}));if(N){d.value=!0;const T=p.value,L=u6(T);if(!(L!=null&&L.length)){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,解析")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("口令发生错误,无法正常解析。")]),negativeText:"确定"}),d.value=!1;return}console.log(L,"getBase64String");try{const R=E6(L),I=La.inflate(R,{to:"string"}),w=JSON.parse(I);if(w.type!=="autoui"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,该")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("不适用于应用布局优化。")]),negativeText:"确定"}),d.value=!1;return}if(w.device==="pad"&&n.deviceCharacteristics!=="tablet"||w.device==="fold"&&n.deviceCharacteristics==="tablet"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),d.value=!1;return}u.customConfigAutoUIList[w.name]=w.rules,u.autoUISettingConfig[w.name]={name:w.name,enable:!0};const[Q,U]=await Me(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:w.name,action:"enable"}}));Q?(l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),d.value=!1):(u.updateMergeRuleList(),await v(),d.value=!1,l.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(w.name,n.installedAppNameList[w.name]||u.applicationName[w.name])])," ",M("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]),positiveText:"确定"}))}catch(R){console.log(R,"error"),l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),d.value=!1}}},k=async(N,T,L,R)=>{if(N==="cleanCustomRule"){const I=l.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>y("p",null,[M("清除自定义规则后,你对")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("模块规则")])," ",M(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{I.loading=!0,u.customConfigAutoUIList[L.name]&&delete u.customConfigAutoUIList[L.name];const[w,Q]=await Me(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config")}));w?(l.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),I.loading=!1):(l.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),I.loading=!1,u.updateMergeRuleList())}})}if(N==="shareCustomRule"){const I={name:L.name,cmpt:1,rules:{name:L.name,...L.autoUIRule},type:"autoui",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:L.settingMode};console.log(I,"shareContent");const w=JSON.stringify(I),Q=La.deflate(w,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(Q),X=F6(U),[re]=await Me(navigator.clipboard.writeText(`我分享了一个[应用布局优化]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: -${X}`));if(re){l.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("复制")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),negativeText:"确定"});return}else l.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("好耶w,复制")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(L.name,L.applicationName)])," ",M("分享口令成功了~")]),y("p",null,[M("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),y("p",null,[M("分享口令导入入口位于")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用布局优化- 从分享口令导入")])," ",M("。")])]),positiveText:"确定"})}},_=(N,T)=>{N.ruleMode==="module"&&l.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>y("p",null,[M("模块已对")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(N.name,N.applicationName)])," ",M("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})},F=async(N,T,L)=>{const R=l.create({title:`想${L?"开启":"关闭"}该应用的应用布局优化吗?`,type:"warning",preset:"dialog",content:()=>y("p",null,[M("即将"),L?"开启":"关闭",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(N.name,N.applicationName)])," ",M("的应用布局优化适配规则。确定要继续吗?")]),positiveText:"确定",negativeText:"我再想想",onPositiveClick:async()=>{R.loading=!0,u.autoUISettingConfig[N.name]?u.autoUISettingConfig[N.name].enable=L:u.autoUISettingConfig[N.name]={name:N.name,enable:L};const[I,w]=await Me(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:N.name,action:L?"enable":"disable"}}));I?(l.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loading=!1):(l.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,操作成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),R.loading=!1,u.updateMergeRuleList())}})},P=async()=>{if(h.value){const[N,T]=await Me(h.value.openDrawer());if(N)console.log("操作取消:",N);else{u.customConfigAutoUIList[T.name]={name:T.name,enable:!0,...T!=null&&T.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...T!=null&&T.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...T!=null&&T.modePayload.hasOwnProperty("activityRule")?{activityRule:T==null?void 0:T.modePayload.activityRule}:{},...T!=null&&T.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:T==null?void 0:T.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[T.name]={name:T.name,enable:!0};const[L,R]=await Me(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:T.name,action:"enable"}}));L?(l.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),T.loadingCallback&&T.loadingCallback()):(l.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(T.name,n.installedAppNameList[T.name]||u.applicationName[T.name])])," ",M("的应用配置添加成功了OwO~应用布局优化仅在应用全屏场景下生效,如果应用添加后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),T.loadingCallback&&T.loadingCallback(),T.closeCallback&&T.closeCallback())}}},z=async(N,T)=>{if(f&&f.value){const[L,R]=await Me(f.value.openDrawer(N));if(L)console.log("操作取消:",L);else{u.customConfigAutoUIList[N.name]?(u.customConfigAutoUIList[N.name].enable=!0,u.customConfigAutoUIList[N.name].name=N.name,R!=null&&R.modePayload.hasOwnProperty("activityRule")&&(u.customConfigAutoUIList[N.name].activityRule=R==null?void 0:R.modePayload.activityRule),R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")&&(u.customConfigAutoUIList[N.name].skippedActivityRule=R==null?void 0:R.modePayload.skippedActivityRule),R!=null&&R.modePayload.hasOwnProperty("optimizeWebView")&&(u.customConfigAutoUIList[N.name].optimizeWebView=R==null?void 0:R.modePayload.optimizeWebView),R!=null&&R.modePayload.hasOwnProperty("skippedAppConfigChange")&&(u.customConfigAutoUIList[N.name].skippedAppConfigChange=R==null?void 0:R.modePayload.skippedAppConfigChange)):u.customConfigAutoUIList[N.name]={name:N.name,enable:!0,...R!=null&&R.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...R!=null&&R.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...R!=null&&R.modePayload.hasOwnProperty("activityRule")?{activityRule:R==null?void 0:R.modePayload.activityRule}:{},...R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:R==null?void 0:R.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[N.name]?u.autoUISettingConfig[N.name].enable=!0:u.autoUISettingConfig[N.name]={name:N.name,enable:!0},console.log("loadingCallback:",R.loadingCallback);const[I,w]=await Me(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:N.name,action:"enable"}}));I?(l.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(l.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w,")," ",y("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(N.name,N.applicationName)])," ",M("的应用配置更新成功了OwO~,如果应用更新后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},B=It({UNDEFINED_VIEW_POLICY:{type:"default",color:"",name:"空白规则"},VIEW_POLICY_DEFAULT:{type:"success",color:"",name:"全局缩放",onClick(N,T){}},VIEW_POLICY_STRETCH:{type:"info",color:"",name:"全局拉伸",onClick(N,T){}},VIEW_POLICY_AUTO_COLUMNS:{type:"warning",color:"",name:"全局栅格",onClick(N,T){}},VIEW_POLICY_FLOAT:{type:"error",color:"",name:"全局浮动",onClick(N,T){}},CUSTOM_VIEW_POLICY:{type:"",color:"#8a2be2",name:"精确适配",onClick(N,T){}}}),j=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:N=>{j.page=N},onUpdatePageSize:N=>{j.pageSize=N,j.page=1}}),V=({focused:N,checked:T})=>{const L={};return T?(L.background="#2080f0",N&&(L.boxShadow="0 0 0 2px #2080f040")):(L.background="#d03050",N&&(L.boxShadow="0 0 0 2px #d0305040")),L};function K(){return[{title:"应用名称",width:250,key:"name",render(N,T){return y("div",null,[N.applicationName&&y("p",null,[N.applicationName]),N.name&&y("p",null,[y("span",{class:{hidden:!N.applicationName}},[M("(")]),N.name,y("span",{class:{hidden:!N.applicationName}},[M(")")])])])}},{title:"规则来源",key:"ruleMode",render(N,T){const L={icon:N.ruleMode==="custom"?ub:S6};if(N.ruleMode==="custom"){const R=[{label:"分享自定义规则",key:"shareCustomRule",icon:g(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:g(g9)}];return y(at("n-dropdown"),{onSelect:(I,w)=>k(I,w,N),size:"large",trigger:"click",options:R},{default:()=>[y(at("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[M("自定义规则")],...L})]})}return y(at("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>_(N)},{default:()=>[M("模块规则")],...L})}},{title:"WebView优化",minWidth:110,key:"isOptimizeWebView",render(N,T){var L;return(L=N.autoUIRule)!=null&&L.optimizeWebView?y(at("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[M("已启用")]}):y(at("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[M("未启用")]})}},{title:"布局规则",key:"settingMode",render(N,T){const L={icon:sb};return y(at("n-button"),{size:"small",strong:!0,dashed:!0,type:B[N.settingMode].type,color:B[N.settingMode].color,onClick:()=>z(N)},{default:()=>[B[N.settingMode].name],...L})}},{title:"操作",minWidth:100,key:"setting",render(N,T){const L={checked:()=>y("span",null,[M("开启")]),unchecked:()=>y("span",null,[M("关闭")])},R=I=>I.settingRule&&I.settingRule.hasOwnProperty("enable")?I.settingRule.enable:I.autoUIRule&&I.autoUIRule.hasOwnProperty("enable")?I.autoUIRule.enable:!0;return y(at("n-switch"),{railStyle:V,onUpdateValue:I=>F(N,T,I),size:"medium",value:R&&R(N)},L)}}]}return(N,T)=>{const L=at("n-input-group"),R=at("n-card"),I=at("n-data-table");return _e(),De("main",vq,[O("div",bq,[O("div",xq,[T[9]||(T[9]=O("h3",{class:xe("text-base font-semibold leading-7")},[O("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r + )`}},"应用横屏布局")],-1)),I("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用横屏布局,优化应用在横屏下的体验。 ",2)])]),C(y,{size:"small"},{default:Z(()=>[S(n).skipConfirm.patchModeAlert?Ke("",!0):(Me(),At(L,{key:0,type:"info",class:"mb-3",closable:"",onClose:R[0]||(R[0]=()=>{S(n).skipConfirm.patchModeAlert=!0})},{default:Z(()=>R[13]||(R[13]=[M(" 由于小米系统优化不佳的原因,大量的应用适配规则可能导致系统出现卡顿、掉帧等问题,建议老机型可以前往开启模块的定制模式,详情可以前往模块设置中了解。 ")])),_:1})),I("div",gq,[C(S(Ft),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(r).loading,onClick:G},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(p9))]),_:1})]),default:Z(()=>[R[14]||(R[14]=M(" 添加应用 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(r).loading,onClick:R[1]||(R[1]=()=>k())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(d9))]),_:1})]),default:Z(()=>[R[15]||(R[15]=M(" 刷新应用列表 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(r).loading||l.value,onClick:R[2]||(R[2]=()=>z())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(m9))]),_:1})]),default:Z(()=>[R[16]||(R[16]=M(" 热重载应用数据 "))]),_:1},8,["loading"]),S(r).isPatchMode?(Me(),At(S(Ft),{key:0,class:"mb-3 mr-3",type:"error",loading:S(n).loading||S(r).loading||P.value,onClick:R[3]||(R[3]=()=>A())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(XW))]),_:1})]),default:Z(()=>[R[17]||(R[17]=M(" 生成定制应用数据 "))]),_:1},8,["loading"])):Ke("",!0),C(S(Ft),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(r).loading||S(o).loading.value,onClick:R[4]||(R[4]=K=>E())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(c9))]),_:1})]),default:Z(()=>[R[18]||(R[18]=M(" 获取已安装应用名称 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(r).loading||a.value,onClick:R[5]||(R[5]=K=>_())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(ld))]),_:1})]),default:Z(()=>[R[19]||(R[19]=M(" 从分享口令导入 "))]),_:1},8,["loading"])]),I("div",vq,[C(S(Ft),{class:"mb-3 mr-3",type:S(r).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(r).loading,secondary:"",onClick:w},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[S(r).filterInstalledApps?(Me(),At(S(db),{key:0})):(Me(),At(S(f9),{key:1}))]),_:1})]),default:Z(()=>[M(" "+Je(S(r).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[6]||(R[6]=()=>Vv())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>R[20]||(R[20]=[I("img",{src:F9},null,-1)])),_:1})]),default:Z(()=>[R[21]||(R[21]=M(" 应用抽屉 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[7]||(R[7]=()=>Nv())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>R[22]||(R[22]=[I("img",{src:sd},null,-1)])),_:1})]),default:Z(()=>[R[23]||(R[23]=M(" 超级小爱 "))]),_:1},8,["loading"])]),I("div",bq,[C(ne,null,{default:Z(()=>[C(S(rn),{size:"large",clearable:"",value:S(r).searchKeyWord,"onUpdate:value":R[8]||(R[8]=K=>S(r).searchKeyWord=K),ref_key:"searchKeyWordInput",ref:s,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),C(S(Ft),{size:"large",type:"primary",onClick:R[9]||(R[9]=()=>{var K;(K=s.value)==null||K.blur()})},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(h9))]),_:1})]),default:Z(()=>[R[24]||(R[24]=M(" 搜索 "))]),_:1}),C(S(Ft),{size:"large",bordered:"",onClick:R[10]||(R[10]=()=>{S(r).searchKeyWord=""})},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(v9))]),_:1})]),default:Z(()=>[R[25]||(R[25]=M(" 清空 "))]),_:1})]),_:1})])]),_:1}),C(S(Zm),{ref_key:"embeddedTableRef",ref:b,loading:S(n).loading||S(r).loading,columns:S(g),class:"mt-3",data:S(r).filterMergeRuleList,pagination:F},null,8,["loading","columns","data","pagination"])]),C(y9,{modelValue:v.value,"onUpdate:modelValue":R[11]||(R[11]=K=>v.value=K),errorLogging:S(r).errorLogging},null,8,["modelValue","errorLogging"]),C(Oh,{ref_key:"addEmbeddedApp",ref:u,type:"add",title:"添加应用"},null,512),C(Oh,{ref_key:"updateEmbeddedApp",ref:d,type:"update",title:"更新应用"},null,512)],64)}}}),Lh=ye({__name:"AutoUIAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=$(null),r=$(null),i=e,a=$(!1),l=Ct(),s=m6(),u=ui(),d=D(()=>({theme:l.isDarkMode?to:Vt})),{message:c,modal:h}=ao(["message","modal"],{configProviderProps:d});let f,p;const g=[{label:"空白规则",key:"UNDEFINED_VIEW_POLICY"},{label:"全局缩放[*:0]",key:"VIEW_POLICY_DEFAULT",rule:"*:0"},{label:"全局拉伸[*:1]",key:"VIEW_POLICY_STRETCH",rule:"*:1"},{label:"全局栅格[*:2]",key:"VIEW_POLICY_AUTO_COLUMNS",rule:"*:2"},{label:"全局浮动[*:6]",key:"VIEW_POLICY_FLOAT",rule:"*:6"},{label:"精确适配",key:"CUSTOM_VIEW_POLICY"}],v=$(g[0]),b=$(""),x=$(""),E=$(),w=$(!1),k=$(!1),_=$(),F=$({openDrawer:R=>new Promise((L,ne)=>{var y,K,U,ue;if(i.type==="update"&&!R){ne(new Error("更新模式下必须传入初始化参数")),c.error("初始化参数不能为空");return}if(f=L,p=ne,i.type==="add"&&(_.value="add",X.value="",b.value="",v.value=g[0],x.value="",k.value=!1,w.value=!0),i.type==="update"&&R){switch(_.value="update",X.value=R.name,E.value=R.ruleMode,b.value=((y=R.autoUIRule)==null?void 0:y.activityRule)||"",b.value){case"":{v.value=g[0];break}case"*:0":{v.value=g[1];break}case"*:1":{v.value=g[2];break}case"*:2":{v.value=g[3];break}case"*:6":{v.value=g[4];break}default:{v.value=g[5];break}}x.value=((K=R.autoUIRule)==null?void 0:K.skippedActivityRule)||"",k.value=((U=R.autoUIRule)==null?void 0:U.skippedAppConfigChange)||!1,w.value=((ue=R.autoUIRule)==null?void 0:ue.optimizeWebView)||!1}a.value=!0}),closeDrawer:()=>{a.value=!1,p("Drawer closed without submission")}}),P=(R,L)=>{v.value=L,b.value=L.rule||""},z=({focused:R,checked:L})=>{const ne={};return L?(ne.background="#2080f0",R&&(ne.boxShadow="0 0 0 2px #2080f040")):(ne.background="#d03050",R&&(ne.boxShadow="0 0 0 2px #d0305040")),ne},A=R=>{const L=document.querySelector(".n-drawer-content");L instanceof HTMLElement&&(u.info("resizeDrawerContent",R),L.style.height=R?"calc(100% + 200px)":"100%")},G=R=>{var L,ne;R==="currentActivityRuleRef"&&(A(!0),(L=r.value)==null||L.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&(A(!0),(ne=n.value)==null||ne.$el.scrollIntoView({behavior:"smooth",block:"start"}))},H=R=>{var L,ne;R==="currentActivityRuleRef"&&(A(!1),(L=r.value)==null||L.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&(A(!1),(ne=n.value)==null||ne.$el.scrollIntoView({behavior:"smooth",block:"start"}))},X=$(""),N=$(""),T=async()=>{if(!X.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>C("p",null,[M("噫?应用包名不能为空(敲")])});return}if(i.type==="add"&&s.allPackageName.has(X.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>C("p",null,[M("噫?这个应用包名已经存在列表中了(敲")])});return}O.value=!0;const R=()=>{O.value=!1,a.value=!1},L=()=>{O.value=!1},ne={name:X.value,modePayload:{optimizeWebView:w.value,skippedAppConfigChange:k.value,...v.value.key!=="UNDEFINED_VIEW_POLICY"&&b.value?{activityRule:b.value}:{},...b.value&&x.value?{skippedActivityRule:x.value}:{}},loadingCallback:L,closeCallback:R};h.create({title:"确认应用布局优化规则吗?",type:"warning",preset:"dialog",content:()=>C("p",null,[M("应用布局优化的规则仅在应用横屏全屏场景下才会生效,建议将应用的横屏配置修改为")," ",C("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("全屏")]),M(",规则效果以应用个体差异而异,建议多多尝试。继续更新将会被更替为")," ",C("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M(",且该应用规则不再随模块版本更新,如后续需要改回")," ",C("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("模块规则")])," ",M("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定应用",negativeText:"我再想想",onPositiveClick:async()=>{f(ne)},onNegativeClick(){L()},onMaskClick(){L()},onClose(){L()}})},O=$(!1);return $(0),t({openDrawer:F.value.openDrawer}),(R,L)=>{const ne=at("n-input-group-label"),y=at("n-input"),K=at("n-input-group"),U=at("n-tag"),ue=at("n-alert"),se=at("n-button"),Fe=at("n-dropdown"),pe=at("n-card"),fe=at("n-switch"),Ce=at("n-drawer-content"),ee=at("n-drawer");return Me(),De(ft,null,[Cs(R.$slots,"default",qh(n3({openDrawer:F.value.openDrawer}))),C(ee,{show:a.value,"onUpdate:show":L[12]||(L[12]=q=>a.value=q),width:S(l).windowWidth>=640?"450px":"100%",placement:"right"},{default:Z(()=>[C(Ce,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:i.title,closable:""},{footer:Z(()=>[C(se,{type:"info",loading:O.value,"onUpdate:loading":L[10]||(L[10]=q=>O.value=q),onClick:L[11]||(L[11]=()=>T())},{default:Z(()=>L[23]||(L[23]=[M(" 提交 ")])),_:1},8,["loading"])]),default:Z(()=>[C(K,{class:xe(S(l).MIOSVersion&&S(l).MIOSVersion>=2?"":"mb-5")},{default:Z(()=>[C(ne,{size:"large"},{default:Z(()=>L[13]||(L[13]=[M("应用包名")])),_:1}),C(y,{size:"large",status:N.value,value:X.value,"onUpdate:value":L[0]||(L[0]=q=>X.value=q),"allow-input":q=>ab(q),readonly:i.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1},8,["class"]),E.value==="custom"?(Me(),At(ue,{key:0,type:"info",class:"mb-2"},{default:Z(()=>[L[16]||(L[16]=M(" 当前应用已被 ")),C(U,{bordered:!1,type:"info"},{default:Z(()=>L[14]||(L[14]=[M("自定义规则")])),_:1}),L[17]||(L[17]=M(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),C(U,{bordered:!1,type:"info"},{default:Z(()=>L[15]||(L[15]=[M("自定义规则")])),_:1}),L[18]||(L[18]=M(" 。 "))]),_:1})):Ke("",!0),C(pe,{bordered:!1,title:"应用布局优化规则",size:"small"},{default:Z(()=>[C(Fe,{value:v.value,"onUpdate:value":L[1]||(L[1]=q=>v.value=q),size:"large",trigger:"click",options:g,onSelect:P},{default:Z(()=>[C(se,{block:"",type:"info",dashed:""},{default:Z(()=>[M(Je(v.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),v.value.key==="CUSTOM_VIEW_POLICY"?(Me(),At(pe,{key:1,bordered:!1,title:"自定义应用布局优化规则",size:"small"},{default:Z(()=>[C(K,null,{default:Z(()=>[C(y,{"display-directive":"show",ref_key:"currentActivityRuleRef",ref:r,onFocus:L[2]||(L[2]=()=>G("currentActivityRuleRef")),onBlur:L[3]||(L[3]=()=>H("currentActivityRuleRef")),"allow-input":q=>UG(q),type:"textarea",autosize:{minRows:3,maxRows:3},value:b.value,"onUpdate:value":L[4]||(L[4]=q=>b.value=q),placeholder:"请输入自定义应用布局优化规则"},null,8,["allow-input","value"])]),_:1})]),_:1})):Ke("",!0),C(pe,{bordered:!1,title:"跳过应用布局优化的Activity规则",size:"small"},{default:Z(()=>[C(K,null,{default:Z(()=>[C(y,{"display-directive":"show",ref_key:"currentSkippedActivityRuleRef",ref:n,onFocus:L[5]||(L[5]=()=>G("currentSkippedActivityRuleRef")),onBlur:L[6]||(L[6]=()=>H("currentSkippedActivityRuleRef")),"allow-input":q=>KG(q),type:"textarea",autosize:{minRows:3,maxRows:3},value:x.value,"onUpdate:value":L[7]||(L[7]=q=>x.value=q),placeholder:"请输入跳过应用布局优化的Activity规则"},null,8,["allow-input","value"])]),_:1})]),_:1}),C(pe,{bordered:!1,title:"优化WebView页面",size:"small"},{default:Z(()=>[C(fe,{"rail-style":z,value:w.value,"onUpdate:value":L[8]||(L[8]=q=>w.value=q),size:"large"},{checked:Z(()=>L[19]||(L[19]=[M("优化WebView页面")])),unchecked:Z(()=>L[20]||(L[20]=[M("不优化WebView页面")])),_:1},8,["value"])]),_:1}),C(pe,{bordered:!1,title:"跳过应用配置改变",size:"small"},{default:Z(()=>[C(fe,{"rail-style":z,value:k.value,"onUpdate:value":L[9]||(L[9]=q=>k.value=q),size:"large"},{checked:Z(()=>L[21]||(L[21]=[M("跳过应用配置改变")])),unchecked:Z(()=>L[22]||(L[22]=[M("不跳过应用配置改变")])),_:1},8,["value"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function yq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt}));ao(["message","modal"],{configProviderProps:t});const o=()=>{},n=()=>{};return ut(()=>{}),{add:o,update:n}}const Cq={class:"autoui-view mb-10"},wq={class:"mt-3"},Sq={class:"mb-3 px-4 sm:px-0"},Fq={class:"flex flex-wrap"},Eq={class:"flex flex-wrap"},kq=ye({__name:"AutoUIView",setup(e){const t=$(null),o=X(),n=Ct(),r=lb(),i=D(()=>({theme:n.isDarkMode?to:Vt})),{message:a,modal:l,notification:s}=ao(["message","modal","notification"],{configProviderProps:i}),u=m6(),d=$(!1),c=$(!1);yq();const h=$(null),f=$(null);WH(),ui(),Tv();const p=$("");function g(N){return()=>m(Kt,null,{default:()=>m(N)})}const v=async()=>{await n.getAndroidApplicationPackageNameList(),await u.initDefault()},b=async()=>{const[N,T]=await _e(r.getList());N&&l.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>C("p",null,[M("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),T&&l.create({title:"获取成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},x=()=>{u.filterInstalledApps=!u.filterInstalledApps},E=async()=>{c.value=!0,await v();const[N,T]=await _e(Jd("miui_auto_ui"));N&&(l.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),c.value=!1),T&&(l.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),c.value=!1)},w=async()=>{p.value="";const[,N]=await _e(new Promise((T,O)=>{l.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:p.value,"onUpdate:value":R=>{p.value=R},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){T("positiveClick")}})}));if(N){d.value=!0;const T=p.value,O=u6(T);if(!(O!=null&&O.length)){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,解析")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("口令发生错误,无法正常解析。")]),negativeText:"确定"}),d.value=!1;return}console.log(O,"getBase64String");try{const R=E6(O),L=La.inflate(R,{to:"string"}),ne=JSON.parse(L);if(ne.type!=="autoui"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,该")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("不适用于应用布局优化。")]),negativeText:"确定"}),d.value=!1;return}if(ne.device==="pad"&&n.deviceCharacteristics!=="tablet"||ne.device==="fold"&&n.deviceCharacteristics==="tablet"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),d.value=!1;return}u.customConfigAutoUIList[ne.name]=ne.rules,u.autoUISettingConfig[ne.name]={name:ne.name,enable:!0};const[y,K]=await _e(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:ne.name,action:"enable"}}));y?(l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),d.value=!1):(u.updateMergeRuleList(),await v(),d.value=!1,l.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(ne.name,n.installedAppNameList[ne.name]||u.applicationName[ne.name])])," ",M("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]),positiveText:"确定"}))}catch(R){console.log(R,"error"),l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),d.value=!1}}},k=async(N,T,O,R)=>{if(N==="cleanCustomRule"){const L=l.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>C("p",null,[M("清除自定义规则后,你对")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(O.name,O.applicationName)])," ",M("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("模块规则")])," ",M(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{L.loading=!0,u.customConfigAutoUIList[O.name]&&delete u.customConfigAutoUIList[O.name];const[ne,y]=await _e(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config")}));ne?(l.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),L.loading=!1):(l.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),L.loading=!1,u.updateMergeRuleList())}})}if(N==="shareCustomRule"){const L={name:O.name,cmpt:1,rules:{name:O.name,...O.autoUIRule},type:"autoui",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:O.settingMode};console.log(L,"shareContent");const ne=JSON.stringify(L),y=La.deflate(ne,{level:9,memLevel:9,windowBits:15}),K=new Uint8Array(y),U=F6(K),[ue]=await _e(navigator.clipboard.writeText(`我分享了一个[应用布局优化]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +${U}`));if(ue){l.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("复制")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(O.name,O.applicationName)])," ",M("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),negativeText:"确定"});return}else l.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("好耶w,复制")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(O.name,O.applicationName)])," ",M("分享口令成功了~")]),C("p",null,[M("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("自定义规则")])," ",M("长度过大。")]),C("p",null,[M("分享口令导入入口位于")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用布局优化- 从分享口令导入")])," ",M("。")])]),positiveText:"确定"})}},_=(N,T)=>{N.ruleMode==="module"&&l.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>C("p",null,[M("模块已对")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(N.name,N.applicationName)])," ",M("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})},F=async(N,T,O)=>{const R=l.create({title:`想${O?"开启":"关闭"}该应用的应用布局优化吗?`,type:"warning",preset:"dialog",content:()=>C("p",null,[M("即将"),O?"开启":"关闭",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(N.name,N.applicationName)])," ",M("的应用布局优化适配规则。确定要继续吗?")]),positiveText:"确定",negativeText:"我再想想",onPositiveClick:async()=>{R.loading=!0,u.autoUISettingConfig[N.name]?u.autoUISettingConfig[N.name].enable=O:u.autoUISettingConfig[N.name]={name:N.name,enable:O};const[L,ne]=await _e(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:N.name,action:O?"enable":"disable"}}));L?(l.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loading=!1):(l.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,操作成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),R.loading=!1,u.updateMergeRuleList())}})},P=async()=>{if(h.value){const[N,T]=await _e(h.value.openDrawer());if(N)console.log("操作取消:",N);else{u.customConfigAutoUIList[T.name]={name:T.name,enable:!0,...T!=null&&T.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...T!=null&&T.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...T!=null&&T.modePayload.hasOwnProperty("activityRule")?{activityRule:T==null?void 0:T.modePayload.activityRule}:{},...T!=null&&T.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:T==null?void 0:T.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[T.name]={name:T.name,enable:!0};const[O,R]=await _e(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:T.name,action:"enable"}}));O?(l.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),T.loadingCallback&&T.loadingCallback()):(l.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(T.name,n.installedAppNameList[T.name]||u.applicationName[T.name])])," ",M("的应用配置添加成功了OwO~应用布局优化仅在应用全屏场景下生效,如果应用添加后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),T.loadingCallback&&T.loadingCallback(),T.closeCallback&&T.closeCallback())}}},z=async(N,T)=>{if(f&&f.value){const[O,R]=await _e(f.value.openDrawer(N));if(O)console.log("操作取消:",O);else{u.customConfigAutoUIList[N.name]?(u.customConfigAutoUIList[N.name].enable=!0,u.customConfigAutoUIList[N.name].name=N.name,R!=null&&R.modePayload.hasOwnProperty("activityRule")&&(u.customConfigAutoUIList[N.name].activityRule=R==null?void 0:R.modePayload.activityRule),R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")&&(u.customConfigAutoUIList[N.name].skippedActivityRule=R==null?void 0:R.modePayload.skippedActivityRule),R!=null&&R.modePayload.hasOwnProperty("optimizeWebView")&&(u.customConfigAutoUIList[N.name].optimizeWebView=R==null?void 0:R.modePayload.optimizeWebView),R!=null&&R.modePayload.hasOwnProperty("skippedAppConfigChange")&&(u.customConfigAutoUIList[N.name].skippedAppConfigChange=R==null?void 0:R.modePayload.skippedAppConfigChange)):u.customConfigAutoUIList[N.name]={name:N.name,enable:!0,...R!=null&&R.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...R!=null&&R.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...R!=null&&R.modePayload.hasOwnProperty("activityRule")?{activityRule:R==null?void 0:R.modePayload.activityRule}:{},...R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:R==null?void 0:R.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[N.name]?u.autoUISettingConfig[N.name].enable=!0:u.autoUISettingConfig[N.name]={name:N.name,enable:!0},console.log("loadingCallback:",R.loadingCallback);const[L,ne]=await _e(bl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:N.name,action:"enable"}}));L?(l.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(l.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w,")," ",C("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Eo(N.name,N.applicationName)])," ",M("的应用配置更新成功了OwO~,如果应用更新后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},A=It({UNDEFINED_VIEW_POLICY:{type:"default",color:"",name:"空白规则"},VIEW_POLICY_DEFAULT:{type:"success",color:"",name:"全局缩放",onClick(N,T){}},VIEW_POLICY_STRETCH:{type:"info",color:"",name:"全局拉伸",onClick(N,T){}},VIEW_POLICY_AUTO_COLUMNS:{type:"warning",color:"",name:"全局栅格",onClick(N,T){}},VIEW_POLICY_FLOAT:{type:"error",color:"",name:"全局浮动",onClick(N,T){}},CUSTOM_VIEW_POLICY:{type:"",color:"#8a2be2",name:"精确适配",onClick(N,T){}}}),G=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:N=>{G.page=N},onUpdatePageSize:N=>{G.pageSize=N,G.page=1}}),H=({focused:N,checked:T})=>{const O={};return T?(O.background="#2080f0",N&&(O.boxShadow="0 0 0 2px #2080f040")):(O.background="#d03050",N&&(O.boxShadow="0 0 0 2px #d0305040")),O};function X(){return[{title:"应用名称",width:250,key:"name",render(N,T){return C("div",null,[N.applicationName&&C("p",null,[N.applicationName]),N.name&&C("p",null,[C("span",{class:{hidden:!N.applicationName}},[M("(")]),N.name,C("span",{class:{hidden:!N.applicationName}},[M(")")])])])}},{title:"规则来源",key:"ruleMode",render(N,T){const O={icon:N.ruleMode==="custom"?ub:S6};if(N.ruleMode==="custom"){const R=[{label:"分享自定义规则",key:"shareCustomRule",icon:g(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:g(g9)}];return C(at("n-dropdown"),{onSelect:(L,ne)=>k(L,ne,N),size:"large",trigger:"click",options:R},{default:()=>[C(at("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[M("自定义规则")],...O})]})}return C(at("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>_(N)},{default:()=>[M("模块规则")],...O})}},{title:"WebView优化",minWidth:110,key:"isOptimizeWebView",render(N,T){var O;return(O=N.autoUIRule)!=null&&O.optimizeWebView?C(at("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[M("已启用")]}):C(at("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[M("未启用")]})}},{title:"布局规则",key:"settingMode",render(N,T){const O={icon:sb};return C(at("n-button"),{size:"small",strong:!0,dashed:!0,type:A[N.settingMode].type,color:A[N.settingMode].color,onClick:()=>z(N)},{default:()=>[A[N.settingMode].name],...O})}},{title:"操作",minWidth:100,key:"setting",render(N,T){const O={checked:()=>C("span",null,[M("开启")]),unchecked:()=>C("span",null,[M("关闭")])},R=L=>L.settingRule&&L.settingRule.hasOwnProperty("enable")?L.settingRule.enable:L.autoUIRule&&L.autoUIRule.hasOwnProperty("enable")?L.autoUIRule.enable:!0;return C(at("n-switch"),{railStyle:H,onUpdateValue:L=>F(N,T,L),size:"medium",value:R&&R(N)},O)}}]}return(N,T)=>{const O=at("n-input-group"),R=at("n-card"),L=at("n-data-table");return Me(),De("main",Cq,[I("div",wq,[I("div",Sq,[T[9]||(T[9]=I("h3",{class:xe("text-base font-semibold leading-7")},[I("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r @@ -4189,7 +4189,7 @@ ${X}`));if(re){l.create({title:"复制分享口令失败",type:"error",preset:"d rgb(135, 148, 255) 70.98%,\r rgb(60, 112, 255) 91.35%,\r rgb(60, 112, 255) 110.17%\r - )`}},"应用布局优化")],-1)),O("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用布局优化,自动优化应用内图文布局,提升视觉体验。 ",2)])]),y(R,{size:"small"},{default:Z(()=>[O("div",yq,[y(S(Ft),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(u).loading,onClick:P},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(p9))]),_:1})]),default:Z(()=>[T[10]||(T[10]=M(" 添加应用 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(u).loading,onClick:T[0]||(T[0]=()=>v())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(d9))]),_:1})]),default:Z(()=>[T[11]||(T[11]=M(" 刷新应用列表 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(u).loading,onClick:T[1]||(T[1]=()=>E())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(m9))]),_:1})]),default:Z(()=>[T[12]||(T[12]=M(" 热重载应用数据 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(u).loading||S(r).loading.value,onClick:T[2]||(T[2]=w=>b())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(c9))]),_:1})]),default:Z(()=>[T[13]||(T[13]=M(" 获取已安装应用名称 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(u).loading||d.value,onClick:T[3]||(T[3]=w=>C())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(ld))]),_:1})]),default:Z(()=>[T[14]||(T[14]=M(" 从分享口令导入 "))]),_:1},8,["loading"])]),O("div",Cq,[y(S(Ft),{class:"mb-3 mr-3",type:S(u).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(u).loading,secondary:"",onClick:x},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[S(u).filterInstalledApps?(_e(),At(S(db),{key:0})):(_e(),At(S(f9),{key:1}))]),_:1})]),default:Z(()=>[M(" "+nt(S(u).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(u).loading,onClick:T[4]||(T[4]=()=>Vv())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>T[15]||(T[15]=[O("img",{src:F9},null,-1)])),_:1})]),default:Z(()=>[T[16]||(T[16]=M(" 应用抽屉 "))]),_:1},8,["loading"]),y(S(Ft),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(u).loading,onClick:T[5]||(T[5]=()=>Nv())},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>T[17]||(T[17]=[O("img",{src:sd},null,-1)])),_:1})]),default:Z(()=>[T[18]||(T[18]=M(" 超级小爱 "))]),_:1},8,["loading"])]),y(L,null,{default:Z(()=>[y(S(rn),{size:"large",clearable:"",value:S(u).searchKeyWord,"onUpdate:value":T[6]||(T[6]=w=>S(u).searchKeyWord=w),ref_key:"searchKeyWordInput",ref:t,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),y(S(Ft),{size:"large",type:"primary",onClick:T[7]||(T[7]=()=>{var w;(w=t.value)==null||w.blur()})},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(h9))]),_:1})]),default:Z(()=>[T[19]||(T[19]=M(" 搜索 "))]),_:1}),y(S(Ft),{size:"large",bordered:"",onClick:T[8]||(T[8]=()=>{S(u).searchKeyWord=""})},{icon:Z(()=>[y(S(Ut),null,{default:Z(()=>[y(S(v9))]),_:1})]),default:Z(()=>[T[20]||(T[20]=M(" 清空 "))]),_:1})]),_:1})]),_:1}),y(I,{loading:S(n).loading||S(u).loading,columns:S(o),class:"mt-3",data:S(u).filterMergeRuleList,pagination:j},null,8,["loading","columns","data","pagination"]),y(Lh,{ref_key:"addAutoUIApp",ref:h,type:"add",title:"添加应用"},null,512),y(Lh,{ref_key:"updateAutoUIApp",ref:f,type:"update",title:"更新应用"},null,512)])}}}),Sq="/images/icons/miui_content_extension_app.webp",Fq="/images/icons/win_play_mobile.webp",Hh="/images/apps/mi_theme.webp",Nh="/images/icons/aicr.png",Eq="/images/icons/google.png";function kq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(!1);function i(a){r.value=!0,a.OS2_PAD_EMBEDDED_APP_MANAGER?(e.ABTestInfo.OS2_PAD_EMBEDDED_APP_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("已成功参与OS2")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局 For Web UI")])," ",M("的Beta测试w。由于小米在OS2新开发的")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局")])," ",M("存在较多BUG,模块强制劫持了所有配置,仅能通过Web UI去调整应用横屏适配,在")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区")])," ",M("所做的相关修改会在重启后丢失。")]),y("p",null,[M("开发Hyper OS 2.0模块的Web UI真的消耗了我大量的个人时间和精力QwQ(特别是在小米的BUG加持下),如果对")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.Hyper_OS_DOT_BLACK_LIST_MANAGER?(e.ABTestInfo.Hyper_OS_DOT_BLACK_LIST_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("已成功参与Hyper OS")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("窗口控制器 For Web UI")])," ",M("的Beta测试w。该功能可能会随")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("小米云控")])," ",M("下发导致失效,失效时可以前往界面查看失效状态,并且选择")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("热重载应用配置")])," ",M("来恢复模块对窗口控制器的控制权。")]),y("p",null,[M("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_RADIO_MANAGER?(e.ABTestInfo.GAME_BOOSTER_RADIO_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("已成功参与")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("游戏显示布局 2.0")])," ",M("的Beta测试w。该功能调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。")]),y("p",null,[M("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_CUSTOM_RATIO?(e.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("已成功激活")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("游戏显示布局 2.0")])," ",M("的自定义游戏比例。自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封,激活该功能即认可并了解这些须知。")]),y("p",null,[M("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):n.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),r.value=!1}return{activateABTest:i,loading:r}}function _q(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(!1),i=async l=>{const[s,u]=await Me(pV(l?1:"null"));s?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=l},a=async()=>{const[l,s]=await Me(new Promise((u,d)=>{n.create({title:"想激活工作台模式吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("激活")," ",y("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("工作台模式")])," ",M("后需要设备重启才会生效~")]),y("p",null,[M("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{u("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(s){const[u,d]=await Me(dV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[c,h]=await Me(uV());if(c){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[f,p]=await Me(fV());if(f){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[g,v]=await Me(cV());if(g){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[b]=await Me(Hv());if(b){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}};return ut(async()=>{if(e.enabledMiuiDesktopMode){const[,l]=await Me(hV());Number(l)===1&&(r.value=!0)}}),{currentMiuiDktMode:r,changeMiuiDktMode:i,changeMiuiDesktopModeEnabled:a}}function Mq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(3),i=async l=>{if(l){const[s]=await Me(N4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Me(mV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!0}else{const[s]=await Me(N4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!1}},a=async l=>{const[s]=await Me(vV());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Me(bV(l));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});const[d]=await Me(xV(l));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"})};return ut(async()=>{if(e.isEnableShowNotificationIconNum){const[,l]=await Me(gV());if(l&&!Number.isNaN(Number(l))){const s=Number(l);r.value=s}}}),{currentNum:r,changeNum:a,changeEnableMode:i}}function Rq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt}));lo(["message","modal"],{configProviderProps:t});const o=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Me(yN());i&&(o.current=Number(i))},interval:null}),n=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Me(CN());i&&(n.current=Number(i))},interval:null}),r=i=>{i.interval&&(clearInterval(i.interval),i.interval=null),i.autoReload&&(i.interval=setInterval(()=>{i.reload()},i.timer*1e3))};return Et(()=>r(o)),Et(()=>r(n)),ut(async()=>{o.reload(),n.reload()}),Go(()=>{o.interval!==null&&clearInterval(o.interval),n.interval!==null&&clearInterval(n.interval)}),{qcomBatteryFg1RSocInfo:o,capacityRawInfo:n}}function zq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await Me(_N(a?1:0));if(l)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(a){const[u,d]=await Me(EN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w!隐藏手势提示线(小白条)成功,请知晓,隐藏手势提示线(小白条)的情况下,旋转建议提示按钮也将变成不可用的状态~")]),positiveText:"确定"}),r.value=1)}else{const[u,d]=await Me(kN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("好耶w!已经将手势提示线(小白条)调整为显示状态~")]),positiveText:"确定"}),r.value=0)}};return ut(async()=>{const[,a]=await Me(MN());Number(a)&&(r.value=1)}),{currentIsHideGestureLine:r,changeIsHideGestureLine:i}}function $q(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await Me(RN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Me(zN());Number(a)&&(r.value=1)}),{currentIsInVisibleMode:r,changeIsInvisibleMode:i}}function Pq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(!1),i=async a=>{const[l,s]=await Me(sN());if(l){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}if(a){const[u,d]=await Me(lN());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}}r.value=a};return ut(async()=>{if(e.MIOSVersion&&e.MIOSVersion>=2){const[,a]=await Me(uN());a==="true"&&(r.value=!0)}}),{status:r,change:i}}function Aq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$([]),i=D(()=>Array.isArray(r.value)&&r.value.length?r.value[0].supportedHdrTypes:[]),a=D(()=>r.value.map(u=>({...u,fps:Math.round(u.fps),alternativeRefreshRates:u.alternativeRefreshRates.map(d=>Math.round(d))}))),l=async u=>{n.create({title:"想应用该配置吗?",type:"info",preset:"dialog",content:()=>y("p",null,[M("应用后设备分辨率将配置为"),u.width,M("x"),u.height,M(",刷新率将配置为"),u.fps,M("Hz,在设备下次重启前将一直维持该配置,该功能可能受触控笔和其他第三方模块影响不一定生效,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。"),e.deviceCharacteristics==="tablet"&&y("span",null,[M("连接触控笔蓝牙期间,为了确保触控笔正常工作,系统也会强行重置该配置,断开触控笔蓝牙后需要重新配置,")]),M("确定要继续应用该配置么?")]),negativeText:"取消",positiveText:"确定",onPositiveClick(){s(u.id-1)}})},s=async u=>{const[d,c]=await Me(wV(u));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),c&&n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("已成功应用该分辨率及刷新率配置,在设备下次重启前将一直维持该配置,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。")]),negativeText:"确定"})};return ut(async()=>{const[u,d]=await Me(UN());u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),d&&(r.value=d)}),{displayModeList:r,supportHDRTypes:i,formatDisplayModeList:a,setDisplayMode:s,selectDisplayMode:l}}function Bq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(3),i=$(),a=async s=>{const[u,d]=await Me(PN(s));u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=s},l=async s=>{if(s){const[u,d]=await Me(j4());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}else{const[c,h]=await Me(KV(r.value));c?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"添加自启动成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("添加「鼠标光标样式」开机自启动配置成功,后续请通过模块 Web UI 修改「鼠标光标样式」,系统设置内的修改会在重启后失效~")]),positiveText:"确定"}),i.value=r.value)}}else{const[u,d]=await Me(j4());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"取消自启动成功",type:"success",preset:"dialog",content:()=>y("p",null,[M("取消「鼠标光标样式」开机自启动配置成功~")]),positiveText:"确定"}),i.value=void 0)}};return ut(async()=>{const[,s]=await Me(AN());s&&Number(s)&&(r.value=Number(s));const[,u]=await Me(UV());u&&Number(u)&&(i.value=Number(u))}),{currentMiuiCursorStyleType:r,changeMiuiCursorStyleType:a,currentAutoStartMiuiCursorStyleType:i,changeAutoStartMiuiCursorStyleType:l}}function Dq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await Me(BN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Me(DN());Number(a)&&(r.value=1)}),{currentMouseGestureNaturalscroll:r,changeMouseGestureNaturalscroll:i}}function Tq(){const e=St(),t=D(()=>({theme:e.isDarkMode?oo:Gt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await Me(Lv(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await Me(TN());Number(a)&&(r.value=Number(a))}),{changePointerSpeed:i,currentPointerSpeed:r}}const Iq={class:"setting"},Oq={class:"mt-3"},Lq={class:"px-3 sm:px-0"},Hq={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Nq={key:1,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Vq={key:2,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Wq={key:3,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Uq={key:4,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Kq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Gq={key:5,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Zq={key:6,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Xq={key:7,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Yq={key:8,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Qq={key:9,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Jq={key:10,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eZ={key:11,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tZ={key:12,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iZ={key:13,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},aZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sZ={key:14,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},uZ={key:0,class:"mt-2"},dZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},cZ={class:"mt-5"},fZ={key:15,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hZ={key:16,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pZ={key:0,class:"mt-2"},mZ={key:17,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gZ={key:0,class:"mt-2"},vZ={key:18,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bZ={key:0,class:"mt-2"},xZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},CZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},wZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},SZ={key:19,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},FZ={key:20,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},EZ={key:21,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},kZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},_Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},MZ={id:"gameModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},RZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zZ={key:22,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$Z={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},PZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},TZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},IZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},OZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},LZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},HZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},NZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},VZ={key:23,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},WZ={key:24,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jZ={key:25,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},UZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},KZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},GZ={key:26,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qZ={key:27,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},ZZ={key:28,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},XZ={key:29,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},YZ={class:"whitespace-pre"},QZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},JZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eX={key:30,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tX={class:"mr-3"},oX={class:"mr-3"},nX={class:"mr-3"},rX={key:31,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iX={key:0,class:"mr-3"},aX={key:1,class:"mr-3"},lX={key:2,class:"mr-3"},sX={key:3,class:"mr-3"},uX={key:32,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},dX={key:0},cX={key:33,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},fX={key:0},hX={key:34,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pX={key:35,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},mX={key:36,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gX={key:37,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vX={key:38,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bX={key:39,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},xX={key:40,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yX=ye({__name:"SettingsView",setup(e){const t=St(),o=Ns(),n=_q();Mq();const r=x9(),i=Rq(),a=Aq(),l=zq();$q();const s=Bq(),u=Dq(),d=Tq(),c=Pq(),{activateABTest:h,loading:f}=kq(),p=D(()=>({theme:t.isDarkMode?oo:Gt})),{message:g,modal:v}=lo(["message","modal"],{configProviderProps:p}),b=b9(),x=S9(),E=GH(),C=[{label:"跟随系统",key:"autoRhythm"},{label:"浅色模式",key:"lightMode"},{label:"深色模式",key:"dartMode"}],k=$([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]),_=D(()=>DR(k.value,"key")),F=I=>{x.currentFont=I},P=I=>{t.rhythmMode=I,I==="lightMode"&&(t.isDarkMode=!1),I==="dartMode"&&(t.isDarkMode=!0)},z=$(""),B=async()=>{const w=JSON.stringify({GAME_BOOSTER_CUSTOM_RATIO:!0}),Q=La.deflate(w,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(Q),X=F6(U);console.log(X,"base64String"),z.value="";const[re,he]=await Me(new Promise((Se,pe)=>{v.create({title:"请粘贴激活口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:z.value,"onUpdate:value":fe=>{z.value=fe},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴激活口令"}),positiveText:"确定提交",negativeText:"取消",onPositiveClick(){Se("positiveClick")}})}));if(he){f.value=!0;const Se=z.value,pe=u6(Se);if(!(pe!=null&&pe.length)){v.create({title:"导入激活口令失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("导入激活口令失败了QwQ,解析口令发生错误,无法正常解析。")]),negativeText:"确定"}),f.value=!1;return}try{const fe=E6(pe),we=La.inflate(fe,{to:"string"}),J=JSON.parse(we);h(J)}catch{v.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),f.value=!1}}},j=$(!1),V=async I=>{const[w]=await Me(FN(I?1:0));if(w){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法 "),I?"开启":"关闭",M(" 旋转建议提示按钮,详情请查看日志记录~")]),negativeText:"确定"});return}t.showRotationSuggestions=I},K=async I=>{qN(I?"whitelist":"blacklist").then(w=>{t.shamikoInfo.mode=I?"whitelist":"blacklist",v.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[I&&y("p",null,[M("好耶w,Shamiko的工作模式已成功切换为")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("白名单模式")])," "]),!I&&y("p",null,[M("好耶w,Shamiko的工作模式已成功切换为")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("黑名单模式")])," "])]),negativeText:"确定"})}).catch(w=>{v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法切换Shamiko的工作模式,详情请查看日志记录~")]),negativeText:"确定"})})},N=async(I,w,Q)=>{v.create({title:`获取${I}`,type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[M("确定要下载"),I,M("么?请注意核对部分应用的兼容性。"),Q==="system",Q==="revision",Q==="magisk"]),y("p",null,[M("下载地址:")]),y("p",null,[w])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${w}`)},onNegativeClick:()=>{}})},T=async I=>{const[w,Q]=await Me(new Promise((U,X)=>{v.create({title:I?"想切换为定制模式吗?":"想切换为完整模式吗?",type:"info",preset:"dialog",content:()=>y("div",null,[I&&y("p",null,[M("切换为")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("定制模式")])," ",M("后,模块会以您设备的整体应用情况")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修剪模块应用适配列表")])," ",M(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,后续每次更新模块或者安装新的应用后,建议前往")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局")])," ",M("重新")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M(",确定要继续吗?")]),!I&&y("p",null,[M("切换为")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完整模式")])," ",M("后,可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题,确定要继续吗?")])]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{U("positiveClick")},onNegativeClick:()=>{X("negativeClick")}})}));if(Q){j.value=!0;const[U]=await Me(iN());if(U){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法移除定制模式的配置项,详情请查看日志记录~")]),negativeText:"确定"}),j.value=!1;return}if(I){const[he]=await Me(rN());if(he){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法切换为定制模式,详情请查看日志记录~")]),negativeText:"确定"}),j.value=!1;return}o.isPatchMode=!0}else j.value=!1,o.isPatchMode=!1;await t.getAndroidApplicationPackageNameList();const[X,re]=await Me(xa({isPatchMode:o.isPatchMode,patchEmbeddedRulesListXML:ct(o.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(o.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(o.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(o.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(o.customConfigFixedOrientationList,"package",void 0),...t.MIOSVersion&&t.MIOSVersion>=2?{settingConfigXML:ct(o.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(o.systemEmbeddedSettingConfig,"setting","setting_rule")}}));X?(v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),o.isPatchMode=!o.isPatchMode,j.value=!1):(v.create({title:"操作成功",type:"success",preset:"dialog",content:()=>y("div",null,[I&&y("p",null,[M("好耶w,已成功切换为")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("定制模式")])," ",M(",模块已根据您设备当前的整体应用情况")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修剪模块应用适配列表")])," ",M(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,建议每次更新模块或者安装新的应用后,均需要在前往")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局")])," ",M("界面重新生成")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M("。")]),!I&&y("p",null,[M("好耶w,已成功切换为")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完整模式")])," ",M(",可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题。")])]),negativeText:"确定"}),j.value=!1,o.updateMergeRuleList())}},L=async I=>{const[w,Q]=await Me(new Promise((X,re)=>{v.create({title:I?"想开启游戏显示布局吗?":"想关闭游戏显示布局吗?",type:"info",preset:"dialog",content:()=>y("div",null,[y("p",null,[I?"开启":"关闭"," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("游戏显示布局")])," ",M("后需要设备重启才会生效~")]),I&&t.deviceCharacteristics==="tablet"&&t.MIOSVersion&&t.MIOSVersion>=2&&y("p",null,[M("从Hyper OS 2.0开始,小米平板需要搭配配套的")," ",y("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修改版平板/手机管家")])," ",M("才能使用游戏显示布局,详情请前往模块首页了解~")]),y("p",null,[M("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{X("positiveClick")},onNegativeClick:()=>{re("negativeClick")}})})),[U]=await Me(dN());if(U){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}if(I){const[X]=await Me(cN());if(X){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}}if(Q){const[X]=await Me(Hv());if(X){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>y("p",null,[M("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},R=({focused:I,checked:w})=>{const Q={};return w?(Q.background="#d03050",I&&(Q.boxShadow="0 0 0 2px #d0305040")):(Q.background="#2080f0",I&&(Q.boxShadow="0 0 0 2px #2080f040")),Q};return(I,w)=>{var J,G,Te,Ne;const Q=at("n-switch"),U=at("n-alert"),X=at("n-tag"),re=at("n-button"),he=at("n-dropdown"),Se=at("n-icon"),pe=at("n-slider"),fe=at("n-input-number"),we=at("n-watermark");return _e(),De("div",Iq,[O("div",Oq,[O("div",Lq,[w[55]||(w[55]=O("h3",{class:xe("text-base font-semibold leading-7")},[O("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r + )`}},"应用布局优化")],-1)),I("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用布局优化,自动优化应用内图文布局,提升视觉体验。 ",2)])]),C(R,{size:"small"},{default:Z(()=>[I("div",Fq,[C(S(Ft),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(u).loading,onClick:P},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(p9))]),_:1})]),default:Z(()=>[T[10]||(T[10]=M(" 添加应用 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(u).loading,onClick:T[0]||(T[0]=()=>v())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(d9))]),_:1})]),default:Z(()=>[T[11]||(T[11]=M(" 刷新应用列表 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(u).loading,onClick:T[1]||(T[1]=()=>E())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(m9))]),_:1})]),default:Z(()=>[T[12]||(T[12]=M(" 热重载应用数据 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(u).loading||S(r).loading.value,onClick:T[2]||(T[2]=ne=>b())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(c9))]),_:1})]),default:Z(()=>[T[13]||(T[13]=M(" 获取已安装应用名称 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(u).loading||d.value,onClick:T[3]||(T[3]=ne=>w())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(ld))]),_:1})]),default:Z(()=>[T[14]||(T[14]=M(" 从分享口令导入 "))]),_:1},8,["loading"])]),I("div",Eq,[C(S(Ft),{class:"mb-3 mr-3",type:S(u).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(u).loading,secondary:"",onClick:x},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[S(u).filterInstalledApps?(Me(),At(S(db),{key:0})):(Me(),At(S(f9),{key:1}))]),_:1})]),default:Z(()=>[M(" "+Je(S(u).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(u).loading,onClick:T[4]||(T[4]=()=>Vv())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>T[15]||(T[15]=[I("img",{src:F9},null,-1)])),_:1})]),default:Z(()=>[T[16]||(T[16]=M(" 应用抽屉 "))]),_:1},8,["loading"]),C(S(Ft),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(u).loading,onClick:T[5]||(T[5]=()=>Nv())},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>T[17]||(T[17]=[I("img",{src:sd},null,-1)])),_:1})]),default:Z(()=>[T[18]||(T[18]=M(" 超级小爱 "))]),_:1},8,["loading"])]),C(O,null,{default:Z(()=>[C(S(rn),{size:"large",clearable:"",value:S(u).searchKeyWord,"onUpdate:value":T[6]||(T[6]=ne=>S(u).searchKeyWord=ne),ref_key:"searchKeyWordInput",ref:t,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),C(S(Ft),{size:"large",type:"primary",onClick:T[7]||(T[7]=()=>{var ne;(ne=t.value)==null||ne.blur()})},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(h9))]),_:1})]),default:Z(()=>[T[19]||(T[19]=M(" 搜索 "))]),_:1}),C(S(Ft),{size:"large",bordered:"",onClick:T[8]||(T[8]=()=>{S(u).searchKeyWord=""})},{icon:Z(()=>[C(S(Kt),null,{default:Z(()=>[C(S(v9))]),_:1})]),default:Z(()=>[T[20]||(T[20]=M(" 清空 "))]),_:1})]),_:1})]),_:1}),C(L,{loading:S(n).loading||S(u).loading,columns:S(o),class:"mt-3",data:S(u).filterMergeRuleList,pagination:G},null,8,["loading","columns","data","pagination"]),C(Lh,{ref_key:"addAutoUIApp",ref:h,type:"add",title:"添加应用"},null,512),C(Lh,{ref_key:"updateAutoUIApp",ref:f,type:"update",title:"更新应用"},null,512)])}}}),_q="/images/icons/miui_content_extension_app.webp",Mq="/images/icons/win_play_mobile.webp",Hh="/images/apps/mi_theme.webp",Nh="/images/icons/aicr.png",Rq="/images/icons/google.png";function zq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(!1);function i(a){r.value=!0,a.OS2_PAD_EMBEDDED_APP_MANAGER?(e.ABTestInfo.OS2_PAD_EMBEDDED_APP_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("已成功参与OS2")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局 For Web UI")])," ",M("的Beta测试w。由于小米在OS2新开发的")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局")])," ",M("存在较多BUG,模块强制劫持了所有配置,仅能通过Web UI去调整应用横屏适配,在")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("平板专区")])," ",M("所做的相关修改会在重启后丢失。")]),C("p",null,[M("开发Hyper OS 2.0模块的Web UI真的消耗了我大量的个人时间和精力QwQ(特别是在小米的BUG加持下),如果对")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.Hyper_OS_DOT_BLACK_LIST_MANAGER?(e.ABTestInfo.Hyper_OS_DOT_BLACK_LIST_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("已成功参与Hyper OS")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("窗口控制器 For Web UI")])," ",M("的Beta测试w。该功能可能会随")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("小米云控")])," ",M("下发导致失效,失效时可以前往界面查看失效状态,并且选择")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("热重载应用配置")])," ",M("来恢复模块对窗口控制器的控制权。")]),C("p",null,[M("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_RADIO_MANAGER?(e.ABTestInfo.GAME_BOOSTER_RADIO_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("已成功参与")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("游戏显示布局 2.0")])," ",M("的Beta测试w。该功能调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。")]),C("p",null,[M("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_CUSTOM_RATIO?(e.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("已成功激活")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("游戏显示布局 2.0")])," ",M("的自定义游戏比例。自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封,激活该功能即认可并了解这些须知。")]),C("p",null,[M("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完美横屏应用计划感到满意")])," ",M(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):n.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),r.value=!1}return{activateABTest:i,loading:r}}function $q(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(!1),i=async l=>{const[s,u]=await _e(pV(l?1:"null"));s?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=l},a=async()=>{const[l,s]=await _e(new Promise((u,d)=>{n.create({title:"想激活工作台模式吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("激活")," ",C("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("工作台模式")])," ",M("后需要设备重启才会生效~")]),C("p",null,[M("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{u("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(s){const[u,d]=await _e(dV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[c,h]=await _e(uV());if(c){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[f,p]=await _e(fV());if(f){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[g,v]=await _e(cV());if(g){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[b]=await _e(Hv());if(b){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}};return ut(async()=>{if(e.enabledMiuiDesktopMode){const[,l]=await _e(hV());Number(l)===1&&(r.value=!0)}}),{currentMiuiDktMode:r,changeMiuiDktMode:i,changeMiuiDesktopModeEnabled:a}}function Pq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(3),i=async l=>{if(l){const[s]=await _e(N4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await _e(mV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!0}else{const[s]=await _e(N4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!1}},a=async l=>{const[s]=await _e(vV());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await _e(bV(l));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});const[d]=await _e(xV(l));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"})};return ut(async()=>{if(e.isEnableShowNotificationIconNum){const[,l]=await _e(gV());if(l&&!Number.isNaN(Number(l))){const s=Number(l);r.value=s}}}),{currentNum:r,changeNum:a,changeEnableMode:i}}function Aq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt}));ao(["message","modal"],{configProviderProps:t});const o=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await _e(yN());i&&(o.current=Number(i))},interval:null}),n=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await _e(CN());i&&(n.current=Number(i))},interval:null}),r=i=>{i.interval&&(clearInterval(i.interval),i.interval=null),i.autoReload&&(i.interval=setInterval(()=>{i.reload()},i.timer*1e3))};return Et(()=>r(o)),Et(()=>r(n)),ut(async()=>{o.reload(),n.reload()}),Go(()=>{o.interval!==null&&clearInterval(o.interval),n.interval!==null&&clearInterval(n.interval)}),{qcomBatteryFg1RSocInfo:o,capacityRawInfo:n}}function Bq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await _e(_N(a?1:0));if(l)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(a){const[u,d]=await _e(EN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w!隐藏手势提示线(小白条)成功,请知晓,隐藏手势提示线(小白条)的情况下,旋转建议提示按钮也将变成不可用的状态~")]),positiveText:"确定"}),r.value=1)}else{const[u,d]=await _e(kN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("好耶w!已经将手势提示线(小白条)调整为显示状态~")]),positiveText:"确定"}),r.value=0)}};return ut(async()=>{const[,a]=await _e(MN());Number(a)&&(r.value=1)}),{currentIsHideGestureLine:r,changeIsHideGestureLine:i}}function Dq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await _e(RN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await _e(zN());Number(a)&&(r.value=1)}),{currentIsInVisibleMode:r,changeIsInvisibleMode:i}}function Tq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(!1),i=async a=>{const[l,s]=await _e(sN());if(l){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}if(a){const[u,d]=await _e(lN());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}}r.value=a};return ut(async()=>{if(e.MIOSVersion&&e.MIOSVersion>=2){const[,a]=await _e(uN());a==="true"&&(r.value=!0)}}),{status:r,change:i}}function Iq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt}));ao(["message","modal"],{configProviderProps:t});const o=$(!1),n=$(0),r=$(0),i=$(0);return ut(async()=>{const[,a]=await _e(GV());if(a==="true"){o.value=!0;const[,l]=await _e(qV());Number(l)&&Number(l)>0&&(n.value=Number(l));const[,s]=await _e(ZV());Number(s)&&Number(s)>0&&(i.value=Number(s));const[,u]=await _e(XV());Number(u)&&Number(u)>0&&(r.value=Number(u))}}),{miuiExtmDmOptEnable:o,totalWriteBack:n,hasWriteBack:r,totalRead:i}}function Oq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$([]),i=D(()=>Array.isArray(r.value)&&r.value.length?r.value[0].supportedHdrTypes:[]),a=D(()=>r.value.map(u=>({...u,fps:Math.round(u.fps),alternativeRefreshRates:u.alternativeRefreshRates.map(d=>Math.round(d))}))),l=async u=>{n.create({title:"想应用该配置吗?",type:"info",preset:"dialog",content:()=>C("p",null,[M("应用后设备分辨率将配置为"),u.width,M("x"),u.height,M(",刷新率将配置为"),u.fps,M("Hz,在设备下次重启前将一直维持该配置,该功能可能受触控笔和其他第三方模块影响不一定生效,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。"),e.deviceCharacteristics==="tablet"&&C("span",null,[M("连接触控笔蓝牙期间,为了确保触控笔正常工作,系统也会强行重置该配置,断开触控笔蓝牙后需要重新配置,")]),M("确定要继续应用该配置么?")]),negativeText:"取消",positiveText:"确定",onPositiveClick(){s(u.id-1)}})},s=async u=>{const[d,c]=await _e(wV(u));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),c&&n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("已成功应用该分辨率及刷新率配置,在设备下次重启前将一直维持该配置,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。")]),negativeText:"确定"})};return ut(async()=>{const[u,d]=await _e(UN());u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),d&&(r.value=d)}),{displayModeList:r,supportHDRTypes:i,formatDisplayModeList:a,setDisplayMode:s,selectDisplayMode:l}}function Lq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(3),i=$(),a=async s=>{const[u,d]=await _e(PN(s));u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=s},l=async s=>{if(s){const[u,d]=await _e(j4());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}else{const[c,h]=await _e(KV(r.value));c?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"添加自启动成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("添加「鼠标光标样式」开机自启动配置成功,后续请通过模块 Web UI 修改「鼠标光标样式」,系统设置内的修改会在重启后失效~")]),positiveText:"确定"}),i.value=r.value)}}else{const[u,d]=await _e(j4());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"取消自启动成功",type:"success",preset:"dialog",content:()=>C("p",null,[M("取消「鼠标光标样式」开机自启动配置成功~")]),positiveText:"确定"}),i.value=void 0)}};return ut(async()=>{const[,s]=await _e(AN());s&&Number(s)&&(r.value=Number(s));const[,u]=await _e(UV());u&&Number(u)&&(i.value=Number(u))}),{currentMiuiCursorStyleType:r,changeMiuiCursorStyleType:a,currentAutoStartMiuiCursorStyleType:i,changeAutoStartMiuiCursorStyleType:l}}function Hq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await _e(BN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await _e(DN());Number(a)&&(r.value=1)}),{currentMouseGestureNaturalscroll:r,changeMouseGestureNaturalscroll:i}}function Nq(){const e=Ct(),t=D(()=>({theme:e.isDarkMode?to:Vt})),{message:o,modal:n}=ao(["message","modal"],{configProviderProps:t}),r=$(0),i=async a=>{const[l,s]=await _e(Lv(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await _e(TN());Number(a)&&(r.value=Number(a))}),{changePointerSpeed:i,currentPointerSpeed:r}}const Vq={class:"setting"},Wq={class:"mt-3"},jq={class:"px-3 sm:px-0"},Uq={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Kq={key:1,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Gq={key:2,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qq={key:3,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Zq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Xq={key:4,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Yq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Qq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Jq={class:"mb-3"},eZ={class:"mb-3"},tZ={key:5,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nZ={key:6,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rZ={key:7,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iZ={key:8,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},aZ={key:9,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lZ={key:10,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sZ={key:11,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},uZ={key:12,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},dZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},cZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},fZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hZ={key:13,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},mZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gZ={key:14,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vZ={key:0,class:"mt-2"},bZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},xZ={class:"mt-5"},yZ={key:15,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},CZ={key:16,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},wZ={key:0,class:"mt-2"},SZ={key:17,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},FZ={key:0,class:"mt-2"},EZ={key:18,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},kZ={key:0,class:"mt-2"},_Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},MZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},RZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$Z={key:19,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},PZ={key:20,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AZ={key:21,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},TZ={id:"gameModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},IZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},OZ={key:22,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},LZ={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},HZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},NZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},VZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},WZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},UZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},KZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},GZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},ZZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},XZ={key:23,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},YZ={key:24,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},QZ={key:25,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},JZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tX={key:26,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oX={key:27,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nX={key:28,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rX={key:29,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iX={class:"whitespace-pre"},aX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sX={key:30,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},uX={class:"mr-3"},dX={class:"mr-3"},cX={class:"mr-3"},fX={key:31,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hX={key:0,class:"mr-3"},pX={key:1,class:"mr-3"},mX={key:2,class:"mr-3"},gX={key:3,class:"mr-3"},vX={key:32,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bX={key:0},xX={key:33,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yX={key:0},CX={key:34,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},wX={key:35,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},SX={key:36,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},FX={key:37,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},EX={key:38,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},kX={key:39,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},_X={key:40,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},MX=ye({__name:"SettingsView",setup(e){const t=Ct(),o=Ns(),n=$q();Pq();const r=x9(),i=Aq(),a=Oq(),l=Bq();Dq();const s=Lq(),u=Hq(),d=Nq(),c=Tq(),h=Iq(),{activateABTest:f,loading:p}=zq(),g=D(()=>({theme:t.isDarkMode?to:Vt})),{message:v,modal:b}=ao(["message","modal"],{configProviderProps:g}),x=b9(),E=S9(),w=GH(),k=[{label:"跟随系统",key:"autoRhythm"},{label:"浅色模式",key:"lightMode"},{label:"深色模式",key:"dartMode"}],_=$([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]),F=D(()=>DR(_.value,"key")),P=ne=>{E.currentFont=ne},z=ne=>{t.rhythmMode=ne,ne==="lightMode"&&(t.isDarkMode=!1),ne==="dartMode"&&(t.isDarkMode=!0)},A=$(""),G=async()=>{const y=JSON.stringify({GAME_BOOSTER_CUSTOM_RATIO:!0}),K=La.deflate(y,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(K),ue=F6(U);console.log(ue,"base64String"),A.value="";const[se,Fe]=await _e(new Promise((pe,fe)=>{b.create({title:"请粘贴激活口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:A.value,"onUpdate:value":Ce=>{A.value=Ce},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴激活口令"}),positiveText:"确定提交",negativeText:"取消",onPositiveClick(){pe("positiveClick")}})}));if(Fe){p.value=!0;const pe=A.value,fe=u6(pe);if(!(fe!=null&&fe.length)){b.create({title:"导入激活口令失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("导入激活口令失败了QwQ,解析口令发生错误,无法正常解析。")]),negativeText:"确定"}),p.value=!1;return}try{const Ce=E6(fe),ee=La.inflate(Ce,{to:"string"}),q=JSON.parse(ee);f(q)}catch{b.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),p.value=!1}}},H=$(!1),X=async ne=>{const[y]=await _e(FN(ne?1:0));if(y){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法 "),ne?"开启":"关闭",M(" 旋转建议提示按钮,详情请查看日志记录~")]),negativeText:"确定"});return}t.showRotationSuggestions=ne},N=async ne=>{qN(ne?"whitelist":"blacklist").then(y=>{t.shamikoInfo.mode=ne?"whitelist":"blacklist",b.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[ne&&C("p",null,[M("好耶w,Shamiko的工作模式已成功切换为")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("白名单模式")])," "]),!ne&&C("p",null,[M("好耶w,Shamiko的工作模式已成功切换为")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("黑名单模式")])," "])]),negativeText:"确定"})}).catch(y=>{b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法切换Shamiko的工作模式,详情请查看日志记录~")]),negativeText:"确定"})})},T=async(ne,y,K)=>{b.create({title:`获取${ne}`,type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[M("确定要下载"),ne,M("么?请注意核对部分应用的兼容性。"),K==="system",K==="revision",K==="magisk"]),C("p",null,[M("下载地址:")]),C("p",null,[y])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${y}`)},onNegativeClick:()=>{}})},O=async ne=>{const[y,K]=await _e(new Promise((U,ue)=>{b.create({title:ne?"想切换为定制模式吗?":"想切换为完整模式吗?",type:"info",preset:"dialog",content:()=>C("div",null,[ne&&C("p",null,[M("切换为")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("定制模式")])," ",M("后,模块会以您设备的整体应用情况")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修剪模块应用适配列表")])," ",M(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,后续每次更新模块或者安装新的应用后,建议前往")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局")])," ",M("重新")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M(",确定要继续吗?")]),!ne&&C("p",null,[M("切换为")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完整模式")])," ",M("后,可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题,确定要继续吗?")])]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{U("positiveClick")},onNegativeClick:()=>{ue("negativeClick")}})}));if(K){H.value=!0;const[U]=await _e(iN());if(U){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法移除定制模式的配置项,详情请查看日志记录~")]),negativeText:"确定"}),H.value=!1;return}if(ne){const[Fe]=await _e(rN());if(Fe){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法切换为定制模式,详情请查看日志记录~")]),negativeText:"确定"}),H.value=!1;return}o.isPatchMode=!0}else H.value=!1,o.isPatchMode=!1;await t.getAndroidApplicationPackageNameList();const[ue,se]=await _e(xa({isPatchMode:o.isPatchMode,patchEmbeddedRulesListXML:ct(o.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(o.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(o.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(o.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(o.customConfigFixedOrientationList,"package",void 0),...t.MIOSVersion&&t.MIOSVersion>=2?{settingConfigXML:ct(o.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(o.systemEmbeddedSettingConfig,"setting","setting_rule")}}));ue?(b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),o.isPatchMode=!o.isPatchMode,H.value=!1):(b.create({title:"操作成功",type:"success",preset:"dialog",content:()=>C("div",null,[ne&&C("p",null,[M("好耶w,已成功切换为")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("定制模式")])," ",M(",模块已根据您设备当前的整体应用情况")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修剪模块应用适配列表")])," ",M(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,建议每次更新模块或者安装新的应用后,均需要在前往")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("应用横屏布局")])," ",M("界面重新生成")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("生成定制应用数据")])," ",M("。")]),!ne&&C("p",null,[M("好耶w,已成功切换为")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("完整模式")])," ",M(",可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题。")])]),negativeText:"确定"}),H.value=!1,o.updateMergeRuleList())}},R=async ne=>{const[y,K]=await _e(new Promise((ue,se)=>{b.create({title:ne?"想开启游戏显示布局吗?":"想关闭游戏显示布局吗?",type:"info",preset:"dialog",content:()=>C("div",null,[C("p",null,[ne?"开启":"关闭"," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("游戏显示布局")])," ",M("后需要设备重启才会生效~")]),ne&&t.deviceCharacteristics==="tablet"&&t.MIOSVersion&&t.MIOSVersion>=2&&C("p",null,[M("从Hyper OS 2.0开始,小米平板需要搭配配套的")," ",C("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[M("修改版平板/手机管家")])," ",M("才能使用游戏显示布局,详情请前往模块首页了解~")]),C("p",null,[M("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{ue("positiveClick")},onNegativeClick:()=>{se("negativeClick")}})})),[U]=await _e(dN());if(U){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}if(ne){const[ue]=await _e(cN());if(ue){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}}if(K){const[ue]=await _e(Hv());if(ue){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>C("p",null,[M("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},L=({focused:ne,checked:y})=>{const K={};return y?(K.background="#d03050",ne&&(K.boxShadow="0 0 0 2px #d0305040")):(K.background="#2080f0",ne&&(K.boxShadow="0 0 0 2px #2080f040")),K};return(ne,y)=>{var q,Te,Ne,j;const K=at("n-switch"),U=at("n-alert"),ue=at("n-tag"),se=at("n-button"),Fe=at("n-dropdown"),pe=at("n-icon"),fe=at("n-slider"),Ce=at("n-input-number"),ee=at("n-watermark");return Me(),De("div",Vq,[I("div",Wq,[I("div",jq,[y[55]||(y[55]=I("h3",{class:xe("text-base font-semibold leading-7")},[I("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r @@ -4197,6 +4197,6 @@ ${X}`));if(re){l.create({title:"复制分享口令失败",type:"error",preset:"d rgb(135, 148, 255) 70.98%,\r rgb(60, 112, 255) 91.35%,\r rgb(60, 112, 255) 110.17%\r - )`}},"模块设置")],-1)),O("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 模块设置,让功能在自定义中完美契合。 ",2)]),O("div",{class:xe(`mt-3 border-t ${S(t).isDarkMode?"divide-sothx-gray-color border-sothx-gray-color":"divide-gray-200 border-gray-200"}`)},[O("dl",{class:xe(`divide-y ${S(t).isDarkMode?"divide-sothx-gray-color":"divide-gray-200"}`)},[(J=S(t).moduleInfo)!=null&&J.id?(_e(),De("div",Hq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块ID ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).moduleInfo.id||"获取失败"),3)])):qe("",!0),(G=S(t).moduleInfo)!=null&&G.dir?(_e(),De("div",Nq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块路径 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).moduleInfo.dir||"获取失败"),3)])):qe("",!0),(Te=S(t).moduleInfo)!=null&&Te.version?(_e(),De("div",Vq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本名 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).moduleInfo.version||"获取失败"),3)])):qe("",!0),(Ne=S(t).moduleInfo)!=null&&Ne.versionCode?(_e(),De("div",Wq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本号 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).moduleInfo.versionCode||"获取失败"),3)])):qe("",!0),O("div",jq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块工作模式 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[0]||(w[0]=H=>T(H)),"rail-style":R,value:S(o).isPatchMode,loading:j.value,disabled:S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:Z(()=>w[56]||(w[56]=[M("定制模式")])),unchecked:Z(()=>w[57]||(w[57]=[M("完整模式")])),_:1},8,["value","loading","disabled"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(_e(),De("div",Uq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统应用横屏优化 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[1]||(w[1]=H=>S(c).change(H)),"rail-style":R,value:S(c).status,loading:S(t).loading},{checked:Z(()=>w[58]||(w[58]=[M("已禁用系统应用横屏优化")])),unchecked:Z(()=>w[59]||(w[59]=[M("已启用系统应用横屏优化")])),_:1},8,["value","loading"]),y(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>w[60]||(w[60]=[O("p",null,"由于小米「应用横屏布局」BUG,Hyper OS 2 下部分系统应用可无法完全横屏工作,模块可以修复这个问题,但每次设备重启或修改模块规则,这些系统应用都将被强制重启,该功能默认启用,如「启用」将代表已接纳并知晓此副作用影响。 ",-1),O("p",null,"受此影响的系统应用:",-1),O("p",null,"超级小爱(com.miui.voiceassist)",-1),O("p",null,"小米浏览器(com.android.browser)",-1),O("p",null,"平板/手机管家(com.miui.securitycenter)",-1)])),_:1})],2)])):qe("",!0),O("div",Kq,[S(t).MIOSVersion&&S(t).MIOSVersion>=1?(_e(),De("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"智能IO调度",2)):qe("",!0),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(t).smartFocusIO==="on"?(_e(),At(X,{key:0,type:"success"},{default:Z(()=>w[61]||(w[61]=[M("已启用智能IO调度")])),_:1})):(_e(),At(X,{key:1,type:"info"},{default:Z(()=>w[62]||(w[62]=[M("已启用系统默认调度")])),_:1})),S(t).deviceInfo.socModel==="SM8475"&&S(t).androidTargetSdk&&S(t).androidTargetSdk>=34&&S(t).smartFocusIO!=="on"?(_e(),At(U,{key:2,class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>[w[64]||(w[64]=O("p",null,"您当前未启用「智能IO调度」,由于小米「磁盘IO调度」BUG,骁龙8+Gen1机型存在IO调度异常的问题,容易导致系统卡顿或者无响应,您可以通过安装「小米平板系统功能补全模块」来启用「智能IO调度」,提升系统IO性能体验。",-1)),y(re,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:w[2]||(w[2]=()=>N("小米平板系统功能补全模块","https://caiyun.139.com/m/i?135CmUuWuqGsk","original"))},{default:Z(()=>w[63]||(w[63]=[M("获取小米平板系统功能补全模块")])),_:1})]),_:1})):qe("",!0)],2)]),S(t).deviceName?(_e(),De("div",Gq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备名称 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).deviceName||""),3)])):qe("",!0),O("div",qq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," ROOT管理器 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).currentRootManager||"获取失败"),3)]),S(t).currentRootManager==="KernelSU"?(_e(),De("div",Zq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 版本 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.KSU_VER||"获取失败"),3)])):qe("",!0),S(t).currentRootManager==="KernelSU"?(_e(),De("div",Xq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 用户空间版本号 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.KSU_VER_CODE||"获取失败"),3)])):qe("",!0),S(t).currentRootManager==="KernelSU"?(_e(),De("div",Yq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 内核空间版本号 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.KSU_KERNEL_VER_CODE||"获取失败"),3)])):qe("",!0),S(t).currentRootManager==="APatch"?(_e(),De("div",Qq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本名 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.APATCH_VER||"获取失败"),3)])):qe("",!0),S(t).currentRootManager==="APatch"?(_e(),De("div",Jq,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本号 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.APATCH_VER_CODE||"获取失败"),3)])):qe("",!0),S(t).currentRootManager==="Magisk"?(_e(),De("div",eZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.MAGISK_VER||"获取失败"),3)])):qe("",!0),S(t).currentRootManager==="Magisk"?(_e(),De("div",tZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本号 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).rootManagerInfo.MAGISK_VER_CODE||"获取失败"),3)])):qe("",!0),O("div",oZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 外观模式 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(he,{size:"large",trigger:"click",options:C,onSelect:P},{default:Z(()=>[y(re,{size:"small",strong:"",secondary:"",type:S(t).rhythmMode==="autoRhythm"?"error":"success"},{default:Z(()=>[M(nt(S(t).rhythmMode==="autoRhythm"&&"跟随系统"||S(t).rhythmMode==="lightMode"&&"浅色模式"||S(t).rhythmMode==="dartMode"&&"深色模式"),1)]),_:1},8,["type"])]),_:1})],2)]),O("div",nZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 应用字体 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(he,{size:"large",trigger:"click",options:k.value,onSelect:F},{default:Z(()=>[y(re,{size:"small",strong:"",secondary:"",type:_.value[S(x).currentFont].type},{default:Z(()=>[M(nt(S(x).currentFont),1)]),_:1},8,["type"])]),_:1},8,["options"])],2)]),O("div",rZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 激活口令 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"warning",secondary:"",loading:S(t).loading||S(o).loading||S(f),onClick:w[3]||(w[3]=H=>B())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(ZG))]),_:1})]),default:Z(()=>[w[65]||(w[65]=M(" 导入激活口令 "))]),_:1},8,["loading"])],2)]),S(t).shamikoInfo.installed?(_e(),De("div",iZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Shamiko 工作模式 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[4]||(w[4]=H=>K(H)),"rail-style":R,value:S(t).shamikoInfo.mode==="whitelist",loading:S(t).loading},{checked:Z(()=>w[66]||(w[66]=[M("白名单模式")])),unchecked:Z(()=>w[67]||(w[67]=[M("黑名单模式")])),_:1},8,["value","loading"])],2)])):qe("",!0),O("div",aZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 暗码拨号盘 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:w[5]||(w[5]=()=>_V())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(nq))]),_:1})]),default:Z(()=>[w[68]||(w[68]=M(" 暗码拨号盘 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:Z(()=>w[69]||(w[69]=[O("p",null,"Tips: 暗码必须以*#*#开头,且以#*#*结尾",-1),O("p",null,"eg: 开启 LSPosed 管理器的暗码:*#*#5776733#*#*",-1),O("p",null,"「安全警示: 暗码拨号器是面向开发者调试的功能,用于打开一些隐藏设定,如果您不了解暗码作用与功能建议不要轻易尝试,可能会导致您的设备数据丢失!」",-1)])),_:1})],2)]),O("div",lZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," LSPosed 管理器 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[6]||(w[6]=()=>LV())},{default:Z(()=>w[70]||(w[70]=[M(" LSPosed 管理器 ")])),_:1},8,["loading"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=1&&S(t).deviceCharacteristics==="tablet"?(_e(),De("div",sZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[w[72]||(w[72]=O("p",null,"工作台模式",-1)),S(t).enabledMiuiDesktopMode?qe("",!0):(_e(),De("p",uZ,[y(re,{strong:"",secondary:"",size:"small",onClick:w[7]||(w[7]=()=>S(n).changeMiuiDesktopModeEnabled()),type:"warning"},{default:Z(()=>w[71]||(w[71]=[M(" 启用功能 ")])),_:1})]))],2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[8]||(w[8]=H=>S(n).changeMiuiDktMode(H)),"rail-style":R,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:Z(()=>w[73]||(w[73]=[M("工作台模式")])),unchecked:Z(()=>w[74]||(w[74]=[M("默认桌面模式")])),_:1},8,["disabled","value","loading"])],2)])):qe("",!0),O("div",dZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},w[75]||(w[75]=[O("p",null,"传送门",-1)]),2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("div",null,[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[9]||(w[9]=()=>S(r).open())},{icon:Z(()=>w[76]||(w[76]=[O("img",{src:Sq},null,-1)])),default:Z(()=>[w[77]||(w[77]=M(" 传送门 "))]),_:1},8,["loading"])]),S(r).isInstallMIUIContentExtension.value&&S(t).deviceCharacteristics==="tablet"?(_e(),At(U,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>[O("p",null,[w[79]||(w[79]=M("模块安装后可能会导致「传送门」被异常添加到「游戏工具箱」,您可以通过 ")),y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[10]||(w[10]=()=>S(r).fix())},{default:Z(()=>w[78]||(w[78]=[M(" 传送门异常修复 ")])),_:1},8,["loading"]),w[80]||(w[80]=M(" 移除「游戏工具箱」内的「传送门」"))]),O("p",cZ,[w[82]||(w[82]=M("由于小米「传送门」存在「应用黑名单」不定期重置的BUG,您可以通过 ")),y(he,{size:"large",trigger:"click",options:[{label:"应用黑名单固化",key:"onlyRead"},{label:"解除应用黑名单固化",key:"readAndWrite"}],onSelect:w[11]||(w[11]=H=>{H==="onlyRead"?S(r).setAuthIsOnlyRead():S(r).setAuthIsReadAndWrite()})},{default:Z(()=>[y(re,{size:"small",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{default:Z(()=>w[81]||(w[81]=[M(" 应用黑名单固化管理 ")])),_:1},8,["loading"])]),_:1}),w[83]||(w[83]=M(" 来固化「应用黑名单」的权限,避免被系统重置。"))])]),_:1})):qe("",!0)],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(_e(),De("div",fZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},w[84]||(w[84]=[O("p",null,"WinPlay Mobile",-1)]),2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("div",null,[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[12]||(w[12]=()=>NV())},{icon:Z(()=>w[85]||(w[85]=[O("img",{src:Fq},null,-1)])),default:Z(()=>[w[86]||(w[86]=M(" WinPlay Mobile "))]),_:1},8,["loading"])]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[87]||(w[87]=[O("p",null,"「WinPlay Mobile」是为小米平板量身定做的「游戏虚拟机」,可以运行市面上常见的 Windows 游戏。",-1),O("p",null,"目前尚处于测试阶段,暂时仅支持小米平板6S Pro ~",-1),O("p",null,"该功能依赖「AI百宝箱」和「WAE Display」,请确保已经安装这两个系统应用。",-1)])),_:1})],2)])):qe("",!0),S(t).hasPenEnableControl?(_e(),De("div",hZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[w[89]||(w[89]=M(" 第三方触控笔管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?qe("",!0):(_e(),De("p",pZ,[y(re,{strong:"",secondary:"",size:"small",onClick:w[13]||(w[13]=()=>S(E).enableSetting()),type:"warning"},{default:Z(()=>w[88]||(w[88]=[M(" 启用功能 ")])),_:1})]))],2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[14]||(w[14]=H=>S(E).changePenEnableMode(H)),"rail-style":R,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(E).currentPenEnable.value,loading:S(t).loading},{checked:Z(()=>w[90]||(w[90]=[M("已启用")])),unchecked:Z(()=>w[91]||(w[91]=[M("未启用")])),_:1},8,["disabled","value","loading"]),y(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>w[92]||(w[92]=[M("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_enable 开关映射时生效")])),_:1})],2)])):qe("",!0),S(t).hasPenUpdateControl?(_e(),De("div",mZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[w[94]||(w[94]=M(" 手写笔驱动管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?qe("",!0):(_e(),De("p",gZ,[y(re,{strong:"",secondary:"",size:"small",onClick:w[15]||(w[15]=()=>S(E).enableSetting()),type:"warning"},{default:Z(()=>w[93]||(w[93]=[M(" 启用功能 ")])),_:1})]))],2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[16]||(w[16]=H=>S(E).changePenUpdateMode(H)),"rail-style":R,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(E).currentPenUpdate.value,loading:S(t).loading},{checked:Z(()=>w[95]||(w[95]=[M("二代笔驱动")])),unchecked:Z(()=>w[96]||(w[96]=[M("一代笔驱动")])),_:1},8,["disabled","value","loading"]),y(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>w[97]||(w[97]=[O("p",null,"Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_update 开关映射时生效",-1)])),_:1})],2)])):qe("",!0),S(t).hasKeyboardControl?(_e(),De("div",vZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[w[99]||(w[99]=M(" 键盘连接器管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?qe("",!0):(_e(),De("p",bZ,[y(re,{strong:"",secondary:"",size:"small",onClick:w[17]||(w[17]=()=>S(E).enableSetting()),type:"warning"},{default:Z(()=>w[98]||(w[98]=[M(" 启用功能 ")])),_:1})]))],2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(he,{value:S(E).currentKeyboardModeSelect,size:"large",trigger:"click",options:S(E).keyboardModeOptions.value,onSelect:S(E).changeKeyboardMode},{default:Z(()=>[y(re,{strong:"",secondary:"",disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,size:"small",type:S(E).currentKeyboardModeSelect.value.type},{default:Z(()=>[M(nt(S(E).currentKeyboardModeSelect.value.label),1)]),_:1},8,["disabled","type"])]),_:1},8,["value","options","onSelect"]),y(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>w[100]||(w[100]=[M("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/keyboard 开关映射时生效")])),_:1})],2)])):qe("",!0),O("div",xZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标光标样式 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(he,{size:"large",trigger:"click",options:[{label:"箭头",key:3},{label:"圆点",key:1},{label:"空心圆",key:0}],onSelect:w[18]||(w[18]=H=>{S(s).changeMiuiCursorStyleType(H)})},{default:Z(()=>[y(re,{size:"small",class:"mb-3 mr-3",type:"success",secondary:"",loading:S(t).loading},{default:Z(()=>[M(nt(S(s).currentMiuiCursorStyleType.value===3&&"箭头"||"")+" "+nt(S(s).currentMiuiCursorStyleType.value===1&&"圆点"||"")+" "+nt(S(s).currentMiuiCursorStyleType.value===0&&"空心圆"||""),1)]),_:1},8,["loading"])]),_:1}),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>[O("div",null,[w[103]||(w[103]=O("p",null,"由于小米BUG,部分系统存在开机后「鼠标光标样式」被异常重置的问题,模块提供「鼠标光标样式开机自配置」来解决这个问题,开启后每次开机会被配置为指定的「鼠标光标样式」,系统设置内的修改会在重启后失效。",-1)),y(Q,{"onUpdate:value":w[19]||(w[19]=H=>S(s).changeAutoStartMiuiCursorStyleType(H)),"rail-style":R,class:"mt-5",value:!!S(s).currentAutoStartMiuiCursorStyleType.value,loading:S(t).loading},{checked:Z(()=>w[101]||(w[101]=[M("已启用开机自配置")])),unchecked:Z(()=>w[102]||(w[102]=[M("未启用开机自配置")])),_:1},8,["value","loading"])])]),_:1})],2)]),O("div",yZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标自然滚动 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[20]||(w[20]=H=>S(u).changeMouseGestureNaturalscroll(H)),"rail-style":R,value:S(u).currentMouseGestureNaturalscroll.value===1},{checked:Z(()=>w[104]||(w[104]=[M("已开启鼠标自然滚动")])),unchecked:Z(()=>w[105]||(w[105]=[M("未开启鼠标自然滚动")])),_:1},8,["value"]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[106]||(w[106]=[O("p",null,"开启后内容随手指移动",-1)])),_:1})],2)]),O("div",CZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标指针速度 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(pe,{size:"small",min:-7,"onUpdate:value":[w[21]||(w[21]=H=>Lv(H)),w[22]||(w[22]=H=>S(d).currentPointerSpeed.value=H)],max:7,value:S(d).currentPointerSpeed.value,step:1},null,8,["value"]),y(fe,{"show-button":!1,class:"pt-3",readonly:"",value:S(d).currentPointerSpeed.value,"onUpdate:value":w[23]||(w[23]=H=>S(d).currentPointerSpeed.value=H),placeholder:"请输入鼠标指针速度",min:-7,max:7,step:1},null,8,["value"])],2)]),O("div",wZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 个性化主题导入 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"warning",secondary:"",loading:S(t).loading,onClick:w[24]||(w[24]=()=>HV())},{icon:Z(()=>w[107]||(w[107]=[O("img",{src:Hh},null,-1)])),default:Z(()=>[w[108]||(w[108]=M(" 导入个性化主题 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>[w[110]||(w[110]=O("p",null,"需要搭配 LSPosed 模块[主题破解],才能够正常导入[个性化主题],导入按钮位于界面最底部[从SD卡导入]~",-1)),y(re,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:w[25]||(w[25]=()=>N("主题破解","https://caiyun.139.com/m/i?135CmXA9aKh8Y","original"))},{default:Z(()=>w[109]||(w[109]=[M("获取主题破解")])),_:1})]),_:1})],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(_e(),De("div",SZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 动态壁纸 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:w[26]||(w[26]=()=>$V())},{icon:Z(()=>w[111]||(w[111]=[O("img",{src:Hh},null,-1)])),default:Z(()=>[w[112]||(w[112]=M(" AI 动态壁纸 "))]),_:1},8,["loading"]),y(re,{strong:"",secondary:"",size:"small",circle:"",type:"error",class:"ml-2",onClick:w[27]||(w[27]=()=>BV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(S6))]),_:1})]),_:1})],2)])):qe("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(_e(),De("div",FZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[28]||(w[28]=()=>PV())},{icon:Z(()=>w[113]||(w[113]=[O("img",{src:Nh},null,-1)])),default:Z(()=>[w[114]||(w[114]=M(" 算力共享 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[115]||(w[115]=[O("p",null,"在附近高算力设备提供的算力支持下,平板获得部分 AI 功能",-1)])),_:1})],2)])):qe("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics!=="tablet"?(_e(),De("div",EZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[29]||(w[29]=()=>AV())},{icon:Z(()=>w[116]||(w[116]=[O("img",{src:Nh},null,-1)])),default:Z(()=>[w[117]||(w[117]=M(" 算力共享 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[118]||(w[118]=[O("p",null,"将设备的 AI 算力共享给平板设备,让平板设备获得部分 AI 功能",-1)])),_:1})],2)])):qe("",!0),O("div",kZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 超级小爱翻译 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:w[30]||(w[30]=()=>DV())},{icon:Z(()=>w[119]||(w[119]=[O("img",{src:sd},null,-1)])),default:Z(()=>[w[120]||(w[120]=M(" 超级小爱翻译 "))]),_:1},8,["loading"])],2)]),O("div",_Z,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 同声传译 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:w[31]||(w[31]=()=>TV())},{icon:Z(()=>w[121]||(w[121]=[O("img",{src:sd},null,-1)])),default:Z(()=>[w[122]||(w[122]=M(" AI 同声传译 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:Z(()=>w[123]||(w[123]=[O("p",null,'打电话或开会时,打开"AI同声传译",可以将双方的说话内容实时翻译给对方,帮助跨语言聊天。',-1),O("p",null,'Tips: 如无法打开请将"小爱翻译"和"超级小爱"升级到最新版',-1)])),_:1})],2)]),O("div",MZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏显示布局 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[32]||(w[32]=H=>L(H)),value:S(b).isSupportGameMode,"rail-style":R,disabled:S(t).deviceCharacteristics!=="tablet"||S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:Z(()=>w[124]||(w[124]=[M("已开启游戏显示布局")])),unchecked:Z(()=>[M(nt(S(t).androidTargetSdk&&S(t).androidTargetSdk<32?"不支持游戏显示布局":"未开启游戏显示布局"),1)]),_:1},8,["value","disabled"])],2)]),O("div",RZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 旋转建议提示按钮 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[33]||(w[33]=H=>V(H)),"rail-style":R,value:S(t).showRotationSuggestions},{checked:Z(()=>w[125]||(w[125]=[M("已启用旋转建议提示按钮")])),unchecked:Z(()=>w[126]||(w[126]=[M("已关闭旋转建议提示按钮")])),_:1},8,["value"])],2)]),S(t).deviceCharacteristics==="tablet"&&S(t).MIOSVersion&&S(t).MIOSVersion>=2?(_e(),De("div",zZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 手势提示线(小白条) ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(Q,{"onUpdate:value":w[34]||(w[34]=H=>S(l).changeIsHideGestureLine(H)),"rail-style":R,value:S(l).currentIsHideGestureLine.value===1},{checked:Z(()=>w[127]||(w[127]=[M("隐藏手势提示线")])),unchecked:Z(()=>w[128]||(w[128]=[M("显示手势提示线")])),_:1},8,["value"])],2)])):qe("",!0),y(we,{content:"开发中,未上线",cross:"",selectable:"","font-size":16,"line-height":16,width:192,height:128,"x-offset":12,"y-offset":28,rotate:-15},{default:Z(()=>[S(t).shamikoInfo.installed?(_e(),De("div",$Z,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 焕新存储 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:Z(()=>w[129]||(w[129]=[M(" 打开 焕新存储信息面板 ")])),_:1},8,["loading"]),y(U,{class:"mb-5 mt-5",type:"success","show-icon":!1,bordered:!1},{default:Z(()=>[O("div",null,[O("p",null,[w[131]||(w[131]=M("焕新存储启用状态:")),y(X,{size:"small",class:"ml-3",type:"success",loading:S(t).loading,onClick:()=>{}},{default:Z(()=>w[130]||(w[130]=[M(" 已启用 ")])),_:1},8,["loading"])]),w[134]||(w[134]=O("p",null,"启用状态通常由小米云控控制,模块支持强制启用焕新存储,但该功能受系统底层支持情况而异,不支持的设备即使启用也不会生效。",-1)),y(Q,{"onUpdate:value":()=>{},"rail-style":R,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:Z(()=>w[132]||(w[132]=[M("已强制启用焕新存储")])),unchecked:Z(()=>w[133]||(w[133]=[M("跟随系统默认云控规则")])),_:1},8,["disabled","value","loading"])])]),_:1}),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>[O("p",null,[w[136]||(w[136]=M("焕新存储激活状态: ")),y(re,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:Z(()=>w[135]||(w[135]=[M(" 已激活 ")])),_:1},8,["loading"])]),w[137]||(w[137]=O("p",null,"激活后仍然需要满足以下条件才会在特定时间触发焕新存储:",-1)),w[138]||(w[138]=O("p",null,"①夜间12点半-凌晨5点",-1)),w[139]||(w[139]=O("p",null,"②息屏状态",-1)),w[140]||(w[140]=O("p",null,"③电量大于75%(或保持手机充电)",-1)),w[141]||(w[141]=O("p",null,"④电池温度小于40℃",-1)),w[142]||(w[142]=O("p",null,"进行焕新存储期间检测到其中任意条件不满足,焕新存储会被中断,待满足后继续执行。",-1)),w[143]||(w[143]=O("p",null,"(焕新存储流程结束后,激活状态会被关闭,您可以前往Web UI 重新激活。)",-1))]),_:1})],2)])):qe("",!0)]),_:1}),O("div",PZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Google 服务 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[35]||(w[35]=()=>IV())},{icon:Z(()=>w[144]||(w[144]=[O("img",{src:Eq},null,-1)])),default:Z(()=>[w[145]||(w[145]=M(" Google 服务 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[146]||(w[146]=[O("p",null,"仅在开启 Google 基础服务 下生效",-1)])),_:1})],2)]),O("div",AZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 隐身模式 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[36]||(w[36]=()=>$N())},{icon:Z(()=>[y(S(tq))]),default:Z(()=>[w[147]||(w[147]=M(" 隐身模式 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[148]||(w[148]=[O("p",null,"开启后系统将拒绝所有应用录音、定位和拍照,保护您的隐私安全",-1)])),_:1})],2)]),O("div",BZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 自动任务 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:w[37]||(w[37]=()=>OV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(JG))]),_:1})]),default:Z(()=>[w[149]||(w[149]=M(" 自动任务 "))]),_:1},8,["loading"])],2)]),O("div",DZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 实时字幕 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[38]||(w[38]=()=>SV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(oq))]),_:1})]),default:Z(()=>[w[150]||(w[150]=M(" 实时字幕 "))]),_:1},8,["loading"]),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[151]||(w[151]=[O("p",null,'Tips: 部分设备需要安装最新版"小爱翻译"或者强开「实时字幕」才能够正常使用!',-1)])),_:1})],2)]),O("div",TZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Mi剪辑 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:w[39]||(w[39]=()=>FV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(rq))]),_:1})]),default:Z(()=>[w[152]||(w[152]=M(" Mi剪辑 "))]),_:1},8,["loading"])],2)]),O("div",IZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 极暗模式 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[40]||(w[40]=()=>EV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(XG))]),_:1})]),default:Z(()=>[w[153]||(w[153]=M(" 极暗模式 "))]),_:1},8,["loading"])],2)]),O("div",OZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 颜色反转 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[41]||(w[41]=()=>kV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(lq))]),_:1})]),default:Z(()=>[w[154]||(w[154]=M(" 颜色反转 "))]),_:1},8,["loading"])],2)]),O("div",LZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 正在运行的服务 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[42]||(w[42]=()=>MV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(aq))]),_:1})]),default:Z(()=>[w[155]||(w[155]=M(" 正在运行的服务 "))]),_:1},8,["loading"])],2)]),O("div",HZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 内存使用量 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[43]||(w[43]=()=>zV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(iq))]),_:1})]),default:Z(()=>[w[156]||(w[156]=M(" 内存使用量 "))]),_:1},8,["loading"])],2)]),O("div",NZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 通知日志 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:w[44]||(w[44]=()=>RV())},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(YG))]),_:1})]),default:Z(()=>[w[157]||(w[157]=M(" 通知日志 "))]),_:1},8,["loading"])],2)]),S(t).MIOSVersion?(_e(),De("div",VZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Xiaomi Hyper OS 版本号 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).MIOSVersion?`Xiaomi - Hyper OS ${S(t).MIOSVersion}`:"当前为MIUI"),3)])):qe("",!0),S(t).systemVersion?(_e(),De("div",WZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统版本 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).systemVersion||""),3)])):qe("",!0),S(t).systemPreVersion?(_e(),De("div",jZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 上次更新的系统版本 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).systemPreVersion||""),3)])):qe("",!0),O("div",UZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Android Target Version ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).androidTargetSdk||"非Android设备环境"),3)]),O("div",KZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备类型 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).deviceCharacteristics==="tablet"?"平板(Pad)":"折叠屏(Fold)"),3)]),S(t).deviceInfo.socModel?(_e(),De("div",GZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc类型 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).deviceInfo.socModel||"获取失败"),3)])):qe("",!0),S(t).deviceInfo.socName?(_e(),De("div",qZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc名称 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},nt(S(t).deviceInfo.socName||"获取失败"),3)])):qe("",!0),S(t).deviceInfo.display0Panel?(_e(),De("div",ZZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备显示器信息(display0) ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(S(t).deviceInfo.display0Panel),1)],2)])):qe("",!0),S(t).deviceInfo.memoryInfo?(_e(),De("div",XZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备DDR和UFS信息 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("div",YZ,nt(S(t).deviceInfo.memoryInfo||"获取失败"),1)],2)])):qe("",!0),O("div",QZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 性能监视器 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(he,{size:"large",trigger:"click",options:[{label:"打开性能监视器",key:"start"},{label:"关闭性能监视器",key:"stop"}],onSelect:w[45]||(w[45]=H=>{WN(H)})},{default:Z(()=>[y(re,{size:"small",class:"mb-3 mr-3",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(eq))]),_:1})]),default:Z(()=>[w[158]||(w[158]=M(" 性能监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),O("div",JZ,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 帧率监视器 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[y(he,{size:"large",trigger:"click",options:[{label:"打开帧率监视器",key:"open"},{label:"关闭帧率监视器",key:"close"}],onSelect:w[46]||(w[46]=H=>{V4(H==="open")})},{default:Z(()=>[y(re,{size:"small",class:"mb-3 mr-3",type:"info",secondary:"",loading:S(t).loading},{icon:Z(()=>[y(Se,null,{default:Z(()=>[y(S(QG))]),_:1})]),default:Z(()=>[w[159]||(w[159]=M(" 帧率监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),S(a).formatDisplayModeList.value.length?(_e(),De("div",eX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 分辨率及刷新率 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(_e(!0),De(ft,null,Ci(S(a).formatDisplayModeList.value,H=>(_e(),De("div",{class:"mb-3 flex",key:H.id},[O("p",tX,"ID: "+nt(H.id),1),O("p",oX,"分辨率: "+nt(`${H.width}x${H.height}`),1),O("p",nX,"刷新率: "+nt(`${H.fps} Hz`),1),y(re,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>S(a).selectDisplayMode(H)},{default:Z(()=>w[160]||(w[160]=[M(" 应用该配置 ")])),_:2},1032,["loading","onClick"])]))),128))],2)])):qe("",!0),S(a).supportHDRTypes.value.length?(_e(),De("div",rX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 支持的 HDR 类型 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(_e(!0),De(ft,null,Ci(S(a).supportHDRTypes.value,(H,oe)=>(_e(),De("div",{class:"mb-3 flex",key:oe},[H===1?(_e(),De("p",iX,nt("HLG"))):qe("",!0),H===2?(_e(),De("p",aX,nt("HDR10"))):qe("",!0),H===3?(_e(),De("p",lX,nt("HDR10+"))):qe("",!0),H===4?(_e(),De("p",sX,nt("Dolby Vision"))):qe("",!0)]))),128))],2)])):qe("",!0),S(i).qcomBatteryFg1RSocInfo.current?(_e(),De("div",uX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量(高通) ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,[M(nt(`${S(i).qcomBatteryFg1RSocInfo.current} %`)+" ",1),y(re,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:w[47]||(w[47]=H=>S(i).qcomBatteryFg1RSocInfo.reload())},{default:Z(()=>w[161]||(w[161]=[M("手动刷新")])),_:1}),y(Q,{class:"ml-2",value:S(i).qcomBatteryFg1RSocInfo.autoReload,"onUpdate:value":w[48]||(w[48]=H=>S(i).qcomBatteryFg1RSocInfo.autoReload=H),"rail-style":R},{checked:Z(()=>w[162]||(w[162]=[M("开启自动刷新")])),unchecked:Z(()=>w[163]||(w[163]=[M("未开启自动刷新")])),_:1},8,["value"])]),S(i).qcomBatteryFg1RSocInfo.autoReload?(_e(),De("div",dX,[w[164]||(w[164]=O("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),O("p",null,[y(pe,{value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":w[49]||(w[49]=H=>S(i).qcomBatteryFg1RSocInfo.timer=H),size:"small",min:1,max:30,step:1},null,8,["value"]),y(fe,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":w[50]||(w[50]=H=>S(i).qcomBatteryFg1RSocInfo.timer=H),min:0,max:30,step:1},null,8,["value"])])])):qe("",!0)],2)])):qe("",!0),S(i).capacityRawInfo.current?(_e(),De("div",cX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,[M(nt(`${S(i).capacityRawInfo.current/100} %`)+" ",1),y(re,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:w[51]||(w[51]=H=>S(i).capacityRawInfo.reload())},{default:Z(()=>w[165]||(w[165]=[M("手动刷新")])),_:1}),y(Q,{class:"ml-2",value:S(i).capacityRawInfo.autoReload,"onUpdate:value":w[52]||(w[52]=H=>S(i).capacityRawInfo.autoReload=H),"rail-style":R},{checked:Z(()=>w[166]||(w[166]=[M("开启自动刷新")])),unchecked:Z(()=>w[167]||(w[167]=[M("未开启自动刷新")])),_:1},8,["value"])]),S(i).capacityRawInfo.autoReload?(_e(),De("div",fX,[w[168]||(w[168]=O("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),O("p",null,[y(pe,{value:S(i).capacityRawInfo.timer,"onUpdate:value":w[53]||(w[53]=H=>S(i).capacityRawInfo.timer=H),size:"small",min:1,max:30,step:1},null,8,["value"]),y(fe,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).capacityRawInfo.timer,"onUpdate:value":w[54]||(w[54]=H=>S(i).capacityRawInfo.timer=H),min:0,max:30,step:1},null,8,["value"])])])):qe("",!0)],2)])):qe("",!0),S(t).batteryInfo.chargeFullDesign?(_e(),De("div",hX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池出厂设计容量 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${S(t).batteryInfo.chargeFullDesign/1e3} mAh`),1)],2)])):qe("",!0),S(t).batteryInfo.chargeFull?(_e(),De("div",pX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池当前预估容量 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${S(t).batteryInfo.chargeFull/1e3} mAh`),1)],2)])):qe("",!0),S(t).batteryInfo.cycleCount?(_e(),De("div",mX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池循环充电次数 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${S(t).batteryInfo.cycleCount} 次`),1)],2)])):qe("",!0),S(t).batteryInfo.chargeFullDesign&&S(t).batteryInfo.chargeFull?(_e(),De("div",gX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池预估健康度 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${(S(t).batteryInfo.chargeFull/S(t).batteryInfo.chargeFullDesign*100).toFixed(2)} %`),1)],2)])):qe("",!0),S(t).batteryInfo.sohQcom?(_e(),De("div",vX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(高通) ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${S(t).batteryInfo.sohQcom} %`),1),O("p",null,nt(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohQcom/100)/1e3)} mAh`),1),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[169]||(w[169]=[O("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):qe("",!0),S(t).batteryInfo.sohMTK?(_e(),De("div",bX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度 ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${S(t).batteryInfo.sohMTK} %`),1),O("p",null,nt(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohMTK/100)/1e3)} - mAh`),1),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[170]||(w[170]=[O("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):qe("",!0),S(t).batteryInfo.sohXMPower?(_e(),De("div",xX,[O("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(小米) ",2),O("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[O("p",null,nt(`${S(t).batteryInfo.sohXMPower} %`),1),O("p",null,nt(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohXMPower/100)/1e3)} mAh`),1),y(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>w[171]||(w[171]=[O("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):qe("",!0)],2)],2)])])}}}),CX=NH({history:xH(),routes:[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:mq},{path:"/autoui",name:"autoui",component:wq},{path:"/settings",name:"settings",component:yX},{path:"/embedded-webview",name:"embedded-webview",component:()=>kn(()=>import("./EmbeddedWebView-DJOZ5Nq_.js"),__vite__mapDeps([0,1]))},{path:"/appStore",name:"appStore",component:()=>kn(()=>import("./AppStore-D_dE9Ohu.js"),[])},{path:"/logs",name:"logs",component:()=>kn(()=>import("./LogView-BiH1wBQ5.js"),__vite__mapDeps([2,3]))},{path:"/game-booster",name:"game-booster",component:()=>kn(()=>import("./GameBooster-DIBGjIgV.js"),[])},{path:"/game-turbo-config",name:"game-turbo-config",component:()=>kn(()=>import("./GameTurboConfig-D0TpXb5z.js"),__vite__mapDeps([4,3]))},{path:"/dot-black-list",name:"dot-black-list",component:()=>kn(()=>import("./DotBlackListView-jKoYt0Ju.js"),[])},{path:"/magic-control",name:"magic-control",component:()=>kn(()=>import("./MagicControlView-B2K2iPAw.js"),[])},{path:"/eggs",name:"eggs",component:()=>kn(()=>import("./HappyNewYearEgg-_tB5Tfdi.js"),[])}],scrollBehavior(e,t,o){return{top:0}}}),wX=AL({components:[Ft,uT,cT,xL,Zm,UO,vv,Um,gL,Du,I7,rn,lL,hL,Tu,n6,eP,em,rd,FL,yL,Bm,MB,vP,lO,oo,nL,NL,kP,NP,jP,G3,ML,im,yO,Wd,JO,wg,sv,Ut,TP,dm,cm,YA]}),rc=mp(Wj),cb=tC();cb.use(gC);rc.use(cb);rc.use(wX);rc.use(CX);rc.mount("#app");export{p9 as $,ui as A,Et as B,g9 as C,_X as D,Mt as E,t7 as F,YS as G,w3 as H,T3 as I,zs as J,ya as K,Oj as L,m6 as M,Cs as N,qh as O,n3 as P,nt as Q,ft as R,lb as S,Wv as T,Aq as U,b9 as V,It as W,WH as X,Ft as Y,Ut as Z,C9 as _,Xt as a,d9 as a0,WN as a1,eq as a2,V4 as a3,QG as a4,Vv as a5,F9 as a6,Nv as a7,rn as a8,h9 as a9,Ns as aA,_q as aB,Mq as aC,Rq as aD,kq as aE,S9 as aF,GH as aG,DR as aH,SX as aI,v9 as aa,Me as ab,EX as ac,kX as ad,VN as ae,sb as af,ke as ag,Fe as ah,ab as ai,gq as aj,m9 as ak,c9 as al,ld as am,db as an,f9 as ao,zX as ap,MX as aq,Hv as ar,m as as,u6 as at,E6 as au,La as av,Eo as aw,ub as ax,S6 as ay,F6 as az,Z as b,At as c,ye as d,at as e,_e as f,O as g,St as h,D as i,lo as j,De as k,S as l,y as m,xe as n,ut as o,qe as p,sd as q,$ as r,M as s,Sq as t,Tv as u,Fq as v,lt as w,Hh as x,oo as y,Gt as z}; + )`}},"模块设置")],-1)),I("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 模块设置,让功能在自定义中完美契合。 ",2)]),I("div",{class:xe(`mt-3 border-t ${S(t).isDarkMode?"divide-sothx-gray-color border-sothx-gray-color":"divide-gray-200 border-gray-200"}`)},[I("dl",{class:xe(`divide-y ${S(t).isDarkMode?"divide-sothx-gray-color":"divide-gray-200"}`)},[(q=S(t).moduleInfo)!=null&&q.id?(Me(),De("div",Uq,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块ID ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).moduleInfo.id||"获取失败"),3)])):Ke("",!0),(Te=S(t).moduleInfo)!=null&&Te.dir?(Me(),De("div",Kq,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块路径 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).moduleInfo.dir||"获取失败"),3)])):Ke("",!0),(Ne=S(t).moduleInfo)!=null&&Ne.version?(Me(),De("div",Gq,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本名 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).moduleInfo.version||"获取失败"),3)])):Ke("",!0),(j=S(t).moduleInfo)!=null&&j.versionCode?(Me(),De("div",qq,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本号 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).moduleInfo.versionCode||"获取失败"),3)])):Ke("",!0),I("div",Zq,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块工作模式 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[0]||(y[0]=V=>O(V)),"rail-style":L,value:S(o).isPatchMode,loading:H.value,disabled:S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:Z(()=>y[56]||(y[56]=[M("定制模式")])),unchecked:Z(()=>y[57]||(y[57]=[M("完整模式")])),_:1},8,["value","loading","disabled"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Me(),De("div",Xq,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统应用横屏优化 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[1]||(y[1]=V=>S(c).change(V)),"rail-style":L,value:S(c).status,loading:S(t).loading},{checked:Z(()=>y[58]||(y[58]=[M("已禁用系统应用横屏优化")])),unchecked:Z(()=>y[59]||(y[59]=[M("已启用系统应用横屏优化")])),_:1},8,["value","loading"]),C(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>y[60]||(y[60]=[I("p",null,"由于小米「应用横屏布局」BUG,Hyper OS 2 下部分系统应用可无法完全横屏工作,模块可以修复这个问题,但每次设备重启或修改模块规则,这些系统应用都将被强制重启,该功能默认启用,如「启用」将代表已接纳并知晓此副作用影响。 ",-1),I("p",null,"受此影响的系统应用:",-1),I("p",null,"超级小爱(com.miui.voiceassist)",-1),I("p",null,"小米浏览器(com.android.browser)",-1),I("p",null,"平板/手机管家(com.miui.securitycenter)",-1)])),_:1})],2)])):Ke("",!0),I("div",Yq,[S(t).MIOSVersion&&S(t).MIOSVersion>=1?(Me(),De("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"智能IO调度",2)):Ke("",!0),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(t).smartFocusIO==="on"?(Me(),At(ue,{key:0,type:"success"},{default:Z(()=>y[61]||(y[61]=[M("已启用智能IO调度")])),_:1})):(Me(),At(ue,{key:1,type:"info"},{default:Z(()=>y[62]||(y[62]=[M("已启用系统默认调度")])),_:1})),S(t).deviceInfo.socModel==="SM8475"&&S(t).androidTargetSdk&&S(t).androidTargetSdk>=34&&S(t).smartFocusIO!=="on"?(Me(),At(U,{key:2,class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>[y[64]||(y[64]=I("p",null,"您当前未启用「智能IO调度」,由于小米「磁盘IO调度」BUG,骁龙8+Gen1机型存在IO调度异常的问题,容易导致系统卡顿或者无响应,您可以通过安装「小米平板系统功能补全模块」来启用「智能IO调度」,提升系统IO性能体验。",-1)),C(se,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[2]||(y[2]=()=>T("小米平板系统功能补全模块","https://caiyun.139.com/m/i?135CmUuWuqGsk","original"))},{default:Z(()=>y[63]||(y[63]=[M("获取小米平板系统功能补全模块")])),_:1})]),_:1})):Ke("",!0)],2)]),I("div",Qq,[S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Me(),De("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"dm设备映射器",2)):Ke("",!0),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("div",Jq,[C(ue,{type:"success"},{default:Z(()=>[M("已回写: "+Je(S(h).hasWriteBack)+" MB",1)]),_:1})]),I("div",eZ,[C(ue,{type:"info"},{default:Z(()=>[M("总读取: "+Je(S(h).totalRead)+" MB",1)]),_:1})]),I("div",null,[C(ue,{type:"warning"},{default:Z(()=>[M("总回写: "+Je(S(h).totalWriteBack)+" MB",1)]),_:1})]),C(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>y[65]||(y[65]=[I("p",null,"该功能依赖「内存扩展」,请确保已经开启「内存扩展」",-1)])),_:1})],2)]),S(t).deviceName?(Me(),De("div",tZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备名称 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).deviceName||""),3)])):Ke("",!0),I("div",oZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," ROOT管理器 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).currentRootManager||"获取失败"),3)]),S(t).currentRootManager==="KernelSU"?(Me(),De("div",nZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 版本 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.KSU_VER||"获取失败"),3)])):Ke("",!0),S(t).currentRootManager==="KernelSU"?(Me(),De("div",rZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 用户空间版本号 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.KSU_VER_CODE||"获取失败"),3)])):Ke("",!0),S(t).currentRootManager==="KernelSU"?(Me(),De("div",iZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 内核空间版本号 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.KSU_KERNEL_VER_CODE||"获取失败"),3)])):Ke("",!0),S(t).currentRootManager==="APatch"?(Me(),De("div",aZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本名 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.APATCH_VER||"获取失败"),3)])):Ke("",!0),S(t).currentRootManager==="APatch"?(Me(),De("div",lZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本号 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.APATCH_VER_CODE||"获取失败"),3)])):Ke("",!0),S(t).currentRootManager==="Magisk"?(Me(),De("div",sZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.MAGISK_VER||"获取失败"),3)])):Ke("",!0),S(t).currentRootManager==="Magisk"?(Me(),De("div",uZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本号 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).rootManagerInfo.MAGISK_VER_CODE||"获取失败"),3)])):Ke("",!0),I("div",dZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 外观模式 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(Fe,{size:"large",trigger:"click",options:k,onSelect:z},{default:Z(()=>[C(se,{size:"small",strong:"",secondary:"",type:S(t).rhythmMode==="autoRhythm"?"error":"success"},{default:Z(()=>[M(Je(S(t).rhythmMode==="autoRhythm"&&"跟随系统"||S(t).rhythmMode==="lightMode"&&"浅色模式"||S(t).rhythmMode==="dartMode"&&"深色模式"),1)]),_:1},8,["type"])]),_:1})],2)]),I("div",cZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 应用字体 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(Fe,{size:"large",trigger:"click",options:_.value,onSelect:P},{default:Z(()=>[C(se,{size:"small",strong:"",secondary:"",type:F.value[S(E).currentFont].type},{default:Z(()=>[M(Je(S(E).currentFont),1)]),_:1},8,["type"])]),_:1},8,["options"])],2)]),I("div",fZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 激活口令 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"warning",secondary:"",loading:S(t).loading||S(o).loading||S(p),onClick:y[3]||(y[3]=V=>G())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(JG))]),_:1})]),default:Z(()=>[y[66]||(y[66]=M(" 导入激活口令 "))]),_:1},8,["loading"])],2)]),S(t).shamikoInfo.installed?(Me(),De("div",hZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Shamiko 工作模式 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[4]||(y[4]=V=>N(V)),"rail-style":L,value:S(t).shamikoInfo.mode==="whitelist",loading:S(t).loading},{checked:Z(()=>y[67]||(y[67]=[M("白名单模式")])),unchecked:Z(()=>y[68]||(y[68]=[M("黑名单模式")])),_:1},8,["value","loading"])],2)])):Ke("",!0),I("div",pZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 暗码拨号盘 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[5]||(y[5]=()=>_V())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(lq))]),_:1})]),default:Z(()=>[y[69]||(y[69]=M(" 暗码拨号盘 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:Z(()=>y[70]||(y[70]=[I("p",null,"Tips: 暗码必须以*#*#开头,且以#*#*结尾",-1),I("p",null,"eg: 开启 LSPosed 管理器的暗码:*#*#5776733#*#*",-1),I("p",null,"「安全警示: 暗码拨号器是面向开发者调试的功能,用于打开一些隐藏设定,如果您不了解暗码作用与功能建议不要轻易尝试,可能会导致您的设备数据丢失!」",-1)])),_:1})],2)]),I("div",mZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," LSPosed 管理器 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[6]||(y[6]=()=>LV())},{default:Z(()=>y[71]||(y[71]=[M(" LSPosed 管理器 ")])),_:1},8,["loading"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=1&&S(t).deviceCharacteristics==="tablet"?(Me(),De("div",gZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[73]||(y[73]=I("p",null,"工作台模式",-1)),S(t).enabledMiuiDesktopMode?Ke("",!0):(Me(),De("p",vZ,[C(se,{strong:"",secondary:"",size:"small",onClick:y[7]||(y[7]=()=>S(n).changeMiuiDesktopModeEnabled()),type:"warning"},{default:Z(()=>y[72]||(y[72]=[M(" 启用功能 ")])),_:1})]))],2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[8]||(y[8]=V=>S(n).changeMiuiDktMode(V)),"rail-style":L,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:Z(()=>y[74]||(y[74]=[M("工作台模式")])),unchecked:Z(()=>y[75]||(y[75]=[M("默认桌面模式")])),_:1},8,["disabled","value","loading"])],2)])):Ke("",!0),I("div",bZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},y[76]||(y[76]=[I("p",null,"传送门",-1)]),2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("div",null,[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[9]||(y[9]=()=>S(r).open())},{icon:Z(()=>y[77]||(y[77]=[I("img",{src:_q},null,-1)])),default:Z(()=>[y[78]||(y[78]=M(" 传送门 "))]),_:1},8,["loading"])]),S(r).isInstallMIUIContentExtension.value&&S(t).deviceCharacteristics==="tablet"?(Me(),At(U,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>[I("p",null,[y[80]||(y[80]=M("模块安装后可能会导致「传送门」被异常添加到「游戏工具箱」,您可以通过 ")),C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[10]||(y[10]=()=>S(r).fix())},{default:Z(()=>y[79]||(y[79]=[M(" 传送门异常修复 ")])),_:1},8,["loading"]),y[81]||(y[81]=M(" 移除「游戏工具箱」内的「传送门」"))]),I("p",xZ,[y[83]||(y[83]=M("由于小米「传送门」存在「应用黑名单」不定期重置的BUG,您可以通过 ")),C(Fe,{size:"large",trigger:"click",options:[{label:"应用黑名单固化",key:"onlyRead"},{label:"解除应用黑名单固化",key:"readAndWrite"}],onSelect:y[11]||(y[11]=V=>{V==="onlyRead"?S(r).setAuthIsOnlyRead():S(r).setAuthIsReadAndWrite()})},{default:Z(()=>[C(se,{size:"small",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{default:Z(()=>y[82]||(y[82]=[M(" 应用黑名单固化管理 ")])),_:1},8,["loading"])]),_:1}),y[84]||(y[84]=M(" 来固化「应用黑名单」的权限,避免被系统重置。"))])]),_:1})):Ke("",!0)],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Me(),De("div",yZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},y[85]||(y[85]=[I("p",null,"WinPlay Mobile",-1)]),2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("div",null,[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[12]||(y[12]=()=>NV())},{icon:Z(()=>y[86]||(y[86]=[I("img",{src:Mq},null,-1)])),default:Z(()=>[y[87]||(y[87]=M(" WinPlay Mobile "))]),_:1},8,["loading"])]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[88]||(y[88]=[I("p",null,"「WinPlay Mobile」是为小米平板量身定做的「游戏虚拟机」,可以运行市面上常见的 Windows 游戏。",-1),I("p",null,"目前尚处于测试阶段,暂时仅支持小米平板6S Pro ~",-1),I("p",null,"该功能依赖「AI百宝箱」和「WAE Display」,请确保已经安装这两个系统应用。",-1)])),_:1})],2)])):Ke("",!0),S(t).hasPenEnableControl?(Me(),De("div",CZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[90]||(y[90]=M(" 第三方触控笔管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ke("",!0):(Me(),De("p",wZ,[C(se,{strong:"",secondary:"",size:"small",onClick:y[13]||(y[13]=()=>S(w).enableSetting()),type:"warning"},{default:Z(()=>y[89]||(y[89]=[M(" 启用功能 ")])),_:1})]))],2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[14]||(y[14]=V=>S(w).changePenEnableMode(V)),"rail-style":L,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(w).currentPenEnable.value,loading:S(t).loading},{checked:Z(()=>y[91]||(y[91]=[M("已启用")])),unchecked:Z(()=>y[92]||(y[92]=[M("未启用")])),_:1},8,["disabled","value","loading"]),C(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>y[93]||(y[93]=[M("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_enable 开关映射时生效")])),_:1})],2)])):Ke("",!0),S(t).hasPenUpdateControl?(Me(),De("div",SZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[95]||(y[95]=M(" 手写笔驱动管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ke("",!0):(Me(),De("p",FZ,[C(se,{strong:"",secondary:"",size:"small",onClick:y[15]||(y[15]=()=>S(w).enableSetting()),type:"warning"},{default:Z(()=>y[94]||(y[94]=[M(" 启用功能 ")])),_:1})]))],2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[16]||(y[16]=V=>S(w).changePenUpdateMode(V)),"rail-style":L,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(w).currentPenUpdate.value,loading:S(t).loading},{checked:Z(()=>y[96]||(y[96]=[M("二代笔驱动")])),unchecked:Z(()=>y[97]||(y[97]=[M("一代笔驱动")])),_:1},8,["disabled","value","loading"]),C(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>y[98]||(y[98]=[I("p",null,"Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_update 开关映射时生效",-1)])),_:1})],2)])):Ke("",!0),S(t).hasKeyboardControl?(Me(),De("div",EZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[100]||(y[100]=M(" 键盘连接器管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ke("",!0):(Me(),De("p",kZ,[C(se,{strong:"",secondary:"",size:"small",onClick:y[17]||(y[17]=()=>S(w).enableSetting()),type:"warning"},{default:Z(()=>y[99]||(y[99]=[M(" 启用功能 ")])),_:1})]))],2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(Fe,{value:S(w).currentKeyboardModeSelect,size:"large",trigger:"click",options:S(w).keyboardModeOptions.value,onSelect:S(w).changeKeyboardMode},{default:Z(()=>[C(se,{strong:"",secondary:"",disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,size:"small",type:S(w).currentKeyboardModeSelect.value.type},{default:Z(()=>[M(Je(S(w).currentKeyboardModeSelect.value.label),1)]),_:1},8,["disabled","type"])]),_:1},8,["value","options","onSelect"]),C(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>y[101]||(y[101]=[M("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/keyboard 开关映射时生效")])),_:1})],2)])):Ke("",!0),I("div",_Z,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标光标样式 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(Fe,{size:"large",trigger:"click",options:[{label:"箭头",key:3},{label:"圆点",key:1},{label:"空心圆",key:0}],onSelect:y[18]||(y[18]=V=>{S(s).changeMiuiCursorStyleType(V)})},{default:Z(()=>[C(se,{size:"small",class:"mb-3 mr-3",type:"success",secondary:"",loading:S(t).loading},{default:Z(()=>[M(Je(S(s).currentMiuiCursorStyleType.value===3&&"箭头"||"")+" "+Je(S(s).currentMiuiCursorStyleType.value===1&&"圆点"||"")+" "+Je(S(s).currentMiuiCursorStyleType.value===0&&"空心圆"||""),1)]),_:1},8,["loading"])]),_:1}),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>[I("div",null,[y[104]||(y[104]=I("p",null,"由于小米BUG,部分系统存在开机后「鼠标光标样式」被异常重置的问题,模块提供「鼠标光标样式开机自配置」来解决这个问题,开启后每次开机会被配置为指定的「鼠标光标样式」,系统设置内的修改会在重启后失效。",-1)),C(K,{"onUpdate:value":y[19]||(y[19]=V=>S(s).changeAutoStartMiuiCursorStyleType(V)),"rail-style":L,class:"mt-5",value:!!S(s).currentAutoStartMiuiCursorStyleType.value,loading:S(t).loading},{checked:Z(()=>y[102]||(y[102]=[M("已启用开机自配置")])),unchecked:Z(()=>y[103]||(y[103]=[M("未启用开机自配置")])),_:1},8,["value","loading"])])]),_:1})],2)]),I("div",MZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标自然滚动 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[20]||(y[20]=V=>S(u).changeMouseGestureNaturalscroll(V)),"rail-style":L,value:S(u).currentMouseGestureNaturalscroll.value===1},{checked:Z(()=>y[105]||(y[105]=[M("已开启鼠标自然滚动")])),unchecked:Z(()=>y[106]||(y[106]=[M("未开启鼠标自然滚动")])),_:1},8,["value"]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[107]||(y[107]=[I("p",null,"开启后内容随手指移动",-1)])),_:1})],2)]),I("div",RZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标指针速度 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(fe,{size:"small",min:-7,"onUpdate:value":[y[21]||(y[21]=V=>Lv(V)),y[22]||(y[22]=V=>S(d).currentPointerSpeed.value=V)],max:7,value:S(d).currentPointerSpeed.value,step:1},null,8,["value"]),C(Ce,{"show-button":!1,class:"pt-3",readonly:"",value:S(d).currentPointerSpeed.value,"onUpdate:value":y[23]||(y[23]=V=>S(d).currentPointerSpeed.value=V),placeholder:"请输入鼠标指针速度",min:-7,max:7,step:1},null,8,["value"])],2)]),I("div",zZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 个性化主题导入 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"warning",secondary:"",loading:S(t).loading,onClick:y[24]||(y[24]=()=>HV())},{icon:Z(()=>y[108]||(y[108]=[I("img",{src:Hh},null,-1)])),default:Z(()=>[y[109]||(y[109]=M(" 导入个性化主题 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:Z(()=>[y[111]||(y[111]=I("p",null,"需要搭配 LSPosed 模块[主题破解],才能够正常导入[个性化主题],导入按钮位于界面最底部[从SD卡导入]~",-1)),C(se,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[25]||(y[25]=()=>T("主题破解","https://caiyun.139.com/m/i?135CmXA9aKh8Y","original"))},{default:Z(()=>y[110]||(y[110]=[M("获取主题破解")])),_:1})]),_:1})],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Me(),De("div",$Z,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 动态壁纸 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[26]||(y[26]=()=>$V())},{icon:Z(()=>y[112]||(y[112]=[I("img",{src:Hh},null,-1)])),default:Z(()=>[y[113]||(y[113]=M(" AI 动态壁纸 "))]),_:1},8,["loading"]),C(se,{strong:"",secondary:"",size:"small",circle:"",type:"error",class:"ml-2",onClick:y[27]||(y[27]=()=>BV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(S6))]),_:1})]),_:1})],2)])):Ke("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Me(),De("div",PZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[28]||(y[28]=()=>PV())},{icon:Z(()=>y[114]||(y[114]=[I("img",{src:Nh},null,-1)])),default:Z(()=>[y[115]||(y[115]=M(" 算力共享 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[116]||(y[116]=[I("p",null,"在附近高算力设备提供的算力支持下,平板获得部分 AI 功能",-1)])),_:1})],2)])):Ke("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics!=="tablet"?(Me(),De("div",AZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[29]||(y[29]=()=>AV())},{icon:Z(()=>y[117]||(y[117]=[I("img",{src:Nh},null,-1)])),default:Z(()=>[y[118]||(y[118]=M(" 算力共享 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[119]||(y[119]=[I("p",null,"将设备的 AI 算力共享给平板设备,让平板设备获得部分 AI 功能",-1)])),_:1})],2)])):Ke("",!0),I("div",BZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 超级小爱翻译 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[30]||(y[30]=()=>DV())},{icon:Z(()=>y[120]||(y[120]=[I("img",{src:sd},null,-1)])),default:Z(()=>[y[121]||(y[121]=M(" 超级小爱翻译 "))]),_:1},8,["loading"])],2)]),I("div",DZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 同声传译 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[31]||(y[31]=()=>TV())},{icon:Z(()=>y[122]||(y[122]=[I("img",{src:sd},null,-1)])),default:Z(()=>[y[123]||(y[123]=M(" AI 同声传译 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:Z(()=>y[124]||(y[124]=[I("p",null,'打电话或开会时,打开"AI同声传译",可以将双方的说话内容实时翻译给对方,帮助跨语言聊天。',-1),I("p",null,'Tips: 如无法打开请将"小爱翻译"和"超级小爱"升级到最新版',-1)])),_:1})],2)]),I("div",TZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏显示布局 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[32]||(y[32]=V=>R(V)),value:S(x).isSupportGameMode,"rail-style":L,disabled:S(t).deviceCharacteristics!=="tablet"||S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:Z(()=>y[125]||(y[125]=[M("已开启游戏显示布局")])),unchecked:Z(()=>[M(Je(S(t).androidTargetSdk&&S(t).androidTargetSdk<32?"不支持游戏显示布局":"未开启游戏显示布局"),1)]),_:1},8,["value","disabled"])],2)]),I("div",IZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 旋转建议提示按钮 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[33]||(y[33]=V=>X(V)),"rail-style":L,value:S(t).showRotationSuggestions},{checked:Z(()=>y[126]||(y[126]=[M("已启用旋转建议提示按钮")])),unchecked:Z(()=>y[127]||(y[127]=[M("已关闭旋转建议提示按钮")])),_:1},8,["value"])],2)]),S(t).deviceCharacteristics==="tablet"&&S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Me(),De("div",OZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 手势提示线(小白条) ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(K,{"onUpdate:value":y[34]||(y[34]=V=>S(l).changeIsHideGestureLine(V)),"rail-style":L,value:S(l).currentIsHideGestureLine.value===1},{checked:Z(()=>y[128]||(y[128]=[M("隐藏手势提示线")])),unchecked:Z(()=>y[129]||(y[129]=[M("显示手势提示线")])),_:1},8,["value"])],2)])):Ke("",!0),C(ee,{content:"开发中,未上线",cross:"",selectable:"","font-size":16,"line-height":16,width:192,height:128,"x-offset":12,"y-offset":28,rotate:-15},{default:Z(()=>[S(t).shamikoInfo.installed?(Me(),De("div",LZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 焕新存储 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:Z(()=>y[130]||(y[130]=[M(" 打开 焕新存储信息面板 ")])),_:1},8,["loading"]),C(U,{class:"mb-5 mt-5",type:"success","show-icon":!1,bordered:!1},{default:Z(()=>[I("div",null,[I("p",null,[y[132]||(y[132]=M("焕新存储启用状态:")),C(ue,{size:"small",class:"ml-3",type:"success",loading:S(t).loading,onClick:()=>{}},{default:Z(()=>y[131]||(y[131]=[M(" 已启用 ")])),_:1},8,["loading"])]),y[135]||(y[135]=I("p",null,"启用状态通常由小米云控控制,模块支持强制启用焕新存储,但该功能受系统底层支持情况而异,不支持的设备即使启用也不会生效。",-1)),C(K,{"onUpdate:value":()=>{},"rail-style":L,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:Z(()=>y[133]||(y[133]=[M("已强制启用焕新存储")])),unchecked:Z(()=>y[134]||(y[134]=[M("跟随系统默认云控规则")])),_:1},8,["disabled","value","loading"])])]),_:1}),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>[I("p",null,[y[137]||(y[137]=M("焕新存储激活状态: ")),C(se,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:Z(()=>y[136]||(y[136]=[M(" 已激活 ")])),_:1},8,["loading"])]),y[138]||(y[138]=I("p",null,"激活后仍然需要满足以下条件才会在特定时间触发焕新存储:",-1)),y[139]||(y[139]=I("p",null,"①夜间12点半-凌晨5点",-1)),y[140]||(y[140]=I("p",null,"②息屏状态",-1)),y[141]||(y[141]=I("p",null,"③电量大于75%(或保持手机充电)",-1)),y[142]||(y[142]=I("p",null,"④电池温度小于40℃",-1)),y[143]||(y[143]=I("p",null,"进行焕新存储期间检测到其中任意条件不满足,焕新存储会被中断,待满足后继续执行。",-1)),y[144]||(y[144]=I("p",null,"(焕新存储流程结束后,激活状态会被关闭,您可以前往Web UI 重新激活。)",-1))]),_:1})],2)])):Ke("",!0)]),_:1}),I("div",HZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Google 服务 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[35]||(y[35]=()=>IV())},{icon:Z(()=>y[145]||(y[145]=[I("img",{src:Rq},null,-1)])),default:Z(()=>[y[146]||(y[146]=M(" Google 服务 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[147]||(y[147]=[I("p",null,"仅在开启 Google 基础服务 下生效",-1)])),_:1})],2)]),I("div",NZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 隐身模式 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[36]||(y[36]=()=>$N())},{icon:Z(()=>[C(S(iq))]),default:Z(()=>[y[148]||(y[148]=M(" 隐身模式 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[149]||(y[149]=[I("p",null,"开启后系统将拒绝所有应用录音、定位和拍照,保护您的隐私安全",-1)])),_:1})],2)]),I("div",VZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 自动任务 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:y[37]||(y[37]=()=>OV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(nq))]),_:1})]),default:Z(()=>[y[150]||(y[150]=M(" 自动任务 "))]),_:1},8,["loading"])],2)]),I("div",WZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 实时字幕 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[38]||(y[38]=()=>SV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(aq))]),_:1})]),default:Z(()=>[y[151]||(y[151]=M(" 实时字幕 "))]),_:1},8,["loading"]),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[152]||(y[152]=[I("p",null,'Tips: 部分设备需要安装最新版"小爱翻译"或者强开「实时字幕」才能够正常使用!',-1)])),_:1})],2)]),I("div",jZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Mi剪辑 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[39]||(y[39]=()=>FV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(sq))]),_:1})]),default:Z(()=>[y[153]||(y[153]=M(" Mi剪辑 "))]),_:1},8,["loading"])],2)]),I("div",UZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 极暗模式 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[40]||(y[40]=()=>EV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(eq))]),_:1})]),default:Z(()=>[y[154]||(y[154]=M(" 极暗模式 "))]),_:1},8,["loading"])],2)]),I("div",KZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 颜色反转 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[41]||(y[41]=()=>kV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(cq))]),_:1})]),default:Z(()=>[y[155]||(y[155]=M(" 颜色反转 "))]),_:1},8,["loading"])],2)]),I("div",GZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 正在运行的服务 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[42]||(y[42]=()=>MV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(dq))]),_:1})]),default:Z(()=>[y[156]||(y[156]=M(" 正在运行的服务 "))]),_:1},8,["loading"])],2)]),I("div",qZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 内存使用量 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[43]||(y[43]=()=>zV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(uq))]),_:1})]),default:Z(()=>[y[157]||(y[157]=M(" 内存使用量 "))]),_:1},8,["loading"])],2)]),I("div",ZZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 通知日志 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[44]||(y[44]=()=>RV())},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(tq))]),_:1})]),default:Z(()=>[y[158]||(y[158]=M(" 通知日志 "))]),_:1},8,["loading"])],2)]),S(t).MIOSVersion?(Me(),De("div",XZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Xiaomi Hyper OS 版本号 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).MIOSVersion?`Xiaomi + Hyper OS ${S(t).MIOSVersion}`:"当前为MIUI"),3)])):Ke("",!0),S(t).systemVersion?(Me(),De("div",YZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统版本 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).systemVersion||""),3)])):Ke("",!0),S(t).systemPreVersion?(Me(),De("div",QZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 上次更新的系统版本 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).systemPreVersion||""),3)])):Ke("",!0),I("div",JZ,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Android Target Version ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).androidTargetSdk||"非Android设备环境"),3)]),I("div",eX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备类型 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).deviceCharacteristics==="tablet"?"平板(Pad)":"折叠屏(Fold)"),3)]),S(t).deviceInfo.socModel?(Me(),De("div",tX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc类型 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).deviceInfo.socModel||"获取失败"),3)])):Ke("",!0),S(t).deviceInfo.socName?(Me(),De("div",oX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc名称 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Je(S(t).deviceInfo.socName||"获取失败"),3)])):Ke("",!0),S(t).deviceInfo.display0Panel?(Me(),De("div",nX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备显示器信息(display0) ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(S(t).deviceInfo.display0Panel),1)],2)])):Ke("",!0),S(t).deviceInfo.memoryInfo?(Me(),De("div",rX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备DDR和UFS信息 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("div",iX,Je(S(t).deviceInfo.memoryInfo||"获取失败"),1)],2)])):Ke("",!0),I("div",aX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 性能监视器 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(Fe,{size:"large",trigger:"click",options:[{label:"打开性能监视器",key:"start"},{label:"关闭性能监视器",key:"stop"}],onSelect:y[45]||(y[45]=V=>{WN(V)})},{default:Z(()=>[C(se,{size:"small",class:"mb-3 mr-3",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(rq))]),_:1})]),default:Z(()=>[y[159]||(y[159]=M(" 性能监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),I("div",lX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 帧率监视器 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[C(Fe,{size:"large",trigger:"click",options:[{label:"打开帧率监视器",key:"open"},{label:"关闭帧率监视器",key:"close"}],onSelect:y[46]||(y[46]=V=>{V4(V==="open")})},{default:Z(()=>[C(se,{size:"small",class:"mb-3 mr-3",type:"info",secondary:"",loading:S(t).loading},{icon:Z(()=>[C(pe,null,{default:Z(()=>[C(S(oq))]),_:1})]),default:Z(()=>[y[160]||(y[160]=M(" 帧率监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),S(a).formatDisplayModeList.value.length?(Me(),De("div",sX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 分辨率及刷新率 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Me(!0),De(ft,null,Ci(S(a).formatDisplayModeList.value,V=>(Me(),De("div",{class:"mb-3 flex",key:V.id},[I("p",uX,"ID: "+Je(V.id),1),I("p",dX,"分辨率: "+Je(`${V.width}x${V.height}`),1),I("p",cX,"刷新率: "+Je(`${V.fps} Hz`),1),C(se,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>S(a).selectDisplayMode(V)},{default:Z(()=>y[161]||(y[161]=[M(" 应用该配置 ")])),_:2},1032,["loading","onClick"])]))),128))],2)])):Ke("",!0),S(a).supportHDRTypes.value.length?(Me(),De("div",fX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 支持的 HDR 类型 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Me(!0),De(ft,null,Ci(S(a).supportHDRTypes.value,(V,ge)=>(Me(),De("div",{class:"mb-3 flex",key:ge},[V===1?(Me(),De("p",hX,Je("HLG"))):Ke("",!0),V===2?(Me(),De("p",pX,Je("HDR10"))):Ke("",!0),V===3?(Me(),De("p",mX,Je("HDR10+"))):Ke("",!0),V===4?(Me(),De("p",gX,Je("Dolby Vision"))):Ke("",!0)]))),128))],2)])):Ke("",!0),S(i).qcomBatteryFg1RSocInfo.current?(Me(),De("div",vX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量(高通) ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,[M(Je(`${S(i).qcomBatteryFg1RSocInfo.current} %`)+" ",1),C(se,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[47]||(y[47]=V=>S(i).qcomBatteryFg1RSocInfo.reload())},{default:Z(()=>y[162]||(y[162]=[M("手动刷新")])),_:1}),C(K,{class:"ml-2",value:S(i).qcomBatteryFg1RSocInfo.autoReload,"onUpdate:value":y[48]||(y[48]=V=>S(i).qcomBatteryFg1RSocInfo.autoReload=V),"rail-style":L},{checked:Z(()=>y[163]||(y[163]=[M("开启自动刷新")])),unchecked:Z(()=>y[164]||(y[164]=[M("未开启自动刷新")])),_:1},8,["value"])]),S(i).qcomBatteryFg1RSocInfo.autoReload?(Me(),De("div",bX,[y[165]||(y[165]=I("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),I("p",null,[C(fe,{value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[49]||(y[49]=V=>S(i).qcomBatteryFg1RSocInfo.timer=V),size:"small",min:1,max:30,step:1},null,8,["value"]),C(Ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[50]||(y[50]=V=>S(i).qcomBatteryFg1RSocInfo.timer=V),min:0,max:30,step:1},null,8,["value"])])])):Ke("",!0)],2)])):Ke("",!0),S(i).capacityRawInfo.current?(Me(),De("div",xX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,[M(Je(`${S(i).capacityRawInfo.current/100} %`)+" ",1),C(se,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[51]||(y[51]=V=>S(i).capacityRawInfo.reload())},{default:Z(()=>y[166]||(y[166]=[M("手动刷新")])),_:1}),C(K,{class:"ml-2",value:S(i).capacityRawInfo.autoReload,"onUpdate:value":y[52]||(y[52]=V=>S(i).capacityRawInfo.autoReload=V),"rail-style":L},{checked:Z(()=>y[167]||(y[167]=[M("开启自动刷新")])),unchecked:Z(()=>y[168]||(y[168]=[M("未开启自动刷新")])),_:1},8,["value"])]),S(i).capacityRawInfo.autoReload?(Me(),De("div",yX,[y[169]||(y[169]=I("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),I("p",null,[C(fe,{value:S(i).capacityRawInfo.timer,"onUpdate:value":y[53]||(y[53]=V=>S(i).capacityRawInfo.timer=V),size:"small",min:1,max:30,step:1},null,8,["value"]),C(Ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).capacityRawInfo.timer,"onUpdate:value":y[54]||(y[54]=V=>S(i).capacityRawInfo.timer=V),min:0,max:30,step:1},null,8,["value"])])])):Ke("",!0)],2)])):Ke("",!0),S(t).batteryInfo.chargeFullDesign?(Me(),De("div",CX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池出厂设计容量 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${S(t).batteryInfo.chargeFullDesign/1e3} mAh`),1)],2)])):Ke("",!0),S(t).batteryInfo.chargeFull?(Me(),De("div",wX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池当前预估容量 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${S(t).batteryInfo.chargeFull/1e3} mAh`),1)],2)])):Ke("",!0),S(t).batteryInfo.cycleCount?(Me(),De("div",SX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池循环充电次数 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${S(t).batteryInfo.cycleCount} 次`),1)],2)])):Ke("",!0),S(t).batteryInfo.chargeFullDesign&&S(t).batteryInfo.chargeFull?(Me(),De("div",FX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池预估健康度 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${(S(t).batteryInfo.chargeFull/S(t).batteryInfo.chargeFullDesign*100).toFixed(2)} %`),1)],2)])):Ke("",!0),S(t).batteryInfo.sohQcom?(Me(),De("div",EX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(高通) ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${S(t).batteryInfo.sohQcom} %`),1),I("p",null,Je(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohQcom/100)/1e3)} mAh`),1),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[170]||(y[170]=[I("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ke("",!0),S(t).batteryInfo.sohMTK?(Me(),De("div",kX,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度 ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${S(t).batteryInfo.sohMTK} %`),1),I("p",null,Je(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohMTK/100)/1e3)} + mAh`),1),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[171]||(y[171]=[I("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ke("",!0),S(t).batteryInfo.sohXMPower?(Me(),De("div",_X,[I("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(小米) ",2),I("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[I("p",null,Je(`${S(t).batteryInfo.sohXMPower} %`),1),I("p",null,Je(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohXMPower/100)/1e3)} mAh`),1),C(U,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:Z(()=>y[172]||(y[172]=[I("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ke("",!0)],2)],2)])])}}}),RX=NH({history:xH(),routes:[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:xq},{path:"/autoui",name:"autoui",component:kq},{path:"/settings",name:"settings",component:MX},{path:"/embedded-webview",name:"embedded-webview",component:()=>kn(()=>import("./EmbeddedWebView-LKF5z37A.js"),__vite__mapDeps([0,1]))},{path:"/appStore",name:"appStore",component:()=>kn(()=>import("./AppStore-Ckh5fJ-R.js"),[])},{path:"/logs",name:"logs",component:()=>kn(()=>import("./LogView-D27DD6zV.js"),__vite__mapDeps([2,3]))},{path:"/game-booster",name:"game-booster",component:()=>kn(()=>import("./GameBooster-SDT375Ma.js"),[])},{path:"/game-turbo-config",name:"game-turbo-config",component:()=>kn(()=>import("./GameTurboConfig-CR-HzL6D.js"),__vite__mapDeps([4,3]))},{path:"/dot-black-list",name:"dot-black-list",component:()=>kn(()=>import("./DotBlackListView-X94-LTpo.js"),[])},{path:"/magic-control",name:"magic-control",component:()=>kn(()=>import("./MagicControlView-C3_04WRt.js"),[])},{path:"/eggs",name:"eggs",component:()=>kn(()=>import("./HappyNewYearEgg-BbjJ5Ka4.js"),[])}],scrollBehavior(e,t,o){return{top:0}}}),zX=AL({components:[Ft,uT,cT,xL,Zm,UO,vv,Um,gL,Du,I7,rn,lL,hL,Tu,n6,eP,em,rd,FL,yL,Bm,MB,vP,lO,to,nL,NL,kP,NP,jP,G3,ML,im,yO,Wd,JO,wg,sv,Kt,TP,dm,cm,YA]}),rc=mp(Gj),cb=tC();cb.use(gC);rc.use(cb);rc.use(zX);rc.use(RX);rc.mount("#app");export{p9 as $,ui as A,Et as B,g9 as C,DX as D,Mt as E,t7 as F,YS as G,w3 as H,T3 as I,zs as J,ya as K,Vj as L,m6 as M,Cs as N,qh as O,n3 as P,Je as Q,ft as R,lb as S,Wv as T,Oq as U,b9 as V,It as W,WH as X,Ft as Y,Kt as Z,C9 as _,Xt as a,d9 as a0,WN as a1,rq as a2,V4 as a3,oq as a4,Vv as a5,F9 as a6,Nv as a7,rn as a8,h9 as a9,Ns as aA,$q as aB,Pq as aC,Aq as aD,zq as aE,S9 as aF,GH as aG,DR as aH,$X as aI,v9 as aa,_e as ab,AX as ac,BX as ad,VN as ae,sb as af,ke as ag,Se as ah,ab as ai,yq as aj,m9 as ak,c9 as al,ld as am,db as an,f9 as ao,OX as ap,TX as aq,Hv as ar,m as as,u6 as at,E6 as au,La as av,Eo as aw,ub as ax,S6 as ay,F6 as az,Z as b,At as c,ye as d,at as e,Me as f,I as g,Ct as h,D as i,ao as j,De as k,S as l,C as m,xe as n,ut as o,Ke as p,sd as q,$ as r,M as s,_q as t,Tv as u,Mq as v,lt as w,Hh as x,to as y,Vt as z}; diff --git a/module_src/webroot/index.html b/module_src/webroot/index.html index ecf7c227..4baf87c9 100644 --- a/module_src/webroot/index.html +++ b/module_src/webroot/index.html @@ -5,7 +5,7 @@ 完美横屏应用计划 For Web UI - +