From 842e02b9d7ae765942e166779a3bf84ead2b8d12 Mon Sep 17 00:00:00 2001 From: adams549659584 <13760614423@163.com> Date: Mon, 22 May 2023 12:43:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:zap:=20=E5=90=8C=E6=AD=A5=E5=AE=98?= =?UTF-8?q?=E7=BD=91=E6=9C=80=E6=96=B0=E3=80=81=E6=96=B0=E5=A2=9E=E5=9B=BE?= =?UTF-8?q?=E5=83=8F=E5=88=9B=E5=BB=BA=E5=8A=9F=E8=83=BD=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E5=BA=93=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +- common/proxy.go | 1 + docker/docker-compose.yml | 2 + frontend/package.json | 2 +- frontend/public/js/bing/chat/amd.js | 2 +- frontend/public/js/bing/chat/config.js | 434 ++++-- frontend/public/js/bing/chat/core.js | 6 +- frontend/public/js/bing/chat/global.js | 10 +- frontend/src/components/ChatNav/ChatNav.vue | 16 +- .../src/components/ChatNav/ChatNavItem.vue | 2 +- .../ChatPromptStore/ChatPromptItem.vue | 4 +- .../ChatPromptStore/ChatPromptStore.vue | 4 +- .../components/CreateImage/CreateImage.vue | 65 + .../chat/components/ChatPrompt/ChatPrompt.vue | 10 +- .../components/ChatPrompt/ChatPromptItem.vue | 4 +- frontend/types/global.d.ts | 4 + web/assets/index-9d6f4de0.css | 1 - web/assets/index-ad891f88.css | 1 + web/assets/index-d9a4ae7e.js | 1160 ----------------- web/assets/index-ec5fa021.js | 1160 +++++++++++++++++ .../{index-6982f66e.js => index-f360c8c0.js} | 58 +- web/index.html | 4 +- web/js/bing/chat/amd.js | 2 +- web/js/bing/chat/config.js | 434 ++++-- web/js/bing/chat/core.js | 6 +- web/js/bing/chat/global.js | 10 +- web/sw.js | 2 +- 27 files changed, 1985 insertions(+), 1427 deletions(-) create mode 100644 frontend/src/components/CreateImage/CreateImage.vue delete mode 100644 web/assets/index-9d6f4de0.css create mode 100644 web/assets/index-ad891f88.css delete mode 100644 web/assets/index-d9a4ae7e.js create mode 100644 web/assets/index-ec5fa021.js rename web/assets/{index-6982f66e.js => index-f360c8c0.js} (81%) diff --git a/README.md b/README.md index 555cbfd435..e4b7f3c02e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ⭐ 支持现有开源提示词库 -⭐ 需要画图等高级功能时,可登录微软账号设置用户 Cookie 进行体验 +⭐ 需要画图等高级功能时(需选更有创造力模式或右上角设置中的图像创建),可登录微软账号设置用户 Cookie 进行体验 ⭐ 遇到一切问题,先点左下角 ![新主题](./docs/img/bing-clear.png) 试试,不行使用刷新大法(Shift + F5 或 Ctrl + Shift + R 或 右上角设置中的一键重置),最终大招就 清理浏览器缓存 及 Cookie ,比如(24 小时限制、未登录提示等等) @@ -100,7 +100,7 @@ Go_Proxy_BingAI_SOCKS_URL=192.168.0.88:1070 # Socks 账号、密码 可选 Go_Proxy_BingAI_SOCKS_USER=xxx Go_Proxy_BingAI_SOCKS_PWD=xxx -# 默认用户 Cookie 设置,可选,固定前缀 Go_Proxy_BingAI_USER_TOKEN 可设置多个,未登录用户将随机使用 +# 默认用户 Cookie 设置,可选,不推荐使用,固定前缀 Go_Proxy_BingAI_USER_TOKEN 可设置多个,未登录用户将随机使用,多人共用将很快触发图形验证,并很快达到该账号的24小时限制 Go_Proxy_BingAI_USER_TOKEN_1=xxx Go_Proxy_BingAI_USER_TOKEN_2=xxx Go_Proxy_BingAI_USER_TOKEN_3=xxx ... @@ -130,7 +130,7 @@ docker run -e Go_Proxy_BingAI_SOCKS_URL=192.168.0.88:1070 -e Go_Proxy_BingAI_SOC - docker compose 示例 -```bash +```yaml version: '3' services: @@ -147,6 +147,8 @@ services: # - Go_Proxy_BingAI_SOCKS_URL=192.168.0.88:1070 # - Go_Proxy_BingAI_SOCKS_USER=xxx # - Go_Proxy_BingAI_SOCKS_PWD=xxx + # - Go_Proxy_BingAI_USER_TOKEN_1=xxx + # - Go_Proxy_BingAI_USER_TOKEN_2=xxx ``` ### Release diff --git a/common/proxy.go b/common/proxy.go index c828e5d74f..af5b449eac 100644 --- a/common/proxy.go +++ b/common/proxy.go @@ -193,6 +193,7 @@ func NewSingleHostReverseProxy(target *url.URL) *httputil.ReverseProxy { if strings.HasPrefix(location, delLocationDomain) { res.Header.Set("Location", location[len(delLocationDomain):]) log.Println("Del Location Domain :", location) + log.Println("RandIP : ", randIP) } } } diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index dd3ec190b0..ea2ee01269 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -14,6 +14,8 @@ services: # - Go_Proxy_BingAI_SOCKS_URL=192.168.0.88:1070 # - Go_Proxy_BingAI_SOCKS_USER=xxx # - Go_Proxy_BingAI_SOCKS_PWD=xxx + # - Go_Proxy_BingAI_USER_TOKEN_1=xxx + # - Go_Proxy_BingAI_USER_TOKEN_2=xxx # go-proxy-bingai: # # 镜像名称 diff --git a/frontend/package.json b/frontend/package.json index b28eb4fa69..cc40cb1d05 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "go-proxy-bingai", - "version": "1.6.8", + "version": "1.7.0", "private": true, "scripts": { "dev": "vite", diff --git a/frontend/public/js/bing/chat/amd.js b/frontend/public/js/bing/chat/amd.js index c15dde7325..d5f1062e4c 100644 --- a/frontend/public/js/bing/chat/amd.js +++ b/frontend/public/js/bing/chat/amd.js @@ -1,2 +1,2 @@ /* eslint-disable */ -var amd,define,require;(function(n){function e(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}function r(n){if(n){if(n)return u(n)}else{if(!f){for(var r in t)u(r);f=!0}return i}}function u(n){var s,e;if(i[n])return i[n];if(t.hasOwnProperty(n)){var h=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length<2)throw"invalid usage";else if(f.length>2)for(s=f.slice(2,f.length),e=0;e0)for(o=!1,f=0;f=0?encodeURIComponent(atob(decodeURIComponent(h[1]))):h[1])):f=encodeURIComponent(n[u]("href")),clc.furl&&!n[u]("data-private")?o+="&url="+f:clc.mfurl&&(o+="&abc="+f));r&&(o+="&source="+r);c="";clc.mc&&(c="&c="+ctcc++);l="&"+o+c;_w.si_sbwu(l)||_w[e]&&_w[e](l,n,i,s);break}if(t)break}}catch(v){_w.SharedLogHelper?SharedLogHelper.LogWarning("clickEX",null,v):(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Warning","FID":"CI","Name":"JSWarning","Text":'+v.message+"}]"}return!0};_w.si_sbwu||(_w.si_sbwu=function(){return!1}),function(){_w._G&&(_G.si_ct_e="click")}();var wlc_d = 1500, wlc_t =63819372483;;var perf;(function(n){function f(n){return i.hasOwnProperty(n)?i[n]:n}function e(n){var t="S";return n==0?t="P":n==2&&(t="M"),t}function o(n){for(var c,i=[],t={},r,l=0;l").concat(i,"<\/TS><\/D><\/E>"),s="".concat(h,"<\/Events>").concat(i,"<\/STS><\/ClientInstRequest>"),u=!_w.navigator||!navigator[o];if(!u)try{navigator[o](e,s)}catch(c){u=!0}u&&(r=sj_gx(),r.open("POST",e,!0),r.setRequestHeader("Content-Type","text/xml"),r.send(s))}}(window.perf);var perf;(function(n){function a(){return c(Math.random()*1e4)}function o(){return y?c(f.now())+l:+new Date}function v(n,r,f){t.length===0&&i&&sb_st(u,1e3);t.push({k:n,v:r,t:f})}function p(n){return i||(r=n),!i}function w(n,t){t||(t=o());v(n,t,0)}function b(n,t){v(n,t,1)}function u(){var u,f;if(t.length){for(u=0;u=0){for(r in f)h=f[r],typeof h=="number"&&h>0&&r!=="navigationStart"&&r!==s&&u.mark(r,h);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("nav",s in f?f[s]:performance[s].type)}e="connection";c="";_w.navigator&&navigator[e]&&(c=',"net":"'.concat(navigator[e].type,'"'),navigator[e].downlinkMax&&(c+=',"dlMax":"'.concat(navigator[e].downlinkMax,'"')));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+o.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+c+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});var sj_log=function(n,t,i){var r=new RegExp('"',"g");(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"'+n+'","FID":"CI","Name":"'+t+'","Text":"'+escape(i.replace(r,""))+'"}]'};var BM=BM||{},adrule="."+_G.adc+" > ul";BM.rules={".b_scopebar":[0,80,0],".b_logo":[-1,-1,0],".b_searchboxForm":[100,19,0],"#id_h":[-1,-1,0],"#b_tween":[-1,-1,1],"#b_results":[100,-1,1],"#b_context":[710,-1,1],"#b_navheader":[-1,-1,0],"#bfb-answer":[-1,-1,1],".tab-menu > ul":[-1,-1,1],".b_footer":[0,-1,0],"#b_notificationContainer":[-1,-1,0],"#ajaxMaskLayer":[-1,-1,0],"img,div[data-src],.rms_img":[-1,-1,0],iframe:[-1,-1,0]};BM.rules[adrule]=[-1,-1,1];var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u="innerWidth"in window?window.innerWidth:i.clientWidth,f="innerHeight"in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||"default";n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t="V";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?"":" >*",f=document.querySelectorAll(u),r=0;r2)for(s=f.slice(2,f.length),e=0;e0)for(o=!1,f=0;f=0?encodeURIComponent(atob(decodeURIComponent(h[1]))):h[1])):f=encodeURIComponent(n[u]("href")),clc.furl&&!n[u]("data-private")?o+="&url="+f:clc.mfurl&&(o+="&abc="+f));r&&(o+="&source="+r);c="";clc.mc&&(c="&c="+ctcc++);l="&"+o+c;_w.si_sbwu(l)||_w[e]&&_w[e](l,n,i,s);break}if(t)break}}catch(v){_w.SharedLogHelper?SharedLogHelper.LogWarning("clickEX",null,v):(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Warning","FID":"CI","Name":"JSWarning","Text":'+v.message+"}]"}return!0};_w.si_sbwu||(_w.si_sbwu=function(){return!1}),function(){_w._G&&(_G.si_ct_e="click")}();var wlc_d = 1500, wlc_t =63820323883;;var perf;(function(n){function f(n){return i.hasOwnProperty(n)?i[n]:n}function e(n){var t="S";return n==0?t="P":n==2&&(t="M"),t}function o(n){for(var c,i=[],t={},r,l=0;l").concat(i,"<\/TS><\/D><\/E>"),s="".concat(h,"<\/Events>").concat(i,"<\/STS><\/ClientInstRequest>"),u=!_w.navigator||!navigator[o];if(!u)try{navigator[o](e,s)}catch(c){u=!0}u&&(r=sj_gx(),r.open("POST",e,!0),r.setRequestHeader("Content-Type","text/xml"),r.send(s))}}(window.perf);var perf;(function(n){function a(){return c(Math.random()*1e4)}function o(){return y?c(f.now())+l:+new Date}function v(n,r,f){t.length===0&&i&&sb_st(u,1e3);t.push({k:n,v:r,t:f})}function p(n){return i||(r=n),!i}function w(n,t){t||(t=o());v(n,t,0)}function b(n,t){v(n,t,1)}function u(){var u,f;if(t.length){for(u=0;u=0){for(r in f)h=f[r],typeof h=="number"&&h>0&&r!=="navigationStart"&&r!==s&&u.mark(r,h);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("nav",s in f?f[s]:performance[s].type)}e="connection";c="";_w.navigator&&navigator[e]&&(c=',"net":"'.concat(navigator[e].type,'"'),navigator[e].downlinkMax&&(c+=',"dlMax":"'.concat(navigator[e].downlinkMax,'"')));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+o.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+c+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});var sj_log=function(n,t,i){var r=new RegExp('"',"g");(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"'+n+'","FID":"CI","Name":"'+t+'","Text":"'+escape(i.replace(r,""))+'"}]'};var BM=BM||{},adrule="."+_G.adc+" > ul";BM.rules={".b_scopebar":[0,80,0],".b_logo":[-1,-1,0],".b_searchboxForm":[100,19,0],"#id_h":[-1,-1,0],"#b_tween":[-1,-1,1],"#b_results":[100,-1,1],"#b_context":[710,-1,1],"#b_navheader":[-1,-1,0],"#bfb-answer":[-1,-1,1],".tab-menu > ul":[-1,-1,1],".b_footer":[0,-1,0],"#b_notificationContainer":[-1,-1,0],"#ajaxMaskLayer":[-1,-1,0],"img,div[data-src],.rms_img":[-1,-1,0],iframe:[-1,-1,0]};BM.rules[adrule]=[-1,-1,1];var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u="innerWidth"in window?window.innerWidth:i.clientWidth,f="innerHeight"in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||"default";n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t="V";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?"":" >*",f=document.querySelectorAll(u),r=0;r 0 ? r + t : ''), n + t; } var currentQuery = null; -var fab_config = { fabStyle: 1, fabSbAction: 'FocusSearchBox', fabSbActionHover: 'None', fabSbActionData: 'None', fabTooltip: '', micFabAlwaysVisible: false, fabClickNoAS: true }; +var fab_config = { fabStyle: 1, fabSbAction: 'FocusSearchBox', fabSbActionHover: 'None', fabSbActionData: 'None', fabTooltip: '', micFabAlwaysVisible: false, fabClickNoAS: false }; sj_be( _w, 'click', diff --git a/frontend/public/js/bing/chat/core.js b/frontend/public/js/bing/chat/core.js index b302e430f1..88ccd66b17 100644 --- a/frontend/public/js/bing/chat/core.js +++ b/frontend/public/js/bing/chat/core.js @@ -12,9 +12,9 @@ })(_w.onload, _w.si_PP); _w.rms.js( { 'A:rms:answers:Shared:BingCore.Bundle': '/rp/oJ7sDoXkkNOICsnFb57ZJHBrHcw.br.js' }, - { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/zIWGH0CtsF1-0jQOvc01HUV4uVQ.br.js' }, + { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/XBHyxbMN-5ifYmS8GGYyywmwILI.br.js' }, { 'A:rms:answers:VisualSystem:ConversationScope': '/rp/YFRe970EMtFzujI9pBYZBGpdHEo.br.js' }, - { 'A:rms:answers:CodexBundle:cib-bundle': '/rp/w7_rwsxIfLFmlNCVn4MbZuevoMI.br.js' }, + { 'A:rms:answers:CodexBundle:cib-bundle': '/rp/-2UI-r71AEUWE8zNKc6Vdf8wVfc.br.js' }, { 'A:rms:answers:SharedStaticAssets:speech-sdk': '/rp/6slp3E-BqFf904Cz6cCWPY1bh9E.br.js' }, - { 'A:rms:answers:Web:SydneyFullScreenConv': '/rp/gyKl-0hbVjb5hHMqC3ZejA90ZN4.br.js' }, + { 'A:rms:answers:Web:SydneyFullScreenConv': '/rp/R-NU1gYWw5NsYTEXrFn1hwhdP5g.br.js' }, ); diff --git a/frontend/public/js/bing/chat/global.js b/frontend/public/js/bing/chat/global.js index a45d54a27d..fd16419a16 100644 --- a/frontend/public/js/bing/chat/global.js +++ b/frontend/public/js/bing/chat/global.js @@ -44,13 +44,13 @@ _G = { Mkt: 'en-US', RevIpCC: 'us', RTL: false, - Ver: '20', + Ver: '22', IG: '0', - EventID: '645c60c3f55a42549d538c31cf5dd366', + EventID: '646ae52b797848988e6618d6205cf436', V: 'web', P: 'SERP', DA: 'PUSE01', - SUIH: 'FfN6lYBDNDOEzj4vnSOJqQ', + SUIH: 'BtAuR605UV0NIg083Tp9HA', adc: 'b_ad', // logsb 启用 sendBeacon 推送日志,并在 sendBeacon 阻止 EF: { cookss: 1, bmcov: 1, crossdomainfix: 1, bmasynctrigger: 1, bmasynctrigger3: 1, newtabsloppyclick: 1, chevroncheckmousemove: 1, logsb: 1 }, @@ -59,6 +59,10 @@ _G = { _G.lsUrl = '/fd/ls/l?IG=' + _G.IG; curUrl = '/search'; function si_T(a) { + // if (document.images) { + // _G.GPImg = new Image(); + // _G.GPImg.src = _G.gpUrl + 'IG=' + _G.IG + '&' + a; + // } return true; } _G.CTT = '3000'; diff --git a/frontend/src/components/ChatNav/ChatNav.vue b/frontend/src/components/ChatNav/ChatNav.vue index 6a5c3fbe68..3e77795805 100644 --- a/frontend/src/components/ChatNav/ChatNav.vue +++ b/frontend/src/components/ChatNav/ChatNav.vue @@ -1,6 +1,6 @@ + + diff --git a/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue b/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue index a12a18b5b4..aa66b8cb0a 100644 --- a/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue +++ b/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue @@ -6,7 +6,7 @@ import { usePromptStore, type IPrompt } from '@/stores/modules/prompt'; import { storeToRefs } from 'pinia'; import VirtualList from 'vue3-virtual-scroll-list'; import ChatPromptItem from './ChatPromptItem.vue'; -import { sleep } from '@/utils/utils'; +import { isMobile, sleep } from '@/utils/utils'; import cookies from '@/utils/cookies'; import LoadingSpinner from '@/components/LoadingSpinner/LoadingSpinner.vue'; @@ -34,6 +34,7 @@ const isShowHistory = computed(() => { onMounted(async () => { await initChat(); + // CIB.vm.isMobile = isMobile(); checkUserToken(); // show SydneyFullScreenConv.initWithWaitlistUpdate({ cookLoc: {} }, 10); @@ -98,8 +99,13 @@ const hackStyle = () => { serpEle?.setAttribute('alignment', 'center'); const conversationEle = serpEle?.shadowRoot?.querySelector('cib-conversation') as HTMLElement; // todo 反馈暂时无法使用,先移除 - conversationEle?.shadowRoot?.querySelector('cib-welcome-container')?.shadowRoot?.querySelector('.learn-tog-item')?.remove(); + const welcomeEle = conversationEle?.shadowRoot?.querySelector('cib-welcome-container'); + welcomeEle?.shadowRoot?.querySelector('.learn-tog-item')?.remove(); serpEle?.shadowRoot?.querySelector('cib-serp-feedback')?.remove(); + if (isMobile()) { + welcomeEle?.shadowRoot?.querySelector('.container-item')?.remove(); + CIB.vm.actionBar.input.placeholder = '有问题尽管问我...("/" 触发提示词)'; + } // 加入css const conversationStyleEle = document.createElement('style'); conversationStyleEle.innerText = conversationCssText; diff --git a/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue b/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue index 10a8a09017..fd67a834f8 100644 --- a/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue +++ b/frontend/src/views/chat/components/ChatPrompt/ChatPromptItem.vue @@ -32,7 +32,9 @@ const selectPrompt = (item: IPrompt) => { @click="selectPrompt(source)" > {{ source.prompt }} diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index 3f6b01ce79..16a2409797 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -183,6 +183,10 @@ declare const CIB: { expiryInMinutes: number; }; messaging: { + /** + * 单次最大对话数 + */ + maxTurnsPerConversation: number; /** * 打字机速度调节,默认 1000 / 15 = 55 (每秒15字?) */ diff --git a/web/assets/index-9d6f4de0.css b/web/assets/index-9d6f4de0.css deleted file mode 100644 index 02eb77568e..0000000000 --- a/web/assets/index-9d6f4de0.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.bottom-\[110px\]{bottom:110px}.right-4{right:1rem}.right-6{right:1.5rem}.top-6{top:1.5rem}.float-right{float:right}.ml-2{margin-left:.5rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[40vh\]{height:40vh}.h-\[60vh\]{height:60vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-auto{width:auto}.w-full{width:100%}.max-w-\[1060px\]{max-width:1060px}.max-w-\[150px\]{max-width:150px}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1280px){.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[680px\]{max-width:680px}.xl\:basis-0{flex-basis:0px}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-ad891f88.css b/web/assets/index-ad891f88.css new file mode 100644 index 0000000000..e1750dc204 --- /dev/null +++ b/web/assets/index-ad891f88.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.bottom-\[110px\]{bottom:110px}.left-0{left:0px}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0px}.top-6{top:1.5rem}.float-right{float:right}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-2{margin-left:.5rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[30vh\]{height:30vh}.h-\[350px\]{height:350px}.h-\[40vh\]{height:40vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-\[300px\]{width:300px}.w-\[310px\]{width:310px}.w-\[56px\]{width:56px}.w-full{width:100%}.max-w-\[1060px\]{max-width:1060px}.max-w-\[120px\]{max-width:120px}.max-w-\[310px\]{max-width:310px}.flex-1{flex:1 1 0%}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.bg-blue-100\/10{background-color:#dbeafe1a}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-\[\#c2c2c2\]{--tw-text-opacity: 1;color:rgb(194 194 194 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1024px){.lg\:w-\[540px\]{width:540px}}@media (min-width: 1280px){.xl\:block{display:block}.xl\:h-\[520px\]{height:520px}.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[475px\]{width:475px}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:w-auto{width:auto}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[650px\]{max-width:650px}.xl\:basis-0{flex-basis:0px}.xl\:px-10{padding-left:2.5rem;padding-right:2.5rem}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-d9a4ae7e.js b/web/assets/index-d9a4ae7e.js deleted file mode 100644 index e8583bb709..0000000000 --- a/web/assets/index-d9a4ae7e.js +++ /dev/null @@ -1,1160 +0,0 @@ -import{r as E,w as Ce,o as We,a as Qe,i as Oa,c as F,b as Ba,h as Ma,d as io,e as Se,f as La,g as Te,j as Ve,k as ie,m as Lr,l as Er,p as Qt,u as Me,n as K,q as Pe,s as Ar,t as Ea,v as vt,x as sn,C as Aa,y as Da,z as Z,A as Dr,B as u,D as Fr,L as ao,E as qt,F as er,G as tr,H as Fa,I as Na,J as Nr,K as Ha,M as Je,N as lo,O as Hr,P as jr,Q as mt,R as so,S as Pr,T as dn,U as ja,V as un,W as cn,X as Kt,Y as Wa,Z as fn,_ as Ua,$ as Va,a0 as Ka,a1 as qa,a2 as Ga,a3 as Xa,a4 as Ya,a5 as uo,a6 as Ke,a7 as Oe,a8 as P,a9 as L,aa as H,ab as Ie,ac as re,ad as Fe,ae as fe,af as ne,ag as ze,ah as W,ai as Za,aj as it,ak as $t,al as hn,am as co,an as pn,ao as vn,ap as Ja,aq as _t,ar as Ye,as as De,at as fo,au as gn,av as Qa,aw as he,ax as ho,ay as ce,az as te,aA as Ot,aB as el,aC as mn,aD as po,aE as vo,aF as go,aG as ht,aH as tl,aI as rl,aJ as nl,aK as mo,aL as ol,aM as il,aN as al,aO as Wr,aP as Bt,aQ as Pt,aR as ll,aS as Ur,aT as Gt,aU as bo,aV as sl,aW as dl,aX as bn,aY as ul,aZ as yn,a_ as cl,a$ as kr,b0 as fl,b1 as hl,b2 as bt,b3 as pl,b4 as yo,b5 as wo,b6 as xo,b7 as Co,b8 as So,b9 as be,ba as wn,bb as vl,bc as gl,bd as me,be as Ae,bf as at,bg as Mt,bh as U,bi as je,bj as J,bk as X,bl as zt,bm as Ue,bn as ml,bo as Po,bp as bl,bq as xn,br as yl,bs as Xt,bt as Vr,bu as wl,bv as xl}from"./index-6982f66e.js";let Yt=[];const ko=new WeakMap;function Cl(){Yt.forEach(e=>e(...ko.get(e))),Yt=[]}function $o(e,...t){ko.set(e,t),!Yt.includes(e)&&Yt.push(e)===1&&requestAnimationFrame(Cl)}function Cn(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Sl(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function Pl(e){return t=>{t?e.value=t.$el:e.value=null}}const kl=/^(\d|\.)+$/,Sn=/(\d|\.)+/;function He(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(kl.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=Sn.exec(e);return o?e.replace(Sn,String((Number(o[0])+r)*t)):e}return e}let dr;function $l(){return dr===void 0&&(dr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),dr}function zl(e,t,r){if(!t)return e;const n=E(e.value);let o=null;return Ce(e,i=>{o!==null&&window.clearTimeout(o),i===!0?r&&!r.value?n.value=!0:o=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}let pt,Tt;const Tl=()=>{var e,t;pt=Oa?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Tt=!1,pt!==void 0?pt.then(()=>{Tt=!0}):Tt=!0};Tl();function Il(e){if(Tt)return;let t=!1;We(()=>{Tt||pt==null||pt.then(()=>{t||e()})}),Qe(()=>{t=!0})}function rr(e,t){return Ce(e,r=>{r!==void 0&&(t.value=r)}),F(()=>e.value===void 0?t.value:e.value)}function Rl(e,t){return F(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function _l(e={},t){const r=Ba({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:o}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==a.key)return;const c=n[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}o!==void 0&&Object.keys(o).forEach(d=>{if(d!==a.key)return;const c=o[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},s=()=>{(t===void 0||t.value)&&(Te("keydown",document,i),Te("keyup",document,l)),t!==void 0&&Ce(t,a=>{a?(Te("keydown",document,i),Te("keyup",document,l)):(Se("keydown",document,i),Se("keyup",document,l))})};return Ma()?(io(s),Qe(()=>{(t===void 0||t.value)&&(Se("keydown",document,i),Se("keyup",document,l))})):s(),La(r)}const Ol=Ve("n-internal-select-menu-body"),zo="__disabled__";function gt(e){const t=ie(Lr,null),r=ie(Er,null),n=ie(Qt,null),o=ie(Ol,null),i=E();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};We(()=>{Te("fullscreenchange",document,l)}),Qe(()=>{Se("fullscreenchange",document,l)})}return Me(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?zo:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s??(i.value||"body")})}gt.tdkey=zo;gt.propTo={type:[String,Object,Boolean],default:void 0};let Ze=null;function To(){if(Ze===null&&(Ze=document.getElementById("v-binder-view-measurer"),Ze===null)){Ze=document.createElement("div"),Ze.id="v-binder-view-measurer";const{style:e}=Ze;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ze)}return Ze.getBoundingClientRect()}function Bl(e,t){const r=To();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function ur(e){const t=e.getBoundingClientRect(),r=To();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Ml(e){return e.nodeType===9?null:e.parentNode}function Io(e){if(e===null)return null;const t=Ml(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return Io(t)}const Ll=K({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Pe("VBinder",(t=Ar())===null||t===void 0?void 0:t.proxy);const r=ie("VBinder",null),n=E(null),o=w=>{n.value=w,r&&e.syncTargetWithParent&&r.setTargetRef(w)};let i=[];const l=()=>{let w=n.value;for(;w=Io(w),w!==null;)i.push(w);for(const z of i)Te("scroll",z,f,!0)},s=()=>{for(const w of i)Se("scroll",w,f,!0);i=[]},a=new Set,d=w=>{a.size===0&&l(),a.has(w)||a.add(w)},c=w=>{a.has(w)&&a.delete(w),a.size===0&&s()},f=()=>{$o(h)},h=()=>{a.forEach(w=>w())},p=new Set,y=w=>{p.size===0&&Te("resize",window,m),p.has(w)||p.add(w)},C=w=>{p.has(w)&&p.delete(w),p.size===0&&Se("resize",window,m)},m=()=>{p.forEach(w=>w())};return Qe(()=>{Se("resize",window,m),s()}),{targetRef:n,setTargetRef:o,addScrollListener:d,removeScrollListener:c,addResizeListener:y,removeResizeListener:C}},render(){return Ea("binder",this.$slots)}}),Ro=Ll,_o=K({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ie("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?vt(sn("follower",this.$slots),[[t]]):sn("follower",this.$slots)}}),st="@@mmoContext",El={mounted(e,{value:t}){e[st]={handler:void 0},typeof t=="function"&&(e[st].handler=t,Te("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[st];typeof t=="function"?r.handler?r.handler!==t&&(Se("mousemoveoutside",e,r.handler),r.handler=t,Te("mousemoveoutside",e,t)):(e[st].handler=t,Te("mousemoveoutside",e,t)):r.handler&&(Se("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[st];t&&Se("mousemoveoutside",e,t),e[st].handler=void 0}},Al=El,{c:Ft}=Aa(),Dl="vueuc-style",Nt={top:"bottom",bottom:"top",left:"right",right:"left"},Pn={start:"end",center:"center",end:"start"},cr={top:"height",bottom:"height",left:"width",right:"width"},Fl={"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"},Nl={"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"},Hl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},kn={top:!0,bottom:!1,left:!0,right:!1},$n={top:"end",bottom:"start",left:"end",right:"start"};function jl(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let a=s??"center",d={top:0,left:0};const c=(p,y,C)=>{let m=0,w=0;const z=r[p]-t[y]-t[p];return z>0&&n&&(C?w=kn[y]?z:-z:m=kn[y]?z:-z),{left:m,top:w}},f=l==="left"||l==="right";if(a!=="center"){const p=Hl[e],y=Nt[p],C=cr[p];if(r[C]>t[C]){if(t[p]+t[C]t[y]&&(a=Pn[s])}else{const p=l==="bottom"||l==="top"?"left":"top",y=Nt[p],C=cr[p],m=(r[C]-t[C])/2;(t[p]t[y]?(a=$n[p],d=c(C,p,f)):(a=$n[y],d=c(C,y,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Oo=K({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=ie("VBinder"),r=Me(()=>e.enabled!==void 0?e.enabled:e.show),n=E(null),o=E(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};We(()=>{r.value&&(a(),i())});const s=Da();Vl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Dl,ssr:s}),Qe(()=>{l()}),Il(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=n.value;if(h===null)return;const p=t.targetRef,{x:y,y:C,overlap:m}=e,w=y!==void 0&&C!==void 0?Bl(y,C):ur(p);h.style.setProperty("--v-target-width",`${Math.round(w.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(w.height)}px`);const{width:z,minWidth:_,placement:b,internalShift:g,flip:M}=e;h.setAttribute("v-placement",b),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:k}=h;z==="target"?k.width=`${w.width}px`:z!==void 0?k.width=z:k.width="",_==="target"?k.minWidth=`${w.width}px`:_!==void 0?k.minWidth=_:k.minWidth="";const A=ur(h),$=ur(o.value),{left:B,top:R,placement:O}=jl(b,w,A,g,M,m),I=Wl(O,m),{left:x,top:S,transform:N}=Ul(O,$,w,R,B,m);h.setAttribute("v-placement",O),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(R)}px`),h.style.transform=`translateX(${x}) translateY(${S}) ${N}`,h.style.setProperty("--v-transform-origin",I),h.style.transformOrigin=I};Ce(r,h=>{h?(i(),d()):l()});const d=()=>{qt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ce(Z(e,h),a)}),["teleportDisabled"].forEach(h=>{Ce(Z(e,h),d)}),Ce(Z(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const c=Dr(),f=Me(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:f,syncPosition:a}},render(){return u(ao,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("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?vt(r,[[Fr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Kl=er(tr,"WeakMap");const $r=Kl;var ql=Fa(Object.keys,Object);const Gl=ql;var Xl=Object.prototype,Yl=Xl.hasOwnProperty;function Zl(e){if(!Na(e))return Gl(e);var t=[];for(var r in Object(e))Yl.call(e,r)&&r!="constructor"&&t.push(r);return t}function Kr(e){return Nr(e)?Ha(e):Zl(e)}var Jl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ql=/^\w*$/;function qr(e,t){if(Je(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lo(e)?!0:Ql.test(e)||!Jl.test(e)||t!=null&&e in Object(t)}var es="Expected a function";function Gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(es);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var l=e.apply(this,n);return r.cache=i.set(o,l)||i,l};return r.cache=new(Gr.Cache||Hr),r}Gr.Cache=Hr;var ts=500;function rs(e){var t=Gr(e,function(n){return r.size===ts&&r.clear(),n}),r=t.cache;return t}var ns=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,os=/\\(\\)?/g,is=rs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ns,function(r,n,o,i){t.push(o?i.replace(os,"$1"):n||r)}),t});const as=is;function Bo(e,t){return Je(e)?e:qr(e,t)?[e]:as(jr(e))}var ls=1/0;function nr(e){if(typeof e=="string"||lo(e))return e;var t=e+"";return t=="0"&&1/e==-ls?"-0":t}function Mo(e,t){t=Bo(t,e);for(var r=0,n=t.length;e!=null&&rs))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,p=r&Cd?new Zt:void 0;for(i.set(e,t),i.set(t,e);++f`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",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",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"},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",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},gu=vu;function hr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function Ct(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var s=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return o[d]}}function St(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?bu(s,function(f){return f.test(l)}):mu(s,function(f){return f.test(l)}),d;d=e.valueCallback?e.valueCallback(a):a,d=r.valueCallback?r.valueCallback(d):d;var c=t.slice(l.length);return{value:d,rest:c}}}function mu(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function bu(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var s=t.slice(o.length);return{value:l,rest:s}}}var wu={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"}},xu=function(t,r,n){var o,i=wu[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const Cu=xu;var Su={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ku={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$u={date:hr({formats:Su,defaultWidth:"full"}),time:hr({formats:Pu,defaultWidth:"full"}),dateTime:hr({formats:ku,defaultWidth:"full"})};const zu=$u;var Tu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Iu=function(t,r,n,o){return Tu[t]};const Ru=Iu;var _u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ou={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bu={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"]},Mu={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"]},Lu={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"}},Eu={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"}},Au=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Du={ordinalNumber:Au,era:Ct({values:_u,defaultWidth:"wide"}),quarter:Ct({values:Ou,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ct({values:Bu,defaultWidth:"wide"}),day:Ct({values:Mu,defaultWidth:"wide"}),dayPeriod:Ct({values:Lu,defaultWidth:"wide",formattingValues:Eu,defaultFormattingWidth:"wide"})};const Fu=Du;var Nu=/^(\d+)(th|st|nd|rd)?/i,Hu=/\d+/i,ju={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},Wu={any:[/^b/i,/^(a|c)/i]},Uu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vu={any:[/1/i,/2/i,/3/i,/4/i]},Ku={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},qu={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]},Gu={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},Xu={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]},Yu={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},Zu={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}},Ju={ordinalNumber:yu({matchPattern:Nu,parsePattern:Hu,valueCallback:function(t){return parseInt(t,10)}}),era:St({matchPatterns:ju,defaultMatchWidth:"wide",parsePatterns:Wu,defaultParseWidth:"any"}),quarter:St({matchPatterns:Uu,defaultMatchWidth:"wide",parsePatterns:Vu,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:St({matchPatterns:Ku,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),day:St({matchPatterns:Gu,defaultMatchWidth:"wide",parsePatterns:Xu,defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:Yu,defaultMatchWidth:"any",parsePatterns:Zu,defaultParseWidth:"any"})};const Qu=Ju;var ec={code:"en-US",formatDistance:Cu,formatLong:zu,formatRelative:Ru,localize:Fu,match:Qu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const tc=ec,rc={name:"en-US",locale:tc},nc=rc;function Yr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ie(uo,null)||{},n=F(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:gu[e]});return{dateLocaleRef:F(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:nc}),localeRef:n}}const oc=K({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),ic=Ke("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),ac=K({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}))}}),Zo=K({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),lc=K({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("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"}),u("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"}),u("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"}),u("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"}))}}),sc=Ke("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),dc=Ke("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),uc=K({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}),u("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"}))}}),cc=Ke("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),fc=K({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}))}}),hc=Ke("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("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"}))))),pc=Ke("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),vc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),gc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),mc=Ke("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),bc=Ke("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),yc=K({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Wn(e){return Array.isArray(e)?e:[e]}const Rr={STOP:"STOP"};function Jo(e,t){const r=t(e);e.children!==void 0&&r!==Rr.STOP&&e.children.forEach(n=>Jo(n,t))}function wc(e,t={}){const{preserveGroup:r=!1}=t,n=[],o=r?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(o)}return i(e),n}function xc(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function Cc(e){return e.children}function Sc(e){return e.key}function Pc(){return!1}function kc(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function $c(e){return e.disabled===!0}function zc(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function pr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function vr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Tc(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function Ic(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function Rc(e){return(e==null?void 0:e.type)==="group"}class _c extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Oc(e,t,r,n){return Jt(t.concat(e),r,n,!1)}function Bc(e,t){const r=new Set;return e.forEach(n=>{const o=t.treeNodeMap.get(n);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Mc(e,t,r,n){const o=Jt(t,r,n,!1),i=Jt(e,r,n,!0),l=Bc(e,r),s=[];return o.forEach(a=>{(i.has(a)||l.has(a))&&s.push(a)}),s.forEach(a=>o.delete(a)),o}function gr(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:o,indeterminateKeys:i,cascade:l,leafOnly:s,checkStrategy:a,allowNotLoaded:d}=e;if(!l)return n!==void 0?{checkedKeys:Tc(r,n),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:Ic(r,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let f;o!==void 0?f=Mc(o,r,t,d):n!==void 0?f=Oc(n,r,t,d):f=Jt(r,t,d,!1);const h=a==="parent",p=a==="child"||s,y=f,C=new Set,m=Math.max.apply(null,Array.from(c.keys()));for(let w=m;w>=0;w-=1){const z=w===0,_=c.get(w);for(const b of _){if(b.isLeaf)continue;const{key:g,shallowLoaded:M}=b;if(p&&M&&b.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&y.has(B.key)&&y.delete(B.key)}),b.disabled||!M)continue;let k=!0,A=!1,$=!0;for(const B of b.children){const R=B.key;if(!B.disabled){if($&&($=!1),y.has(R))A=!0;else if(C.has(R)){A=!0,k=!1;break}else if(k=!1,A)break}}k&&!$?(h&&b.children.forEach(B=>{!B.disabled&&y.has(B.key)&&y.delete(B.key)}),y.add(g)):A&&C.add(g),z&&p&&y.has(g)&&y.delete(g)}}return{checkedKeys:Array.from(y),indeterminateKeys:Array.from(C)}}function Jt(e,t,r,n){const{treeNodeMap:o,getChildren:i}=t,l=new Set,s=new Set(e);return e.forEach(a=>{const d=o.get(a);d!==void 0&&Jo(d,c=>{if(c.disabled)return Rr.STOP;const{key:f}=c;if(!l.has(f)&&(l.add(f),s.add(f),zc(c.rawNode,i))){if(n)return Rr.STOP;if(!r)throw new _c}})}),s}function Lc(e,{includeGroup:t=!1,includeSelf:r=!0},n){var o;const i=n.treeNodeMap;let l=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const s={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return s.treeNode=null,s;for(;l;)!l.ignored&&(t||!l.isGroup)&&s.treeNodePath.push(l),l=l.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(a=>a.key),s}function Ec(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ac(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o+1)%n]:o===r.length-1?null:r[o+1]}function Un(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const o=t==="prev"?Dc:Ac,i={reverse:t==="prev"};let l=!1,s=null;function a(d){if(d!==null){if(d===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!d.disabled||n)&&!d.ignored&&!d.isGroup){s=d;return}if(d.isGroup){const c=Zr(d,i);c!==null?s=c:a(o(d,r))}else{const c=o(d,!1);if(c!==null)a(c);else{const f=Fc(d);f!=null&&f.isGroup?a(o(f,r)):r&&a(o(d,!0))}}}}return a(e),s}function Dc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o-1+n)%n]:o===0?null:r[o-1]}function Fc(e){return e.parent}function Zr(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:o}=n,i=r?o-1:0,l=r?-1:o,s=r?-1:1;for(let a=i;a!==l;a+=s){const d=n[a];if(!d.disabled&&!d.ignored)if(d.isGroup){const c=Zr(d,t);if(c!==null)return c}else return d}}return null}const Nc={getChild(){return this.ignored?null:Zr(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Un(this,"next",e)},getPrev(e={}){return Un(this,"prev",e)}};function Hc(e,t){const r=t?new Set(t):void 0,n=[];function o(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&o(l.children)})}return o(e),n}function jc(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Qo(e,t,r,n,o,i=null,l=0){const s=[];return e.forEach((a,d)=>{var c;const f=Object.create(n);if(f.rawNode=a,f.siblings=s,f.level=l,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const h=o(a);Array.isArray(h)&&(f.children=Qo(h,t,r,n,o,f,l+1))}s.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(c=r.get(l))===null||c===void 0||c.push(f)}),s}function Wc(e,t={}){var r;const n=new Map,o=new Map,{getDisabled:i=$c,getIgnored:l=Pc,getIsGroup:s=Rc,getKey:a=Sc}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:Cc,c=t.ignoreEmptyChildren?b=>{const g=d(b);return Array.isArray(g)?g.length?g:null:g}:d,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return xc(this.rawNode,c)},get shallowLoaded(){return kc(this.rawNode,c)},get ignored(){return l(this.rawNode)},contains(b){return jc(this,b)}},Nc),h=Qo(e,n,o,f,c);function p(b){if(b==null)return null;const g=n.get(b);return g&&!g.isGroup&&!g.ignored?g:null}function y(b){if(b==null)return null;const g=n.get(b);return g&&!g.ignored?g:null}function C(b,g){const M=y(b);return M?M.getPrev(g):null}function m(b,g){const M=y(b);return M?M.getNext(g):null}function w(b){const g=y(b);return g?g.getParent():null}function z(b){const g=y(b);return g?g.getChild():null}const _={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:c,getFlattenedNodes(b){return Hc(h,b)},getNode:p,getPrev:C,getNext:m,getParent:w,getChild:z,getFirstAvailableNode(){return Ec(h)},getPath(b,g={}){return Lc(b,g,_)},getCheckedKeys(b,g={}){const{cascade:M=!0,leafOnly:k=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=g;return gr({checkedKeys:pr(b),indeterminateKeys:vr(b),cascade:M,leafOnly:k,checkStrategy:A,allowNotLoaded:$},_)},check(b,g,M={}){const{cascade:k=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=M;return gr({checkedKeys:pr(g),indeterminateKeys:vr(g),keysToCheck:b==null?[]:Wn(b),cascade:k,leafOnly:A,checkStrategy:$,allowNotLoaded:B},_)},uncheck(b,g,M={}){const{cascade:k=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=M;return gr({checkedKeys:pr(g),indeterminateKeys:vr(g),keysToUncheck:b==null?[]:Wn(b),cascade:k,leafOnly:A,checkStrategy:$,allowNotLoaded:B},_)},getNonLeafKeys(b={}){return wc(h,b)}};return _}const Uc={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Vc=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Uc),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},Kc={name:"Empty",common:Oe,self:Vc},qc=Kc,Gc=P("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[L("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[H("+",[L("description",` - margin-top: 8px; - `)])]),L("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),L("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),Xc=Object.assign(Object.assign({},re.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),ei=K({name:"Empty",props:Xc,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Empty","-empty",Gc,qc,e,t),{localeRef:o}=Yr("Empty"),i=ie(uo,null),l=F(()=>{var c,f,h;return(c=e.description)!==null&&c!==void 0?c:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),s=F(()=>{var c,f;return((f=(c=i==null?void 0:i.mergedComponentPropsRef.value)===null||c===void 0?void 0:c.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(uc,null))}),a=F(()=>{const{size:c}=e,{common:{cubicBezierEaseInOut:f},self:{[ne("iconSize",c)]:h,[ne("fontSize",c)]:p,textColor:y,iconColor:C,extraTextColor:m}}=n.value;return{"--n-icon-size":h,"--n-font-size":p,"--n-bezier":f,"--n-text-color":y,"--n-icon-color":C,"--n-extra-text-color":m}}),d=r?Fe("empty",F(()=>{let c="";const{size:f}=e;return c+=f[0],c}),a,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:F(()=>l.value||o.value.description),cssVars:r?void 0:a,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(fe,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),Yc={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Zc=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:i,dividerColor:l}=e;return Object.assign(Object.assign({},Yc),{fontSize:i,borderRadius:o,color:r,dividerColor:l,textColor:n,boxShadow:t})},Jc={name:"Popover",common:Oe,self:Zc},Jr=Jc,mr={top:"bottom",bottom:"top",left:"right",right:"left"},ye="var(--n-arrow-height) * 1.414",Qc=H([P("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[H(">",[P("scrollbar",` - height: inherit; - max-height: inherit; - `)]),ze("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[ze("scrollable",[ze("show-header-or-footer","padding: var(--n-padding);")])]),L("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),L("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),W("scrollable, show-header-or-footer",[L("content",` - padding: var(--n-padding); - `)])]),P("popover-shared",` - transform-origin: inherit; - `,[P("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[P("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${ye}); - height: calc(${ye}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),H("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),H("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),H("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),Be("top-start",` - top: calc(${ye} / -2); - left: calc(${Xe("top-start")} - var(--v-offset-left)); - `),Be("top",` - top: calc(${ye} / -2); - transform: translateX(calc(${ye} / -2)) rotate(45deg); - left: 50%; - `),Be("top-end",` - top: calc(${ye} / -2); - right: calc(${Xe("top-end")} + var(--v-offset-left)); - `),Be("bottom-start",` - bottom: calc(${ye} / -2); - left: calc(${Xe("bottom-start")} - var(--v-offset-left)); - `),Be("bottom",` - bottom: calc(${ye} / -2); - transform: translateX(calc(${ye} / -2)) rotate(45deg); - left: 50%; - `),Be("bottom-end",` - bottom: calc(${ye} / -2); - right: calc(${Xe("bottom-end")} + var(--v-offset-left)); - `),Be("left-start",` - left: calc(${ye} / -2); - top: calc(${Xe("left-start")} - var(--v-offset-top)); - `),Be("left",` - left: calc(${ye} / -2); - transform: translateY(calc(${ye} / -2)) rotate(45deg); - top: 50%; - `),Be("left-end",` - left: calc(${ye} / -2); - bottom: calc(${Xe("left-end")} + var(--v-offset-top)); - `),Be("right-start",` - right: calc(${ye} / -2); - top: calc(${Xe("right-start")} - var(--v-offset-top)); - `),Be("right",` - right: calc(${ye} / -2); - transform: translateY(calc(${ye} / -2)) rotate(45deg); - top: 50%; - `),Be("right-end",` - right: calc(${ye} / -2); - bottom: calc(${Xe("right-end")} + var(--v-offset-top)); - `),...fu({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${ye}) / 2)`,a=Xe(o);return H(`[v-placement="${o}"] >`,[P("popover-shared",[W("center-arrow",[P("popover-arrow",`${t}: calc(max(${s}, ${a}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Xe(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Be(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[P("popover-shared",` - margin-${mr[r]}: var(--n-space); - `,[W("show-arrow",` - margin-${mr[r]}: var(--n-space-arrow); - `),W("overlap",` - margin: 0; - `),Za("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${r}: 100%; - ${mr[r]}: auto; - ${n} - `,[P("popover-arrow",t)])])])}const ti=Object.assign(Object.assign({},re.props),{to:gt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),ri=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),ef=K({name:"PopoverBody",inheritAttrs:!1,props:ti,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:i}=Ie(e),l=re("Popover","-popover",Qc,Jr,e,o),s=E(null),a=ie("NPopover"),d=E(null),c=E(e.show),f=E(!1);it(()=>{const{show:k}=e;k&&!$l()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=F(()=>{const{trigger:k,onClickoutside:A}=e,$=[],{positionManuallyRef:{value:B}}=a;return B||(k==="click"&&!A&&$.push([hn,b,void 0,{capture:!0}]),k==="hover"&&$.push([Al,_])),A&&$.push([hn,b,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([co,e.show]),$}),p=F(()=>{const k=e.width==="trigger"?void 0:He(e.width),A=[];k&&A.push({width:k});const{maxWidth:$,minWidth:B}=e;return $&&A.push({maxWidth:He($)}),B&&A.push({maxWidth:He(B)}),i||A.push(y.value),A}),y=F(()=>{const{common:{cubicBezierEaseInOut:k,cubicBezierEaseIn:A,cubicBezierEaseOut:$},self:{space:B,spaceArrow:R,padding:O,fontSize:I,textColor:x,dividerColor:S,color:N,boxShadow:D,borderRadius:q,arrowHeight:Q,arrowOffset:ae,arrowOffsetVertical:pe}}=l.value;return{"--n-box-shadow":D,"--n-bezier":k,"--n-bezier-ease-in":A,"--n-bezier-ease-out":$,"--n-font-size":I,"--n-text-color":x,"--n-color":N,"--n-divider-color":S,"--n-border-radius":q,"--n-arrow-height":Q,"--n-arrow-offset":ae,"--n-arrow-offset-vertical":pe,"--n-padding":O,"--n-space":B,"--n-space-arrow":R}}),C=i?Fe("popover",void 0,y,e):void 0;a.setBodyInstance({syncPosition:m}),Qe(()=>{a.setBodyInstance(null)}),Ce(Z(e,"show"),k=>{e.animated||(k?c.value=!0:c.value=!1)});function m(){var k;(k=s.value)===null||k===void 0||k.syncPosition()}function w(k){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&a.handleMouseEnter(k)}function z(k){e.trigger==="hover"&&e.keepAliveOnHover&&a.handleMouseLeave(k)}function _(k){e.trigger==="hover"&&!g().contains(pn(k))&&a.handleMouseMoveOutside(k)}function b(k){(e.trigger==="click"&&!g().contains(pn(k))||e.onClickoutside)&&a.handleClickOutside(k)}function g(){return a.getTriggerElement()}Pe(Qt,d),Pe(Er,null),Pe(Lr,null);function M(){if(C==null||C.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let A;const $=a.internalRenderBodyRef.value,{value:B}=o;if($)A=$([`${B}-popover-shared`,C==null?void 0:C.themeClass.value,e.overlap&&`${B}-popover-shared--overlap`,e.showArrow&&`${B}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${B}-popover-shared--center-arrow`],d,p.value,w,z);else{const{value:R}=a.extraClassRef,{internalTrapFocus:O}=e,I=!vn(t.header)||!vn(t.footer),x=()=>{var S;const N=I?u(De,null,Ye(t.header,Q=>Q?u("div",{class:`${B}-popover__header`,style:e.headerStyle},Q):null),Ye(t.default,Q=>Q?u("div",{class:`${B}-popover__content`,style:e.contentStyle},t):null),Ye(t.footer,Q=>Q?u("div",{class:`${B}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(S=t.default)===null||S===void 0?void 0:S.call(t):u("div",{class:`${B}-popover__content`,style:e.contentStyle},t),D=e.scrollable?u(fo,{contentClass:I?void 0:`${B}-popover__content`,contentStyle:I?void 0:e.contentStyle},{default:()=>N}):N,q=e.showArrow?ri({arrowStyle:e.arrowStyle,clsPrefix:B}):null;return[D,q]};A=u("div",_t({class:[`${B}-popover`,`${B}-popover-shared`,C==null?void 0:C.themeClass.value,R.map(S=>`${B}-${S}`),{[`${B}-popover--scrollable`]:e.scrollable,[`${B}-popover--show-header-or-footer`]:I,[`${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:d,style:p.value,onKeydown:a.handleKeydown,onMouseenter:w,onMouseleave:z},r),O?u(Ja,{active:e.show,autoFocus:!0},{default:x}):x())}return vt(A,h.value)}return{displayed:f,namespace:n,isMounted:a.isMountedRef,zIndex:a.zIndexRef,followerRef:s,adjustedTo:gt(e),followerEnabled:c,renderContentNode:M}},render(){return u(Oo,{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===gt.tdkey},{default:()=>this.animated?u($t,{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()})}}),tf=Object.keys(ti),rf={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function nf(e,t,r){rf[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],i=r[n];o?e.props[n]=(...l)=>{o(...l),i(...l)}:e.props[n]=i})}const of=he("").type,or={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"},arrowStyle:[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:gt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,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},af=Object.assign(Object.assign(Object.assign({},re.props),or),{internalOnAfterLeave:Function,internalRenderBody:Function}),ni=K({name:"Popover",inheritAttrs:!1,props:af,__popover__:!0,setup(e){const t=Dr(),r=E(null),n=F(()=>e.show),o=E(e.defaultShow),i=rr(n,o),l=Me(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:x}=e;return!!(x!=null&&x())},a=()=>s()?!1:i.value,d=Rl(e,["arrow","showArrow"]),c=F(()=>e.overlap?!1:d.value);let f=null;const h=E(null),p=E(null),y=Me(()=>e.x!==void 0&&e.y!==void 0);function C(x){const{"onUpdate:show":S,onUpdateShow:N,onShow:D,onHide:q}=e;o.value=x,S&&ce(S,x),N&&ce(N,x),x&&D&&ce(D,!0),x&&q&&ce(q,!1)}function m(){f&&f.syncPosition()}function w(){const{value:x}=h;x&&(window.clearTimeout(x),h.value=null)}function z(){const{value:x}=p;x&&(window.clearTimeout(x),p.value=null)}function _(){const x=s();if(e.trigger==="focus"&&!x){if(a())return;C(!0)}}function b(){const x=s();if(e.trigger==="focus"&&!x){if(!a())return;C(!1)}}function g(){const x=s();if(e.trigger==="hover"&&!x){if(z(),h.value!==null||a())return;const S=()=>{C(!0),h.value=null},{delay:N}=e;N===0?S():h.value=window.setTimeout(S,N)}}function M(){const x=s();if(e.trigger==="hover"&&!x){if(w(),p.value!==null||!a())return;const S=()=>{C(!1),p.value=null},{duration:N}=e;N===0?S():p.value=window.setTimeout(S,N)}}function k(){M()}function A(x){var S;a()&&(e.trigger==="click"&&(w(),z(),C(!1)),(S=e.onClickoutside)===null||S===void 0||S.call(e,x))}function $(){if(e.trigger==="click"&&!s()){w(),z();const x=!a();C(x)}}function B(x){e.internalTrapFocus&&x.key==="Escape"&&(w(),z(),C(!1))}function R(x){o.value=x}function O(){var x;return(x=r.value)===null||x===void 0?void 0:x.targetRef}function I(x){f=x}return Pe("NPopover",{getTriggerElement:O,handleKeydown:B,handleMouseEnter:g,handleMouseLeave:M,handleClickOutside:A,handleMouseMoveOutside:k,setBodyInstance:I,positionManuallyRef:y,isMountedRef:t,zIndexRef:Z(e,"zIndex"),extraClassRef:Z(e,"internalExtraClass"),internalRenderBodyRef:Z(e,"internalRenderBody")}),it(()=>{i.value&&s()&&C(!1)}),{binderInstRef:r,positionManually:y,mergedShowConsideringDisabledProp:l,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:a,setShow:R,handleClick:$,handleMouseEnter:g,handleMouseLeave:M,handleFocus:_,handleBlur:b,syncPosition:m}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=gn(r,"activator"):n=gn(r,"trigger"),n)){n=Qa(n),n=n.type===of?u("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__)o=!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:l}=this,s=[i,...l],a={onBlur:d=>{s.forEach(c=>{c.onBlur(d)})},onFocus:d=>{s.forEach(c=>{c.onFocus(d)})},onClick:d=>{s.forEach(c=>{c.onClick(d)})},onMouseenter:d=>{s.forEach(c=>{c.onMouseenter(d)})},onMouseleave:d=>{s.forEach(c=>{c.onMouseleave(d)})}};nf(n,l?"nested":t?"manual":this.trigger,a)}}return u(Ro,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?vt(u("div",{style:{position:"fixed",inset:0}}),[[Fr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(_o,null,{default:()=>n}),u(ef,ho(this.$props,tf,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var l,s;return(s=(l=this.$slots).default)===null||s===void 0?void 0:s.call(l)},header:()=>{var l,s;return(s=(l=this.$slots).header)===null||s===void 0?void 0:s.call(l)},footer:()=>{var l,s;return(s=(l=this.$slots).footer)===null||s===void 0?void 0:s.call(l)}})]}})}}),lf={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},sf=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:l,warningColor:s,errorColor:a,baseColor:d,borderColor:c,opacityDisabled:f,tagColor:h,closeIconColor:p,closeIconColorHover:y,closeIconColorPressed:C,borderRadiusSmall:m,fontSizeMini:w,fontSizeTiny:z,fontSizeSmall:_,fontSizeMedium:b,heightMini:g,heightTiny:M,heightSmall:k,heightMedium:A,closeColorHover:$,closeColorPressed:B,buttonColor2Hover:R,buttonColor2Pressed:O,fontWeightStrong:I}=e;return Object.assign(Object.assign({},lf),{closeBorderRadius:m,heightTiny:g,heightSmall:M,heightMedium:k,heightLarge:A,borderRadius:m,opacityDisabled:f,fontSizeTiny:w,fontSizeSmall:z,fontSizeMedium:_,fontSizeLarge:b,fontWeightStrong:I,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:R,colorPressedCheckable:O,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:y,closeIconColorPressed:C,closeColorHover:$,closeColorPressed:B,borderPrimary:`1px solid ${te(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:te(o,{alpha:.12}),colorBorderedPrimary:te(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:te(o,{alpha:.12}),closeColorPressedPrimary:te(o,{alpha:.18}),borderInfo:`1px solid ${te(i,{alpha:.3})}`,textColorInfo:i,colorInfo:te(i,{alpha:.12}),colorBorderedInfo:te(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:te(i,{alpha:.12}),closeColorPressedInfo:te(i,{alpha:.18}),borderSuccess:`1px solid ${te(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:te(l,{alpha:.12}),colorBorderedSuccess:te(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:te(l,{alpha:.12}),closeColorPressedSuccess:te(l,{alpha:.18}),borderWarning:`1px solid ${te(s,{alpha:.35})}`,textColorWarning:s,colorWarning:te(s,{alpha:.15}),colorBorderedWarning:te(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:te(s,{alpha:.12}),closeColorPressedWarning:te(s,{alpha:.18}),borderError:`1px solid ${te(a,{alpha:.23})}`,textColorError:a,colorError:te(a,{alpha:.1}),colorBorderedError:te(a,{alpha:.08}),closeIconColorError:a,closeIconColorHoverError:a,closeIconColorPressedError:a,closeColorHoverError:te(a,{alpha:.12}),closeColorPressedError:te(a,{alpha:.18})})},df={name:"Tag",common:Oe,self:sf},uf=df,cf={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},ff=P("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[W("strong",` - font-weight: var(--n-font-weight-strong); - `),L("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),L("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); - `),L("avatar",` - display: flex; - margin: 0 6px 0 0; - `),L("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),W("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[L("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),L("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),W("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),W("icon, avatar",[W("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),W("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),W("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[ze("disabled",[H("&:hover","background-color: var(--n-color-hover-checkable);",[ze("checked","color: var(--n-text-color-hover-checkable);")]),H("&:active","background-color: var(--n-color-pressed-checkable);",[ze("checked","color: var(--n-text-color-pressed-checkable);")])]),W("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[ze("disabled",[H("&:hover","background-color: var(--n-color-checked-hover);"),H("&:active","background-color: var(--n-color-checked-pressed);")])])])]),hf=Object.assign(Object.assign(Object.assign({},re.props),cf),{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}),pf=Ve("n-tag"),oi=K({name:"Tag",props:hf,setup(e){const t=E(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=Ie(e),l=re("Tag","-tag",ff,uf,e,n);Pe(pf,{roundRef:Z(e,"round")});function s(p){if(!e.disabled&&e.checkable){const{checked:y,onCheckedChange:C,onUpdateChecked:m,"onUpdate:checked":w}=e;m&&m(!y),w&&w(!y),C&&C(!y)}}function a(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:y}=e;y&&ce(y,p)}}const d={setTextContent(p){const{value:y}=t;y&&(y.textContent=p)}},c=Ot("Tag",i,n),f=F(()=>{const{type:p,size:y,color:{color:C,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:w},self:{padding:z,closeMargin:_,closeMarginRtl:b,borderRadius:g,opacityDisabled:M,textColorCheckable:k,textColorHoverCheckable:A,textColorPressedCheckable:$,textColorChecked:B,colorCheckable:R,colorHoverCheckable:O,colorPressedCheckable:I,colorChecked:x,colorCheckedHover:S,colorCheckedPressed:N,closeBorderRadius:D,fontWeightStrong:q,[ne("colorBordered",p)]:Q,[ne("closeSize",y)]:ae,[ne("closeIconSize",y)]:pe,[ne("fontSize",y)]:ve,[ne("height",y)]:Re,[ne("color",p)]:oe,[ne("textColor",p)]:ke,[ne("border",p)]:we,[ne("closeIconColor",p)]:ee,[ne("closeIconColorHover",p)]:Le,[ne("closeIconColorPressed",p)]:qe,[ne("closeColorHover",p)]:Ge,[ne("closeColorPressed",p)]:Ee}}=l.value;return{"--n-font-weight-strong":q,"--n-avatar-size-override":`calc(${Re} - 8px)`,"--n-bezier":w,"--n-border-radius":g,"--n-border":we,"--n-close-icon-size":pe,"--n-close-color-pressed":Ee,"--n-close-color-hover":Ge,"--n-close-border-radius":D,"--n-close-icon-color":ee,"--n-close-icon-color-hover":Le,"--n-close-icon-color-pressed":qe,"--n-close-icon-color-disabled":ee,"--n-close-margin":_,"--n-close-margin-rtl":b,"--n-close-size":ae,"--n-color":C||(r.value?Q:oe),"--n-color-checkable":R,"--n-color-checked":x,"--n-color-checked-hover":S,"--n-color-checked-pressed":N,"--n-color-hover-checkable":O,"--n-color-pressed-checkable":I,"--n-font-size":ve,"--n-height":Re,"--n-opacity-disabled":M,"--n-padding":z,"--n-text-color":m||ke,"--n-text-color-checkable":k,"--n-text-color-checked":B,"--n-text-color-hover-checkable":A,"--n-text-color-pressed-checkable":$}}),h=o?Fe("tag",F(()=>{let p="";const{type:y,size:C,color:{color:m,textColor:w}={}}=e;return p+=y[0],p+=C[0],m&&(p+=`a${mn(m)}`),w&&(p+=`b${mn(w)}`),r.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},d),{rtlEnabled:c,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:a,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:o,color:{borderColor:i}={},round:l,onRender:s,$slots:a}=this;s==null||s();const d=Ye(a.avatar,f=>f&&u("div",{class:`${r}-tag__avatar`},f)),c=Ye(a.icon,f=>f&&u("div",{class:`${r}-tag__icon`},f));return u("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:l,[`${r}-tag--avatar`]:d,[`${r}-tag--icon`]:c,[`${r}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},c||d,u("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(el,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),vf=P("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[H(">",[L("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[H("&:hover",` - color: var(--n-clear-color-hover)!important; - `),H("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),L("placeholder",` - display: flex; - `),L("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[po({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),_r=K({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return vo("-base-clear",vf,Z(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(go,null,{default:()=>{var t,r;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},ht(this.$slots.icon,()=>[u(fe,{clsPrefix:e},{default:()=>u(hc,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),gf=K({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:r}=e;return u(tl,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(_r,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(fe,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>ht(t.default,()=>[u(fc,null)])})}):null})}}}),mf={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},bf=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:l,inputColorDisabled:s,borderColor:a,warningColor:d,warningColorHover:c,errorColor:f,errorColorHover:h,borderRadius:p,lineHeight:y,fontSizeTiny:C,fontSizeSmall:m,fontSizeMedium:w,fontSizeLarge:z,heightTiny:_,heightSmall:b,heightMedium:g,heightLarge:M,actionColor:k,clearColor:A,clearColorHover:$,clearColorPressed:B,placeholderColor:R,placeholderColorDisabled:O,iconColor:I,iconColorDisabled:x,iconColorHover:S,iconColorPressed:N}=e;return Object.assign(Object.assign({},mf),{countTextColorDisabled:n,countTextColor:r,heightTiny:_,heightSmall:b,heightMedium:g,heightLarge:M,fontSizeTiny:C,fontSizeSmall:m,fontSizeMedium:w,fontSizeLarge:z,lineHeight:y,lineHeightTextarea:y,borderRadius:p,iconSize:"16px",groupLabelColor:k,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:o,placeholderColor:R,placeholderColorDisabled:O,color:l,colorDisabled:s,colorFocus:l,groupLabelBorder:`1px solid ${a}`,border:`1px solid ${a}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${a}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${te(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${te(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:l,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${te(f,{alpha:.2})}`,caretColorError:f,clearColor:A,clearColorHover:$,clearColorPressed:B,iconColor:I,iconColorDisabled:x,iconColorHover:S,iconColorPressed:N,suffixTextColor:t})},yf={name:"Input",common:Oe,self:bf},wf=yf,ii=Ve("n-input");function xf(e){let t=0;for(const r of e)t++;return t}function jt(e){return e===""||e==null}function Cf(e){const t=E(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:l,selectionEnd:s,value:a}=i;if(l==null||s==null){o();return}t.value={start:l,end:s,beforeText:a.slice(0,l),afterText:a.slice(s)}}function n(){var i;const{value:l}=t,{value:s}=e;if(!l||!s)return;const{value:a}=s,{start:d,beforeText:c,afterText:f}=l;let h=a.length;if(a.endsWith(f))h=a.length-f.length;else if(a.startsWith(c))h=c.length;else{const p=c[d-1],y=a.indexOf(p,d-1);y!==-1&&(h=y+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,h,h)}function o(){t.value=null}return Ce(e,o),{recordCursor:r,restoreCursor:n}}const Vn=K({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:n,mergedClsPrefixRef:o,countGraphemesRef:i}=ie(ii),l=F(()=>{const{value:s}=r;return s===null||Array.isArray(s)?0:(i.value||xf)(s)});return()=>{const{value:s}=n,{value:a}=r;return u("span",{class:`${o.value}-input-word-count`},rl(t.default,{value:a===null||Array.isArray(a)?"":a},()=>[s===void 0?l.value:`${l.value} / ${s}`]))}}}),Sf=P("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - 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); -`,[L("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),L("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),L("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),H("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),H("&:-webkit-autofill ~",[L("placeholder","display: none;")])]),W("round",[ze("textarea","border-radius: calc(var(--n-height) / 2);")]),L("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[H("span",` - width: 100%; - display: inline-block; - `)]),W("textarea",[L("placeholder","overflow: visible;")]),ze("autosize","width: 100%;"),W("autosize",[L("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),P("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),L("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),L("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[H("+",[L("placeholder",` - display: flex; - align-items: center; - `)])]),ze("textarea",[L("placeholder","white-space: nowrap;")]),L("eye",` - transition: color .3s var(--n-bezier); - `),W("textarea","width: 100%;",[P("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),W("resizable",[P("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),L("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),L("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),W("pair",[L("input-el, placeholder","text-align: center;"),L("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[P("icon",` - color: var(--n-icon-color); - `),P("base-icon",` - color: var(--n-icon-color); - `)])]),W("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[L("border","border: var(--n-border-disabled);"),L("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),L("placeholder","color: var(--n-placeholder-color-disabled);"),L("separator","color: var(--n-text-color-disabled);",[P("icon",` - color: var(--n-icon-color-disabled); - `),P("base-icon",` - color: var(--n-icon-color-disabled); - `)]),P("input-word-count",` - color: var(--n-count-text-color-disabled); - `),L("suffix, prefix","color: var(--n-text-color-disabled);",[P("icon",` - color: var(--n-icon-color-disabled); - `),P("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),ze("disabled",[L("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[H("&:hover",` - color: var(--n-icon-color-hover); - `),H("&:active",` - color: var(--n-icon-color-pressed); - `)]),H("&:hover",[L("state-border","border: var(--n-border-hover);")]),W("focus","background-color: var(--n-color-focus);",[L("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),L("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),L("state-border",` - border-color: #0000; - z-index: 1; - `),L("prefix","margin-right: 4px;"),L("suffix",` - margin-left: 4px; - `),L("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[P("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),P("base-clear",` - font-size: var(--n-icon-size); - `,[L("placeholder",[P("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),H(">",[P("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),P("base-icon",` - font-size: var(--n-icon-size); - `)]),P("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>W(`${e}-status`,[ze("disabled",[P("base-loading",` - color: var(--n-loading-color-${e}) - `),L("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),L("state-border",` - border: var(--n-border-${e}); - `),H("&:hover",[L("state-border",` - border: var(--n-border-hover-${e}); - `)]),H("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[L("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),W("focus",` - background-color: var(--n-color-focus-${e}); - `,[L("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),Pf=P("input",[W("disabled",[L("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),kf=Object.assign(Object.assign({},re.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,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:Boolean,showPasswordToggle:Boolean}),kt=K({name:"Input",props:kf,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=Ie(e),i=re("Input","-input",Sf,wf,e,t);nl&&vo("-input-safari",Pf,t);const l=E(null),s=E(null),a=E(null),d=E(null),c=E(null),f=E(null),h=E(null),p=Cf(h),y=E(null),{localeRef:C}=Yr("Input"),m=E(e.defaultValue),w=Z(e,"value"),z=rr(w,m),_=mo(e),{mergedSizeRef:b,mergedDisabledRef:g,mergedStatusRef:M}=_,k=E(!1),A=E(!1),$=E(!1),B=E(!1);let R=null;const O=F(()=>{const{placeholder:v,pair:T}=e;return T?Array.isArray(v)?v:v===void 0?["",""]:[v,v]:v===void 0?[C.value.placeholder]:[v]}),I=F(()=>{const{value:v}=$,{value:T}=z,{value:G}=O;return!v&&(jt(T)||Array.isArray(T)&&jt(T[0]))&&G[0]}),x=F(()=>{const{value:v}=$,{value:T}=z,{value:G}=O;return!v&&G[1]&&(jt(T)||Array.isArray(T)&&jt(T[1]))}),S=Me(()=>e.internalForceFocus||k.value),N=Me(()=>{if(g.value||e.readonly||!e.clearable||!S.value&&!A.value)return!1;const{value:v}=z,{value:T}=S;return e.pair?!!(Array.isArray(v)&&(v[0]||v[1]))&&(A.value||T):!!v&&(A.value||T)}),D=F(()=>{const{showPasswordOn:v}=e;if(v)return v;if(e.showPasswordToggle)return"click"}),q=E(!1),Q=F(()=>{const{textDecoration:v}=e;return v?Array.isArray(v)?v.map(T=>({textDecoration:T})):[{textDecoration:v}]:["",""]}),ae=E(void 0),pe=()=>{var v,T;if(e.type==="textarea"){const{autosize:G}=e;if(G&&(ae.value=(T=(v=y.value)===null||v===void 0?void 0:v.$el)===null||T===void 0?void 0:T.offsetWidth),!s.value||typeof G=="boolean")return;const{paddingTop:ue,paddingBottom:ge,lineHeight:de}=window.getComputedStyle(s.value),et=Number(ue.slice(0,-2)),tt=Number(ge.slice(0,-2)),rt=Number(de.slice(0,-2)),{value:wt}=a;if(!wt)return;if(G.minRows){const xt=Math.max(G.minRows,1),sr=`${et+tt+rt*xt}px`;wt.style.minHeight=sr}if(G.maxRows){const xt=`${et+tt+rt*G.maxRows}px`;wt.style.maxHeight=xt}}},ve=F(()=>{const{maxlength:v}=e;return v===void 0?void 0:Number(v)});We(()=>{const{value:v}=z;Array.isArray(v)||lr(v)});const Re=Ar().proxy;function oe(v){const{onUpdateValue:T,"onUpdate:value":G,onInput:ue}=e,{nTriggerFormInput:ge}=_;T&&ce(T,v),G&&ce(G,v),ue&&ce(ue,v),m.value=v,ge()}function ke(v){const{onChange:T}=e,{nTriggerFormChange:G}=_;T&&ce(T,v),m.value=v,G()}function we(v){const{onBlur:T}=e,{nTriggerFormBlur:G}=_;T&&ce(T,v),G()}function ee(v){const{onFocus:T}=e,{nTriggerFormFocus:G}=_;T&&ce(T,v),G()}function Le(v){const{onClear:T}=e;T&&ce(T,v)}function qe(v){const{onInputBlur:T}=e;T&&ce(T,v)}function Ge(v){const{onInputFocus:T}=e;T&&ce(T,v)}function Ee(){const{onDeactivate:v}=e;v&&ce(v)}function j(){const{onActivate:v}=e;v&&ce(v)}function Y(v){const{onClick:T}=e;T&&ce(T,v)}function V(v){const{onWrapperFocus:T}=e;T&&ce(T,v)}function le(v){const{onWrapperBlur:T}=e;T&&ce(T,v)}function se(){$.value=!0}function $e(v){$.value=!1,v.target===f.value?xe(v,1):xe(v,0)}function xe(v,T=0,G="input"){const ue=v.target.value;if(lr(ue),v instanceof InputEvent&&!v.isComposing&&($.value=!1),e.type==="textarea"){const{value:de}=y;de&&de.syncUnifiedContainer()}if(R=ue,$.value)return;p.recordCursor();const ge=_e(ue);if(ge)if(!e.pair)G==="input"?oe(ue):ke(ue);else{let{value:de}=z;Array.isArray(de)?de=[de[0],de[1]]:de=["",""],de[T]=ue,G==="input"?oe(de):ke(de)}Re.$forceUpdate(),ge||qt(p.restoreCursor)}function _e(v){const{countGraphemes:T,maxlength:G,minlength:ue}=e;if(T){let de;if(G!==void 0&&(de===void 0&&(de=T(v)),de>Number(G))||ue!==void 0&&(de===void 0&&(de=T(v)),de{ue.preventDefault(),Se("mouseup",document,T)};if(Te("mouseup",document,T),D.value!=="mousedown")return;q.value=!0;const G=()=>{q.value=!1,Se("mouseup",document,G)};Te("mouseup",document,G)}function Ai(v){var T;switch((T=e.onKeydown)===null||T===void 0||T.call(e,v),v.key){case"Escape":ar();break;case"Enter":Di(v);break}}function Di(v){var T,G;if(e.passivelyActivated){const{value:ue}=B;if(ue){e.internalDeactivateOnEnter&&ar();return}v.preventDefault(),e.type==="textarea"?(T=s.value)===null||T===void 0||T.focus():(G=c.value)===null||G===void 0||G.focus()}}function ar(){e.passivelyActivated&&(B.value=!1,qt(()=>{var v;(v=l.value)===null||v===void 0||v.focus()}))}function on(){var v,T,G;g.value||(e.passivelyActivated?(v=l.value)===null||v===void 0||v.focus():((T=s.value)===null||T===void 0||T.focus(),(G=c.value)===null||G===void 0||G.focus()))}function Fi(){var v;!((v=l.value)===null||v===void 0)&&v.contains(document.activeElement)&&document.activeElement.blur()}function Ni(){var v,T;(v=s.value)===null||v===void 0||v.select(),(T=c.value)===null||T===void 0||T.select()}function Hi(){g.value||(s.value?s.value.focus():c.value&&c.value.focus())}function ji(){const{value:v}=l;v!=null&&v.contains(document.activeElement)&&v!==document.activeElement&&ar()}function Wi(v){if(e.type==="textarea"){const{value:T}=s;T==null||T.scrollTo(v)}else{const{value:T}=c;T==null||T.scrollTo(v)}}function lr(v){const{type:T,pair:G,autosize:ue}=e;if(!G&&ue)if(T==="textarea"){const{value:ge}=a;ge&&(ge.textContent=(v??"")+`\r -`)}else{const{value:ge}=d;ge&&(v?ge.textContent=v:ge.innerHTML=" ")}}function Ui(){pe()}const an=E({top:"0"});function Vi(v){var T;const{scrollTop:G}=v.target;an.value.top=`${-G}px`,(T=y.value)===null||T===void 0||T.syncUnifiedContainer()}let At=null;it(()=>{const{autosize:v,type:T}=e;v&&T==="textarea"?At=Ce(z,G=>{!Array.isArray(G)&&G!==R&&lr(G)}):At==null||At()});let Dt=null;it(()=>{e.type==="textarea"?Dt=Ce(z,v=>{var T;!Array.isArray(v)&&v!==R&&((T=y.value)===null||T===void 0||T.syncUnifiedContainer())}):Dt==null||Dt()}),Pe(ii,{mergedValueRef:z,maxlengthRef:ve,mergedClsPrefixRef:t,countGraphemesRef:Z(e,"countGraphemes")});const Ki={wrapperElRef:l,inputElRef:c,textareaElRef:s,isCompositing:$,focus:on,blur:Fi,select:Ni,deactivate:ji,activate:Hi,scrollTo:Wi},qi=Ot("Input",o,t),ln=F(()=>{const{value:v}=b,{common:{cubicBezierEaseInOut:T},self:{color:G,borderRadius:ue,textColor:ge,caretColor:de,caretColorError:et,caretColorWarning:tt,textDecorationColor:rt,border:wt,borderDisabled:xt,borderHover:sr,borderFocus:Gi,placeholderColor:Xi,placeholderColorDisabled:Yi,lineHeightTextarea:Zi,colorDisabled:Ji,colorFocus:Qi,textColorDisabled:ea,boxShadowFocus:ta,iconSize:ra,colorFocusWarning:na,boxShadowFocusWarning:oa,borderWarning:ia,borderFocusWarning:aa,borderHoverWarning:la,colorFocusError:sa,boxShadowFocusError:da,borderError:ua,borderFocusError:ca,borderHoverError:fa,clearSize:ha,clearColor:pa,clearColorHover:va,clearColorPressed:ga,iconColor:ma,iconColorDisabled:ba,suffixTextColor:ya,countTextColor:wa,countTextColorDisabled:xa,iconColorHover:Ca,iconColorPressed:Sa,loadingColor:Pa,loadingColorError:ka,loadingColorWarning:$a,[ne("padding",v)]:za,[ne("fontSize",v)]:Ta,[ne("height",v)]:Ia}}=i.value,{left:Ra,right:_a}=al(za);return{"--n-bezier":T,"--n-count-text-color":wa,"--n-count-text-color-disabled":xa,"--n-color":G,"--n-font-size":Ta,"--n-border-radius":ue,"--n-height":Ia,"--n-padding-left":Ra,"--n-padding-right":_a,"--n-text-color":ge,"--n-caret-color":de,"--n-text-decoration-color":rt,"--n-border":wt,"--n-border-disabled":xt,"--n-border-hover":sr,"--n-border-focus":Gi,"--n-placeholder-color":Xi,"--n-placeholder-color-disabled":Yi,"--n-icon-size":ra,"--n-line-height-textarea":Zi,"--n-color-disabled":Ji,"--n-color-focus":Qi,"--n-text-color-disabled":ea,"--n-box-shadow-focus":ta,"--n-loading-color":Pa,"--n-caret-color-warning":tt,"--n-color-focus-warning":na,"--n-box-shadow-focus-warning":oa,"--n-border-warning":ia,"--n-border-focus-warning":aa,"--n-border-hover-warning":la,"--n-loading-color-warning":$a,"--n-caret-color-error":et,"--n-color-focus-error":sa,"--n-box-shadow-focus-error":da,"--n-border-error":ua,"--n-border-focus-error":ca,"--n-border-hover-error":fa,"--n-loading-color-error":ka,"--n-clear-color":pa,"--n-clear-size":ha,"--n-clear-color-hover":va,"--n-clear-color-pressed":ga,"--n-icon-color":ma,"--n-icon-color-hover":Ca,"--n-icon-color-pressed":Sa,"--n-icon-color-disabled":ba,"--n-suffix-text-color":ya}}),lt=n?Fe("input",F(()=>{const{value:v}=b;return v[0]}),ln,e):void 0;return Object.assign(Object.assign({},Ki),{wrapperElRef:l,inputElRef:c,inputMirrorElRef:d,inputEl2Ref:f,textareaElRef:s,textareaMirrorElRef:a,textareaScrollbarInstRef:y,rtlEnabled:qi,uncontrolledValue:m,mergedValue:z,passwordVisible:q,mergedPlaceholder:O,showPlaceholder1:I,showPlaceholder2:x,mergedFocus:S,isComposing:$,activated:B,showClearButton:N,mergedSize:b,mergedDisabled:g,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:D,placeholderStyle:an,mergedStatus:M,textAreaScrollContainerWidth:ae,handleTextAreaScroll:Vi,handleCompositionStart:se,handleCompositionEnd:$e,handleInput:xe,handleInputBlur:Ne,handleInputFocus:$i,handleWrapperBlur:zi,handleWrapperFocus:Ti,handleMouseEnter:Bi,handleMouseLeave:Mi,handleMouseDown:Oi,handleChange:Ii,handleClick:Ri,handleClear:_i,handlePasswordToggleClick:Li,handlePasswordToggleMousedown:Ei,handleWrapperKeydown:Ai,handleTextAreaMirrorResize:Ui,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:n?void 0:ln,themeClass:lt==null?void 0:lt.themeClass,onRender:lt==null?void 0:lt.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:n,themeClass:o,type:i,countGraphemes:l,onRender:s}=this,a=this.$slots;return s==null||s(),u("div",{ref:"wrapperElRef",class:[`${r}-input`,o,n&&`${r}-input--${n}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-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.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${r}-input-wrapper`},Ye(a.prefix,d=>d&&u("div",{class:`${r}-input__prefix`},d)),i==="textarea"?u(ol,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var d,c;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u(De,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(d=this.inputProps)===null||d===void 0?void 0:d.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(c=this.inputProps)===null||c===void 0?void 0:c.style,h],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(il,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${r}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-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:l?void 0:this.maxlength,minlength:l?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:d=>this.handleInputFocus(d,0),onInput:d=>this.handleInput(d,0),onChange:d=>this.handleChange(d,0)})),this.showPlaceholder1?u("div",{class:`${r}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ye(a.suffix,d=>d||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${r}-input__suffix`},[Ye(a["clear-icon-placeholder"],c=>(this.clearable||c)&&u(_r,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>c,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:d,this.loading!==void 0?u(gf,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?d:null,this.showCount&&this.type!=="textarea"?u(Vn,null,{default:c=>{var f;return(f=a.count)===null||f===void 0?void 0:f.call(a,c)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?ht(a["password-visible-icon"],()=>[u(fe,{clsPrefix:r},{default:()=>u(Zo,null)})]):ht(a["password-invisible-icon"],()=>[u(fe,{clsPrefix:r},{default:()=>u(lc,null)})])):null]):null)),this.pair?u("span",{class:`${r}-input__separator`},ht(a.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${r}-input-wrapper`},u("div",{class:`${r}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?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:d=>this.handleInputFocus(d,1),onInput:d=>this.handleInput(d,1),onChange:d=>this.handleChange(d,1)}),this.showPlaceholder2?u("div",{class:`${r}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ye(a.suffix,d=>(this.clearable||d)&&u("div",{class:`${r}-input__suffix`},[this.clearable&&u(_r,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var c;return(c=a["clear-icon"])===null||c===void 0?void 0:c.call(a)},placeholder:()=>{var c;return(c=a["clear-icon-placeholder"])===null||c===void 0?void 0:c.call(a)}}),d]))):null,this.mergedBordered?u("div",{class:`${r}-input__border`}):null,this.mergedBordered?u("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?u(Vn,null,{default:d=>{var c;const{renderCount:f}=this;return f?f(d):(c=a.count)===null||c===void 0?void 0:c.call(a,d)}}):null)}}),br=Wr&&"loading"in document.createElement("img"),$f=(e={})=>{var t;const{root:r=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 r=="string"?document.querySelector(r):r)||document.documentElement})}},yr=new WeakMap,wr=new WeakMap,xr=new WeakMap,zf=(e,t,r)=>{if(!e)return()=>{};const n=$f(t),{root:o}=n.options;let i;const l=yr.get(o);l?i=l:(i=new Map,yr.set(o,i));let s,a;i.has(n.hash)?(a=i.get(n.hash),a[1].has(e)||(s=a[0],a[1].add(e),s.observe(e))):(s=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const p=wr.get(h.target),y=xr.get(h.target);p&&p(),y&&(y.value=!0)}})},n.options),s.observe(e),a=[s,new Set([e])],i.set(n.hash,a));let d=!1;const c=()=>{d||(wr.delete(e),xr.delete(e),d=!0,a[1].has(e)&&(a[0].unobserve(e),a[1].delete(e)),a[1].size<=0&&i.delete(n.hash),i.size||yr.delete(o))};return wr.set(e,c),xr.set(e,r),c},Tf={padding:"8px 14px"},If=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},Tf),{borderRadius:t,boxShadow:r,color:Pt(n,"rgba(0, 0, 0, .85)"),textColor:n})},Rf=Bt({name:"Tooltip",common:Oe,peers:{Popover:Jr},self:If}),Qr=Rf,_f=Bt({name:"Ellipsis",common:Oe,peers:{Tooltip:Qr}}),Of=_f,Bf={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"},Mf=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:o,popoverColor:i,invertedColor:l,borderRadius:s,fontSizeSmall:a,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:f,heightSmall:h,heightMedium:p,heightLarge:y,heightHuge:C,textColor3:m,opacityDisabled:w}=e;return Object.assign(Object.assign({},Bf),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:y,optionHeightHuge:C,borderRadius:s,fontSizeSmall:a,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:f,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:o,optionColorActive:te(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:w})},Lf=Bt({name:"Dropdown",common:Oe,peers:{Popover:Jr},self:Mf}),Ef=Lf,Af=Object.assign(Object.assign({},or),re.props),ai=K({name:"Tooltip",props:Af,__popover__:!0,setup(e){const t=re("Tooltip","-tooltip",void 0,Qr,e),r=E(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(o){r.value.setShow(o)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:F(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(ni,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)}}),Df=P("ellipsis",{overflow:"hidden"},[ze("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),W("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),W("cursor-pointer",` - cursor: pointer; - `)]);function Kn(e){return`${e}-ellipsis--line-clamp`}function qn(e,t){return`${e}-ellipsis--cursor-${t}`}const Ff=Object.assign(Object.assign({},re.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),li=K({name:"Ellipsis",inheritAttrs:!1,props:Ff,setup(e,{slots:t,attrs:r}){const{mergedClsPrefixRef:n}=Ie(e),o=re("Ellipsis","-ellipsis",Df,Of,e,n),i=E(null),l=E(null),s=E(null),a=E(!1),d=F(()=>{const{lineClamp:m}=e,{value:w}=a;return m!==void 0?{textOverflow:"","-webkit-line-clamp":w?"":m}:{textOverflow:w?"":"ellipsis","-webkit-line-clamp":""}});function c(){let m=!1;const{value:w}=a;if(w)return!0;const{value:z}=i;if(z){const{lineClamp:_}=e;if(p(z),_!==void 0)m=z.scrollHeight<=z.offsetHeight;else{const{value:b}=l;b&&(m=b.getBoundingClientRect().width<=z.getBoundingClientRect().width)}y(z,m)}return m}const f=F(()=>e.expandTrigger==="click"?()=>{var m;const{value:w}=a;w&&((m=s.value)===null||m===void 0||m.setShow(!1)),a.value=!w}:void 0);ll(()=>{var m;e.tooltip&&((m=s.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},_t(r,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?Kn(n.value):void 0,e.expandTrigger==="click"?qn(n.value,"pointer"):void 0],style:d.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?c:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function p(m){if(!m)return;const w=d.value,z=Kn(n.value);e.lineClamp!==void 0?C(m,z,"add"):C(m,z,"remove");for(const _ in w)m.style[_]!==w[_]&&(m.style[_]=w[_])}function y(m,w){const z=qn(n.value,"pointer");e.expandTrigger==="click"&&!w?C(m,z,"add"):C(m,z,"remove")}function C(m,w,z){z==="add"?m.classList.contains(w)||m.classList.add(w):m.classList.contains(w)&&m.classList.remove(w)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:l,tooltipRef:s,handleClick:f,renderTrigger:h,getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:n}=this;if(t){const{mergedTheme:o}=this;return u(ai,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:r,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return r()}}),si=K({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Nf=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:i,opacity5Depth:l}},Hf={name:"Icon",common:Oe,self:Nf},jf=Hf,Wf=P("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[W("color-transition",{transition:"color .3s var(--n-bezier)"}),W("depth",{color:"var(--n-color)"},[H("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),H("svg",{height:"1em",width:"1em"})]),Uf=Object.assign(Object.assign({},re.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Vf=K({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Uf,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Icon","-icon",Wf,jf,e,t),o=F(()=>{const{depth:l}=e,{common:{cubicBezierEaseInOut:s},self:a}=n.value;if(l!==void 0){const{color:d,[`opacity${l}Depth`]:c}=a;return{"--n-bezier":s,"--n-color":d,"--n-opacity":c}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?Fe("icon",F(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:F(()=>{const{size:l,color:s}=e;return{fontSize:He(l),color:s}}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:i,themeClass:l}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Ur("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",_t(this.$attrs,{role:"img",class:[`${n}-icon`,l,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),en=Ve("n-dropdown-menu"),ir=Ve("n-dropdown"),Gn=Ve("n-dropdown-option");function Or(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function Kf(e){return e.type==="group"}function di(e){return e.type==="divider"}function qf(e){return e.type==="render"}const ui=K({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=ie(ir),{hoverKeyRef:r,keyboardKeyRef:n,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:s,mergedShowRef:a,renderLabelRef:d,renderIconRef:c,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:p,nodePropsRef:y,menuPropsRef:C}=t,m=ie(Gn,null),w=ie(en),z=ie(Qt),_=F(()=>e.tmNode.rawNode),b=F(()=>{const{value:D}=h;return Or(e.tmNode.rawNode,D)}),g=F(()=>{const{disabled:D}=e.tmNode;return D}),M=F(()=>{if(!b.value)return!1;const{key:D,disabled:q}=e.tmNode;if(q)return!1;const{value:Q}=r,{value:ae}=n,{value:pe}=o,{value:ve}=i;return Q!==null?ve.includes(D):ae!==null?ve.includes(D)&&ve[ve.length-1]!==D:pe!==null?ve.includes(D):!1}),k=F(()=>n.value===null&&!s.value),A=zl(M,300,k),$=F(()=>!!(m!=null&&m.enteringSubmenuRef.value)),B=E(!1);Pe(Gn,{enteringSubmenuRef:B});function R(){B.value=!0}function O(){B.value=!1}function I(){const{parentKey:D,tmNode:q}=e;q.disabled||a.value&&(o.value=D,n.value=null,r.value=q.key)}function x(){const{tmNode:D}=e;D.disabled||a.value&&r.value!==D.key&&I()}function S(D){if(e.tmNode.disabled||!a.value)return;const{relatedTarget:q}=D;q&&!Cn({target:q},"dropdownOption")&&!Cn({target:q},"scrollbarRail")&&(r.value=null)}function N(){const{value:D}=b,{tmNode:q}=e;a.value&&!D&&!q.disabled&&(t.doSelect(q.key,q.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:d,renderIcon:c,siblingHasIcon:w.showIconRef,siblingHasSubmenu:w.hasSubmenuRef,menuProps:C,popoverBody:z,animated:s,mergedShowSubmenu:F(()=>A.value&&!$.value),rawNode:_,hasSubmenu:b,pending:Me(()=>{const{value:D}=i,{key:q}=e.tmNode;return D.includes(q)}),childActive:Me(()=>{const{value:D}=l,{key:q}=e.tmNode,Q=D.findIndex(ae=>q===ae);return Q===-1?!1:Q{const{value:D}=l,{key:q}=e.tmNode,Q=D.findIndex(ae=>q===ae);return Q===-1?!1:Q===D.length-1}),mergedDisabled:g,renderOption:p,nodeProps:y,handleClick:N,handleMouseMove:x,handleMouseEnter:I,handleMouseLeave:S,handleSubmenuBeforeEnter:R,handleSubmenuAfterEnter:O}},render(){var e,t;const{animated:r,rawNode:n,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:s,renderLabel:a,renderIcon:d,renderOption:c,nodeProps:f,props:h,scrollable:p}=this;let y=null;if(o){const z=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);y=u(ci,Object.assign({},z,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const C={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},m=f==null?void 0:f(n),w=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",_t(C,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[d?d(n):Gt(n.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},a?a(n):Gt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(Vf,null,{default:()=>u(ac,null)}):null)]),this.hasSubmenu?u(Ro,null,{default:()=>[u(_o,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Oo,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},r?u($t,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>y}):y)}))})]}):null);return c?c({node:w,option:n}):w}}),Gf=K({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=ie(en),{renderLabelRef:r,labelFieldRef:n,nodePropsRef:o,renderOptionRef:i}=ie(ir);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:n,nodeProps:o,renderLabel:i,renderOption:l}=this,{rawNode:s}=this.tmNode,a=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(s)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Gt(s.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Gt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:a,option:s}):a}}),Xf=K({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:r}=this,{children:n}=e;return u(De,null,u(Gf,{clsPrefix:r,tmNode:e,key:e.key}),n==null?void 0:n.map(o=>{const{rawNode:i}=o;return i.show===!1?null:di(i)?u(si,{clsPrefix:r,key:o.key}):o.isGroup?(Ur("dropdown","`group` node is not allowed to be put in `group` node."),null):u(ui,{clsPrefix:r,tmNode:o,parentKey:t,key:o.key})}))}}),Yf=K({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),ci=K({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:r}=ie(ir);Pe(en,{showIconRef:F(()=>{const o=t.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>o?o(a):a.icon);const{rawNode:s}=i;return o?o(s):s.icon})}),hasSubmenuRef:F(()=>{const{value:o}=r;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>Or(a,o));const{rawNode:s}=i;return Or(s,o)})})});const n=E(null);return Pe(Lr,null),Pe(Er,null),Pe(Qt,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,n=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:qf(i)?u(Yf,{tmNode:o,key:o.key}):di(i)?u(si,{clsPrefix:t,key:o.key}):Kf(i)?u(Xf,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(ui,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:r})});return u("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?u(fo,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?ri({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),Zf=P("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[bo(),P("dropdown-option",` - position: relative; - `,[H("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[H("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),P("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[H("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),ze("disabled",[W("pending",` - color: var(--n-option-text-color-hover); - `,[L("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),H("&::before","background-color: var(--n-option-color-hover);")]),W("active",` - color: var(--n-option-text-color-active); - `,[L("prefix, suffix",` - color: var(--n-option-text-color-active); - `),H("&::before","background-color: var(--n-option-color-active);")]),W("child-active",` - color: var(--n-option-text-color-child-active); - `,[L("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),W("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),W("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[L("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[W("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),L("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[W("show-icon",` - width: var(--n-option-icon-prefix-width); - `),P("icon",` - font-size: var(--n-option-icon-size); - `)]),L("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),L("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[W("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),P("icon",` - font-size: var(--n-option-icon-size); - `)]),P("dropdown-menu","pointer-events: all;")]),P("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),P("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),P("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),H(">",[P("scrollbar",` - height: inherit; - max-height: inherit; - `)]),ze("scrollable",` - padding: var(--n-padding); - `),W("scrollable",[L("content",` - padding: var(--n-padding); - `)])]),Jf={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]},Qf=Object.keys(or),eh=Object.assign(Object.assign(Object.assign({},or),Jf),re.props),Xn=K({name:"Dropdown",inheritAttrs:!1,props:eh,setup(e){const t=E(!1),r=rr(Z(e,"show"),t),n=F(()=>{const{keyField:O,childrenField:I}=e;return Wc(e.options,{getKey(x){return x[O]},getDisabled(x){return x.disabled===!0},getIgnored(x){return x.type==="divider"||x.type==="render"},getChildren(x){return x[I]}})}),o=F(()=>n.value.treeNodes),i=E(null),l=E(null),s=E(null),a=F(()=>{var O,I,x;return(x=(I=(O=i.value)!==null&&O!==void 0?O:l.value)!==null&&I!==void 0?I:s.value)!==null&&x!==void 0?x:null}),d=F(()=>n.value.getPath(a.value).keyPath),c=F(()=>n.value.getPath(e.value).keyPath),f=Me(()=>e.keyboard&&r.value);_l({keydown:{ArrowUp:{prevent:!0,handler:g},ArrowRight:{prevent:!0,handler:b},ArrowDown:{prevent:!0,handler:M},ArrowLeft:{prevent:!0,handler:_},Enter:{prevent:!0,handler:k},Escape:z}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:p}=Ie(e),y=re("Dropdown","-dropdown",Zf,Ef,e,h);Pe(ir,{labelFieldRef:Z(e,"labelField"),childrenFieldRef:Z(e,"childrenField"),renderLabelRef:Z(e,"renderLabel"),renderIconRef:Z(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:d,activeKeyPathRef:c,animatedRef:Z(e,"animated"),mergedShowRef:r,nodePropsRef:Z(e,"nodeProps"),renderOptionRef:Z(e,"renderOption"),menuPropsRef:Z(e,"menuProps"),doSelect:C,doUpdateShow:m}),Ce(r,O=>{!e.animated&&!O&&w()});function C(O,I){const{onSelect:x}=e;x&&ce(x,O,I)}function m(O){const{"onUpdate:show":I,onUpdateShow:x}=e;I&&ce(I,O),x&&ce(x,O),t.value=O}function w(){i.value=null,l.value=null,s.value=null}function z(){m(!1)}function _(){$("left")}function b(){$("right")}function g(){$("up")}function M(){$("down")}function k(){const O=A();O!=null&&O.isLeaf&&r.value&&(C(O.key,O.rawNode),m(!1))}function A(){var O;const{value:I}=n,{value:x}=a;return!I||x===null?null:(O=I.getNode(x))!==null&&O!==void 0?O:null}function $(O){const{value:I}=a,{value:{getFirstAvailableNode:x}}=n;let S=null;if(I===null){const N=x();N!==null&&(S=N.key)}else{const N=A();if(N){let D;switch(O){case"down":D=N.getNext();break;case"up":D=N.getPrev();break;case"right":D=N.getChild();break;case"left":D=N.getParent();break}D&&(S=D.key)}}S!==null&&(i.value=null,l.value=S)}const B=F(()=>{const{size:O,inverted:I}=e,{common:{cubicBezierEaseInOut:x},self:S}=y.value,{padding:N,dividerColor:D,borderRadius:q,optionOpacityDisabled:Q,[ne("optionIconSuffixWidth",O)]:ae,[ne("optionSuffixWidth",O)]:pe,[ne("optionIconPrefixWidth",O)]:ve,[ne("optionPrefixWidth",O)]:Re,[ne("fontSize",O)]:oe,[ne("optionHeight",O)]:ke,[ne("optionIconSize",O)]:we}=S,ee={"--n-bezier":x,"--n-font-size":oe,"--n-padding":N,"--n-border-radius":q,"--n-option-height":ke,"--n-option-prefix-width":Re,"--n-option-icon-prefix-width":ve,"--n-option-suffix-width":pe,"--n-option-icon-suffix-width":ae,"--n-option-icon-size":we,"--n-divider-color":D,"--n-option-opacity-disabled":Q};return I?(ee["--n-color"]=S.colorInverted,ee["--n-option-color-hover"]=S.optionColorHoverInverted,ee["--n-option-color-active"]=S.optionColorActiveInverted,ee["--n-option-text-color"]=S.optionTextColorInverted,ee["--n-option-text-color-hover"]=S.optionTextColorHoverInverted,ee["--n-option-text-color-active"]=S.optionTextColorActiveInverted,ee["--n-option-text-color-child-active"]=S.optionTextColorChildActiveInverted,ee["--n-prefix-color"]=S.prefixColorInverted,ee["--n-suffix-color"]=S.suffixColorInverted,ee["--n-group-header-text-color"]=S.groupHeaderTextColorInverted):(ee["--n-color"]=S.color,ee["--n-option-color-hover"]=S.optionColorHover,ee["--n-option-color-active"]=S.optionColorActive,ee["--n-option-text-color"]=S.optionTextColor,ee["--n-option-text-color-hover"]=S.optionTextColorHover,ee["--n-option-text-color-active"]=S.optionTextColorActive,ee["--n-option-text-color-child-active"]=S.optionTextColorChildActive,ee["--n-prefix-color"]=S.prefixColor,ee["--n-suffix-color"]=S.suffixColor,ee["--n-group-header-text-color"]=S.groupHeaderTextColor),ee}),R=p?Fe("dropdown",F(()=>`${e.size[0]}${e.inverted?"i":""}`),B,e):void 0;return{mergedClsPrefix:h,mergedTheme:y,tmNodes:o,mergedShow:r,handleAfterLeave:()=>{e.animated&&w()},doUpdateShow:m,cssVars:p?void 0:B,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const e=(n,o,i,l,s)=>{var a;const{mergedClsPrefix:d,menuProps:c}=this;(a=this.onRender)===null||a===void 0||a.call(this);const f=(c==null?void 0:c(void 0,this.tmNodes.map(p=>p.rawNode)))||{},h={ref:Pl(o),class:[n,`${d}-dropdown`,this.themeClass],clsPrefix:d,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:s};return u(ci,_t(this.$attrs,h,f))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(ni,Object.assign({},ho(this.$props,Qf),r),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}}),th={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},rh=()=>th,nh={name:"Space",self:rh},oh=nh;let Cr;const ih=()=>{if(!Wr)return!0;if(Cr===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),Cr=t}return Cr},ah=Object.assign(Object.assign({},re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),lh=K({name:"Space",props:ah,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=Ie(e),n=re("Space","-space",void 0,oh,e,t),o=Ot("Space",r,t);return{useGap:ih(),rtlEnabled:o,mergedClsPrefix:t,margin:F(()=>{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:{[ne("gap",i)]:l}}=n.value,{row:s,col:a}=dl(l);return{horizontal:bn(a),vertical:bn(s)}})}},render(){const{vertical:e,align:t,inline:r,justify:n,itemStyle:o,margin:i,wrap:l,mergedClsPrefix:s,rtlEnabled:a,useGap:d,wrapItem:c,internalUseGap:f}=this,h=sl(Sl(this));if(!h.length)return null;const p=`${i.horizontal}px`,y=`${i.horizontal/2}px`,C=`${i.vertical}px`,m=`${i.vertical/2}px`,w=h.length-1,z=n.startsWith("space-");return u("div",{role:"none",class:[`${s}-space`,a&&`${s}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${m}`,marginBottom:d||e?"":`-${m}`,alignItems:t,gap:d?`${i.vertical}px ${i.horizontal}px`:""}},!c&&(d||f)?h:h.map((_,b)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},d?"":e?{marginBottom:b!==w?C:""}:a?{marginLeft:z?n==="space-between"&&b===w?"":y:b!==w?p:"",marginRight:z?n==="space-between"&&b===0?"":y:"",paddingTop:m,paddingBottom:m}:{marginRight:z?n==="space-between"&&b===w?"":y:b!==w?p:"",marginLeft:z?n==="space-between"&&b===0?"":y:"",paddingTop:m,paddingBottom:m}]},_)))}}),tn=Object.assign(Object.assign({},re.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),fi=Ve("n-image");function sh(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const dh=Bt({name:"Image",common:Oe,peers:{Tooltip:Qr},self:sh}),uh=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:o,dividerColor:i,borderRadius:l,fontSize:s,hoverColor:a}=e;return{textColor:t,color:r,colorHover:a,colorModal:n,colorHoverModal:Pt(n,a),colorPopover:o,colorHoverPopover:Pt(o,a),borderColor:i,borderColorModal:Pt(n,i),borderColorPopover:Pt(o,i),borderRadius:l,fontSize:s}},ch={name:"List",common:Oe,self:uh},fh=ch,hh=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,textColor2:i,progressRailColor:l,fontSize:s,fontWeight:a}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:a,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},ph={name:"Progress",common:Oe,self:hh},hi=ph,vh=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:r,titleFontWeight:n}},gh={name:"Thing",common:Oe,self:vh},mh=gh,bh=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:i,opacityDisabled:l,actionColor:s,borderColor:a,hoverColor:d,lineHeight:c,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:c,borderRadius:f,draggerColor:s,draggerBorder:`1px dashed ${a}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:d,itemColorHoverError:te(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${a}`}},yh=Bt({name:"Upload",common:Oe,peers:{Button:ul,Progress:hi},self:bh}),wh=yh,xh=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Ch=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Sh=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Ph=H([H("body >",[P("image-container","position: fixed;")]),P("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),P("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[yn()]),P("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[P("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),yn()]),P("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[bo()]),P("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),P("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[ze("preview-disabled",` - cursor: pointer; - `),H("img",` - border-radius: inherit; - `)])]),Wt=32,pi=K({name:"ImagePreview",props:Object.assign(Object.assign({},tn),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=re("Image","-image",Ph,dh,e,Z(e,"clsPrefix"));let r=null;const n=E(null),o=E(null),i=E(void 0),l=E(!1),s=E(!1),{localeRef:a}=Yr("Image");function d(){const{value:j}=o;if(!r||!j)return;const{style:Y}=j,V=r.getBoundingClientRect(),le=V.left+V.width/2,se=V.top+V.height/2;Y.transformOrigin=`${le}px ${se}px`}function c(j){var Y,V;switch(j.key){case" ":j.preventDefault();break;case"ArrowLeft":(Y=e.onPrev)===null||Y===void 0||Y.call(e);break;case"ArrowRight":(V=e.onNext)===null||V===void 0||V.call(e);break;case"Escape":ke();break}}Ce(l,j=>{j?Te("keydown",document,c):Se("keydown",document,c)}),Qe(()=>{Se("keydown",document,c)});let f=0,h=0,p=0,y=0,C=0,m=0,w=0,z=0,_=!1;function b(j){const{clientX:Y,clientY:V}=j;p=Y-f,y=V-h,$o(oe)}function g(j){const{mouseUpClientX:Y,mouseUpClientY:V,mouseDownClientX:le,mouseDownClientY:se}=j,$e=le-Y,xe=se-V,_e=`vertical${xe>0?"Top":"Bottom"}`,Ne=`horizontal${$e>0?"Left":"Right"}`;return{moveVerticalDirection:_e,moveHorizontalDirection:Ne,deltaHorizontal:$e,deltaVertical:xe}}function M(j){const{value:Y}=n;if(!Y)return{offsetX:0,offsetY:0};const V=Y.getBoundingClientRect(),{moveVerticalDirection:le,moveHorizontalDirection:se,deltaHorizontal:$e,deltaVertical:xe}=j||{};let _e=0,Ne=0;return V.width<=window.innerWidth?_e=0:V.left>0?_e=(V.width-window.innerWidth)/2:V.right0?Ne=(V.height-window.innerHeight)/2:V.bottom.5){const j=I;O-=1,I=Math.max(.5,Math.pow(R,O));const Y=j-I;oe(!1);const V=M();I+=Y,oe(!1),I-=Y,p=V.offsetX,y=V.offsetY,oe()}}function oe(j=!0){var Y;const{value:V}=n;if(!V)return;const{style:le}=V,se=cl((Y=A==null?void 0:A.previewedImgPropsRef.value)===null||Y===void 0?void 0:Y.style);let $e="";if(typeof se=="string")$e=se+";";else for(const _e in se)$e+=`${pu(_e)}: ${se[_e]};`;const xe=`transform-origin: center; transform: translateX(${p}px) translateY(${y}px) rotate(${x}deg) scale(${I});`;_?le.cssText=$e+"cursor: grabbing; transition: none;"+xe:le.cssText=$e+"cursor: grab;"+xe+(j?"":"transition: none;"),j||V.offsetHeight}function ke(){l.value=!l.value,s.value=!0}function we(){I=pe(),O=Math.ceil(Math.log(I)/Math.log(R)),p=0,y=0,oe()}const ee={setPreviewSrc:j=>{i.value=j},setThumbnailEl:j=>{r=j},toggleShow:ke};function Le(j,Y){if(e.showToolbarTooltip){const{value:V}=t;return u(ai,{to:!1,theme:V.peers.Tooltip,themeOverrides:V.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>a.value[Y],trigger:()=>j})}else return j}const qe=F(()=>{const{common:{cubicBezierEaseInOut:j},self:{toolbarIconColor:Y,toolbarBorderRadius:V,toolbarBoxShadow:le,toolbarColor:se}}=t.value;return{"--n-bezier":j,"--n-toolbar-icon-color":Y,"--n-toolbar-color":se,"--n-toolbar-border-radius":V,"--n-toolbar-box-shadow":le}}),{inlineThemeDisabled:Ge}=Ie(),Ee=Ge?Fe("image-preview",void 0,qe,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:i,show:l,appear:Dr(),displayed:s,previewedImgProps:A==null?void 0:A.previewedImgPropsRef,handleWheel(j){j.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:B,syncTransformOrigin:d,handleAfterLeave:()=>{S(),x=0,s.value=!1},handleDragStart:j=>{var Y,V;(V=(Y=A==null?void 0:A.previewedImgPropsRef.value)===null||Y===void 0?void 0:Y.onDragstart)===null||V===void 0||V.call(Y,j),j.preventDefault()},zoomIn:ve,zoomOut:Re,rotateCounterclockwise:q,rotateClockwise:Q,handleSwitchPrev:N,handleSwitchNext:D,withTooltip:Le,resizeToOrignalImageSize:we,cssVars:Ge?void 0:qe,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender},ee)},render(){var e,t;const{clsPrefix:r}=this;return u(De,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(ao,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),vt(u("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u($t,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u($t,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${r}-image-preview-toolbar`},this.onPrev?u(De,null,o(u(fe,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>xh}),"tipPrevious"),o(u(fe,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>Ch}),"tipNext")):null,o(u(fe,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>u(gc,null)}),"tipCounterclockwise"),o(u(fe,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>u(vc,null)}),"tipClockwise"),o(u(fe,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>u(yc,null)}),"tipOriginalSize"),o(u(fe,{clsPrefix:r,onClick:this.zoomOut},{default:()=>u(bc,null)}),"tipZoomOut"),o(u(fe,{clsPrefix:r,onClick:this.zoomIn},{default:()=>u(mc,null)}),"tipZoomIn"),o(u(fe,{clsPrefix:r,onClick:this.toggleShow},{default:()=>Sh}),"tipClose"))}}):null,u($t,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return vt(u("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[co,this.show]])}})),[[Fr,{enabled:this.show}]])):null}}))}}),vi=Ve("n-image-group"),kh=tn,$h=K({name:"ImageGroup",props:kh,setup(e){let t;const{mergedClsPrefixRef:r}=Ie(e),n=`c${kr()}`,o=Ar(),i=a=>{var d;t=a,(d=s.value)===null||d===void 0||d.setPreviewSrc(a)};function l(a){if(!(o!=null&&o.proxy))return;const c=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!c.length)return;const f=Array.from(c).findIndex(h=>h.dataset.previewSrc===t);~f?i(c[(f+a+c.length)%c.length].dataset.previewSrc):i(c[0].dataset.previewSrc)}Pe(vi,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:a=>{var d;(d=s.value)===null||d===void 0||d.setThumbnailEl(a)},toggleShow:()=>{var a;(a=s.value)===null||a===void 0||a.toggleShow()},groupId:n});const s=E(null);return{mergedClsPrefix:r,previewInstRef:s,next:()=>l(1),prev:()=>l(-1)}},render(){return u(pi,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),zh=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},tn),Br=K({name:"Image",props:zh,inheritAttrs:!1,setup(e){const t=E(null),r=E(!1),n=E(null),o=ie(vi,null),{mergedClsPrefixRef:i}=o||Ie(e),l={click:()=>{if(e.previewDisabled||r.value)return;const d=e.previewSrc||e.src;if(o){o.setPreviewSrc(d),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=n;c&&(c.setPreviewSrc(d),c.setThumbnailEl(t.value),c.toggleShow())}},s=E(!e.lazy);We(()=>{var d;(d=t.value)===null||d===void 0||d.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),We(()=>{if(br)return;let d;const c=it(()=>{d==null||d(),d=void 0,e.lazy&&(d=zf(t.value,e.intersectionObserverOptions,s))});Qe(()=>{c(),d==null||d()})}),it(()=>{var d;e.src,(d=e.imgProps)===null||d===void 0||d.src,r.value=!1});const a=E(!1);return Pe(fi,{previewedImgPropsRef:Z(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:n,imageRef:t,showError:r,shouldStartLoading:s,loaded:a,mergedOnClick:d=>{var c,f;l.click(),(f=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||f===void 0||f.call(c,d)},mergedOnError:d=>{if(!s.value)return;r.value=!0;const{onError:c,imgProps:{onError:f}={}}=e;c==null||c(d),f==null||f(d)},mergedOnLoad:d=>{const{onLoad:c,imgProps:{onLoad:f}={}}=e;c==null||c(d),f==null||f(d),a.value=!0}},l)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},loaded:o,$attrs:i,lazy:l}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),a=this.src||n.src||"",d=u("img",Object.assign(Object.assign({},n),{ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:br?a:this.showError?this.fallbackSrc:this.shouldStartLoading?a:void 0,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:br&&l&&!this.intersectionObserverOptions?"lazy":"eager",style:[n.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?d:u(pi,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>d}),!o&&s)}}),Th=H([P("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[W("show-divider",[P("list-item",[H("&:not(:last-child)",[L("divider",` - background-color: var(--n-merged-border-color); - `)])])]),W("clickable",[P("list-item",` - cursor: pointer; - `)]),W("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),W("hoverable",[P("list-item",` - border-radius: var(--n-border-radius); - `,[H("&:hover",` - background-color: var(--n-merged-color-hover); - `,[L("divider",` - background-color: transparent; - `)])])]),W("bordered, hoverable",[P("list-item",` - padding: 12px 20px; - `),L("header, footer",` - padding: 12px 20px; - `)]),L("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[H("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),P("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[L("prefix",` - margin-right: 20px; - flex: 0; - `),L("suffix",` - margin-left: 20px; - flex: 0; - `),L("main",` - flex: 1; - `),L("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),fl(P("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),hl(P("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),Ih=Object.assign(Object.assign({},re.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),gi=Ve("n-list"),Rh=K({name:"List",props:Ih,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=Ie(e),o=Ot("List",n,t),i=re("List","-list",Th,fh,e,t);Pe(gi,{showDividerRef:Z(e,"showDivider"),mergedClsPrefixRef:t});const l=F(()=>{const{common:{cubicBezierEaseInOut:a},self:{fontSize:d,textColor:c,color:f,colorModal:h,colorPopover:p,borderColor:y,borderColorModal:C,borderColorPopover:m,borderRadius:w,colorHover:z,colorHoverModal:_,colorHoverPopover:b}}=i.value;return{"--n-font-size":d,"--n-bezier":a,"--n-text-color":c,"--n-color":f,"--n-border-radius":w,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":p,"--n-color-hover":z,"--n-color-hover-modal":_,"--n-color-hover-popover":b}}),s=r?Fe("list",void 0,l,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),u("ul",{class:[`${r}-list`,this.rtlEnabled&&`${r}-list--rtl`,this.bordered&&`${r}-list--bordered`,this.showDivider&&`${r}-list--show-divider`,this.hoverable&&`${r}-list--hoverable`,this.clickable&&`${r}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${r}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${r}-list__footer`},t.footer()):null)}}),_h=K({name:"ListItem",setup(){const e=ie(gi,null);return e||bt("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}});function rn(){const e=ie(pl,null);return e===null&&bt("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 Oh=H([P("progress",{display:"inline-block"},[P("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),W("line",` - width: 100%; - display: block; - `,[P("progress-content",` - display: flex; - align-items: center; - `,[P("progress-graph",{flex:1})]),P("progress-custom-content",{marginLeft:"14px"}),P("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[W("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),W("circle, dashboard",{width:"120px"},[P("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),P("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),P("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),W("multiple-circle",` - width: 200px; - color: inherit; - `,[P("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),P("progress-content",{position:"relative"}),P("progress-graph",{position:"relative"},[P("progress-graph-circle",[H("svg",{verticalAlign:"bottom"}),P("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[W("empty",{opacity:0})]),P("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),P("progress-graph-line",[W("indicator-inside",[P("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[P("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),P("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),W("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[P("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),P("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),P("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[P("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[W("processing",[H("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),H("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Bh={success:u(yo,null),error:u(wo,null),warning:u(xo,null),info:u(Co,null)},Mh=K({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=F(()=>He(e.height)),n=F(()=>e.railBorderRadius!==void 0?He(e.railBorderRadius):e.height!==void 0?He(e.height,{c:.5}):""),o=F(()=>e.fillBorderRadius!==void 0?He(e.fillBorderRadius):e.railBorderRadius!==void 0?He(e.railBorderRadius):e.height!==void 0?He(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:l,railStyle:s,percentage:a,unit:d,indicatorTextColor:c,status:f,showIndicator:h,fillColor:p,processing:y,clsPrefix:C}=e;return u("div",{class:`${C}-progress-content`,role:"none"},u("div",{class:`${C}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${C}-progress-graph-line`,{[`${C}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${C}-progress-graph-line-rail`,style:[{backgroundColor:l,height:r.value,borderRadius:n.value},s]},u("div",{class:[`${C}-progress-graph-line-fill`,y&&`${C}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:r.value,lineHeight:r.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${C}-progress-graph-line-indicator`,style:{color:c}},a,d):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${C}-progress-custom-content`,style:{color:c},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${C}-progress-icon ${C}-progress-icon--as-text`,style:{color:c}},a,d):u("div",{class:`${C}-progress-icon`,"aria-hidden":!0},u(fe,{clsPrefix:C},{default:()=>Bh[f]}))):null)}}}),Lh={success:u(yo,null),error:u(wo,null),warning:u(xo,null),info:u(Co,null)},Eh=K({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(n,o,i){const{gapDegree:l,viewBoxWidth:s,strokeWidth:a}=e,d=50,c=0,f=d,h=0,p=2*d,y=50+a/2,C=`M ${y},${y} m ${c},${f} - a ${d},${d} 0 1 1 ${h},${-p} - a ${d},${d} 0 1 1 ${-h},${p}`,m=Math.PI*2*d,w={stroke:i,strokeDasharray:`${n/100*(m-l)}px ${s*8}px`,strokeDashoffset:`-${l/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:C,pathStyle:w}}return()=>{const{fillColor:n,railColor:o,strokeWidth:i,offsetDegree:l,status:s,percentage:a,showIndicator:d,indicatorTextColor:c,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:y,pathStyle:C}=r(100,0,o),{pathString:m,pathStyle:w}=r(a,l,n),z=100+i;return u("div",{class:`${p}-progress-content`,role:"none"},u("div",{class:`${p}-progress-graph`,"aria-hidden":!0},u("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${z} ${z}`},u("g",null,u("path",{class:`${p}-progress-graph-circle-rail`,d:y,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:C})),u("g",null,u("path",{class:[`${p}-progress-graph-circle-fill`,a===0&&`${p}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:w}))))),d?u("div",null,t.default?u("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):s!=="default"?u("div",{class:`${p}-progress-icon`,"aria-hidden":!0},u(fe,{clsPrefix:p},{default:()=>Lh[s]})):u("div",{class:`${p}-progress-text`,style:{color:c},role:"none"},u("span",{class:`${p}-progress-text__percentage`},a),u("span",{class:`${p}-progress-text__unit`},f))):null)}}});function Yn(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Ah=K({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=F(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:n,strokeWidth:o,circleGap:i,showIndicator:l,fillColor:s,railColor:a,railStyle:d,percentage:c,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${n} ${n}`},c.map((h,p)=>u("g",{key:p},u("path",{class:`${f}-progress-graph-circle-rail`,d:Yn(n/2-o/2*(1+2*p)-i*p,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:a[p]},d[p]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:Yn(n/2-o/2*(1+2*p)-i*p,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[p],strokeDashoffset:0,stroke:s[p]}})))))),l&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),Dh=Object.assign(Object.assign({},re.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),Fh=K({name:"Progress",props:Dh,setup(e){const t=F(()=>e.indicatorPlacement||e.indicatorPosition),r=F(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=Ie(e),i=re("Progress","-progress",Oh,hi,e,n),l=F(()=>{const{status:a}=e,{common:{cubicBezierEaseInOut:d},self:{fontSize:c,fontSizeCircle:f,railColor:h,railHeight:p,iconSizeCircle:y,iconSizeLine:C,textColorCircle:m,textColorLineInner:w,textColorLineOuter:z,lineBgProcessing:_,fontWeightCircle:b,[ne("iconColor",a)]:g,[ne("fillColor",a)]:M}}=i.value;return{"--n-bezier":d,"--n-fill-color":M,"--n-font-size":c,"--n-font-size-circle":f,"--n-font-weight-circle":b,"--n-icon-color":g,"--n-icon-size-circle":y,"--n-icon-size-line":C,"--n-line-bg-processing":_,"--n-rail-color":h,"--n-rail-height":p,"--n-text-color-circle":m,"--n-text-color-line-inner":w,"--n-text-color-line-outer":z}}),s=o?Fe("progress",F(()=>e.status[0]),l,e):void 0;return{mergedClsPrefix:n,mergedIndicatorPlacement:t,gapDeg:r,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:n,status:o,railColor:i,railStyle:l,color:s,percentage:a,viewBoxWidth:d,strokeWidth:c,mergedIndicatorPlacement:f,unit:h,borderRadius:p,fillBorderRadius:y,height:C,processing:m,circleGap:w,mergedClsPrefix:z,gapDeg:_,gapOffsetDegree:b,themeClass:g,$slots:M,onRender:k}=this;return k==null||k(),u("div",{class:[g,`${z}-progress`,`${z}-progress--${e}`,`${z}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Eh,{clsPrefix:z,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:l,offsetDegree:this.offsetDegree,percentage:a,viewBoxWidth:d,strokeWidth:c,gapDegree:_===void 0?e==="dashboard"?75:0:_,gapOffsetDegree:b,unit:h},M):e==="line"?u(Mh,{clsPrefix:z,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:l,percentage:a,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:y,railBorderRadius:p,height:C},M):e==="multiple-circle"?u(Ah,{clsPrefix:z,strokeWidth:c,railColor:i,fillColor:s,railStyle:l,viewBoxWidth:d,percentage:a,showIndicator:n,circleGap:w},M):null)}}),Nh=P("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[P("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),P("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[P("thing-header-wrapper",` - flex: 1; - `)]),P("thing-main",` - flex-grow: 1; - `,[P("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[L("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),L("description",[H("&:not(:last-child)",` - margin-bottom: 4px; - `)]),L("content",[H("&:not(:first-child)",` - margin-top: 12px; - `)]),L("footer",[H("&:not(:first-child)",` - margin-top: 12px; - `)]),L("action",[H("&:not(:first-child)",` - margin-top: 12px; - `)])])]),Hh=Object.assign(Object.assign({},re.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),mi=K({name:"Thing",props:Hh,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=Ie(e),i=re("Thing","-thing",Nh,mh,e,r),l=Ot("Thing",o,r),s=F(()=>{const{self:{titleTextColor:d,textColor:c,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":h,"--n-text-color":c,"--n-title-font-weight":f,"--n-title-text-color":d}}),a=n?Fe("thing",void 0,s,e):void 0;return()=>{var d;const{value:c}=r,f=l?l.value:!1;return(d=a==null?void 0:a.onRender)===null||d===void 0||d.call(a),u("div",{class:[`${c}-thing`,a==null?void 0:a.themeClass,f&&`${c}-thing--rtl`],style:n?void 0:s.value},t.avatar&&e.contentIndented?u("div",{class:`${c}-thing-avatar`},t.avatar()):null,u("div",{class:`${c}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${c}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${c}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header-wrapper`},u("div",{class:`${c}-thing-header`},t.header||e.title?u("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u(De,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header`},t.header||e.title?u("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${c}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${c}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${c}-thing-main__action`},t.action()):null))}}}),yt=Ve("n-upload"),bi="__UPLOAD_DRAGGER__",jh=K({name:"UploadDragger",[bi]:!0,setup(e,{slots:t}){const r=ie(yt,null);return r||bt("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:n},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=r;return u("div",{class:[`${n}-upload-dragger`,(o||i)&&`${n}-upload-dragger--disabled`]},t)}}});var yi=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};const wi=e=>e.includes("image/"),Zn=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Jn=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,xi=e=>{if(e.type)return wi(e.type);const t=Zn(e.name||"");if(Jn.test(t))return!0;const r=e.thumbnailUrl||e.url||"",n=Zn(r);return!!(/^data:image\//.test(r)||Jn.test(n))};function Wh(e){return yi(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!wi(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const Uh=Wr&&window.FileReader&&window.File;function Vh(e){return e.isDirectory}function Kh(e){return e.isFile}function qh(e,t){return yi(this,void 0,void 0,function*(){const r=[];let n,o=0;function i(){o++}function l(){o--,o||n(r)}function s(a){a.forEach(d=>{if(d){if(i(),t&&Vh(d)){const c=d.createReader();i(),c.readEntries(f=>{s(f),l()},()=>{l()})}else Kh(d)&&(i(),d.file(c=>{r.push({file:c,entry:d,source:"dnd"}),l()},()=>{l()}));l()}})}return yield new Promise(a=>{n=a,s(e)}),r})}function Rt(e){const{id:t,name:r,percentage:n,status:o,url:i,file:l,thumbnailUrl:s,type:a,fullPath:d,batchId:c}=e;return{id:t,name:r,percentage:n??null,status:o,url:i??null,file:l??null,thumbnailUrl:s??null,type:a??null,fullPath:d??null,batchId:c??null}}function Gh(e,t,r){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),r=r.toLocaleLowerCase(),r.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,l]=t.split("/"),[s,a]=o.split("/");if((s==="*"||i&&s&&s===i)&&(a==="*"||l&&a&&a===l))return!0}else return!0;return!1})}const Xh=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},Ci=K({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=ie(yt,null);r||bt("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:n,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:l,dragOverRef:s,openOpenFileDialog:a,draggerInsideRef:d,handleFileAddition:c,mergedDirectoryDndRef:f,triggerStyleRef:h}=r,p=F(()=>l.value==="image-card");function y(){o.value||i.value||a()}function C(_){_.preventDefault(),s.value=!0}function m(_){_.preventDefault(),s.value=!0}function w(_){_.preventDefault(),s.value=!1}function z(_){var b;if(_.preventDefault(),!d.value||o.value||i.value){s.value=!1;return}const g=(b=_.dataTransfer)===null||b===void 0?void 0:b.items;g!=null&&g.length?qh(Array.from(g).map(M=>M.webkitGetAsEntry()),f.value).then(M=>{c(M)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{var _;const{value:b}=n;return e.abstract?(_=t.default)===null||_===void 0?void 0:_.call(t,{handleClick:y,handleDrop:z,handleDragOver:C,handleDragEnter:m,handleDragLeave:w}):u("div",{class:[`${b}-upload-trigger`,(o.value||i.value)&&`${b}-upload-trigger--disabled`,p.value&&`${b}-upload-trigger--image-card`],style:h.value,onClick:y,onDrop:z,onDragover:C,onDragenter:m,onDragleave:w},p.value?u(jh,null,{default:()=>ht(t.default,()=>[u(fe,{clsPrefix:b},{default:()=>u(oc,null)})])}):t)}}}),Yh=K({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:ie(yt).mergedThemeRef}},render(){return u(So,null,{default:()=>this.show?u(Fh,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Zh=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Jh=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Qh=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};const Ut={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},ep=K({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=ie(yt),r=E(null),n=E(""),o=F(()=>{const{file:g}=e;return g.status==="finished"?"success":g.status==="error"?"error":"info"}),i=F(()=>{const{file:g}=e;if(g.status==="error")return"error"}),l=F(()=>{const{file:g}=e;return g.status==="uploading"}),s=F(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:g}=e;return["uploading","pending","error"].includes(g.status)}),a=F(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:g}=e;return["finished"].includes(g.status)}),d=F(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:g}=e;return["finished"].includes(g.status)}),c=F(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:g}=e;return["error"].includes(g.status)}),f=Me(()=>n.value||e.file.thumbnailUrl||e.file.url),h=F(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:g},listType:M}=e;return["finished"].includes(g)&&f.value&&M==="image-card"});function p(){t.submit(e.file.id)}function y(g){g.preventDefault();const{file:M}=e;["finished","pending","error"].includes(M.status)?m(M):["uploading"].includes(M.status)?z(M):Ur("upload","The button clicked type is unknown.")}function C(g){g.preventDefault(),w(e.file)}function m(g){const{xhrMap:M,doChange:k,onRemoveRef:{value:A},mergedFileListRef:{value:$}}=t;Promise.resolve(A?A({file:Object.assign({},g),fileList:$}):!0).then(B=>{if(B===!1)return;const R=Object.assign({},g,{status:"removed"});M.delete(g.id),k(R,void 0,{remove:!0})})}function w(g){const{onDownloadRef:{value:M}}=t;Promise.resolve(M?M(Object.assign({},g)):!0).then(k=>{k!==!1&&Xh(g.url,g.name)})}function z(g){const{xhrMap:M}=t,k=M.get(g.id);k==null||k.abort(),m(Object.assign({},g))}function _(){const{onPreviewRef:{value:g}}=t;if(g)g(e.file);else if(e.listType==="image-card"){const{value:M}=r;if(!M)return;M.click()}}const b=()=>Qh(this,void 0,void 0,function*(){const{listType:g}=e;g!=="image"&&g!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(n.value=yield t.getFileThumbnailUrlResolver(e.file))});return it(()=>{b()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:l,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:a,showDownloadButton:d,showRetryButton:c,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:r,handleRemoveOrCancelClick:y,handleDownloadClick:C,handleRetryClick:p,handlePreviewClick:_}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:n,renderIcon:o}=this;let i;const l=r==="image";l||r==="image-card"?i=!this.shouldUseThumbnailUrl(n)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):xi(n)?u(fe,{clsPrefix:e},{default:()=>Zh}):u(fe,{clsPrefix:e},{default:()=>Jh})):u("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?u(Br,{src:this.mergedThumbnailUrl||void 0,previewSrc:n.url||void 0,alt:n.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:n.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):u(fe,{clsPrefix:e},{default:()=>u(ic,null)}));const a=u(Yh,{show:this.showProgress,percentage:n.percentage||0,status:this.progressStatus}),d=r==="text"||r==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,n.url&&n.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},d&&(n.url&&n.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,onClick:this.handlePreviewClick},n.name):u("span",{onClick:this.handlePreviewClick},n.name)),l&&a),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?u(be,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(fe,{clsPrefix:e},{default:()=>u(Zo,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(be,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Ut,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(go,null,{default:()=>this.showRemoveButton?u(fe,{clsPrefix:e,key:"trash"},{default:()=>u(sc,null)}):u(fe,{clsPrefix:e,key:"cancel"},{default:()=>u(cc,null)})})}),this.showRetryButton&&!this.disabled&&u(be,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(fe,{clsPrefix:e},{default:()=>u(pc,null)})}),this.showDownloadButton?u(be,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(fe,{clsPrefix:e},{default:()=>u(dc,null)})}):null)),!l&&a)}}),tp=K({name:"UploadFileList",setup(e,{slots:t}){const r=ie(yt,null);r||bt("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:n,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:l,fileListStyleRef:s,cssVarsRef:a,themeClassRef:d,maxReachedRef:c,showTriggerRef:f,imageGroupPropsRef:h}=r,p=F(()=>i.value==="image-card"),y=()=>l.value.map(m=>u(ep,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),C=()=>p.value?u($h,Object.assign({},h.value),{default:y}):u(So,{group:!0},{default:y});return()=>{const{value:m}=o,{value:w}=n;return u("div",{class:[`${m}-upload-file-list`,p.value&&`${m}-upload-file-list--grid`,w?d==null?void 0:d.value:void 0],style:[w&&a?a.value:"",s.value]},C(),f.value&&!c.value&&p.value&&u(Ci,null,t))}}}),rp=H([P("upload","width: 100%;",[W("dragger-inside",[P("upload-trigger",` - display: block; - `)]),W("drag-over",[P("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),P("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[H("&:hover",` - border: var(--n-dragger-border-hover); - `),W("disabled",` - cursor: not-allowed; - `)]),P("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[H("+",[P("upload-file-list","margin-top: 8px;")]),W("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),W("image-card",` - width: 96px; - height: 96px; - `,[P("base-icon",` - font-size: 24px; - `),P("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),P("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[H("a, img","outline: none;"),W("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[P("upload-file","cursor: not-allowed;")]),W("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),P("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[wn(),P("progress",[wn({foldPadding:!0})]),H("&:hover",` - background-color: var(--n-item-color-hover); - `,[P("upload-file-info",[L("action",` - opacity: 1; - `)])]),W("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[P("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[P("progress",` - padding: 2px 0; - margin-bottom: 0; - `),L("name",` - padding: 0 8px; - `),L("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[H("img",` - width: 100%; - `)])])]),W("text-type",[P("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),W("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[P("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),P("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[L("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[H("img",` - width: 100%; - `)])]),H("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),H("&:hover",[H("&::before","opacity: 1;"),P("upload-file-info",[L("thumbnail","opacity: .12;")])])]),W("error-status",[H("&:hover",` - background-color: var(--n-item-color-hover-error); - `),P("upload-file-info",[L("name","color: var(--n-item-text-color-error);"),L("thumbnail","color: var(--n-item-text-color-error);")]),W("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),W("with-url",` - cursor: pointer; - `,[P("upload-file-info",[L("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[H("a",` - text-decoration: underline; - `)])])]),P("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[L("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[P("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),L("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[P("button",[H("&:not(:last-child)",{marginRight:"4px"}),P("base-icon",[H("svg",[po()])])]),W("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),W("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),L("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[H("a",` - color: inherit; - text-decoration: underline; - `)])])])]),P("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var Qn=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};function np(e,t,r){const{doChange:n,xhrMap:o}=e;let i=0;function l(a){var d;let c=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),c=Rt(((d=e.onError)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}function s(a){var d;if(e.isErrorState){if(e.isErrorState(r)){l(a);return}}else if(r.status<200||r.status>=300){l(a);return}let c=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),c=Rt(((d=e.onFinish)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}return{handleXHRLoad:s,handleXHRError:l,handleXHRAbort(a){const d=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),n(d,a)},handleXHRProgress(a){const d=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const c=Math.ceil(a.loaded/a.total*100);d.percentage=c,i=c}n(d,a)}}}function op(e){const{inst:t,file:r,data:n,headers:o,withCredentials:i,action:l,customRequest:s}=e,{doChange:a}=e.inst;let d=0;s({file:r,data:n,headers:o,withCredentials:i,action:l,onProgress(c){const f=Object.assign({},r,{status:"uploading"}),h=c.percent;f.percentage=h,d=h,a(f)},onFinish(){var c;let f=Object.assign({},r,{status:"finished",percentage:d});f=Rt(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)},onError(){var c;let f=Object.assign({},r,{status:"error",percentage:d});f=Rt(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)}})}function ip(e,t,r){const n=np(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function Si(e,t){return typeof e=="function"?e({file:t}):e||{}}function ap(e,t,r){const n=Si(t,r);n&&Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function lp(e,t,r){const n=Si(t,r);n&&Object.keys(n).forEach(o=>{e.append(o,n[o])})}function sp(e,t,r,{method:n,action:o,withCredentials:i,responseType:l,headers:s,data:a}){const d=new XMLHttpRequest;d.responseType=l,e.xhrMap.set(r.id,d),d.withCredentials=i;const c=new FormData;if(lp(c,a,r),c.append(t,r.file),ip(e,r,d),o!==void 0){d.open(n.toUpperCase(),o),ap(d,s,r),d.send(c);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const dp=Object.assign(Object.assign({},re.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Uh?xi(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),up=K({name:"Upload",props:dp,setup(e){e.abstract&&e.listType==="image-card"&&bt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Upload","-upload",rp,wh,e,t),o=mo(e),i=F(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=E(e.defaultFileList),s=Z(e,"fileList"),a=E(null),d={value:!1},c=E(!1),f=new Map,h=rr(s,l),p=F(()=>h.value.map(Rt));function y(){var $;($=a.value)===null||$===void 0||$.click()}function C($){const B=$.target;z(B.files?Array.from(B.files).map(R=>({file:R,entry:null,source:"input"})):null,$),B.value=""}function m($){const{"onUpdate:fileList":B,onUpdateFileList:R}=e;B&&ce(B,$),R&&ce(R,$),l.value=$}const w=F(()=>e.multiple||e.directory);function z($,B){if(!$||$.length===0)return;const{onBeforeUpload:R}=e;$=w.value?$:[$[0]];const{max:O,accept:I}=e;$=$.filter(({file:S,source:N})=>N==="dnd"&&(I!=null&&I.trim())?Gh(S.name,S.type,I):!0),O&&($=$.slice(0,O-p.value.length));const x=kr();Promise.all($.map(({file:S,entry:N})=>Qn(this,void 0,void 0,function*(){var D;const q={id:kr(),batchId:x,name:S.name,status:"pending",percentage:0,file:S,url:null,type:S.type,thumbnailUrl:null,fullPath:(D=N==null?void 0:N.fullPath)!==null&&D!==void 0?D:`/${S.webkitRelativePath||S.name}`};return!R||(yield R({file:q,fileList:p.value}))!==!1?q:null}))).then(S=>Qn(this,void 0,void 0,function*(){let N=Promise.resolve();return S.forEach(D=>{N=N.then(qt).then(()=>{D&&b(D,B,{append:!0})})}),yield N})).then(()=>{e.defaultUpload&&_()})}function _($){const{method:B,action:R,withCredentials:O,headers:I,data:x,name:S}=e,N=$!==void 0?p.value.filter(q=>q.id===$):p.value,D=$!==void 0;N.forEach(q=>{const{status:Q}=q;(Q==="pending"||Q==="error"&&D)&&(e.customRequest?op({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:q,action:R,withCredentials:O,headers:I,data:x,customRequest:e.customRequest}):sp({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},S,q,{method:B,action:R,withCredentials:O,responseType:e.responseType,headers:I,data:x}))})}const b=($,B,R={append:!1,remove:!1})=>{const{append:O,remove:I}=R,x=Array.from(p.value),S=x.findIndex(N=>N.id===$.id);if(O||I||~S){O?x.push($):I?x.splice(S,1):x.splice(S,1,$);const{onChange:N}=e;N&&N({file:$,fileList:x,event:B}),m(x)}};function g($){var B;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:R}=e;return R?(B=R($.file,$))!==null&&B!==void 0?B:$.url||"":$.url?$.url:$.file?Wh($.file):""}const M=F(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:B,draggerBorder:R,draggerBorderHover:O,itemColorHover:I,itemColorHoverError:x,itemTextColorError:S,itemTextColorSuccess:N,itemTextColor:D,itemIconColor:q,itemDisabledOpacity:Q,lineHeight:ae,borderRadius:pe,fontSize:ve,itemBorderImageCardError:Re,itemBorderImageCard:oe}}=n.value;return{"--n-bezier":$,"--n-border-radius":pe,"--n-dragger-border":R,"--n-dragger-border-hover":O,"--n-dragger-color":B,"--n-font-size":ve,"--n-item-color-hover":I,"--n-item-color-hover-error":x,"--n-item-disabled-opacity":Q,"--n-item-icon-color":q,"--n-item-text-color":D,"--n-item-text-color-error":S,"--n-item-text-color-success":N,"--n-line-height":ae,"--n-item-border-image-card-error":Re,"--n-item-border-image-card":oe}}),k=r?Fe("upload",void 0,M,e):void 0;Pe(yt,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:Z(e,"showCancelButton"),showDownloadButtonRef:Z(e,"showDownloadButton"),showRemoveButtonRef:Z(e,"showRemoveButton"),showRetryButtonRef:Z(e,"showRetryButton"),onRemoveRef:Z(e,"onRemove"),onDownloadRef:Z(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:Z(e,"triggerStyle"),shouldUseThumbnailUrlRef:Z(e,"shouldUseThumbnailUrl"),renderIconRef:Z(e,"renderIcon"),xhrMap:f,submit:_,doChange:b,showPreviewButtonRef:Z(e,"showPreviewButton"),onPreviewRef:Z(e,"onPreview"),getFileThumbnailUrlResolver:g,listTypeRef:Z(e,"listType"),dragOverRef:c,openOpenFileDialog:y,draggerInsideRef:d,handleFileAddition:z,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:Z(e,"fileListStyle"),abstractRef:Z(e,"abstract"),acceptRef:Z(e,"accept"),cssVarsRef:r?void 0:M,themeClassRef:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showTriggerRef:Z(e,"showTrigger"),imageGroupPropsRef:Z(e,"imageGroupProps"),mergedDirectoryDndRef:F(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:_,openOpenFileDialog:y};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,inputElRef:a,mergedTheme:n,dragOver:c,mergedMultiple:w,cssVars:r?void 0:M,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,handleFileInputChange:C},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:i,onRender:l}=this;if(o.default&&!this.abstract){const a=o.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[bi]&&(r.value=!0)}const s=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(De,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(vl,{to:"body"},s)):(l==null||l(),u("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&u(Ci,null,o),this.showFileList&&u(tp,null,o)))}}),eo="/web/assets/setting-c6ca7b14.svg";function cp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function fp(e,t,r=0,n="/",o=""){let i=e+"="+t+";path="+n;if(o&&(i+=";domain="+o),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const ct={get:cp,set:fp},Lt=gl("prompt-store",()=>{const e=E([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=E(!1),r=E(!1),n=E([]),o=E(""),i=E(0),l=E({isShow:!1,newPrompt:{act:"",prompt:""}}),s=F(()=>{var d;return o.value?(d=n.value)==null?void 0:d.filter(c=>c.act.includes(o.value)||c.prompt.includes(o.value)):n.value});function a(d){if(d instanceof Array&&d.every(c=>c.act&&c.prompt)){if(n.value.length===0)return n.value.push(...d),{result:!0,data:{successCount:d.length}};const c=d.filter(f=>{var h;return(h=n.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return n.value.push(...c),{result:!0,data:{successCount:c.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:n,keyword:o,searchPromptList:s,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),hp=["href"],pp={key:1},vp=K({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(me(),Ae("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},at(t.navConfig.label),9,hp)):(me(),Ae("div",pp,at(t.navConfig.label),1))}}),gp=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),mp=e=>new Promise((t,r)=>setTimeout(t,e)),bp=Ue("div",{class:"text-3xl py-2"},"设置用户",-1),yp=Ue("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Sr="_U",wp="BingAI_Rand_IP",xp=K({__name:"ChatNav",setup(e){const t=E(!1),r=E(!1),n=E(""),o=rn(),i=Lt(),{isShowPromptSotre:l}=Mt(i),s=E(!1),a={github:"github",setToken:"setToken",compose:"compose",promptStore:"promptStore",reset:"reset",version:"version"},d=[{key:a.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:a.version,label:"版本信息"},{key:a.promptStore,label:"提示词库"},{key:a.setToken,label:"设置用户"},{key:a.compose,label:"撰写文章",url:"/web/compose.html"},{key:a.reset,label:"一键重置"}],c=C=>u(vp,{navConfig:C}),f=C=>{switch(C){case a.version:o.success("当前版本号为:1.6.8");break;case a.promptStore:l.value=!0;break;case a.setToken:n.value=ct.get(Sr)||"",r.value=!0;break;case a.reset:s.value=!0;break}},h=async()=>{s.value=!1,ct.set(Sr,"",-1),ct.set(wp,"",-1),await y(),o.success("清理完成"),window.location.reload()},p=()=>{if(!n.value){o.warning("请先填入用户 Cookie");return}ct.set(Sr,n.value,7*24*60,"/"),r.value=!1},y=async()=>{localStorage.clear(),sessionStorage.clear();const C=await caches.keys();for(const m of C)await caches.open(m).then(async w=>{const z=await w.keys();return await Promise.all(z.map(_=>(console.log("del cache : ",_.url),w.delete(_))))})};return(C,m)=>(me(),Ae(De,null,[U(gp)()?(me(),je(U(Xn),{key:0,class:"select-none",show:t.value,options:d,"render-label":c,onSelect:f},{default:J(()=>[X(U(Br),{class:"fixed top-6 right-4 cursor-pointer",src:U(eo),alt:"设置菜单","preview-disabled":!0,onClick:m[0]||(m[0]=w=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(me(),je(U(Xn),{key:1,class:"select-none",trigger:"hover",options:d,"render-label":c,onSelect:f},{default:J(()=>[X(U(Br),{class:"fixed top-6 right-6 cursor-pointer",src:U(eo),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),X(U(zt),{show:r.value,"onUpdate:show":m[3]||(m[3]=w=>r.value=w),preset:"dialog","show-icon":!1},{header:J(()=>[bp]),action:J(()=>[X(U(be),{size:"large",onClick:m[2]||(m[2]=w=>r.value=!1)},{default:J(()=>[he("取消")]),_:1}),X(U(be),{ghost:"",size:"large",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),default:J(()=>[X(U(kt),{size:"large",value:n.value,"onUpdate:value":m[1]||(m[1]=w=>n.value=w),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),X(U(zt),{show:s.value,"onUpdate:show":m[5]||(m[5]=w=>s.value=w),preset:"dialog","show-icon":!1},{header:J(()=>[yp]),action:J(()=>[X(U(be),{size:"large",onClick:m[4]||(m[4]=w=>s.value=!1)},{default:J(()=>[he("取消")]),_:1}),X(U(be),{ghost:"",size:"large",type:"error",onClick:h},{default:J(()=>[he("确定")]),_:1})]),_:1},8,["show"])],64))}});function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rthis.range.start)){var n=Math.max(r-this.param.buffer,0);this.checkRange(n,this.getEndByStart(n))}}},{key:"handleBehind",value:function(){var r=this.getScrollOvers();rr&&(l=o-1)}return n>0?--n:0}},{key:"getIndexOffset",value:function(r){if(!r)return 0;for(var n=0,o=0,i=0;i=N&&n("tobottom")},w=function(x){var S=p(),N=y(),D=C();S<0||S+N>D+1||!D||(f.handleScroll(S),m(S,N,D,x))},z=function(){var x=t.dataKey,S=t.dataSources,N=S===void 0?[]:S;return N.map(function(D){return typeof x=="function"?x(D):D[x]})},_=function(x){a.value=x},b=function(){f=new Rp({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:z()},_),a.value=f.getRange()},g=function(x){if(x>=t.dataSources.length-1)B();else{var S=f.getOffset(x);M(S)}},M=function(x){t.pageMode?(document.body[s]=x,document.documentElement[s]=x):d.value&&(d.value[s]=x)},k=function(){for(var x=[],S=a.value,N=S.start,D=S.end,q=t.dataSources,Q=t.dataKey,ae=t.itemClass,pe=t.itemTag,ve=t.itemStyle,Re=t.extraProps,oe=t.dataComponent,ke=t.itemScopedSlots,we=N;we<=D;we++){var ee=q[we];if(ee){var Le=typeof Q=="function"?Q(ee):ee[Q];typeof Le=="string"||typeof Le=="number"?x.push(X(Mp,{index:we,tag:pe,event:It.ITEM,horizontal:l,uniqueKey:Le,source:ee,extraProps:Re,component:oe,scopedSlots:ke,style:ve,class:"".concat(ae).concat(t.itemClassAdd?" "+t.itemClassAdd(we):""),onItemResize:A},null)):console.warn("Cannot get the data-key '".concat(Q,"' from data-sources."))}else console.warn("Cannot get the index '".concat(we,"' from data-sources."))}return x},A=function(x,S){f.saveSize(x,S),n("resized",x,S)},$=function(x,S,N){x===ft.HEADER?f.updateParam("slotHeaderSize",S):x===ft.FOOTER&&f.updateParam("slotFooterSize",S),N&&f.handleSlotSizeChange()},B=function I(){if(c.value){var x=c.value[l?"offsetLeft":"offsetTop"];M(x),setTimeout(function(){p()+y(){n.value=n.value.filter(a=>a.act!==s.act&&a.prompt!==s.prompt),t.success("删除提示词成功")},l=s=>{o.value.isShow=!0,o.value.type="edit",o.value.title="编辑提示词",o.value.tmpPrompt=s,o.value.newPrompt={...s}};return(s,a)=>(me(),je(U(mi),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:J(()=>[X(U(oi),{class:"max-w-[150px] xl:max-w-[680px] overflow-ellipsis overflow-hidden",type:"info"},{default:J(()=>[he(at(s.source.act),1)]),_:1}),Ue("div",Lp,[X(U(be),{secondary:"",type:"info",size:"small",onClick:a[0]||(a[0]=d=>l(s.source))},{default:J(()=>[he("编辑")]),_:1}),X(U(be),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:a[1]||(a[1]=d=>i(s.source))},{default:J(()=>[he("删除")]),_:1})])]),default:J(()=>[X(U(li),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(at(s.source.prompt),1)]),_:1})]),_:1}))}}),Ap={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},Dp=["href"],Fp={class:"flex justify-center gap-5"},Np=["href"],Hp=K({__name:"ChatPromptStore",setup(e){const t=rn(),r=Lt(),{promptDownloadConfig:n,isShowPromptSotre:o,promptList:i,keyword:l,searchPromptList:s,optPromptConfig:a}=Mt(r),d=E(!1),c=E(!1),f=E(!1),h=()=>{a.value.isShow=!0,a.value.type="add",a.value.title="添加提示词",a.value.newPrompt={act:"",prompt:""}},p=()=>{const{type:_,tmpPrompt:b,newPrompt:g}=a.value;if(!g.act)return t.error("提示词标题不能为空");if(!g.prompt)return t.error("提示词描述不能为空");if(_==="add")i.value=[g,...i.value],t.success("添加提示词成功");else if(_==="edit"){if(g.act===(b==null?void 0:b.act)&&g.prompt===(b==null?void 0:b.prompt)){t.warning("提示词未变更"),a.value.isShow=!1;return}const M=i.value.findIndex(k=>k.act===(b==null?void 0:b.act)&&k.prompt===(b==null?void 0:b.prompt));M>-1?(i.value[M]=g,t.success("编辑提示词成功")):t.error("编辑提示词出错")}a.value.isShow=!1},y=_=>new Promise((b,g)=>{const M=new FileReader;M.onload=function(k){var A;b((A=k.target)==null?void 0:A.result)},M.onerror=g,M.readAsText(_)}),C=async _=>{var b;if(_.file.file){c.value=!0;const g=await y(_.file.file),M=JSON.parse(g),k=r.addPrompt(M);k.result?(t.info(`上传文件含 ${M.length} 条数据`),t.success(`成功导入 ${(b=k.data)==null?void 0:b.successCount} 条有效数据`)):t.error(k.msg||"提示词格式有误"),c.value=!1}else t.error("上传文件有误")},m=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const _=JSON.stringify(i.value),b=new Blob([_],{type:"application/json"}),g=URL.createObjectURL(b),M=document.createElement("a");M.href=g,M.download="BingAIPrompts.json",M.click(),URL.revokeObjectURL(g),t.success("导出提示词库成功"),f.value=!1},w=()=>{i.value=[],t.success("清空提示词库成功")},z=async _=>{var M;if(!_.url)return t.error("请先输入下载链接");_.isDownloading=!0;let b;if(_.url.endsWith(".json"))b=await fetch(_.url).then(k=>k.json());else if(_.url.endsWith(".csv")){const k=await fetch(_.url).then(A=>A.text());console.log(k),b=k.split(` -`).filter(A=>A).map(A=>{var B;const $=A.split('","');return{act:$[0].slice(1),prompt:(B=$[1])==null?void 0:B.slice(1)}}),b.shift()}else return _.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");_.isDownloading=!1;const g=r.addPrompt(b);g.result?(t.info(`下载文件含 ${b.length} 条数据`),t.success(`成功导入 ${(M=g.data)==null?void 0:M.successCount} 条有效数据`)):t.error(g.msg||"提示词格式有误")};return(_,b)=>(me(),Ae(De,null,[X(U(zt),{class:"w-11/12 xl:w-[900px]",show:U(o),"onUpdate:show":b[3]||(b[3]=g=>xn(o)?o.value=g:null),preset:"card",title:"提示词库"},{default:J(()=>[Ue("div",Ap,[X(U(kt),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:U(l),"onUpdate:value":b[0]||(b[0]=g=>xn(l)?l.value=g:null),clearable:!0},null,8,["value"]),X(U(be),{secondary:"",type:"info",onClick:b[1]||(b[1]=g=>d.value=!0)},{default:J(()=>[he("下载")]),_:1}),X(U(be),{secondary:"",type:"info",onClick:h},{default:J(()=>[he("添加")]),_:1}),X(U(up),{class:"w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:C},{default:J(()=>[X(U(be),{secondary:"",type:"success",loading:c.value},{default:J(()=>[he("导入")]),_:1},8,["loading"])]),_:1}),X(U(be),{secondary:"",type:"success",onClick:m,loading:f.value},{default:J(()=>[he("导出")]),_:1},8,["loading"]),X(U(be),{secondary:"",type:"error",onClick:w},{default:J(()=>[he("清空")]),_:1})]),U(s).length>0?(me(),je(U(ki),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":U(s),"data-component":Ep,keeps:10},null,8,["data-sources"])):(me(),je(U(ei),{key:1,class:"h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:J(()=>[X(U(be),{secondary:"",type:"info",onClick:b[2]||(b[2]=g=>d.value=!0)},{default:J(()=>[he("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),X(U(zt),{class:"w-11/12 xl:w-[600px]",show:U(a).isShow,"onUpdate:show":b[6]||(b[6]=g=>U(a).isShow=g),preset:"card",title:U(a).title},{default:J(()=>[X(U(lh),{vertical:""},{default:J(()=>[he(" 标题 "),X(U(kt),{placeholder:"请输入标题",value:U(a).newPrompt.act,"onUpdate:value":b[4]||(b[4]=g=>U(a).newPrompt.act=g)},null,8,["value"]),he(" 描述 "),X(U(kt),{placeholder:"请输入描述",type:"textarea",value:U(a).newPrompt.prompt,"onUpdate:value":b[5]||(b[5]=g=>U(a).newPrompt.prompt=g)},null,8,["value"]),X(U(be),{block:"",secondary:"",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),X(U(zt),{class:"w-11/12 xl:w-[600px]",show:d.value,"onUpdate:show":b[7]||(b[7]=g=>d.value=g),preset:"card",title:"下载提示词"},{default:J(()=>[X(U(Rh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:J(()=>[(me(!0),Ae(De,null,yl(U(n),(g,M)=>(me(),je(U(_h),{key:M},{suffix:J(()=>[Ue("div",Fp,[g.type===1?(me(),Ae("a",{key:0,class:"no-underline",href:g.refer,target:"_blank",rel:"noopener noreferrer"},[X(U(be),{secondary:""},{default:J(()=>[he("来源")]),_:1})],8,Np)):Xt("",!0),X(U(be),{secondary:"",type:"info",onClick:k=>z(g),loading:g.isDownloading},{default:J(()=>[he("下载")]),_:2},1032,["onClick","loading"])])]),default:J(()=>[g.type===1?(me(),Ae("a",{key:0,class:"no-underline text-blue-500",href:g.url,target:"_blank",rel:"noopener noreferrer"},at(g.name),9,Dp)):g.type===2?(me(),je(U(kt),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:g.url,"onUpdate:value":k=>g.url=k},null,8,["value","onUpdate:value"])):Xt("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),jp=`/* 移除顶部背景遮挡 */\r -.scroller>.top {\r - display: none !important;\r -}\r -\r -/* 移除顶部边距 */\r -.scroller>.scroller-positioner>.content {\r - padding-top: 0 !important;\r -}\r -\r -/* 聊天记录 */\r -.scroller .side-panel {\r - position: fixed;\r - right: 10px;\r -}`,Wp=K({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=Lt(),{selectedPromptIndex:r,isShowChatPrompt:n,keyword:o}=Mt(t),i=l=>{l&&(o.value="",CIB.vm.actionBar.inputText=l.prompt,CIB.vm.actionBar.input.focus(),n.value=!1)};return(l,s)=>(me(),je(U(mi),{class:Vr(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":l.index===U(r)}]),onClick:s[0]||(s[0]=a=>i(l.source))},{description:J(()=>[X(U(oi),{type:"info"},{default:J(()=>[he(at(l.source.act),1)]),_:1})]),default:J(()=>[X(U(li),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(at(l.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),nn=e=>(wl("data-v-aff729bc"),e=e(),xl(),e),Up=nn(()=>Ue("div",{class:"bounce1"},null,-1)),Vp=nn(()=>Ue("div",{class:"bounce2"},null,-1)),Kp=nn(()=>Ue("div",{class:"bounce3"},null,-1)),qp=[Up,Vp,Kp],Gp=K({__name:"LoadingSpinner",props:{isShow:{type:Boolean}},setup(e){const t=E(!1),r=E();return We(()=>{r.value&&r.value.addEventListener("transitionend",()=>{t.value=!0})}),(n,o)=>t.value?Xt("",!0):(me(),Ae("div",{key:0,ref_key:"loadingRef",ref:r,class:Vr(["loading-spinner",{hidden:!n.isShow}])},qp,2))}});const Xp=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Yp=Xp(Gp,[["__scopeId","data-v-aff729bc"]]),Zp=Ue("div",{class:"w-0 md:w-[60px]"},null,-1),Jp=10,Qp="_U",ev="BingAI_Rand_IP",tv=130,rv=K({__name:"ChatPrompt",setup(e){const t=E(!0),r=Lt(),{isShowPromptSotre:n,isShowChatPrompt:o,keyword:i,promptList:l,searchPromptList:s,selectedPromptIndex:a}=Mt(r),d=E(),c=E(!1),f=E(!1),h=F(()=>CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleMobile||!CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleDesktop);We(async()=>{await p(),y(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),t.value=!1,w(),z()});const p=async()=>new Promise((R,O)=>{sj_evt.bind("sydFSC.init",R,!0),sj_evt.fire("showSydFSC")}),y=()=>{ct.get(Qp)||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,m())},C=()=>{const R=new Date;return R.setMinutes(R.getMinutes()+CIB.config.sydney.expiryInMinutes),R},m=async(R=0)=>{var I;if(R>=Jp){console.log(`已重试 ${R} 次,自动创建停止`);return}const O=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((I=O==null?void 0:O.result)==null?void 0:I.value)==="Success"?(console.log("成功创建会话ID : ",O.conversationId),CIB.manager.conversation.updateId(O.conversationId,C(),O.clientId,O.conversationSignature)):(await mp(300),R+=1,console.log(`开始第 ${R} 次重试创建会话ID`),ct.set(ev,"",-1),m(R))},w=()=>{var x,S,N,D,q,Q,ae,pe;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(ve=>ve!==location.hostname));const R=document.querySelector("cib-serp");R==null||R.setAttribute("alignment","center");const O=(x=R==null?void 0:R.shadowRoot)==null?void 0:x.querySelector("cib-conversation");(q=(D=(N=(S=O==null?void 0:O.shadowRoot)==null?void 0:S.querySelector("cib-welcome-container"))==null?void 0:N.shadowRoot)==null?void 0:D.querySelector(".learn-tog-item"))==null||q.remove(),(ae=(Q=R==null?void 0:R.shadowRoot)==null?void 0:Q.querySelector("cib-serp-feedback"))==null||ae.remove();const I=document.createElement("style");I.innerText=jp,(pe=O.shadowRoot)==null||pe.append(I)},z=()=>{var I,x;const R=(x=(I=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:I.shadowRoot)==null?void 0:x.querySelector("#cib-action-bar-main"),O=R.handleInputTextKey;R.handleInputTextKey=function(S){if(!(S.key==="Enter"&&o.value))return O.apply(this,[S])},CIB.vm.actionBar.input.addEventListener("compositionstart",_),CIB.vm.actionBar.input.addEventListener("compositionend",b),CIB.vm.actionBar.input.addEventListener("change",g),CIB.vm.actionBar.input.addEventListener("input",g),CIB.vm.actionBar.input.addEventListener("keydown",A),CIB.vm.actionBar.input.addEventListener("focus",M),CIB.vm.actionBar.input.addEventListener("blur",k)},_=R=>{c.value=!0},b=R=>{c.value=!1,g(R)},g=R=>{var O;c.value||(R instanceof InputEvent||R instanceof CompositionEvent)&&R.target instanceof HTMLTextAreaElement&&((O=R.target.value)!=null&&O.startsWith("/")?(o.value=!0,i.value=R.target.value.slice(1),a.value=0):(i.value="",o.value=!1))},M=R=>{},k=R=>{setTimeout(()=>{o.value=!1},200)},A=R=>{switch(R.key){case"ArrowUp":a.value>0&&(a.value--,d.value&&d.value.scrollToIndex(a.value));break;case"ArrowDown":a.value{R&&(i.value="",CIB.vm.actionBar.inputText=R.prompt,o.value=!1)},B=()=>{f.value=!0,setTimeout(()=>{var R;if(f.value===!0){f.value=!1;const O=((R=d.value)==null?void 0:R.getOffset())||0;a.value=Math.round(O/tv)}},100)};return(R,O)=>(me(),Ae(De,null,[X(Yp,{"is-show":t.value},null,8,["is-show"]),Ue("main",null,[U(o)?(me(),Ae("div",{key:0,class:Vr(["box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[34px] z-999",{"md:px-[170px]":h.value,"xl:px-[220px]":h.value}])},[Zp,U(l).length>0?(me(),je(U(ki),{key:0,ref_key:"scrollbarRef",ref:d,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":U(s),"data-component":Wp,keeps:10,onScroll:B},null,8,["data-sources"])):(me(),je(U(ei),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂未设置提示词数据"},{extra:J(()=>[X(U(be),{secondary:"",type:"info",onClick:O[0]||(O[0]=I=>n.value=!0)},{default:J(()=>[he("去提示词库添加")]),_:1})]),_:1}))],2)):Xt("",!0)])],64))}}),ov=K({__name:"index",setup(e){return(t,r)=>(me(),Ae("main",null,[X(xp),X(Hp),X(rv)]))}});export{ov as default}; diff --git a/web/assets/index-ec5fa021.js b/web/assets/index-ec5fa021.js new file mode 100644 index 0000000000..8c7a60f8a4 --- /dev/null +++ b/web/assets/index-ec5fa021.js @@ -0,0 +1,1160 @@ +import{r as L,w as Se,o as Ue,a as et,i as Ma,c as D,b as La,h as Ea,d as lo,e as Pe,f as Aa,g as Re,j as Ve,k as ie,m as Er,l as Ar,p as er,u as Ae,n as K,q as ke,s as Dr,t as Da,v as mt,x as dn,C as Fa,y as Na,z as J,A as Fr,B as u,D as Nr,L as so,E as Gt,F as tr,G as rr,H as Ha,I as ja,J as Hr,K as Wa,M as Je,N as uo,O as jr,P as Wr,Q as yt,R as co,S as kr,T as un,U as Ua,V as cn,W as fn,X as qt,Y as Va,Z as hn,_ as Ka,$ as qa,a0 as Ga,a1 as Xa,a2 as Ya,a3 as Za,a4 as Ja,a5 as fo,a6 as Ke,a7 as Be,a8 as k,a9 as E,aa as j,ab as _e,ac as ne,ad as He,ae as fe,af as oe,ag as Te,ah as U,ai as Qa,aj as lt,ak as zt,al as pn,am as ho,an as vn,ao as gn,ap as el,aq as _t,ar as Ye,as as Ne,at as po,au as mn,av as tl,aw as pe,ax as vo,ay as ce,az as te,aA as Ot,aB as rl,aC as bn,aD as go,aE as mo,aF as bo,aG as pt,aH as nl,aI as ol,aJ as il,aK as yo,aL as al,aM as ll,aN as sl,aO as Ur,aP as Bt,aQ as $t,aR as dl,aS as Vr,aT as Xt,aU as wo,aV as ul,aW as cl,aX as yn,aY as fl,aZ as wn,a_ as hl,a$ as $r,b0 as pl,b1 as vl,b2 as wt,b3 as gl,b4 as xo,b5 as Co,b6 as So,b7 as Po,b8 as ko,b9 as ge,ba as xn,bb as ml,bc as bl,bd as he,be as Le,bf as Qe,bg as Ee,bh as Z,bi as $e,bj as G,bk as yl,bl as H,bm as vt,bn as Mt,bo as wl,bp as $o,bq as xl,br as Cn,bs as Cl,bt as Yt,bu as Kr,bv as Sl,bw as Pl}from"./index-f360c8c0.js";let Zt=[];const zo=new WeakMap;function kl(){Zt.forEach(e=>e(...zo.get(e))),Zt=[]}function Io(e,...t){zo.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(kl)}function Sn(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function $l(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function zl(e){return t=>{t?e.value=t.$el:e.value=null}}const Il=/^(\d|\.)+$/,Pn=/(\d|\.)+/;function We(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Il.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=Pn.exec(e);return o?e.replace(Pn,String((Number(o[0])+r)*t)):e}return e}let cr;function Tl(){return cr===void 0&&(cr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),cr}function Rl(e,t,r){if(!t)return e;const n=L(e.value);let o=null;return Se(e,i=>{o!==null&&window.clearTimeout(o),i===!0?r&&!r.value?n.value=!0:o=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}let gt,It;const _l=()=>{var e,t;gt=Ma?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,It=!1,gt!==void 0?gt.then(()=>{It=!0}):It=!0};_l();function Ol(e){if(It)return;let t=!1;Ue(()=>{It||gt==null||gt.then(()=>{t||e()})}),et(()=>{t=!0})}function nr(e,t){return Se(e,r=>{r!==void 0&&(t.value=r)}),D(()=>e.value===void 0?t.value:e.value)}function Bl(e,t){return D(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function Ml(e={},t){const r=La({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:o}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(s=>{if(s!==a.key)return;const c=n[s];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}o!==void 0&&Object.keys(o).forEach(s=>{if(s!==a.key)return;const c=o[s];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},d=()=>{(t===void 0||t.value)&&(Re("keydown",document,i),Re("keyup",document,l)),t!==void 0&&Se(t,a=>{a?(Re("keydown",document,i),Re("keyup",document,l)):(Pe("keydown",document,i),Pe("keyup",document,l))})};return Ea()?(lo(d),et(()=>{(t===void 0||t.value)&&(Pe("keydown",document,i),Pe("keyup",document,l))})):d(),Aa(r)}const Ll=Ve("n-internal-select-menu-body"),To="__disabled__";function bt(e){const t=ie(Er,null),r=ie(Ar,null),n=ie(er,null),o=ie(Ll,null),i=L();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Ue(()=>{Re("fullscreenchange",document,l)}),et(()=>{Pe("fullscreenchange",document,l)})}return Ae(()=>{var l;const{to:d}=e;return d!==void 0?d===!1?To:d===!0?i.value||"body":d:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:d??(i.value||"body")})}bt.tdkey=To;bt.propTo={type:[String,Object,Boolean],default:void 0};let Ze=null;function Ro(){if(Ze===null&&(Ze=document.getElementById("v-binder-view-measurer"),Ze===null)){Ze=document.createElement("div"),Ze.id="v-binder-view-measurer";const{style:e}=Ze;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ze)}return Ze.getBoundingClientRect()}function El(e,t){const r=Ro();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function fr(e){const t=e.getBoundingClientRect(),r=Ro();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Al(e){return e.nodeType===9?null:e.parentNode}function _o(e){if(e===null)return null;const t=Al(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return _o(t)}const Dl=K({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ke("VBinder",(t=Dr())===null||t===void 0?void 0:t.proxy);const r=ie("VBinder",null),n=L(null),o=b=>{n.value=b,r&&e.syncTargetWithParent&&r.setTargetRef(b)};let i=[];const l=()=>{let b=n.value;for(;b=_o(b),b!==null;)i.push(b);for(const S of i)Re("scroll",S,f,!0)},d=()=>{for(const b of i)Pe("scroll",b,f,!0);i=[]},a=new Set,s=b=>{a.size===0&&l(),a.has(b)||a.add(b)},c=b=>{a.has(b)&&a.delete(b),a.size===0&&d()},f=()=>{Io(h)},h=()=>{a.forEach(b=>b())},p=new Set,y=b=>{p.size===0&&Re("resize",window,x),p.has(b)||p.add(b)},C=b=>{p.has(b)&&p.delete(b),p.size===0&&Pe("resize",window,x)},x=()=>{p.forEach(b=>b())};return et(()=>{Pe("resize",window,x),d()}),{targetRef:n,setTargetRef:o,addScrollListener:s,removeScrollListener:c,addResizeListener:y,removeResizeListener:C}},render(){return Da("binder",this.$slots)}}),Oo=Dl,Bo=K({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ie("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?mt(dn("follower",this.$slots),[[t]]):dn("follower",this.$slots)}}),dt="@@mmoContext",Fl={mounted(e,{value:t}){e[dt]={handler:void 0},typeof t=="function"&&(e[dt].handler=t,Re("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[dt];typeof t=="function"?r.handler?r.handler!==t&&(Pe("mousemoveoutside",e,r.handler),r.handler=t,Re("mousemoveoutside",e,t)):(e[dt].handler=t,Re("mousemoveoutside",e,t)):r.handler&&(Pe("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[dt];t&&Pe("mousemoveoutside",e,t),e[dt].handler=void 0}},Nl=Fl,{c:Ft}=Fa(),Hl="vueuc-style",Nt={top:"bottom",bottom:"top",left:"right",right:"left"},kn={start:"end",center:"center",end:"start"},hr={top:"height",bottom:"height",left:"width",right:"width"},jl={"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"},Wl={"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"},Ul={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},$n={top:!0,bottom:!1,left:!0,right:!1},zn={top:"end",bottom:"start",left:"end",right:"start"};function Vl(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[l,d]=e.split("-");let a=d??"center",s={top:0,left:0};const c=(p,y,C)=>{let x=0,b=0;const S=r[p]-t[y]-t[p];return S>0&&n&&(C?b=$n[y]?S:-S:x=$n[y]?S:-S),{left:x,top:b}},f=l==="left"||l==="right";if(a!=="center"){const p=Ul[e],y=Nt[p],C=hr[p];if(r[C]>t[C]){if(t[p]+t[C]t[y]&&(a=kn[d])}else{const p=l==="bottom"||l==="top"?"left":"top",y=Nt[p],C=hr[p],x=(r[C]-t[C])/2;(t[p]t[y]?(a=zn[p],s=c(C,p,f)):(a=zn[y],s=c(C,y,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Mo=K({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=ie("VBinder"),r=Ae(()=>e.enabled!==void 0?e.enabled:e.show),n=L(null),o=L(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};Ue(()=>{r.value&&(a(),i())});const d=Na();Gl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Hl,ssr:d}),et(()=>{l()}),Ol(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=n.value;if(h===null)return;const p=t.targetRef,{x:y,y:C,overlap:x}=e,b=y!==void 0&&C!==void 0?El(y,C):fr(p);h.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:S,minWidth:_,placement:m,internalShift:g,flip:M}=e;h.setAttribute("v-placement",m),x?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:$}=h;S==="target"?$.width=`${b.width}px`:S!==void 0?$.width=S:$.width="",_==="target"?$.minWidth=`${b.width}px`:_!==void 0?$.minWidth=_:$.minWidth="";const A=fr(h),z=fr(o.value),{left:B,top:R,placement:O}=Vl(m,b,A,g,M,x),I=Kl(O,x),{left:w,top:P,transform:N}=ql(O,z,b,R,B,x);h.setAttribute("v-placement",O),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(R)}px`),h.style.transform=`translateX(${w}) translateY(${P}) ${N}`,h.style.setProperty("--v-transform-origin",I),h.style.transformOrigin=I};Se(r,h=>{h?(i(),s()):l()});const s=()=>{Gt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Se(J(e,h),a)}),["teleportDisabled"].forEach(h=>{Se(J(e,h),s)}),Se(J(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const c=Fr(),f=Ae(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:f,syncPosition:a}},render(){return u(so,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("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?mt(r,[[Nr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Xl=tr(rr,"WeakMap");const zr=Xl;var Yl=Ha(Object.keys,Object);const Zl=Yl;var Jl=Object.prototype,Ql=Jl.hasOwnProperty;function es(e){if(!ja(e))return Zl(e);var t=[];for(var r in Object(e))Ql.call(e,r)&&r!="constructor"&&t.push(r);return t}function qr(e){return Hr(e)?Wa(e):es(e)}var ts=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rs=/^\w*$/;function Gr(e,t){if(Je(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||uo(e)?!0:rs.test(e)||!ts.test(e)||t!=null&&e in Object(t)}var ns="Expected a function";function Xr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ns);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var l=e.apply(this,n);return r.cache=i.set(o,l)||i,l};return r.cache=new(Xr.Cache||jr),r}Xr.Cache=jr;var os=500;function is(e){var t=Xr(e,function(n){return r.size===os&&r.clear(),n}),r=t.cache;return t}var as=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ls=/\\(\\)?/g,ss=is(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(as,function(r,n,o,i){t.push(o?i.replace(ls,"$1"):n||r)}),t});const ds=ss;function Lo(e,t){return Je(e)?e:Gr(e,t)?[e]:ds(Wr(e))}var us=1/0;function or(e){if(typeof e=="string"||uo(e))return e;var t=e+"";return t=="0"&&1/e==-us?"-0":t}function Eo(e,t){t=Lo(t,e);for(var r=0,n=t.length;e!=null&&rd))return!1;var s=i.get(e),c=i.get(t);if(s&&c)return s==t&&c==e;var f=-1,h=!0,p=r&kd?new Jt:void 0;for(i.set(e,t),i.set(t,e);++f`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",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",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"},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",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},yu=bu;function vr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function Pt(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var d=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[d]}var s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}function kt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],d=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(d)?xu(d,function(f){return f.test(l)}):wu(d,function(f){return f.test(l)}),s;s=e.valueCallback?e.valueCallback(a):a,s=r.valueCallback?r.valueCallback(s):s;var c=t.slice(l.length);return{value:s,rest:c}}}function wu(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function xu(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var d=t.slice(o.length);return{value:l,rest:d}}}var Su={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"}},Pu=function(t,r,n){var o,i=Su[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const ku=Pu;var $u={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Iu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tu={date:vr({formats:$u,defaultWidth:"full"}),time:vr({formats:zu,defaultWidth:"full"}),dateTime:vr({formats:Iu,defaultWidth:"full"})};const Ru=Tu;var _u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ou=function(t,r,n,o){return _u[t]};const Bu=Ou;var Mu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Eu={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"]},Au={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"]},Du={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"}},Fu={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"}},Nu=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Hu={ordinalNumber:Nu,era:Pt({values:Mu,defaultWidth:"wide"}),quarter:Pt({values:Lu,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pt({values:Eu,defaultWidth:"wide"}),day:Pt({values:Au,defaultWidth:"wide"}),dayPeriod:Pt({values:Du,defaultWidth:"wide",formattingValues:Fu,defaultFormattingWidth:"wide"})};const ju=Hu;var Wu=/^(\d+)(th|st|nd|rd)?/i,Uu=/\d+/i,Vu={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},Ku={any:[/^b/i,/^(a|c)/i]},qu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gu={any:[/1/i,/2/i,/3/i,/4/i]},Xu={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},Yu={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]},Zu={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},Ju={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]},Qu={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},ec={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}},tc={ordinalNumber:Cu({matchPattern:Wu,parsePattern:Uu,valueCallback:function(t){return parseInt(t,10)}}),era:kt({matchPatterns:Vu,defaultMatchWidth:"wide",parsePatterns:Ku,defaultParseWidth:"any"}),quarter:kt({matchPatterns:qu,defaultMatchWidth:"wide",parsePatterns:Gu,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:kt({matchPatterns:Xu,defaultMatchWidth:"wide",parsePatterns:Yu,defaultParseWidth:"any"}),day:kt({matchPatterns:Zu,defaultMatchWidth:"wide",parsePatterns:Ju,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:Qu,defaultMatchWidth:"any",parsePatterns:ec,defaultParseWidth:"any"})};const rc=tc;var nc={code:"en-US",formatDistance:ku,formatLong:Ru,formatRelative:Bu,localize:ju,match:rc,options:{weekStartsOn:0,firstWeekContainsDate:1}};const oc=nc,ic={name:"en-US",locale:oc},ac=ic;function Zr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ie(fo,null)||{},n=D(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:yu[e]});return{dateLocaleRef:D(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:ac}),localeRef:n}}const lc=K({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),sc=Ke("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),dc=K({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}))}}),Qo=K({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),uc=K({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("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"}),u("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"}),u("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"}),u("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"}))}}),cc=Ke("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),fc=Ke("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),hc=K({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}),u("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"}))}}),pc=Ke("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),vc=K({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}))}}),gc=Ke("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("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"}))))),mc=Ke("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),bc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),yc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),wc=Ke("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),xc=Ke("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),Cc=K({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Un(e){return Array.isArray(e)?e:[e]}const _r={STOP:"STOP"};function ei(e,t){const r=t(e);e.children!==void 0&&r!==_r.STOP&&e.children.forEach(n=>ei(n,t))}function Sc(e,t={}){const{preserveGroup:r=!1}=t,n=[],o=r?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(o)}return i(e),n}function Pc(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function kc(e){return e.children}function $c(e){return e.key}function zc(){return!1}function Ic(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Tc(e){return e.disabled===!0}function Rc(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function _c(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function Oc(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function Bc(e){return(e==null?void 0:e.type)==="group"}class Mc extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Lc(e,t,r,n){return Qt(t.concat(e),r,n,!1)}function Ec(e,t){const r=new Set;return e.forEach(n=>{const o=t.treeNodeMap.get(n);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Ac(e,t,r,n){const o=Qt(t,r,n,!1),i=Qt(e,r,n,!0),l=Ec(e,r),d=[];return o.forEach(a=>{(i.has(a)||l.has(a))&&d.push(a)}),d.forEach(a=>o.delete(a)),o}function br(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:o,indeterminateKeys:i,cascade:l,leafOnly:d,checkStrategy:a,allowNotLoaded:s}=e;if(!l)return n!==void 0?{checkedKeys:_c(r,n),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:Oc(r,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let f;o!==void 0?f=Ac(o,r,t,s):n!==void 0?f=Lc(n,r,t,s):f=Qt(r,t,s,!1);const h=a==="parent",p=a==="child"||d,y=f,C=new Set,x=Math.max.apply(null,Array.from(c.keys()));for(let b=x;b>=0;b-=1){const S=b===0,_=c.get(b);for(const m of _){if(m.isLeaf)continue;const{key:g,shallowLoaded:M}=m;if(p&&M&&m.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&y.has(B.key)&&y.delete(B.key)}),m.disabled||!M)continue;let $=!0,A=!1,z=!0;for(const B of m.children){const R=B.key;if(!B.disabled){if(z&&(z=!1),y.has(R))A=!0;else if(C.has(R)){A=!0,$=!1;break}else if($=!1,A)break}}$&&!z?(h&&m.children.forEach(B=>{!B.disabled&&y.has(B.key)&&y.delete(B.key)}),y.add(g)):A&&C.add(g),S&&p&&y.has(g)&&y.delete(g)}}return{checkedKeys:Array.from(y),indeterminateKeys:Array.from(C)}}function Qt(e,t,r,n){const{treeNodeMap:o,getChildren:i}=t,l=new Set,d=new Set(e);return e.forEach(a=>{const s=o.get(a);s!==void 0&&ei(s,c=>{if(c.disabled)return _r.STOP;const{key:f}=c;if(!l.has(f)&&(l.add(f),d.add(f),Rc(c.rawNode,i))){if(n)return _r.STOP;if(!r)throw new Mc}})}),d}function Dc(e,{includeGroup:t=!1,includeSelf:r=!0},n){var o;const i=n.treeNodeMap;let l=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const d={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return d.treeNode=null,d;for(;l;)!l.ignored&&(t||!l.isGroup)&&d.treeNodePath.push(l),l=l.parent;return d.treeNodePath.reverse(),r||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(a=>a.key),d}function Fc(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Nc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o+1)%n]:o===r.length-1?null:r[o+1]}function Vn(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const o=t==="prev"?Hc:Nc,i={reverse:t==="prev"};let l=!1,d=null;function a(s){if(s!==null){if(s===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!s.disabled||n)&&!s.ignored&&!s.isGroup){d=s;return}if(s.isGroup){const c=Jr(s,i);c!==null?d=c:a(o(s,r))}else{const c=o(s,!1);if(c!==null)a(c);else{const f=jc(s);f!=null&&f.isGroup?a(o(f,r)):r&&a(o(s,!0))}}}}return a(e),d}function Hc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o-1+n)%n]:o===0?null:r[o-1]}function jc(e){return e.parent}function Jr(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:o}=n,i=r?o-1:0,l=r?-1:o,d=r?-1:1;for(let a=i;a!==l;a+=d){const s=n[a];if(!s.disabled&&!s.ignored)if(s.isGroup){const c=Jr(s,t);if(c!==null)return c}else return s}}return null}const Wc={getChild(){return this.ignored?null:Jr(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Vn(this,"next",e)},getPrev(e={}){return Vn(this,"prev",e)}};function Uc(e,t){const r=t?new Set(t):void 0,n=[];function o(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&o(l.children)})}return o(e),n}function Vc(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function ti(e,t,r,n,o,i=null,l=0){const d=[];return e.forEach((a,s)=>{var c;const f=Object.create(n);if(f.rawNode=a,f.siblings=d,f.level=l,f.index=s,f.isFirstChild=s===0,f.isLastChild=s+1===e.length,f.parent=i,!f.ignored){const h=o(a);Array.isArray(h)&&(f.children=ti(h,t,r,n,o,f,l+1))}d.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(c=r.get(l))===null||c===void 0||c.push(f)}),d}function Kc(e,t={}){var r;const n=new Map,o=new Map,{getDisabled:i=Tc,getIgnored:l=zc,getIsGroup:d=Bc,getKey:a=$c}=t,s=(r=t.getChildren)!==null&&r!==void 0?r:kc,c=t.ignoreEmptyChildren?m=>{const g=s(m);return Array.isArray(g)?g.length?g:null:g}:s,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return d(this.rawNode)},get isLeaf(){return Pc(this.rawNode,c)},get shallowLoaded(){return Ic(this.rawNode,c)},get ignored(){return l(this.rawNode)},contains(m){return Vc(this,m)}},Wc),h=ti(e,n,o,f,c);function p(m){if(m==null)return null;const g=n.get(m);return g&&!g.isGroup&&!g.ignored?g:null}function y(m){if(m==null)return null;const g=n.get(m);return g&&!g.ignored?g:null}function C(m,g){const M=y(m);return M?M.getPrev(g):null}function x(m,g){const M=y(m);return M?M.getNext(g):null}function b(m){const g=y(m);return g?g.getParent():null}function S(m){const g=y(m);return g?g.getChild():null}const _={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:c,getFlattenedNodes(m){return Uc(h,m)},getNode:p,getPrev:C,getNext:x,getParent:b,getChild:S,getFirstAvailableNode(){return Fc(h)},getPath(m,g={}){return Dc(m,g,_)},getCheckedKeys(m,g={}){const{cascade:M=!0,leafOnly:$=!1,checkStrategy:A="all",allowNotLoaded:z=!1}=g;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),cascade:M,leafOnly:$,checkStrategy:A,allowNotLoaded:z},_)},check(m,g,M={}){const{cascade:$=!0,leafOnly:A=!1,checkStrategy:z="all",allowNotLoaded:B=!1}=M;return br({checkedKeys:gr(g),indeterminateKeys:mr(g),keysToCheck:m==null?[]:Un(m),cascade:$,leafOnly:A,checkStrategy:z,allowNotLoaded:B},_)},uncheck(m,g,M={}){const{cascade:$=!0,leafOnly:A=!1,checkStrategy:z="all",allowNotLoaded:B=!1}=M;return br({checkedKeys:gr(g),indeterminateKeys:mr(g),keysToUncheck:m==null?[]:Un(m),cascade:$,leafOnly:A,checkStrategy:z,allowNotLoaded:B},_)},getNonLeafKeys(m={}){return Sc(h,m)}};return _}const qc={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Gc=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},qc),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:r,extraTextColor:n})},Xc={name:"Empty",common:Be,self:Gc},Yc=Xc,Zc=k("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[E("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[j("+",[E("description",` + margin-top: 8px; + `)])]),E("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),E("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]),Jc=Object.assign(Object.assign({},ne.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Qr=K({name:"Empty",props:Jc,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=_e(e),n=ne("Empty","-empty",Zc,Yc,e,t),{localeRef:o}=Zr("Empty"),i=ie(fo,null),l=D(()=>{var c,f,h;return(c=e.description)!==null&&c!==void 0?c:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),d=D(()=>{var c,f;return((f=(c=i==null?void 0:i.mergedComponentPropsRef.value)===null||c===void 0?void 0:c.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(hc,null))}),a=D(()=>{const{size:c}=e,{common:{cubicBezierEaseInOut:f},self:{[oe("iconSize",c)]:h,[oe("fontSize",c)]:p,textColor:y,iconColor:C,extraTextColor:x}}=n.value;return{"--n-icon-size":h,"--n-font-size":p,"--n-bezier":f,"--n-text-color":y,"--n-icon-color":C,"--n-extra-text-color":x}}),s=r?He("empty",D(()=>{let c="";const{size:f}=e;return c+=f[0],c}),a,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:d,localizedDescription:D(()=>l.value||o.value.description),cssVars:r?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(fe,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),Qc={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},ef=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:i,dividerColor:l}=e;return Object.assign(Object.assign({},Qc),{fontSize:i,borderRadius:o,color:r,dividerColor:l,textColor:n,boxShadow:t})},tf={name:"Popover",common:Be,self:ef},en=tf,yr={top:"bottom",bottom:"top",left:"right",right:"left"},ye="var(--n-arrow-height) * 1.414",rf=j([k("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[j(">",[k("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Te("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Te("scrollable",[Te("show-header-or-footer","padding: var(--n-padding);")])]),E("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),E("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),U("scrollable, show-header-or-footer",[E("content",` + padding: var(--n-padding); + `)])]),k("popover-shared",` + transform-origin: inherit; + `,[k("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[k("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${ye}); + height: calc(${ye}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),j("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),j("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),j("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),j("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),Me("top-start",` + top: calc(${ye} / -2); + left: calc(${Xe("top-start")} - var(--v-offset-left)); + `),Me("top",` + top: calc(${ye} / -2); + transform: translateX(calc(${ye} / -2)) rotate(45deg); + left: 50%; + `),Me("top-end",` + top: calc(${ye} / -2); + right: calc(${Xe("top-end")} + var(--v-offset-left)); + `),Me("bottom-start",` + bottom: calc(${ye} / -2); + left: calc(${Xe("bottom-start")} - var(--v-offset-left)); + `),Me("bottom",` + bottom: calc(${ye} / -2); + transform: translateX(calc(${ye} / -2)) rotate(45deg); + left: 50%; + `),Me("bottom-end",` + bottom: calc(${ye} / -2); + right: calc(${Xe("bottom-end")} + var(--v-offset-left)); + `),Me("left-start",` + left: calc(${ye} / -2); + top: calc(${Xe("left-start")} - var(--v-offset-top)); + `),Me("left",` + left: calc(${ye} / -2); + transform: translateY(calc(${ye} / -2)) rotate(45deg); + top: 50%; + `),Me("left-end",` + left: calc(${ye} / -2); + bottom: calc(${Xe("left-end")} + var(--v-offset-top)); + `),Me("right-start",` + right: calc(${ye} / -2); + top: calc(${Xe("right-start")} - var(--v-offset-top)); + `),Me("right",` + right: calc(${ye} / -2); + transform: translateY(calc(${ye} / -2)) rotate(45deg); + top: 50%; + `),Me("right-end",` + right: calc(${ye} / -2); + bottom: calc(${Xe("right-end")} + var(--v-offset-top)); + `),...vu({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",d=`calc((${`var(--v-target-${n}, 0px)`} - ${ye}) / 2)`,a=Xe(o);return j(`[v-placement="${o}"] >`,[k("popover-shared",[U("center-arrow",[k("popover-arrow",`${t}: calc(max(${d}, ${a}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Xe(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Me(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return j(`[v-placement="${e}"] >`,[k("popover-shared",` + margin-${yr[r]}: var(--n-space); + `,[U("show-arrow",` + margin-${yr[r]}: var(--n-space-arrow); + `),U("overlap",` + margin: 0; + `),Qa("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${r}: 100%; + ${yr[r]}: auto; + ${n} + `,[k("popover-arrow",t)])])])}const ri=Object.assign(Object.assign({},ne.props),{to:bt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),ni=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),nf=K({name:"PopoverBody",inheritAttrs:!1,props:ri,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:i}=_e(e),l=ne("Popover","-popover",rf,en,e,o),d=L(null),a=ie("NPopover"),s=L(null),c=L(e.show),f=L(!1);lt(()=>{const{show:$}=e;$&&!Tl()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=D(()=>{const{trigger:$,onClickoutside:A}=e,z=[],{positionManuallyRef:{value:B}}=a;return B||($==="click"&&!A&&z.push([pn,m,void 0,{capture:!0}]),$==="hover"&&z.push([Nl,_])),A&&z.push([pn,m,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&z.push([ho,e.show]),z}),p=D(()=>{const $=e.width==="trigger"?void 0:We(e.width),A=[];$&&A.push({width:$});const{maxWidth:z,minWidth:B}=e;return z&&A.push({maxWidth:We(z)}),B&&A.push({maxWidth:We(B)}),i||A.push(y.value),A}),y=D(()=>{const{common:{cubicBezierEaseInOut:$,cubicBezierEaseIn:A,cubicBezierEaseOut:z},self:{space:B,spaceArrow:R,padding:O,fontSize:I,textColor:w,dividerColor:P,color:N,boxShadow:F,borderRadius:q,arrowHeight:Q,arrowOffset:ae,arrowOffsetVertical:me}}=l.value;return{"--n-box-shadow":F,"--n-bezier":$,"--n-bezier-ease-in":A,"--n-bezier-ease-out":z,"--n-font-size":I,"--n-text-color":w,"--n-color":N,"--n-divider-color":P,"--n-border-radius":q,"--n-arrow-height":Q,"--n-arrow-offset":ae,"--n-arrow-offset-vertical":me,"--n-padding":O,"--n-space":B,"--n-space-arrow":R}}),C=i?He("popover",void 0,y,e):void 0;a.setBodyInstance({syncPosition:x}),et(()=>{a.setBodyInstance(null)}),Se(J(e,"show"),$=>{e.animated||($?c.value=!0:c.value=!1)});function x(){var $;($=d.value)===null||$===void 0||$.syncPosition()}function b($){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&a.handleMouseEnter($)}function S($){e.trigger==="hover"&&e.keepAliveOnHover&&a.handleMouseLeave($)}function _($){e.trigger==="hover"&&!g().contains(vn($))&&a.handleMouseMoveOutside($)}function m($){(e.trigger==="click"&&!g().contains(vn($))||e.onClickoutside)&&a.handleClickOutside($)}function g(){return a.getTriggerElement()}ke(er,s),ke(Ar,null),ke(Er,null);function M(){if(C==null||C.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let A;const z=a.internalRenderBodyRef.value,{value:B}=o;if(z)A=z([`${B}-popover-shared`,C==null?void 0:C.themeClass.value,e.overlap&&`${B}-popover-shared--overlap`,e.showArrow&&`${B}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${B}-popover-shared--center-arrow`],s,p.value,b,S);else{const{value:R}=a.extraClassRef,{internalTrapFocus:O}=e,I=!gn(t.header)||!gn(t.footer),w=()=>{var P;const N=I?u(Ne,null,Ye(t.header,Q=>Q?u("div",{class:`${B}-popover__header`,style:e.headerStyle},Q):null),Ye(t.default,Q=>Q?u("div",{class:`${B}-popover__content`,style:e.contentStyle},t):null),Ye(t.footer,Q=>Q?u("div",{class:`${B}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(P=t.default)===null||P===void 0?void 0:P.call(t):u("div",{class:`${B}-popover__content`,style:e.contentStyle},t),F=e.scrollable?u(po,{contentClass:I?void 0:`${B}-popover__content`,contentStyle:I?void 0:e.contentStyle},{default:()=>N}):N,q=e.showArrow?ni({arrowStyle:e.arrowStyle,clsPrefix:B}):null;return[F,q]};A=u("div",_t({class:[`${B}-popover`,`${B}-popover-shared`,C==null?void 0:C.themeClass.value,R.map(P=>`${B}-${P}`),{[`${B}-popover--scrollable`]:e.scrollable,[`${B}-popover--show-header-or-footer`]:I,[`${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:s,style:p.value,onKeydown:a.handleKeydown,onMouseenter:b,onMouseleave:S},r),O?u(el,{active:e.show,autoFocus:!0},{default:w}):w())}return mt(A,h.value)}return{displayed:f,namespace:n,isMounted:a.isMountedRef,zIndex:a.zIndexRef,followerRef:d,adjustedTo:bt(e),followerEnabled:c,renderContentNode:M}},render(){return u(Mo,{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===bt.tdkey},{default:()=>this.animated?u(zt,{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()})}}),of=Object.keys(ri),af={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function lf(e,t,r){af[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],i=r[n];o?e.props[n]=(...l)=>{o(...l),i(...l)}:e.props[n]=i})}const sf=pe("").type,ir={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"},arrowStyle:[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:bt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,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},df=Object.assign(Object.assign(Object.assign({},ne.props),ir),{internalOnAfterLeave:Function,internalRenderBody:Function}),oi=K({name:"Popover",inheritAttrs:!1,props:df,__popover__:!0,setup(e){const t=Fr(),r=L(null),n=D(()=>e.show),o=L(e.defaultShow),i=nr(n,o),l=Ae(()=>e.disabled?!1:i.value),d=()=>{if(e.disabled)return!0;const{getDisabled:w}=e;return!!(w!=null&&w())},a=()=>d()?!1:i.value,s=Bl(e,["arrow","showArrow"]),c=D(()=>e.overlap?!1:s.value);let f=null;const h=L(null),p=L(null),y=Ae(()=>e.x!==void 0&&e.y!==void 0);function C(w){const{"onUpdate:show":P,onUpdateShow:N,onShow:F,onHide:q}=e;o.value=w,P&&ce(P,w),N&&ce(N,w),w&&F&&ce(F,!0),w&&q&&ce(q,!1)}function x(){f&&f.syncPosition()}function b(){const{value:w}=h;w&&(window.clearTimeout(w),h.value=null)}function S(){const{value:w}=p;w&&(window.clearTimeout(w),p.value=null)}function _(){const w=d();if(e.trigger==="focus"&&!w){if(a())return;C(!0)}}function m(){const w=d();if(e.trigger==="focus"&&!w){if(!a())return;C(!1)}}function g(){const w=d();if(e.trigger==="hover"&&!w){if(S(),h.value!==null||a())return;const P=()=>{C(!0),h.value=null},{delay:N}=e;N===0?P():h.value=window.setTimeout(P,N)}}function M(){const w=d();if(e.trigger==="hover"&&!w){if(b(),p.value!==null||!a())return;const P=()=>{C(!1),p.value=null},{duration:N}=e;N===0?P():p.value=window.setTimeout(P,N)}}function $(){M()}function A(w){var P;a()&&(e.trigger==="click"&&(b(),S(),C(!1)),(P=e.onClickoutside)===null||P===void 0||P.call(e,w))}function z(){if(e.trigger==="click"&&!d()){b(),S();const w=!a();C(w)}}function B(w){e.internalTrapFocus&&w.key==="Escape"&&(b(),S(),C(!1))}function R(w){o.value=w}function O(){var w;return(w=r.value)===null||w===void 0?void 0:w.targetRef}function I(w){f=w}return ke("NPopover",{getTriggerElement:O,handleKeydown:B,handleMouseEnter:g,handleMouseLeave:M,handleClickOutside:A,handleMouseMoveOutside:$,setBodyInstance:I,positionManuallyRef:y,isMountedRef:t,zIndexRef:J(e,"zIndex"),extraClassRef:J(e,"internalExtraClass"),internalRenderBodyRef:J(e,"internalRenderBody")}),lt(()=>{i.value&&d()&&C(!1)}),{binderInstRef:r,positionManually:y,mergedShowConsideringDisabledProp:l,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:a,setShow:R,handleClick:z,handleMouseEnter:g,handleMouseLeave:M,handleFocus:_,handleBlur:m,syncPosition:x}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=mn(r,"activator"):n=mn(r,"trigger"),n)){n=tl(n),n=n.type===sf?u("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__)o=!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:l}=this,d=[i,...l],a={onBlur:s=>{d.forEach(c=>{c.onBlur(s)})},onFocus:s=>{d.forEach(c=>{c.onFocus(s)})},onClick:s=>{d.forEach(c=>{c.onClick(s)})},onMouseenter:s=>{d.forEach(c=>{c.onMouseenter(s)})},onMouseleave:s=>{d.forEach(c=>{c.onMouseleave(s)})}};lf(n,l?"nested":t?"manual":this.trigger,a)}}return u(Oo,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?mt(u("div",{style:{position:"fixed",inset:0}}),[[Nr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Bo,null,{default:()=>n}),u(nf,vo(this.$props,of,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var l,d;return(d=(l=this.$slots).default)===null||d===void 0?void 0:d.call(l)},header:()=>{var l,d;return(d=(l=this.$slots).header)===null||d===void 0?void 0:d.call(l)},footer:()=>{var l,d;return(d=(l=this.$slots).footer)===null||d===void 0?void 0:d.call(l)}})]}})}}),uf={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},cf=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:l,warningColor:d,errorColor:a,baseColor:s,borderColor:c,opacityDisabled:f,tagColor:h,closeIconColor:p,closeIconColorHover:y,closeIconColorPressed:C,borderRadiusSmall:x,fontSizeMini:b,fontSizeTiny:S,fontSizeSmall:_,fontSizeMedium:m,heightMini:g,heightTiny:M,heightSmall:$,heightMedium:A,closeColorHover:z,closeColorPressed:B,buttonColor2Hover:R,buttonColor2Pressed:O,fontWeightStrong:I}=e;return Object.assign(Object.assign({},uf),{closeBorderRadius:x,heightTiny:g,heightSmall:M,heightMedium:$,heightLarge:A,borderRadius:x,opacityDisabled:f,fontSizeTiny:b,fontSizeSmall:S,fontSizeMedium:_,fontSizeLarge:m,fontWeightStrong:I,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:s,colorCheckable:"#0000",colorHoverCheckable:R,colorPressedCheckable:O,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:y,closeIconColorPressed:C,closeColorHover:z,closeColorPressed:B,borderPrimary:`1px solid ${te(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:te(o,{alpha:.12}),colorBorderedPrimary:te(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:te(o,{alpha:.12}),closeColorPressedPrimary:te(o,{alpha:.18}),borderInfo:`1px solid ${te(i,{alpha:.3})}`,textColorInfo:i,colorInfo:te(i,{alpha:.12}),colorBorderedInfo:te(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:te(i,{alpha:.12}),closeColorPressedInfo:te(i,{alpha:.18}),borderSuccess:`1px solid ${te(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:te(l,{alpha:.12}),colorBorderedSuccess:te(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:te(l,{alpha:.12}),closeColorPressedSuccess:te(l,{alpha:.18}),borderWarning:`1px solid ${te(d,{alpha:.35})}`,textColorWarning:d,colorWarning:te(d,{alpha:.15}),colorBorderedWarning:te(d,{alpha:.12}),closeIconColorWarning:d,closeIconColorHoverWarning:d,closeIconColorPressedWarning:d,closeColorHoverWarning:te(d,{alpha:.12}),closeColorPressedWarning:te(d,{alpha:.18}),borderError:`1px solid ${te(a,{alpha:.23})}`,textColorError:a,colorError:te(a,{alpha:.1}),colorBorderedError:te(a,{alpha:.08}),closeIconColorError:a,closeIconColorHoverError:a,closeIconColorPressedError:a,closeColorHoverError:te(a,{alpha:.12}),closeColorPressedError:te(a,{alpha:.18})})},ff={name:"Tag",common:Be,self:cf},hf=ff,pf={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},vf=k("tag",` + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[U("strong",` + font-weight: var(--n-font-weight-strong); + `),E("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),E("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); + `),E("avatar",` + display: flex; + margin: 0 6px 0 0; + `),E("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),U("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[E("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),E("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),U("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),U("icon, avatar",[U("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),U("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),U("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Te("disabled",[j("&:hover","background-color: var(--n-color-hover-checkable);",[Te("checked","color: var(--n-text-color-hover-checkable);")]),j("&:active","background-color: var(--n-color-pressed-checkable);",[Te("checked","color: var(--n-text-color-pressed-checkable);")])]),U("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Te("disabled",[j("&:hover","background-color: var(--n-color-checked-hover);"),j("&:active","background-color: var(--n-color-checked-pressed);")])])])]),gf=Object.assign(Object.assign(Object.assign({},ne.props),pf),{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}),mf=Ve("n-tag"),ii=K({name:"Tag",props:gf,setup(e){const t=L(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=_e(e),l=ne("Tag","-tag",vf,hf,e,n);ke(mf,{roundRef:J(e,"round")});function d(p){if(!e.disabled&&e.checkable){const{checked:y,onCheckedChange:C,onUpdateChecked:x,"onUpdate:checked":b}=e;x&&x(!y),b&&b(!y),C&&C(!y)}}function a(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:y}=e;y&&ce(y,p)}}const s={setTextContent(p){const{value:y}=t;y&&(y.textContent=p)}},c=Ot("Tag",i,n),f=D(()=>{const{type:p,size:y,color:{color:C,textColor:x}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:S,closeMargin:_,closeMarginRtl:m,borderRadius:g,opacityDisabled:M,textColorCheckable:$,textColorHoverCheckable:A,textColorPressedCheckable:z,textColorChecked:B,colorCheckable:R,colorHoverCheckable:O,colorPressedCheckable:I,colorChecked:w,colorCheckedHover:P,colorCheckedPressed:N,closeBorderRadius:F,fontWeightStrong:q,[oe("colorBordered",p)]:Q,[oe("closeSize",y)]:ae,[oe("closeIconSize",y)]:me,[oe("fontSize",y)]:ve,[oe("height",y)]:we,[oe("color",p)]:re,[oe("textColor",p)]:ze,[oe("border",p)]:xe,[oe("closeIconColor",p)]:ee,[oe("closeIconColorHover",p)]:De,[oe("closeIconColorPressed",p)]:qe,[oe("closeColorHover",p)]:Ge,[oe("closeColorPressed",p)]:Fe}}=l.value;return{"--n-font-weight-strong":q,"--n-avatar-size-override":`calc(${we} - 8px)`,"--n-bezier":b,"--n-border-radius":g,"--n-border":xe,"--n-close-icon-size":me,"--n-close-color-pressed":Fe,"--n-close-color-hover":Ge,"--n-close-border-radius":F,"--n-close-icon-color":ee,"--n-close-icon-color-hover":De,"--n-close-icon-color-pressed":qe,"--n-close-icon-color-disabled":ee,"--n-close-margin":_,"--n-close-margin-rtl":m,"--n-close-size":ae,"--n-color":C||(r.value?Q:re),"--n-color-checkable":R,"--n-color-checked":w,"--n-color-checked-hover":P,"--n-color-checked-pressed":N,"--n-color-hover-checkable":O,"--n-color-pressed-checkable":I,"--n-font-size":ve,"--n-height":we,"--n-opacity-disabled":M,"--n-padding":S,"--n-text-color":x||ze,"--n-text-color-checkable":$,"--n-text-color-checked":B,"--n-text-color-hover-checkable":A,"--n-text-color-pressed-checkable":z}}),h=o?He("tag",D(()=>{let p="";const{type:y,size:C,color:{color:x,textColor:b}={}}=e;return p+=y[0],p+=C[0],x&&(p+=`a${bn(x)}`),b&&(p+=`b${bn(b)}`),r.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},s),{rtlEnabled:c,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:d,handleCloseClick:a,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:o,color:{borderColor:i}={},round:l,onRender:d,$slots:a}=this;d==null||d();const s=Ye(a.avatar,f=>f&&u("div",{class:`${r}-tag__avatar`},f)),c=Ye(a.icon,f=>f&&u("div",{class:`${r}-tag__icon`},f));return u("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:l,[`${r}-tag--avatar`]:s,[`${r}-tag--icon`]:c,[`${r}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},c||s,u("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(rl,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),bf=k("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[j(">",[E("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[j("&:hover",` + color: var(--n-clear-color-hover)!important; + `),j("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),E("placeholder",` + display: flex; + `),E("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[go({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Or=K({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return mo("-base-clear",bf,J(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(bo,null,{default:()=>{var t,r;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},pt(this.$slots.icon,()=>[u(fe,{clsPrefix:e},{default:()=>u(gc,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),yf=K({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:r}=e;return u(nl,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Or,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(fe,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>pt(t.default,()=>[u(vc,null)])})}):null})}}}),wf={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},xf=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:l,inputColorDisabled:d,borderColor:a,warningColor:s,warningColorHover:c,errorColor:f,errorColorHover:h,borderRadius:p,lineHeight:y,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:b,fontSizeLarge:S,heightTiny:_,heightSmall:m,heightMedium:g,heightLarge:M,actionColor:$,clearColor:A,clearColorHover:z,clearColorPressed:B,placeholderColor:R,placeholderColorDisabled:O,iconColor:I,iconColorDisabled:w,iconColorHover:P,iconColorPressed:N}=e;return Object.assign(Object.assign({},wf),{countTextColorDisabled:n,countTextColor:r,heightTiny:_,heightSmall:m,heightMedium:g,heightLarge:M,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:b,fontSizeLarge:S,lineHeight:y,lineHeightTextarea:y,borderRadius:p,iconSize:"16px",groupLabelColor:$,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:o,placeholderColor:R,placeholderColorDisabled:O,color:l,colorDisabled:d,colorFocus:l,groupLabelBorder:`1px solid ${a}`,border:`1px solid ${a}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${a}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${te(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${te(s,{alpha:.2})}`,caretColorWarning:s,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:l,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${te(f,{alpha:.2})}`,caretColorError:f,clearColor:A,clearColorHover:z,clearColorPressed:B,iconColor:I,iconColorDisabled:w,iconColorHover:P,iconColorPressed:N,suffixTextColor:t})},Cf={name:"Input",common:Be,self:xf},Sf=Cf,ai=Ve("n-input");function Pf(e){let t=0;for(const r of e)t++;return t}function jt(e){return e===""||e==null}function kf(e){const t=L(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:l,selectionEnd:d,value:a}=i;if(l==null||d==null){o();return}t.value={start:l,end:d,beforeText:a.slice(0,l),afterText:a.slice(d)}}function n(){var i;const{value:l}=t,{value:d}=e;if(!l||!d)return;const{value:a}=d,{start:s,beforeText:c,afterText:f}=l;let h=a.length;if(a.endsWith(f))h=a.length-f.length;else if(a.startsWith(c))h=c.length;else{const p=c[s-1],y=a.indexOf(p,s-1);y!==-1&&(h=y+1)}(i=d.setSelectionRange)===null||i===void 0||i.call(d,h,h)}function o(){t.value=null}return Se(e,o),{recordCursor:r,restoreCursor:n}}const Kn=K({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:n,mergedClsPrefixRef:o,countGraphemesRef:i}=ie(ai),l=D(()=>{const{value:d}=r;return d===null||Array.isArray(d)?0:(i.value||Pf)(d)});return()=>{const{value:d}=n,{value:a}=r;return u("span",{class:`${o.value}-input-word-count`},ol(t.default,{value:a===null||Array.isArray(a)?"":a},()=>[d===void 0?l.value:`${l.value} / ${d}`]))}}}),$f=k("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + 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); +`,[E("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),E("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),E("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[j("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),j("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),j("&:-webkit-autofill ~",[E("placeholder","display: none;")])]),U("round",[Te("textarea","border-radius: calc(var(--n-height) / 2);")]),E("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[j("span",` + width: 100%; + display: inline-block; + `)]),U("textarea",[E("placeholder","overflow: visible;")]),Te("autosize","width: 100%;"),U("autosize",[E("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),k("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),E("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),E("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[j("+",[E("placeholder",` + display: flex; + align-items: center; + `)])]),Te("textarea",[E("placeholder","white-space: nowrap;")]),E("eye",` + transition: color .3s var(--n-bezier); + `),U("textarea","width: 100%;",[k("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),U("resizable",[k("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),E("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + `),E("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),U("pair",[E("input-el, placeholder","text-align: center;"),E("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[k("icon",` + color: var(--n-icon-color); + `),k("base-icon",` + color: var(--n-icon-color); + `)])]),U("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[E("border","border: var(--n-border-disabled);"),E("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),E("placeholder","color: var(--n-placeholder-color-disabled);"),E("separator","color: var(--n-text-color-disabled);",[k("icon",` + color: var(--n-icon-color-disabled); + `),k("base-icon",` + color: var(--n-icon-color-disabled); + `)]),k("input-word-count",` + color: var(--n-count-text-color-disabled); + `),E("suffix, prefix","color: var(--n-text-color-disabled);",[k("icon",` + color: var(--n-icon-color-disabled); + `),k("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),Te("disabled",[E("eye",` + display: flex; + align-items: center; + justify-content: center; + color: var(--n-icon-color); + cursor: pointer; + `,[j("&:hover",` + color: var(--n-icon-color-hover); + `),j("&:active",` + color: var(--n-icon-color-pressed); + `)]),j("&:hover",[E("state-border","border: var(--n-border-hover);")]),U("focus","background-color: var(--n-color-focus);",[E("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),E("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),E("state-border",` + border-color: #0000; + z-index: 1; + `),E("prefix","margin-right: 4px;"),E("suffix",` + margin-left: 4px; + `),E("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[k("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),k("base-clear",` + font-size: var(--n-icon-size); + `,[E("placeholder",[k("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),j(">",[k("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),k("base-icon",` + font-size: var(--n-icon-size); + `)]),k("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>U(`${e}-status`,[Te("disabled",[k("base-loading",` + color: var(--n-loading-color-${e}) + `),E("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),E("state-border",` + border: var(--n-border-${e}); + `),j("&:hover",[E("state-border",` + border: var(--n-border-hover-${e}); + `)]),j("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[E("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),U("focus",` + background-color: var(--n-color-focus-${e}); + `,[E("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),zf=k("input",[U("disabled",[E("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]),If=Object.assign(Object.assign({},ne.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,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:Boolean,showPasswordToggle:Boolean}),ft=K({name:"Input",props:If,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=_e(e),i=ne("Input","-input",$f,Sf,e,t);il&&mo("-input-safari",zf,t);const l=L(null),d=L(null),a=L(null),s=L(null),c=L(null),f=L(null),h=L(null),p=kf(h),y=L(null),{localeRef:C}=Zr("Input"),x=L(e.defaultValue),b=J(e,"value"),S=nr(b,x),_=yo(e),{mergedSizeRef:m,mergedDisabledRef:g,mergedStatusRef:M}=_,$=L(!1),A=L(!1),z=L(!1),B=L(!1);let R=null;const O=D(()=>{const{placeholder:v,pair:T}=e;return T?Array.isArray(v)?v:v===void 0?["",""]:[v,v]:v===void 0?[C.value.placeholder]:[v]}),I=D(()=>{const{value:v}=z,{value:T}=S,{value:X}=O;return!v&&(jt(T)||Array.isArray(T)&&jt(T[0]))&&X[0]}),w=D(()=>{const{value:v}=z,{value:T}=S,{value:X}=O;return!v&&X[1]&&(jt(T)||Array.isArray(T)&&jt(T[1]))}),P=Ae(()=>e.internalForceFocus||$.value),N=Ae(()=>{if(g.value||e.readonly||!e.clearable||!P.value&&!A.value)return!1;const{value:v}=S,{value:T}=P;return e.pair?!!(Array.isArray(v)&&(v[0]||v[1]))&&(A.value||T):!!v&&(A.value||T)}),F=D(()=>{const{showPasswordOn:v}=e;if(v)return v;if(e.showPasswordToggle)return"click"}),q=L(!1),Q=D(()=>{const{textDecoration:v}=e;return v?Array.isArray(v)?v.map(T=>({textDecoration:T})):[{textDecoration:v}]:["",""]}),ae=L(void 0),me=()=>{var v,T;if(e.type==="textarea"){const{autosize:X}=e;if(X&&(ae.value=(T=(v=y.value)===null||v===void 0?void 0:v.$el)===null||T===void 0?void 0:T.offsetWidth),!d.value||typeof X=="boolean")return;const{paddingTop:ue,paddingBottom:be,lineHeight:de}=window.getComputedStyle(d.value),tt=Number(ue.slice(0,-2)),rt=Number(be.slice(0,-2)),nt=Number(de.slice(0,-2)),{value:Ct}=a;if(!Ct)return;if(X.minRows){const St=Math.max(X.minRows,1),ur=`${tt+rt+nt*St}px`;Ct.style.minHeight=ur}if(X.maxRows){const St=`${tt+rt+nt*X.maxRows}px`;Ct.style.maxHeight=St}}},ve=D(()=>{const{maxlength:v}=e;return v===void 0?void 0:Number(v)});Ue(()=>{const{value:v}=S;Array.isArray(v)||dr(v)});const we=Dr().proxy;function re(v){const{onUpdateValue:T,"onUpdate:value":X,onInput:ue}=e,{nTriggerFormInput:be}=_;T&&ce(T,v),X&&ce(X,v),ue&&ce(ue,v),x.value=v,be()}function ze(v){const{onChange:T}=e,{nTriggerFormChange:X}=_;T&&ce(T,v),x.value=v,X()}function xe(v){const{onBlur:T}=e,{nTriggerFormBlur:X}=_;T&&ce(T,v),X()}function ee(v){const{onFocus:T}=e,{nTriggerFormFocus:X}=_;T&&ce(T,v),X()}function De(v){const{onClear:T}=e;T&&ce(T,v)}function qe(v){const{onInputBlur:T}=e;T&&ce(T,v)}function Ge(v){const{onInputFocus:T}=e;T&&ce(T,v)}function Fe(){const{onDeactivate:v}=e;v&&ce(v)}function W(){const{onActivate:v}=e;v&&ce(v)}function Y(v){const{onClick:T}=e;T&&ce(T,v)}function V(v){const{onWrapperFocus:T}=e;T&&ce(T,v)}function le(v){const{onWrapperBlur:T}=e;T&&ce(T,v)}function se(){z.value=!0}function Ie(v){z.value=!1,v.target===f.value?Ce(v,1):Ce(v,0)}function Ce(v,T=0,X="input"){const ue=v.target.value;if(dr(ue),v instanceof InputEvent&&!v.isComposing&&(z.value=!1),e.type==="textarea"){const{value:de}=y;de&&de.syncUnifiedContainer()}if(R=ue,z.value)return;p.recordCursor();const be=Oe(ue);if(be)if(!e.pair)X==="input"?re(ue):ze(ue);else{let{value:de}=S;Array.isArray(de)?de=[de[0],de[1]]:de=["",""],de[T]=ue,X==="input"?re(de):ze(de)}we.$forceUpdate(),be||Gt(p.restoreCursor)}function Oe(v){const{countGraphemes:T,maxlength:X,minlength:ue}=e;if(T){let de;if(X!==void 0&&(de===void 0&&(de=T(v)),de>Number(X))||ue!==void 0&&(de===void 0&&(de=T(v)),de{ue.preventDefault(),Pe("mouseup",document,T)};if(Re("mouseup",document,T),F.value!=="mousedown")return;q.value=!0;const X=()=>{q.value=!1,Pe("mouseup",document,X)};Re("mouseup",document,X)}function Fi(v){var T;switch((T=e.onKeydown)===null||T===void 0||T.call(e,v),v.key){case"Escape":sr();break;case"Enter":Ni(v);break}}function Ni(v){var T,X;if(e.passivelyActivated){const{value:ue}=B;if(ue){e.internalDeactivateOnEnter&&sr();return}v.preventDefault(),e.type==="textarea"?(T=d.value)===null||T===void 0||T.focus():(X=c.value)===null||X===void 0||X.focus()}}function sr(){e.passivelyActivated&&(B.value=!1,Gt(()=>{var v;(v=l.value)===null||v===void 0||v.focus()}))}function an(){var v,T,X;g.value||(e.passivelyActivated?(v=l.value)===null||v===void 0||v.focus():((T=d.value)===null||T===void 0||T.focus(),(X=c.value)===null||X===void 0||X.focus()))}function Hi(){var v;!((v=l.value)===null||v===void 0)&&v.contains(document.activeElement)&&document.activeElement.blur()}function ji(){var v,T;(v=d.value)===null||v===void 0||v.select(),(T=c.value)===null||T===void 0||T.select()}function Wi(){g.value||(d.value?d.value.focus():c.value&&c.value.focus())}function Ui(){const{value:v}=l;v!=null&&v.contains(document.activeElement)&&v!==document.activeElement&&sr()}function Vi(v){if(e.type==="textarea"){const{value:T}=d;T==null||T.scrollTo(v)}else{const{value:T}=c;T==null||T.scrollTo(v)}}function dr(v){const{type:T,pair:X,autosize:ue}=e;if(!X&&ue)if(T==="textarea"){const{value:be}=a;be&&(be.textContent=(v??"")+`\r +`)}else{const{value:be}=s;be&&(v?be.textContent=v:be.innerHTML=" ")}}function Ki(){me()}const ln=L({top:"0"});function qi(v){var T;const{scrollTop:X}=v.target;ln.value.top=`${-X}px`,(T=y.value)===null||T===void 0||T.syncUnifiedContainer()}let At=null;lt(()=>{const{autosize:v,type:T}=e;v&&T==="textarea"?At=Se(S,X=>{!Array.isArray(X)&&X!==R&&dr(X)}):At==null||At()});let Dt=null;lt(()=>{e.type==="textarea"?Dt=Se(S,v=>{var T;!Array.isArray(v)&&v!==R&&((T=y.value)===null||T===void 0||T.syncUnifiedContainer())}):Dt==null||Dt()}),ke(ai,{mergedValueRef:S,maxlengthRef:ve,mergedClsPrefixRef:t,countGraphemesRef:J(e,"countGraphemes")});const Gi={wrapperElRef:l,inputElRef:c,textareaElRef:d,isCompositing:z,focus:an,blur:Hi,select:ji,deactivate:Ui,activate:Wi,scrollTo:Vi},Xi=Ot("Input",o,t),sn=D(()=>{const{value:v}=m,{common:{cubicBezierEaseInOut:T},self:{color:X,borderRadius:ue,textColor:be,caretColor:de,caretColorError:tt,caretColorWarning:rt,textDecorationColor:nt,border:Ct,borderDisabled:St,borderHover:ur,borderFocus:Yi,placeholderColor:Zi,placeholderColorDisabled:Ji,lineHeightTextarea:Qi,colorDisabled:ea,colorFocus:ta,textColorDisabled:ra,boxShadowFocus:na,iconSize:oa,colorFocusWarning:ia,boxShadowFocusWarning:aa,borderWarning:la,borderFocusWarning:sa,borderHoverWarning:da,colorFocusError:ua,boxShadowFocusError:ca,borderError:fa,borderFocusError:ha,borderHoverError:pa,clearSize:va,clearColor:ga,clearColorHover:ma,clearColorPressed:ba,iconColor:ya,iconColorDisabled:wa,suffixTextColor:xa,countTextColor:Ca,countTextColorDisabled:Sa,iconColorHover:Pa,iconColorPressed:ka,loadingColor:$a,loadingColorError:za,loadingColorWarning:Ia,[oe("padding",v)]:Ta,[oe("fontSize",v)]:Ra,[oe("height",v)]:_a}}=i.value,{left:Oa,right:Ba}=sl(Ta);return{"--n-bezier":T,"--n-count-text-color":Ca,"--n-count-text-color-disabled":Sa,"--n-color":X,"--n-font-size":Ra,"--n-border-radius":ue,"--n-height":_a,"--n-padding-left":Oa,"--n-padding-right":Ba,"--n-text-color":be,"--n-caret-color":de,"--n-text-decoration-color":nt,"--n-border":Ct,"--n-border-disabled":St,"--n-border-hover":ur,"--n-border-focus":Yi,"--n-placeholder-color":Zi,"--n-placeholder-color-disabled":Ji,"--n-icon-size":oa,"--n-line-height-textarea":Qi,"--n-color-disabled":ea,"--n-color-focus":ta,"--n-text-color-disabled":ra,"--n-box-shadow-focus":na,"--n-loading-color":$a,"--n-caret-color-warning":rt,"--n-color-focus-warning":ia,"--n-box-shadow-focus-warning":aa,"--n-border-warning":la,"--n-border-focus-warning":sa,"--n-border-hover-warning":da,"--n-loading-color-warning":Ia,"--n-caret-color-error":tt,"--n-color-focus-error":ua,"--n-box-shadow-focus-error":ca,"--n-border-error":fa,"--n-border-focus-error":ha,"--n-border-hover-error":pa,"--n-loading-color-error":za,"--n-clear-color":ga,"--n-clear-size":va,"--n-clear-color-hover":ma,"--n-clear-color-pressed":ba,"--n-icon-color":ya,"--n-icon-color-hover":Pa,"--n-icon-color-pressed":ka,"--n-icon-color-disabled":wa,"--n-suffix-text-color":xa}}),st=n?He("input",D(()=>{const{value:v}=m;return v[0]}),sn,e):void 0;return Object.assign(Object.assign({},Gi),{wrapperElRef:l,inputElRef:c,inputMirrorElRef:s,inputEl2Ref:f,textareaElRef:d,textareaMirrorElRef:a,textareaScrollbarInstRef:y,rtlEnabled:Xi,uncontrolledValue:x,mergedValue:S,passwordVisible:q,mergedPlaceholder:O,showPlaceholder1:I,showPlaceholder2:w,mergedFocus:P,isComposing:z,activated:B,showClearButton:N,mergedSize:m,mergedDisabled:g,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:F,placeholderStyle:ln,mergedStatus:M,textAreaScrollContainerWidth:ae,handleTextAreaScroll:qi,handleCompositionStart:se,handleCompositionEnd:Ie,handleInput:Ce,handleInputBlur:je,handleInputFocus:Ii,handleWrapperBlur:Ti,handleWrapperFocus:Ri,handleMouseEnter:Li,handleMouseLeave:Ei,handleMouseDown:Mi,handleChange:_i,handleClick:Oi,handleClear:Bi,handlePasswordToggleClick:Ai,handlePasswordToggleMousedown:Di,handleWrapperKeydown:Fi,handleTextAreaMirrorResize:Ki,getTextareaScrollContainer:()=>d.value,mergedTheme:i,cssVars:n?void 0:sn,themeClass:st==null?void 0:st.themeClass,onRender:st==null?void 0:st.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:n,themeClass:o,type:i,countGraphemes:l,onRender:d}=this,a=this.$slots;return d==null||d(),u("div",{ref:"wrapperElRef",class:[`${r}-input`,o,n&&`${r}-input--${n}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-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.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${r}-input-wrapper`},Ye(a.prefix,s=>s&&u("div",{class:`${r}-input__prefix`},s)),i==="textarea"?u(al,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var s,c;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u(Ne,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(s=this.inputProps)===null||s===void 0?void 0:s.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(c=this.inputProps)===null||c===void 0?void 0:c.style,h],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(ll,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${r}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-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:l?void 0:this.maxlength,minlength:l?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:s=>this.handleInputFocus(s,0),onInput:s=>this.handleInput(s,0),onChange:s=>this.handleChange(s,0)})),this.showPlaceholder1?u("div",{class:`${r}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ye(a.suffix,s=>s||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${r}-input__suffix`},[Ye(a["clear-icon-placeholder"],c=>(this.clearable||c)&&u(Or,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>c,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:s,this.loading!==void 0?u(yf,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?s:null,this.showCount&&this.type!=="textarea"?u(Kn,null,{default:c=>{var f;return(f=a.count)===null||f===void 0?void 0:f.call(a,c)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?pt(a["password-visible-icon"],()=>[u(fe,{clsPrefix:r},{default:()=>u(Qo,null)})]):pt(a["password-invisible-icon"],()=>[u(fe,{clsPrefix:r},{default:()=>u(uc,null)})])):null]):null)),this.pair?u("span",{class:`${r}-input__separator`},pt(a.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${r}-input-wrapper`},u("div",{class:`${r}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?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:s=>this.handleInputFocus(s,1),onInput:s=>this.handleInput(s,1),onChange:s=>this.handleChange(s,1)}),this.showPlaceholder2?u("div",{class:`${r}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ye(a.suffix,s=>(this.clearable||s)&&u("div",{class:`${r}-input__suffix`},[this.clearable&&u(Or,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var c;return(c=a["clear-icon"])===null||c===void 0?void 0:c.call(a)},placeholder:()=>{var c;return(c=a["clear-icon-placeholder"])===null||c===void 0?void 0:c.call(a)}}),s]))):null,this.mergedBordered?u("div",{class:`${r}-input__border`}):null,this.mergedBordered?u("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?u(Kn,null,{default:s=>{var c;const{renderCount:f}=this;return f?f(s):(c=a.count)===null||c===void 0?void 0:c.call(a,s)}}):null)}}),wr=Ur&&"loading"in document.createElement("img"),Tf=(e={})=>{var t;const{root:r=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 r=="string"?document.querySelector(r):r)||document.documentElement})}},xr=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,Rf=(e,t,r)=>{if(!e)return()=>{};const n=Tf(t),{root:o}=n.options;let i;const l=xr.get(o);l?i=l:(i=new Map,xr.set(o,i));let d,a;i.has(n.hash)?(a=i.get(n.hash),a[1].has(e)||(d=a[0],a[1].add(e),d.observe(e))):(d=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const p=Cr.get(h.target),y=Sr.get(h.target);p&&p(),y&&(y.value=!0)}})},n.options),d.observe(e),a=[d,new Set([e])],i.set(n.hash,a));let s=!1;const c=()=>{s||(Cr.delete(e),Sr.delete(e),s=!0,a[1].has(e)&&(a[0].unobserve(e),a[1].delete(e)),a[1].size<=0&&i.delete(n.hash),i.size||xr.delete(o))};return Cr.set(e,c),Sr.set(e,r),c},_f={padding:"8px 14px"},Of=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},_f),{borderRadius:t,boxShadow:r,color:$t(n,"rgba(0, 0, 0, .85)"),textColor:n})},Bf=Bt({name:"Tooltip",common:Be,peers:{Popover:en},self:Of}),tn=Bf,Mf=Bt({name:"Ellipsis",common:Be,peers:{Tooltip:tn}}),Lf=Mf,Ef={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"},Af=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:o,popoverColor:i,invertedColor:l,borderRadius:d,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,fontSizeHuge:f,heightSmall:h,heightMedium:p,heightLarge:y,heightHuge:C,textColor3:x,opacityDisabled:b}=e;return Object.assign(Object.assign({},Ef),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:y,optionHeightHuge:C,borderRadius:d,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,fontSizeHuge:f,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:o,optionColorActive:te(t,{alpha:.1}),groupHeaderTextColor:x,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})},Df=Bt({name:"Dropdown",common:Be,peers:{Popover:en},self:Af}),Ff=Df,Nf=Object.assign(Object.assign({},ir),ne.props),li=K({name:"Tooltip",props:Nf,__popover__:!0,setup(e){const t=ne("Tooltip","-tooltip",void 0,tn,e),r=L(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(o){r.value.setShow(o)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:D(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(oi,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)}}),Hf=k("ellipsis",{overflow:"hidden"},[Te("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),U("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),U("cursor-pointer",` + cursor: pointer; + `)]);function qn(e){return`${e}-ellipsis--line-clamp`}function Gn(e,t){return`${e}-ellipsis--cursor-${t}`}const jf=Object.assign(Object.assign({},ne.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),si=K({name:"Ellipsis",inheritAttrs:!1,props:jf,setup(e,{slots:t,attrs:r}){const{mergedClsPrefixRef:n}=_e(e),o=ne("Ellipsis","-ellipsis",Hf,Lf,e,n),i=L(null),l=L(null),d=L(null),a=L(!1),s=D(()=>{const{lineClamp:x}=e,{value:b}=a;return x!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":x}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function c(){let x=!1;const{value:b}=a;if(b)return!0;const{value:S}=i;if(S){const{lineClamp:_}=e;if(p(S),_!==void 0)x=S.scrollHeight<=S.offsetHeight;else{const{value:m}=l;m&&(x=m.getBoundingClientRect().width<=S.getBoundingClientRect().width)}y(S,x)}return x}const f=D(()=>e.expandTrigger==="click"?()=>{var x;const{value:b}=a;b&&((x=d.value)===null||x===void 0||x.setShow(!1)),a.value=!b}:void 0);dl(()=>{var x;e.tooltip&&((x=d.value)===null||x===void 0||x.setShow(!1))});const h=()=>u("span",Object.assign({},_t(r,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?qn(n.value):void 0,e.expandTrigger==="click"?Gn(n.value,"pointer"):void 0],style:s.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?c:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function p(x){if(!x)return;const b=s.value,S=qn(n.value);e.lineClamp!==void 0?C(x,S,"add"):C(x,S,"remove");for(const _ in b)x.style[_]!==b[_]&&(x.style[_]=b[_])}function y(x,b){const S=Gn(n.value,"pointer");e.expandTrigger==="click"&&!b?C(x,S,"add"):C(x,S,"remove")}function C(x,b,S){S==="add"?x.classList.contains(b)||x.classList.add(b):x.classList.contains(b)&&x.classList.remove(b)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:l,tooltipRef:d,handleClick:f,renderTrigger:h,getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:n}=this;if(t){const{mergedTheme:o}=this;return u(li,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:r,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return r()}}),di=K({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Wf=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:i,opacity5Depth:l}},Uf={name:"Icon",common:Be,self:Wf},Vf=Uf,Kf=k("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[U("color-transition",{transition:"color .3s var(--n-bezier)"}),U("depth",{color:"var(--n-color)"},[j("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),j("svg",{height:"1em",width:"1em"})]),qf=Object.assign(Object.assign({},ne.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Gf=K({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:qf,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=_e(e),n=ne("Icon","-icon",Kf,Vf,e,t),o=D(()=>{const{depth:l}=e,{common:{cubicBezierEaseInOut:d},self:a}=n.value;if(l!==void 0){const{color:s,[`opacity${l}Depth`]:c}=a;return{"--n-bezier":d,"--n-color":s,"--n-opacity":c}}return{"--n-bezier":d,"--n-color":"","--n-opacity":""}}),i=r?He("icon",D(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:D(()=>{const{size:l,color:d}=e;return{fontSize:We(l),color:d}}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:i,themeClass:l}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Vr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",_t(this.$attrs,{role:"img",class:[`${n}-icon`,l,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),rn=Ve("n-dropdown-menu"),ar=Ve("n-dropdown"),Xn=Ve("n-dropdown-option");function Br(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function Xf(e){return e.type==="group"}function ui(e){return e.type==="divider"}function Yf(e){return e.type==="render"}const ci=K({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=ie(ar),{hoverKeyRef:r,keyboardKeyRef:n,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:d,mergedShowRef:a,renderLabelRef:s,renderIconRef:c,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:p,nodePropsRef:y,menuPropsRef:C}=t,x=ie(Xn,null),b=ie(rn),S=ie(er),_=D(()=>e.tmNode.rawNode),m=D(()=>{const{value:F}=h;return Br(e.tmNode.rawNode,F)}),g=D(()=>{const{disabled:F}=e.tmNode;return F}),M=D(()=>{if(!m.value)return!1;const{key:F,disabled:q}=e.tmNode;if(q)return!1;const{value:Q}=r,{value:ae}=n,{value:me}=o,{value:ve}=i;return Q!==null?ve.includes(F):ae!==null?ve.includes(F)&&ve[ve.length-1]!==F:me!==null?ve.includes(F):!1}),$=D(()=>n.value===null&&!d.value),A=Rl(M,300,$),z=D(()=>!!(x!=null&&x.enteringSubmenuRef.value)),B=L(!1);ke(Xn,{enteringSubmenuRef:B});function R(){B.value=!0}function O(){B.value=!1}function I(){const{parentKey:F,tmNode:q}=e;q.disabled||a.value&&(o.value=F,n.value=null,r.value=q.key)}function w(){const{tmNode:F}=e;F.disabled||a.value&&r.value!==F.key&&I()}function P(F){if(e.tmNode.disabled||!a.value)return;const{relatedTarget:q}=F;q&&!Sn({target:q},"dropdownOption")&&!Sn({target:q},"scrollbarRail")&&(r.value=null)}function N(){const{value:F}=m,{tmNode:q}=e;a.value&&!F&&!q.disabled&&(t.doSelect(q.key,q.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:s,renderIcon:c,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:C,popoverBody:S,animated:d,mergedShowSubmenu:D(()=>A.value&&!z.value),rawNode:_,hasSubmenu:m,pending:Ae(()=>{const{value:F}=i,{key:q}=e.tmNode;return F.includes(q)}),childActive:Ae(()=>{const{value:F}=l,{key:q}=e.tmNode,Q=F.findIndex(ae=>q===ae);return Q===-1?!1:Q{const{value:F}=l,{key:q}=e.tmNode,Q=F.findIndex(ae=>q===ae);return Q===-1?!1:Q===F.length-1}),mergedDisabled:g,renderOption:p,nodeProps:y,handleClick:N,handleMouseMove:w,handleMouseEnter:I,handleMouseLeave:P,handleSubmenuBeforeEnter:R,handleSubmenuAfterEnter:O}},render(){var e,t;const{animated:r,rawNode:n,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:d,renderLabel:a,renderIcon:s,renderOption:c,nodeProps:f,props:h,scrollable:p}=this;let y=null;if(o){const S=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);y=u(fi,Object.assign({},S,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const C={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},x=f==null?void 0:f(n),b=u("div",Object.assign({class:[`${i}-dropdown-option`,x==null?void 0:x.class],"data-dropdown-option":!0},x),u("div",_t(C,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[s?s(n):Xt(n.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},a?a(n):Xt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,d&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(Gf,null,{default:()=>u(dc,null)}):null)]),this.hasSubmenu?u(Oo,null,{default:()=>[u(Bo,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Mo,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},r?u(zt,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>y}):y)}))})]}):null);return c?c({node:b,option:n}):b}}),Zf=K({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=ie(rn),{renderLabelRef:r,labelFieldRef:n,nodePropsRef:o,renderOptionRef:i}=ie(ar);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:n,nodeProps:o,renderLabel:i,renderOption:l}=this,{rawNode:d}=this.tmNode,a=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(d)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Xt(d.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(d):Xt((e=d.title)!==null&&e!==void 0?e:d[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:a,option:d}):a}}),Jf=K({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:r}=this,{children:n}=e;return u(Ne,null,u(Zf,{clsPrefix:r,tmNode:e,key:e.key}),n==null?void 0:n.map(o=>{const{rawNode:i}=o;return i.show===!1?null:ui(i)?u(di,{clsPrefix:r,key:o.key}):o.isGroup?(Vr("dropdown","`group` node is not allowed to be put in `group` node."),null):u(ci,{clsPrefix:r,tmNode:o,parentKey:t,key:o.key})}))}}),Qf=K({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),fi=K({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:r}=ie(ar);ke(rn,{showIconRef:D(()=>{const o=t.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>o?o(a):a.icon);const{rawNode:d}=i;return o?o(d):d.icon})}),hasSubmenuRef:D(()=>{const{value:o}=r;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:a})=>Br(a,o));const{rawNode:d}=i;return Br(d,o)})})});const n=L(null);return ke(Er,null),ke(Ar,null),ke(er,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,n=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:Yf(i)?u(Qf,{tmNode:o,key:o.key}):ui(i)?u(di,{clsPrefix:t,key:o.key}):Xf(i)?u(Jf,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(ci,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:r})});return u("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?u(po,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?ni({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),eh=k("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[wo(),k("dropdown-option",` + position: relative; + `,[j("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[j("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),k("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[j("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),Te("disabled",[U("pending",` + color: var(--n-option-text-color-hover); + `,[E("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),j("&::before","background-color: var(--n-option-color-hover);")]),U("active",` + color: var(--n-option-text-color-active); + `,[E("prefix, suffix",` + color: var(--n-option-text-color-active); + `),j("&::before","background-color: var(--n-option-color-active);")]),U("child-active",` + color: var(--n-option-text-color-child-active); + `,[E("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),U("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),U("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[E("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[U("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),E("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[U("show-icon",` + width: var(--n-option-icon-prefix-width); + `),k("icon",` + font-size: var(--n-option-icon-size); + `)]),E("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),E("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[U("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),k("icon",` + font-size: var(--n-option-icon-size); + `)]),k("dropdown-menu","pointer-events: all;")]),k("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),k("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),k("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),j(">",[k("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Te("scrollable",` + padding: var(--n-padding); + `),U("scrollable",[E("content",` + padding: var(--n-padding); + `)])]),th={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]},rh=Object.keys(ir),nh=Object.assign(Object.assign(Object.assign({},ir),th),ne.props),Yn=K({name:"Dropdown",inheritAttrs:!1,props:nh,setup(e){const t=L(!1),r=nr(J(e,"show"),t),n=D(()=>{const{keyField:O,childrenField:I}=e;return Kc(e.options,{getKey(w){return w[O]},getDisabled(w){return w.disabled===!0},getIgnored(w){return w.type==="divider"||w.type==="render"},getChildren(w){return w[I]}})}),o=D(()=>n.value.treeNodes),i=L(null),l=L(null),d=L(null),a=D(()=>{var O,I,w;return(w=(I=(O=i.value)!==null&&O!==void 0?O:l.value)!==null&&I!==void 0?I:d.value)!==null&&w!==void 0?w:null}),s=D(()=>n.value.getPath(a.value).keyPath),c=D(()=>n.value.getPath(e.value).keyPath),f=Ae(()=>e.keyboard&&r.value);Ml({keydown:{ArrowUp:{prevent:!0,handler:g},ArrowRight:{prevent:!0,handler:m},ArrowDown:{prevent:!0,handler:M},ArrowLeft:{prevent:!0,handler:_},Enter:{prevent:!0,handler:$},Escape:S}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:p}=_e(e),y=ne("Dropdown","-dropdown",eh,Ff,e,h);ke(ar,{labelFieldRef:J(e,"labelField"),childrenFieldRef:J(e,"childrenField"),renderLabelRef:J(e,"renderLabel"),renderIconRef:J(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:d,pendingKeyPathRef:s,activeKeyPathRef:c,animatedRef:J(e,"animated"),mergedShowRef:r,nodePropsRef:J(e,"nodeProps"),renderOptionRef:J(e,"renderOption"),menuPropsRef:J(e,"menuProps"),doSelect:C,doUpdateShow:x}),Se(r,O=>{!e.animated&&!O&&b()});function C(O,I){const{onSelect:w}=e;w&&ce(w,O,I)}function x(O){const{"onUpdate:show":I,onUpdateShow:w}=e;I&&ce(I,O),w&&ce(w,O),t.value=O}function b(){i.value=null,l.value=null,d.value=null}function S(){x(!1)}function _(){z("left")}function m(){z("right")}function g(){z("up")}function M(){z("down")}function $(){const O=A();O!=null&&O.isLeaf&&r.value&&(C(O.key,O.rawNode),x(!1))}function A(){var O;const{value:I}=n,{value:w}=a;return!I||w===null?null:(O=I.getNode(w))!==null&&O!==void 0?O:null}function z(O){const{value:I}=a,{value:{getFirstAvailableNode:w}}=n;let P=null;if(I===null){const N=w();N!==null&&(P=N.key)}else{const N=A();if(N){let F;switch(O){case"down":F=N.getNext();break;case"up":F=N.getPrev();break;case"right":F=N.getChild();break;case"left":F=N.getParent();break}F&&(P=F.key)}}P!==null&&(i.value=null,l.value=P)}const B=D(()=>{const{size:O,inverted:I}=e,{common:{cubicBezierEaseInOut:w},self:P}=y.value,{padding:N,dividerColor:F,borderRadius:q,optionOpacityDisabled:Q,[oe("optionIconSuffixWidth",O)]:ae,[oe("optionSuffixWidth",O)]:me,[oe("optionIconPrefixWidth",O)]:ve,[oe("optionPrefixWidth",O)]:we,[oe("fontSize",O)]:re,[oe("optionHeight",O)]:ze,[oe("optionIconSize",O)]:xe}=P,ee={"--n-bezier":w,"--n-font-size":re,"--n-padding":N,"--n-border-radius":q,"--n-option-height":ze,"--n-option-prefix-width":we,"--n-option-icon-prefix-width":ve,"--n-option-suffix-width":me,"--n-option-icon-suffix-width":ae,"--n-option-icon-size":xe,"--n-divider-color":F,"--n-option-opacity-disabled":Q};return I?(ee["--n-color"]=P.colorInverted,ee["--n-option-color-hover"]=P.optionColorHoverInverted,ee["--n-option-color-active"]=P.optionColorActiveInverted,ee["--n-option-text-color"]=P.optionTextColorInverted,ee["--n-option-text-color-hover"]=P.optionTextColorHoverInverted,ee["--n-option-text-color-active"]=P.optionTextColorActiveInverted,ee["--n-option-text-color-child-active"]=P.optionTextColorChildActiveInverted,ee["--n-prefix-color"]=P.prefixColorInverted,ee["--n-suffix-color"]=P.suffixColorInverted,ee["--n-group-header-text-color"]=P.groupHeaderTextColorInverted):(ee["--n-color"]=P.color,ee["--n-option-color-hover"]=P.optionColorHover,ee["--n-option-color-active"]=P.optionColorActive,ee["--n-option-text-color"]=P.optionTextColor,ee["--n-option-text-color-hover"]=P.optionTextColorHover,ee["--n-option-text-color-active"]=P.optionTextColorActive,ee["--n-option-text-color-child-active"]=P.optionTextColorChildActive,ee["--n-prefix-color"]=P.prefixColor,ee["--n-suffix-color"]=P.suffixColor,ee["--n-group-header-text-color"]=P.groupHeaderTextColor),ee}),R=p?He("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),B,e):void 0;return{mergedClsPrefix:h,mergedTheme:y,tmNodes:o,mergedShow:r,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:x,cssVars:p?void 0:B,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const e=(n,o,i,l,d)=>{var a;const{mergedClsPrefix:s,menuProps:c}=this;(a=this.onRender)===null||a===void 0||a.call(this);const f=(c==null?void 0:c(void 0,this.tmNodes.map(p=>p.rawNode)))||{},h={ref:zl(o),class:[n,`${s}-dropdown`,this.themeClass],clsPrefix:s,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:d};return u(fi,_t(this.$attrs,h,f))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(oi,Object.assign({},vo(this.$props,rh),r),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}}),oh={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},ih=()=>oh,ah={name:"Space",self:ih},lh=ah;let Pr;const sh=()=>{if(!Ur)return!0;if(Pr===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),Pr=t}return Pr},dh=Object.assign(Object.assign({},ne.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),uh=K({name:"Space",props:dh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=_e(e),n=ne("Space","-space",void 0,lh,e,t),o=Ot("Space",r,t);return{useGap:sh(),rtlEnabled:o,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:{[oe("gap",i)]:l}}=n.value,{row:d,col:a}=cl(l);return{horizontal:yn(a),vertical:yn(d)}})}},render(){const{vertical:e,align:t,inline:r,justify:n,itemStyle:o,margin:i,wrap:l,mergedClsPrefix:d,rtlEnabled:a,useGap:s,wrapItem:c,internalUseGap:f}=this,h=ul($l(this));if(!h.length)return null;const p=`${i.horizontal}px`,y=`${i.horizontal/2}px`,C=`${i.vertical}px`,x=`${i.vertical/2}px`,b=h.length-1,S=n.startsWith("space-");return u("div",{role:"none",class:[`${d}-space`,a&&`${d}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!l||e?"nowrap":"wrap",marginTop:s||e?"":`-${x}`,marginBottom:s||e?"":`-${x}`,alignItems:t,gap:s?`${i.vertical}px ${i.horizontal}px`:""}},!c&&(s||f)?h:h.map((_,m)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},s?"":e?{marginBottom:m!==b?C:""}:a?{marginLeft:S?n==="space-between"&&m===b?"":y:m!==b?p:"",marginRight:S?n==="space-between"&&m===0?"":y:"",paddingTop:x,paddingBottom:x}:{marginRight:S?n==="space-between"&&m===b?"":y:m!==b?p:"",marginLeft:S?n==="space-between"&&m===0?"":y:"",paddingTop:x,paddingBottom:x}]},_)))}}),nn=Object.assign(Object.assign({},ne.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),hi=Ve("n-image");function ch(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const fh=Bt({name:"Image",common:Be,peers:{Tooltip:tn},self:ch}),hh=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:o,dividerColor:i,borderRadius:l,fontSize:d,hoverColor:a}=e;return{textColor:t,color:r,colorHover:a,colorModal:n,colorHoverModal:$t(n,a),colorPopover:o,colorHoverPopover:$t(o,a),borderColor:i,borderColorModal:$t(n,i),borderColorPopover:$t(o,i),borderRadius:l,fontSize:d}},ph={name:"List",common:Be,self:hh},vh=ph,gh=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,textColor2:i,progressRailColor:l,fontSize:d,fontWeight:a}=e;return{fontSize:d,fontSizeCircle:"28px",fontWeightCircle:a,railColor:l,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},mh={name:"Progress",common:Be,self:gh},pi=mh,bh=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:r,titleFontWeight:n}},yh={name:"Thing",common:Be,self:bh},wh=yh,xh=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:i,opacityDisabled:l,actionColor:d,borderColor:a,hoverColor:s,lineHeight:c,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:c,borderRadius:f,draggerColor:d,draggerBorder:`1px dashed ${a}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:s,itemColorHoverError:te(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:l,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${a}`}},Ch=Bt({name:"Upload",common:Be,peers:{Button:fl,Progress:pi},self:xh}),Sh=Ch,Ph=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),kh=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),$h=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),zh=j([j("body >",[k("image-container","position: fixed;")]),k("image-preview-container",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + `),k("image-preview-overlay",` + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, .3); + `,[wn()]),k("image-preview-toolbar",` + z-index: 1; + position: absolute; + left: 50%; + transform: translateX(-50%); + border-radius: var(--n-toolbar-border-radius); + height: 48px; + bottom: 40px; + padding: 0 12px; + background: var(--n-toolbar-color); + box-shadow: var(--n-toolbar-box-shadow); + color: var(--n-toolbar-icon-color); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[k("base-icon",` + padding: 0 8px; + font-size: 28px; + cursor: pointer; + `),wn()]),k("image-preview-wrapper",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + pointer-events: none; + `,[wo()]),k("image-preview",` + user-select: none; + -webkit-user-select: none; + pointer-events: all; + margin: auto; + max-height: calc(100vh - 32px); + max-width: calc(100vw - 32px); + transition: transform .3s var(--n-bezier); + `),k("image",` + display: inline-flex; + max-height: 100%; + max-width: 100%; + `,[Te("preview-disabled",` + cursor: pointer; + `),j("img",` + border-radius: inherit; + `)])]),Wt=32,vi=K({name:"ImagePreview",props:Object.assign(Object.assign({},nn),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=ne("Image","-image",zh,fh,e,J(e,"clsPrefix"));let r=null;const n=L(null),o=L(null),i=L(void 0),l=L(!1),d=L(!1),{localeRef:a}=Zr("Image");function s(){const{value:W}=o;if(!r||!W)return;const{style:Y}=W,V=r.getBoundingClientRect(),le=V.left+V.width/2,se=V.top+V.height/2;Y.transformOrigin=`${le}px ${se}px`}function c(W){var Y,V;switch(W.key){case" ":W.preventDefault();break;case"ArrowLeft":(Y=e.onPrev)===null||Y===void 0||Y.call(e);break;case"ArrowRight":(V=e.onNext)===null||V===void 0||V.call(e);break;case"Escape":ze();break}}Se(l,W=>{W?Re("keydown",document,c):Pe("keydown",document,c)}),et(()=>{Pe("keydown",document,c)});let f=0,h=0,p=0,y=0,C=0,x=0,b=0,S=0,_=!1;function m(W){const{clientX:Y,clientY:V}=W;p=Y-f,y=V-h,Io(re)}function g(W){const{mouseUpClientX:Y,mouseUpClientY:V,mouseDownClientX:le,mouseDownClientY:se}=W,Ie=le-Y,Ce=se-V,Oe=`vertical${Ce>0?"Top":"Bottom"}`,je=`horizontal${Ie>0?"Left":"Right"}`;return{moveVerticalDirection:Oe,moveHorizontalDirection:je,deltaHorizontal:Ie,deltaVertical:Ce}}function M(W){const{value:Y}=n;if(!Y)return{offsetX:0,offsetY:0};const V=Y.getBoundingClientRect(),{moveVerticalDirection:le,moveHorizontalDirection:se,deltaHorizontal:Ie,deltaVertical:Ce}=W||{};let Oe=0,je=0;return V.width<=window.innerWidth?Oe=0:V.left>0?Oe=(V.width-window.innerWidth)/2:V.right0?je=(V.height-window.innerHeight)/2:V.bottom.5){const W=I;O-=1,I=Math.max(.5,Math.pow(R,O));const Y=W-I;re(!1);const V=M();I+=Y,re(!1),I-=Y,p=V.offsetX,y=V.offsetY,re()}}function re(W=!0){var Y;const{value:V}=n;if(!V)return;const{style:le}=V,se=hl((Y=A==null?void 0:A.previewedImgPropsRef.value)===null||Y===void 0?void 0:Y.style);let Ie="";if(typeof se=="string")Ie=se+";";else for(const Oe in se)Ie+=`${mu(Oe)}: ${se[Oe]};`;const Ce=`transform-origin: center; transform: translateX(${p}px) translateY(${y}px) rotate(${w}deg) scale(${I});`;_?le.cssText=Ie+"cursor: grabbing; transition: none;"+Ce:le.cssText=Ie+"cursor: grab;"+Ce+(W?"":"transition: none;"),W||V.offsetHeight}function ze(){l.value=!l.value,d.value=!0}function xe(){I=me(),O=Math.ceil(Math.log(I)/Math.log(R)),p=0,y=0,re()}const ee={setPreviewSrc:W=>{i.value=W},setThumbnailEl:W=>{r=W},toggleShow:ze};function De(W,Y){if(e.showToolbarTooltip){const{value:V}=t;return u(li,{to:!1,theme:V.peers.Tooltip,themeOverrides:V.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>a.value[Y],trigger:()=>W})}else return W}const qe=D(()=>{const{common:{cubicBezierEaseInOut:W},self:{toolbarIconColor:Y,toolbarBorderRadius:V,toolbarBoxShadow:le,toolbarColor:se}}=t.value;return{"--n-bezier":W,"--n-toolbar-icon-color":Y,"--n-toolbar-color":se,"--n-toolbar-border-radius":V,"--n-toolbar-box-shadow":le}}),{inlineThemeDisabled:Ge}=_e(),Fe=Ge?He("image-preview",void 0,qe,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:i,show:l,appear:Fr(),displayed:d,previewedImgProps:A==null?void 0:A.previewedImgPropsRef,handleWheel(W){W.preventDefault()},handlePreviewMousedown:z,handlePreviewDblclick:B,syncTransformOrigin:s,handleAfterLeave:()=>{P(),w=0,d.value=!1},handleDragStart:W=>{var Y,V;(V=(Y=A==null?void 0:A.previewedImgPropsRef.value)===null||Y===void 0?void 0:Y.onDragstart)===null||V===void 0||V.call(Y,W),W.preventDefault()},zoomIn:ve,zoomOut:we,rotateCounterclockwise:q,rotateClockwise:Q,handleSwitchPrev:N,handleSwitchNext:F,withTooltip:De,resizeToOrignalImageSize:xe,cssVars:Ge?void 0:qe,themeClass:Fe==null?void 0:Fe.themeClass,onRender:Fe==null?void 0:Fe.onRender},ee)},render(){var e,t;const{clsPrefix:r}=this;return u(Ne,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(so,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),mt(u("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(zt,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(zt,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${r}-image-preview-toolbar`},this.onPrev?u(Ne,null,o(u(fe,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>Ph}),"tipPrevious"),o(u(fe,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>kh}),"tipNext")):null,o(u(fe,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>u(yc,null)}),"tipCounterclockwise"),o(u(fe,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>u(bc,null)}),"tipClockwise"),o(u(fe,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>u(Cc,null)}),"tipOriginalSize"),o(u(fe,{clsPrefix:r,onClick:this.zoomOut},{default:()=>u(xc,null)}),"tipZoomOut"),o(u(fe,{clsPrefix:r,onClick:this.zoomIn},{default:()=>u(wc,null)}),"tipZoomIn"),o(u(fe,{clsPrefix:r,onClick:this.toggleShow},{default:()=>$h}),"tipClose"))}}):null,u(zt,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return mt(u("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[ho,this.show]])}})),[[Nr,{enabled:this.show}]])):null}}))}}),gi=Ve("n-image-group"),Ih=nn,Th=K({name:"ImageGroup",props:Ih,setup(e){let t;const{mergedClsPrefixRef:r}=_e(e),n=`c${$r()}`,o=Dr(),i=a=>{var s;t=a,(s=d.value)===null||s===void 0||s.setPreviewSrc(a)};function l(a){if(!(o!=null&&o.proxy))return;const c=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!c.length)return;const f=Array.from(c).findIndex(h=>h.dataset.previewSrc===t);~f?i(c[(f+a+c.length)%c.length].dataset.previewSrc):i(c[0].dataset.previewSrc)}ke(gi,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:a=>{var s;(s=d.value)===null||s===void 0||s.setThumbnailEl(a)},toggleShow:()=>{var a;(a=d.value)===null||a===void 0||a.toggleShow()},groupId:n});const d=L(null);return{mergedClsPrefix:r,previewInstRef:d,next:()=>l(1),prev:()=>l(-1)}},render(){return u(vi,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),Rh=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},nn),Mr=K({name:"Image",props:Rh,inheritAttrs:!1,setup(e){const t=L(null),r=L(!1),n=L(null),o=ie(gi,null),{mergedClsPrefixRef:i}=o||_e(e),l={click:()=>{if(e.previewDisabled||r.value)return;const s=e.previewSrc||e.src;if(o){o.setPreviewSrc(s),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=n;c&&(c.setPreviewSrc(s),c.setThumbnailEl(t.value),c.toggleShow())}},d=L(!e.lazy);Ue(()=>{var s;(s=t.value)===null||s===void 0||s.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Ue(()=>{if(wr)return;let s;const c=lt(()=>{s==null||s(),s=void 0,e.lazy&&(s=Rf(t.value,e.intersectionObserverOptions,d))});et(()=>{c(),s==null||s()})}),lt(()=>{var s;e.src,(s=e.imgProps)===null||s===void 0||s.src,r.value=!1});const a=L(!1);return ke(hi,{previewedImgPropsRef:J(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:n,imageRef:t,showError:r,shouldStartLoading:d,loaded:a,mergedOnClick:s=>{var c,f;l.click(),(f=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||f===void 0||f.call(c,s)},mergedOnError:s=>{if(!d.value)return;r.value=!0;const{onError:c,imgProps:{onError:f}={}}=e;c==null||c(s),f==null||f(s)},mergedOnLoad:s=>{const{onLoad:c,imgProps:{onLoad:f}={}}=e;c==null||c(s),f==null||f(s),a.value=!0}},l)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},loaded:o,$attrs:i,lazy:l}=this,d=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),a=this.src||n.src||"",s=u("img",Object.assign(Object.assign({},n),{ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:wr?a:this.showError?this.fallbackSrc:this.shouldStartLoading?a:void 0,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:wr&&l&&!this.intersectionObserverOptions?"lazy":"eager",style:[n.style||"",d&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?s:u(vi,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>s}),!o&&d)}}),_h=j([k("list",` + --n-merged-border-color: var(--n-border-color); + --n-merged-color: var(--n-color); + --n-merged-color-hover: var(--n-color-hover); + margin: 0; + font-size: var(--n-font-size); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + padding: 0; + list-style-type: none; + color: var(--n-text-color); + background-color: var(--n-merged-color); + `,[U("show-divider",[k("list-item",[j("&:not(:last-child)",[E("divider",` + background-color: var(--n-merged-border-color); + `)])])]),U("clickable",[k("list-item",` + cursor: pointer; + `)]),U("bordered",` + border: 1px solid var(--n-merged-border-color); + border-radius: var(--n-border-radius); + `),U("hoverable",[k("list-item",` + border-radius: var(--n-border-radius); + `,[j("&:hover",` + background-color: var(--n-merged-color-hover); + `,[E("divider",` + background-color: transparent; + `)])])]),U("bordered, hoverable",[k("list-item",` + padding: 12px 20px; + `),E("header, footer",` + padding: 12px 20px; + `)]),E("header, footer",` + padding: 12px 0; + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); + `,[j("&:not(:last-child)",` + border-bottom: 1px solid var(--n-merged-border-color); + `)]),k("list-item",` + position: relative; + padding: 12px 0; + box-sizing: border-box; + display: flex; + flex-wrap: nowrap; + align-items: center; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[E("prefix",` + margin-right: 20px; + flex: 0; + `),E("suffix",` + margin-left: 20px; + flex: 0; + `),E("main",` + flex: 1; + `),E("divider",` + height: 1px; + position: absolute; + bottom: 0; + left: 0; + right: 0; + background-color: transparent; + transition: background-color .3s var(--n-bezier); + pointer-events: none; + `)])]),pl(k("list",` + --n-merged-color-hover: var(--n-color-hover-modal); + --n-merged-color: var(--n-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `)),vl(k("list",` + --n-merged-color-hover: var(--n-color-hover-popover); + --n-merged-color: var(--n-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `))]),Oh=Object.assign(Object.assign({},ne.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),mi=Ve("n-list"),Bh=K({name:"List",props:Oh,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=_e(e),o=Ot("List",n,t),i=ne("List","-list",_h,vh,e,t);ke(mi,{showDividerRef:J(e,"showDivider"),mergedClsPrefixRef:t});const l=D(()=>{const{common:{cubicBezierEaseInOut:a},self:{fontSize:s,textColor:c,color:f,colorModal:h,colorPopover:p,borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:b,colorHover:S,colorHoverModal:_,colorHoverPopover:m}}=i.value;return{"--n-font-size":s,"--n-bezier":a,"--n-text-color":c,"--n-color":f,"--n-border-radius":b,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-color-modal":h,"--n-color-popover":p,"--n-color-hover":S,"--n-color-hover-modal":_,"--n-color-hover-popover":m}}),d=r?He("list",void 0,l,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:r?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),u("ul",{class:[`${r}-list`,this.rtlEnabled&&`${r}-list--rtl`,this.bordered&&`${r}-list--bordered`,this.showDivider&&`${r}-list--show-divider`,this.hoverable&&`${r}-list--hoverable`,this.clickable&&`${r}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${r}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${r}-list__footer`},t.footer()):null)}}),Mh=K({name:"ListItem",setup(){const e=ie(mi,null);return e||wt("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}});function lr(){const e=ie(gl,null);return e===null&&wt("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 Lh=j([k("progress",{display:"inline-block"},[k("progress-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),U("line",` + width: 100%; + display: block; + `,[k("progress-content",` + display: flex; + align-items: center; + `,[k("progress-graph",{flex:1})]),k("progress-custom-content",{marginLeft:"14px"}),k("progress-icon",` + width: 30px; + padding-left: 14px; + height: var(--n-icon-size-line); + line-height: var(--n-icon-size-line); + font-size: var(--n-icon-size-line); + `,[U("as-text",` + color: var(--n-text-color-line-outer); + text-align: center; + width: 40px; + font-size: var(--n-font-size); + padding-left: 4px; + transition: color .3s var(--n-bezier); + `)])]),U("circle, dashboard",{width:"120px"},[k("progress-custom-content",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),k("progress-text",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: inherit; + font-size: var(--n-font-size-circle); + color: var(--n-text-color-circle); + font-weight: var(--n-font-weight-circle); + transition: color .3s var(--n-bezier); + white-space: nowrap; + `),k("progress-icon",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: var(--n-icon-color); + font-size: var(--n-icon-size-circle); + `)]),U("multiple-circle",` + width: 200px; + color: inherit; + `,[k("progress-text",` + font-weight: var(--n-font-weight-circle); + color: var(--n-text-color-circle); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `)]),k("progress-content",{position:"relative"}),k("progress-graph",{position:"relative"},[k("progress-graph-circle",[j("svg",{verticalAlign:"bottom"}),k("progress-graph-circle-fill",` + stroke: var(--n-fill-color); + transition: + opacity .3s var(--n-bezier), + stroke .3s var(--n-bezier), + stroke-dasharray .3s var(--n-bezier); + `,[U("empty",{opacity:0})]),k("progress-graph-circle-rail",` + transition: stroke .3s var(--n-bezier); + overflow: hidden; + stroke: var(--n-rail-color); + `)]),k("progress-graph-line",[U("indicator-inside",[k("progress-graph-line-rail",` + height: 16px; + line-height: 16px; + border-radius: 10px; + `,[k("progress-graph-line-fill",` + height: inherit; + border-radius: 10px; + `),k("progress-graph-line-indicator",` + background: #0000; + white-space: nowrap; + text-align: right; + margin-left: 14px; + margin-right: 14px; + height: inherit; + font-size: 12px; + color: var(--n-text-color-line-inner); + transition: color .3s var(--n-bezier); + `)])]),U("indicator-inside-label",` + height: 16px; + display: flex; + align-items: center; + `,[k("progress-graph-line-rail",` + flex: 1; + transition: background-color .3s var(--n-bezier); + `),k("progress-graph-line-indicator",` + background: var(--n-fill-color); + font-size: 12px; + transform: translateZ(0); + display: flex; + vertical-align: middle; + height: 16px; + line-height: 16px; + padding: 0 10px; + border-radius: 10px; + position: absolute; + white-space: nowrap; + color: var(--n-text-color-line-inner); + transition: + right .2s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),k("progress-graph-line-rail",` + position: relative; + overflow: hidden; + height: var(--n-rail-height); + border-radius: 5px; + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + `,[k("progress-graph-line-fill",` + background: var(--n-fill-color); + position: relative; + border-radius: 5px; + height: inherit; + width: 100%; + max-width: 0%; + transition: + background-color .3s var(--n-bezier), + max-width .2s var(--n-bezier); + `,[U("processing",[j("&::after",` + content: ""; + background-image: var(--n-line-bg-processing); + animation: progress-processing-animation 2s var(--n-bezier) infinite; + `)])])])])])]),j("@keyframes progress-processing-animation",` + 0% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 100%; + opacity: 1; + } + 66% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + 100% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + `)]),Eh={success:u(xo,null),error:u(Co,null),warning:u(So,null),info:u(Po,null)},Ah=K({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=D(()=>We(e.height)),n=D(()=>e.railBorderRadius!==void 0?We(e.railBorderRadius):e.height!==void 0?We(e.height,{c:.5}):""),o=D(()=>e.fillBorderRadius!==void 0?We(e.fillBorderRadius):e.railBorderRadius!==void 0?We(e.railBorderRadius):e.height!==void 0?We(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:l,railStyle:d,percentage:a,unit:s,indicatorTextColor:c,status:f,showIndicator:h,fillColor:p,processing:y,clsPrefix:C}=e;return u("div",{class:`${C}-progress-content`,role:"none"},u("div",{class:`${C}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${C}-progress-graph-line`,{[`${C}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${C}-progress-graph-line-rail`,style:[{backgroundColor:l,height:r.value,borderRadius:n.value},d]},u("div",{class:[`${C}-progress-graph-line-fill`,y&&`${C}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:r.value,lineHeight:r.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${C}-progress-graph-line-indicator`,style:{color:c}},a,s):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${C}-progress-custom-content`,style:{color:c},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${C}-progress-icon ${C}-progress-icon--as-text`,style:{color:c}},a,s):u("div",{class:`${C}-progress-icon`,"aria-hidden":!0},u(fe,{clsPrefix:C},{default:()=>Eh[f]}))):null)}}}),Dh={success:u(xo,null),error:u(Co,null),warning:u(So,null),info:u(Po,null)},Fh=K({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(n,o,i){const{gapDegree:l,viewBoxWidth:d,strokeWidth:a}=e,s=50,c=0,f=s,h=0,p=2*s,y=50+a/2,C=`M ${y},${y} m ${c},${f} + a ${s},${s} 0 1 1 ${h},${-p} + a ${s},${s} 0 1 1 ${-h},${p}`,x=Math.PI*2*s,b={stroke:i,strokeDasharray:`${n/100*(x-l)}px ${d*8}px`,strokeDashoffset:`-${l/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:C,pathStyle:b}}return()=>{const{fillColor:n,railColor:o,strokeWidth:i,offsetDegree:l,status:d,percentage:a,showIndicator:s,indicatorTextColor:c,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:y,pathStyle:C}=r(100,0,o),{pathString:x,pathStyle:b}=r(a,l,n),S=100+i;return u("div",{class:`${p}-progress-content`,role:"none"},u("div",{class:`${p}-progress-graph`,"aria-hidden":!0},u("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${S} ${S}`},u("g",null,u("path",{class:`${p}-progress-graph-circle-rail`,d:y,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:C})),u("g",null,u("path",{class:[`${p}-progress-graph-circle-fill`,a===0&&`${p}-progress-graph-circle-fill--empty`],d:x,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b}))))),s?u("div",null,t.default?u("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):d!=="default"?u("div",{class:`${p}-progress-icon`,"aria-hidden":!0},u(fe,{clsPrefix:p},{default:()=>Dh[d]})):u("div",{class:`${p}-progress-text`,style:{color:c},role:"none"},u("span",{class:`${p}-progress-text__percentage`},a),u("span",{class:`${p}-progress-text__unit`},f))):null)}}});function Zn(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Nh=K({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=D(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:n,strokeWidth:o,circleGap:i,showIndicator:l,fillColor:d,railColor:a,railStyle:s,percentage:c,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${n} ${n}`},c.map((h,p)=>u("g",{key:p},u("path",{class:`${f}-progress-graph-circle-rail`,d:Zn(n/2-o/2*(1+2*p)-i*p,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:a[p]},s[p]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:Zn(n/2-o/2*(1+2*p)-i*p,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[p],strokeDashoffset:0,stroke:d[p]}})))))),l&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),Hh=Object.assign(Object.assign({},ne.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),jh=K({name:"Progress",props:Hh,setup(e){const t=D(()=>e.indicatorPlacement||e.indicatorPosition),r=D(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=_e(e),i=ne("Progress","-progress",Lh,pi,e,n),l=D(()=>{const{status:a}=e,{common:{cubicBezierEaseInOut:s},self:{fontSize:c,fontSizeCircle:f,railColor:h,railHeight:p,iconSizeCircle:y,iconSizeLine:C,textColorCircle:x,textColorLineInner:b,textColorLineOuter:S,lineBgProcessing:_,fontWeightCircle:m,[oe("iconColor",a)]:g,[oe("fillColor",a)]:M}}=i.value;return{"--n-bezier":s,"--n-fill-color":M,"--n-font-size":c,"--n-font-size-circle":f,"--n-font-weight-circle":m,"--n-icon-color":g,"--n-icon-size-circle":y,"--n-icon-size-line":C,"--n-line-bg-processing":_,"--n-rail-color":h,"--n-rail-height":p,"--n-text-color-circle":x,"--n-text-color-line-inner":b,"--n-text-color-line-outer":S}}),d=o?He("progress",D(()=>e.status[0]),l,e):void 0;return{mergedClsPrefix:n,mergedIndicatorPlacement:t,gapDeg:r,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:n,status:o,railColor:i,railStyle:l,color:d,percentage:a,viewBoxWidth:s,strokeWidth:c,mergedIndicatorPlacement:f,unit:h,borderRadius:p,fillBorderRadius:y,height:C,processing:x,circleGap:b,mergedClsPrefix:S,gapDeg:_,gapOffsetDegree:m,themeClass:g,$slots:M,onRender:$}=this;return $==null||$(),u("div",{class:[g,`${S}-progress`,`${S}-progress--${e}`,`${S}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Fh,{clsPrefix:S,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:d,railStyle:l,offsetDegree:this.offsetDegree,percentage:a,viewBoxWidth:s,strokeWidth:c,gapDegree:_===void 0?e==="dashboard"?75:0:_,gapOffsetDegree:m,unit:h},M):e==="line"?u(Ah,{clsPrefix:S,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:d,railStyle:l,percentage:a,processing:x,indicatorPlacement:f,unit:h,fillBorderRadius:y,railBorderRadius:p,height:C},M):e==="multiple-circle"?u(Nh,{clsPrefix:S,strokeWidth:c,railColor:i,fillColor:d,railStyle:l,viewBoxWidth:s,percentage:a,showIndicator:n,circleGap:b},M):null)}}),Wh=k("thing",` + display: flex; + transition: color .3s var(--n-bezier); + font-size: var(--n-font-size); + color: var(--n-text-color); +`,[k("thing-avatar",` + margin-right: 12px; + margin-top: 2px; + `),k("thing-avatar-header-wrapper",` + display: flex; + flex-wrap: nowrap; + `,[k("thing-header-wrapper",` + flex: 1; + `)]),k("thing-main",` + flex-grow: 1; + `,[k("thing-header",` + display: flex; + margin-bottom: 4px; + justify-content: space-between; + align-items: center; + `,[E("title",` + font-size: 16px; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + color: var(--n-title-text-color); + `)]),E("description",[j("&:not(:last-child)",` + margin-bottom: 4px; + `)]),E("content",[j("&:not(:first-child)",` + margin-top: 12px; + `)]),E("footer",[j("&:not(:first-child)",` + margin-top: 12px; + `)]),E("action",[j("&:not(:first-child)",` + margin-top: 12px; + `)])])]),Uh=Object.assign(Object.assign({},ne.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),bi=K({name:"Thing",props:Uh,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=_e(e),i=ne("Thing","-thing",Wh,wh,e,r),l=Ot("Thing",o,r),d=D(()=>{const{self:{titleTextColor:s,textColor:c,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":h,"--n-text-color":c,"--n-title-font-weight":f,"--n-title-text-color":s}}),a=n?He("thing",void 0,d,e):void 0;return()=>{var s;const{value:c}=r,f=l?l.value:!1;return(s=a==null?void 0:a.onRender)===null||s===void 0||s.call(a),u("div",{class:[`${c}-thing`,a==null?void 0:a.themeClass,f&&`${c}-thing--rtl`],style:n?void 0:d.value},t.avatar&&e.contentIndented?u("div",{class:`${c}-thing-avatar`},t.avatar()):null,u("div",{class:`${c}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${c}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${c}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header-wrapper`},u("div",{class:`${c}-thing-header`},t.header||e.title?u("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u(Ne,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header`},t.header||e.title?u("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${c}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${c}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${c}-thing-main__action`},t.action()):null))}}}),xt=Ve("n-upload"),yi="__UPLOAD_DRAGGER__",Vh=K({name:"UploadDragger",[yi]:!0,setup(e,{slots:t}){const r=ie(xt,null);return r||wt("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:n},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=r;return u("div",{class:[`${n}-upload-dragger`,(o||i)&&`${n}-upload-dragger--disabled`]},t)}}});var wi=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function d(c){try{s(n.next(c))}catch(f){l(f)}}function a(c){try{s(n.throw(c))}catch(f){l(f)}}function s(c){c.done?i(c.value):o(c.value).then(d,a)}s((n=n.apply(e,t||[])).next())})};const xi=e=>e.includes("image/"),Jn=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Qn=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,Ci=e=>{if(e.type)return xi(e.type);const t=Jn(e.name||"");if(Qn.test(t))return!0;const r=e.thumbnailUrl||e.url||"",n=Jn(r);return!!(/^data:image\//.test(r)||Qn.test(n))};function Kh(e){return wi(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!xi(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const qh=Ur&&window.FileReader&&window.File;function Gh(e){return e.isDirectory}function Xh(e){return e.isFile}function Yh(e,t){return wi(this,void 0,void 0,function*(){const r=[];let n,o=0;function i(){o++}function l(){o--,o||n(r)}function d(a){a.forEach(s=>{if(s){if(i(),t&&Gh(s)){const c=s.createReader();i(),c.readEntries(f=>{d(f),l()},()=>{l()})}else Xh(s)&&(i(),s.file(c=>{r.push({file:c,entry:s,source:"dnd"}),l()},()=>{l()}));l()}})}return yield new Promise(a=>{n=a,d(e)}),r})}function Rt(e){const{id:t,name:r,percentage:n,status:o,url:i,file:l,thumbnailUrl:d,type:a,fullPath:s,batchId:c}=e;return{id:t,name:r,percentage:n??null,status:o,url:i??null,file:l??null,thumbnailUrl:d??null,type:a??null,fullPath:s??null,batchId:c??null}}function Zh(e,t,r){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),r=r.toLocaleLowerCase(),r.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,l]=t.split("/"),[d,a]=o.split("/");if((d==="*"||i&&d&&d===i)&&(a==="*"||l&&a&&a===l))return!0}else return!0;return!1})}const Jh=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},Si=K({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=ie(xt,null);r||wt("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:n,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:l,dragOverRef:d,openOpenFileDialog:a,draggerInsideRef:s,handleFileAddition:c,mergedDirectoryDndRef:f,triggerStyleRef:h}=r,p=D(()=>l.value==="image-card");function y(){o.value||i.value||a()}function C(_){_.preventDefault(),d.value=!0}function x(_){_.preventDefault(),d.value=!0}function b(_){_.preventDefault(),d.value=!1}function S(_){var m;if(_.preventDefault(),!s.value||o.value||i.value){d.value=!1;return}const g=(m=_.dataTransfer)===null||m===void 0?void 0:m.items;g!=null&&g.length?Yh(Array.from(g).map(M=>M.webkitGetAsEntry()),f.value).then(M=>{c(M)}).finally(()=>{d.value=!1}):d.value=!1}return()=>{var _;const{value:m}=n;return e.abstract?(_=t.default)===null||_===void 0?void 0:_.call(t,{handleClick:y,handleDrop:S,handleDragOver:C,handleDragEnter:x,handleDragLeave:b}):u("div",{class:[`${m}-upload-trigger`,(o.value||i.value)&&`${m}-upload-trigger--disabled`,p.value&&`${m}-upload-trigger--image-card`],style:h.value,onClick:y,onDrop:S,onDragover:C,onDragenter:x,onDragleave:b},p.value?u(Vh,null,{default:()=>pt(t.default,()=>[u(fe,{clsPrefix:m},{default:()=>u(lc,null)})])}):t)}}}),Qh=K({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:ie(xt).mergedThemeRef}},render(){return u(ko,null,{default:()=>this.show?u(jh,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),ep=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),tp=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var rp=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function d(c){try{s(n.next(c))}catch(f){l(f)}}function a(c){try{s(n.throw(c))}catch(f){l(f)}}function s(c){c.done?i(c.value):o(c.value).then(d,a)}s((n=n.apply(e,t||[])).next())})};const Ut={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},np=K({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=ie(xt),r=L(null),n=L(""),o=D(()=>{const{file:g}=e;return g.status==="finished"?"success":g.status==="error"?"error":"info"}),i=D(()=>{const{file:g}=e;if(g.status==="error")return"error"}),l=D(()=>{const{file:g}=e;return g.status==="uploading"}),d=D(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:g}=e;return["uploading","pending","error"].includes(g.status)}),a=D(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:g}=e;return["finished"].includes(g.status)}),s=D(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:g}=e;return["finished"].includes(g.status)}),c=D(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:g}=e;return["error"].includes(g.status)}),f=Ae(()=>n.value||e.file.thumbnailUrl||e.file.url),h=D(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:g},listType:M}=e;return["finished"].includes(g)&&f.value&&M==="image-card"});function p(){t.submit(e.file.id)}function y(g){g.preventDefault();const{file:M}=e;["finished","pending","error"].includes(M.status)?x(M):["uploading"].includes(M.status)?S(M):Vr("upload","The button clicked type is unknown.")}function C(g){g.preventDefault(),b(e.file)}function x(g){const{xhrMap:M,doChange:$,onRemoveRef:{value:A},mergedFileListRef:{value:z}}=t;Promise.resolve(A?A({file:Object.assign({},g),fileList:z}):!0).then(B=>{if(B===!1)return;const R=Object.assign({},g,{status:"removed"});M.delete(g.id),$(R,void 0,{remove:!0})})}function b(g){const{onDownloadRef:{value:M}}=t;Promise.resolve(M?M(Object.assign({},g)):!0).then($=>{$!==!1&&Jh(g.url,g.name)})}function S(g){const{xhrMap:M}=t,$=M.get(g.id);$==null||$.abort(),x(Object.assign({},g))}function _(){const{onPreviewRef:{value:g}}=t;if(g)g(e.file);else if(e.listType==="image-card"){const{value:M}=r;if(!M)return;M.click()}}const m=()=>rp(this,void 0,void 0,function*(){const{listType:g}=e;g!=="image"&&g!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(n.value=yield t.getFileThumbnailUrlResolver(e.file))});return lt(()=>{m()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:l,disabled:t.mergedDisabledRef,showCancelButton:d,showRemoveButton:a,showDownloadButton:s,showRetryButton:c,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:r,handleRemoveOrCancelClick:y,handleDownloadClick:C,handleRetryClick:p,handlePreviewClick:_}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:n,renderIcon:o}=this;let i;const l=r==="image";l||r==="image-card"?i=!this.shouldUseThumbnailUrl(n)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):Ci(n)?u(fe,{clsPrefix:e},{default:()=>ep}):u(fe,{clsPrefix:e},{default:()=>tp})):u("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?u(Mr,{src:this.mergedThumbnailUrl||void 0,previewSrc:n.url||void 0,alt:n.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:n.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(n):u(fe,{clsPrefix:e},{default:()=>u(sc,null)}));const a=u(Qh,{show:this.showProgress,percentage:n.percentage||0,status:this.progressStatus}),s=r==="text"||r==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,n.url&&n.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},s&&(n.url&&n.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,onClick:this.handlePreviewClick},n.name):u("span",{onClick:this.handlePreviewClick},n.name)),l&&a),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?u(ge,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(fe,{clsPrefix:e},{default:()=>u(Qo,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(ge,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Ut,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(bo,null,{default:()=>this.showRemoveButton?u(fe,{clsPrefix:e,key:"trash"},{default:()=>u(cc,null)}):u(fe,{clsPrefix:e,key:"cancel"},{default:()=>u(pc,null)})})}),this.showRetryButton&&!this.disabled&&u(ge,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(fe,{clsPrefix:e},{default:()=>u(mc,null)})}),this.showDownloadButton?u(ge,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ut},{icon:()=>u(fe,{clsPrefix:e},{default:()=>u(fc,null)})}):null)),!l&&a)}}),op=K({name:"UploadFileList",setup(e,{slots:t}){const r=ie(xt,null);r||wt("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:n,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:l,fileListStyleRef:d,cssVarsRef:a,themeClassRef:s,maxReachedRef:c,showTriggerRef:f,imageGroupPropsRef:h}=r,p=D(()=>i.value==="image-card"),y=()=>l.value.map(x=>u(np,{clsPrefix:o.value,key:x.id,file:x,listType:i.value})),C=()=>p.value?u(Th,Object.assign({},h.value),{default:y}):u(ko,{group:!0},{default:y});return()=>{const{value:x}=o,{value:b}=n;return u("div",{class:[`${x}-upload-file-list`,p.value&&`${x}-upload-file-list--grid`,b?s==null?void 0:s.value:void 0],style:[b&&a?a.value:"",d.value]},C(),f.value&&!c.value&&p.value&&u(Si,null,t))}}}),ip=j([k("upload","width: 100%;",[U("dragger-inside",[k("upload-trigger",` + display: block; + `)]),U("drag-over",[k("upload-dragger",` + border: var(--n-dragger-border-hover); + `)])]),k("upload-dragger",` + cursor: pointer; + box-sizing: border-box; + width: 100%; + text-align: center; + border-radius: var(--n-border-radius); + padding: 24px; + opacity: 1; + transition: + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-dragger-color); + border: var(--n-dragger-border); + `,[j("&:hover",` + border: var(--n-dragger-border-hover); + `),U("disabled",` + cursor: not-allowed; + `)]),k("upload-trigger",` + display: inline-block; + box-sizing: border-box; + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[j("+",[k("upload-file-list","margin-top: 8px;")]),U("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `),U("image-card",` + width: 96px; + height: 96px; + `,[k("base-icon",` + font-size: 24px; + `),k("upload-dragger",` + padding: 0; + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `)])]),k("upload-file-list",` + line-height: var(--n-line-height); + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[j("a, img","outline: none;"),U("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `,[k("upload-file","cursor: not-allowed;")]),U("grid",` + display: grid; + grid-template-columns: repeat(auto-fill, 96px); + grid-gap: 8px; + margin-top: 0; + `),k("upload-file",` + display: block; + box-sizing: border-box; + cursor: default; + padding: 0px 12px 0 6px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `,[xn(),k("progress",[xn({foldPadding:!0})]),j("&:hover",` + background-color: var(--n-item-color-hover); + `,[k("upload-file-info",[E("action",` + opacity: 1; + `)])]),U("image-type",` + border-radius: var(--n-border-radius); + text-decoration: underline; + text-decoration-color: #0000; + `,[k("upload-file-info",` + padding-top: 0px; + padding-bottom: 0px; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; + `,[k("progress",` + padding: 2px 0; + margin-bottom: 0; + `),E("name",` + padding: 0 8px; + `),E("thumbnail",` + width: 32px; + height: 32px; + font-size: 28px; + display: flex; + justify-content: center; + align-items: center; + `,[j("img",` + width: 100%; + `)])])]),U("text-type",[k("progress",` + box-sizing: border-box; + padding-bottom: 6px; + margin-bottom: 6px; + `)]),U("image-card-type",` + position: relative; + width: 96px; + height: 96px; + border: var(--n-item-border-image-card); + border-radius: var(--n-border-radius); + padding: 0; + display: flex; + align-items: center; + justify-content: center; + transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + overflow: hidden; + `,[k("progress",` + position: absolute; + left: 8px; + bottom: 8px; + right: 8px; + width: unset; + `),k("upload-file-info",` + padding: 0; + width: 100%; + height: 100%; + `,[E("thumbnail",` + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: 36px; + `,[j("img",` + width: 100%; + `)])]),j("&::before",` + position: absolute; + z-index: 1; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + opacity: 0; + transition: opacity .2s var(--n-bezier); + content: ""; + `),j("&:hover",[j("&::before","opacity: 1;"),k("upload-file-info",[E("thumbnail","opacity: .12;")])])]),U("error-status",[j("&:hover",` + background-color: var(--n-item-color-hover-error); + `),k("upload-file-info",[E("name","color: var(--n-item-text-color-error);"),E("thumbnail","color: var(--n-item-text-color-error);")]),U("image-card-type",` + border: var(--n-item-border-image-card-error); + `)]),U("with-url",` + cursor: pointer; + `,[k("upload-file-info",[E("name",` + color: var(--n-item-text-color-success); + text-decoration-color: var(--n-item-text-color-success); + `,[j("a",` + text-decoration: underline; + `)])])]),k("upload-file-info",` + position: relative; + padding-top: 6px; + padding-bottom: 6px; + display: flex; + flex-wrap: nowrap; + `,[E("thumbnail",` + font-size: 18px; + opacity: 1; + transition: opacity .2s var(--n-bezier); + color: var(--n-item-icon-color); + `,[k("base-icon",` + margin-right: 2px; + vertical-align: middle; + transition: color .3s var(--n-bezier); + `)]),E("action",` + padding-top: inherit; + padding-bottom: inherit; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 80px; + display: flex; + align-items: center; + transition: opacity .2s var(--n-bezier); + justify-content: flex-end; + opacity: 0; + `,[k("button",[j("&:not(:last-child)",{marginRight:"4px"}),k("base-icon",[j("svg",[go()])])]),U("image-type",` + position: relative; + max-width: 80px; + width: auto; + `),U("image-card-type",` + z-index: 2; + position: absolute; + width: 100%; + height: 100%; + left: 0; + right: 0; + bottom: 0; + top: 0; + display: flex; + justify-content: center; + align-items: center; + `)]),E("name",` + color: var(--n-item-text-color); + flex: 1; + display: flex; + justify-content: center; + text-overflow: ellipsis; + overflow: hidden; + flex-direction: column; + text-decoration-color: #0000; + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `,[j("a",` + color: inherit; + text-decoration: underline; + `)])])])]),k("upload-file-input",` + display: block; + width: 0; + height: 0; + opacity: 0; + `)]);var eo=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function d(c){try{s(n.next(c))}catch(f){l(f)}}function a(c){try{s(n.throw(c))}catch(f){l(f)}}function s(c){c.done?i(c.value):o(c.value).then(d,a)}s((n=n.apply(e,t||[])).next())})};function ap(e,t,r){const{doChange:n,xhrMap:o}=e;let i=0;function l(a){var s;let c=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),c=Rt(((s=e.onError)===null||s===void 0?void 0:s.call(e,{file:c,event:a}))||c),n(c,a)}function d(a){var s;if(e.isErrorState){if(e.isErrorState(r)){l(a);return}}else if(r.status<200||r.status>=300){l(a);return}let c=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),c=Rt(((s=e.onFinish)===null||s===void 0?void 0:s.call(e,{file:c,event:a}))||c),n(c,a)}return{handleXHRLoad:d,handleXHRError:l,handleXHRAbort(a){const s=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),n(s,a)},handleXHRProgress(a){const s=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const c=Math.ceil(a.loaded/a.total*100);s.percentage=c,i=c}n(s,a)}}}function lp(e){const{inst:t,file:r,data:n,headers:o,withCredentials:i,action:l,customRequest:d}=e,{doChange:a}=e.inst;let s=0;d({file:r,data:n,headers:o,withCredentials:i,action:l,onProgress(c){const f=Object.assign({},r,{status:"uploading"}),h=c.percent;f.percentage=h,s=h,a(f)},onFinish(){var c;let f=Object.assign({},r,{status:"finished",percentage:s});f=Rt(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)},onError(){var c;let f=Object.assign({},r,{status:"error",percentage:s});f=Rt(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)}})}function sp(e,t,r){const n=ap(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function Pi(e,t){return typeof e=="function"?e({file:t}):e||{}}function dp(e,t,r){const n=Pi(t,r);n&&Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function up(e,t,r){const n=Pi(t,r);n&&Object.keys(n).forEach(o=>{e.append(o,n[o])})}function cp(e,t,r,{method:n,action:o,withCredentials:i,responseType:l,headers:d,data:a}){const s=new XMLHttpRequest;s.responseType=l,e.xhrMap.set(r.id,s),s.withCredentials=i;const c=new FormData;if(up(c,a,r),c.append(t,r.file),sp(e,r,s),o!==void 0){s.open(n.toUpperCase(),o),dp(s,d,r),s.send(c);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const fp=Object.assign(Object.assign({},ne.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>qh?Ci(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),hp=K({name:"Upload",props:fp,setup(e){e.abstract&&e.listType==="image-card"&&wt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=_e(e),n=ne("Upload","-upload",ip,Sh,e,t),o=yo(e),i=D(()=>{const{max:z}=e;return z!==void 0?p.value.length>=z:!1}),l=L(e.defaultFileList),d=J(e,"fileList"),a=L(null),s={value:!1},c=L(!1),f=new Map,h=nr(d,l),p=D(()=>h.value.map(Rt));function y(){var z;(z=a.value)===null||z===void 0||z.click()}function C(z){const B=z.target;S(B.files?Array.from(B.files).map(R=>({file:R,entry:null,source:"input"})):null,z),B.value=""}function x(z){const{"onUpdate:fileList":B,onUpdateFileList:R}=e;B&&ce(B,z),R&&ce(R,z),l.value=z}const b=D(()=>e.multiple||e.directory);function S(z,B){if(!z||z.length===0)return;const{onBeforeUpload:R}=e;z=b.value?z:[z[0]];const{max:O,accept:I}=e;z=z.filter(({file:P,source:N})=>N==="dnd"&&(I!=null&&I.trim())?Zh(P.name,P.type,I):!0),O&&(z=z.slice(0,O-p.value.length));const w=$r();Promise.all(z.map(({file:P,entry:N})=>eo(this,void 0,void 0,function*(){var F;const q={id:$r(),batchId:w,name:P.name,status:"pending",percentage:0,file:P,url:null,type:P.type,thumbnailUrl:null,fullPath:(F=N==null?void 0:N.fullPath)!==null&&F!==void 0?F:`/${P.webkitRelativePath||P.name}`};return!R||(yield R({file:q,fileList:p.value}))!==!1?q:null}))).then(P=>eo(this,void 0,void 0,function*(){let N=Promise.resolve();return P.forEach(F=>{N=N.then(Gt).then(()=>{F&&m(F,B,{append:!0})})}),yield N})).then(()=>{e.defaultUpload&&_()})}function _(z){const{method:B,action:R,withCredentials:O,headers:I,data:w,name:P}=e,N=z!==void 0?p.value.filter(q=>q.id===z):p.value,F=z!==void 0;N.forEach(q=>{const{status:Q}=q;(Q==="pending"||Q==="error"&&F)&&(e.customRequest?lp({inst:{doChange:m,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:q,action:R,withCredentials:O,headers:I,data:w,customRequest:e.customRequest}):cp({doChange:m,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},P,q,{method:B,action:R,withCredentials:O,responseType:e.responseType,headers:I,data:w}))})}const m=(z,B,R={append:!1,remove:!1})=>{const{append:O,remove:I}=R,w=Array.from(p.value),P=w.findIndex(N=>N.id===z.id);if(O||I||~P){O?w.push(z):I?w.splice(P,1):w.splice(P,1,z);const{onChange:N}=e;N&&N({file:z,fileList:w,event:B}),x(w)}};function g(z){var B;if(z.thumbnailUrl)return z.thumbnailUrl;const{createThumbnailUrl:R}=e;return R?(B=R(z.file,z))!==null&&B!==void 0?B:z.url||"":z.url?z.url:z.file?Kh(z.file):""}const M=D(()=>{const{common:{cubicBezierEaseInOut:z},self:{draggerColor:B,draggerBorder:R,draggerBorderHover:O,itemColorHover:I,itemColorHoverError:w,itemTextColorError:P,itemTextColorSuccess:N,itemTextColor:F,itemIconColor:q,itemDisabledOpacity:Q,lineHeight:ae,borderRadius:me,fontSize:ve,itemBorderImageCardError:we,itemBorderImageCard:re}}=n.value;return{"--n-bezier":z,"--n-border-radius":me,"--n-dragger-border":R,"--n-dragger-border-hover":O,"--n-dragger-color":B,"--n-font-size":ve,"--n-item-color-hover":I,"--n-item-color-hover-error":w,"--n-item-disabled-opacity":Q,"--n-item-icon-color":q,"--n-item-text-color":F,"--n-item-text-color-error":P,"--n-item-text-color-success":N,"--n-line-height":ae,"--n-item-border-image-card-error":we,"--n-item-border-image-card":re}}),$=r?He("upload",void 0,M,e):void 0;ke(xt,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:J(e,"showCancelButton"),showDownloadButtonRef:J(e,"showDownloadButton"),showRemoveButtonRef:J(e,"showRemoveButton"),showRetryButtonRef:J(e,"showRetryButton"),onRemoveRef:J(e,"onRemove"),onDownloadRef:J(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:J(e,"triggerStyle"),shouldUseThumbnailUrlRef:J(e,"shouldUseThumbnailUrl"),renderIconRef:J(e,"renderIcon"),xhrMap:f,submit:_,doChange:m,showPreviewButtonRef:J(e,"showPreviewButton"),onPreviewRef:J(e,"onPreview"),getFileThumbnailUrlResolver:g,listTypeRef:J(e,"listType"),dragOverRef:c,openOpenFileDialog:y,draggerInsideRef:s,handleFileAddition:S,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:J(e,"fileListStyle"),abstractRef:J(e,"abstract"),acceptRef:J(e,"accept"),cssVarsRef:r?void 0:M,themeClassRef:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender,showTriggerRef:J(e,"showTrigger"),imageGroupPropsRef:J(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var z;return(z=e.directoryDnd)!==null&&z!==void 0?z:e.directory})});const A={clear:()=>{l.value=[]},submit:_,openOpenFileDialog:y};return Object.assign({mergedClsPrefix:t,draggerInsideRef:s,inputElRef:a,mergedTheme:n,dragOver:c,mergedMultiple:b,cssVars:r?void 0:M,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender,handleFileInputChange:C},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:i,onRender:l}=this;if(o.default&&!this.abstract){const a=o.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[yi]&&(r.value=!0)}const d=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(Ne,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(ml,{to:"body"},d)):(l==null||l(),u("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},d,this.showTrigger&&this.listType!=="image-card"&&u(Si,null,o),this.showFileList&&u(op,null,o)))}}),to="/web/assets/setting-c6ca7b14.svg";function pp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function vp(e,t,r=0,n="/",o=""){let i=e+"="+t+";path="+n;if(o&&(i+=";domain="+o),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const at={get:pp,set:vp},Lt=bl("prompt-store",()=>{const e=L([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=L(!1),r=L(!1),n=L([]),o=L(""),i=L(0),l=L({isShow:!1,newPrompt:{act:"",prompt:""}}),d=D(()=>{var s;return o.value?(s=n.value)==null?void 0:s.filter(c=>c.act.includes(o.value)||c.prompt.includes(o.value)):n.value});function a(s){if(s instanceof Array&&s.every(c=>c.act&&c.prompt)){if(n.value.length===0)return n.value.push(...s),{result:!0,data:{successCount:s.length}};const c=s.filter(f=>{var h;return(h=n.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return n.value.push(...c),{result:!0,data:{successCount:c.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:n,keyword:o,searchPromptList:d,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),gp=["href"],mp={key:1},bp=K({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(he(),Le("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Qe(t.navConfig.label),9,gp)):(he(),Le("div",mp,Qe(t.navConfig.label),1))}}),ki=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),yp=e=>new Promise((t,r)=>setTimeout(t,e)),wp={class:"flex justify-center gap-3 px-8"},xp={class:"flex justify-center items-center"},Cp=["src"],Sp=$e("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),ro="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Pp=K({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,n=lr(),o=L(""),i=L(""),l=L(!1),d=D({get:()=>r.show,set:f=>t("update:show",f)}),a=()=>{if(!o.value){n.error("请先输入关键词");return}l.value=!0,i.value=`/images/create?re=1&showselective=1&sude=1&kseed=7500&SFX=2&q=${encodeURIComponent(o.value)}&t=${Date.now()}`},s=()=>{o.value="",i.value=""},c=()=>(o.value=ro,a());return(f,h)=>(he(),Ee(H(vt),{class:"w-11/12 lg:w-[540px] select-none",show:d.value,"onUpdate:show":h[2]||(h[2]=p=>d.value=p),"on-close":s,preset:"card",title:"图像创建"},{default:Z(()=>[$e("head",wp,[G(H(ft),{class:"flex-1",placeholder:"提示词",value:o.value,"onUpdate:value":h[0]||(h[0]=p=>o.value=p),clearable:!0,onKeyup:yl(a,["enter"]),maxlength:"100"},null,8,["value","onKeyup"]),G(H(ge),{secondary:"",type:"info",onClick:a,loading:l.value},{default:Z(()=>[pe("开始创建")]),_:1},8,["loading"])]),$e("main",xp,[i.value?(he(),Le("iframe",{key:0,class:"w-[310px] h-[350px] xl:w-[475px] xl:h-[520px] my-4",src:i.value,frameborder:"0",onLoad:h[1]||(h[1]=p=>l.value=!1)},null,40,Cp)):(he(),Ee(H(Qr),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:Z(()=>[G(H(ge),{secondary:"",type:"info",onClick:c},{default:Z(()=>[pe("使用示例创建")]),_:1}),$e("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[Sp,$e("p",{class:"text-left"},"示例:"+Qe(ro))])]),_:1}))])]),_:1},8,["show"]))}}),kp=$e("div",{class:"text-3xl py-2"},"设置用户",-1),$p=$e("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Vt="_U",zp="BingAI_Rand_IP",Ip=K({__name:"ChatNav",setup(e){const t=L(!1),r=L(!1),n=L(""),o=lr(),i=Lt(),{isShowPromptSotre:l}=Mt(i),d=L(!1),a=L(!1),s={github:"github",setToken:"setToken",compose:"compose",createImage:"createImage",promptStore:"promptStore",reset:"reset",version:"version"},c=[{key:s.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:s.version,label:"版本信息"},{key:s.promptStore,label:"提示词库"},{key:s.setToken,label:"设置用户"},{key:s.compose,label:"撰写文章",url:"/web/compose.html"},{key:s.createImage,label:"图像创建"},{key:s.reset,label:"一键重置"}],f=x=>u(bp,{navConfig:x}),h=x=>{switch(x){case s.version:o.success("当前版本号为:1.7.0");break;case s.promptStore:l.value=!0;break;case s.setToken:n.value=at.get(Vt)||"",r.value=!0;break;case s.reset:d.value=!0;break;case s.createImage:at.get(Vt)||o.warning("体验画图功能需先登录"),a.value=!0;break}},p=async()=>{d.value=!1,at.set(Vt,"",-1),at.set(zp,"",-1),await C(),o.success("清理完成"),window.location.reload()},y=()=>{if(!n.value){o.warning("请先填入用户 Cookie");return}at.set(Vt,n.value,7*24*60,"/"),r.value=!1},C=async()=>{localStorage.clear(),sessionStorage.clear();const x=await caches.keys();for(const b of x)await caches.open(b).then(async S=>{const _=await S.keys();return await Promise.all(_.map(m=>(console.log("del cache : ",m.url),S.delete(m))))})};return(x,b)=>(he(),Le(Ne,null,[H(ki)()?(he(),Ee(H(Yn),{key:0,class:"select-none",show:t.value,options:c,"render-label":f,onSelect:h},{default:Z(()=>[G(H(Mr),{class:"fixed top-6 right-4 cursor-pointer",src:H(to),alt:"设置菜单","preview-disabled":!0,onClick:b[0]||(b[0]=S=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(he(),Ee(H(Yn),{key:1,class:"select-none",trigger:"hover",options:c,"render-label":f,onSelect:h},{default:Z(()=>[G(H(Mr),{class:"fixed top-6 right-6 cursor-pointer",src:H(to),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),G(H(vt),{show:r.value,"onUpdate:show":b[3]||(b[3]=S=>r.value=S),preset:"dialog","show-icon":!1},{header:Z(()=>[kp]),action:Z(()=>[G(H(ge),{size:"large",onClick:b[2]||(b[2]=S=>r.value=!1)},{default:Z(()=>[pe("取消")]),_:1}),G(H(ge),{ghost:"",size:"large",type:"info",onClick:y},{default:Z(()=>[pe("保存")]),_:1})]),default:Z(()=>[G(H(ft),{size:"large",value:n.value,"onUpdate:value":b[1]||(b[1]=S=>n.value=S),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),G(H(vt),{show:d.value,"onUpdate:show":b[5]||(b[5]=S=>d.value=S),preset:"dialog","show-icon":!1},{header:Z(()=>[$p]),action:Z(()=>[G(H(ge),{size:"large",onClick:b[4]||(b[4]=S=>d.value=!1)},{default:Z(()=>[pe("取消")]),_:1}),G(H(ge),{ghost:"",size:"large",type:"error",onClick:p},{default:Z(()=>[pe("确定")]),_:1})]),_:1},8,["show"]),G(Pp,{show:a.value,"onUpdate:show":b[6]||(b[6]=S=>a.value=S)},null,8,["show"])],64))}});function no(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rthis.range.start)){var n=Math.max(r-this.param.buffer,0);this.checkRange(n,this.getEndByStart(n))}}},{key:"handleBehind",value:function(){var r=this.getScrollOvers();rr&&(l=o-1)}return n>0?--n:0}},{key:"getIndexOffset",value:function(r){if(!r)return 0;for(var n=0,o=0,i=0;i=N&&n("tobottom")},b=function(w){var P=p(),N=y(),F=C();P<0||P+N>F+1||!F||(f.handleScroll(P),x(P,N,F,w))},S=function(){var w=t.dataKey,P=t.dataSources,N=P===void 0?[]:P;return N.map(function(F){return typeof w=="function"?w(F):F[w]})},_=function(w){a.value=w},m=function(){f=new Ap({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:S()},_),a.value=f.getRange()},g=function(w){if(w>=t.dataSources.length-1)B();else{var P=f.getOffset(w);M(P)}},M=function(w){t.pageMode?(document.body[d]=w,document.documentElement[d]=w):s.value&&(s.value[d]=w)},$=function(){for(var w=[],P=a.value,N=P.start,F=P.end,q=t.dataSources,Q=t.dataKey,ae=t.itemClass,me=t.itemTag,ve=t.itemStyle,we=t.extraProps,re=t.dataComponent,ze=t.itemScopedSlots,xe=N;xe<=F;xe++){var ee=q[xe];if(ee){var De=typeof Q=="function"?Q(ee):ee[Q];typeof De=="string"||typeof De=="number"?w.push(G(Hp,{index:xe,tag:me,event:Tt.ITEM,horizontal:l,uniqueKey:De,source:ee,extraProps:we,component:re,scopedSlots:ze,style:ve,class:"".concat(ae).concat(t.itemClassAdd?" "+t.itemClassAdd(xe):""),onItemResize:A},null)):console.warn("Cannot get the data-key '".concat(Q,"' from data-sources."))}else console.warn("Cannot get the index '".concat(xe,"' from data-sources."))}return w},A=function(w,P){f.saveSize(w,P),n("resized",w,P)},z=function(w,P,N){w===ht.HEADER?f.updateParam("slotHeaderSize",P):w===ht.FOOTER&&f.updateParam("slotFooterSize",P),N&&f.handleSlotSizeChange()},B=function I(){if(c.value){var w=c.value[l?"offsetLeft":"offsetTop"];M(w),setTimeout(function(){p()+y(){n.value=n.value.filter(a=>a.act!==d.act&&a.prompt!==d.prompt),t.success("删除提示词成功")},l=d=>{o.value.isShow=!0,o.value.type="edit",o.value.title="编辑提示词",o.value.tmpPrompt=d,o.value.newPrompt={...d}};return(d,a)=>(he(),Ee(H(bi),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:Z(()=>[G(H(ii),{type:"info"},{default:Z(()=>[$e("span",jp,Qe(d.source.act),1)]),_:1}),$e("div",Wp,[G(H(ge),{secondary:"",type:"info",size:"small",onClick:a[0]||(a[0]=s=>l(d.source))},{default:Z(()=>[pe("编辑")]),_:1}),G(H(ge),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:a[1]||(a[1]=s=>i(d.source))},{default:Z(()=>[pe("删除")]),_:1})])]),default:Z(()=>[G(H(si),{tooltip:!1,"line-clamp":2},{default:Z(()=>[pe(Qe(d.source.prompt),1)]),_:1})]),_:1}))}}),Vp={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},Kp=["href"],qp={class:"flex justify-center gap-5"},Gp=["href"],Xp=K({__name:"ChatPromptStore",setup(e){const t=lr(),r=Lt(),{promptDownloadConfig:n,isShowPromptSotre:o,promptList:i,keyword:l,searchPromptList:d,optPromptConfig:a}=Mt(r),s=L(!1),c=L(!1),f=L(!1),h=()=>{a.value.isShow=!0,a.value.type="add",a.value.title="添加提示词",a.value.newPrompt={act:"",prompt:""}},p=()=>{const{type:_,tmpPrompt:m,newPrompt:g}=a.value;if(!g.act)return t.error("提示词标题不能为空");if(!g.prompt)return t.error("提示词描述不能为空");if(_==="add")i.value=[g,...i.value],t.success("添加提示词成功");else if(_==="edit"){if(g.act===(m==null?void 0:m.act)&&g.prompt===(m==null?void 0:m.prompt)){t.warning("提示词未变更"),a.value.isShow=!1;return}const M=i.value.findIndex($=>$.act===(m==null?void 0:m.act)&&$.prompt===(m==null?void 0:m.prompt));M>-1?(i.value[M]=g,t.success("编辑提示词成功")):t.error("编辑提示词出错")}a.value.isShow=!1},y=_=>new Promise((m,g)=>{const M=new FileReader;M.onload=function($){var A;m((A=$.target)==null?void 0:A.result)},M.onerror=g,M.readAsText(_)}),C=async _=>{var m;if(_.file.file){c.value=!0;const g=await y(_.file.file),M=JSON.parse(g),$=r.addPrompt(M);$.result?(t.info(`上传文件含 ${M.length} 条数据`),t.success(`成功导入 ${(m=$.data)==null?void 0:m.successCount} 条有效数据`)):t.error($.msg||"提示词格式有误"),c.value=!1}else t.error("上传文件有误")},x=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const _=JSON.stringify(i.value),m=new Blob([_],{type:"application/json"}),g=URL.createObjectURL(m),M=document.createElement("a");M.href=g,M.download="BingAIPrompts.json",M.click(),URL.revokeObjectURL(g),t.success("导出提示词库成功"),f.value=!1},b=()=>{i.value=[],t.success("清空提示词库成功")},S=async _=>{var M;if(!_.url)return t.error("请先输入下载链接");_.isDownloading=!0;let m;if(_.url.endsWith(".json"))m=await fetch(_.url).then($=>$.json());else if(_.url.endsWith(".csv")){const $=await fetch(_.url).then(A=>A.text());console.log($),m=$.split(` +`).filter(A=>A).map(A=>{var B;const z=A.split('","');return{act:z[0].slice(1),prompt:(B=z[1])==null?void 0:B.slice(1)}}),m.shift()}else return _.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");_.isDownloading=!1;const g=r.addPrompt(m);g.result?(t.info(`下载文件含 ${m.length} 条数据`),t.success(`成功导入 ${(M=g.data)==null?void 0:M.successCount} 条有效数据`)):t.error(g.msg||"提示词格式有误")};return(_,m)=>(he(),Le(Ne,null,[G(H(vt),{class:"w-11/12 xl:w-[900px]",show:H(o),"onUpdate:show":m[3]||(m[3]=g=>Cn(o)?o.value=g:null),preset:"card",title:"提示词库"},{default:Z(()=>[$e("div",Vp,[G(H(ft),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:H(l),"onUpdate:value":m[0]||(m[0]=g=>Cn(l)?l.value=g:null),clearable:!0},null,8,["value"]),G(H(ge),{secondary:"",type:"info",onClick:m[1]||(m[1]=g=>s.value=!0)},{default:Z(()=>[pe("下载")]),_:1}),G(H(ge),{secondary:"",type:"info",onClick:h},{default:Z(()=>[pe("添加")]),_:1}),G(H(hp),{class:"w-[56px] xl:w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:C},{default:Z(()=>[G(H(ge),{secondary:"",type:"success",loading:c.value},{default:Z(()=>[pe("导入")]),_:1},8,["loading"])]),_:1}),G(H(ge),{secondary:"",type:"success",onClick:x,loading:f.value},{default:Z(()=>[pe("导出")]),_:1},8,["loading"]),G(H(ge),{secondary:"",type:"error",onClick:b},{default:Z(()=>[pe("清空")]),_:1})]),H(d).length>0?(he(),Ee(H(zi),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":H(d),"data-component":Up,keeps:10},null,8,["data-sources"])):(he(),Ee(H(Qr),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:Z(()=>[G(H(ge),{secondary:"",type:"info",onClick:m[2]||(m[2]=g=>s.value=!0)},{default:Z(()=>[pe("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),G(H(vt),{class:"w-11/12 xl:w-[600px]",show:H(a).isShow,"onUpdate:show":m[6]||(m[6]=g=>H(a).isShow=g),preset:"card",title:H(a).title},{default:Z(()=>[G(H(uh),{vertical:""},{default:Z(()=>[pe(" 标题 "),G(H(ft),{placeholder:"请输入标题",value:H(a).newPrompt.act,"onUpdate:value":m[4]||(m[4]=g=>H(a).newPrompt.act=g)},null,8,["value"]),pe(" 描述 "),G(H(ft),{placeholder:"请输入描述",type:"textarea",value:H(a).newPrompt.prompt,"onUpdate:value":m[5]||(m[5]=g=>H(a).newPrompt.prompt=g)},null,8,["value"]),G(H(ge),{block:"",secondary:"",type:"info",onClick:p},{default:Z(()=>[pe("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),G(H(vt),{class:"w-11/12 xl:w-[600px]",show:s.value,"onUpdate:show":m[7]||(m[7]=g=>s.value=g),preset:"card",title:"下载提示词"},{default:Z(()=>[G(H(Bh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:Z(()=>[(he(!0),Le(Ne,null,Cl(H(n),(g,M)=>(he(),Ee(H(Mh),{key:M},{suffix:Z(()=>[$e("div",qp,[g.type===1?(he(),Le("a",{key:0,class:"no-underline",href:g.refer,target:"_blank",rel:"noopener noreferrer"},[G(H(ge),{secondary:""},{default:Z(()=>[pe("来源")]),_:1})],8,Gp)):Yt("",!0),G(H(ge),{secondary:"",type:"info",onClick:$=>S(g),loading:g.isDownloading},{default:Z(()=>[pe("下载")]),_:2},1032,["onClick","loading"])])]),default:Z(()=>[g.type===1?(he(),Le("a",{key:0,class:"no-underline text-blue-500",href:g.url,target:"_blank",rel:"noopener noreferrer"},Qe(g.name),9,Kp)):g.type===2?(he(),Ee(H(ft),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:g.url,"onUpdate:value":$=>g.url=$},null,8,["value","onUpdate:value"])):Yt("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),Yp=`/* 移除顶部背景遮挡 */\r +.scroller>.top {\r + display: none !important;\r +}\r +\r +/* 移除顶部边距 */\r +.scroller>.scroller-positioner>.content {\r + padding-top: 0 !important;\r +}\r +\r +/* 聊天记录 */\r +.scroller .side-panel {\r + position: fixed;\r + right: 10px;\r +}`,Zp={class:"inline-block max-w-[310px] xl:max-w-[650px] overflow-hidden text-ellipsis"},Jp=K({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=Lt(),{selectedPromptIndex:r,isShowChatPrompt:n,keyword:o}=Mt(t),i=l=>{l&&(o.value="",CIB.vm.actionBar.inputText=l.prompt,CIB.vm.actionBar.input.focus(),n.value=!1)};return(l,d)=>(he(),Ee(H(bi),{class:Kr(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":l.index===H(r)}]),onClick:d[0]||(d[0]=a=>i(l.source))},{description:Z(()=>[G(H(ii),{type:"info"},{default:Z(()=>[$e("span",Zp,Qe(l.source.act),1)]),_:1})]),default:Z(()=>[G(H(si),{tooltip:!1,"line-clamp":2},{default:Z(()=>[pe(Qe(l.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),on=e=>(Sl("data-v-aff729bc"),e=e(),Pl(),e),Qp=on(()=>$e("div",{class:"bounce1"},null,-1)),ev=on(()=>$e("div",{class:"bounce2"},null,-1)),tv=on(()=>$e("div",{class:"bounce3"},null,-1)),rv=[Qp,ev,tv],nv=K({__name:"LoadingSpinner",props:{isShow:{type:Boolean}},setup(e){const t=L(!1),r=L();return Ue(()=>{r.value&&r.value.addEventListener("transitionend",()=>{t.value=!0})}),(n,o)=>t.value?Yt("",!0):(he(),Le("div",{key:0,ref_key:"loadingRef",ref:r,class:Kr(["loading-spinner",{hidden:!n.isShow}])},rv,2))}});const ov=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},iv=ov(nv,[["__scopeId","data-v-aff729bc"]]),av=$e("div",{class:"w-0 md:w-[60px]"},null,-1),lv=10,sv="_U",dv="BingAI_Rand_IP",uv=130,cv=K({__name:"ChatPrompt",setup(e){const t=L(!0),r=Lt(),{isShowPromptSotre:n,isShowChatPrompt:o,keyword:i,promptList:l,searchPromptList:d,selectedPromptIndex:a}=Mt(r),s=L(),c=L(!1),f=L(!1),h=D(()=>CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleMobile||!CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleDesktop);Ue(async()=>{await p(),y(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),t.value=!1,b(),S()});const p=async()=>new Promise((R,O)=>{sj_evt.bind("sydFSC.init",R,!0),sj_evt.fire("showSydFSC")}),y=()=>{at.get(sv)||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,x())},C=()=>{const R=new Date;return R.setMinutes(R.getMinutes()+CIB.config.sydney.expiryInMinutes),R},x=async(R=0)=>{var I;if(R>=lv){console.log(`已重试 ${R} 次,自动创建停止`);return}const O=await fetch("/turing/conversation/create",{credentials:"include"}).then(w=>w.json()).catch(w=>"error");((I=O==null?void 0:O.result)==null?void 0:I.value)==="Success"?(console.log("成功创建会话ID : ",O.conversationId),CIB.manager.conversation.updateId(O.conversationId,C(),O.clientId,O.conversationSignature)):(await yp(300),R+=1,console.log(`开始第 ${R} 次重试创建会话ID`),at.set(dv,"",-1),x(R))},b=()=>{var P,N,F,q,Q,ae,me,ve,we;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(re=>re!==location.hostname));const R=document.querySelector("cib-serp");R==null||R.setAttribute("alignment","center");const O=(P=R==null?void 0:R.shadowRoot)==null?void 0:P.querySelector("cib-conversation"),I=(N=O==null?void 0:O.shadowRoot)==null?void 0:N.querySelector("cib-welcome-container");(q=(F=I==null?void 0:I.shadowRoot)==null?void 0:F.querySelector(".learn-tog-item"))==null||q.remove(),(ae=(Q=R==null?void 0:R.shadowRoot)==null?void 0:Q.querySelector("cib-serp-feedback"))==null||ae.remove(),ki()&&((ve=(me=I==null?void 0:I.shadowRoot)==null?void 0:me.querySelector(".container-item"))==null||ve.remove(),CIB.vm.actionBar.input.placeholder='有问题尽管问我...("/" 触发提示词)');const w=document.createElement("style");w.innerText=Yp,(we=O.shadowRoot)==null||we.append(w)},S=()=>{var I,w;const R=(w=(I=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:I.shadowRoot)==null?void 0:w.querySelector("#cib-action-bar-main"),O=R.handleInputTextKey;R.handleInputTextKey=function(P){if(!(P.key==="Enter"&&o.value))return O.apply(this,[P])},CIB.vm.actionBar.input.addEventListener("compositionstart",_),CIB.vm.actionBar.input.addEventListener("compositionend",m),CIB.vm.actionBar.input.addEventListener("change",g),CIB.vm.actionBar.input.addEventListener("input",g),CIB.vm.actionBar.input.addEventListener("keydown",A),CIB.vm.actionBar.input.addEventListener("focus",M),CIB.vm.actionBar.input.addEventListener("blur",$)},_=R=>{c.value=!0},m=R=>{c.value=!1,g(R)},g=R=>{var O;c.value||(R instanceof InputEvent||R instanceof CompositionEvent)&&R.target instanceof HTMLTextAreaElement&&((O=R.target.value)!=null&&O.startsWith("/")?(o.value=!0,i.value=R.target.value.slice(1),a.value=0):(i.value="",o.value=!1))},M=R=>{},$=R=>{setTimeout(()=>{o.value=!1},200)},A=R=>{switch(R.key){case"ArrowUp":a.value>0&&(a.value--,s.value&&s.value.scrollToIndex(a.value));break;case"ArrowDown":a.value{R&&(i.value="",CIB.vm.actionBar.inputText=R.prompt,o.value=!1)},B=()=>{f.value=!0,setTimeout(()=>{var R;if(f.value===!0){f.value=!1;const O=((R=s.value)==null?void 0:R.getOffset())||0;a.value=Math.round(O/uv)}},100)};return(R,O)=>(he(),Le(Ne,null,[G(iv,{"is-show":t.value},null,8,["is-show"]),$e("main",null,[H(o)?(he(),Le("div",{key:0,class:Kr(["box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[34px] z-999",{"md:px-[170px]":h.value,"xl:px-[220px]":h.value}])},[av,H(l).length>0?(he(),Ee(H(zi),{key:0,ref_key:"scrollbarRef",ref:s,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":H(d),"data-component":Jp,keeps:10,onScroll:B},null,8,["data-sources"])):(he(),Ee(H(Qr),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂未设置提示词数据"},{extra:Z(()=>[G(H(ge),{secondary:"",type:"info",onClick:O[0]||(O[0]=I=>n.value=!0)},{default:Z(()=>[pe("去提示词库添加")]),_:1})]),_:1}))],2)):Yt("",!0)])],64))}}),hv=K({__name:"index",setup(e){return(t,r)=>(he(),Le("main",null,[G(Ip),G(Xp),G(cv)]))}});export{hv as default}; diff --git a/web/assets/index-6982f66e.js b/web/assets/index-f360c8c0.js similarity index 81% rename from web/assets/index-6982f66e.js rename to web/assets/index-f360c8c0.js index 411f548454..27b48f4c38 100644 --- a/web/assets/index-6982f66e.js +++ b/web/assets/index-f360c8c0.js @@ -1,34 +1,34 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Hi(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Re={},Rn=[],ct=()=>{},xf=()=>!1,Cf=/^on[^a-z]/,xo=e=>Cf.test(e),Fi=e=>e.startsWith("onUpdate:"),ke=Object.assign,Li=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wf=Object.prototype.hasOwnProperty,ve=(e,t)=>wf.call(e,t),le=Array.isArray,Tn=e=>Co(e)==="[object Map]",za=e=>Co(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",ji=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Ia=e=>_e(e)&&ue(e.then)&&ue(e.catch),Aa=Object.prototype.toString,Co=e=>Aa.call(e),Sf=e=>Co(e).slice(8,-1),ka=e=>Co(e)==="[object Object]",Di=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=Hi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_f=/-(\w)/g,In=wo(e=>e.replace(_f,(t,n)=>n?n.toUpperCase():"")),Ef=/\B([A-Z])/g,Ln=wo(e=>e.replace(Ef,"-$1").toLowerCase()),Ba=wo(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=wo(e=>e?`on${Ba(e)}`:""),mr=(e,t)=>!Object.is(e,t),Wo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$f=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Rs;const si=()=>Rs||(Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ni(e){if(le(e)){const t={};for(let n=0;n{if(n){const r=n.split(Tf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Wi(e){let t="";if(Be(e))t=e;else if(le(e))for(let n=0;nBe(e)?e:e==null?"":le(e)||_e(e)&&(e.toString===Aa||!ue(e.toString))?JSON.stringify(e,Ha,2):String(e),Ha=(e,t)=>t&&t.__v_isRef?Ha(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:za(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!le(t)&&!ka(t)?String(t):t;let tt;class Fa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Da=e=>(e.w&Vt)>0,Na=e=>(e.n&Vt)>0,Mf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":le(e)?Di(n)&&l.push(s.get("length")):(l.push(s.get(fn)),Tn(e)&&l.push(s.get(ai)));break;case"delete":le(e)||(l.push(s.get(fn)),Tn(e)&&l.push(s.get(ai)));break;case"set":Tn(e)&&l.push(s.get(fn));break}if(l.length===1)l[0]&&ci(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ci(Ui(a))}}function ci(e,t){const n=le(e)?e:[...e];for(const r of n)r.computed&&Os(r);for(const r of n)r.computed||Os(r)}function Os(e,t){(e!==lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ff(e,t){var n;return(n=ao.get(e))==null?void 0:n.get(t)}const Lf=Hi("__proto__,__v_isRef,__isVue"),Ka=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ji)),jf=Vi(),Df=Vi(!1,!0),Nf=Vi(!0),zs=Wf();function Wf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let i=0,s=this.length;i{e[t]=function(...n){jn();const r=ge(this)[t].apply(this,n);return Dn(),r}}),e}function Uf(e){const t=ge(this);return et(t,"has",e),t.hasOwnProperty(e)}function Vi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?sd:Ya:t?Xa:Ga).get(r))return r;const s=le(r);if(!e){if(s&&ve(zs,o))return Reflect.get(zs,o,i);if(o==="hasOwnProperty")return Uf}const l=Reflect.get(r,o,i);return(ji(o)?Ka.has(o):Lf(o))||(e||et(r,"get",o),t)?l:Oe(l)?s&&Di(o)?l:l.value:_e(l)?e?Ot(l):Xt(l):l}}const Kf=Va(),Vf=Va(!0);function Va(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Oe(s)&&!Oe(o))return!1;if(!e&&(!co(o)&&!An(o)&&(s=ge(s),o=ge(o)),!le(n)&&Oe(s)&&!Oe(o)))return s.value=o,!0;const l=le(n)&&Di(r)?Number(r)e,So=e=>Reflect.getPrototypeOf(e);function Lr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(t!==i&&et(o,"get",t),et(o,"get",i));const{has:s}=So(o),l=r?qi:n?Yi:br;if(s.call(o,t))return l(e.get(t));if(s.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function jr(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(e!==o&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dr(e,t=!1){return e=e.__v_raw,!t&&et(ge(e),"iterate",fn),Reflect.get(e,"size",e)}function Is(e){e=ge(e);const t=ge(this);return So(t).has.call(t,e)||(t.add(e),Tt(t,"add",e,e)),this}function As(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=So(n);let i=r.call(n,e);i||(e=ge(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?mr(t,s)&&Tt(n,"set",e,t):Tt(n,"add",e,t),this}function ks(e){const t=ge(this),{has:n,get:r}=So(t);let o=n.call(t,e);o||(e=ge(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Tt(t,"delete",e,void 0),i}function Bs(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&Tt(e,"clear",void 0,void 0),n}function Nr(e,t){return function(r,o){const i=this,s=i.__v_raw,l=ge(s),a=t?qi:e?Yi:br;return!e&&et(l,"iterate",fn),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function Wr(e,t,n){return function(...r){const o=this.__v_raw,i=ge(o),s=Tn(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...r),u=n?qi:t?Yi:br;return!t&&et(i,"iterate",a?ai:fn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mt(e){return function(...t){return e==="delete"?!1:this}}function Jf(){const e={get(i){return Lr(this,i)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!1)},t={get(i){return Lr(this,i,!1,!0)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!0)},n={get(i){return Lr(this,i,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!1)},r={get(i){return Lr(this,i,!0,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wr(i,!1,!1),n[i]=Wr(i,!0,!1),t[i]=Wr(i,!1,!0),r[i]=Wr(i,!0,!0)}),[e,n,t,r]}const[Qf,ed,td,nd]=Jf();function Gi(e,t){const n=t?e?nd:td:e?ed:Qf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ve(n,o)&&o in r?n:r,o,i)}const rd={get:Gi(!1,!1)},od={get:Gi(!1,!0)},id={get:Gi(!0,!1)},Ga=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,sd=new WeakMap;function ld(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ad(e){return e.__v_skip||!Object.isExtensible(e)?0:ld(Sf(e))}function Xt(e){return An(e)?e:Xi(e,!1,qa,rd,Ga)}function cd(e){return Xi(e,!1,Zf,od,Xa)}function Ot(e){return Xi(e,!0,Yf,id,Ya)}function Xi(e,t,n,r,o){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=ad(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Rt(e){return An(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Za(e){return Rt(e)||An(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function qt(e){return lo(e,"__v_skip",!0),e}const br=e=>_e(e)?Xt(e):e,Yi=e=>_e(e)?Ot(e):e;function Ja(e){Ut&<&&(e=ge(e),Ua(e.dep||(e.dep=Ui())))}function Qa(e,t){e=ge(e);const n=e.dep;n&&ci(n)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function se(e){return ec(e,!1)}function ud(e){return ec(e,!0)}function ec(e,t){return Oe(e)?e:new fd(e,t)}class fd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:br(t)}get value(){return Ja(this),this._value}set value(t){const n=this.__v_isShallow||co(t)||An(t);t=n?t:ge(t),mr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:br(t),Qa(this))}}function Ct(e){return Oe(e)?e.value:e}const dd={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Oe(o)&&!Oe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function tc(e){return Rt(e)?e:new Proxy(e,dd)}function hd(e){const t=le(e)?new Array(e.length):{};for(const n in e)t[n]=nc(e,n);return t}class pd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ff(ge(this._object),this._key)}}class gd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function zt(e,t,n){return Oe(e)?e:ue(e)?new gd(e):_e(e)&&arguments.length>1?nc(e,t,n):se(e)}function nc(e,t,n){const r=e[t];return Oe(r)?r:new pd(e,t,n)}class vd{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ki(t,()=>{this._dirty||(this._dirty=!0,Qa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return Ja(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function md(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ct):(r=e.get,o=e.set),new vd(r,o,i||!o,n)}function Kt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){_o(i,t,n)}return o}function st(e,t,n,r){if(ue(e)){const i=Kt(e,t,n,r);return i&&Ia(i)&&i.catch(s=>{_o(s,t,n)}),i}const o=[];for(let i=0;i>>1;xr(Ne[r])xt&&Ne.splice(t,1)}function Cd(e){le(e)?On.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?nn+1:nn))&&On.push(e),oc()}function Ms(e,t=yr?xt+1:0){for(;txr(n)-xr(r)),nn=0;nne.id==null?1/0:e.id,wd=(e,t)=>{const n=xr(e)-xr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sc(e){ui=!1,yr=!0,Ne.sort(wd);const t=ct;try{for(xt=0;xtBe(v)?v.trim():v)),f&&(o=n.map($f))}let l,a=r[l=No(t)]||r[l=No(In(t))];!a&&i&&(a=r[l=No(Ln(t))]),a&&st(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(c,e,6,o)}}function lc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},l=!1;if(!ue(e)){const a=c=>{const u=lc(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&r.set(e,null),null):(le(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&r.set(e,s),s)}function Eo(e,t){return!e||!xo(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Ln(t))||ve(e,t))}let We=null,$o=null;function uo(e){const t=We;return We=e,$o=e&&e.type.__scopeId||null,t}function Dx(e){$o=e}function Nx(){$o=null}function ro(e,t=We,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Gs(-1);const i=uo(t);let s;try{s=e(...o)}finally{uo(i),r._d&&Gs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Uo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:v,ctx:p,inheritAttrs:w}=e;let y,b;const S=uo(e);try{if(n.shapeFlag&4){const _=o||r;y=bt(u.call(_,_,f,i,v,d,p)),b=a}else{const _=t;y=bt(_.length>1?_(i,{attrs:a,slots:l,emit:c}):_(i,null)),b=t.props?a:_d(a)}}catch(_){ur.length=0,_o(_,e,1),y=Fe(Ge)}let F=y;if(b&&w!==!1){const _=Object.keys(b),{shapeFlag:P}=F;_.length&&P&7&&(s&&_.some(Fi)&&(b=Ed(b,s)),F=It(F,b))}return n.dirs&&(F=It(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),y=F,uo(S),y}const _d=e=>{let t;for(const n in e)(n==="class"||n==="style"||xo(n))&&((t||(t={}))[n]=e[n]);return t},Ed=(e,t)=>{const n={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $d(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Hs(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Td(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function Qi(e,t){return es(e,null,t)}const Ur={};function ut(e,t,n){return es(e,t,n)}function es(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=Re){var l;const a=ja()===((l=Le)==null?void 0:l.scope)?Le:null;let c,u=!1,f=!1;if(Oe(e)?(c=()=>e.value,u=co(e)):Rt(e)?(c=()=>e,r=!0):le(e)?(f=!0,u=e.some(_=>Rt(_)||co(_)),c=()=>e.map(_=>{if(Oe(_))return _.value;if(Rt(_))return sn(_);if(ue(_))return Kt(_,a,2)})):ue(e)?t?c=()=>Kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),st(e,a,3,[v])}:c=ct,t&&r){const _=c;c=()=>sn(_())}let d,v=_=>{d=S.onStop=()=>{Kt(_,a,4)}},p;if($r)if(v=ct,t?n&&st(t,a,3,[c(),f?[]:void 0,v]):c(),o==="sync"){const _=bh();p=_.__watcherHandles||(_.__watcherHandles=[])}else return ct;let w=f?new Array(e.length).fill(Ur):Ur;const y=()=>{if(S.active)if(t){const _=S.run();(r||u||(f?_.some((P,z)=>mr(P,w[z])):mr(_,w)))&&(d&&d(),st(t,a,3,[_,w===Ur?void 0:f&&w[0]===Ur?[]:w,v]),w=_)}else S.run()};y.allowRecurse=!!t;let b;o==="sync"?b=y:o==="post"?b=()=>Qe(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>Ji(y));const S=new Ki(c,b);t?n?y():w=S.run():o==="post"?Qe(S.run.bind(S),a&&a.suspense):S.run();const F=()=>{S.stop(),a&&a.scope&&Li(a.scope.effects,S)};return p&&p.push(F),F}function Od(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?ac(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const s=Le;Bn(this);const l=es(o,i.bind(r),n);return s?Bn(s):dn(),l}function ac(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sn(n,t)});else if(ka(e))for(const n in e)sn(e[n],t);return e}function fi(e,t){const n=We;if(n===null)return e;const r=zo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),dt(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],uc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},zd={name:"BaseTransition",props:uc,setup(e,{slots:t}){const n=Ar(),r=cc();let o;return()=>{const i=t.default&&ts(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Ge){s=w;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ko(s);const c=Fs(s);if(!c)return Ko(s);const u=Cr(c,l,r,n);wr(c,u);const f=n.subTree,d=f&&Fs(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const w=p();o===void 0?o=w:w!==o&&(o=w,v=!0)}if(d&&d.type!==Ge&&(!rn(c,d)||v)){const w=Cr(d,l,r,n);if(wr(d,w),a==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ko(s);a==="in-out"&&c.type!==Ge&&(w.delayLeave=(y,b,S)=>{const F=fc(r,d);F[String(d.key)]=d,y._leaveCb=()=>{b(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},Id=zd;function fc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:w,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,F=String(e.key),_=fc(n,e),P=(C,A)=>{C&&st(C,r,9,A)},z=(C,A)=>{const j=A[1];P(C,A),le(C)?C.every(W=>W.length<=1)&&j():C.length<=1&&j()},m={mode:i,persisted:s,beforeEnter(C){let A=l;if(!n.isMounted)if(o)A=w||l;else return;C._leaveCb&&C._leaveCb(!0);const j=_[F];j&&rn(e,j)&&j.el._leaveCb&&j.el._leaveCb(),P(A,[C])},enter(C){let A=a,j=c,W=u;if(!n.isMounted)if(o)A=y||a,j=b||c,W=S||u;else return;let k=!1;const Q=C._enterCb=te=>{k||(k=!0,te?P(W,[C]):P(j,[C]),m.delayedLeave&&m.delayedLeave(),C._enterCb=void 0)};A?z(A,[C,Q]):Q()},leave(C,A){const j=String(e.key);if(C._enterCb&&C._enterCb(!0),n.isUnmounting)return A();P(f,[C]);let W=!1;const k=C._leaveCb=Q=>{W||(W=!0,A(),Q?P(p,[C]):P(v,[C]),C._leaveCb=void 0,_[j]===e&&delete _[j])};_[j]=e,d?z(d,[C,k]):k()},clone(C){return Cr(C,t,n,r)}};return m}function Ko(e){if(Po(e))return e=It(e),e.children=null,e}function Fs(e){return Po(e)?e.children?e.children[0]:void 0:e}function wr(e,t){e.shapeFlag&6&&e.component?wr(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 ts(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ike({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,Po=e=>e.type.__isKeepAlive;function dc(e,t){pc(e,"a",t)}function hc(e,t){pc(e,"da",t)}function pc(e,t,n=Le){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ro(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Po(o.parent.vnode)&&Ad(r,t,n,o),o=o.parent}}function Ad(e,t,n,r){const o=Ro(t,e,r,!0);vc(()=>{Li(r[t],o)},n)}function Ro(e,t,n=Le,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;jn(),Bn(n);const l=st(t,n,e,s);return dn(),Dn(),l});return r?o.unshift(i):o.push(i),i}}const At=e=>(t,n=Le)=>(!$r||e==="sp")&&Ro(e,(...r)=>t(...r),n),bn=At("bm"),Yt=At("m"),kd=At("bu"),gc=At("u"),dt=At("bum"),vc=At("um"),Bd=At("sp"),Md=At("rtg"),Hd=At("rtc");function Fd(e,t=Le){Ro("ec",e,t)}const Ld=Symbol.for("v-ndc");function Wx(e,t,n,r){let o;const i=n&&n[r];if(le(e)||Be(e)){o=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;l_r(t)?!(t.type===Ge||t.type===Me&&!mc(t.children)):!0)?e:null}const di=e=>e?Oc(e)?zo(e)||e.proxy:di(e.parent):null,ar=ke(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=>di(e.parent),$root:e=>di(e.root),$emit:e=>e.emit,$options:e=>ns(e),$forceUpdate:e=>e.f||(e.f=()=>Ji(e.update)),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>Od.bind(e)}),Vo=(e,t)=>e!==Re&&!e.__isScriptSetup&&ve(e,t),Dd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Vo(r,t))return s[t]=1,r[t];if(o!==Re&&ve(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==Re&&ve(n,t))return s[t]=4,n[t];hi&&(s[t]=0)}}const u=ar[t];let f,d;if(u)return t==="$attrs"&&et(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ve(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,ve(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Vo(o,t)?(o[t]=n,!0):r!==Re&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||e!==Re&&ve(e,s)||Vo(t,s)||(l=i[0])&&ve(l,s)||ve(r,s)||ve(ar,s)||ve(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return le(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hi=!0;function Nd(e){const t=ns(e),n=e.proxy,r=e.ctx;hi=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:v,updated:p,activated:w,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:F,unmounted:_,render:P,renderTracked:z,renderTriggered:m,errorCaptured:C,serverPrefetch:A,expose:j,inheritAttrs:W,components:k,directives:Q,filters:te}=t;if(c&&Wd(c,r,null),s)for(const K in s){const re=s[K];ue(re)&&(r[K]=re.bind(n))}if(o){const K=o.call(n,n);_e(K)&&(e.data=Xt(K))}if(hi=!0,i)for(const K in i){const re=i[K],Ce=ue(re)?re.bind(n,n):ue(re.get)?re.get.bind(n,n):ct,we=!ue(re)&&ue(re.set)?re.set.bind(n):ct,Se=V({get:Ce,set:we});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Te=>Se.value=Te})}if(l)for(const K in l)bc(l[K],r,n,K);if(a){const K=ue(a)?a.call(n):a;Reflect.ownKeys(K).forEach(re=>{qe(re,K[re])})}u&&js(u,e,"c");function oe(K,re){le(re)?re.forEach(Ce=>K(Ce.bind(n))):re&&K(re.bind(n))}if(oe(bn,f),oe(Yt,d),oe(kd,v),oe(gc,p),oe(dc,w),oe(hc,y),oe(Fd,C),oe(Hd,z),oe(Md,m),oe(dt,S),oe(vc,_),oe(Bd,A),le(j))if(j.length){const K=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(K,re,{get:()=>n[re],set:Ce=>n[re]=Ce})})}else e.exposed||(e.exposed={});P&&e.render===ct&&(e.render=P),W!=null&&(e.inheritAttrs=W),k&&(e.components=k),Q&&(e.directives=Q)}function Wd(e,t,n=ct){le(e)&&(e=pi(e));for(const r in e){const o=e[r];let i;_e(o)?"default"in o?i=ze(o.from||r,o.default,!0):i=ze(o.from||r):i=ze(o),Oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function js(e,t,n){st(le(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bc(e,t,n,r){const o=r.includes(".")?ac(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&ut(o,i)}else if(ue(e))ut(o,e.bind(n));else if(_e(e))if(le(e))e.forEach(i=>bc(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&ut(o,i,e)}}function ns(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>fo(a,c,s,!0)),fo(a,t,s)),_e(t)&&i.set(t,a),a}function fo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&fo(e,i,n,!0),o&&o.forEach(s=>fo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Ud[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ud={data:Ds,props:Ns,emits:Ns,methods:or,computed:or,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:or,directives:or,watch:Vd,provide:Ds,inject:Kd};function Ds(e,t){return t?e?function(){return ke(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Kd(e,t){return or(pi(e),pi(t))}function pi(e){if(le(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function Xd(e,t,n,r=!1){const o={},i={};lo(i,Oo,1),e.propsDefaults=Object.create(null),xc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:cd(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Yd(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,l=ge(o),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,v]=Cc(f,t,!0);ke(s,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&r.set(e,Rn),Rn;if(le(i))for(let u=0;u-1,v[1]=w<0||p-1||ve(v,"default"))&&l.push(f)}}}const c=[s,l];return _e(e)&&r.set(e,c),c}function Ws(e){return e[0]!=="$"}function Us(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ks(e,t){return Us(e)===Us(t)}function Vs(e,t){return le(t)?t.findIndex(n=>Ks(n,e)):ue(t)&&Ks(t,e)?0:-1}const wc=e=>e[0]==="_"||e==="$stable",rs=e=>le(e)?e.map(bt):[bt(e)],Zd=(e,t,n)=>{if(t._n)return t;const r=ro((...o)=>rs(t(...o)),n);return r._c=!1,r},Sc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(wc(o))continue;const i=e[o];if(ue(i))t[o]=Zd(o,i,r);else if(i!=null){const s=rs(i);t[o]=()=>s}}},_c=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Jd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),lo(t,"_",n)):Sc(t,e.slots={})}else e.slots={},t&&_c(e,t);lo(e.slots,Oo,1)},Qd=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Sc(t,o)),s=t}else t&&(_c(e,t),s={default:1});if(i)for(const l in o)!wc(l)&&!(l in s)&&delete o[l]};function vi(e,t,n,r,o=!1){if(le(e)){e.forEach((d,v)=>vi(d,t&&(le(t)?t[v]:t),n,r,o));return}if(lr(r)&&!o)return;const i=r.shapeFlag&4?zo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Re?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,ve(f,c)&&(f[c]=null)):Oe(c)&&(c.value=null)),ue(a))Kt(a,l,12,[s,u]);else{const d=Be(a),v=Oe(a);if(d||v){const p=()=>{if(e.f){const w=d?ve(f,a)?f[a]:u[a]:a.value;o?le(w)&&Li(w,i):le(w)?w.includes(i)||w.push(i):d?(u[a]=[i],ve(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,ve(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,Qe(p,n)):p()}}}const Qe=Td;function eh(e){return th(e)}function th(e,t){const n=si();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:v=ct,insertStaticContent:p}=e,w=(h,g,x,$=null,O=null,B=null,N=!1,L=null,M=!!g.dynamicChildren)=>{if(h===g)return;h&&!rn(h,g)&&($=R(h),Te(h,O,B,!0),h=null),g.patchFlag===-2&&(M=!1,g.dynamicChildren=null);const{type:T,ref:Z,shapeFlag:q}=g;switch(T){case To:y(h,g,x,$);break;case Ge:b(h,g,x,$);break;case qo:h==null&&S(g,x,$,N);break;case Me:k(h,g,x,$,O,B,N,L,M);break;default:q&1?P(h,g,x,$,O,B,N,L,M):q&6?Q(h,g,x,$,O,B,N,L,M):(q&64||q&128)&&T.process(h,g,x,$,O,B,N,L,M,I)}Z!=null&&O&&vi(Z,h&&h.ref,B,g||h,!g)},y=(h,g,x,$)=>{if(h==null)r(g.el=l(g.children),x,$);else{const O=g.el=h.el;g.children!==h.children&&c(O,g.children)}},b=(h,g,x,$)=>{h==null?r(g.el=a(g.children||""),x,$):g.el=h.el},S=(h,g,x,$)=>{[h.el,h.anchor]=p(h.children,g,x,$,h.el,h.anchor)},F=({el:h,anchor:g},x,$)=>{let O;for(;h&&h!==g;)O=d(h),r(h,x,$),h=O;r(g,x,$)},_=({el:h,anchor:g})=>{let x;for(;h&&h!==g;)x=d(h),o(h),h=x;o(g)},P=(h,g,x,$,O,B,N,L,M)=>{N=N||g.type==="svg",h==null?z(g,x,$,O,B,N,L,M):A(h,g,O,B,N,L,M)},z=(h,g,x,$,O,B,N,L)=>{let M,T;const{type:Z,props:q,shapeFlag:Y,transition:ae,dirs:he}=h;if(M=h.el=s(h.type,B,q&&q.is,q),Y&8?u(M,h.children):Y&16&&C(h.children,M,null,$,O,B&&Z!=="foreignObject",N,L),he&&Zt(h,null,$,"created"),m(M,h,h.scopeId,N,$),q){for(const me in q)me!=="value"&&!no(me)&&i(M,me,null,q[me],B,h.children,$,O,fe);"value"in q&&i(M,"value",null,q.value),(T=q.onVnodeBeforeMount)&>(T,$,h)}he&&Zt(h,null,$,"beforeMount");const be=(!O||O&&!O.pendingBranch)&&ae&&!ae.persisted;be&&ae.beforeEnter(M),r(M,g,x),((T=q&&q.onVnodeMounted)||be||he)&&Qe(()=>{T&>(T,$,h),be&&ae.enter(M),he&&Zt(h,null,$,"mounted")},O)},m=(h,g,x,$,O)=>{if(x&&v(h,x),$)for(let B=0;B<$.length;B++)v(h,$[B]);if(O){let B=O.subTree;if(g===B){const N=O.vnode;m(h,N,N.scopeId,N.slotScopeIds,O.parent)}}},C=(h,g,x,$,O,B,N,L,M=0)=>{for(let T=M;T{const L=g.el=h.el;let{patchFlag:M,dynamicChildren:T,dirs:Z}=g;M|=h.patchFlag&16;const q=h.props||Re,Y=g.props||Re;let ae;x&&Jt(x,!1),(ae=Y.onVnodeBeforeUpdate)&>(ae,x,g,h),Z&&Zt(g,h,x,"beforeUpdate"),x&&Jt(x,!0);const he=O&&g.type!=="foreignObject";if(T?j(h.dynamicChildren,T,L,x,$,he,B):N||re(h,g,L,null,x,$,he,B,!1),M>0){if(M&16)W(L,g,q,Y,x,$,O);else if(M&2&&q.class!==Y.class&&i(L,"class",null,Y.class,O),M&4&&i(L,"style",q.style,Y.style,O),M&8){const be=g.dynamicProps;for(let me=0;me{ae&>(ae,x,g,h),Z&&Zt(g,h,x,"updated")},$)},j=(h,g,x,$,O,B,N)=>{for(let L=0;L{if(x!==$){if(x!==Re)for(const L in x)!no(L)&&!(L in $)&&i(h,L,x[L],null,N,g.children,O,B,fe);for(const L in $){if(no(L))continue;const M=$[L],T=x[L];M!==T&&L!=="value"&&i(h,L,T,M,N,g.children,O,B,fe)}"value"in $&&i(h,"value",x.value,$.value)}},k=(h,g,x,$,O,B,N,L,M)=>{const T=g.el=h?h.el:l(""),Z=g.anchor=h?h.anchor:l("");let{patchFlag:q,dynamicChildren:Y,slotScopeIds:ae}=g;ae&&(L=L?L.concat(ae):ae),h==null?(r(T,x,$),r(Z,x,$),C(g.children,x,Z,O,B,N,L,M)):q>0&&q&64&&Y&&h.dynamicChildren?(j(h.dynamicChildren,Y,x,O,B,N,L),(g.key!=null||O&&g===O.subTree)&&os(h,g,!0)):re(h,g,x,Z,O,B,N,L,M)},Q=(h,g,x,$,O,B,N,L,M)=>{g.slotScopeIds=L,h==null?g.shapeFlag&512?O.ctx.activate(g,x,$,N,M):te(g,x,$,O,B,N,M):ne(h,g,M)},te=(h,g,x,$,O,B,N)=>{const L=h.component=fh(h,$,O);if(Po(h)&&(L.ctx.renderer=I),dh(L),L.asyncDep){if(O&&O.registerDep(L,oe),!h.el){const M=L.subTree=Fe(Ge);b(null,M,g,x)}return}oe(L,h,g,x,O,B,N)},ne=(h,g,x)=>{const $=g.component=h.component;if($d(h,g,x))if($.asyncDep&&!$.asyncResolved){K($,g,x);return}else $.next=g,xd($.update),$.update();else g.el=h.el,$.vnode=g},oe=(h,g,x,$,O,B,N)=>{const L=()=>{if(h.isMounted){let{next:Z,bu:q,u:Y,parent:ae,vnode:he}=h,be=Z,me;Jt(h,!1),Z?(Z.el=he.el,K(h,Z,N)):Z=he,q&&Wo(q),(me=Z.props&&Z.props.onVnodeBeforeUpdate)&>(me,ae,Z,he),Jt(h,!0);const Ie=Uo(h),Ue=h.subTree;h.subTree=Ie,w(Ue,Ie,f(Ue.el),R(Ue),h,O,B),Z.el=Ie.el,be===null&&Pd(h,Ie.el),Y&&Qe(Y,O),(me=Z.props&&Z.props.onVnodeUpdated)&&Qe(()=>gt(me,ae,Z,he),O)}else{let Z;const{el:q,props:Y}=g,{bm:ae,m:he,parent:be}=h,me=lr(g);if(Jt(h,!1),ae&&Wo(ae),!me&&(Z=Y&&Y.onVnodeBeforeMount)&>(Z,be,g),Jt(h,!0),q&&pe){const Ie=()=>{h.subTree=Uo(h),pe(q,h.subTree,h,O,null)};me?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Uo(h);w(null,Ie,x,$,h,O,B),g.el=Ie.el}if(he&&Qe(he,O),!me&&(Z=Y&&Y.onVnodeMounted)){const Ie=g;Qe(()=>gt(Z,be,Ie),O)}(g.shapeFlag&256||be&&lr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&Qe(h.a,O),h.isMounted=!0,g=x=$=null}},M=h.effect=new Ki(L,()=>Ji(T),h.scope),T=h.update=()=>M.run();T.id=h.uid,Jt(h,!0),T()},K=(h,g,x)=>{g.component=h;const $=h.vnode.props;h.vnode=g,h.next=null,Yd(h,g.props,$,x),Qd(h,g.children,x),jn(),Ms(),Dn()},re=(h,g,x,$,O,B,N,L,M=!1)=>{const T=h&&h.children,Z=h?h.shapeFlag:0,q=g.children,{patchFlag:Y,shapeFlag:ae}=g;if(Y>0){if(Y&128){we(T,q,x,$,O,B,N,L,M);return}else if(Y&256){Ce(T,q,x,$,O,B,N,L,M);return}}ae&8?(Z&16&&fe(T,O,B),q!==T&&u(x,q)):Z&16?ae&16?we(T,q,x,$,O,B,N,L,M):fe(T,O,B,!0):(Z&8&&u(x,""),ae&16&&C(q,x,$,O,B,N,L,M))},Ce=(h,g,x,$,O,B,N,L,M)=>{h=h||Rn,g=g||Rn;const T=h.length,Z=g.length,q=Math.min(T,Z);let Y;for(Y=0;YZ?fe(h,O,B,!0,!1,q):C(g,x,$,O,B,N,L,M,q)},we=(h,g,x,$,O,B,N,L,M)=>{let T=0;const Z=g.length;let q=h.length-1,Y=Z-1;for(;T<=q&&T<=Y;){const ae=h[T],he=g[T]=M?Nt(g[T]):bt(g[T]);if(rn(ae,he))w(ae,he,x,null,O,B,N,L,M);else break;T++}for(;T<=q&&T<=Y;){const ae=h[q],he=g[Y]=M?Nt(g[Y]):bt(g[Y]);if(rn(ae,he))w(ae,he,x,null,O,B,N,L,M);else break;q--,Y--}if(T>q){if(T<=Y){const ae=Y+1,he=aeY)for(;T<=q;)Te(h[T],O,B,!0),T++;else{const ae=T,he=T,be=new Map;for(T=he;T<=Y;T++){const Ye=g[T]=M?Nt(g[T]):bt(g[T]);Ye.key!=null&&be.set(Ye.key,T)}let me,Ie=0;const Ue=Y-he+1;let pt=!1,Fr=0;const Bt=new Array(Ue);for(T=0;T=Ue){Te(Ye,O,B,!0);continue}let H;if(Ye.key!=null)H=be.get(Ye.key);else for(me=he;me<=Y;me++)if(Bt[me-he]===0&&rn(Ye,g[me])){H=me;break}H===void 0?Te(Ye,O,B,!0):(Bt[H-he]=T+1,H>=Fr?Fr=H:pt=!0,w(Ye,g[H],x,null,O,B,N,L,M),Ie++)}const wt=pt?nh(Bt):Rn;for(me=wt.length-1,T=Ue-1;T>=0;T--){const Ye=he+T,H=g[Ye],J=Ye+1{const{el:B,type:N,transition:L,children:M,shapeFlag:T}=h;if(T&6){Se(h.component.subTree,g,x,$);return}if(T&128){h.suspense.move(g,x,$);return}if(T&64){N.move(h,g,x,I);return}if(N===Me){r(B,g,x);for(let q=0;qL.enter(B),O);else{const{leave:q,delayLeave:Y,afterLeave:ae}=L,he=()=>r(B,g,x),be=()=>{q(B,()=>{he(),ae&&ae()})};Y?Y(B,he,be):be()}else r(B,g,x)},Te=(h,g,x,$=!1,O=!1)=>{const{type:B,props:N,ref:L,children:M,dynamicChildren:T,shapeFlag:Z,patchFlag:q,dirs:Y}=h;if(L!=null&&vi(L,null,x,h,!0),Z&256){g.ctx.deactivate(h);return}const ae=Z&1&&Y,he=!lr(h);let be;if(he&&(be=N&&N.onVnodeBeforeUnmount)&>(be,g,h),Z&6)Xe(h.component,x,$);else{if(Z&128){h.suspense.unmount(x,$);return}ae&&Zt(h,null,g,"beforeUnmount"),Z&64?h.type.remove(h,g,x,O,I,$):T&&(B!==Me||q>0&&q&64)?fe(T,g,x,!1,!0):(B===Me&&q&384||!O&&Z&16)&&fe(M,g,x),$&&rt(h)}(he&&(be=N&&N.onVnodeUnmounted)||ae)&&Qe(()=>{be&>(be,g,h),ae&&Zt(h,null,g,"unmounted")},x)},rt=h=>{const{type:g,el:x,anchor:$,transition:O}=h;if(g===Me){ht(x,$);return}if(g===qo){_(h);return}const B=()=>{o(x),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(h.shapeFlag&1&&O&&!O.persisted){const{leave:N,delayLeave:L}=O,M=()=>N(x,B);L?L(h.el,B,M):M()}else B()},ht=(h,g)=>{let x;for(;h!==g;)x=d(h),o(h),h=x;o(g)},Xe=(h,g,x)=>{const{bum:$,scope:O,update:B,subTree:N,um:L}=h;$&&Wo($),O.stop(),B&&(B.active=!1,Te(N,h,g,x)),L&&Qe(L,g),Qe(()=>{h.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},fe=(h,g,x,$=!1,O=!1,B=0)=>{for(let N=B;Nh.shapeFlag&6?R(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),U=(h,g,x)=>{h==null?g._vnode&&Te(g._vnode,null,null,!0):w(g._vnode||null,h,g,null,null,null,x),Ms(),ic(),g._vnode=h},I={p:w,um:Te,m:Se,r:rt,mt:te,mc:C,pc:re,pbc:j,n:R,o:e};let X,pe;return t&&([X,pe]=t(I)),{render:U,hydrate:X,createApp:Gd(U,X)}}function Jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function os(e,t,n=!1){const r=e.children,o=t.children;if(le(r)&&le(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const rh=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),qs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mi=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},oh={__isTeleport:!0,process(e,t,n,r,o,i,s,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:v,querySelector:p,createText:w,createComment:y}}=c,b=cr(t.props);let{shapeFlag:S,children:F,dynamicChildren:_}=t;if(e==null){const P=t.el=w(""),z=t.anchor=w("");v(P,n,r),v(z,n,r);const m=t.target=mi(t.props,p),C=t.targetAnchor=w("");m&&(v(C,m),s=s||qs(m));const A=(j,W)=>{S&16&&u(F,j,W,o,i,s,l,a)};b?A(n,z):m&&A(m,C)}else{t.el=e.el;const P=t.anchor=e.anchor,z=t.target=e.target,m=t.targetAnchor=e.targetAnchor,C=cr(e.props),A=C?n:z,j=C?P:m;if(s=s||qs(z),_?(d(e.dynamicChildren,_,A,o,i,s,l),os(e,t,!0)):a||f(e,t,A,j,o,i,s,l,!1),b)C||Kr(t,n,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=mi(t.props,p);W&&Kr(t,W,null,c,0)}else C&&Kr(t,z,m,c,1)}$c(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(s||!cr(d))&&(i(c),l&16))for(let v=0;v0?at||Rn:null,sh(),Sr>0&&at&&at.push(e),e}function Ux(e,t,n,r,o,i){return Pc(Tc(e,t,n,r,o,i,!0))}function ss(e,t,n,r,o){return Pc(Fe(e,t,n,r,o,!0))}function _r(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const Oo="__vInternal",Rc=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Oe(e)||ue(e)?{i:We,r:e,k:t,f:!!n}:e:null);function Tc(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rc(t),ref:t&&oo(t),scopeId:$o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:We};return l?(ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),Sr>0&&!s&&at&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&at.push(a),a}const Fe=lh;function lh(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=Ge),_r(e)){const l=It(e,t,!0);return n&&ls(l,n),Sr>0&&!i&&at&&(l.shapeFlag&6?at[at.indexOf(e)]=l:at.push(l)),l.patchFlag|=-2,l}if(vh(e)&&(e=e.__vccOpts),t){t=ah(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Wi(l)),_e(a)&&(Za(a)&&!le(a)&&(a=ke({},a)),t.style=Ni(a))}const s=Be(e)?1:Rd(e)?128:rh(e)?64:_e(e)?4:ue(e)?2:0;return Tc(e,t,n,r,o,s,i,!0)}function ah(e){return e?Za(e)||Oo in e?ke({},e):e:null}function It(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?as(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rc(l),ref:t&&t.ref?n&&o?le(o)?o.concat(oo(t)):[o,oo(t)]:oo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Er(e=" ",t=0){return Fe(To,null,e,t)}function Kx(e="",t=!1){return t?(is(),ss(Ge,null,e)):Fe(Ge,null,e)}function bt(e){return e==null||typeof e=="boolean"?Fe(Ge):le(e)?Fe(Me,null,e.slice()):typeof e=="object"?Nt(e):Fe(To,null,String(e))}function Nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function ls(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ls(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Oo in t)?t._ctx=We:o===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function as(...e){const t={};for(let n=0;nLe||We;let cs,wn,Xs="__VUE_INSTANCE_SETTERS__";(wn=si()[Xs])||(wn=si()[Xs]=[]),wn.push(e=>Le=e),cs=e=>{wn.length>1?wn.forEach(t=>t(e)):wn[0](e)};const Bn=e=>{cs(e),e.scope.on()},dn=()=>{Le&&Le.scope.off(),cs(null)};function Oc(e){return e.vnode.shapeFlag&4}let $r=!1;function dh(e,t=!1){$r=t;const{props:n,children:r}=e.vnode,o=Oc(e);Xd(e,n,o,t),Jd(e,r);const i=o?hh(e,t):void 0;return $r=!1,i}function hh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qt(new Proxy(e.ctx,Dd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?gh(e):null;Bn(e),jn();const i=Kt(r,e,0,[e.props,o]);if(Dn(),dn(),Ia(i)){if(i.then(dn,dn),t)return i.then(s=>{Ys(e,s,t)}).catch(s=>{_o(s,e,0)});e.asyncDep=i}else Ys(e,i,t)}else zc(e,t)}function Ys(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=tc(t)),zc(e,n)}let Zs;function zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Zs&&!r.render){const o=r.template||ns(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ke(ke({isCustomElement:i,delimiters:l},s),a);r.render=Zs(o,c)}}e.render=r.render||ct}Bn(e),jn(),Nd(e),Dn(),dn()}function ph(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return et(e,"get","$attrs"),t[n]}}))}function gh(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ph(e)},slots:e.slots,emit:e.emit,expose:t}}function zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tc(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}}))}function vh(e){return ue(e)&&"__vccOpts"in e}const V=(e,t)=>md(e,t,$r);function E(e,t,n){const r=arguments.length;return r===2?_e(t)&&!le(t)?_r(t)?Fe(e,null,[t]):Fe(e,t):Fe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_r(n)&&(n=[n]),Fe(e,t,n))}const mh=Symbol.for("v-scx"),bh=()=>ze(mh),yh="3.3.2",xh="http://www.w3.org/2000/svg",on=typeof document<"u"?document:null,Js=on&&on.createElement("template"),Ch={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?on.createElementNS(xh,e):on.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>on.createTextNode(e),createComment:e=>on.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>on.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Js.innerHTML=r?`${e}`:e;const l=Js.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function wh(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Sh(e,t,n){const r=e.style,o=Be(n);if(n&&!o){if(t&&!Be(t))for(const i in t)n[i]==null&&bi(r,i,"");for(const i in n)bi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Qs=/\s*!important$/;function bi(e,t,n){if(le(n))n.forEach(r=>bi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_h(e,t);Qs.test(n)?e.setProperty(Ln(r),n.replace(Qs,""),"important"):e[r]=n}}const el=["Webkit","Moz","ms"],Go={};function _h(e,t){const n=Go[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return Go[t]=r;r=Ba(r);for(let o=0;oXo||(zh.then(()=>Xo=0),Xo=Date.now());function Ah(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(kh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ih(),n}function kh(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const rl=/^on[a-z]/,Bh=(e,t,n,r,o=!1,i,s,l,a)=>{t==="class"?wh(e,r,o):t==="style"?Sh(e,n,r):xo(t)?Fi(t)||Th(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mh(e,t,r,o))?$h(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Eh(e,t,r,o))};function Mh(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&rl.test(t)&&ue(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||rl.test(t)&&Be(n)?!1:t in e}const Ht="transition",Zn="animation",Gt=(e,{slots:t})=>E(Id,Ac(e),t);Gt.displayName="Transition";const Ic={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},Hh=Gt.props=ke({},uc,Ic),Qt=(e,t=[])=>{le(e)?e.forEach(n=>n(...t)):e&&e(...t)},ol=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function Ac(e){const t={};for(const k in e)k in Ic||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=Fh(o),w=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:F,onLeave:_,onLeaveCancelled:P,onBeforeAppear:z=b,onAppear:m=S,onAppearCancelled:C=F}=t,A=(k,Q,te)=>{jt(k,Q?u:l),jt(k,Q?c:s),te&&te()},j=(k,Q)=>{k._isLeaving=!1,jt(k,f),jt(k,v),jt(k,d),Q&&Q()},W=k=>(Q,te)=>{const ne=k?m:S,oe=()=>A(Q,k,te);Qt(ne,[Q,oe]),il(()=>{jt(Q,k?a:i),$t(Q,k?u:l),ol(ne)||sl(Q,r,w,oe)})};return ke(t,{onBeforeEnter(k){Qt(b,[k]),$t(k,i),$t(k,s)},onBeforeAppear(k){Qt(z,[k]),$t(k,a),$t(k,c)},onEnter:W(!1),onAppear:W(!0),onLeave(k,Q){k._isLeaving=!0;const te=()=>j(k,Q);$t(k,f),Bc(),$t(k,d),il(()=>{k._isLeaving&&(jt(k,f),$t(k,v),ol(_)||sl(k,r,y,te))}),Qt(_,[k,te])},onEnterCancelled(k){A(k,!1),Qt(F,[k])},onAppearCancelled(k){A(k,!0),Qt(C,[k])},onLeaveCancelled(k){j(k),Qt(P,[k])}})}function Fh(e){if(e==null)return null;if(_e(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return Pf(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lh=0;function sl(e,t,n,r){const o=e._endId=++Lh,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=kc(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=v=>{v.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ht}Delay`),i=r(`${Ht}Duration`),s=ll(o,i),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),c=ll(l,a);let u=null,f=0,d=0;t===Ht?s>0&&(u=Ht,f=s,d=i.length):t===Zn?c>0&&(u=Zn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Ht:Zn:null,d=u?u===Ht?i.length:a.length:0);const v=u===Ht&&/\b(transform|all)(,|$)/.test(r(`${Ht}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function ll(e,t){for(;e.lengthal(n)+al(e[r])))}function al(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Bc(){return document.body.offsetHeight}const Mc=new WeakMap,Hc=new WeakMap,Fc={name:"TransitionGroup",props:ke({},Hh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ar(),r=cc();let o,i;return gc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Kh(o[0].el,n.vnode.el,s))return;o.forEach(Nh),o.forEach(Wh);const l=o.filter(Uh);Bc(),l.forEach(a=>{const c=a.el,u=c.style;$t(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,jt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=Ac(s);let a=s.tag||Me;o=i,i=t.default?ts(t.default()):[];for(let c=0;cdelete e.mode;Fc.props;const Dh=Fc;function Nh(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Wh(e){Hc.set(e,e.el.getBoundingClientRect())}function Uh(e){const t=Mc.get(e),n=Hc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function Kh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=kc(r);return o.removeChild(r),i}const cl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Jn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Jn(e,!0),r.enter(e)):r.leave(e,()=>{Jn(e,!1)}):Jn(e,t))},beforeUnmount(e,{value:t}){Jn(e,t)}};function Jn(e,t){e.style.display=t?e._vod:"none"}const Vh=ke({patchProp:Bh},Ch);let ul;function qh(){return ul||(ul=eh(Vh))}const Gh=(...e)=>{const t=qh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Xh(r);if(!o)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Xh(e){return Be(e)?document.querySelector(e):e}var Yh=!1;/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Hi(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Re={},Tn=[],ct=()=>{},xf=()=>!1,Cf=/^on[^a-z]/,xo=e=>Cf.test(e),Fi=e=>e.startsWith("onUpdate:"),ke=Object.assign,Li=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wf=Object.prototype.hasOwnProperty,ve=(e,t)=>wf.call(e,t),le=Array.isArray,On=e=>Co(e)==="[object Map]",za=e=>Co(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",ji=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Ia=e=>_e(e)&&ue(e.then)&&ue(e.catch),Aa=Object.prototype.toString,Co=e=>Aa.call(e),Sf=e=>Co(e).slice(8,-1),ka=e=>Co(e)==="[object Object]",Di=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=Hi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_f=/-(\w)/g,An=wo(e=>e.replace(_f,(t,n)=>n?n.toUpperCase():"")),Ef=/\B([A-Z])/g,bn=wo(e=>e.replace(Ef,"-$1").toLowerCase()),Ba=wo(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=wo(e=>e?`on${Ba(e)}`:""),mr=(e,t)=>!Object.is(e,t),Wo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$f=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Rs;const si=()=>Rs||(Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ni(e){if(le(e)){const t={};for(let n=0;n{if(n){const r=n.split(Tf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Wi(e){let t="";if(Be(e))t=e;else if(le(e))for(let n=0;nBe(e)?e:e==null?"":le(e)||_e(e)&&(e.toString===Aa||!ue(e.toString))?JSON.stringify(e,Ha,2):String(e),Ha=(e,t)=>t&&t.__v_isRef?Ha(e,t.value):On(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:za(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!le(t)&&!ka(t)?String(t):t;let tt;class Fa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Da=e=>(e.w&Vt)>0,Na=e=>(e.n&Vt)>0,Mf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":le(e)?Di(n)&&l.push(s.get("length")):(l.push(s.get(fn)),On(e)&&l.push(s.get(ai)));break;case"delete":le(e)||(l.push(s.get(fn)),On(e)&&l.push(s.get(ai)));break;case"set":On(e)&&l.push(s.get(fn));break}if(l.length===1)l[0]&&ci(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ci(Ui(a))}}function ci(e,t){const n=le(e)?e:[...e];for(const r of n)r.computed&&Os(r);for(const r of n)r.computed||Os(r)}function Os(e,t){(e!==lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ff(e,t){var n;return(n=ao.get(e))==null?void 0:n.get(t)}const Lf=Hi("__proto__,__v_isRef,__isVue"),Ka=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ji)),jf=Vi(),Df=Vi(!1,!0),Nf=Vi(!0),zs=Wf();function Wf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let i=0,s=this.length;i{e[t]=function(...n){jn();const r=ge(this)[t].apply(this,n);return Dn(),r}}),e}function Uf(e){const t=ge(this);return et(t,"has",e),t.hasOwnProperty(e)}function Vi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?sd:Ya:t?Xa:Ga).get(r))return r;const s=le(r);if(!e){if(s&&ve(zs,o))return Reflect.get(zs,o,i);if(o==="hasOwnProperty")return Uf}const l=Reflect.get(r,o,i);return(ji(o)?Ka.has(o):Lf(o))||(e||et(r,"get",o),t)?l:Oe(l)?s&&Di(o)?l:l.value:_e(l)?e?Ot(l):Xt(l):l}}const Kf=Va(),Vf=Va(!0);function Va(e=!1){return function(n,r,o,i){let s=n[r];if(kn(s)&&Oe(s)&&!Oe(o))return!1;if(!e&&(!co(o)&&!kn(o)&&(s=ge(s),o=ge(o)),!le(n)&&Oe(s)&&!Oe(o)))return s.value=o,!0;const l=le(n)&&Di(r)?Number(r)e,So=e=>Reflect.getPrototypeOf(e);function Lr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(t!==i&&et(o,"get",t),et(o,"get",i));const{has:s}=So(o),l=r?qi:n?Yi:br;if(s.call(o,t))return l(e.get(t));if(s.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function jr(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(e!==o&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dr(e,t=!1){return e=e.__v_raw,!t&&et(ge(e),"iterate",fn),Reflect.get(e,"size",e)}function Is(e){e=ge(e);const t=ge(this);return So(t).has.call(t,e)||(t.add(e),Tt(t,"add",e,e)),this}function As(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=So(n);let i=r.call(n,e);i||(e=ge(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?mr(t,s)&&Tt(n,"set",e,t):Tt(n,"add",e,t),this}function ks(e){const t=ge(this),{has:n,get:r}=So(t);let o=n.call(t,e);o||(e=ge(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Tt(t,"delete",e,void 0),i}function Bs(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&Tt(e,"clear",void 0,void 0),n}function Nr(e,t){return function(r,o){const i=this,s=i.__v_raw,l=ge(s),a=t?qi:e?Yi:br;return!e&&et(l,"iterate",fn),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function Wr(e,t,n){return function(...r){const o=this.__v_raw,i=ge(o),s=On(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...r),u=n?qi:t?Yi:br;return!t&&et(i,"iterate",a?ai:fn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mt(e){return function(...t){return e==="delete"?!1:this}}function Jf(){const e={get(i){return Lr(this,i)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!1)},t={get(i){return Lr(this,i,!1,!0)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!0)},n={get(i){return Lr(this,i,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!1)},r={get(i){return Lr(this,i,!0,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wr(i,!1,!1),n[i]=Wr(i,!0,!1),t[i]=Wr(i,!1,!0),r[i]=Wr(i,!0,!0)}),[e,n,t,r]}const[Qf,ed,td,nd]=Jf();function Gi(e,t){const n=t?e?nd:td:e?ed:Qf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ve(n,o)&&o in r?n:r,o,i)}const rd={get:Gi(!1,!1)},od={get:Gi(!1,!0)},id={get:Gi(!0,!1)},Ga=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,sd=new WeakMap;function ld(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ad(e){return e.__v_skip||!Object.isExtensible(e)?0:ld(Sf(e))}function Xt(e){return kn(e)?e:Xi(e,!1,qa,rd,Ga)}function cd(e){return Xi(e,!1,Zf,od,Xa)}function Ot(e){return Xi(e,!0,Yf,id,Ya)}function Xi(e,t,n,r,o){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=ad(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Rt(e){return kn(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function kn(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Za(e){return Rt(e)||kn(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function qt(e){return lo(e,"__v_skip",!0),e}const br=e=>_e(e)?Xt(e):e,Yi=e=>_e(e)?Ot(e):e;function Ja(e){Ut&<&&(e=ge(e),Ua(e.dep||(e.dep=Ui())))}function Qa(e,t){e=ge(e);const n=e.dep;n&&ci(n)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function se(e){return ec(e,!1)}function ud(e){return ec(e,!0)}function ec(e,t){return Oe(e)?e:new fd(e,t)}class fd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:br(t)}get value(){return Ja(this),this._value}set value(t){const n=this.__v_isShallow||co(t)||kn(t);t=n?t:ge(t),mr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:br(t),Qa(this))}}function Ct(e){return Oe(e)?e.value:e}const dd={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Oe(o)&&!Oe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function tc(e){return Rt(e)?e:new Proxy(e,dd)}function hd(e){const t=le(e)?new Array(e.length):{};for(const n in e)t[n]=nc(e,n);return t}class pd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ff(ge(this._object),this._key)}}class gd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function zt(e,t,n){return Oe(e)?e:ue(e)?new gd(e):_e(e)&&arguments.length>1?nc(e,t,n):se(e)}function nc(e,t,n){const r=e[t];return Oe(r)?r:new pd(e,t,n)}class vd{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ki(t,()=>{this._dirty||(this._dirty=!0,Qa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return Ja(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function md(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ct):(r=e.get,o=e.set),new vd(r,o,i||!o,n)}function Kt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){_o(i,t,n)}return o}function st(e,t,n,r){if(ue(e)){const i=Kt(e,t,n,r);return i&&Ia(i)&&i.catch(s=>{_o(s,t,n)}),i}const o=[];for(let i=0;i>>1;xr(Ne[r])xt&&Ne.splice(t,1)}function Cd(e){le(e)?zn.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?nn+1:nn))&&zn.push(e),oc()}function Ms(e,t=yr?xt+1:0){for(;txr(n)-xr(r)),nn=0;nne.id==null?1/0:e.id,wd=(e,t)=>{const n=xr(e)-xr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sc(e){ui=!1,yr=!0,Ne.sort(wd);const t=ct;try{for(xt=0;xtBe(v)?v.trim():v)),f&&(o=n.map($f))}let l,a=r[l=No(t)]||r[l=No(An(t))];!a&&i&&(a=r[l=No(bn(t))]),a&&st(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(c,e,6,o)}}function lc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},l=!1;if(!ue(e)){const a=c=>{const u=lc(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&r.set(e,null),null):(le(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&r.set(e,s),s)}function Eo(e,t){return!e||!xo(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,bn(t))||ve(e,t))}let We=null,$o=null;function uo(e){const t=We;return We=e,$o=e&&e.type.__scopeId||null,t}function Nx(e){$o=e}function Wx(){$o=null}function ro(e,t=We,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Gs(-1);const i=uo(t);let s;try{s=e(...o)}finally{uo(i),r._d&&Gs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Uo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:v,ctx:p,inheritAttrs:w}=e;let y,b;const S=uo(e);try{if(n.shapeFlag&4){const _=o||r;y=bt(u.call(_,_,f,i,v,d,p)),b=a}else{const _=t;y=bt(_.length>1?_(i,{attrs:a,slots:l,emit:c}):_(i,null)),b=t.props?a:_d(a)}}catch(_){ur.length=0,_o(_,e,1),y=Fe(Ge)}let F=y;if(b&&w!==!1){const _=Object.keys(b),{shapeFlag:P}=F;_.length&&P&7&&(s&&_.some(Fi)&&(b=Ed(b,s)),F=It(F,b))}return n.dirs&&(F=It(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),y=F,uo(S),y}const _d=e=>{let t;for(const n in e)(n==="class"||n==="style"||xo(n))&&((t||(t={}))[n]=e[n]);return t},Ed=(e,t)=>{const n={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $d(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Hs(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Td(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function Qi(e,t){return es(e,null,t)}const Ur={};function ut(e,t,n){return es(e,t,n)}function es(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=Re){var l;const a=ja()===((l=Le)==null?void 0:l.scope)?Le:null;let c,u=!1,f=!1;if(Oe(e)?(c=()=>e.value,u=co(e)):Rt(e)?(c=()=>e,r=!0):le(e)?(f=!0,u=e.some(_=>Rt(_)||co(_)),c=()=>e.map(_=>{if(Oe(_))return _.value;if(Rt(_))return sn(_);if(ue(_))return Kt(_,a,2)})):ue(e)?t?c=()=>Kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),st(e,a,3,[v])}:c=ct,t&&r){const _=c;c=()=>sn(_())}let d,v=_=>{d=S.onStop=()=>{Kt(_,a,4)}},p;if($r)if(v=ct,t?n&&st(t,a,3,[c(),f?[]:void 0,v]):c(),o==="sync"){const _=bh();p=_.__watcherHandles||(_.__watcherHandles=[])}else return ct;let w=f?new Array(e.length).fill(Ur):Ur;const y=()=>{if(S.active)if(t){const _=S.run();(r||u||(f?_.some((P,z)=>mr(P,w[z])):mr(_,w)))&&(d&&d(),st(t,a,3,[_,w===Ur?void 0:f&&w[0]===Ur?[]:w,v]),w=_)}else S.run()};y.allowRecurse=!!t;let b;o==="sync"?b=y:o==="post"?b=()=>Qe(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>Ji(y));const S=new Ki(c,b);t?n?y():w=S.run():o==="post"?Qe(S.run.bind(S),a&&a.suspense):S.run();const F=()=>{S.stop(),a&&a.scope&&Li(a.scope.effects,S)};return p&&p.push(F),F}function Od(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?ac(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const s=Le;Mn(this);const l=es(o,i.bind(r),n);return s?Mn(s):dn(),l}function ac(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sn(n,t)});else if(ka(e))for(const n in e)sn(e[n],t);return e}function fi(e,t){const n=We;if(n===null)return e;const r=zo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),dt(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],uc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},zd={name:"BaseTransition",props:uc,setup(e,{slots:t}){const n=Ar(),r=cc();let o;return()=>{const i=t.default&&ts(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Ge){s=w;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ko(s);const c=Fs(s);if(!c)return Ko(s);const u=Cr(c,l,r,n);wr(c,u);const f=n.subTree,d=f&&Fs(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const w=p();o===void 0?o=w:w!==o&&(o=w,v=!0)}if(d&&d.type!==Ge&&(!rn(c,d)||v)){const w=Cr(d,l,r,n);if(wr(d,w),a==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ko(s);a==="in-out"&&c.type!==Ge&&(w.delayLeave=(y,b,S)=>{const F=fc(r,d);F[String(d.key)]=d,y._leaveCb=()=>{b(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},Id=zd;function fc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:w,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,F=String(e.key),_=fc(n,e),P=(C,A)=>{C&&st(C,r,9,A)},z=(C,A)=>{const j=A[1];P(C,A),le(C)?C.every(W=>W.length<=1)&&j():C.length<=1&&j()},m={mode:i,persisted:s,beforeEnter(C){let A=l;if(!n.isMounted)if(o)A=w||l;else return;C._leaveCb&&C._leaveCb(!0);const j=_[F];j&&rn(e,j)&&j.el._leaveCb&&j.el._leaveCb(),P(A,[C])},enter(C){let A=a,j=c,W=u;if(!n.isMounted)if(o)A=y||a,j=b||c,W=S||u;else return;let k=!1;const Q=C._enterCb=te=>{k||(k=!0,te?P(W,[C]):P(j,[C]),m.delayedLeave&&m.delayedLeave(),C._enterCb=void 0)};A?z(A,[C,Q]):Q()},leave(C,A){const j=String(e.key);if(C._enterCb&&C._enterCb(!0),n.isUnmounting)return A();P(f,[C]);let W=!1;const k=C._leaveCb=Q=>{W||(W=!0,A(),Q?P(p,[C]):P(v,[C]),C._leaveCb=void 0,_[j]===e&&delete _[j])};_[j]=e,d?z(d,[C,k]):k()},clone(C){return Cr(C,t,n,r)}};return m}function Ko(e){if(Po(e))return e=It(e),e.children=null,e}function Fs(e){return Po(e)?e.children?e.children[0]:void 0:e}function wr(e,t){e.shapeFlag&6&&e.component?wr(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 ts(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ike({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,Po=e=>e.type.__isKeepAlive;function dc(e,t){pc(e,"a",t)}function hc(e,t){pc(e,"da",t)}function pc(e,t,n=Le){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ro(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Po(o.parent.vnode)&&Ad(r,t,n,o),o=o.parent}}function Ad(e,t,n,r){const o=Ro(t,e,r,!0);vc(()=>{Li(r[t],o)},n)}function Ro(e,t,n=Le,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;jn(),Mn(n);const l=st(t,n,e,s);return dn(),Dn(),l});return r?o.unshift(i):o.push(i),i}}const At=e=>(t,n=Le)=>(!$r||e==="sp")&&Ro(e,(...r)=>t(...r),n),yn=At("bm"),Yt=At("m"),kd=At("bu"),gc=At("u"),dt=At("bum"),vc=At("um"),Bd=At("sp"),Md=At("rtg"),Hd=At("rtc");function Fd(e,t=Le){Ro("ec",e,t)}const Ld=Symbol.for("v-ndc");function Ux(e,t,n,r){let o;const i=n&&n[r];if(le(e)||Be(e)){o=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;l_r(t)?!(t.type===Ge||t.type===Me&&!mc(t.children)):!0)?e:null}const di=e=>e?Oc(e)?zo(e)||e.proxy:di(e.parent):null,ar=ke(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=>di(e.parent),$root:e=>di(e.root),$emit:e=>e.emit,$options:e=>ns(e),$forceUpdate:e=>e.f||(e.f=()=>Ji(e.update)),$nextTick:e=>e.n||(e.n=Bn.bind(e.proxy)),$watch:e=>Od.bind(e)}),Vo=(e,t)=>e!==Re&&!e.__isScriptSetup&&ve(e,t),Dd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Vo(r,t))return s[t]=1,r[t];if(o!==Re&&ve(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==Re&&ve(n,t))return s[t]=4,n[t];hi&&(s[t]=0)}}const u=ar[t];let f,d;if(u)return t==="$attrs"&&et(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ve(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,ve(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Vo(o,t)?(o[t]=n,!0):r!==Re&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||e!==Re&&ve(e,s)||Vo(t,s)||(l=i[0])&&ve(l,s)||ve(r,s)||ve(ar,s)||ve(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return le(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hi=!0;function Nd(e){const t=ns(e),n=e.proxy,r=e.ctx;hi=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:v,updated:p,activated:w,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:F,unmounted:_,render:P,renderTracked:z,renderTriggered:m,errorCaptured:C,serverPrefetch:A,expose:j,inheritAttrs:W,components:k,directives:Q,filters:te}=t;if(c&&Wd(c,r,null),s)for(const K in s){const re=s[K];ue(re)&&(r[K]=re.bind(n))}if(o){const K=o.call(n,n);_e(K)&&(e.data=Xt(K))}if(hi=!0,i)for(const K in i){const re=i[K],Ce=ue(re)?re.bind(n,n):ue(re.get)?re.get.bind(n,n):ct,we=!ue(re)&&ue(re.set)?re.set.bind(n):ct,Se=V({get:Ce,set:we});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Te=>Se.value=Te})}if(l)for(const K in l)bc(l[K],r,n,K);if(a){const K=ue(a)?a.call(n):a;Reflect.ownKeys(K).forEach(re=>{qe(re,K[re])})}u&&js(u,e,"c");function oe(K,re){le(re)?re.forEach(Ce=>K(Ce.bind(n))):re&&K(re.bind(n))}if(oe(yn,f),oe(Yt,d),oe(kd,v),oe(gc,p),oe(dc,w),oe(hc,y),oe(Fd,C),oe(Hd,z),oe(Md,m),oe(dt,S),oe(vc,_),oe(Bd,A),le(j))if(j.length){const K=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(K,re,{get:()=>n[re],set:Ce=>n[re]=Ce})})}else e.exposed||(e.exposed={});P&&e.render===ct&&(e.render=P),W!=null&&(e.inheritAttrs=W),k&&(e.components=k),Q&&(e.directives=Q)}function Wd(e,t,n=ct){le(e)&&(e=pi(e));for(const r in e){const o=e[r];let i;_e(o)?"default"in o?i=ze(o.from||r,o.default,!0):i=ze(o.from||r):i=ze(o),Oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function js(e,t,n){st(le(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bc(e,t,n,r){const o=r.includes(".")?ac(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&ut(o,i)}else if(ue(e))ut(o,e.bind(n));else if(_e(e))if(le(e))e.forEach(i=>bc(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&ut(o,i,e)}}function ns(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>fo(a,c,s,!0)),fo(a,t,s)),_e(t)&&i.set(t,a),a}function fo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&fo(e,i,n,!0),o&&o.forEach(s=>fo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Ud[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ud={data:Ds,props:Ns,emits:Ns,methods:or,computed:or,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:or,directives:or,watch:Vd,provide:Ds,inject:Kd};function Ds(e,t){return t?e?function(){return ke(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Kd(e,t){return or(pi(e),pi(t))}function pi(e){if(le(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function Xd(e,t,n,r=!1){const o={},i={};lo(i,Oo,1),e.propsDefaults=Object.create(null),xc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:cd(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Yd(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,l=ge(o),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,v]=Cc(f,t,!0);ke(s,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&r.set(e,Tn),Tn;if(le(i))for(let u=0;u-1,v[1]=w<0||p-1||ve(v,"default"))&&l.push(f)}}}const c=[s,l];return _e(e)&&r.set(e,c),c}function Ws(e){return e[0]!=="$"}function Us(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ks(e,t){return Us(e)===Us(t)}function Vs(e,t){return le(t)?t.findIndex(n=>Ks(n,e)):ue(t)&&Ks(t,e)?0:-1}const wc=e=>e[0]==="_"||e==="$stable",rs=e=>le(e)?e.map(bt):[bt(e)],Zd=(e,t,n)=>{if(t._n)return t;const r=ro((...o)=>rs(t(...o)),n);return r._c=!1,r},Sc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(wc(o))continue;const i=e[o];if(ue(i))t[o]=Zd(o,i,r);else if(i!=null){const s=rs(i);t[o]=()=>s}}},_c=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Jd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),lo(t,"_",n)):Sc(t,e.slots={})}else e.slots={},t&&_c(e,t);lo(e.slots,Oo,1)},Qd=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Sc(t,o)),s=t}else t&&(_c(e,t),s={default:1});if(i)for(const l in o)!wc(l)&&!(l in s)&&delete o[l]};function vi(e,t,n,r,o=!1){if(le(e)){e.forEach((d,v)=>vi(d,t&&(le(t)?t[v]:t),n,r,o));return}if(lr(r)&&!o)return;const i=r.shapeFlag&4?zo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Re?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,ve(f,c)&&(f[c]=null)):Oe(c)&&(c.value=null)),ue(a))Kt(a,l,12,[s,u]);else{const d=Be(a),v=Oe(a);if(d||v){const p=()=>{if(e.f){const w=d?ve(f,a)?f[a]:u[a]:a.value;o?le(w)&&Li(w,i):le(w)?w.includes(i)||w.push(i):d?(u[a]=[i],ve(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,ve(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,Qe(p,n)):p()}}}const Qe=Td;function eh(e){return th(e)}function th(e,t){const n=si();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:v=ct,insertStaticContent:p}=e,w=(h,g,x,$=null,O=null,B=null,N=!1,L=null,M=!!g.dynamicChildren)=>{if(h===g)return;h&&!rn(h,g)&&($=R(h),Te(h,O,B,!0),h=null),g.patchFlag===-2&&(M=!1,g.dynamicChildren=null);const{type:T,ref:Z,shapeFlag:q}=g;switch(T){case To:y(h,g,x,$);break;case Ge:b(h,g,x,$);break;case qo:h==null&&S(g,x,$,N);break;case Me:k(h,g,x,$,O,B,N,L,M);break;default:q&1?P(h,g,x,$,O,B,N,L,M):q&6?Q(h,g,x,$,O,B,N,L,M):(q&64||q&128)&&T.process(h,g,x,$,O,B,N,L,M,I)}Z!=null&&O&&vi(Z,h&&h.ref,B,g||h,!g)},y=(h,g,x,$)=>{if(h==null)r(g.el=l(g.children),x,$);else{const O=g.el=h.el;g.children!==h.children&&c(O,g.children)}},b=(h,g,x,$)=>{h==null?r(g.el=a(g.children||""),x,$):g.el=h.el},S=(h,g,x,$)=>{[h.el,h.anchor]=p(h.children,g,x,$,h.el,h.anchor)},F=({el:h,anchor:g},x,$)=>{let O;for(;h&&h!==g;)O=d(h),r(h,x,$),h=O;r(g,x,$)},_=({el:h,anchor:g})=>{let x;for(;h&&h!==g;)x=d(h),o(h),h=x;o(g)},P=(h,g,x,$,O,B,N,L,M)=>{N=N||g.type==="svg",h==null?z(g,x,$,O,B,N,L,M):A(h,g,O,B,N,L,M)},z=(h,g,x,$,O,B,N,L)=>{let M,T;const{type:Z,props:q,shapeFlag:Y,transition:ae,dirs:he}=h;if(M=h.el=s(h.type,B,q&&q.is,q),Y&8?u(M,h.children):Y&16&&C(h.children,M,null,$,O,B&&Z!=="foreignObject",N,L),he&&Zt(h,null,$,"created"),m(M,h,h.scopeId,N,$),q){for(const me in q)me!=="value"&&!no(me)&&i(M,me,null,q[me],B,h.children,$,O,fe);"value"in q&&i(M,"value",null,q.value),(T=q.onVnodeBeforeMount)&>(T,$,h)}he&&Zt(h,null,$,"beforeMount");const be=(!O||O&&!O.pendingBranch)&&ae&&!ae.persisted;be&&ae.beforeEnter(M),r(M,g,x),((T=q&&q.onVnodeMounted)||be||he)&&Qe(()=>{T&>(T,$,h),be&&ae.enter(M),he&&Zt(h,null,$,"mounted")},O)},m=(h,g,x,$,O)=>{if(x&&v(h,x),$)for(let B=0;B<$.length;B++)v(h,$[B]);if(O){let B=O.subTree;if(g===B){const N=O.vnode;m(h,N,N.scopeId,N.slotScopeIds,O.parent)}}},C=(h,g,x,$,O,B,N,L,M=0)=>{for(let T=M;T{const L=g.el=h.el;let{patchFlag:M,dynamicChildren:T,dirs:Z}=g;M|=h.patchFlag&16;const q=h.props||Re,Y=g.props||Re;let ae;x&&Jt(x,!1),(ae=Y.onVnodeBeforeUpdate)&>(ae,x,g,h),Z&&Zt(g,h,x,"beforeUpdate"),x&&Jt(x,!0);const he=O&&g.type!=="foreignObject";if(T?j(h.dynamicChildren,T,L,x,$,he,B):N||re(h,g,L,null,x,$,he,B,!1),M>0){if(M&16)W(L,g,q,Y,x,$,O);else if(M&2&&q.class!==Y.class&&i(L,"class",null,Y.class,O),M&4&&i(L,"style",q.style,Y.style,O),M&8){const be=g.dynamicProps;for(let me=0;me{ae&>(ae,x,g,h),Z&&Zt(g,h,x,"updated")},$)},j=(h,g,x,$,O,B,N)=>{for(let L=0;L{if(x!==$){if(x!==Re)for(const L in x)!no(L)&&!(L in $)&&i(h,L,x[L],null,N,g.children,O,B,fe);for(const L in $){if(no(L))continue;const M=$[L],T=x[L];M!==T&&L!=="value"&&i(h,L,T,M,N,g.children,O,B,fe)}"value"in $&&i(h,"value",x.value,$.value)}},k=(h,g,x,$,O,B,N,L,M)=>{const T=g.el=h?h.el:l(""),Z=g.anchor=h?h.anchor:l("");let{patchFlag:q,dynamicChildren:Y,slotScopeIds:ae}=g;ae&&(L=L?L.concat(ae):ae),h==null?(r(T,x,$),r(Z,x,$),C(g.children,x,Z,O,B,N,L,M)):q>0&&q&64&&Y&&h.dynamicChildren?(j(h.dynamicChildren,Y,x,O,B,N,L),(g.key!=null||O&&g===O.subTree)&&os(h,g,!0)):re(h,g,x,Z,O,B,N,L,M)},Q=(h,g,x,$,O,B,N,L,M)=>{g.slotScopeIds=L,h==null?g.shapeFlag&512?O.ctx.activate(g,x,$,N,M):te(g,x,$,O,B,N,M):ne(h,g,M)},te=(h,g,x,$,O,B,N)=>{const L=h.component=fh(h,$,O);if(Po(h)&&(L.ctx.renderer=I),dh(L),L.asyncDep){if(O&&O.registerDep(L,oe),!h.el){const M=L.subTree=Fe(Ge);b(null,M,g,x)}return}oe(L,h,g,x,O,B,N)},ne=(h,g,x)=>{const $=g.component=h.component;if($d(h,g,x))if($.asyncDep&&!$.asyncResolved){K($,g,x);return}else $.next=g,xd($.update),$.update();else g.el=h.el,$.vnode=g},oe=(h,g,x,$,O,B,N)=>{const L=()=>{if(h.isMounted){let{next:Z,bu:q,u:Y,parent:ae,vnode:he}=h,be=Z,me;Jt(h,!1),Z?(Z.el=he.el,K(h,Z,N)):Z=he,q&&Wo(q),(me=Z.props&&Z.props.onVnodeBeforeUpdate)&>(me,ae,Z,he),Jt(h,!0);const Ie=Uo(h),Ue=h.subTree;h.subTree=Ie,w(Ue,Ie,f(Ue.el),R(Ue),h,O,B),Z.el=Ie.el,be===null&&Pd(h,Ie.el),Y&&Qe(Y,O),(me=Z.props&&Z.props.onVnodeUpdated)&&Qe(()=>gt(me,ae,Z,he),O)}else{let Z;const{el:q,props:Y}=g,{bm:ae,m:he,parent:be}=h,me=lr(g);if(Jt(h,!1),ae&&Wo(ae),!me&&(Z=Y&&Y.onVnodeBeforeMount)&>(Z,be,g),Jt(h,!0),q&&pe){const Ie=()=>{h.subTree=Uo(h),pe(q,h.subTree,h,O,null)};me?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Uo(h);w(null,Ie,x,$,h,O,B),g.el=Ie.el}if(he&&Qe(he,O),!me&&(Z=Y&&Y.onVnodeMounted)){const Ie=g;Qe(()=>gt(Z,be,Ie),O)}(g.shapeFlag&256||be&&lr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&Qe(h.a,O),h.isMounted=!0,g=x=$=null}},M=h.effect=new Ki(L,()=>Ji(T),h.scope),T=h.update=()=>M.run();T.id=h.uid,Jt(h,!0),T()},K=(h,g,x)=>{g.component=h;const $=h.vnode.props;h.vnode=g,h.next=null,Yd(h,g.props,$,x),Qd(h,g.children,x),jn(),Ms(),Dn()},re=(h,g,x,$,O,B,N,L,M=!1)=>{const T=h&&h.children,Z=h?h.shapeFlag:0,q=g.children,{patchFlag:Y,shapeFlag:ae}=g;if(Y>0){if(Y&128){we(T,q,x,$,O,B,N,L,M);return}else if(Y&256){Ce(T,q,x,$,O,B,N,L,M);return}}ae&8?(Z&16&&fe(T,O,B),q!==T&&u(x,q)):Z&16?ae&16?we(T,q,x,$,O,B,N,L,M):fe(T,O,B,!0):(Z&8&&u(x,""),ae&16&&C(q,x,$,O,B,N,L,M))},Ce=(h,g,x,$,O,B,N,L,M)=>{h=h||Tn,g=g||Tn;const T=h.length,Z=g.length,q=Math.min(T,Z);let Y;for(Y=0;YZ?fe(h,O,B,!0,!1,q):C(g,x,$,O,B,N,L,M,q)},we=(h,g,x,$,O,B,N,L,M)=>{let T=0;const Z=g.length;let q=h.length-1,Y=Z-1;for(;T<=q&&T<=Y;){const ae=h[T],he=g[T]=M?Nt(g[T]):bt(g[T]);if(rn(ae,he))w(ae,he,x,null,O,B,N,L,M);else break;T++}for(;T<=q&&T<=Y;){const ae=h[q],he=g[Y]=M?Nt(g[Y]):bt(g[Y]);if(rn(ae,he))w(ae,he,x,null,O,B,N,L,M);else break;q--,Y--}if(T>q){if(T<=Y){const ae=Y+1,he=aeY)for(;T<=q;)Te(h[T],O,B,!0),T++;else{const ae=T,he=T,be=new Map;for(T=he;T<=Y;T++){const Ye=g[T]=M?Nt(g[T]):bt(g[T]);Ye.key!=null&&be.set(Ye.key,T)}let me,Ie=0;const Ue=Y-he+1;let pt=!1,Fr=0;const Bt=new Array(Ue);for(T=0;T=Ue){Te(Ye,O,B,!0);continue}let H;if(Ye.key!=null)H=be.get(Ye.key);else for(me=he;me<=Y;me++)if(Bt[me-he]===0&&rn(Ye,g[me])){H=me;break}H===void 0?Te(Ye,O,B,!0):(Bt[H-he]=T+1,H>=Fr?Fr=H:pt=!0,w(Ye,g[H],x,null,O,B,N,L,M),Ie++)}const wt=pt?nh(Bt):Tn;for(me=wt.length-1,T=Ue-1;T>=0;T--){const Ye=he+T,H=g[Ye],J=Ye+1{const{el:B,type:N,transition:L,children:M,shapeFlag:T}=h;if(T&6){Se(h.component.subTree,g,x,$);return}if(T&128){h.suspense.move(g,x,$);return}if(T&64){N.move(h,g,x,I);return}if(N===Me){r(B,g,x);for(let q=0;qL.enter(B),O);else{const{leave:q,delayLeave:Y,afterLeave:ae}=L,he=()=>r(B,g,x),be=()=>{q(B,()=>{he(),ae&&ae()})};Y?Y(B,he,be):be()}else r(B,g,x)},Te=(h,g,x,$=!1,O=!1)=>{const{type:B,props:N,ref:L,children:M,dynamicChildren:T,shapeFlag:Z,patchFlag:q,dirs:Y}=h;if(L!=null&&vi(L,null,x,h,!0),Z&256){g.ctx.deactivate(h);return}const ae=Z&1&&Y,he=!lr(h);let be;if(he&&(be=N&&N.onVnodeBeforeUnmount)&>(be,g,h),Z&6)Xe(h.component,x,$);else{if(Z&128){h.suspense.unmount(x,$);return}ae&&Zt(h,null,g,"beforeUnmount"),Z&64?h.type.remove(h,g,x,O,I,$):T&&(B!==Me||q>0&&q&64)?fe(T,g,x,!1,!0):(B===Me&&q&384||!O&&Z&16)&&fe(M,g,x),$&&rt(h)}(he&&(be=N&&N.onVnodeUnmounted)||ae)&&Qe(()=>{be&>(be,g,h),ae&&Zt(h,null,g,"unmounted")},x)},rt=h=>{const{type:g,el:x,anchor:$,transition:O}=h;if(g===Me){ht(x,$);return}if(g===qo){_(h);return}const B=()=>{o(x),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(h.shapeFlag&1&&O&&!O.persisted){const{leave:N,delayLeave:L}=O,M=()=>N(x,B);L?L(h.el,B,M):M()}else B()},ht=(h,g)=>{let x;for(;h!==g;)x=d(h),o(h),h=x;o(g)},Xe=(h,g,x)=>{const{bum:$,scope:O,update:B,subTree:N,um:L}=h;$&&Wo($),O.stop(),B&&(B.active=!1,Te(N,h,g,x)),L&&Qe(L,g),Qe(()=>{h.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},fe=(h,g,x,$=!1,O=!1,B=0)=>{for(let N=B;Nh.shapeFlag&6?R(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),U=(h,g,x)=>{h==null?g._vnode&&Te(g._vnode,null,null,!0):w(g._vnode||null,h,g,null,null,null,x),Ms(),ic(),g._vnode=h},I={p:w,um:Te,m:Se,r:rt,mt:te,mc:C,pc:re,pbc:j,n:R,o:e};let X,pe;return t&&([X,pe]=t(I)),{render:U,hydrate:X,createApp:Gd(U,X)}}function Jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function os(e,t,n=!1){const r=e.children,o=t.children;if(le(r)&&le(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const rh=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),qs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mi=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},oh={__isTeleport:!0,process(e,t,n,r,o,i,s,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:v,querySelector:p,createText:w,createComment:y}}=c,b=cr(t.props);let{shapeFlag:S,children:F,dynamicChildren:_}=t;if(e==null){const P=t.el=w(""),z=t.anchor=w("");v(P,n,r),v(z,n,r);const m=t.target=mi(t.props,p),C=t.targetAnchor=w("");m&&(v(C,m),s=s||qs(m));const A=(j,W)=>{S&16&&u(F,j,W,o,i,s,l,a)};b?A(n,z):m&&A(m,C)}else{t.el=e.el;const P=t.anchor=e.anchor,z=t.target=e.target,m=t.targetAnchor=e.targetAnchor,C=cr(e.props),A=C?n:z,j=C?P:m;if(s=s||qs(z),_?(d(e.dynamicChildren,_,A,o,i,s,l),os(e,t,!0)):a||f(e,t,A,j,o,i,s,l,!1),b)C||Kr(t,n,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=mi(t.props,p);W&&Kr(t,W,null,c,0)}else C&&Kr(t,z,m,c,1)}$c(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(s||!cr(d))&&(i(c),l&16))for(let v=0;v0?at||Tn:null,sh(),Sr>0&&at&&at.push(e),e}function Kx(e,t,n,r,o,i){return Pc(Tc(e,t,n,r,o,i,!0))}function ss(e,t,n,r,o){return Pc(Fe(e,t,n,r,o,!0))}function _r(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const Oo="__vInternal",Rc=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Oe(e)||ue(e)?{i:We,r:e,k:t,f:!!n}:e:null);function Tc(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rc(t),ref:t&&oo(t),scopeId:$o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:We};return l?(ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),Sr>0&&!s&&at&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&at.push(a),a}const Fe=lh;function lh(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=Ge),_r(e)){const l=It(e,t,!0);return n&&ls(l,n),Sr>0&&!i&&at&&(l.shapeFlag&6?at[at.indexOf(e)]=l:at.push(l)),l.patchFlag|=-2,l}if(vh(e)&&(e=e.__vccOpts),t){t=ah(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Wi(l)),_e(a)&&(Za(a)&&!le(a)&&(a=ke({},a)),t.style=Ni(a))}const s=Be(e)?1:Rd(e)?128:rh(e)?64:_e(e)?4:ue(e)?2:0;return Tc(e,t,n,r,o,s,i,!0)}function ah(e){return e?Za(e)||Oo in e?ke({},e):e:null}function It(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?as(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rc(l),ref:t&&t.ref?n&&o?le(o)?o.concat(oo(t)):[o,oo(t)]:oo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Er(e=" ",t=0){return Fe(To,null,e,t)}function Vx(e="",t=!1){return t?(is(),ss(Ge,null,e)):Fe(Ge,null,e)}function bt(e){return e==null||typeof e=="boolean"?Fe(Ge):le(e)?Fe(Me,null,e.slice()):typeof e=="object"?Nt(e):Fe(To,null,String(e))}function Nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function ls(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ls(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Oo in t)?t._ctx=We:o===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function as(...e){const t={};for(let n=0;nLe||We;let cs,Sn,Xs="__VUE_INSTANCE_SETTERS__";(Sn=si()[Xs])||(Sn=si()[Xs]=[]),Sn.push(e=>Le=e),cs=e=>{Sn.length>1?Sn.forEach(t=>t(e)):Sn[0](e)};const Mn=e=>{cs(e),e.scope.on()},dn=()=>{Le&&Le.scope.off(),cs(null)};function Oc(e){return e.vnode.shapeFlag&4}let $r=!1;function dh(e,t=!1){$r=t;const{props:n,children:r}=e.vnode,o=Oc(e);Xd(e,n,o,t),Jd(e,r);const i=o?hh(e,t):void 0;return $r=!1,i}function hh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qt(new Proxy(e.ctx,Dd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?gh(e):null;Mn(e),jn();const i=Kt(r,e,0,[e.props,o]);if(Dn(),dn(),Ia(i)){if(i.then(dn,dn),t)return i.then(s=>{Ys(e,s,t)}).catch(s=>{_o(s,e,0)});e.asyncDep=i}else Ys(e,i,t)}else zc(e,t)}function Ys(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=tc(t)),zc(e,n)}let Zs;function zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Zs&&!r.render){const o=r.template||ns(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ke(ke({isCustomElement:i,delimiters:l},s),a);r.render=Zs(o,c)}}e.render=r.render||ct}Mn(e),jn(),Nd(e),Dn(),dn()}function ph(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return et(e,"get","$attrs"),t[n]}}))}function gh(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ph(e)},slots:e.slots,emit:e.emit,expose:t}}function zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tc(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}}))}function vh(e){return ue(e)&&"__vccOpts"in e}const V=(e,t)=>md(e,t,$r);function E(e,t,n){const r=arguments.length;return r===2?_e(t)&&!le(t)?_r(t)?Fe(e,null,[t]):Fe(e,t):Fe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_r(n)&&(n=[n]),Fe(e,t,n))}const mh=Symbol.for("v-scx"),bh=()=>ze(mh),yh="3.3.2",xh="http://www.w3.org/2000/svg",on=typeof document<"u"?document:null,Js=on&&on.createElement("template"),Ch={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?on.createElementNS(xh,e):on.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>on.createTextNode(e),createComment:e=>on.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>on.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Js.innerHTML=r?`${e}`:e;const l=Js.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function wh(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Sh(e,t,n){const r=e.style,o=Be(n);if(n&&!o){if(t&&!Be(t))for(const i in t)n[i]==null&&bi(r,i,"");for(const i in n)bi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Qs=/\s*!important$/;function bi(e,t,n){if(le(n))n.forEach(r=>bi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_h(e,t);Qs.test(n)?e.setProperty(bn(r),n.replace(Qs,""),"important"):e[r]=n}}const el=["Webkit","Moz","ms"],Go={};function _h(e,t){const n=Go[t];if(n)return n;let r=An(t);if(r!=="filter"&&r in e)return Go[t]=r;r=Ba(r);for(let o=0;oXo||(zh.then(()=>Xo=0),Xo=Date.now());function Ah(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(kh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ih(),n}function kh(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const rl=/^on[a-z]/,Bh=(e,t,n,r,o=!1,i,s,l,a)=>{t==="class"?wh(e,r,o):t==="style"?Sh(e,n,r):xo(t)?Fi(t)||Th(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mh(e,t,r,o))?$h(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Eh(e,t,r,o))};function Mh(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&rl.test(t)&&ue(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||rl.test(t)&&Be(n)?!1:t in e}const Ht="transition",Zn="animation",Gt=(e,{slots:t})=>E(Id,Ac(e),t);Gt.displayName="Transition";const Ic={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},Hh=Gt.props=ke({},uc,Ic),Qt=(e,t=[])=>{le(e)?e.forEach(n=>n(...t)):e&&e(...t)},ol=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function Ac(e){const t={};for(const k in e)k in Ic||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=Fh(o),w=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:F,onLeave:_,onLeaveCancelled:P,onBeforeAppear:z=b,onAppear:m=S,onAppearCancelled:C=F}=t,A=(k,Q,te)=>{jt(k,Q?u:l),jt(k,Q?c:s),te&&te()},j=(k,Q)=>{k._isLeaving=!1,jt(k,f),jt(k,v),jt(k,d),Q&&Q()},W=k=>(Q,te)=>{const ne=k?m:S,oe=()=>A(Q,k,te);Qt(ne,[Q,oe]),il(()=>{jt(Q,k?a:i),$t(Q,k?u:l),ol(ne)||sl(Q,r,w,oe)})};return ke(t,{onBeforeEnter(k){Qt(b,[k]),$t(k,i),$t(k,s)},onBeforeAppear(k){Qt(z,[k]),$t(k,a),$t(k,c)},onEnter:W(!1),onAppear:W(!0),onLeave(k,Q){k._isLeaving=!0;const te=()=>j(k,Q);$t(k,f),Bc(),$t(k,d),il(()=>{k._isLeaving&&(jt(k,f),$t(k,v),ol(_)||sl(k,r,y,te))}),Qt(_,[k,te])},onEnterCancelled(k){A(k,!1),Qt(F,[k])},onAppearCancelled(k){A(k,!0),Qt(C,[k])},onLeaveCancelled(k){j(k),Qt(P,[k])}})}function Fh(e){if(e==null)return null;if(_e(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return Pf(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lh=0;function sl(e,t,n,r){const o=e._endId=++Lh,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=kc(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=v=>{v.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ht}Delay`),i=r(`${Ht}Duration`),s=ll(o,i),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),c=ll(l,a);let u=null,f=0,d=0;t===Ht?s>0&&(u=Ht,f=s,d=i.length):t===Zn?c>0&&(u=Zn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Ht:Zn:null,d=u?u===Ht?i.length:a.length:0);const v=u===Ht&&/\b(transform|all)(,|$)/.test(r(`${Ht}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function ll(e,t){for(;e.lengthal(n)+al(e[r])))}function al(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Bc(){return document.body.offsetHeight}const Mc=new WeakMap,Hc=new WeakMap,Fc={name:"TransitionGroup",props:ke({},Hh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ar(),r=cc();let o,i;return gc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Kh(o[0].el,n.vnode.el,s))return;o.forEach(Nh),o.forEach(Wh);const l=o.filter(Uh);Bc(),l.forEach(a=>{const c=a.el,u=c.style;$t(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,jt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=Ac(s);let a=s.tag||Me;o=i,i=t.default?ts(t.default()):[];for(let c=0;cdelete e.mode;Fc.props;const Dh=Fc;function Nh(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Wh(e){Hc.set(e,e.el.getBoundingClientRect())}function Uh(e){const t=Mc.get(e),n=Hc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function Kh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=kc(r);return o.removeChild(r),i}const Vh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qx=(e,t)=>n=>{if(!("key"in n))return;const r=bn(n.key);if(t.some(o=>o===r||Vh[o]===r))return e(n)},cl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Jn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Jn(e,!0),r.enter(e)):r.leave(e,()=>{Jn(e,!1)}):Jn(e,t))},beforeUnmount(e,{value:t}){Jn(e,t)}};function Jn(e,t){e.style.display=t?e._vod:"none"}const qh=ke({patchProp:Bh},Ch);let ul;function Gh(){return ul||(ul=eh(qh))}const Xh=(...e)=>{const t=Gh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Yh(r);if(!o)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Yh(e){return Be(e)?document.querySelector(e):e}var Zh=!1;/*! * pinia v2.0.36 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Lc;const Io=e=>Lc=e,jc=Symbol();function yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fr||(fr={}));function Zh(){const e=La(!0),t=e.run(()=>se({}));let n=[],r=[];const o=qt({install(i){Io(o),o._a=i,i.provide(jc,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!Yh?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Dc=()=>{};function fl(e,t,n,r=Dc){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&ja()&&Bf(o),o}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}function xi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];yi(o)&&yi(r)&&e.hasOwnProperty(n)&&!Oe(r)&&!Rt(r)?e[n]=xi(o,r):e[n]=r}return e}const Jh=Symbol();function Qh(e){return!yi(e)||!e.hasOwnProperty(Jh)}const{assign:Dt}=Object;function ep(e){return!!(Oe(e)&&e.effect)}function tp(e,t,n,r){const{state:o,actions:i,getters:s}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=o?o():{});const u=hd(n.state.value[e]);return Dt(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=qt(V(()=>{Io(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=Nc(e,c,t,n,r,!0),a}function Nc(e,t,n={},r,o,i){let s;const l=Dt({actions:{}},n),a={deep:!0};let c,u,f=qt([]),d=qt([]),v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),se({});let w;function y(m){let C;c=u=!1,typeof m=="function"?(m(r.state.value[e]),C={type:fr.patchFunction,storeId:e,events:v}):(xi(r.state.value[e],m),C={type:fr.patchObject,payload:m,storeId:e,events:v});const A=w=Symbol();kn().then(()=>{w===A&&(c=!0)}),u=!0,Sn(f,C,r.state.value[e])}const b=i?function(){const{state:C}=n,A=C?C():{};this.$patch(j=>{Dt(j,A)})}:Dc;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function F(m,C){return function(){Io(r);const A=Array.from(arguments),j=[],W=[];function k(ne){j.push(ne)}function Q(ne){W.push(ne)}Sn(d,{args:A,name:m,store:P,after:k,onError:Q});let te;try{te=C.apply(this&&this.$id===e?this:P,A)}catch(ne){throw Sn(W,ne),ne}return te instanceof Promise?te.then(ne=>(Sn(j,ne),ne)).catch(ne=>(Sn(W,ne),Promise.reject(ne))):(Sn(j,te),te)}}const _={_p:r,$id:e,$onAction:fl.bind(null,d),$patch:y,$reset:b,$subscribe(m,C={}){const A=fl(f,m,C.detached,()=>j()),j=s.run(()=>ut(()=>r.state.value[e],W=>{(C.flush==="sync"?u:c)&&m({storeId:e,type:fr.direct,events:v},W)},Dt({},a,C)));return A},$dispose:S},P=Xt(_);r._s.set(e,P);const z=r._e.run(()=>(s=La(),s.run(()=>t())));for(const m in z){const C=z[m];if(Oe(C)&&!ep(C)||Rt(C))i||(p&&Qh(C)&&(Oe(C)?C.value=p[m]:xi(C,p[m])),r.state.value[e][m]=C);else if(typeof C=="function"){const A=F(m,C);z[m]=A,l.actions[m]=C}}return Dt(P,z),Dt(ge(P),z),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:m=>{y(C=>{Dt(C,m)})}}),r._p.forEach(m=>{Dt(P,s.run(()=>m({store:P,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(P.$state,p),c=!0,u=!0,P}function Vx(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(l,a){const c=Ar();return l=l||c&&ze(jc,null),l&&Io(l),l=Lc,l._s.has(r)||(i?Nc(r,t,o,l):tp(r,o,l)),l._s.get(r)}return s.$id=r,s}function qx(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(Oe(r)||Rt(r))&&(t[n]=zt(e,n))}return t}}function np(e){return typeof e=="object"&&e!==null}function dl(e,t){return e=np(e)?e:Object.create(null),new Proxy(e,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(t,r,o)}})}function rp(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function op(e,t,n){return t.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},e)[t[t.length-1]]=n,e}function ip(e,t){return t.reduce((n,r)=>{const o=r.split(".");return op(n,o,rp(e,o))},{})}function hl(e,{storage:t,serializer:n,key:r,debug:o}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){o&&console.error(i)}}function pl(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?ip(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error(s)}}function sp(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:o}=t;if(!r)return;const i=(Array.isArray(r)?r.map(s=>dl(s,e)):[dl(r,e)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:a=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:u=o.$id,paths:f=null,debug:d=!1})=>{var v;return{storage:s,beforeRestore:l,afterRestore:a,serializer:c,key:((v=e.key)!=null?v:p=>p)(u),paths:f,debug:d}});o.$persist=()=>{i.forEach(s=>{pl(o.$state,s)})},o.$hydrate=({runHooks:s=!0}={})=>{i.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;s&&(a==null||a(t)),hl(o,l),s&&(c==null||c(t))})},i.forEach(s=>{const{beforeRestore:l,afterRestore:a}=s;l==null||l(t),hl(o,s),a==null||a(t),o.$subscribe((c,u)=>{pl(u,s)},{detached:!0})})}}var lp=sp();const Wc=Zh();Wc.use(lp);function ap(e){e.use(Wc)}function us(e){return e.composedPath()[0]||null}function Gx(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function cp(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function Xx(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const gl={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"},Nn="^\\s*",Wn="\\s*$",ln="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",an="([0-9A-Fa-f])",cn="([0-9A-Fa-f]{2})",up=new RegExp(`${Nn}rgb\\s*\\(${ln},${ln},${ln}\\)${Wn}`),fp=new RegExp(`${Nn}rgba\\s*\\(${ln},${ln},${ln},${ln}\\)${Wn}`),dp=new RegExp(`${Nn}#${an}${an}${an}${Wn}`),hp=new RegExp(`${Nn}#${cn}${cn}${cn}${Wn}`),pp=new RegExp(`${Nn}#${an}${an}${an}${an}${Wn}`),gp=new RegExp(`${Nn}#${cn}${cn}${cn}${cn}${Wn}`);function Je(e){return parseInt(e,16)}function gn(e){try{let t;if(t=hp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),1];if(t=up.exec(e))return[De(t[1]),De(t[5]),De(t[9]),1];if(t=fp.exec(e))return[De(t[1]),De(t[5]),De(t[9]),dr(t[13])];if(t=dp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),1];if(t=gp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),dr(Je(t[4])/255)];if(t=pp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),dr(Je(t[4]+t[4])/255)];if(e in gl)return gn(gl[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function vp(e){return e>1?1:e<0?0:e}function Ci(e,t,n,r){return`rgba(${De(e)}, ${De(t)}, ${De(n)}, ${vp(r)})`}function Zo(e,t,n,r,o){return De((e*t*(1-r)+n*r)/o)}function fs(e,t){Array.isArray(e)||(e=gn(e)),Array.isArray(t)||(t=gn(t));const n=e[3],r=t[3],o=dr(n+r-n*r);return Ci(Zo(e[0],n,t[0],r,o),Zo(e[1],n,t[1],r,o),Zo(e[2],n,t[2],r,o),o)}function Vr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:gn(e);return t.alpha?Ci(n,r,o,t.alpha):Ci(n,r,o,i)}function qr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:gn(e),{lightness:s=1,alpha:l=1}=t;return mp([n*s,r*s,o*s,i*l])}function dr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function De(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function mp(e){const[t,n,r]=e;return 3 in e?`rgba(${De(t)}, ${De(n)}, ${De(r)}, ${dr(e[3])})`:`rgba(${De(t)}, ${De(n)}, ${De(r)}, 1)`}function ds(e=8){return Math.random().toString(16).slice(2,2+e)}function po(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Uc(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function wi(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){wi(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&wi(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function un(e,...t){if(Array.isArray(e))e.forEach(n=>un(n,...t));else return e(...t)}function hs(e){return Object.keys(e)}const tn=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Er(e):typeof e=="number"?Er(String(e)):null;function go(e,t){console.error(`[naive/${e}]: ${t}`)}function bp(e,t){throw new Error(`[naive/${e}]: ${t}`)}function yp(e,t="default",n=void 0){const r=e[t];if(!r)return go("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=wi(r(n));return o.length===1?o[0]:(go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Yx(e){return e}function kr(e){return e.some(t=>_r(t)?!(t.type===Ge||t.type===Me&&!kr(t.children)):!0)?e:null}function vl(e,t){return e&&kr(e())||t()}function Zx(e,t,n){return e&&kr(e(t))||n(t)}function yt(e,t){const n=e&&kr(e());return t(n||null)}function xp(e){return!(e&&kr(e()))}const ml=Ee({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function bl(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function Cp(e){let t=0;for(let n=0;n{let o=Cp(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(l=>{e.forEach(a=>{s.push(l.replace("&",a))})}),i=s}i.forEach(s=>n.push(s))}),n}function _p(e,t){const n=[];return t.split(Kc).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Ep(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Sp(t,n):t=_p(t,n))}),t.join(", ").replace(wp," ")}function yl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ao(e){return document.querySelector(`style[cssr-id="${e}"]`)}function $p(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Gr(e){return e?/^\s*@(s|m)/.test(e):!1}const Pp=/[A-Z]/g;function Vc(e){return e.replace(Pp,t=>"-"+t.toLowerCase())}function Rp(e,t=" "){return typeof e=="object"&&e!==null?` { + */let Lc;const Io=e=>Lc=e,jc=Symbol();function yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fr||(fr={}));function Jh(){const e=La(!0),t=e.run(()=>se({}));let n=[],r=[];const o=qt({install(i){Io(o),o._a=i,i.provide(jc,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!Zh?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Dc=()=>{};function fl(e,t,n,r=Dc){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&ja()&&Bf(o),o}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}function xi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];yi(o)&&yi(r)&&e.hasOwnProperty(n)&&!Oe(r)&&!Rt(r)?e[n]=xi(o,r):e[n]=r}return e}const Qh=Symbol();function ep(e){return!yi(e)||!e.hasOwnProperty(Qh)}const{assign:Dt}=Object;function tp(e){return!!(Oe(e)&&e.effect)}function np(e,t,n,r){const{state:o,actions:i,getters:s}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=o?o():{});const u=hd(n.state.value[e]);return Dt(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=qt(V(()=>{Io(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=Nc(e,c,t,n,r,!0),a}function Nc(e,t,n={},r,o,i){let s;const l=Dt({actions:{}},n),a={deep:!0};let c,u,f=qt([]),d=qt([]),v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),se({});let w;function y(m){let C;c=u=!1,typeof m=="function"?(m(r.state.value[e]),C={type:fr.patchFunction,storeId:e,events:v}):(xi(r.state.value[e],m),C={type:fr.patchObject,payload:m,storeId:e,events:v});const A=w=Symbol();Bn().then(()=>{w===A&&(c=!0)}),u=!0,_n(f,C,r.state.value[e])}const b=i?function(){const{state:C}=n,A=C?C():{};this.$patch(j=>{Dt(j,A)})}:Dc;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function F(m,C){return function(){Io(r);const A=Array.from(arguments),j=[],W=[];function k(ne){j.push(ne)}function Q(ne){W.push(ne)}_n(d,{args:A,name:m,store:P,after:k,onError:Q});let te;try{te=C.apply(this&&this.$id===e?this:P,A)}catch(ne){throw _n(W,ne),ne}return te instanceof Promise?te.then(ne=>(_n(j,ne),ne)).catch(ne=>(_n(W,ne),Promise.reject(ne))):(_n(j,te),te)}}const _={_p:r,$id:e,$onAction:fl.bind(null,d),$patch:y,$reset:b,$subscribe(m,C={}){const A=fl(f,m,C.detached,()=>j()),j=s.run(()=>ut(()=>r.state.value[e],W=>{(C.flush==="sync"?u:c)&&m({storeId:e,type:fr.direct,events:v},W)},Dt({},a,C)));return A},$dispose:S},P=Xt(_);r._s.set(e,P);const z=r._e.run(()=>(s=La(),s.run(()=>t())));for(const m in z){const C=z[m];if(Oe(C)&&!tp(C)||Rt(C))i||(p&&ep(C)&&(Oe(C)?C.value=p[m]:xi(C,p[m])),r.state.value[e][m]=C);else if(typeof C=="function"){const A=F(m,C);z[m]=A,l.actions[m]=C}}return Dt(P,z),Dt(ge(P),z),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:m=>{y(C=>{Dt(C,m)})}}),r._p.forEach(m=>{Dt(P,s.run(()=>m({store:P,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(P.$state,p),c=!0,u=!0,P}function Gx(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(l,a){const c=Ar();return l=l||c&&ze(jc,null),l&&Io(l),l=Lc,l._s.has(r)||(i?Nc(r,t,o,l):np(r,o,l)),l._s.get(r)}return s.$id=r,s}function Xx(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(Oe(r)||Rt(r))&&(t[n]=zt(e,n))}return t}}function rp(e){return typeof e=="object"&&e!==null}function dl(e,t){return e=rp(e)?e:Object.create(null),new Proxy(e,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(t,r,o)}})}function op(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function ip(e,t,n){return t.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},e)[t[t.length-1]]=n,e}function sp(e,t){return t.reduce((n,r)=>{const o=r.split(".");return ip(n,o,op(e,o))},{})}function hl(e,{storage:t,serializer:n,key:r,debug:o}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){o&&console.error(i)}}function pl(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?sp(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error(s)}}function lp(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:o}=t;if(!r)return;const i=(Array.isArray(r)?r.map(s=>dl(s,e)):[dl(r,e)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:a=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:u=o.$id,paths:f=null,debug:d=!1})=>{var v;return{storage:s,beforeRestore:l,afterRestore:a,serializer:c,key:((v=e.key)!=null?v:p=>p)(u),paths:f,debug:d}});o.$persist=()=>{i.forEach(s=>{pl(o.$state,s)})},o.$hydrate=({runHooks:s=!0}={})=>{i.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;s&&(a==null||a(t)),hl(o,l),s&&(c==null||c(t))})},i.forEach(s=>{const{beforeRestore:l,afterRestore:a}=s;l==null||l(t),hl(o,s),a==null||a(t),o.$subscribe((c,u)=>{pl(u,s)},{detached:!0})})}}var ap=lp();const Wc=Jh();Wc.use(ap);function cp(e){e.use(Wc)}function us(e){return e.composedPath()[0]||null}function Yx(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function up(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function Zx(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const gl={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"},Nn="^\\s*",Wn="\\s*$",ln="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",an="([0-9A-Fa-f])",cn="([0-9A-Fa-f]{2})",fp=new RegExp(`${Nn}rgb\\s*\\(${ln},${ln},${ln}\\)${Wn}`),dp=new RegExp(`${Nn}rgba\\s*\\(${ln},${ln},${ln},${ln}\\)${Wn}`),hp=new RegExp(`${Nn}#${an}${an}${an}${Wn}`),pp=new RegExp(`${Nn}#${cn}${cn}${cn}${Wn}`),gp=new RegExp(`${Nn}#${an}${an}${an}${an}${Wn}`),vp=new RegExp(`${Nn}#${cn}${cn}${cn}${cn}${Wn}`);function Je(e){return parseInt(e,16)}function gn(e){try{let t;if(t=pp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),1];if(t=fp.exec(e))return[De(t[1]),De(t[5]),De(t[9]),1];if(t=dp.exec(e))return[De(t[1]),De(t[5]),De(t[9]),dr(t[13])];if(t=hp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),1];if(t=vp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),dr(Je(t[4])/255)];if(t=gp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),dr(Je(t[4]+t[4])/255)];if(e in gl)return gn(gl[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function mp(e){return e>1?1:e<0?0:e}function Ci(e,t,n,r){return`rgba(${De(e)}, ${De(t)}, ${De(n)}, ${mp(r)})`}function Zo(e,t,n,r,o){return De((e*t*(1-r)+n*r)/o)}function fs(e,t){Array.isArray(e)||(e=gn(e)),Array.isArray(t)||(t=gn(t));const n=e[3],r=t[3],o=dr(n+r-n*r);return Ci(Zo(e[0],n,t[0],r,o),Zo(e[1],n,t[1],r,o),Zo(e[2],n,t[2],r,o),o)}function Vr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:gn(e);return t.alpha?Ci(n,r,o,t.alpha):Ci(n,r,o,i)}function qr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:gn(e),{lightness:s=1,alpha:l=1}=t;return bp([n*s,r*s,o*s,i*l])}function dr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function De(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function bp(e){const[t,n,r]=e;return 3 in e?`rgba(${De(t)}, ${De(n)}, ${De(r)}, ${dr(e[3])})`:`rgba(${De(t)}, ${De(n)}, ${De(r)}, 1)`}function ds(e=8){return Math.random().toString(16).slice(2,2+e)}function po(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Uc(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function wi(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){wi(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&wi(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function un(e,...t){if(Array.isArray(e))e.forEach(n=>un(n,...t));else return e(...t)}function hs(e){return Object.keys(e)}const tn=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Er(e):typeof e=="number"?Er(String(e)):null;function go(e,t){console.error(`[naive/${e}]: ${t}`)}function yp(e,t){throw new Error(`[naive/${e}]: ${t}`)}function xp(e,t="default",n=void 0){const r=e[t];if(!r)return go("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=wi(r(n));return o.length===1?o[0]:(go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Jx(e){return e}function kr(e){return e.some(t=>_r(t)?!(t.type===Ge||t.type===Me&&!kr(t.children)):!0)?e:null}function vl(e,t){return e&&kr(e())||t()}function Qx(e,t,n){return e&&kr(e(t))||n(t)}function yt(e,t){const n=e&&kr(e());return t(n||null)}function Cp(e){return!(e&&kr(e()))}const ml=Ee({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function bl(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function wp(e){let t=0;for(let n=0;n{let o=wp(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(l=>{e.forEach(a=>{s.push(l.replace("&",a))})}),i=s}i.forEach(s=>n.push(s))}),n}function Ep(e,t){const n=[];return t.split(Kc).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function $p(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=_p(t,n):t=Ep(t,n))}),t.join(", ").replace(Sp," ")}function yl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ao(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Pp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Gr(e){return e?/^\s*@(s|m)/.test(e):!1}const Rp=/[A-Z]/g;function Vc(e){return e.replace(Rp,t=>"-"+t.toLowerCase())}function Tp(e,t=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(n=>t+` ${Vc(n[0])}: ${n[1]};`).join(` `)+` -`+t+"}":`: ${e};`}function Tp(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function xl(e,t,n,r){if(!t)return"";const o=Tp(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { +`+t+"}":`: ${e};`}function Op(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function xl(e,t,n,r){if(!t)return"";const o=Op(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { ${o} }`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { }`:"";const s=e?[e+" {"]:[];return i.forEach(l=>{const a=o[l];if(l==="raw"){s.push(` `+a+` -`);return}l=Vc(l),a!=null&&s.push(` ${l}${Rp(a)}`)}),e&&s.push("}"),s.join(` -`)}function Si(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Si(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Si(o,t,n):o&&n(o)}else r&&n(r)})}function qc(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")Gr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Gr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Gr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Gr(u)?l=u:t.push(u)}const a=Ep(t),c=xl(a,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { +`);return}l=Vc(l),a!=null&&s.push(` ${l}${Tp(a)}`)}),e&&s.push("}"),s.join(` +`)}function Si(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Si(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Si(o,t,n):o&&n(o)}else r&&n(r)})}function qc(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")Gr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Gr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Gr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Gr(u)?l=u:t.push(u)}const a=$p(t),c=xl(a,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { ${c} } `)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Si(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const f=xl(a,{raw:u},r,o);i?i.insertRule(f):n.push(f)}else qc(u,t,n,r,o,i)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function Gc(e,t,n,r=!1){const o=[];return qc(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` -`)}function Pr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Op(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(yl),t.els=[];else{const o=Ao(n);o&&r.includes(o)&&(yl(o),t.els=r.filter(i=>i!==o))}}function Cl(e,t){e.push(t)}function zp(e,t,n,r,o,i,s,l,a){if(i&&!a){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const d=window.__cssrContext;d[n]||(d[n]=!0,Gc(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Pr(c)),a){a.adapter(n,c??t.render(r));return}const u=Ao(n);if(u!==null&&!s)return u;const f=u??$p(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const d=document.head.querySelector(`meta[name="${l}"]`);if(d)return document.head.insertBefore(f,d),Cl(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Cl(t.els,f),f}function Ip(e){return Gc(this,this.instance,e)}function Ap(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:s=!1,anchorMetaName:l}=e;return zp(this.instance,this,t,r,o,i,s,l,n)}function kp(e={}){const{id:t}=e;Op(this.instance,this,t)}const Xr=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Ip,mount:Ap,unmount:kp}},Bp=function(e,t,n,r){return Array.isArray(t)?Xr(e,{$:null},null,t):Array.isArray(n)?Xr(e,t,null,n):Array.isArray(r)?Xr(e,t,n,r):Xr(e,t,n,null)};function Mp(e={}){let t=null;const n={c:(...r)=>Bp(n,...r),use:(r,...o)=>r.install(n,...o),find:Ao,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function Hp(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ao(e)!==null}function Fp(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const w=p.context;w.bem={},w.bem.b=null,w.bem.els=null}};function s(p){let w,y;return{before(b){w=b.bem.b,y=b.bem.els,b.bem.els=null},after(b){b.bem.b=w,b.bem.els=y},$({context:b,props:S}){return p=typeof p=="string"?p:p({context:b,props:S}),b.bem.b=p,`${(S==null?void 0:S.bPrefix)||t}${b.bem.b}`}}}function l(p){let w;return{before(y){w=y.bem.els},after(y){y.bem.els=w},$({context:y,props:b}){return p=typeof p=="string"?p:p({context:y,props:b}),y.bem.els=p.split(",").map(S=>S.trim()),y.bem.els.map(S=>`${(b==null?void 0:b.bPrefix)||t}${y.bem.b}${n}${S}`).join(", ")}}}function a(p){return{$({context:w,props:y}){p=typeof p=="string"?p:p({context:w,props:y});const b=p.split(",").map(_=>_.trim());function S(_){return b.map(P=>`&${(y==null?void 0:y.bPrefix)||t}${w.bem.b}${_!==void 0?`${n}${_}`:""}${r}${P}`).join(", ")}const F=w.bem.els;return F!==null?S(F[0]):S()}}}function c(p){return{$({context:w,props:y}){p=typeof p=="string"?p:p({context:w,props:y});const b=w.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||t}${w.bem.b}${b!==null&&b.length>0?`${n}${b[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(s(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(a(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ie(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ie("abc","def");const Lp="n",Rr=`.${Lp}-`,jp="__",Dp="--",Xc=Mp(),Yc=Fp({blockPrefix:Rr,elementPrefix:jp,modifierPrefix:Dp});Xc.use(Yc);const{c:D,find:Jx}=Xc,{cB:xe,cE:G,cM:de,cNotM:_i}=Yc;function Zc(e){return D(({props:{bPrefix:t}})=>`${t||Rr}modal, ${t||Rr}drawer`,[e])}function Np(e){return D(({props:{bPrefix:t}})=>`${t||Rr}popover`,[e])}function Jc(e){return D(({props:{bPrefix:t}})=>`&${t||Rr}modal`,e)}const Qx=(...e)=>D(">",[xe(...e)]),Br=typeof document<"u"&&typeof window<"u",Wp=new WeakSet;function Up(e){return!Wp.has(e)}function Kp(e){const t=se(!!e.value);if(t.value)return Ot(t);const n=ut(e,r=>{r&&(t.value=!0,n())});return Ot(t)}function Ei(e){const t=V(e),n=se(t.value);return ut(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Qc(){return Ar()!==null}const eu=typeof window<"u";function io(e){return e.composedPath()[0]}const Vp={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function qp(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(io(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=s=>{r=!t.contains(io(s))},i=s=>{r&&(t.contains(io(s))||n(s))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function tu(e,t,n){const r=Vp[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=qp(e,t,n)),i}function Gp(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=tu(e,t,n);return Object.keys(o).forEach(i=>{it(i,document,o[i],r)}),!0}return!1}function Xp(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=tu(e,t,n);return Object.keys(o).forEach(i=>{Ve(i,document,o[i],r)}),!0}return!1}function Yp(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(m,C,A){const j=m[C];return m[C]=function(){return A.apply(m,arguments),j.apply(m,arguments)},m}function i(m,C){m[C]=Event.prototype[C]}const s=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function a(){var m;return(m=s.get(this))!==null&&m!==void 0?m:null}function c(m,C){l!==void 0&&Object.defineProperty(m,"currentTarget",{configurable:!0,enumerable:!0,get:C??l.get})}const u={bubble:{},capture:{}},f={};function d(){const m=function(C){const{type:A,eventPhase:j,bubbles:W}=C,k=io(C);if(j===2)return;const Q=j===1?"capture":"bubble";let te=k;const ne=[];for(;te===null&&(te=window),ne.push(te),te!==window;)te=te.parentNode||null;const oe=u.capture[A],K=u.bubble[A];if(o(C,"stopPropagation",n),o(C,"stopImmediatePropagation",r),c(C,a),Q==="capture"){if(oe===void 0)return;for(let re=ne.length-1;re>=0&&!e.has(C);--re){const Ce=ne[re],we=oe.get(Ce);if(we!==void 0){s.set(C,Ce);for(const Se of we){if(t.has(C))break;Se(C)}}if(re===0&&!W&&K!==void 0){const Se=K.get(Ce);if(Se!==void 0)for(const Te of Se){if(t.has(C))break;Te(C)}}}}else if(Q==="bubble"){if(K===void 0)return;for(let re=0;rek(C))};return m.displayName="evtdUnifiedWindowEventHandler",m}const p=d(),w=v();function y(m,C){const A=u[m];return A[C]===void 0&&(A[C]=new Map,window.addEventListener(C,p,m==="capture")),A[C]}function b(m){return f[m]===void 0&&(f[m]=new Set,window.addEventListener(m,w)),f[m]}function S(m,C){let A=m.get(C);return A===void 0&&m.set(C,A=new Set),A}function F(m,C,A,j){const W=u[C][A];if(W!==void 0){const k=W.get(m);if(k!==void 0&&k.has(j))return!0}return!1}function _(m,C){const A=f[m];return!!(A!==void 0&&A.has(C))}function P(m,C,A,j){let W;if(typeof j=="object"&&j.once===!0?W=oe=>{z(m,C,W,j),A(oe)}:W=A,Gp(m,C,W,j))return;const Q=j===!0||typeof j=="object"&&j.capture===!0?"capture":"bubble",te=y(Q,m),ne=S(te,C);if(ne.has(W)||ne.add(W),C===window){const oe=b(m);oe.has(W)||oe.add(W)}}function z(m,C,A,j){if(Xp(m,C,A,j))return;const k=j===!0||typeof j=="object"&&j.capture===!0,Q=k?"capture":"bubble",te=y(Q,m),ne=S(te,C);if(C===window&&!F(C,k?"bubble":"capture",m,A)&&_(m,A)){const K=f[m];K.delete(A),K.size===0&&(window.removeEventListener(m,w),f[m]=void 0)}ne.has(A)&&ne.delete(A),ne.size===0&&te.delete(C),te.size===0&&(window.removeEventListener(m,p,Q==="capture"),u[Q][m]=void 0)}return{on:P,off:z}}const{on:it,off:Ve}=Yp(),ir=se(null);function wl(e){if(e.clientX>0||e.clientY>0)ir.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ir.value={x:n+o/2,y:r+i/2}:ir.value={x:0,y:0}}else ir.value=null}}let Yr=0,Sl=!0;function nu(){if(!eu)return Ot(se(null));Yr===0&&it("click",document,wl,!0);const e=()=>{Yr+=1};return Sl&&(Sl=Qc())?(bn(e),dt(()=>{Yr-=1,Yr===0&&Ve("click",document,wl,!0)})):e(),Ot(ir)}const Zp=se(void 0);let Zr=0;function _l(){Zp.value=Date.now()}let El=!0;function ru(e){if(!eu)return Ot(se(!1));const t=se(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Zr===0&&it("click",window,_l,!0);const i=()=>{Zr+=1,it("click",window,o,!0)};return El&&(El=Qc())?(bn(i),dt(()=>{Zr-=1,Zr===0&&Ve("click",window,_l,!0),Ve("click",window,o,!0),r()})):i(),Ot(t)}function ou(){const e=se(!1);return Yt(()=>{e.value=!0}),Ot(e)}const Jp=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Qp(){return Jp}const eg="n-modal-body",iu="n-modal",tg="n-drawer-body",ng="n-popover-body";function $l(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function $i(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){$i(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&$i(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function e1(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=$i(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}const _n="@@coContext",rg={mounted(e,{value:t,modifiers:n}){e[_n]={handler:void 0},typeof t=="function"&&(e[_n].handler=t,it("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[_n];typeof t=="function"?r.handler?r.handler!==t&&(Ve("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,it("clickoutside",e,t,{capture:n.capture})):(e[_n].handler=t,it("clickoutside",e,t,{capture:n.capture})):r.handler&&(Ve("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[_n];n&&Ve("clickoutside",e,n,{capture:t.capture}),e[_n].handler=void 0}},og=rg;function ig(e,t){console.error(`[vdirs/${e}]: ${t}`)}class sg{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&ig("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((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const Jo=new sg,En="@@ziContext",lg={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[En]={enabled:!!o,initialized:!1},o&&(Jo.ensureZIndex(e,r),e[En].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[En].enabled;o&&!i&&(Jo.ensureZIndex(e,r),e[En].initialized=!0),e[En].enabled=!!o},unmounted(e,t){if(!e[En].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Jo.unregister(e,r)}},ag=lg,su=Symbol("@css-render/vue3-ssr");function cg(e,t){return``}function ug(e,t){const n=ze(su,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(cg(e,t)))}const fg=typeof document<"u";function ko(){if(fg)return;const e=ze(su,null);if(e!==null)return{adapter:ug,context:e}}function Pl(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Rl(e){return typeof e=="string"?document.querySelector(e):e()}const dg=Ee({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Kp(zt(e,"show")),mergedTo:V(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?$l("lazy-teleport",this.$slots):E(Ec,{disabled:this.disabled,to:this.mergedTo},$l("lazy-teleport",this.$slots)):null}});var hn=[],hg=function(){return hn.some(function(e){return e.activeTargets.length>0})},pg=function(){return hn.some(function(e){return e.skippedTargets.length>0})},Tl="ResizeObserver loop completed with undelivered notifications.",gg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Tl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Tl),window.dispatchEvent(e)},Tr;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Tr||(Tr={}));var pn=function(e){return Object.freeze(e)},vg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,pn(this)}return e}(),lu=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,l=t.left,a=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:l,width:a,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ps=function(e){return e instanceof SVGElement&&"getBBox"in e},au=function(e){if(ps(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Ol=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},mg=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},hr=typeof window<"u"?window:{},Jr=new WeakMap,zl=/auto|scroll/,bg=/^tb|vertical/,yg=/msie|trident/i.test(hr.navigator&&hr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},zn=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new vg((n?t:e)||0,(n?e:t)||0)},Il=pn({devicePixelContentBoxSize:zn(),borderBoxSize:zn(),contentBoxSize:zn(),contentRect:new lu(0,0,0,0)}),cu=function(e,t){if(t===void 0&&(t=!1),Jr.has(e)&&!t)return Jr.get(e);if(au(e))return Jr.set(e,Il),Il;var n=getComputedStyle(e),r=ps(e)&&e.ownerSVGElement&&e.getBBox(),o=!yg&&n.boxSizing==="border-box",i=bg.test(n.writingMode||""),s=!r&&zl.test(n.overflowY||""),l=!r&&zl.test(n.overflowX||""),a=r?0:vt(n.paddingTop),c=r?0:vt(n.paddingRight),u=r?0:vt(n.paddingBottom),f=r?0:vt(n.paddingLeft),d=r?0:vt(n.borderTopWidth),v=r?0:vt(n.borderRightWidth),p=r?0:vt(n.borderBottomWidth),w=r?0:vt(n.borderLeftWidth),y=f+c,b=a+u,S=w+v,F=d+p,_=l?e.offsetHeight-F-e.clientHeight:0,P=s?e.offsetWidth-S-e.clientWidth:0,z=o?y+S:0,m=o?b+F:0,C=r?r.width:vt(n.width)-z-P,A=r?r.height:vt(n.height)-m-_,j=C+y+P+S,W=A+b+_+F,k=pn({devicePixelContentBoxSize:zn(Math.round(C*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:zn(j,W,i),contentBoxSize:zn(C,A,i),contentRect:new lu(f,a,C,A)});return Jr.set(e,k),k},uu=function(e,t,n){var r=cu(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Tr.DEVICE_PIXEL_CONTENT_BOX:return s;case Tr.BORDER_BOX:return o;default:return i}},xg=function(){function e(t){var n=cu(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=pn([n.borderBoxSize]),this.contentBoxSize=pn([n.contentBoxSize]),this.devicePixelContentBoxSize=pn([n.devicePixelContentBoxSize])}return e}(),fu=function(e){if(au(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Cg=function(){var e=1/0,t=[];hn.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var u=new xg(c.target),f=fu(c.target);l.push(u),c.lastReportedSize=uu(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},wg=function(){var e=0;for(Al(e);hg();)e=Cg(),Al(e);return pg()&&gg(),e>0},Qo,du=[],Sg=function(){return du.splice(0).forEach(function(e){return e()})},_g=function(e){if(!Qo){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Sg()}).observe(n,r),Qo=function(){n.textContent="".concat(t?t--:t++)}}du.push(e),Qo()},Eg=function(e){_g(function(){requestAnimationFrame(e)})},so=0,$g=function(){return!!so},Pg=250,Rg={attributes:!0,characterData:!0,childList:!0,subtree:!0},kl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bl=function(e){return e===void 0&&(e=0),Date.now()+e},ei=!1,Tg=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Pg),!ei){ei=!0;var r=Bl(t);Eg(function(){var o=!1;try{o=wg()}finally{if(ei=!1,t=r-Bl(),!$g())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Rg)};document.body?n():hr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kl.forEach(function(n){return hr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),kl.forEach(function(n){return hr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Pi=new Tg,Ml=function(e){!so&&e>0&&Pi.start(),so+=e,!so&&Pi.stop()},Og=function(e){return!ps(e)&&!mg(e)&&getComputedStyle(e).display==="inline"},zg=function(){function e(t,n){this.target=t,this.observedBox=n||Tr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uu(this.target,this.observedBox,!0);return Og(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Ig=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Qr=new WeakMap,Hl=function(e,t){for(var n=0;n=0&&(i&&hn.splice(hn.indexOf(r),1),r.observationTargets.splice(o,1),Ml(-1))},e.disconnect=function(t){var n=this,r=Qr.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ag=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.");eo.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ol(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.observe(this,t,n)},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(!Ol(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.unobserve(this,t)},e.prototype.disconnect=function(){eo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class kg{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Ag)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Fl=new kg,Ll=Ee({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ar().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Yt(()=>{const o=n.$el;if(o===void 0){Pl("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Pl("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Fl.registerHandler(o.nextElementSibling,r),t=!0)}),dt(()=>{t&&Fl.unregisterHandler(n.$el.nextElementSibling)})},render(){return jd(this.$slots,"default")}});function hu(e){return e instanceof HTMLElement}function pu(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(hu(n)&&(vu(n)||gu(n)))return!0}return!1}function vu(e){if(!Bg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Bg(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 Qn=[];const Mg=Ee({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=ds(),n=se(null),r=se(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function l(){return Qn[Qn.length-1]===t}function a(y){var b;y.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,y))}Yt(()=>{ut(()=>e.active,y=>{y?(f(),it("keydown",document,a)):(Ve("keydown",document,a),o&&d())},{immediate:!0})}),dt(()=>{Ve("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const b=u();if(b===null||b.contains(us(y)))return;v("first")}}function u(){const y=n.value;if(y===null)return null;let b=y;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function f(){var y;if(!e.disabled){if(Qn.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?v("first"):(y=Rl(b))===null||y===void 0||y.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var y;if(e.disabled||(document.removeEventListener("focus",c,!0),Qn=Qn.filter(S=>S!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(y=Rl(b))===null||y===void 0||y.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function v(y){if(l()&&e.active){const b=n.value,S=r.value;if(b!==null&&S!==null){const F=u();if(F==null||F===S){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const _=y==="first"?pu(F):gu(F);i=!1,_||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(y){if(i)return;const b=u();b!==null&&(y.relatedTarget!==null&&b.contains(y.relatedTarget)?v("last"):v("first"))}function w(y){i||(y.relatedTarget!==null&&y.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:w}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return E(Me,null,[E("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),E("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let $n=0,jl="",Dl="",Nl="",Wl="";const Ul=se("0px");function Hg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=jl,t.style.overflow=Dl,t.style.overflowX=Nl,t.style.overflowY=Wl,Ul.value="0px"};Yt(()=>{n=ut(e,i=>{if(i){if(!$n){const s=window.innerWidth-t.offsetWidth;s>0&&(jl=t.style.marginRight,t.style.marginRight=`${s}px`,Ul.value=`${s}px`),Dl=t.style.overflow,Nl=t.style.overflowX,Wl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,$n++}else $n--,$n||o(),r=!1},{immediate:!0})}),dt(()=>{n==null||n(),r&&($n--,$n||o(),r=!1)})}const gs=se(!1),Kl=()=>{gs.value=!0},Vl=()=>{gs.value=!1};let er=0;const Fg=()=>(Br&&(bn(()=>{er||(window.addEventListener("compositionstart",Kl),window.addEventListener("compositionend",Vl)),er++}),dt(()=>{er<=1?(window.removeEventListener("compositionstart",Kl),window.removeEventListener("compositionend",Vl),er=0):er--})),gs);function Lg(e){const t={isDeactivated:!1};let n=!1;return dc(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),hc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ql="n-form-item";function jg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=ze(ql,null);qe(ql,null);const i=V(n?()=>n(o):()=>{const{size:a}=e;if(a)return a;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),s=V(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=V(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Dg=typeof global=="object"&&global&&global.Object===Object&&global;const mu=Dg;var Ng=typeof self=="object"&&self&&self.Object===Object&&self,Wg=mu||Ng||Function("return this")();const Un=Wg;var Ug=Un.Symbol;const Mn=Ug;var bu=Object.prototype,Kg=bu.hasOwnProperty,Vg=bu.toString,tr=Mn?Mn.toStringTag:void 0;function qg(e){var t=Kg.call(e,tr),n=e[tr];try{e[tr]=void 0;var r=!0}catch{}var o=Vg.call(e);return r&&(t?e[tr]=n:delete e[tr]),o}var Gg=Object.prototype,Xg=Gg.toString;function Yg(e){return Xg.call(e)}var Zg="[object Null]",Jg="[object Undefined]",Gl=Mn?Mn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?Jg:Zg:Gl&&Gl in Object(e)?qg(e):Yg(e)}function Kn(e){return e!=null&&typeof e=="object"}var Qg="[object Symbol]";function ev(e){return typeof e=="symbol"||Kn(e)&&Mr(e)==Qg}function tv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=$v)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ov(e){return function(){return e}}var zv=function(){try{var e=ms(Object,"defineProperty");return e({},"",{}),e}catch{}}();const mo=zv;var Iv=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:Ov(t),writable:!0})}:xu;const Av=Iv;var kv=Tv(Av);const Bv=kv;var Mv=9007199254740991,Hv=/^(?:0|[1-9]\d*)$/;function Cu(e,t){var n=typeof e;return t=t??Mv,!!t&&(n=="number"||n!="symbol"&&Hv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Uv}function ys(e){return e!=null&&wu(e.length)&&!vs(e)}function Kv(e,t,n){if(!yn(n))return!1;var r=typeof t;return(r=="number"?ys(n)&&Cu(t,n.length):r=="string"&&t in n)?Bo(n[t],e):!1}function Vv(e){return Wv(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&Kv(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function ob(e,t){var n=this.__data__,r=Mo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:xb(e,t,n)}var wb="\\ud800-\\udfff",Sb="\\u0300-\\u036f",_b="\\ufe20-\\ufe2f",Eb="\\u20d0-\\u20ff",$b=Sb+_b+Eb,Pb="\\ufe0e\\ufe0f",Rb="\\u200d",Tb=RegExp("["+Rb+wb+$b+Pb+"]");function Au(e){return Tb.test(e)}function Ob(e){return e.split("")}var ku="\\ud800-\\udfff",zb="\\u0300-\\u036f",Ib="\\ufe20-\\ufe2f",Ab="\\u20d0-\\u20ff",kb=zb+Ib+Ab,Bb="\\ufe0e\\ufe0f",Mb="["+ku+"]",Ti="["+kb+"]",Oi="\\ud83c[\\udffb-\\udfff]",Hb="(?:"+Ti+"|"+Oi+")",Bu="[^"+ku+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Fb="\\u200d",Fu=Hb+"?",Lu="["+Bb+"]?",Lb="(?:"+Fb+"(?:"+[Bu,Mu,Hu].join("|")+")"+Lu+Fu+")*",jb=Lu+Fu+Lb,Db="(?:"+[Bu+Ti+"?",Ti,Mu,Hu,Mb].join("|")+")",Nb=RegExp(Oi+"(?="+Oi+")|"+Db+jb,"g");function Wb(e){return e.match(Nb)||[]}function Ub(e){return Au(e)?Wb(e):Ob(e)}function Kb(e){return function(t){t=db(t);var n=Au(t)?Ub(t):void 0,r=n?n[0]:t.charAt(0),o=n?Cb(n,1).join(""):t.slice(1);return r[e]()+o}}var Vb=Kb("toUpperCase");const qb=Vb;function Gb(){this.__data__=new kt,this.size=0}function Xb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yb(e){return this.__data__.get(e)}function Zb(e){return this.__data__.has(e)}var Jb=200;function Qb(e,t){var n=this.__data__;if(n instanceof kt){var r=n.__data__;if(!Ou||r.length`}function fg(e,t){const n=ze(su,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(ug(e,t)))}const dg=typeof document<"u";function ko(){if(dg)return;const e=ze(su,null);if(e!==null)return{adapter:fg,context:e}}function Pl(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Rl(e){return typeof e=="string"?document.querySelector(e):e()}const hg=Ee({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Vp(zt(e,"show")),mergedTo:V(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?$l("lazy-teleport",this.$slots):E(Ec,{disabled:this.disabled,to:this.mergedTo},$l("lazy-teleport",this.$slots)):null}});var hn=[],pg=function(){return hn.some(function(e){return e.activeTargets.length>0})},gg=function(){return hn.some(function(e){return e.skippedTargets.length>0})},Tl="ResizeObserver loop completed with undelivered notifications.",vg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Tl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Tl),window.dispatchEvent(e)},Tr;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Tr||(Tr={}));var pn=function(e){return Object.freeze(e)},mg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,pn(this)}return e}(),lu=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,l=t.left,a=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:l,width:a,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ps=function(e){return e instanceof SVGElement&&"getBBox"in e},au=function(e){if(ps(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Ol=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},bg=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},hr=typeof window<"u"?window:{},Jr=new WeakMap,zl=/auto|scroll/,yg=/^tb|vertical/,xg=/msie|trident/i.test(hr.navigator&&hr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},In=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new mg((n?t:e)||0,(n?e:t)||0)},Il=pn({devicePixelContentBoxSize:In(),borderBoxSize:In(),contentBoxSize:In(),contentRect:new lu(0,0,0,0)}),cu=function(e,t){if(t===void 0&&(t=!1),Jr.has(e)&&!t)return Jr.get(e);if(au(e))return Jr.set(e,Il),Il;var n=getComputedStyle(e),r=ps(e)&&e.ownerSVGElement&&e.getBBox(),o=!xg&&n.boxSizing==="border-box",i=yg.test(n.writingMode||""),s=!r&&zl.test(n.overflowY||""),l=!r&&zl.test(n.overflowX||""),a=r?0:vt(n.paddingTop),c=r?0:vt(n.paddingRight),u=r?0:vt(n.paddingBottom),f=r?0:vt(n.paddingLeft),d=r?0:vt(n.borderTopWidth),v=r?0:vt(n.borderRightWidth),p=r?0:vt(n.borderBottomWidth),w=r?0:vt(n.borderLeftWidth),y=f+c,b=a+u,S=w+v,F=d+p,_=l?e.offsetHeight-F-e.clientHeight:0,P=s?e.offsetWidth-S-e.clientWidth:0,z=o?y+S:0,m=o?b+F:0,C=r?r.width:vt(n.width)-z-P,A=r?r.height:vt(n.height)-m-_,j=C+y+P+S,W=A+b+_+F,k=pn({devicePixelContentBoxSize:In(Math.round(C*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:In(j,W,i),contentBoxSize:In(C,A,i),contentRect:new lu(f,a,C,A)});return Jr.set(e,k),k},uu=function(e,t,n){var r=cu(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Tr.DEVICE_PIXEL_CONTENT_BOX:return s;case Tr.BORDER_BOX:return o;default:return i}},Cg=function(){function e(t){var n=cu(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=pn([n.borderBoxSize]),this.contentBoxSize=pn([n.contentBoxSize]),this.devicePixelContentBoxSize=pn([n.devicePixelContentBoxSize])}return e}(),fu=function(e){if(au(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},wg=function(){var e=1/0,t=[];hn.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var u=new Cg(c.target),f=fu(c.target);l.push(u),c.lastReportedSize=uu(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Sg=function(){var e=0;for(Al(e);pg();)e=wg(),Al(e);return gg()&&vg(),e>0},Qo,du=[],_g=function(){return du.splice(0).forEach(function(e){return e()})},Eg=function(e){if(!Qo){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return _g()}).observe(n,r),Qo=function(){n.textContent="".concat(t?t--:t++)}}du.push(e),Qo()},$g=function(e){Eg(function(){requestAnimationFrame(e)})},so=0,Pg=function(){return!!so},Rg=250,Tg={attributes:!0,characterData:!0,childList:!0,subtree:!0},kl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bl=function(e){return e===void 0&&(e=0),Date.now()+e},ei=!1,Og=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Rg),!ei){ei=!0;var r=Bl(t);$g(function(){var o=!1;try{o=Sg()}finally{if(ei=!1,t=r-Bl(),!Pg())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Tg)};document.body?n():hr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kl.forEach(function(n){return hr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),kl.forEach(function(n){return hr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Pi=new Og,Ml=function(e){!so&&e>0&&Pi.start(),so+=e,!so&&Pi.stop()},zg=function(e){return!ps(e)&&!bg(e)&&getComputedStyle(e).display==="inline"},Ig=function(){function e(t,n){this.target=t,this.observedBox=n||Tr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uu(this.target,this.observedBox,!0);return zg(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Ag=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Qr=new WeakMap,Hl=function(e,t){for(var n=0;n=0&&(i&&hn.splice(hn.indexOf(r),1),r.observationTargets.splice(o,1),Ml(-1))},e.disconnect=function(t){var n=this,r=Qr.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),kg=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.");eo.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ol(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.observe(this,t,n)},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(!Ol(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.unobserve(this,t)},e.prototype.disconnect=function(){eo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Bg{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||kg)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Fl=new Bg,Ll=Ee({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ar().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Yt(()=>{const o=n.$el;if(o===void 0){Pl("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Pl("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Fl.registerHandler(o.nextElementSibling,r),t=!0)}),dt(()=>{t&&Fl.unregisterHandler(n.$el.nextElementSibling)})},render(){return jd(this.$slots,"default")}});function hu(e){return e instanceof HTMLElement}function pu(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(hu(n)&&(vu(n)||gu(n)))return!0}return!1}function vu(e){if(!Mg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Mg(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 Qn=[];const Hg=Ee({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=ds(),n=se(null),r=se(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function l(){return Qn[Qn.length-1]===t}function a(y){var b;y.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,y))}Yt(()=>{ut(()=>e.active,y=>{y?(f(),it("keydown",document,a)):(Ve("keydown",document,a),o&&d())},{immediate:!0})}),dt(()=>{Ve("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const b=u();if(b===null||b.contains(us(y)))return;v("first")}}function u(){const y=n.value;if(y===null)return null;let b=y;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function f(){var y;if(!e.disabled){if(Qn.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?v("first"):(y=Rl(b))===null||y===void 0||y.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var y;if(e.disabled||(document.removeEventListener("focus",c,!0),Qn=Qn.filter(S=>S!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(y=Rl(b))===null||y===void 0||y.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function v(y){if(l()&&e.active){const b=n.value,S=r.value;if(b!==null&&S!==null){const F=u();if(F==null||F===S){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const _=y==="first"?pu(F):gu(F);i=!1,_||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(y){if(i)return;const b=u();b!==null&&(y.relatedTarget!==null&&b.contains(y.relatedTarget)?v("last"):v("first"))}function w(y){i||(y.relatedTarget!==null&&y.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:w}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return E(Me,null,[E("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),E("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let Pn=0,jl="",Dl="",Nl="",Wl="";const Ul=se("0px");function Fg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=jl,t.style.overflow=Dl,t.style.overflowX=Nl,t.style.overflowY=Wl,Ul.value="0px"};Yt(()=>{n=ut(e,i=>{if(i){if(!Pn){const s=window.innerWidth-t.offsetWidth;s>0&&(jl=t.style.marginRight,t.style.marginRight=`${s}px`,Ul.value=`${s}px`),Dl=t.style.overflow,Nl=t.style.overflowX,Wl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Pn++}else Pn--,Pn||o(),r=!1},{immediate:!0})}),dt(()=>{n==null||n(),r&&(Pn--,Pn||o(),r=!1)})}const gs=se(!1),Kl=()=>{gs.value=!0},Vl=()=>{gs.value=!1};let er=0;const Lg=()=>(Br&&(yn(()=>{er||(window.addEventListener("compositionstart",Kl),window.addEventListener("compositionend",Vl)),er++}),dt(()=>{er<=1?(window.removeEventListener("compositionstart",Kl),window.removeEventListener("compositionend",Vl),er=0):er--})),gs);function jg(e){const t={isDeactivated:!1};let n=!1;return dc(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),hc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ql="n-form-item";function Dg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=ze(ql,null);qe(ql,null);const i=V(n?()=>n(o):()=>{const{size:a}=e;if(a)return a;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),s=V(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=V(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Ng=typeof global=="object"&&global&&global.Object===Object&&global;const mu=Ng;var Wg=typeof self=="object"&&self&&self.Object===Object&&self,Ug=mu||Wg||Function("return this")();const Un=Ug;var Kg=Un.Symbol;const Hn=Kg;var bu=Object.prototype,Vg=bu.hasOwnProperty,qg=bu.toString,tr=Hn?Hn.toStringTag:void 0;function Gg(e){var t=Vg.call(e,tr),n=e[tr];try{e[tr]=void 0;var r=!0}catch{}var o=qg.call(e);return r&&(t?e[tr]=n:delete e[tr]),o}var Xg=Object.prototype,Yg=Xg.toString;function Zg(e){return Yg.call(e)}var Jg="[object Null]",Qg="[object Undefined]",Gl=Hn?Hn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?Qg:Jg:Gl&&Gl in Object(e)?Gg(e):Zg(e)}function Kn(e){return e!=null&&typeof e=="object"}var ev="[object Symbol]";function tv(e){return typeof e=="symbol"||Kn(e)&&Mr(e)==ev}function nv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=Pv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zv(e){return function(){return e}}var Iv=function(){try{var e=ms(Object,"defineProperty");return e({},"",{}),e}catch{}}();const mo=Iv;var Av=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:zv(t),writable:!0})}:xu;const kv=Av;var Bv=Ov(kv);const Mv=Bv;var Hv=9007199254740991,Fv=/^(?:0|[1-9]\d*)$/;function Cu(e,t){var n=typeof e;return t=t??Hv,!!t&&(n=="number"||n!="symbol"&&Fv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Kv}function ys(e){return e!=null&&wu(e.length)&&!vs(e)}function Vv(e,t,n){if(!xn(n))return!1;var r=typeof t;return(r=="number"?ys(n)&&Cu(t,n.length):r=="string"&&t in n)?Bo(n[t],e):!1}function qv(e){return Uv(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&Vv(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function ib(e,t){var n=this.__data__,r=Mo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:Cb(e,t,n)}var Sb="\\ud800-\\udfff",_b="\\u0300-\\u036f",Eb="\\ufe20-\\ufe2f",$b="\\u20d0-\\u20ff",Pb=_b+Eb+$b,Rb="\\ufe0e\\ufe0f",Tb="\\u200d",Ob=RegExp("["+Tb+Sb+Pb+Rb+"]");function Au(e){return Ob.test(e)}function zb(e){return e.split("")}var ku="\\ud800-\\udfff",Ib="\\u0300-\\u036f",Ab="\\ufe20-\\ufe2f",kb="\\u20d0-\\u20ff",Bb=Ib+Ab+kb,Mb="\\ufe0e\\ufe0f",Hb="["+ku+"]",Ti="["+Bb+"]",Oi="\\ud83c[\\udffb-\\udfff]",Fb="(?:"+Ti+"|"+Oi+")",Bu="[^"+ku+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Lb="\\u200d",Fu=Fb+"?",Lu="["+Mb+"]?",jb="(?:"+Lb+"(?:"+[Bu,Mu,Hu].join("|")+")"+Lu+Fu+")*",Db=Lu+Fu+jb,Nb="(?:"+[Bu+Ti+"?",Ti,Mu,Hu,Hb].join("|")+")",Wb=RegExp(Oi+"(?="+Oi+")|"+Nb+Db,"g");function Ub(e){return e.match(Wb)||[]}function Kb(e){return Au(e)?Ub(e):zb(e)}function Vb(e){return function(t){t=hb(t);var n=Au(t)?Kb(t):void 0,r=n?n[0]:t.charAt(0),o=n?wb(n,1).join(""):t.slice(1);return r[e]()+o}}var qb=Vb("toUpperCase");const Gb=qb;function Xb(){this.__data__=new kt,this.size=0}function Yb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Zb(e){return this.__data__.get(e)}function Jb(e){return this.__data__.has(e)}var Qb=200;function e0(e,t){var n=this.__data__;if(n instanceof kt){var r=n.__data__;if(!Ou||r.length{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:zr,ssr:s}),l!=null&&l.preflightStyleDisabled||Nu.mount({id:"n-global",head:!0,anchorMetaName:zr,ssr:s})};s?c():bn(c)}return V(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:w,peers:y}=v,{common:b=void 0,[e]:{common:S=void 0,self:F=void 0,peers:_={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:P=void 0,[e]:z={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:m,peers:C={}}=z,A=sr({},u||S||b||r.common,P,m,w),j=sr((c=f||F||r.self)===null||c===void 0?void 0:c(A),p,z,v);return{common:A,self:j,peers:sr({},r.peers,_,d),peerOverrides:sr({},p.peers,C,y)}})}nt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Wu="n";function Cn(e={},t={defaultBordered:!0}){const n=ze(mn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:V(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:V(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||Wu),namespaceRef:V(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function Fo(e,t,n){if(!t)return;const r=ko(),o=ze(mn,null),i=()=>{const s=n==null?void 0:n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:zr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||Nu.mount({id:"n-global",head:!0,anchorMetaName:zr,ssr:r})};r?i():bn(i)}function Gn(e,t,n,r){var o;n||bp("useThemeClass","cssVarsRef is not passed");const i=(o=ze(mn,null))===null||o===void 0?void 0:o.mergedThemeHashRef,s=se(""),l=ko();let a;const c=`__${e}`,u=()=>{let f=c;const d=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),d&&(f+="-"+d);const{themeOverrides:p,builtinThemeOverrides:w}=r;p&&(f+="-"+Pr(JSON.stringify(p))),w&&(f+="-"+Pr(JSON.stringify(w))),s.value=f,a=()=>{const y=n.value;let b="";for(const S in y)b+=`${S}: ${y[S]};`;D(`.${f}`,b).mount({id:f,ssr:l}),a=void 0}};return Qi(()=>{u()}),{themeClass:s,onRender:()=>{a==null||a()}}}function Lo(e,t,n){if(!t)return;const r=ko(),o=V(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=()=>{Qi(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(Hp(l,r))return;const{value:a}=o;a&&a.style.mount({id:l,head:!0,anchorMetaName:zr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r})})};return r?i():bn(i),o}function Hr(e,t){return Ee({name:qb(e),setup(){var n;const r=(n=ze(mn,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const v0=Hr("close",E("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},E("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},E("g",{fill:"currentColor","fill-rule":"nonzero"},E("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"}))))),Uu=Hr("error",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Ai=Hr("info",E("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Ku=Hr("success",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Vu=Hr("warning",E("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),xs=Ee({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=ou();return()=>E(Gt,{name:"icon-switch-transition",appear:n.value},t)}}),qu=Ee({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:a}=e;a&&a()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:a}=e;a&&a()}function i(l){if(l.style.transition="none",e.width){const a=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${a}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const a=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${a}px`}l.offsetWidth}function s(l){var a;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(a=e.onAfterEnter)===null||a===void 0||a.call(e)}return()=>{const l=e.group?Dh:Gt;return E(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),m0=xe("base-icon",` + `)]),mn="n-config-provider",zr="naive-ui-style";function r1(e){return e}function nt(e,t,n,r,o,i){const s=ko(),l=ze(mn,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:zr,ssr:s}),l!=null&&l.preflightStyleDisabled||Nu.mount({id:"n-global",head:!0,anchorMetaName:zr,ssr:s})};s?c():yn(c)}return V(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:w,peers:y}=v,{common:b=void 0,[e]:{common:S=void 0,self:F=void 0,peers:_={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:P=void 0,[e]:z={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:m,peers:C={}}=z,A=sr({},u||S||b||r.common,P,m,w),j=sr((c=f||F||r.self)===null||c===void 0?void 0:c(A),p,z,v);return{common:A,self:j,peers:sr({},r.peers,_,d),peerOverrides:sr({},p.peers,C,y)}})}nt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Wu="n";function wn(e={},t={defaultBordered:!0}){const n=ze(mn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:V(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:V(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||Wu),namespaceRef:V(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function Fo(e,t,n){if(!t)return;const r=ko(),o=ze(mn,null),i=()=>{const s=n==null?void 0:n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:zr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||Nu.mount({id:"n-global",head:!0,anchorMetaName:zr,ssr:r})};r?i():yn(i)}function Gn(e,t,n,r){var o;n||yp("useThemeClass","cssVarsRef is not passed");const i=(o=ze(mn,null))===null||o===void 0?void 0:o.mergedThemeHashRef,s=se(""),l=ko();let a;const c=`__${e}`,u=()=>{let f=c;const d=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),d&&(f+="-"+d);const{themeOverrides:p,builtinThemeOverrides:w}=r;p&&(f+="-"+Pr(JSON.stringify(p))),w&&(f+="-"+Pr(JSON.stringify(w))),s.value=f,a=()=>{const y=n.value;let b="";for(const S in y)b+=`${S}: ${y[S]};`;D(`.${f}`,b).mount({id:f,ssr:l}),a=void 0}};return Qi(()=>{u()}),{themeClass:s,onRender:()=>{a==null||a()}}}function Lo(e,t,n){if(!t)return;const r=ko(),o=V(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=()=>{Qi(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(Fp(l,r))return;const{value:a}=o;a&&a.style.mount({id:l,head:!0,anchorMetaName:zr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r})})};return r?i():yn(i),o}function Hr(e,t){return Ee({name:Gb(e),setup(){var n;const r=(n=ze(mn,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const m0=Hr("close",E("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},E("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},E("g",{fill:"currentColor","fill-rule":"nonzero"},E("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"}))))),Uu=Hr("error",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Ai=Hr("info",E("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Ku=Hr("success",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Vu=Hr("warning",E("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),xs=Ee({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=ou();return()=>E(Gt,{name:"icon-switch-transition",appear:n.value},t)}}),qu=Ee({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:a}=e;a&&a()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:a}=e;a&&a()}function i(l){if(l.style.transition="none",e.width){const a=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${a}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const a=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${a}px`}l.offsetWidth}function s(l){var a;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(a=e.onAfterEnter)===null||a===void 0||a.call(e)}return()=>{const l=e.group?Dh:Gt;return E(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),b0=xe("base-icon",` height: 1em; width: 1em; line-height: 1em; @@ -40,7 +40,7 @@ ${t} `,[D("svg",` height: 1em; width: 1em; - `)]),Cs=Ee({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){Fo("-base-icon",m0,zt(e,"clsPrefix"))},render(){return E("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)}}),b0=xe("base-close",` + `)]),Cs=Ee({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){Fo("-base-icon",b0,zt(e,"clsPrefix"))},render(){return E("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)}}),y0=xe("base-close",` display: flex; align-items: center; justify-content: center; @@ -84,7 +84,7 @@ ${t} background-color: transparent; `),de("round",[D("&::before",` border-radius: 50%; - `)])]),ws=Ee({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 Fo("-base-close",b0,zt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return E(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},E(Cs,{clsPrefix:t},{default:()=>E(v0,null)}))}}}),{cubicBezierEaseInOut:y0}=xn;function bo({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${y0} !important`}={}){return[D("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),D("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),D("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const x0=D([D("@keyframes loading-container-rotate",` + `)])]),ws=Ee({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 Fo("-base-close",y0,zt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return E(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},E(Cs,{clsPrefix:t},{default:()=>E(m0,null)}))}}}),{cubicBezierEaseInOut:x0}=Cn;function bo({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${x0} !important`}={}){return[D("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),D("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),D("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const C0=D([D("@keyframes loading-container-rotate",` to { -webkit-transform: rotate(360deg); transform: rotate(360deg); @@ -216,7 +216,7 @@ ${t} left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[bo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),C0={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Gu=Ee({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}},C0),setup(e){Fo("-base-loading",x0,zt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return E("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},E(xs,null,{default:()=>this.show?E("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},E("div",{class:`${e}-base-loading__container`},E("div",{class:`${e}-base-loading__container-layer`},E("div",{class:`${e}-base-loading__container-layer-left`},E("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),E("div",{class:`${e}-base-loading__container-layer-patch`},E("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),E("div",{class:`${e}-base-loading__container-layer-right`},E("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):E("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),ee={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"},w0=gn(ee.neutralBase),Xu=gn(ee.neutralInvertBase),S0="rgba("+Xu.slice(0,3).join(", ")+", ";function ca(e){return S0+String(e)+")"}function je(e){const t=Array.from(Xu);return t[3]=Number(e),fs(w0,t)}const _0=Object.assign(Object.assign({name:"common"},xn),{baseColor:ee.neutralBase,primaryColor:ee.primaryDefault,primaryColorHover:ee.primaryHover,primaryColorPressed:ee.primaryActive,primaryColorSuppl:ee.primarySuppl,infoColor:ee.infoDefault,infoColorHover:ee.infoHover,infoColorPressed:ee.infoActive,infoColorSuppl:ee.infoSuppl,successColor:ee.successDefault,successColorHover:ee.successHover,successColorPressed:ee.successActive,successColorSuppl:ee.successSuppl,warningColor:ee.warningDefault,warningColorHover:ee.warningHover,warningColorPressed:ee.warningActive,warningColorSuppl:ee.warningSuppl,errorColor:ee.errorDefault,errorColorHover:ee.errorHover,errorColorPressed:ee.errorActive,errorColorSuppl:ee.errorSuppl,textColorBase:ee.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:je(ee.alpha4),placeholderColor:je(ee.alpha4),placeholderColorDisabled:je(ee.alpha5),iconColor:je(ee.alpha4),iconColorHover:qr(je(ee.alpha4),{lightness:.75}),iconColorPressed:qr(je(ee.alpha4),{lightness:.9}),iconColorDisabled:je(ee.alpha5),opacity1:ee.alpha1,opacity2:ee.alpha2,opacity3:ee.alpha3,opacity4:ee.alpha4,opacity5:ee.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:je(Number(ee.alphaClose)),closeIconColorHover:je(Number(ee.alphaClose)),closeIconColorPressed:je(Number(ee.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:je(ee.alpha4),clearColorHover:qr(je(ee.alpha4),{lightness:.75}),clearColorPressed:qr(je(ee.alpha4),{lightness:.9}),scrollbarColor:ca(ee.alphaScrollbar),scrollbarColorHover:ca(ee.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:je(ee.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:ee.neutralPopover,tableColor:ee.neutralCard,cardColor:ee.neutralCard,modalColor:ee.neutralModal,bodyColor:ee.neutralBody,tagColor:"#eee",avatarColor:je(ee.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:je(ee.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:ee.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)"}),Xn=_0,E0=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},$0={name:"Scrollbar",common:Xn,self:E0},Yu=$0,{cubicBezierEaseInOut:ua}=xn;function Zu({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=ua,leaveCubicBezier:o=ua}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const P0=xe("scrollbar",` + `,[bo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),w0={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Gu=Ee({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}},w0),setup(e){Fo("-base-loading",C0,zt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return E("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},E(xs,null,{default:()=>this.show?E("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},E("div",{class:`${e}-base-loading__container`},E("div",{class:`${e}-base-loading__container-layer`},E("div",{class:`${e}-base-loading__container-layer-left`},E("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),E("div",{class:`${e}-base-loading__container-layer-patch`},E("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),E("div",{class:`${e}-base-loading__container-layer-right`},E("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):E("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),ee={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"},S0=gn(ee.neutralBase),Xu=gn(ee.neutralInvertBase),_0="rgba("+Xu.slice(0,3).join(", ")+", ";function ca(e){return _0+String(e)+")"}function je(e){const t=Array.from(Xu);return t[3]=Number(e),fs(S0,t)}const E0=Object.assign(Object.assign({name:"common"},Cn),{baseColor:ee.neutralBase,primaryColor:ee.primaryDefault,primaryColorHover:ee.primaryHover,primaryColorPressed:ee.primaryActive,primaryColorSuppl:ee.primarySuppl,infoColor:ee.infoDefault,infoColorHover:ee.infoHover,infoColorPressed:ee.infoActive,infoColorSuppl:ee.infoSuppl,successColor:ee.successDefault,successColorHover:ee.successHover,successColorPressed:ee.successActive,successColorSuppl:ee.successSuppl,warningColor:ee.warningDefault,warningColorHover:ee.warningHover,warningColorPressed:ee.warningActive,warningColorSuppl:ee.warningSuppl,errorColor:ee.errorDefault,errorColorHover:ee.errorHover,errorColorPressed:ee.errorActive,errorColorSuppl:ee.errorSuppl,textColorBase:ee.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:je(ee.alpha4),placeholderColor:je(ee.alpha4),placeholderColorDisabled:je(ee.alpha5),iconColor:je(ee.alpha4),iconColorHover:qr(je(ee.alpha4),{lightness:.75}),iconColorPressed:qr(je(ee.alpha4),{lightness:.9}),iconColorDisabled:je(ee.alpha5),opacity1:ee.alpha1,opacity2:ee.alpha2,opacity3:ee.alpha3,opacity4:ee.alpha4,opacity5:ee.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:je(Number(ee.alphaClose)),closeIconColorHover:je(Number(ee.alphaClose)),closeIconColorPressed:je(Number(ee.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:je(ee.alpha4),clearColorHover:qr(je(ee.alpha4),{lightness:.75}),clearColorPressed:qr(je(ee.alpha4),{lightness:.9}),scrollbarColor:ca(ee.alphaScrollbar),scrollbarColorHover:ca(ee.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:je(ee.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:ee.neutralPopover,tableColor:ee.neutralCard,cardColor:ee.neutralCard,modalColor:ee.neutralModal,bodyColor:ee.neutralBody,tagColor:"#eee",avatarColor:je(ee.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:je(ee.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:ee.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)"}),Xn=E0,$0=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},P0={name:"Scrollbar",common:Xn,self:$0},Yu=P0,{cubicBezierEaseInOut:ua}=Cn;function Zu({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=ua,leaveCubicBezier:o=ua}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const R0=xe("scrollbar",` overflow: hidden; position: relative; z-index: auto; @@ -264,14 +264,14 @@ ${t} pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); - `,[Zu(),D("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),R0=Object.assign(Object.assign({},nt.props),{size:{type:Number,default:5},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,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Ju=Ee({name:"Scrollbar",props:R0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Cn(e),o=Lo("Scrollbar",r,t),i=se(null),s=se(null),l=se(null),a=se(null),c=se(null),u=se(null),f=se(null),d=se(null),v=se(null),p=se(null),w=se(null),y=se(0),b=se(0),S=se(!1),F=se(!1);let _=!1,P=!1,z,m,C=0,A=0,j=0,W=0;const k=Qp(),Q=V(()=>{const{value:H}=d,{value:J}=u,{value:ce}=p;return H===null||J===null||ce===null?0:Math.min(H,ce*H/J+e.size*1.5)}),te=V(()=>`${Q.value}px`),ne=V(()=>{const{value:H}=v,{value:J}=f,{value:ce}=w;return H===null||J===null||ce===null?0:ce*H/J+e.size*1.5}),oe=V(()=>`${ne.value}px`),K=V(()=>{const{value:H}=d,{value:J}=y,{value:ce}=u,{value:$e}=p;if(H===null||ce===null||$e===null)return 0;{const He=ce-H;return He?J/He*($e-Q.value):0}}),re=V(()=>`${K.value}px`),Ce=V(()=>{const{value:H}=v,{value:J}=b,{value:ce}=f,{value:$e}=w;if(H===null||ce===null||$e===null)return 0;{const He=ce-H;return He?J/He*($e-ne.value):0}}),we=V(()=>`${Ce.value}px`),Se=V(()=>{const{value:H}=d,{value:J}=u;return H!==null&&J!==null&&J>H}),Te=V(()=>{const{value:H}=v,{value:J}=f;return H!==null&&J!==null&&J>H}),rt=V(()=>{const{trigger:H}=e;return H==="none"||S.value}),ht=V(()=>{const{trigger:H}=e;return H==="none"||F.value}),Xe=V(()=>{const{container:H}=e;return H?H():s.value}),fe=V(()=>{const{content:H}=e;return H?H():l.value}),R=Lg(()=>{e.container||X({top:y.value,left:b.value})}),U=()=>{R.isDeactivated||Y()},I=H=>{if(R.isDeactivated)return;const{onResize:J}=e;J&&J(H),Y()},X=(H,J)=>{if(!e.scrollable)return;if(typeof H=="number"){h(J??0,H,0,!1,"auto");return}const{left:ce,top:$e,index:He,elSize:Ze,position:St,behavior:Ae,el:_t,debounce:Yn=!0}=H;(ce!==void 0||$e!==void 0)&&h(ce??0,$e??0,0,!1,Ae),_t!==void 0?h(0,_t.offsetTop,_t.offsetHeight,Yn,Ae):He!==void 0&&Ze!==void 0?h(0,He*Ze,Ze,Yn,Ae):St==="bottom"?h(0,Number.MAX_SAFE_INTEGER,0,!1,Ae):St==="top"&&h(0,0,0,!1,Ae)},pe=(H,J)=>{if(!e.scrollable)return;const{value:ce}=Xe;ce&&(typeof H=="object"?ce.scrollBy(H):ce.scrollBy(H,J||0))};function h(H,J,ce,$e,He){const{value:Ze}=Xe;if(Ze){if($e){const{scrollTop:St,offsetHeight:Ae}=Ze;if(J>St){J+ce<=St+Ae||Ze.scrollTo({left:H,top:J+ce-Ae,behavior:He});return}}Ze.scrollTo({left:H,top:J,behavior:He})}}function g(){N(),L(),Y()}function x(){$()}function $(){O(),B()}function O(){m!==void 0&&window.clearTimeout(m),m=window.setTimeout(()=>{F.value=!1},e.duration)}function B(){z!==void 0&&window.clearTimeout(z),z=window.setTimeout(()=>{S.value=!1},e.duration)}function N(){z!==void 0&&window.clearTimeout(z),S.value=!0}function L(){m!==void 0&&window.clearTimeout(m),F.value=!0}function M(H){const{onScroll:J}=e;J&&J(H),T()}function T(){const{value:H}=Xe;H&&(y.value=H.scrollTop,b.value=H.scrollLeft*(o!=null&&o.value?-1:1))}function Z(){const{value:H}=fe;H&&(u.value=H.offsetHeight,f.value=H.offsetWidth);const{value:J}=Xe;J&&(d.value=J.offsetHeight,v.value=J.offsetWidth);const{value:ce}=c,{value:$e}=a;ce&&(w.value=ce.offsetWidth),$e&&(p.value=$e.offsetHeight)}function q(){const{value:H}=Xe;H&&(y.value=H.scrollTop,b.value=H.scrollLeft*(o!=null&&o.value?-1:1),d.value=H.offsetHeight,v.value=H.offsetWidth,u.value=H.scrollHeight,f.value=H.scrollWidth);const{value:J}=c,{value:ce}=a;J&&(w.value=J.offsetWidth),ce&&(p.value=ce.offsetHeight)}function Y(){e.scrollable&&(e.useUnifiedContainer?q():(Z(),T()))}function ae(H){var J;return!(!((J=i.value)===null||J===void 0)&&J.contains(us(H)))}function he(H){H.preventDefault(),H.stopPropagation(),P=!0,it("mousemove",window,be,!0),it("mouseup",window,me,!0),A=b.value,j=o!=null&&o.value?window.innerWidth-H.clientX:H.clientX}function be(H){if(!P)return;z!==void 0&&window.clearTimeout(z),m!==void 0&&window.clearTimeout(m);const{value:J}=v,{value:ce}=f,{value:$e}=ne;if(J===null||ce===null)return;const Ze=(o!=null&&o.value?window.innerWidth-H.clientX-j:H.clientX-j)*(ce-J)/(J-$e),St=ce-J;let Ae=A+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;if(_t){_t.scrollLeft=Ae*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Yn}=e;Yn&&Yn(Ae)}}function me(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,be,!0),Ve("mouseup",window,me,!0),P=!1,Y(),ae(H)&&$()}function Ie(H){H.preventDefault(),H.stopPropagation(),_=!0,it("mousemove",window,Ue,!0),it("mouseup",window,pt,!0),C=y.value,W=H.clientY}function Ue(H){if(!_)return;z!==void 0&&window.clearTimeout(z),m!==void 0&&window.clearTimeout(m);const{value:J}=d,{value:ce}=u,{value:$e}=Q;if(J===null||ce===null)return;const Ze=(H.clientY-W)*(ce-J)/(J-$e),St=ce-J;let Ae=C+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;_t&&(_t.scrollTop=Ae)}function pt(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0),_=!1,Y(),ae(H)&&$()}Qi(()=>{const{value:H}=Te,{value:J}=Se,{value:ce}=t,{value:$e}=c,{value:He}=a;$e&&(H?$e.classList.remove(`${ce}-scrollbar-rail--disabled`):$e.classList.add(`${ce}-scrollbar-rail--disabled`)),He&&(J?He.classList.remove(`${ce}-scrollbar-rail--disabled`):He.classList.add(`${ce}-scrollbar-rail--disabled`))}),Yt(()=>{e.container||Y()}),dt(()=>{z!==void 0&&window.clearTimeout(z),m!==void 0&&window.clearTimeout(m),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0)});const Fr=nt("Scrollbar","-scrollbar",P0,Yu,e,t),Bt=V(()=>{const{common:{cubicBezierEaseInOut:H,scrollbarBorderRadius:J,scrollbarHeight:ce,scrollbarWidth:$e},self:{color:He,colorHover:Ze}}=Fr.value;return{"--n-scrollbar-bezier":H,"--n-scrollbar-color":He,"--n-scrollbar-color-hover":Ze,"--n-scrollbar-border-radius":J,"--n-scrollbar-width":$e,"--n-scrollbar-height":ce}}),wt=n?Gn("scrollbar",void 0,Bt,e):void 0;return Object.assign(Object.assign({},{scrollTo:X,scrollBy:pe,sync:Y,syncUnifiedContainer:q,handleMouseEnterWrapper:g,handleMouseLeaveWrapper:x}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:a,xRailRef:c,needYBar:Se,needXBar:Te,yBarSizePx:te,xBarSizePx:oe,yBarTopPx:re,xBarLeftPx:we,isShowXBar:rt,isShowYBar:ht,isIos:k,handleScroll:M,handleContentResize:U,handleContainerResize:I,handleYScrollMouseDown:Ie,handleXScrollMouseDown:he,cssVars:n?void 0:Bt,themeClass:wt==null?void 0:wt.themeClass,onRender:wt==null?void 0:wt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const s=this.trigger==="none",l=()=>E("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},E(s?ml:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?E("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),a=()=>{var u,f;return(u=this.onRender)===null||u===void 0||u.call(this),E("div",as(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):E("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},E(Ll,{onResize:this.handleContentResize},{default:()=>E("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&E("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},E(s?ml:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?E("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?a():E(Ll,{onResize:this.handleContainerResize},{default:a});return i?E(Me,null,c,l()):c}}),T0=Ju,n1=Ju,{cubicBezierEaseIn:fa,cubicBezierEaseOut:da}=xn;function O0({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${fa}, transform ${t} ${fa} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${da}, transform ${t} ${da} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const z0=xe("base-wave",` + `,[Zu(),D("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),T0=Object.assign(Object.assign({},nt.props),{size:{type:Number,default:5},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,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Ju=Ee({name:"Scrollbar",props:T0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=wn(e),o=Lo("Scrollbar",r,t),i=se(null),s=se(null),l=se(null),a=se(null),c=se(null),u=se(null),f=se(null),d=se(null),v=se(null),p=se(null),w=se(null),y=se(0),b=se(0),S=se(!1),F=se(!1);let _=!1,P=!1,z,m,C=0,A=0,j=0,W=0;const k=eg(),Q=V(()=>{const{value:H}=d,{value:J}=u,{value:ce}=p;return H===null||J===null||ce===null?0:Math.min(H,ce*H/J+e.size*1.5)}),te=V(()=>`${Q.value}px`),ne=V(()=>{const{value:H}=v,{value:J}=f,{value:ce}=w;return H===null||J===null||ce===null?0:ce*H/J+e.size*1.5}),oe=V(()=>`${ne.value}px`),K=V(()=>{const{value:H}=d,{value:J}=y,{value:ce}=u,{value:$e}=p;if(H===null||ce===null||$e===null)return 0;{const He=ce-H;return He?J/He*($e-Q.value):0}}),re=V(()=>`${K.value}px`),Ce=V(()=>{const{value:H}=v,{value:J}=b,{value:ce}=f,{value:$e}=w;if(H===null||ce===null||$e===null)return 0;{const He=ce-H;return He?J/He*($e-ne.value):0}}),we=V(()=>`${Ce.value}px`),Se=V(()=>{const{value:H}=d,{value:J}=u;return H!==null&&J!==null&&J>H}),Te=V(()=>{const{value:H}=v,{value:J}=f;return H!==null&&J!==null&&J>H}),rt=V(()=>{const{trigger:H}=e;return H==="none"||S.value}),ht=V(()=>{const{trigger:H}=e;return H==="none"||F.value}),Xe=V(()=>{const{container:H}=e;return H?H():s.value}),fe=V(()=>{const{content:H}=e;return H?H():l.value}),R=jg(()=>{e.container||X({top:y.value,left:b.value})}),U=()=>{R.isDeactivated||Y()},I=H=>{if(R.isDeactivated)return;const{onResize:J}=e;J&&J(H),Y()},X=(H,J)=>{if(!e.scrollable)return;if(typeof H=="number"){h(J??0,H,0,!1,"auto");return}const{left:ce,top:$e,index:He,elSize:Ze,position:St,behavior:Ae,el:_t,debounce:Yn=!0}=H;(ce!==void 0||$e!==void 0)&&h(ce??0,$e??0,0,!1,Ae),_t!==void 0?h(0,_t.offsetTop,_t.offsetHeight,Yn,Ae):He!==void 0&&Ze!==void 0?h(0,He*Ze,Ze,Yn,Ae):St==="bottom"?h(0,Number.MAX_SAFE_INTEGER,0,!1,Ae):St==="top"&&h(0,0,0,!1,Ae)},pe=(H,J)=>{if(!e.scrollable)return;const{value:ce}=Xe;ce&&(typeof H=="object"?ce.scrollBy(H):ce.scrollBy(H,J||0))};function h(H,J,ce,$e,He){const{value:Ze}=Xe;if(Ze){if($e){const{scrollTop:St,offsetHeight:Ae}=Ze;if(J>St){J+ce<=St+Ae||Ze.scrollTo({left:H,top:J+ce-Ae,behavior:He});return}}Ze.scrollTo({left:H,top:J,behavior:He})}}function g(){N(),L(),Y()}function x(){$()}function $(){O(),B()}function O(){m!==void 0&&window.clearTimeout(m),m=window.setTimeout(()=>{F.value=!1},e.duration)}function B(){z!==void 0&&window.clearTimeout(z),z=window.setTimeout(()=>{S.value=!1},e.duration)}function N(){z!==void 0&&window.clearTimeout(z),S.value=!0}function L(){m!==void 0&&window.clearTimeout(m),F.value=!0}function M(H){const{onScroll:J}=e;J&&J(H),T()}function T(){const{value:H}=Xe;H&&(y.value=H.scrollTop,b.value=H.scrollLeft*(o!=null&&o.value?-1:1))}function Z(){const{value:H}=fe;H&&(u.value=H.offsetHeight,f.value=H.offsetWidth);const{value:J}=Xe;J&&(d.value=J.offsetHeight,v.value=J.offsetWidth);const{value:ce}=c,{value:$e}=a;ce&&(w.value=ce.offsetWidth),$e&&(p.value=$e.offsetHeight)}function q(){const{value:H}=Xe;H&&(y.value=H.scrollTop,b.value=H.scrollLeft*(o!=null&&o.value?-1:1),d.value=H.offsetHeight,v.value=H.offsetWidth,u.value=H.scrollHeight,f.value=H.scrollWidth);const{value:J}=c,{value:ce}=a;J&&(w.value=J.offsetWidth),ce&&(p.value=ce.offsetHeight)}function Y(){e.scrollable&&(e.useUnifiedContainer?q():(Z(),T()))}function ae(H){var J;return!(!((J=i.value)===null||J===void 0)&&J.contains(us(H)))}function he(H){H.preventDefault(),H.stopPropagation(),P=!0,it("mousemove",window,be,!0),it("mouseup",window,me,!0),A=b.value,j=o!=null&&o.value?window.innerWidth-H.clientX:H.clientX}function be(H){if(!P)return;z!==void 0&&window.clearTimeout(z),m!==void 0&&window.clearTimeout(m);const{value:J}=v,{value:ce}=f,{value:$e}=ne;if(J===null||ce===null)return;const Ze=(o!=null&&o.value?window.innerWidth-H.clientX-j:H.clientX-j)*(ce-J)/(J-$e),St=ce-J;let Ae=A+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;if(_t){_t.scrollLeft=Ae*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Yn}=e;Yn&&Yn(Ae)}}function me(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,be,!0),Ve("mouseup",window,me,!0),P=!1,Y(),ae(H)&&$()}function Ie(H){H.preventDefault(),H.stopPropagation(),_=!0,it("mousemove",window,Ue,!0),it("mouseup",window,pt,!0),C=y.value,W=H.clientY}function Ue(H){if(!_)return;z!==void 0&&window.clearTimeout(z),m!==void 0&&window.clearTimeout(m);const{value:J}=d,{value:ce}=u,{value:$e}=Q;if(J===null||ce===null)return;const Ze=(H.clientY-W)*(ce-J)/(J-$e),St=ce-J;let Ae=C+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;_t&&(_t.scrollTop=Ae)}function pt(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0),_=!1,Y(),ae(H)&&$()}Qi(()=>{const{value:H}=Te,{value:J}=Se,{value:ce}=t,{value:$e}=c,{value:He}=a;$e&&(H?$e.classList.remove(`${ce}-scrollbar-rail--disabled`):$e.classList.add(`${ce}-scrollbar-rail--disabled`)),He&&(J?He.classList.remove(`${ce}-scrollbar-rail--disabled`):He.classList.add(`${ce}-scrollbar-rail--disabled`))}),Yt(()=>{e.container||Y()}),dt(()=>{z!==void 0&&window.clearTimeout(z),m!==void 0&&window.clearTimeout(m),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0)});const Fr=nt("Scrollbar","-scrollbar",R0,Yu,e,t),Bt=V(()=>{const{common:{cubicBezierEaseInOut:H,scrollbarBorderRadius:J,scrollbarHeight:ce,scrollbarWidth:$e},self:{color:He,colorHover:Ze}}=Fr.value;return{"--n-scrollbar-bezier":H,"--n-scrollbar-color":He,"--n-scrollbar-color-hover":Ze,"--n-scrollbar-border-radius":J,"--n-scrollbar-width":$e,"--n-scrollbar-height":ce}}),wt=n?Gn("scrollbar",void 0,Bt,e):void 0;return Object.assign(Object.assign({},{scrollTo:X,scrollBy:pe,sync:Y,syncUnifiedContainer:q,handleMouseEnterWrapper:g,handleMouseLeaveWrapper:x}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:a,xRailRef:c,needYBar:Se,needXBar:Te,yBarSizePx:te,xBarSizePx:oe,yBarTopPx:re,xBarLeftPx:we,isShowXBar:rt,isShowYBar:ht,isIos:k,handleScroll:M,handleContentResize:U,handleContainerResize:I,handleYScrollMouseDown:Ie,handleXScrollMouseDown:he,cssVars:n?void 0:Bt,themeClass:wt==null?void 0:wt.themeClass,onRender:wt==null?void 0:wt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const s=this.trigger==="none",l=()=>E("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},E(s?ml:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?E("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),a=()=>{var u,f;return(u=this.onRender)===null||u===void 0||u.call(this),E("div",as(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):E("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},E(Ll,{onResize:this.handleContentResize},{default:()=>E("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&E("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},E(s?ml:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?E("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?a():E(Ll,{onResize:this.handleContainerResize},{default:a});return i?E(Me,null,c,l()):c}}),O0=Ju,o1=Ju,{cubicBezierEaseIn:fa,cubicBezierEaseOut:da}=Cn;function z0({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${fa}, transform ${t} ${fa} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${da}, transform ${t} ${da} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const I0=xe("base-wave",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: inherit; -`),I0=Ee({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Fo("-base-wave",z0,zt(e,"clsPrefix"));const t=se(null),n=se(!1);let r=null;return dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),kn(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return E("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:Ft}=xn;function A0({duration:e=".2s",delay:t=".1s"}={}){return[D("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),D("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` +`),A0=Ee({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Fo("-base-wave",I0,zt(e,"clsPrefix"));const t=se(null),n=se(!1);let r=null;return dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Bn(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return E("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:Ft}=Cn;function k0({duration:e=".2s",delay:t=".1s"}={}){return[D("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),D("&.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; @@ -289,13 +289,13 @@ ${t} max-width ${e} ${Ft}, margin-left ${e} ${Ft}, margin-right ${e} ${Ft}; - `)]}const{cubicBezierEaseInOut:mt,cubicBezierEaseOut:k0,cubicBezierEaseIn:B0}=xn;function M0({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const a=l?"leave":"enter",c=l?"enter":"leave";return[D(`&.fade-in-height-expand-transition-${c}-from, + `)]}const{cubicBezierEaseInOut:mt,cubicBezierEaseOut:B0,cubicBezierEaseIn:M0}=Cn;function H0({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const a=l?"leave":"enter",c=l?"enter":"leave";return[D(`&.fade-in-height-expand-transition-${c}-from, &.fade-in-height-expand-transition-${a}-to`,Object.assign(Object.assign({},i),{opacity:1})),D(`&.fade-in-height-expand-transition-${c}-to, &.fade-in-height-expand-transition-${a}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),D(`&.fade-in-height-expand-transition-${c}-active`,` overflow: ${e}; transition: max-height ${t} ${mt} ${r}, - opacity ${t} ${k0} ${r}, + opacity ${t} ${B0} ${r}, margin-top ${t} ${mt} ${r}, margin-bottom ${t} ${mt} ${r}, padding-top ${t} ${mt} ${r}, @@ -305,13 +305,13 @@ ${t} overflow: ${e}; transition: max-height ${t} ${mt}, - opacity ${t} ${B0}, + opacity ${t} ${M0}, margin-top ${t} ${mt}, margin-bottom ${t} ${mt}, padding-top ${t} ${mt}, padding-bottom ${t} ${mt} ${n?","+n:""} - `)]}const H0=Br&&"chrome"in window;Br&&navigator.userAgent.includes("Firefox");const F0=Br&&navigator.userAgent.includes("Safari")&&!H0;function en(e){return fs(e,[255,255,255,.16])}function to(e){return fs(e,[0,0,0,.12])}const L0="n-button-group",j0={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"},D0=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:v,primaryColorPressed:p,borderColor:w,primaryColor:y,baseColor:b,infoColor:S,infoColorHover:F,infoColorPressed:_,successColor:P,successColorHover:z,successColorPressed:m,warningColor:C,warningColorHover:A,warningColorPressed:j,errorColor:W,errorColorHover:k,errorColorPressed:Q,fontWeight:te,buttonColor2:ne,buttonColor2Hover:oe,buttonColor2Pressed:K,fontWeightStrong:re}=e;return Object.assign(Object.assign({},j0),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ne,colorSecondaryHover:oe,colorSecondaryPressed:K,colorTertiary:ne,colorTertiaryHover:oe,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:oe,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${w}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${w}`,rippleColor:y,colorPrimary:y,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:y,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:y,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:y,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:y,borderPrimary:`1px solid ${y}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${y}`,rippleColorPrimary:y,colorInfo:S,colorHoverInfo:F,colorPressedInfo:_,colorFocusInfo:F,colorDisabledInfo:S,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:S,textColorTextHoverInfo:F,textColorTextPressedInfo:_,textColorTextFocusInfo:F,textColorTextDisabledInfo:f,textColorGhostInfo:S,textColorGhostHoverInfo:F,textColorGhostPressedInfo:_,textColorGhostFocusInfo:F,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${F}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${F}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:P,colorHoverSuccess:z,colorPressedSuccess:m,colorFocusSuccess:z,colorDisabledSuccess:P,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:P,textColorTextHoverSuccess:z,textColorTextPressedSuccess:m,textColorTextFocusSuccess:z,textColorTextDisabledSuccess:f,textColorGhostSuccess:P,textColorGhostHoverSuccess:z,textColorGhostPressedSuccess:m,textColorGhostFocusSuccess:z,textColorGhostDisabledSuccess:P,borderSuccess:`1px solid ${P}`,borderHoverSuccess:`1px solid ${z}`,borderPressedSuccess:`1px solid ${m}`,borderFocusSuccess:`1px solid ${z}`,borderDisabledSuccess:`1px solid ${P}`,rippleColorSuccess:P,colorWarning:C,colorHoverWarning:A,colorPressedWarning:j,colorFocusWarning:A,colorDisabledWarning:C,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:C,textColorTextHoverWarning:A,textColorTextPressedWarning:j,textColorTextFocusWarning:A,textColorTextDisabledWarning:f,textColorGhostWarning:C,textColorGhostHoverWarning:A,textColorGhostPressedWarning:j,textColorGhostFocusWarning:A,textColorGhostDisabledWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${A}`,borderPressedWarning:`1px solid ${j}`,borderFocusWarning:`1px solid ${A}`,borderDisabledWarning:`1px solid ${C}`,rippleColorWarning:C,colorError:W,colorHoverError:k,colorPressedError:Q,colorFocusError:k,colorDisabledError:W,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:W,textColorTextHoverError:k,textColorTextPressedError:Q,textColorTextFocusError:k,textColorTextDisabledError:f,textColorGhostError:W,textColorGhostHoverError:k,textColorGhostPressedError:Q,textColorGhostFocusError:k,textColorGhostDisabledError:W,borderError:`1px solid ${W}`,borderHoverError:`1px solid ${k}`,borderPressedError:`1px solid ${Q}`,borderFocusError:`1px solid ${k}`,borderDisabledError:`1px solid ${W}`,rippleColorError:W,waveOpacity:"0.6",fontWeight:te,fontWeightStrong:re})},N0={name:"Button",common:Xn,self:D0},Qu=N0,W0=D([xe("button",` + `)]}const F0=Br&&"chrome"in window;Br&&navigator.userAgent.includes("Firefox");const L0=Br&&navigator.userAgent.includes("Safari")&&!F0;function en(e){return fs(e,[255,255,255,.16])}function to(e){return fs(e,[0,0,0,.12])}const j0="n-button-group",D0={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"},N0=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:v,primaryColorPressed:p,borderColor:w,primaryColor:y,baseColor:b,infoColor:S,infoColorHover:F,infoColorPressed:_,successColor:P,successColorHover:z,successColorPressed:m,warningColor:C,warningColorHover:A,warningColorPressed:j,errorColor:W,errorColorHover:k,errorColorPressed:Q,fontWeight:te,buttonColor2:ne,buttonColor2Hover:oe,buttonColor2Pressed:K,fontWeightStrong:re}=e;return Object.assign(Object.assign({},D0),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ne,colorSecondaryHover:oe,colorSecondaryPressed:K,colorTertiary:ne,colorTertiaryHover:oe,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:oe,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${w}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${w}`,rippleColor:y,colorPrimary:y,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:y,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:y,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:y,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:y,borderPrimary:`1px solid ${y}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${y}`,rippleColorPrimary:y,colorInfo:S,colorHoverInfo:F,colorPressedInfo:_,colorFocusInfo:F,colorDisabledInfo:S,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:S,textColorTextHoverInfo:F,textColorTextPressedInfo:_,textColorTextFocusInfo:F,textColorTextDisabledInfo:f,textColorGhostInfo:S,textColorGhostHoverInfo:F,textColorGhostPressedInfo:_,textColorGhostFocusInfo:F,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${F}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${F}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:P,colorHoverSuccess:z,colorPressedSuccess:m,colorFocusSuccess:z,colorDisabledSuccess:P,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:P,textColorTextHoverSuccess:z,textColorTextPressedSuccess:m,textColorTextFocusSuccess:z,textColorTextDisabledSuccess:f,textColorGhostSuccess:P,textColorGhostHoverSuccess:z,textColorGhostPressedSuccess:m,textColorGhostFocusSuccess:z,textColorGhostDisabledSuccess:P,borderSuccess:`1px solid ${P}`,borderHoverSuccess:`1px solid ${z}`,borderPressedSuccess:`1px solid ${m}`,borderFocusSuccess:`1px solid ${z}`,borderDisabledSuccess:`1px solid ${P}`,rippleColorSuccess:P,colorWarning:C,colorHoverWarning:A,colorPressedWarning:j,colorFocusWarning:A,colorDisabledWarning:C,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:C,textColorTextHoverWarning:A,textColorTextPressedWarning:j,textColorTextFocusWarning:A,textColorTextDisabledWarning:f,textColorGhostWarning:C,textColorGhostHoverWarning:A,textColorGhostPressedWarning:j,textColorGhostFocusWarning:A,textColorGhostDisabledWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${A}`,borderPressedWarning:`1px solid ${j}`,borderFocusWarning:`1px solid ${A}`,borderDisabledWarning:`1px solid ${C}`,rippleColorWarning:C,colorError:W,colorHoverError:k,colorPressedError:Q,colorFocusError:k,colorDisabledError:W,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:W,textColorTextHoverError:k,textColorTextPressedError:Q,textColorTextFocusError:k,textColorTextDisabledError:f,textColorGhostError:W,textColorGhostHoverError:k,textColorGhostPressedError:Q,textColorGhostFocusError:k,textColorGhostDisabledError:W,borderError:`1px solid ${W}`,borderHoverError:`1px solid ${k}`,borderPressedError:`1px solid ${Q}`,borderFocusError:`1px solid ${k}`,borderDisabledError:`1px solid ${W}`,rippleColorError:W,waveOpacity:"0.6",fontWeight:te,fontWeightStrong:re})},W0={name:"Button",common:Xn,self:N0},Qu=W0,U0=D([xe("button",` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -380,7 +380,7 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[bo({top:"50%",originalTransform:"translateY(-50%)"})]),A0()]),G("content",` + `,[bo({top:"50%",originalTransform:"translateY(-50%)"})]),k0()]),G("content",` display: flex; align-items: center; flex-wrap: nowrap; @@ -388,7 +388,7 @@ ${t} `,[D("~",[G("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),de("block",` display: flex; width: 100%; - `),de("dashed",[G("border, state-border",{borderStyle:"dashed !important"})]),de("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),D("@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)"}}),D("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),U0=Object.assign(Object.assign({},nt.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:!F0}}),K0=Ee({name:"Button",props:U0,setup(e){const t=se(null),n=se(null),r=se(!1),o=Ei(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ze(L0,{}),{mergedSizeRef:s}=jg({},{defaultSize:"medium",mergedSize:_=>{const{size:P}=e;if(P)return P;const{size:z}=i;if(z)return z;const{mergedSize:m}=_||{};return m?m.value:"medium"}}),l=V(()=>e.focusable&&!e.disabled),a=_=>{var P;l.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&l.value&&((P=t.value)===null||P===void 0||P.focus({preventScroll:!0})))},c=_=>{var P;if(!e.disabled&&!e.loading){const{onClick:z}=e;z&&un(z,_),e.text||(P=n.value)===null||P===void 0||P.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:w}=Cn(e),y=nt("Button","-button",W0,Qu,e,p),b=Lo("Button",w,p),S=V(()=>{const _=y.value,{common:{cubicBezierEaseInOut:P,cubicBezierEaseOut:z},self:m}=_,{rippleDuration:C,opacityDisabled:A,fontWeight:j,fontWeightStrong:W}=m,k=s.value,{dashed:Q,type:te,ghost:ne,text:oe,color:K,round:re,circle:Ce,textColor:we,secondary:Se,tertiary:Te,quaternary:rt,strong:ht}=e,Xe={"font-weight":ht?W:j};let fe={"--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 R=te==="tertiary",U=te==="default",I=R?"default":te;if(oe){const M=we||K;fe={"--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":M||m[ie("textColorText",I)],"--n-text-color-hover":M?en(M):m[ie("textColorTextHover",I)],"--n-text-color-pressed":M?to(M):m[ie("textColorTextPressed",I)],"--n-text-color-focus":M?en(M):m[ie("textColorTextHover",I)],"--n-text-color-disabled":M||m[ie("textColorTextDisabled",I)]}}else if(ne||Q){const M=we||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||m[ie("rippleColor",I)],"--n-text-color":M||m[ie("textColorGhost",I)],"--n-text-color-hover":M?en(M):m[ie("textColorGhostHover",I)],"--n-text-color-pressed":M?to(M):m[ie("textColorGhostPressed",I)],"--n-text-color-focus":M?en(M):m[ie("textColorGhostHover",I)],"--n-text-color-disabled":M||m[ie("textColorGhostDisabled",I)]}}else if(Se){const M=U?m.textColor:R?m.textColorTertiary:m[ie("color",I)],T=K||M,Z=te!=="default"&&te!=="tertiary";fe={"--n-color":Z?Vr(T,{alpha:Number(m.colorOpacitySecondary)}):m.colorSecondary,"--n-color-hover":Z?Vr(T,{alpha:Number(m.colorOpacitySecondaryHover)}):m.colorSecondaryHover,"--n-color-pressed":Z?Vr(T,{alpha:Number(m.colorOpacitySecondaryPressed)}):m.colorSecondaryPressed,"--n-color-focus":Z?Vr(T,{alpha:Number(m.colorOpacitySecondaryHover)}):m.colorSecondaryHover,"--n-color-disabled":m.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":T,"--n-text-color-hover":T,"--n-text-color-pressed":T,"--n-text-color-focus":T,"--n-text-color-disabled":T}}else if(Te||rt){const M=U?m.textColor:R?m.textColorTertiary:m[ie("color",I)],T=K||M;Te?(fe["--n-color"]=m.colorTertiary,fe["--n-color-hover"]=m.colorTertiaryHover,fe["--n-color-pressed"]=m.colorTertiaryPressed,fe["--n-color-focus"]=m.colorSecondaryHover,fe["--n-color-disabled"]=m.colorTertiary):(fe["--n-color"]=m.colorQuaternary,fe["--n-color-hover"]=m.colorQuaternaryHover,fe["--n-color-pressed"]=m.colorQuaternaryPressed,fe["--n-color-focus"]=m.colorQuaternaryHover,fe["--n-color-disabled"]=m.colorQuaternary),fe["--n-ripple-color"]="#0000",fe["--n-text-color"]=T,fe["--n-text-color-hover"]=T,fe["--n-text-color-pressed"]=T,fe["--n-text-color-focus"]=T,fe["--n-text-color-disabled"]=T}else fe={"--n-color":K||m[ie("color",I)],"--n-color-hover":K?en(K):m[ie("colorHover",I)],"--n-color-pressed":K?to(K):m[ie("colorPressed",I)],"--n-color-focus":K?en(K):m[ie("colorFocus",I)],"--n-color-disabled":K||m[ie("colorDisabled",I)],"--n-ripple-color":K||m[ie("rippleColor",I)],"--n-text-color":we||(K?m.textColorPrimary:R?m.textColorTertiary:m[ie("textColor",I)]),"--n-text-color-hover":we||(K?m.textColorHoverPrimary:m[ie("textColorHover",I)]),"--n-text-color-pressed":we||(K?m.textColorPressedPrimary:m[ie("textColorPressed",I)]),"--n-text-color-focus":we||(K?m.textColorFocusPrimary:m[ie("textColorFocus",I)]),"--n-text-color-disabled":we||(K?m.textColorDisabledPrimary:m[ie("textColorDisabled",I)])};let X={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};oe?X={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:X={"--n-border":m[ie("border",I)],"--n-border-hover":m[ie("borderHover",I)],"--n-border-pressed":m[ie("borderPressed",I)],"--n-border-focus":m[ie("borderFocus",I)],"--n-border-disabled":m[ie("borderDisabled",I)]};const{[ie("height",k)]:pe,[ie("fontSize",k)]:h,[ie("padding",k)]:g,[ie("paddingRound",k)]:x,[ie("iconSize",k)]:$,[ie("borderRadius",k)]:O,[ie("iconMargin",k)]:B,waveOpacity:N}=m,L={"--n-width":Ce&&!oe?pe:"initial","--n-height":oe?"initial":pe,"--n-font-size":h,"--n-padding":Ce||oe?"initial":re?x:g,"--n-icon-size":$,"--n-icon-margin":B,"--n-border-radius":oe?"initial":Ce||re?pe:O};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":P,"--n-bezier-ease-out":z,"--n-ripple-duration":C,"--n-opacity-disabled":A,"--n-wave-opacity":N},Xe),fe),X),L)}),F=v?Gn("button",V(()=>{let _="";const{dashed:P,type:z,ghost:m,text:C,color:A,round:j,circle:W,textColor:k,secondary:Q,tertiary:te,quaternary:ne,strong:oe}=e;P&&(_+="a"),m&&(_+="b"),C&&(_+="c"),j&&(_+="d"),W&&(_+="e"),Q&&(_+="f"),te&&(_+="g"),ne&&(_+="h"),oe&&(_+="i"),A&&(_+="j"+bl(A)),k&&(_+="k"+bl(k));const{value:K}=s;return _+="l"+K[0],_+="m"+z[0],_}),S,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:s,showBorder:o,enterPressed:r,rtlEnabled:b,handleMousedown:a,handleKeydown:f,handleBlur:d,handleKeyup:u,handleClick:c,customColorCssVars:V(()=>{const{color:_}=e;if(!_)return null;const P=en(_);return{"--n-border-color":_,"--n-border-color-hover":P,"--n-border-color-pressed":to(_),"--n-border-color-focus":P,"--n-border-color-disabled":_}}),cssVars:v?void 0:S,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=yt(this.$slots.default,o=>o&&E("span",{class:`${e}-button__content`},o));return E(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"&&r,E(qu,{width:!0},{default:()=>yt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&E("span",{class:`${e}-button__icon`,style:{margin:xp(this.$slots.default)?"0":""}},E(xs,null,{default:()=>this.loading?E(Gu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):E("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:E(I0,{ref:"waveElRef",clsPrefix:e}),this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),ha=K0,V0={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"},q0=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:s,textColor1:l,dividerColor:a,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:v,closeColorPressed:p,modalColor:w,boxShadow1:y,popoverColor:b,actionColor:S}=e;return Object.assign(Object.assign({},V0),{lineHeight:r,color:i,colorModal:w,colorPopover:b,colorTarget:t,colorEmbedded:S,colorEmbeddedModal:S,colorEmbeddedPopover:S,textColor:s,titleTextColor:l,borderColor:a,actionColor:S,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:y,borderRadius:n})},G0={name:"Card",common:Xn,self:q0},ef=G0,X0=D([xe("card",` + `),de("dashed",[G("border, state-border",{borderStyle:"dashed !important"})]),de("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),D("@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)"}}),D("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),K0=Object.assign(Object.assign({},nt.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:!L0}}),V0=Ee({name:"Button",props:K0,setup(e){const t=se(null),n=se(null),r=se(!1),o=Ei(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ze(j0,{}),{mergedSizeRef:s}=Dg({},{defaultSize:"medium",mergedSize:_=>{const{size:P}=e;if(P)return P;const{size:z}=i;if(z)return z;const{mergedSize:m}=_||{};return m?m.value:"medium"}}),l=V(()=>e.focusable&&!e.disabled),a=_=>{var P;l.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&l.value&&((P=t.value)===null||P===void 0||P.focus({preventScroll:!0})))},c=_=>{var P;if(!e.disabled&&!e.loading){const{onClick:z}=e;z&&un(z,_),e.text||(P=n.value)===null||P===void 0||P.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:w}=wn(e),y=nt("Button","-button",U0,Qu,e,p),b=Lo("Button",w,p),S=V(()=>{const _=y.value,{common:{cubicBezierEaseInOut:P,cubicBezierEaseOut:z},self:m}=_,{rippleDuration:C,opacityDisabled:A,fontWeight:j,fontWeightStrong:W}=m,k=s.value,{dashed:Q,type:te,ghost:ne,text:oe,color:K,round:re,circle:Ce,textColor:we,secondary:Se,tertiary:Te,quaternary:rt,strong:ht}=e,Xe={"font-weight":ht?W:j};let fe={"--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 R=te==="tertiary",U=te==="default",I=R?"default":te;if(oe){const M=we||K;fe={"--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":M||m[ie("textColorText",I)],"--n-text-color-hover":M?en(M):m[ie("textColorTextHover",I)],"--n-text-color-pressed":M?to(M):m[ie("textColorTextPressed",I)],"--n-text-color-focus":M?en(M):m[ie("textColorTextHover",I)],"--n-text-color-disabled":M||m[ie("textColorTextDisabled",I)]}}else if(ne||Q){const M=we||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||m[ie("rippleColor",I)],"--n-text-color":M||m[ie("textColorGhost",I)],"--n-text-color-hover":M?en(M):m[ie("textColorGhostHover",I)],"--n-text-color-pressed":M?to(M):m[ie("textColorGhostPressed",I)],"--n-text-color-focus":M?en(M):m[ie("textColorGhostHover",I)],"--n-text-color-disabled":M||m[ie("textColorGhostDisabled",I)]}}else if(Se){const M=U?m.textColor:R?m.textColorTertiary:m[ie("color",I)],T=K||M,Z=te!=="default"&&te!=="tertiary";fe={"--n-color":Z?Vr(T,{alpha:Number(m.colorOpacitySecondary)}):m.colorSecondary,"--n-color-hover":Z?Vr(T,{alpha:Number(m.colorOpacitySecondaryHover)}):m.colorSecondaryHover,"--n-color-pressed":Z?Vr(T,{alpha:Number(m.colorOpacitySecondaryPressed)}):m.colorSecondaryPressed,"--n-color-focus":Z?Vr(T,{alpha:Number(m.colorOpacitySecondaryHover)}):m.colorSecondaryHover,"--n-color-disabled":m.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":T,"--n-text-color-hover":T,"--n-text-color-pressed":T,"--n-text-color-focus":T,"--n-text-color-disabled":T}}else if(Te||rt){const M=U?m.textColor:R?m.textColorTertiary:m[ie("color",I)],T=K||M;Te?(fe["--n-color"]=m.colorTertiary,fe["--n-color-hover"]=m.colorTertiaryHover,fe["--n-color-pressed"]=m.colorTertiaryPressed,fe["--n-color-focus"]=m.colorSecondaryHover,fe["--n-color-disabled"]=m.colorTertiary):(fe["--n-color"]=m.colorQuaternary,fe["--n-color-hover"]=m.colorQuaternaryHover,fe["--n-color-pressed"]=m.colorQuaternaryPressed,fe["--n-color-focus"]=m.colorQuaternaryHover,fe["--n-color-disabled"]=m.colorQuaternary),fe["--n-ripple-color"]="#0000",fe["--n-text-color"]=T,fe["--n-text-color-hover"]=T,fe["--n-text-color-pressed"]=T,fe["--n-text-color-focus"]=T,fe["--n-text-color-disabled"]=T}else fe={"--n-color":K||m[ie("color",I)],"--n-color-hover":K?en(K):m[ie("colorHover",I)],"--n-color-pressed":K?to(K):m[ie("colorPressed",I)],"--n-color-focus":K?en(K):m[ie("colorFocus",I)],"--n-color-disabled":K||m[ie("colorDisabled",I)],"--n-ripple-color":K||m[ie("rippleColor",I)],"--n-text-color":we||(K?m.textColorPrimary:R?m.textColorTertiary:m[ie("textColor",I)]),"--n-text-color-hover":we||(K?m.textColorHoverPrimary:m[ie("textColorHover",I)]),"--n-text-color-pressed":we||(K?m.textColorPressedPrimary:m[ie("textColorPressed",I)]),"--n-text-color-focus":we||(K?m.textColorFocusPrimary:m[ie("textColorFocus",I)]),"--n-text-color-disabled":we||(K?m.textColorDisabledPrimary:m[ie("textColorDisabled",I)])};let X={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};oe?X={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:X={"--n-border":m[ie("border",I)],"--n-border-hover":m[ie("borderHover",I)],"--n-border-pressed":m[ie("borderPressed",I)],"--n-border-focus":m[ie("borderFocus",I)],"--n-border-disabled":m[ie("borderDisabled",I)]};const{[ie("height",k)]:pe,[ie("fontSize",k)]:h,[ie("padding",k)]:g,[ie("paddingRound",k)]:x,[ie("iconSize",k)]:$,[ie("borderRadius",k)]:O,[ie("iconMargin",k)]:B,waveOpacity:N}=m,L={"--n-width":Ce&&!oe?pe:"initial","--n-height":oe?"initial":pe,"--n-font-size":h,"--n-padding":Ce||oe?"initial":re?x:g,"--n-icon-size":$,"--n-icon-margin":B,"--n-border-radius":oe?"initial":Ce||re?pe:O};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":P,"--n-bezier-ease-out":z,"--n-ripple-duration":C,"--n-opacity-disabled":A,"--n-wave-opacity":N},Xe),fe),X),L)}),F=v?Gn("button",V(()=>{let _="";const{dashed:P,type:z,ghost:m,text:C,color:A,round:j,circle:W,textColor:k,secondary:Q,tertiary:te,quaternary:ne,strong:oe}=e;P&&(_+="a"),m&&(_+="b"),C&&(_+="c"),j&&(_+="d"),W&&(_+="e"),Q&&(_+="f"),te&&(_+="g"),ne&&(_+="h"),oe&&(_+="i"),A&&(_+="j"+bl(A)),k&&(_+="k"+bl(k));const{value:K}=s;return _+="l"+K[0],_+="m"+z[0],_}),S,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:s,showBorder:o,enterPressed:r,rtlEnabled:b,handleMousedown:a,handleKeydown:f,handleBlur:d,handleKeyup:u,handleClick:c,customColorCssVars:V(()=>{const{color:_}=e;if(!_)return null;const P=en(_);return{"--n-border-color":_,"--n-border-color-hover":P,"--n-border-color-pressed":to(_),"--n-border-color-focus":P,"--n-border-color-disabled":_}}),cssVars:v?void 0:S,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=yt(this.$slots.default,o=>o&&E("span",{class:`${e}-button__content`},o));return E(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"&&r,E(qu,{width:!0},{default:()=>yt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&E("span",{class:`${e}-button__icon`,style:{margin:Cp(this.$slots.default)?"0":""}},E(xs,null,{default:()=>this.loading?E(Gu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):E("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:E(A0,{ref:"waveElRef",clsPrefix:e}),this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),ha=V0,q0={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"},G0=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:s,textColor1:l,dividerColor:a,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:v,closeColorPressed:p,modalColor:w,boxShadow1:y,popoverColor:b,actionColor:S}=e;return Object.assign(Object.assign({},q0),{lineHeight:r,color:i,colorModal:w,colorPopover:b,colorTarget:t,colorEmbedded:S,colorEmbeddedModal:S,colorEmbeddedPopover:S,textColor:s,titleTextColor:l,borderColor:a,actionColor:S,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:y,borderRadius:n})},X0={name:"Card",common:Xn,self:G0},ef=X0,Y0=D([xe("card",` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -470,11 +470,11 @@ ${t} background: var(--n-color-modal); `,[de("embedded",` background-color: var(--n-color-embedded-modal); - `)])),Np(xe("card",` + `)])),Wp(xe("card",` background: var(--n-color-popover); `,[de("embedded",` background-color: var(--n-color-embedded-popover); - `)]))]),Ss={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,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"}},Y0=hs(Ss),Z0=Object.assign(Object.assign({},nt.props),Ss),J0=Ee({name:"Card",props:Z0,setup(e){const t=()=>{const{onClose:c}=e;c&&un(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=Cn(e),i=nt("Card","-card",X0,ef,e,r),s=Lo("Card",o,r),l=V(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:v,titleTextColor:p,titleFontWeight:w,borderColor:y,actionColor:b,borderRadius:S,lineHeight:F,closeIconColor:_,closeIconColorHover:P,closeIconColorPressed:z,closeColorHover:m,closeColorPressed:C,closeBorderRadius:A,closeIconSize:j,closeSize:W,boxShadow:k,colorPopover:Q,colorEmbedded:te,colorEmbeddedModal:ne,colorEmbeddedPopover:oe,[ie("padding",c)]:K,[ie("fontSize",c)]:re,[ie("titleFontSize",c)]:Ce},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:Te,bottom:rt}=cp(K);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":u,"--n-color-modal":f,"--n-color-popover":Q,"--n-color-embedded":te,"--n-color-embedded-modal":ne,"--n-color-embedded-popover":oe,"--n-color-target":d,"--n-text-color":v,"--n-line-height":F,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":w,"--n-close-icon-color":_,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":z,"--n-close-color-hover":m,"--n-close-color-pressed":C,"--n-border-color":y,"--n-box-shadow":k,"--n-padding-top":Se,"--n-padding-bottom":rt,"--n-padding-left":Te,"--n-font-size":re,"--n-title-font-size":Ce,"--n-close-size":W,"--n-close-icon-size":j,"--n-close-border-radius":A}}),a=n?Gn("card",V(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:s,tag:l,$slots:a}=this;return i==null||i(),E(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},yt(a.cover,c=>c&&E("div",{class:`${r}-card-cover`,role:"none"},c)),yt(a.header,c=>c||this.title||this.closable?E("div",{class:`${r}-card-header`,style:this.headerStyle},E("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),yt(a["header-extra"],u=>u&&E("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},u)),this.closable?E(ws,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),yt(a.default,c=>c&&E("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),yt(a.footer,c=>c&&[E("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),yt(a.action,c=>c&&E("div",{class:`${r}-card__action`,role:"none"},c)))}}),Q0={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,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(go("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ey=Ee({name:"ConfigProvider",alias:["App"],props:Q0,setup(e){const t=ze(mn,null),n=V(()=>{const{theme:p}=e;if(p===null)return;const w=t==null?void 0:t.mergedThemeRef.value;return p===void 0?w:w===void 0?p:Object.assign({},w,p)}),r=V(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const w=t==null?void 0:t.mergedThemeOverridesRef.value;return w===void 0?p:sr({},w,p)}}}),o=Ei(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Ei(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),s=V(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=V(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),a=V(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=V(()=>{var p;const{rtl:w}=e;if(w===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const b of w)y[b.name]=qt(b),(p=b.peers)===null||p===void 0||p.forEach(S=>{S.name in y||(y[S.name]=qt(S))});return y}),u=V(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),d=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=V(()=>{const{value:p}=n,{value:w}=r,y=w&&Object.keys(w).length!==0,b=p==null?void 0:p.name;return b?y?`${b}-${Pr(JSON.stringify(r.value))}`:b:y?Pr(JSON.stringify(r.value)):""});return qe(mn,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:a,mergedLocaleRef:V(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:V(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:V(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:V(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1}),{mergedClsPrefix:a,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):E(this.as||this.tag,{class:`${this.mergedClsPrefix||Wu}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),ty={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"},ny=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:a,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:v,dividerColor:p,borderRadius:w,fontWeightStrong:y,lineHeight:b,fontSize:S}=e;return Object.assign(Object.assign({},ty),{fontSize:S,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:a,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:w,iconColor:v,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:w,titleFontWeight:y})},ry={name:"Dialog",common:Xn,peers:{Button:Qu},self:ny},tf=ry,jo={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,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},nf=hs(jo),oy=D([xe("dialog",` + `)]))]),Ss={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,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"}},Z0=hs(Ss),J0=Object.assign(Object.assign({},nt.props),Ss),Q0=Ee({name:"Card",props:J0,setup(e){const t=()=>{const{onClose:c}=e;c&&un(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=wn(e),i=nt("Card","-card",Y0,ef,e,r),s=Lo("Card",o,r),l=V(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:v,titleTextColor:p,titleFontWeight:w,borderColor:y,actionColor:b,borderRadius:S,lineHeight:F,closeIconColor:_,closeIconColorHover:P,closeIconColorPressed:z,closeColorHover:m,closeColorPressed:C,closeBorderRadius:A,closeIconSize:j,closeSize:W,boxShadow:k,colorPopover:Q,colorEmbedded:te,colorEmbeddedModal:ne,colorEmbeddedPopover:oe,[ie("padding",c)]:K,[ie("fontSize",c)]:re,[ie("titleFontSize",c)]:Ce},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:Te,bottom:rt}=up(K);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":u,"--n-color-modal":f,"--n-color-popover":Q,"--n-color-embedded":te,"--n-color-embedded-modal":ne,"--n-color-embedded-popover":oe,"--n-color-target":d,"--n-text-color":v,"--n-line-height":F,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":w,"--n-close-icon-color":_,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":z,"--n-close-color-hover":m,"--n-close-color-pressed":C,"--n-border-color":y,"--n-box-shadow":k,"--n-padding-top":Se,"--n-padding-bottom":rt,"--n-padding-left":Te,"--n-font-size":re,"--n-title-font-size":Ce,"--n-close-size":W,"--n-close-icon-size":j,"--n-close-border-radius":A}}),a=n?Gn("card",V(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:s,tag:l,$slots:a}=this;return i==null||i(),E(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},yt(a.cover,c=>c&&E("div",{class:`${r}-card-cover`,role:"none"},c)),yt(a.header,c=>c||this.title||this.closable?E("div",{class:`${r}-card-header`,style:this.headerStyle},E("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),yt(a["header-extra"],u=>u&&E("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},u)),this.closable?E(ws,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),yt(a.default,c=>c&&E("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),yt(a.footer,c=>c&&[E("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),yt(a.action,c=>c&&E("div",{class:`${r}-card__action`,role:"none"},c)))}}),ey={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,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(go("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ty=Ee({name:"ConfigProvider",alias:["App"],props:ey,setup(e){const t=ze(mn,null),n=V(()=>{const{theme:p}=e;if(p===null)return;const w=t==null?void 0:t.mergedThemeRef.value;return p===void 0?w:w===void 0?p:Object.assign({},w,p)}),r=V(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const w=t==null?void 0:t.mergedThemeOverridesRef.value;return w===void 0?p:sr({},w,p)}}}),o=Ei(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Ei(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),s=V(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=V(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),a=V(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=V(()=>{var p;const{rtl:w}=e;if(w===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const b of w)y[b.name]=qt(b),(p=b.peers)===null||p===void 0||p.forEach(S=>{S.name in y||(y[S.name]=qt(S))});return y}),u=V(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),d=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=V(()=>{const{value:p}=n,{value:w}=r,y=w&&Object.keys(w).length!==0,b=p==null?void 0:p.name;return b?y?`${b}-${Pr(JSON.stringify(r.value))}`:b:y?Pr(JSON.stringify(r.value)):""});return qe(mn,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:a,mergedLocaleRef:V(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:V(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:V(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:V(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1}),{mergedClsPrefix:a,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):E(this.as||this.tag,{class:`${this.mergedClsPrefix||Wu}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),ny={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"},ry=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:a,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:v,dividerColor:p,borderRadius:w,fontWeightStrong:y,lineHeight:b,fontSize:S}=e;return Object.assign(Object.assign({},ny),{fontSize:S,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:a,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:w,iconColor:v,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:w,titleFontWeight:y})},oy={name:"Dialog",common:Xn,peers:{Button:Qu},self:ry},tf=oy,jo={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,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},nf=hs(jo),iy=D([xe("dialog",` word-break: break-word; line-height: var(--n-line-height); position: relative; @@ -520,7 +520,7 @@ ${t} `)),xe("dialog",[Jc(` width: 446px; max-width: calc(100vw - 32px); - `)])]),iy={default:()=>E(Ai,null),info:()=>E(Ai,null),success:()=>E(Ku,null),warning:()=>E(Vu,null),error:()=>E(Uu,null)},rf=Ee({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},nt.props),jo),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=Cn(e),o=V(()=>{var f,d;const{iconPlacement:v}=e;return v||((d=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||d===void 0?void 0:d.iconPlacement)||"left"});function i(f){const{onPositiveClick:d}=e;d&&d(f)}function s(f){const{onNegativeClick:d}=e;d&&d(f)}function l(){const{onClose:f}=e;f&&f()}const a=nt("Dialog","-dialog",oy,tf,e,n),c=V(()=>{const{type:f}=e,d=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:w,border:y,titleTextColor:b,textColor:S,color:F,closeBorderRadius:_,closeColorHover:P,closeColorPressed:z,closeIconColor:m,closeIconColorHover:C,closeIconColorPressed:A,closeIconSize:j,borderRadius:W,titleFontWeight:k,titleFontSize:Q,padding:te,iconSize:ne,actionSpace:oe,contentMargin:K,closeSize:re,[d==="top"?"iconMarginIconTop":"iconMargin"]:Ce,[d==="top"?"closeMarginIconTop":"closeMargin"]:we,[ie("iconColor",f)]:Se}}=a.value;return{"--n-font-size":p,"--n-icon-color":Se,"--n-bezier":v,"--n-close-margin":we,"--n-icon-margin":Ce,"--n-icon-size":ne,"--n-close-size":re,"--n-close-icon-size":j,"--n-close-border-radius":_,"--n-close-color-hover":P,"--n-close-color-pressed":z,"--n-close-icon-color":m,"--n-close-icon-color-hover":C,"--n-close-icon-color-pressed":A,"--n-color":F,"--n-text-color":S,"--n-border-radius":W,"--n-padding":te,"--n-line-height":w,"--n-border":y,"--n-content-margin":K,"--n-title-font-size":Q,"--n-title-font-weight":k,"--n-title-text-color":b,"--n-action-space":oe}}),u=r?Gn("dialog",V(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:a,handlePositiveClick:i,handleNegativeClick:s,handleCloseClick:l,cssVars:r?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:s,content:l,action:a,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:d,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:w,loading:y,type:b,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const F=i?E(Cs,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>yt(this.$slots.icon,P=>P||(this.icon?tn(this.icon):iy[this.type]()))}):null,_=yt(this.$slots.action,P=>P||u||c||a?E("div",{class:`${S}-dialog__action`},P||(a?[tn(a)]:[this.negativeText&&E(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>tn(this.negativeText)}),this.positiveText&&E(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:y,loading:y,onClick:v},f),{default:()=>tn(this.positiveText)})])):null);return E("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${n}`,t&&`${S}-dialog--bordered`],style:r,role:"dialog"},o?E(ws,{clsPrefix:S,class:`${S}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?E("div",{class:`${S}-dialog-icon-container`},F):null,E("div",{class:`${S}-dialog__title`},i&&n==="left"?F:null,vl(this.$slots.header,()=>[tn(s)])),E("div",{class:[`${S}-dialog__content`,_?"":`${S}-dialog__content--last`]},vl(this.$slots.default,()=>[tn(l)])),_)}}),of="n-dialog-provider",sy="n-dialog-api",ly="n-dialog-reactive-list",ay=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},cy={name:"Modal",common:Xn,peers:{Scrollbar:Yu,Dialog:tf,Card:ef},self:ay},uy=cy,_s=Object.assign(Object.assign({},Ss),jo),fy=hs(_s),dy=Ee({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},_s),{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=se(null),n=se(null),r=se(e.show),o=se(null),i=se(null);ut(zt(e,"show"),y=>{y&&(r.value=!0)}),Hg(V(()=>e.blockScroll&&r.value));const s=ze(iu);function l(){if(s.transformOriginRef.value==="center")return"";const{value:y}=o,{value:b}=i;if(y===null||b===null)return"";if(n.value){const S=n.value.containerScrollTop;return`${y}px ${b+S}px`}return""}function a(y){if(s.transformOriginRef.value==="center")return;const b=s.getMousePosition();if(!b||!n.value)return;const S=n.value.containerScrollTop,{offsetLeft:F,offsetTop:_}=y;if(b){const P=b.y,z=b.x;o.value=-(F-z),i.value=-(_-P-S)}y.style.transformOrigin=l()}function c(y){kn(()=>{a(y)})}function u(y){y.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function d(){const{onClose:y}=e;y&&y()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const w=se(null);return ut(w,y=>{y&&kn(()=>{const b=y.el;b&&t.value!==b&&(t.value=b)})}),qe(eg,t),qe(tg,null),qe(ng,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:w,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:d,handleAfterLeave:f,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:s}=this;let l=null;if(!i){if(l=yp(e),!l){go("modal","default slot is empty");return}l=It(l),l.props=as({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?fi(E("div",{role:"none",class:`${s}-modal-body-wrapper`},E(T0,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>{var a;return[(a=this.renderMask)===null||a===void 0?void 0:a.call(this),E(Mg,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return E(Gt,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const u=[[cl,this.show]],{onClickoutside:f}=this;return f&&u.push([og,this.onClickoutside,void 0,{capture:!0}]),fi(this.preset==="confirm"||this.preset==="dialog"?E(rf,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},po(this.$props,nf),{"aria-modal":"true"}),e):this.preset==="card"?E(J0,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},po(this.$props,Y0),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[cl,this.displayDirective==="if"||this.displayed||this.show]]):null}}),hy=D([xe("modal-container",` + `)])]),sy={default:()=>E(Ai,null),info:()=>E(Ai,null),success:()=>E(Ku,null),warning:()=>E(Vu,null),error:()=>E(Uu,null)},rf=Ee({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},nt.props),jo),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=wn(e),o=V(()=>{var f,d;const{iconPlacement:v}=e;return v||((d=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||d===void 0?void 0:d.iconPlacement)||"left"});function i(f){const{onPositiveClick:d}=e;d&&d(f)}function s(f){const{onNegativeClick:d}=e;d&&d(f)}function l(){const{onClose:f}=e;f&&f()}const a=nt("Dialog","-dialog",iy,tf,e,n),c=V(()=>{const{type:f}=e,d=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:w,border:y,titleTextColor:b,textColor:S,color:F,closeBorderRadius:_,closeColorHover:P,closeColorPressed:z,closeIconColor:m,closeIconColorHover:C,closeIconColorPressed:A,closeIconSize:j,borderRadius:W,titleFontWeight:k,titleFontSize:Q,padding:te,iconSize:ne,actionSpace:oe,contentMargin:K,closeSize:re,[d==="top"?"iconMarginIconTop":"iconMargin"]:Ce,[d==="top"?"closeMarginIconTop":"closeMargin"]:we,[ie("iconColor",f)]:Se}}=a.value;return{"--n-font-size":p,"--n-icon-color":Se,"--n-bezier":v,"--n-close-margin":we,"--n-icon-margin":Ce,"--n-icon-size":ne,"--n-close-size":re,"--n-close-icon-size":j,"--n-close-border-radius":_,"--n-close-color-hover":P,"--n-close-color-pressed":z,"--n-close-icon-color":m,"--n-close-icon-color-hover":C,"--n-close-icon-color-pressed":A,"--n-color":F,"--n-text-color":S,"--n-border-radius":W,"--n-padding":te,"--n-line-height":w,"--n-border":y,"--n-content-margin":K,"--n-title-font-size":Q,"--n-title-font-weight":k,"--n-title-text-color":b,"--n-action-space":oe}}),u=r?Gn("dialog",V(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:a,handlePositiveClick:i,handleNegativeClick:s,handleCloseClick:l,cssVars:r?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:s,content:l,action:a,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:d,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:w,loading:y,type:b,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const F=i?E(Cs,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>yt(this.$slots.icon,P=>P||(this.icon?tn(this.icon):sy[this.type]()))}):null,_=yt(this.$slots.action,P=>P||u||c||a?E("div",{class:`${S}-dialog__action`},P||(a?[tn(a)]:[this.negativeText&&E(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>tn(this.negativeText)}),this.positiveText&&E(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:y,loading:y,onClick:v},f),{default:()=>tn(this.positiveText)})])):null);return E("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${n}`,t&&`${S}-dialog--bordered`],style:r,role:"dialog"},o?E(ws,{clsPrefix:S,class:`${S}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?E("div",{class:`${S}-dialog-icon-container`},F):null,E("div",{class:`${S}-dialog__title`},i&&n==="left"?F:null,vl(this.$slots.header,()=>[tn(s)])),E("div",{class:[`${S}-dialog__content`,_?"":`${S}-dialog__content--last`]},vl(this.$slots.default,()=>[tn(l)])),_)}}),of="n-dialog-provider",ly="n-dialog-api",ay="n-dialog-reactive-list",cy=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},uy={name:"Modal",common:Xn,peers:{Scrollbar:Yu,Dialog:tf,Card:ef},self:cy},fy=uy,_s=Object.assign(Object.assign({},Ss),jo),dy=hs(_s),hy=Ee({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},_s),{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=se(null),n=se(null),r=se(e.show),o=se(null),i=se(null);ut(zt(e,"show"),y=>{y&&(r.value=!0)}),Fg(V(()=>e.blockScroll&&r.value));const s=ze(iu);function l(){if(s.transformOriginRef.value==="center")return"";const{value:y}=o,{value:b}=i;if(y===null||b===null)return"";if(n.value){const S=n.value.containerScrollTop;return`${y}px ${b+S}px`}return""}function a(y){if(s.transformOriginRef.value==="center")return;const b=s.getMousePosition();if(!b||!n.value)return;const S=n.value.containerScrollTop,{offsetLeft:F,offsetTop:_}=y;if(b){const P=b.y,z=b.x;o.value=-(F-z),i.value=-(_-P-S)}y.style.transformOrigin=l()}function c(y){Bn(()=>{a(y)})}function u(y){y.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function d(){const{onClose:y}=e;y&&y()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const w=se(null);return ut(w,y=>{y&&Bn(()=>{const b=y.el;b&&t.value!==b&&(t.value=b)})}),qe(tg,t),qe(ng,null),qe(rg,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:w,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:d,handleAfterLeave:f,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:s}=this;let l=null;if(!i){if(l=xp(e),!l){go("modal","default slot is empty");return}l=It(l),l.props=as({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?fi(E("div",{role:"none",class:`${s}-modal-body-wrapper`},E(O0,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>{var a;return[(a=this.renderMask)===null||a===void 0?void 0:a.call(this),E(Hg,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return E(Gt,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const u=[[cl,this.show]],{onClickoutside:f}=this;return f&&u.push([ig,this.onClickoutside,void 0,{capture:!0}]),fi(this.preset==="confirm"||this.preset==="dialog"?E(rf,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},po(this.$props,nf),{"aria-modal":"true"}),e):this.preset==="card"?E(Q0,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},po(this.$props,Z0),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[cl,this.displayDirective==="if"||this.displayed||this.show]]):null}}),py=D([xe("modal-container",` position: fixed; left: 0; top: 0; @@ -551,12 +551,12 @@ ${t} color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[O0({duration:".25s",enterScale:".5"})])]),py=Object.assign(Object.assign(Object.assign(Object.assign({},nt.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}}),_s),{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,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),gy=Ee({name:"Modal",inheritAttrs:!1,props:py,setup(e){const t=se(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Cn(e),i=nt("Modal","-modal",hy,uy,e,n),s=ru(64),l=nu(),a=ou(),c=e.internalDialog?ze(of,null):null,u=Fg();function f(P){const{onUpdateShow:z,"onUpdate:show":m,onHide:C}=e;z&&un(z,P),m&&un(m,P),C&&!P&&C(P)}function d(){const{onClose:P}=e;P?Promise.resolve(P()).then(z=>{z!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:P}=e;P?Promise.resolve(P()).then(z=>{z!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:P}=e;P?Promise.resolve(P()).then(z=>{z!==!1&&f(!1)}):f(!1)}function w(){const{onBeforeLeave:P,onBeforeHide:z}=e;P&&un(P),z&&z()}function y(){const{onAfterLeave:P,onAfterHide:z}=e;P&&un(P),z&&z()}function b(P){var z;const{onMaskClick:m}=e;m&&m(P),e.maskClosable&&!((z=t.value)===null||z===void 0)&&z.contains(us(P))&&f(!1)}function S(P){var z;(z=e.onEsc)===null||z===void 0||z.call(e),e.show&&e.closeOnEsc&&Up(P)&&!u.value&&f(!1)}qe(iu,{getMousePosition:()=>{if(c){const{clickedRef:P,clickPositionRef:z}=c;if(P.value&&z.value)return z.value}return s.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:a,appearRef:zt(e,"internalAppear"),transformOriginRef:zt(e,"transformOrigin")});const F=V(()=>{const{common:{cubicBezierEaseOut:P},self:{boxShadow:z,color:m,textColor:C}}=i.value;return{"--n-bezier-ease-out":P,"--n-box-shadow":z,"--n-color":m,"--n-text-color":C}}),_=o?Gn("theme-class",void 0,F,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:a,containerRef:t,presetProps:V(()=>po(e,fy)),handleEsc:S,handleAfterLeave:y,handleClickoutside:b,handleBeforeLeave:w,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:d,cssVars:o?void 0:F,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return E(dg,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return fi(E("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},E(dy,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:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return E(Gt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?E("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ag,{zIndex:this.zIndex,enabled:this.show}]])}})}}),vy=Object.assign(Object.assign({},jo),{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}),my=Ee({name:"DialogEnvironment",props:Object.assign(Object.assign({},vy),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=se(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&a()}):a()}function s(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&a())}function l(){const{onEsc:u}=e;u&&u()}function a(){t.value=!1}function c(u){t.value=u}return{show:t,hide:a,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:s,to:l,maskClosable:a,show:c}=this;return E(gy,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:l,maskClosable:a,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>E(rf,Object.assign({},po(this.$props,nf),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),by={injectionKey:String,to:[String,Object]},yy=Ee({name:"DialogProvider",props:by,setup(){const e=se([]),t={};function n(l={}){const a=ds(),c=Xt(Object.assign(Object.assign({},l),{key:a,destroy:()=>{t[`n-dialog-${a}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>a=>n(Object.assign(Object.assign({},a),{type:l})));function o(l){const{value:a}=e;a.splice(a.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const s={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return qe(sy,s),qe(of,{clickedRef:ru(64),clickPositionRef:nu()}),qe(ly,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return E(Me,null,[this.dialogList.map(n=>E(my,Uc(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),xy={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"},Cy=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:s,errorColor:l,warningColor:a,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:v,closeColorHover:p,closeColorPressed:w}=e;return Object.assign(Object.assign({},xy),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:a,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:w,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:w,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:w,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:w,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:w,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:w,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:v})},wy={name:"Message",common:Xn,self:Cy},Sy=wy,sf={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},_y="n-message-api",lf="n-message-provider",Ey=D([xe("message-wrapper",` + `,[z0({duration:".25s",enterScale:".5"})])]),gy=Object.assign(Object.assign(Object.assign(Object.assign({},nt.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}}),_s),{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,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),vy=Ee({name:"Modal",inheritAttrs:!1,props:gy,setup(e){const t=se(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=wn(e),i=nt("Modal","-modal",py,fy,e,n),s=ru(64),l=nu(),a=ou(),c=e.internalDialog?ze(of,null):null,u=Lg();function f(P){const{onUpdateShow:z,"onUpdate:show":m,onHide:C}=e;z&&un(z,P),m&&un(m,P),C&&!P&&C(P)}function d(){const{onClose:P}=e;P?Promise.resolve(P()).then(z=>{z!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:P}=e;P?Promise.resolve(P()).then(z=>{z!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:P}=e;P?Promise.resolve(P()).then(z=>{z!==!1&&f(!1)}):f(!1)}function w(){const{onBeforeLeave:P,onBeforeHide:z}=e;P&&un(P),z&&z()}function y(){const{onAfterLeave:P,onAfterHide:z}=e;P&&un(P),z&&z()}function b(P){var z;const{onMaskClick:m}=e;m&&m(P),e.maskClosable&&!((z=t.value)===null||z===void 0)&&z.contains(us(P))&&f(!1)}function S(P){var z;(z=e.onEsc)===null||z===void 0||z.call(e),e.show&&e.closeOnEsc&&Kp(P)&&!u.value&&f(!1)}qe(iu,{getMousePosition:()=>{if(c){const{clickedRef:P,clickPositionRef:z}=c;if(P.value&&z.value)return z.value}return s.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:a,appearRef:zt(e,"internalAppear"),transformOriginRef:zt(e,"transformOrigin")});const F=V(()=>{const{common:{cubicBezierEaseOut:P},self:{boxShadow:z,color:m,textColor:C}}=i.value;return{"--n-bezier-ease-out":P,"--n-box-shadow":z,"--n-color":m,"--n-text-color":C}}),_=o?Gn("theme-class",void 0,F,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:a,containerRef:t,presetProps:V(()=>po(e,dy)),handleEsc:S,handleAfterLeave:y,handleClickoutside:b,handleBeforeLeave:w,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:d,cssVars:o?void 0:F,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return E(hg,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return fi(E("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},E(hy,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:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return E(Gt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?E("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[cg,{zIndex:this.zIndex,enabled:this.show}]])}})}}),my=Object.assign(Object.assign({},jo),{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}),by=Ee({name:"DialogEnvironment",props:Object.assign(Object.assign({},my),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=se(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&a()}):a()}function s(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&a())}function l(){const{onEsc:u}=e;u&&u()}function a(){t.value=!1}function c(u){t.value=u}return{show:t,hide:a,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:s,to:l,maskClosable:a,show:c}=this;return E(vy,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:l,maskClosable:a,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>E(rf,Object.assign({},po(this.$props,nf),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),yy={injectionKey:String,to:[String,Object]},xy=Ee({name:"DialogProvider",props:yy,setup(){const e=se([]),t={};function n(l={}){const a=ds(),c=Xt(Object.assign(Object.assign({},l),{key:a,destroy:()=>{t[`n-dialog-${a}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>a=>n(Object.assign(Object.assign({},a),{type:l})));function o(l){const{value:a}=e;a.splice(a.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const s={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return qe(ly,s),qe(of,{clickedRef:ru(64),clickPositionRef:nu()}),qe(ay,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return E(Me,null,[this.dialogList.map(n=>E(by,Uc(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),Cy={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"},wy=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:s,errorColor:l,warningColor:a,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:v,closeColorHover:p,closeColorPressed:w}=e;return Object.assign(Object.assign({},Cy),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:a,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:w,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:w,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:w,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:w,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:w,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:w,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:v})},Sy={name:"Message",common:Xn,self:wy},_y=Sy,sf={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},Ey="n-message-api",lf="n-message-provider",$y=D([xe("message-wrapper",` margin: var(--n-margin); z-index: 0; transform-origin: top center; display: flex; - `,[M0({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),xe("message",` + `,[H0({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),xe("message",` box-sizing: border-box; display: flex; align-items: center; @@ -644,8 +644,8 @@ ${t} right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),$y={info:()=>E(Ai,null),success:()=>E(Ku,null),warning:()=>E(Vu,null),error:()=>E(Uu,null),default:()=>null},Py=Ee({name:"Message",props:Object.assign(Object.assign({},sf),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=Cn(e),{props:r,mergedClsPrefixRef:o}=ze(lf),i=Lo("Message",n,o),s=nt("Message","-message",Ey,Sy,r,o),l=V(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:v,iconMargin:p,closeMargin:w,closeSize:y,iconSize:b,fontSize:S,lineHeight:F,borderRadius:_,iconColorInfo:P,iconColorSuccess:z,iconColorWarning:m,iconColorError:C,iconColorLoading:A,closeIconSize:j,closeBorderRadius:W,[ie("textColor",c)]:k,[ie("boxShadow",c)]:Q,[ie("color",c)]:te,[ie("closeColorHover",c)]:ne,[ie("closeColorPressed",c)]:oe,[ie("closeIconColor",c)]:K,[ie("closeIconColorPressed",c)]:re,[ie("closeIconColorHover",c)]:Ce}}=s.value;return{"--n-bezier":u,"--n-margin":d,"--n-padding":f,"--n-max-width":v,"--n-font-size":S,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":j,"--n-close-border-radius":W,"--n-close-size":y,"--n-close-margin":w,"--n-text-color":k,"--n-color":te,"--n-box-shadow":Q,"--n-icon-color-info":P,"--n-icon-color-success":z,"--n-icon-color-warning":m,"--n-icon-color-error":C,"--n-icon-color-loading":A,"--n-close-color-hover":ne,"--n-close-color-pressed":oe,"--n-close-icon-color":K,"--n-close-icon-color-pressed":re,"--n-close-icon-color-hover":Ce,"--n-line-height":F,"--n-border-radius":_}}),a=t?Gn("message",V(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:s,onRender:l,icon:a,handleClose:c,showIcon:u}=this;l==null||l();let f;return E("div",{class:[`${o}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):E("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Ry(a,t,o))&&u?E("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},E(xs,null,{default:()=>f})):null,E("div",{class:`${o}-message__content`},tn(r)),n?E(ws,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Ry(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?E(Gu,{clsPrefix:n,strokeWidth:24,scale:.85}):$y[t]();return r?E(Cs,{clsPrefix:n,key:t},{default:()=>r}):null}}const Ty=Ee({name:"MessageEnvironment",props:Object.assign(Object.assign({},sf),{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 n=se(!0);Yt(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function a(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:d,internalKey:v}=e;u&&u(),f&&f(v),d&&d()}function c(){s()}return{show:n,hide:s,handleClose:l,handleAfterLeave:a,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return E(qu,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?E(Py,{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]})}}),Oy=Object.assign(Object.assign({},nt.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),zy=Ee({name:"MessageProvider",props:Oy,setup(e){const{mergedClsPrefixRef:t}=Cn(e),n=se([]),r=se({}),o={create(a,c){return i(a,Object.assign({type:"default"},c))},info(a,c){return i(a,Object.assign(Object.assign({},c),{type:"info"}))},success(a,c){return i(a,Object.assign(Object.assign({},c),{type:"success"}))},warning(a,c){return i(a,Object.assign(Object.assign({},c),{type:"warning"}))},error(a,c){return i(a,Object.assign(Object.assign({},c),{type:"error"}))},loading(a,c){return i(a,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};qe(lf,{props:e,mergedClsPrefixRef:t}),qe(_y,o);function i(a,c){const u=ds(),f=Xt(Object.assign(Object.assign({},c),{content:a,key:u,destroy:()=>{var v;(v=r.value[u])===null||v===void 0||v.hide()}})),{max:d}=e;return d&&n.value.length>=d&&n.value.shift(),n.value.push(f),f}function s(a){n.value.splice(n.value.findIndex(c=>c.key===a),1),delete r.value[a]}function l(){Object.values(r.value).forEach(a=>{a.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:s},o)},render(){var e,t,n;return E(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?E(Ec,{to:(n=this.to)!==null&&n!==void 0?n:"body"},E("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>E(Ty,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Uc(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});/*! + `)])]),Py={info:()=>E(Ai,null),success:()=>E(Ku,null),warning:()=>E(Vu,null),error:()=>E(Uu,null),default:()=>null},Ry=Ee({name:"Message",props:Object.assign(Object.assign({},sf),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=wn(e),{props:r,mergedClsPrefixRef:o}=ze(lf),i=Lo("Message",n,o),s=nt("Message","-message",$y,_y,r,o),l=V(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:v,iconMargin:p,closeMargin:w,closeSize:y,iconSize:b,fontSize:S,lineHeight:F,borderRadius:_,iconColorInfo:P,iconColorSuccess:z,iconColorWarning:m,iconColorError:C,iconColorLoading:A,closeIconSize:j,closeBorderRadius:W,[ie("textColor",c)]:k,[ie("boxShadow",c)]:Q,[ie("color",c)]:te,[ie("closeColorHover",c)]:ne,[ie("closeColorPressed",c)]:oe,[ie("closeIconColor",c)]:K,[ie("closeIconColorPressed",c)]:re,[ie("closeIconColorHover",c)]:Ce}}=s.value;return{"--n-bezier":u,"--n-margin":d,"--n-padding":f,"--n-max-width":v,"--n-font-size":S,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":j,"--n-close-border-radius":W,"--n-close-size":y,"--n-close-margin":w,"--n-text-color":k,"--n-color":te,"--n-box-shadow":Q,"--n-icon-color-info":P,"--n-icon-color-success":z,"--n-icon-color-warning":m,"--n-icon-color-error":C,"--n-icon-color-loading":A,"--n-close-color-hover":ne,"--n-close-color-pressed":oe,"--n-close-icon-color":K,"--n-close-icon-color-pressed":re,"--n-close-icon-color-hover":Ce,"--n-line-height":F,"--n-border-radius":_}}),a=t?Gn("message",V(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:s,onRender:l,icon:a,handleClose:c,showIcon:u}=this;l==null||l();let f;return E("div",{class:[`${o}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):E("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Ty(a,t,o))&&u?E("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},E(xs,null,{default:()=>f})):null,E("div",{class:`${o}-message__content`},tn(r)),n?E(ws,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Ty(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?E(Gu,{clsPrefix:n,strokeWidth:24,scale:.85}):Py[t]();return r?E(Cs,{clsPrefix:n,key:t},{default:()=>r}):null}}const Oy=Ee({name:"MessageEnvironment",props:Object.assign(Object.assign({},sf),{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 n=se(!0);Yt(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function a(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:d,internalKey:v}=e;u&&u(),f&&f(v),d&&d()}function c(){s()}return{show:n,hide:s,handleClose:l,handleAfterLeave:a,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return E(qu,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?E(Ry,{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]})}}),zy=Object.assign(Object.assign({},nt.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),Iy=Ee({name:"MessageProvider",props:zy,setup(e){const{mergedClsPrefixRef:t}=wn(e),n=se([]),r=se({}),o={create(a,c){return i(a,Object.assign({type:"default"},c))},info(a,c){return i(a,Object.assign(Object.assign({},c),{type:"info"}))},success(a,c){return i(a,Object.assign(Object.assign({},c),{type:"success"}))},warning(a,c){return i(a,Object.assign(Object.assign({},c),{type:"warning"}))},error(a,c){return i(a,Object.assign(Object.assign({},c),{type:"error"}))},loading(a,c){return i(a,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};qe(lf,{props:e,mergedClsPrefixRef:t}),qe(Ey,o);function i(a,c){const u=ds(),f=Xt(Object.assign(Object.assign({},c),{content:a,key:u,destroy:()=>{var v;(v=r.value[u])===null||v===void 0||v.hide()}})),{max:d}=e;return d&&n.value.length>=d&&n.value.shift(),n.value.push(f),f}function s(a){n.value.splice(n.value.findIndex(c=>c.key===a),1),delete r.value[a]}function l(){Object.values(r.value).forEach(a=>{a.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:s},o)},render(){var e,t,n;return E(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?E(Ec,{to:(n=this.to)!==null&&n!==void 0?n:"body"},E("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>E(Oy,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Uc(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});/*! * vue-router v4.2.0 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Pn=typeof window<"u";function Iy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,Ay=/\/$/,ky=e=>e.replace(Ay,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Fy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function By(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function My(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Hy(e[n],t[n]))return!1;return!0}function Hy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Fy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function Ly(e){if(!e)if(Pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ky(e)}const jy=/^[^#]+#/;function Dy(e,t){return e.replace(jy,"#")+t}function Ny(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ny(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function Uy(e,t){ki.set(e,t)}function Ky(e){const t=ki.get(e);return ki.delete(e),t}let Vy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function qy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(b=>{b(n.value,p,{delta:y,type:Ir.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Gy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Vy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Xy(e){e=Ly(e);const t=Gy(e),n=qy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Dy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Yy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xy(e)}function Zy(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Fn(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function Et(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Jy={sensitive:!1,strict:!1,start:!0,end:!0},Qy=/[.+*?^${}()[\]/\\]/g;function ex(e,t){const n=ye({},Jy,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function nx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const rx={type:0,value:""},ox=/[a-zA-Z0-9_]/;function ix(e){if(!e)return[[]];if(e==="/")return[[rx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Fn(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Fn(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:w,path:p,params:v,matched:y,meta:ux(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ax(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:cx(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function cx(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ux(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,fx=/&/g,dx=/\//g,hx=/=/g,px=/\?/g,pf=/\+/g,gx=/%5B/g,vx=/%5D/g,gf=/%5E/g,mx=/%60/g,vf=/%7B/g,bx=/%7C/g,mf=/%7D/g,yx=/%20/g;function Es(e){return encodeURI(""+e).replace(bx,"|").replace(gx,"[").replace(vx,"]")}function xx(e){return Es(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return Es(e).replace(pf,"%2B").replace(yx,"+").replace(hf,"%23").replace(fx,"%26").replace(mx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Cx(e){return Bi(e).replace(hx,"%3D")}function wx(e){return Es(e).replace(hf,"%23").replace(px,"%3F")}function Sx(e){return e==null?"":wx(e).replace(dx,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function _x(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ex(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const $x=Symbol(""),Ea=Symbol(""),$s=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Fn(4,{from:n,to:t})):f instanceof Error?l(f):Zy(f)?l(Fn(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Px(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Iy(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Px(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=ze($s),n=ze(bf),r=V(()=>t.resolve(Ct(e.to))),o=V(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Hn.bind(null,a[c-2])):d}),i=V(()=>o.value>-1&&zx(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return Ox(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Rx=Ee({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:$a,setup(e,{slots:t}){const n=Xt($a(e)),{options:r}=ze($s),o=V(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Tx=Rx;function Ox(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 zx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Ix=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=V(()=>e.route||r.value),i=ze(Ea,0),s=V(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=V(()=>o.value.matched[s.value]);qe(Ea,V(()=>s.value+1)),qe($x,l),qe(Mi,o);const a=se();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Hn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Ix;function Ax(e){const t=lx(e.routes,e),n=e.parseQuery||_x,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,Sx),d=ri.bind(null,yo);function v(R,U){let I,X;return uf(R)?(I=t.getRecordMatcher(R),X=U):X=R,t.addRoute(X,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function b(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),$=t.resolve({path:x.path},U),O=o.createHref(x.fullPath);return ye(x,$,{params:d($.params),hash:yo(x.hash),redirectedFrom:void 0,href:O})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const $ in x)x[$]==null&&delete x[$];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const X=t.resolve(I,U),pe=R.hash||"";X.params=u(d(X.params));const h=By(r,ye({},R,{hash:xx(pe),path:X.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?Ex(R.query):R.query||{}},X,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Fn(8,{from:U,to:R})}function _(R){return m(R)}function P(R){return _(ye(S(R),{replace:!0}))}function z(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let X=typeof I=="function"?I(R):I;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ye({query:R.query,hash:R.hash,params:"path"in X?{}:R.params},X)}}function m(R,U){const I=c=b(R),X=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=z(I);if(x)return m(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const $=I;$.redirectedFrom=U;let O;return!h&&My(r,X,I)&&(O=Fn(16,{to:$,from:X}),Se(X,X,!0,!1)),(O?Promise.resolve(O):j($,X)).catch(B=>Et(B)?Et(B,2)?B:we(B):re(B,$,X)).then(B=>{if(B){if(Et(B,2))return m(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||$)}else B=k($,X,!0,g,pe);return W($,X,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function A(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function j(R,U){let I;const[X,pe,h]=kx(R,U);I=ii(X.reverse(),"beforeRouteLeave",R,U);for(const x of X)x.leaveGuards.forEach($=>{I.push(Wt($,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach($=>{I.push(Wt($,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const $ of x.beforeEnter)I.push(Wt($,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>Et(x,8)?x:Promise.reject(x))}function W(R,U,I){for(const X of l.list())A(()=>X(R,U,I))}function k(R,U,I,X,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Pn?history.state:{};I&&(X||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let Q;function te(){Q||(Q=o.listen((R,U,I)=>{if(!Xe.listening)return;const X=b(R),pe=z(X);if(pe){m(ye(pe,{replace:!0}),X).catch(gr);return}c=X;const h=a.value;Pn&&Uy(va(h.fullPath,I.delta),Do()),j(X,h).catch(g=>Et(g,12)?g:Et(g,2)?(m(g.to,X).then(x=>{Et(x,20)&&!I.delta&&I.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),re(g,X,h))).then(g=>{g=g||k(X,h,!1),g&&(I.delta&&!Et(g,8)?o.go(-I.delta,!1):I.type===Ir.pop&&Et(g,20)&&o.go(-1,!1)),W(X,h,g)}).catch(gr)}))}let ne=nr(),oe=nr(),K;function re(R,U,I){we(R);const X=oe.list();return X.length?X.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ne.add([R,U])})}function we(R){return K||(K=!R,te(),ne.list().forEach(([U,I])=>R?I(R):U()),ne.reset()),R}function Se(R,U,I,X){const{scrollBehavior:pe}=e;if(!Pn||!pe)return Promise.resolve();const h=!I&&Ky(va(R.fullPath,0))||(X||!I)&&history.state&&history.state.scroll||null;return kn().then(()=>pe(R,U,h)).then(g=>g&&Wy(g)).catch(g=>re(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:b,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:oe.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Tx),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Pn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=V(()=>a.value[pe]);R.provide($s,U),R.provide(bf,Xt(I)),R.provide(Mi,a);const X=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,Q&&Q(),Q=null,a.value=Lt,rt=!1,K=!1),X()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>A(I)),Promise.resolve())}return Xe}function kx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sHn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Hn(c,a))||o.push(a))}return[n,r,o]}const Bx=Ee({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ey),{"theme-overrides":t},{default:ro(()=>[Fe(Ct(yy),null,{default:ro(()=>[Fe(Ct(zy),null,{default:ro(()=>[Fe(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Mx="modulepreload",Hx=function(e){return"/web/"+e},Oa={},Fx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Hx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Mx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Lx=Ax({history:Yy("/web"),routes:[{path:"/",name:"chat",component:()=>Fx(()=>import("./index-d9a4ae7e.js"),["assets/index-d9a4ae7e.js","assets/index-0e8bf8a6.css"])}]}),Ps=Gh(Bx);ap(Ps);Ps.use(Lx);Ps.mount("#app");export{wu as $,ou as A,E as B,Mp as C,ag as D,kn as E,ms as F,Un as G,Bm as H,Su as I,ys as J,km as K,dg as L,vo as M,ev as N,Vn as O,db as P,dv as Q,Mr as R,Ou as S,Mn as T,Bo as U,aa as V,$u as W,qn as X,Ru as Y,Kn as Z,yn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,a0 as a3,tv as a4,mn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,bo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,Zx as aI,F0 as aJ,jg as aK,T0 as aL,Ll as aM,cp as aN,Br as aO,t1 as aP,fs as aQ,hc as aR,go as aS,tn as aT,O0 as aU,wi as aV,Xx as aW,Gx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,Cn as ab,nt as ac,Gn as ad,Cs as ae,ie as af,_i as ag,de as ah,Qx as ai,Qi as aj,Gt as ak,og as al,cl as am,us as an,xp as ao,Mg as ap,as as aq,yt as ar,Me as as,n1 as at,yp as au,It as av,Er as aw,po as ax,un as ay,Vr as az,Xt as b,Zc as b0,Np as b1,bp as b2,_y as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,M0 as ba,Ec as bb,Vx as bc,is as bd,Ux as be,jx as bf,qx as bg,Ct as bh,ss as bi,ro as bj,Fe as bk,gy as bl,Tc as bm,dc as bn,vc as bo,gc as bp,Oe as bq,Wx as br,Kx as bs,Wi as bt,Dx as bu,Nx as bv,V as c,bn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,Yx as j,ze as k,tg as l,eg as m,Ee as n,Yt as o,ng as p,qe as q,se as r,Ar as s,$l as t,Ei as u,fi as v,ut as w,e1 as x,ko as y,zt as z}; + */const Rn=typeof window<"u";function Ay(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,ky=/\/$/,By=e=>e.replace(ky,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Ly(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function My(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Fn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fy(e[n],t[n]))return!1;return!0}function Fy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ly(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function jy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),By(e)}const Dy=/^[^#]+#/;function Ny(e,t){return e.replace(Dy,"#")+t}function Wy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Uy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Wy(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function Ky(e,t){ki.set(e,t)}function Vy(e){const t=ki.get(e);return ki.delete(e),t}let qy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function Gy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(b=>{b(n.value,p,{delta:y,type:Ir.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Xy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:qy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Yy(e){e=jy(e);const t=Xy(e),n=Gy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Ny.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Zy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Yy(e)}function Jy(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Ln(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function Et(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Qy={sensitive:!1,strict:!1,start:!0,end:!0},ex=/[.+*?^${}()[\]/\\]/g;function tx(e,t){const n=ye({},Qy,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function rx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ox={type:0,value:""},ix=/[a-zA-Z0-9_]/;function sx(e){if(!e)return[[]];if(e==="/")return[[ox]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Ln(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Ln(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:w,path:p,params:v,matched:y,meta:fx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function cx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ux(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ux(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,dx=/&/g,hx=/\//g,px=/=/g,gx=/\?/g,pf=/\+/g,vx=/%5B/g,mx=/%5D/g,gf=/%5E/g,bx=/%60/g,vf=/%7B/g,yx=/%7C/g,mf=/%7D/g,xx=/%20/g;function Es(e){return encodeURI(""+e).replace(yx,"|").replace(vx,"[").replace(mx,"]")}function Cx(e){return Es(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return Es(e).replace(pf,"%2B").replace(xx,"+").replace(hf,"%23").replace(dx,"%26").replace(bx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function wx(e){return Bi(e).replace(px,"%3D")}function Sx(e){return Es(e).replace(hf,"%23").replace(gx,"%3F")}function _x(e){return e==null?"":Sx(e).replace(hx,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ex(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function $x(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Px=Symbol(""),Ea=Symbol(""),$s=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Ln(4,{from:n,to:t})):f instanceof Error?l(f):Jy(f)?l(Ln(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Rx(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Ay(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Rx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=ze($s),n=ze(bf),r=V(()=>t.resolve(Ct(e.to))),o=V(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Fn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Fn.bind(null,a[c-2])):d}),i=V(()=>o.value>-1&&Ix(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return zx(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Tx=Ee({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:$a,setup(e,{slots:t}){const n=Xt($a(e)),{options:r}=ze($s),o=V(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ox=Tx;function zx(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 Ix(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Ax=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=V(()=>e.route||r.value),i=ze(Ea,0),s=V(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=V(()=>o.value.matched[s.value]);qe(Ea,V(()=>s.value+1)),qe(Px,l),qe(Mi,o);const a=se();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Fn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Ax;function kx(e){const t=ax(e.routes,e),n=e.parseQuery||Ex,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,_x),d=ri.bind(null,yo);function v(R,U){let I,X;return uf(R)?(I=t.getRecordMatcher(R),X=U):X=R,t.addRoute(X,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function b(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),$=t.resolve({path:x.path},U),O=o.createHref(x.fullPath);return ye(x,$,{params:d($.params),hash:yo(x.hash),redirectedFrom:void 0,href:O})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const $ in x)x[$]==null&&delete x[$];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const X=t.resolve(I,U),pe=R.hash||"";X.params=u(d(X.params));const h=My(r,ye({},R,{hash:Cx(pe),path:X.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?$x(R.query):R.query||{}},X,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Ln(8,{from:U,to:R})}function _(R){return m(R)}function P(R){return _(ye(S(R),{replace:!0}))}function z(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let X=typeof I=="function"?I(R):I;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ye({query:R.query,hash:R.hash,params:"path"in X?{}:R.params},X)}}function m(R,U){const I=c=b(R),X=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=z(I);if(x)return m(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const $=I;$.redirectedFrom=U;let O;return!h&&Hy(r,X,I)&&(O=Ln(16,{to:$,from:X}),Se(X,X,!0,!1)),(O?Promise.resolve(O):j($,X)).catch(B=>Et(B)?Et(B,2)?B:we(B):re(B,$,X)).then(B=>{if(B){if(Et(B,2))return m(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||$)}else B=k($,X,!0,g,pe);return W($,X,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function A(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function j(R,U){let I;const[X,pe,h]=Bx(R,U);I=ii(X.reverse(),"beforeRouteLeave",R,U);for(const x of X)x.leaveGuards.forEach($=>{I.push(Wt($,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach($=>{I.push(Wt($,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const $ of x.beforeEnter)I.push(Wt($,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>Et(x,8)?x:Promise.reject(x))}function W(R,U,I){for(const X of l.list())A(()=>X(R,U,I))}function k(R,U,I,X,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Rn?history.state:{};I&&(X||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let Q;function te(){Q||(Q=o.listen((R,U,I)=>{if(!Xe.listening)return;const X=b(R),pe=z(X);if(pe){m(ye(pe,{replace:!0}),X).catch(gr);return}c=X;const h=a.value;Rn&&Ky(va(h.fullPath,I.delta),Do()),j(X,h).catch(g=>Et(g,12)?g:Et(g,2)?(m(g.to,X).then(x=>{Et(x,20)&&!I.delta&&I.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),re(g,X,h))).then(g=>{g=g||k(X,h,!1),g&&(I.delta&&!Et(g,8)?o.go(-I.delta,!1):I.type===Ir.pop&&Et(g,20)&&o.go(-1,!1)),W(X,h,g)}).catch(gr)}))}let ne=nr(),oe=nr(),K;function re(R,U,I){we(R);const X=oe.list();return X.length?X.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ne.add([R,U])})}function we(R){return K||(K=!R,te(),ne.list().forEach(([U,I])=>R?I(R):U()),ne.reset()),R}function Se(R,U,I,X){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const h=!I&&Vy(va(R.fullPath,0))||(X||!I)&&history.state&&history.state.scroll||null;return Bn().then(()=>pe(R,U,h)).then(g=>g&&Uy(g)).catch(g=>re(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:b,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:oe.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Ox),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Rn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=V(()=>a.value[pe]);R.provide($s,U),R.provide(bf,Xt(I)),R.provide(Mi,a);const X=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,Q&&Q(),Q=null,a.value=Lt,rt=!1,K=!1),X()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>A(I)),Promise.resolve())}return Xe}function Bx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sFn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Fn(c,a))||o.push(a))}return[n,r,o]}const Mx=Ee({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ty),{"theme-overrides":t},{default:ro(()=>[Fe(Ct(xy),null,{default:ro(()=>[Fe(Ct(Iy),null,{default:ro(()=>[Fe(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Hx="modulepreload",Fx=function(e){return"/web/"+e},Oa={},Lx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Fx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Hx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},jx=kx({history:Zy("/web"),routes:[{path:"/",name:"chat",component:()=>Lx(()=>import("./index-ec5fa021.js"),["assets/index-ec5fa021.js","assets/index-0e8bf8a6.css"])}]}),Ps=Xh(Mx);cp(Ps);Ps.use(jx);Ps.mount("#app");export{wu as $,ou as A,E as B,Hp as C,cg as D,Bn as E,ms as F,Un as G,Mm as H,Su as I,ys as J,Bm as K,hg as L,vo as M,tv as N,Vn as O,hb as P,hv as Q,Mr as R,Ou as S,Hn as T,Bo as U,aa as V,$u as W,qn as X,Ru as Y,Kn as Z,xn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,c0 as a3,nv as a4,mn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,bo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,Qx as aI,L0 as aJ,Dg as aK,O0 as aL,Ll as aM,up as aN,Br as aO,r1 as aP,fs as aQ,hc as aR,go as aS,tn as aT,z0 as aU,wi as aV,Zx as aW,Yx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,wn as ab,nt as ac,Gn as ad,Cs as ae,ie as af,_i as ag,de as ah,t1 as ai,Qi as aj,Gt as ak,ig as al,cl as am,us as an,Cp as ao,Hg as ap,as as aq,yt as ar,Me as as,o1 as at,xp as au,It as av,Er as aw,po as ax,un as ay,Vr as az,Xt as b,Zc as b0,Wp as b1,yp as b2,Ey as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,H0 as ba,Ec as bb,Gx as bc,is as bd,Kx as be,Dx as bf,ss as bg,ro as bh,Tc as bi,Fe as bj,qx as bk,Ct as bl,vy as bm,Xx as bn,dc as bo,vc as bp,gc as bq,Oe as br,Ux as bs,Vx as bt,Wi as bu,Nx as bv,Wx as bw,V as c,yn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,Jx as j,ze as k,ng as l,tg as m,Ee as n,Yt as o,rg as p,qe as q,se as r,Ar as s,$l as t,Ei as u,fi as v,ut as w,n1 as x,ko as y,zt as z}; diff --git a/web/index.html b/web/index.html index 98df52879f..56b980e282 100644 --- a/web/index.html +++ b/web/index.html @@ -37,8 +37,8 @@ - - + + diff --git a/web/js/bing/chat/amd.js b/web/js/bing/chat/amd.js index c15dde7325..d5f1062e4c 100644 --- a/web/js/bing/chat/amd.js +++ b/web/js/bing/chat/amd.js @@ -1,2 +1,2 @@ /* eslint-disable */ -var amd,define,require;(function(n){function e(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}function r(n){if(n){if(n)return u(n)}else{if(!f){for(var r in t)u(r);f=!0}return i}}function u(n){var s,e;if(i[n])return i[n];if(t.hasOwnProperty(n)){var h=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length<2)throw"invalid usage";else if(f.length>2)for(s=f.slice(2,f.length),e=0;e0)for(o=!1,f=0;f=0?encodeURIComponent(atob(decodeURIComponent(h[1]))):h[1])):f=encodeURIComponent(n[u]("href")),clc.furl&&!n[u]("data-private")?o+="&url="+f:clc.mfurl&&(o+="&abc="+f));r&&(o+="&source="+r);c="";clc.mc&&(c="&c="+ctcc++);l="&"+o+c;_w.si_sbwu(l)||_w[e]&&_w[e](l,n,i,s);break}if(t)break}}catch(v){_w.SharedLogHelper?SharedLogHelper.LogWarning("clickEX",null,v):(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Warning","FID":"CI","Name":"JSWarning","Text":'+v.message+"}]"}return!0};_w.si_sbwu||(_w.si_sbwu=function(){return!1}),function(){_w._G&&(_G.si_ct_e="click")}();var wlc_d = 1500, wlc_t =63819372483;;var perf;(function(n){function f(n){return i.hasOwnProperty(n)?i[n]:n}function e(n){var t="S";return n==0?t="P":n==2&&(t="M"),t}function o(n){for(var c,i=[],t={},r,l=0;l").concat(i,"<\/TS><\/D><\/E>"),s="".concat(h,"<\/Events>").concat(i,"<\/STS><\/ClientInstRequest>"),u=!_w.navigator||!navigator[o];if(!u)try{navigator[o](e,s)}catch(c){u=!0}u&&(r=sj_gx(),r.open("POST",e,!0),r.setRequestHeader("Content-Type","text/xml"),r.send(s))}}(window.perf);var perf;(function(n){function a(){return c(Math.random()*1e4)}function o(){return y?c(f.now())+l:+new Date}function v(n,r,f){t.length===0&&i&&sb_st(u,1e3);t.push({k:n,v:r,t:f})}function p(n){return i||(r=n),!i}function w(n,t){t||(t=o());v(n,t,0)}function b(n,t){v(n,t,1)}function u(){var u,f;if(t.length){for(u=0;u=0){for(r in f)h=f[r],typeof h=="number"&&h>0&&r!=="navigationStart"&&r!==s&&u.mark(r,h);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("nav",s in f?f[s]:performance[s].type)}e="connection";c="";_w.navigator&&navigator[e]&&(c=',"net":"'.concat(navigator[e].type,'"'),navigator[e].downlinkMax&&(c+=',"dlMax":"'.concat(navigator[e].downlinkMax,'"')));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+o.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+c+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});var sj_log=function(n,t,i){var r=new RegExp('"',"g");(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"'+n+'","FID":"CI","Name":"'+t+'","Text":"'+escape(i.replace(r,""))+'"}]'};var BM=BM||{},adrule="."+_G.adc+" > ul";BM.rules={".b_scopebar":[0,80,0],".b_logo":[-1,-1,0],".b_searchboxForm":[100,19,0],"#id_h":[-1,-1,0],"#b_tween":[-1,-1,1],"#b_results":[100,-1,1],"#b_context":[710,-1,1],"#b_navheader":[-1,-1,0],"#bfb-answer":[-1,-1,1],".tab-menu > ul":[-1,-1,1],".b_footer":[0,-1,0],"#b_notificationContainer":[-1,-1,0],"#ajaxMaskLayer":[-1,-1,0],"img,div[data-src],.rms_img":[-1,-1,0],iframe:[-1,-1,0]};BM.rules[adrule]=[-1,-1,1];var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u="innerWidth"in window?window.innerWidth:i.clientWidth,f="innerHeight"in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||"default";n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t="V";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?"":" >*",f=document.querySelectorAll(u),r=0;r2)for(s=f.slice(2,f.length),e=0;e0)for(o=!1,f=0;f=0?encodeURIComponent(atob(decodeURIComponent(h[1]))):h[1])):f=encodeURIComponent(n[u]("href")),clc.furl&&!n[u]("data-private")?o+="&url="+f:clc.mfurl&&(o+="&abc="+f));r&&(o+="&source="+r);c="";clc.mc&&(c="&c="+ctcc++);l="&"+o+c;_w.si_sbwu(l)||_w[e]&&_w[e](l,n,i,s);break}if(t)break}}catch(v){_w.SharedLogHelper?SharedLogHelper.LogWarning("clickEX",null,v):(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Warning","FID":"CI","Name":"JSWarning","Text":'+v.message+"}]"}return!0};_w.si_sbwu||(_w.si_sbwu=function(){return!1}),function(){_w._G&&(_G.si_ct_e="click")}();var wlc_d = 1500, wlc_t =63820323883;;var perf;(function(n){function f(n){return i.hasOwnProperty(n)?i[n]:n}function e(n){var t="S";return n==0?t="P":n==2&&(t="M"),t}function o(n){for(var c,i=[],t={},r,l=0;l").concat(i,"<\/TS><\/D><\/E>"),s="".concat(h,"<\/Events>").concat(i,"<\/STS><\/ClientInstRequest>"),u=!_w.navigator||!navigator[o];if(!u)try{navigator[o](e,s)}catch(c){u=!0}u&&(r=sj_gx(),r.open("POST",e,!0),r.setRequestHeader("Content-Type","text/xml"),r.send(s))}}(window.perf);var perf;(function(n){function a(){return c(Math.random()*1e4)}function o(){return y?c(f.now())+l:+new Date}function v(n,r,f){t.length===0&&i&&sb_st(u,1e3);t.push({k:n,v:r,t:f})}function p(n){return i||(r=n),!i}function w(n,t){t||(t=o());v(n,t,0)}function b(n,t){v(n,t,1)}function u(){var u,f;if(t.length){for(u=0;u=0){for(r in f)h=f[r],typeof h=="number"&&h>0&&r!=="navigationStart"&&r!==s&&u.mark(r,h);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("nav",s in f?f[s]:performance[s].type)}e="connection";c="";_w.navigator&&navigator[e]&&(c=',"net":"'.concat(navigator[e].type,'"'),navigator[e].downlinkMax&&(c+=',"dlMax":"'.concat(navigator[e].downlinkMax,'"')));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+o.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+c+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});var sj_log=function(n,t,i){var r=new RegExp('"',"g");(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"'+n+'","FID":"CI","Name":"'+t+'","Text":"'+escape(i.replace(r,""))+'"}]'};var BM=BM||{},adrule="."+_G.adc+" > ul";BM.rules={".b_scopebar":[0,80,0],".b_logo":[-1,-1,0],".b_searchboxForm":[100,19,0],"#id_h":[-1,-1,0],"#b_tween":[-1,-1,1],"#b_results":[100,-1,1],"#b_context":[710,-1,1],"#b_navheader":[-1,-1,0],"#bfb-answer":[-1,-1,1],".tab-menu > ul":[-1,-1,1],".b_footer":[0,-1,0],"#b_notificationContainer":[-1,-1,0],"#ajaxMaskLayer":[-1,-1,0],"img,div[data-src],.rms_img":[-1,-1,0],iframe:[-1,-1,0]};BM.rules[adrule]=[-1,-1,1];var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u="innerWidth"in window?window.innerWidth:i.clientWidth,f="innerHeight"in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||"default";n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t="V";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?"":" >*",f=document.querySelectorAll(u),r=0;r 0 ? r + t : ''), n + t; } var currentQuery = null; -var fab_config = { fabStyle: 1, fabSbAction: 'FocusSearchBox', fabSbActionHover: 'None', fabSbActionData: 'None', fabTooltip: '', micFabAlwaysVisible: false, fabClickNoAS: true }; +var fab_config = { fabStyle: 1, fabSbAction: 'FocusSearchBox', fabSbActionHover: 'None', fabSbActionData: 'None', fabTooltip: '', micFabAlwaysVisible: false, fabClickNoAS: false }; sj_be( _w, 'click', diff --git a/web/js/bing/chat/core.js b/web/js/bing/chat/core.js index b302e430f1..88ccd66b17 100644 --- a/web/js/bing/chat/core.js +++ b/web/js/bing/chat/core.js @@ -12,9 +12,9 @@ })(_w.onload, _w.si_PP); _w.rms.js( { 'A:rms:answers:Shared:BingCore.Bundle': '/rp/oJ7sDoXkkNOICsnFb57ZJHBrHcw.br.js' }, - { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/zIWGH0CtsF1-0jQOvc01HUV4uVQ.br.js' }, + { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/XBHyxbMN-5ifYmS8GGYyywmwILI.br.js' }, { 'A:rms:answers:VisualSystem:ConversationScope': '/rp/YFRe970EMtFzujI9pBYZBGpdHEo.br.js' }, - { 'A:rms:answers:CodexBundle:cib-bundle': '/rp/w7_rwsxIfLFmlNCVn4MbZuevoMI.br.js' }, + { 'A:rms:answers:CodexBundle:cib-bundle': '/rp/-2UI-r71AEUWE8zNKc6Vdf8wVfc.br.js' }, { 'A:rms:answers:SharedStaticAssets:speech-sdk': '/rp/6slp3E-BqFf904Cz6cCWPY1bh9E.br.js' }, - { 'A:rms:answers:Web:SydneyFullScreenConv': '/rp/gyKl-0hbVjb5hHMqC3ZejA90ZN4.br.js' }, + { 'A:rms:answers:Web:SydneyFullScreenConv': '/rp/R-NU1gYWw5NsYTEXrFn1hwhdP5g.br.js' }, ); diff --git a/web/js/bing/chat/global.js b/web/js/bing/chat/global.js index a45d54a27d..fd16419a16 100644 --- a/web/js/bing/chat/global.js +++ b/web/js/bing/chat/global.js @@ -44,13 +44,13 @@ _G = { Mkt: 'en-US', RevIpCC: 'us', RTL: false, - Ver: '20', + Ver: '22', IG: '0', - EventID: '645c60c3f55a42549d538c31cf5dd366', + EventID: '646ae52b797848988e6618d6205cf436', V: 'web', P: 'SERP', DA: 'PUSE01', - SUIH: 'FfN6lYBDNDOEzj4vnSOJqQ', + SUIH: 'BtAuR605UV0NIg083Tp9HA', adc: 'b_ad', // logsb 启用 sendBeacon 推送日志,并在 sendBeacon 阻止 EF: { cookss: 1, bmcov: 1, crossdomainfix: 1, bmasynctrigger: 1, bmasynctrigger3: 1, newtabsloppyclick: 1, chevroncheckmousemove: 1, logsb: 1 }, @@ -59,6 +59,10 @@ _G = { _G.lsUrl = '/fd/ls/l?IG=' + _G.IG; curUrl = '/search'; function si_T(a) { + // if (document.images) { + // _G.GPImg = new Image(); + // _G.GPImg.src = _G.gpUrl + 'IG=' + _G.IG + '&' + a; + // } return true; } _G.CTT = '3000'; diff --git a/web/sw.js b/web/sw.js index a41bb0d7e2..02474beaa2 100644 --- a/web/sw.js +++ b/web/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,a)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let r={};const o=e=>i(e,c),d={module:{uri:c},exports:r,require:o};s[c]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(a(...e),r)))}}define(["./workbox-118fddf1"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-0e8bf8a6.css",revision:null},{url:"assets/index-6982f66e.js",revision:null},{url:"assets/index-9d6f4de0.css",revision:null},{url:"assets/index-d9a4ae7e.js",revision:null},{url:"assets/setting-c6ca7b14.svg",revision:null},{url:"compose.html",revision:"2c3f93033c3f4cef8136ff5a993a087b"},{url:"favicon.ico",revision:"1272c70e1b86b8956598a0349d2f193c"},{url:"img/compose.svg",revision:"4242b76bb8f4da0baf7a75edab0c6754"},{url:"img/logo.svg",revision:"1da58864f14c1a8c28f8587d6dcbc5d0"},{url:"img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"index.html",revision:"d6935acee73a321a65682b2d82148d21"},{url:"js/bing/chat/amd.js",revision:"8d773dc8f2e78b9d29e990aed7821774"},{url:"js/bing/chat/config.js",revision:"3bd7b84479a1f1dcc850abdd4d383a3c"},{url:"js/bing/chat/core.js",revision:"8c11521fd9f049b6ac91e5ad415c2db1"},{url:"js/bing/chat/global.js",revision:"43fd640c3a3021437b9b2955e8f2d1ad"},{url:"js/bing/chat/lib.js",revision:"1a0f8f43cc025b7b5995e885fed1a3e6"},{url:"registerSW.js",revision:"bf6c2f29aef95e09b1f72cf59f427a55"},{url:"./img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"./img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"manifest.webmanifest",revision:"ae4ef030ae5d2d4894669fd82aac028d"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/,new e.CacheFirst({cacheName:"image-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,c)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(s[a])return;let f={};const r=e=>i(e,a),o={module:{uri:a},exports:f,require:r};s[a]=Promise.all(n.map((e=>o[e]||r(e)))).then((e=>(c(...e),f)))}}define(["./workbox-118fddf1"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-0e8bf8a6.css",revision:null},{url:"assets/index-ad891f88.css",revision:null},{url:"assets/index-ec5fa021.js",revision:null},{url:"assets/index-f360c8c0.js",revision:null},{url:"assets/setting-c6ca7b14.svg",revision:null},{url:"compose.html",revision:"2c3f93033c3f4cef8136ff5a993a087b"},{url:"favicon.ico",revision:"1272c70e1b86b8956598a0349d2f193c"},{url:"img/compose.svg",revision:"4242b76bb8f4da0baf7a75edab0c6754"},{url:"img/logo.svg",revision:"1da58864f14c1a8c28f8587d6dcbc5d0"},{url:"img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"index.html",revision:"586b9e2657af5dfbd45bf58efe299ef1"},{url:"js/bing/chat/amd.js",revision:"faf7881af632ddc1bc816df3c7615d70"},{url:"js/bing/chat/config.js",revision:"1603b5e94f90a9a0eee94d3758bc9453"},{url:"js/bing/chat/core.js",revision:"bf59a711c4cc50c15c4721674ee177bd"},{url:"js/bing/chat/global.js",revision:"e1288422c9aa50d42d7461d925166615"},{url:"js/bing/chat/lib.js",revision:"1a0f8f43cc025b7b5995e885fed1a3e6"},{url:"registerSW.js",revision:"bf6c2f29aef95e09b1f72cf59f427a55"},{url:"./img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"./img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"manifest.webmanifest",revision:"ae4ef030ae5d2d4894669fd82aac028d"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/,new e.CacheFirst({cacheName:"image-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")}));