hermes-web-ui 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +134 -408
  2. package/bin/hermes-web-ui.mjs +111 -97
  3. package/dist/assets/ChatView-BCcUaLWg.css +1 -0
  4. package/dist/assets/ChatView-gu2Y-jpZ.js +16 -0
  5. package/dist/assets/Input-yD_s5hp8.js +234 -0
  6. package/dist/assets/JobsView-C1YU-sgU.js +123 -0
  7. package/dist/assets/LogsView-BN_TkDPi.css +1 -0
  8. package/dist/assets/LogsView-BSNn4Rmi.js +1 -0
  9. package/dist/assets/MarkdownRenderer-CrMwC_5d.css +1 -0
  10. package/dist/assets/MarkdownRenderer-DNP-kPA8.js +23 -0
  11. package/dist/assets/MemoryView-BsGBmN7h.js +5 -0
  12. package/dist/assets/MemoryView-CK0PemlP.css +1 -0
  13. package/dist/assets/Modal-CSHJclVU.js +232 -0
  14. package/dist/assets/Popover-blRIsd-8.js +117 -0
  15. package/dist/assets/Scrollbar-CYtpM7mc.js +77 -0
  16. package/dist/assets/Select-DTG-wtu5.js +454 -0
  17. package/dist/assets/SettingsView-BzBMKaLz.css +1 -0
  18. package/dist/assets/SettingsView-CppuSCZA.js +1129 -0
  19. package/dist/assets/SkillsView-86Z-HE_X.css +1 -0
  20. package/dist/assets/SkillsView-CciuH5wp.js +1 -0
  21. package/dist/assets/Spin-DWreY5m0.js +43 -0
  22. package/dist/assets/Suffix-B828Aenx.js +25 -0
  23. package/dist/assets/Tooltip-BCHslENT.js +1 -0
  24. package/dist/assets/Warning-Ba-wYRRB.js +1 -0
  25. package/dist/assets/_plugin-vue_export-helper-CV9qMihF.js +47 -0
  26. package/dist/assets/app-4gFjNUoo.js +1 -0
  27. package/dist/assets/chat-P2QaPvpZ.js +6 -0
  28. package/dist/assets/context-B74FvHiJ.js +109 -0
  29. package/dist/assets/index-Cx8mFF2D.js +307 -0
  30. package/dist/assets/index-DwVgwUIX.css +1 -0
  31. package/dist/assets/jobs-DVxci1LY.js +1 -0
  32. package/dist/assets/keysOf-Dvq9k1rv.js +1 -0
  33. package/dist/assets/omit-QZj0aLfU.js +1 -0
  34. package/dist/assets/pinia-tE0RcsDr.js +1 -0
  35. package/dist/assets/runtime-core.esm-bundler-yNW65ghW.js +1 -0
  36. package/dist/assets/skills-DgbQAgoB.js +1 -0
  37. package/dist/assets/use-message-Dz_GbH5h.js +1 -0
  38. package/dist/index.html +19 -6
  39. package/dist/server/config.d.ts +7 -0
  40. package/dist/server/config.js +12 -0
  41. package/dist/server/index.d.ts +1 -0
  42. package/dist/server/index.js +156 -0
  43. package/dist/server/routes/filesystem.d.ts +2 -0
  44. package/dist/server/routes/filesystem.js +427 -0
  45. package/dist/server/routes/logs.d.ts +2 -0
  46. package/dist/server/routes/logs.js +87 -0
  47. package/dist/server/routes/proxy-handler.d.ts +2 -0
  48. package/dist/server/routes/proxy-handler.js +82 -0
  49. package/dist/server/routes/proxy.d.ts +2 -0
  50. package/dist/server/routes/proxy.js +12 -0
  51. package/dist/server/routes/sessions.d.ts +2 -0
  52. package/dist/server/routes/sessions.js +69 -0
  53. package/dist/server/routes/upload.d.ts +2 -0
  54. package/dist/server/routes/upload.js +50 -0
  55. package/dist/server/routes/webhook.d.ts +2 -0
  56. package/dist/server/routes/webhook.js +33 -0
  57. package/dist/server/services/hermes-cli.d.ts +50 -0
  58. package/dist/server/services/hermes-cli.js +185 -0
  59. package/dist/server/services/hermes.d.ts +40 -0
  60. package/dist/server/services/hermes.js +118 -0
  61. package/package.json +19 -4
  62. package/dist/assets/ChatView-DrzZz5ex.css +0 -1
  63. package/dist/assets/ChatView-WnNeYrS7.js +0 -38
  64. package/dist/assets/JobsView-BF9wWdwU.js +0 -831
  65. package/dist/assets/Modal-CQVLL_Oc.js +0 -276
  66. package/dist/assets/_plugin-vue_export-helper-D5N3Hfca.js +0 -231
  67. package/dist/assets/chat-640V6r6N.js +0 -1
  68. package/dist/assets/index-4iFlrAYJ.js +0 -307
  69. package/dist/assets/index-CMJKLUKk.css +0 -1
  70. package/dist/assets/jobs-Cuol6Mqb.js +0 -1
  71. package/dist/assets/use-message-B8ClBznx.js +0 -117
  72. /package/dist/assets/{client-BxIiwrqC.js → client-BKiVmpru.js} +0 -0
@@ -0,0 +1 @@
1
+ .skill-list[data-v-dc3800b6]{flex:1;padding:8px;overflow-y:auto}.skill-empty[data-v-dc3800b6]{color:#999;text-align:center;padding:24px 16px;font-size:13px}.skill-category[data-v-dc3800b6]{margin-bottom:4px}.category-header[data-v-dc3800b6]{color:#666;text-transform:uppercase;letter-spacing:.3px;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;width:100%;padding:6px 10px;font-size:12px;font-weight:600;display:flex}.category-header[data-v-dc3800b6]:hover{background:#3333330a}.category-arrow[data-v-dc3800b6]{flex-shrink:0;transition:transform .15s}.category-arrow.collapsed[data-v-dc3800b6]{transform:rotate(-90deg)}.category-name[data-v-dc3800b6]{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.category-count[data-v-dc3800b6]{color:#999;background:#3333330f;border-radius:8px;padding:1px 6px;font-size:11px}.category-skills[data-v-dc3800b6]{padding:2px 0 4px}.skill-item[data-v-dc3800b6]{color:#666;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-direction:column;width:100%;padding:6px 10px 6px 28px;font-size:13px;transition:all .15s;display:flex}.skill-item[data-v-dc3800b6]:hover{color:#1a1a1a;background:#3333330f}.skill-item.active[data-v-dc3800b6]{color:#1a1a1a;background:#3333331a;font-weight:500}.skill-name[data-v-dc3800b6]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.skill-desc[data-v-dc3800b6]{color:#999;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:11px;overflow:hidden}.skill-detail[data-v-37deab73]{flex-direction:column;height:100%;display:flex}.detail-title[data-v-37deab73]{border-bottom:1px solid #e0e0e0;flex-shrink:0;margin-bottom:12px;padding-bottom:12px;font-size:15px}.detail-category[data-v-37deab73]{color:#999;font-size:13px}.detail-separator[data-v-37deab73]{color:#999;margin:0 6px}.detail-name[data-v-37deab73]{color:#1a1a1a;font-weight:600}.detail-loading[data-v-37deab73]{color:#999;flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.detail-breadcrumb[data-v-37deab73]{border-bottom:1px solid #e0e0e0;flex-shrink:0;align-items:center;gap:8px;margin-bottom:12px;padding:8px 0 12px;display:flex}.back-btn[data-v-37deab73]{color:#333;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:2px 6px;font-size:13px;display:flex}.back-btn[data-v-37deab73]:hover{background:#3333330f}.breadcrumb-path[data-v-37deab73]{color:#999;font-size:13px}.detail-content[data-v-37deab73]{flex:1;min-height:0;padding-bottom:12px;overflow-y:auto}.detail-content[data-v-37deab73] hr{border:none;margin:12px 0}.detail-files[data-v-37deab73]{border-top:1px solid #e0e0e0;flex-shrink:0;margin-top:12px;padding-top:12px}.files-header[data-v-37deab73]{color:#999;text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px;font-size:12px;font-weight:600}.files-list[data-v-37deab73]{flex-wrap:wrap;gap:4px;display:flex}.file-item[data-v-37deab73]{color:#666;cursor:pointer;background:#f0f0f0;border:1px solid #e0e0e0;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;transition:all .15s;display:flex}.file-item[data-v-37deab73]:hover{color:#333;border-color:#333}.skills-view[data-v-2820a27f]{flex-direction:column;height:100vh;display:flex}.skills-header[data-v-2820a27f]{border-bottom:1px solid #e0e0e0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;display:flex}.header-title[data-v-2820a27f]{color:#1a1a1a;flex-shrink:0;font-size:16px;font-weight:600}.search-input[data-v-2820a27f]{width:220px}.skills-content[data-v-2820a27f]{flex:1;overflow:hidden}.skills-loading[data-v-2820a27f]{color:#999;justify-content:center;align-items:center;height:100%;font-size:13px;display:flex}.skills-layout[data-v-2820a27f]{height:100%;display:flex}.skills-sidebar[data-v-2820a27f]{border-right:1px solid #e0e0e0;flex-direction:column;flex-shrink:0;width:280px;min-height:0;display:flex;overflow:hidden}.skills-main[data-v-2820a27f]{flex:1;min-width:0;min-height:0;padding:16px 20px;overflow-y:auto}.empty-detail[data-v-2820a27f]{color:#999;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;font-size:13px;display:flex}
@@ -0,0 +1 @@
1
+ import{t as e}from"./MarkdownRenderer-DNP-kPA8.js";import{Ct as t,F as n,L as r,M as i,U as a,_ as o,d as s,f as c,g as l,i as u,l as d,p as f,st as p,tt as m,u as h,v as g,wt as _}from"./runtime-core.esm-bundler-yNW65ghW.js";import{t as v}from"./_plugin-vue_export-helper-CV9qMihF.js";import{t as y}from"./Input-yD_s5hp8.js";import{i as b,n as x,r as S}from"./skills-DgbQAgoB.js";var C={class:`skill-list`},w={key:0,class:`skill-empty`},T=[`onClick`],E={class:`category-name`},D={class:`category-count`},O={key:0,class:`category-skills`},k=[`onClick`],A={class:`skill-name`},j={key:0,class:`skill-desc`},M=v(g({__name:`SkillList`,props:{categories:{},selectedSkill:{},searchQuery:{}},emits:[`select`],setup(e,{emit:i}){let a=e,o=i,s=m(new Set),l=d(()=>{if(!a.searchQuery)return a.categories;let e=a.searchQuery.toLowerCase();return a.categories.map(t=>({...t,skills:t.skills.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})).filter(t=>t.skills.length>0||t.name.toLowerCase().includes(e))});function p(e){s.value.has(e)?s.value.delete(e):s.value.add(e)}function g(e,t){o(`select`,e,t)}return(i,a)=>(n(),f(`div`,C,[l.value.length===0?(n(),f(`div`,w,_(e.searchQuery?`No skills match your search`:`No skills found`),1)):c(``,!0),(n(!0),f(u,null,r(l.value,i=>(n(),f(`div`,{key:i.name,class:`skill-category`},[h(`button`,{class:`category-header`,onClick:e=>p(i.name)},[(n(),f(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:t([`category-arrow`,{collapsed:s.value.has(i.name)}])},[...a[0]||=[h(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)),h(`span`,E,_(i.name),1),h(`span`,D,_(i.skills.length),1)],8,T),s.value.has(i.name)?c(``,!0):(n(),f(`div`,O,[(n(!0),f(u,null,r(i.skills,r=>(n(),f(`button`,{key:r.name,class:t([`skill-item`,{active:e.selectedSkill===`${i.name}/${r.name}`}]),onClick:e=>g(i.name,r.name)},[h(`span`,A,_(r.name),1),r.description?(n(),f(`span`,j,_(r.description),1)):c(``,!0)],10,k))),128))]))]))),128))]))}}),[[`__scopeId`,`data-v-dc3800b6`]]),N={class:`skill-detail`},P={class:`detail-title`},F={class:`detail-category`},I={class:`detail-name`},L={key:0,class:`detail-loading`},R={key:0,class:`detail-breadcrumb`},z={class:`breadcrumb-path`},B={class:`detail-content`},V={key:1,class:`detail-files`},H={class:`files-list`},U=[`onClick`],W=v(g({__name:`SkillDetail`,props:{category:{},skill:{}},setup(t){let i=t,o=m(``),d=m([]),p=m(!1),g=m(``),v=m(null),y=m(!1);async function b(){p.value=!0,v.value=null,g.value=``,d.value=[],o.value=``;try{let e=`${i.category}/${i.skill}/SKILL.md`,[t,n]=await Promise.all([x(e),S(i.category,i.skill)]);o.value=t,d.value=n.filter(e=>!e.isDir&&e.path!==`SKILL.md`)}catch(e){o.value=`Failed to load skill: ${e.message}`}finally{p.value=!1}}async function C(e){y.value=!0,v.value=e;try{let t=`${i.category}/${i.skill}/`,n=e;if(e.startsWith(`/`)){let t=e.split(`/.hermes/skills/`)[1];t&&(n=t.split(`/`).slice(2).join(`/`))}g.value=await x(`${t}${n}`)}catch(e){g.value=`Failed to load file: ${e.message}`}finally{y.value=!1}}function w(){v.value=null,g.value=``}return a(()=>`${i.category}/${i.skill}`,b,{immediate:!0}),(i,a)=>(n(),f(`div`,N,[h(`div`,P,[h(`span`,F,_(t.category),1),a[0]||=h(`span`,{class:`detail-separator`},`/`,-1),h(`span`,I,_(t.skill),1)]),p.value&&!o.value?(n(),f(`div`,L,`Loading...`)):(n(),f(u,{key:1},[v.value?(n(),f(`div`,R,[h(`button`,{class:`back-btn`,onClick:w},[a[1]||=h(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[h(`polyline`,{points:`15 18 9 12 15 6`})],-1),l(` Back to `+_(t.skill),1)]),h(`span`,z,_(v.value),1)])):c(``,!0),h(`div`,B,[v.value?(n(),s(e,{key:0,content:g.value},null,8,[`content`])):(n(),s(e,{key:1,content:o.value},null,8,[`content`]))]),!v.value&&d.value.length>0?(n(),f(`div`,V,[a[3]||=h(`div`,{class:`files-header`},`Attached Files`,-1),h(`div`,H,[(n(!0),f(u,null,r(d.value,e=>(n(),f(`button`,{key:e.path,class:`file-item`,onClick:t=>C(e.path)},[a[2]||=h(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[h(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),h(`polyline`,{points:`14 2 14 8 20 8`})],-1),h(`span`,null,_(e.path),1)],8,U))),128))])])):c(``,!0)],64))]))}}),[[`__scopeId`,`data-v-37deab73`]]),G={class:`skills-view`},K={class:`skills-header`},q={class:`skills-content`},J={key:0,class:`skills-loading`},Y={key:1,class:`skills-layout`},X={class:`skills-sidebar`},Z={class:`skills-main`},Q={key:1,class:`empty-detail`},$=v(g({__name:`SkillsView`,setup(e){let t=m([]),r=m(!1),a=m(``),c=m(``),l=m(``);i(u);async function u(){r.value=!0;try{t.value=await b()}catch(e){console.error(`Failed to load skills:`,e)}finally{r.value=!1}}function d(e,t){a.value=e,c.value=t}return(e,i)=>(n(),f(`div`,G,[h(`header`,K,[i[1]||=h(`h2`,{class:`header-title`},`Skills`,-1),o(p(y),{value:l.value,"onUpdate:value":i[0]||=e=>l.value=e,placeholder:`Search skills...`,size:`small`,clearable:``,class:`search-input`},null,8,[`value`])]),h(`div`,q,[r.value&&t.value.length===0?(n(),f(`div`,J,`Loading...`)):(n(),f(`div`,Y,[h(`div`,X,[o(M,{categories:t.value,"selected-skill":a.value&&c.value?`${a.value}/${c.value}`:null,"search-query":l.value,onSelect:d},null,8,[`categories`,`selected-skill`,`search-query`])]),h(`div`,Z,[a.value&&c.value?(n(),s(W,{key:0,category:a.value,skill:c.value},null,8,[`category`,`skill`])):(n(),f(`div`,Q,[...i[2]||=[h(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,opacity:`0.2`},[h(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),h(`polyline`,{points:`2 17 12 22 22 17`}),h(`polyline`,{points:`2 12 12 17 22 12`})],-1),h(`span`,null,`Select a skill from the list`,-1)]]))])]))])]))}}),[[`__scopeId`,`data-v-2820a27f`]]);export{$ as default};
@@ -0,0 +1,43 @@
1
+ import{W as e,l as t,tt as n,v as r,x as i}from"./runtime-core.esm-bundler-yNW65ghW.js";import{H as a,V as o,a as s,ct as c,ft as l,i as u,l as d,lt as f,mt as p,r as m,yt as h}from"./_plugin-vue_export-helper-CV9qMihF.js";import{D as g}from"./Popover-blRIsd-8.js";import{i as _,y as v}from"./Scrollbar-CYtpM7mc.js";function y(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var b={name:`Spin`,common:m,self:y},x=c([c(`@keyframes spin-rotate`,`
2
+ from {
3
+ transform: rotate(0);
4
+ }
5
+ to {
6
+ transform: rotate(360deg);
7
+ }
8
+ `),f(`spin-container`,`
9
+ position: relative;
10
+ `,[f(`spin-body`,`
11
+ position: absolute;
12
+ top: 50%;
13
+ left: 50%;
14
+ transform: translateX(-50%) translateY(-50%);
15
+ `,[_()])]),f(`spin-body`,`
16
+ display: inline-flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ flex-direction: column;
20
+ `),f(`spin`,`
21
+ display: inline-flex;
22
+ height: var(--n-size);
23
+ width: var(--n-size);
24
+ font-size: var(--n-size);
25
+ color: var(--n-color);
26
+ `,[l(`rotate`,`
27
+ animation: spin-rotate 2s linear infinite;
28
+ `)]),f(`spin-description`,`
29
+ display: inline-block;
30
+ font-size: var(--n-font-size);
31
+ color: var(--n-text-color);
32
+ transition: color .3s var(--n-bezier);
33
+ margin-top: 8px;
34
+ `),f(`spin-content`,`
35
+ opacity: 1;
36
+ transition: opacity .3s var(--n-bezier);
37
+ pointer-events: all;
38
+ `,[l(`spinning`,`
39
+ user-select: none;
40
+ -webkit-user-select: none;
41
+ pointer-events: none;
42
+ opacity: var(--n-opacity-spinning);
43
+ `)])]),S={small:20,medium:18,large:16},C=r({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},d.props),{contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),s),slots:Object,setup(r){let{mergedClsPrefixRef:i,inlineThemeDisabled:s}=a(r),c=d(`Spin`,`-spin`,x,b,r,i),l=t(()=>{let{size:e}=r,{common:{cubicBezierEaseInOut:t},self:n}=c.value,{opacitySpinning:i,color:a,textColor:o}=n;return{"--n-bezier":t,"--n-opacity-spinning":i,"--n-size":typeof e==`number`?v(e):n[p(`size`,e)],"--n-color":a,"--n-text-color":o}}),u=s?o(`spin`,t(()=>{let{size:e}=r;return typeof e==`number`?String(e):e[0]}),l,r):void 0,f=g(r,[`spinning`,`show`]),m=n(!1);return e(e=>{let t;if(f.value){let{delay:n}=r;if(n){t=window.setTimeout(()=>{m.value=!0},n),e(()=>{clearTimeout(t)});return}}m.value=f.value}),{mergedClsPrefix:i,active:m,mergedStrokeWidth:t(()=>{let{strokeWidth:e}=r;if(e!==void 0)return e;let{size:t}=r;return S[typeof t==`number`?`medium`:t]}),cssVars:s?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){var e;let{$slots:t,mergedClsPrefix:n,description:r}=this,a=t.icon&&this.rotate,o=(r||t.description)&&i(`div`,{class:`${n}-spin-description`},r||t.description?.call(t)),s=t.icon?i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(`div`,{class:[`${n}-spin`,a&&`${n}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(u,{clsPrefix:n,style:t.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${n}-spin`}),o);return(e=this.onRender)==null||e.call(this),t.default?i(`div`,{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},i(`div`,{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),i(h,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}});export{C as t};
@@ -0,0 +1,25 @@
1
+ import{at as e,v as t,x as n}from"./runtime-core.esm-bundler-yNW65ghW.js";import{ct as r,dt as i,i as a,lt as o,o as s,q as c,s as l,u}from"./_plugin-vue_export-helper-CV9qMihF.js";import{a as d,o as f}from"./Scrollbar-CYtpM7mc.js";var p=t({name:`ChevronDown`,render(){return n(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`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`}))}}),m=d(`clear`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`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`}))))),h=o(`base-clear`,`
2
+ flex-shrink: 0;
3
+ height: 1em;
4
+ width: 1em;
5
+ position: relative;
6
+ `,[r(`>`,[i(`clear`,`
7
+ font-size: var(--n-clear-size);
8
+ height: 1em;
9
+ width: 1em;
10
+ cursor: pointer;
11
+ color: var(--n-clear-color);
12
+ transition: color .3s var(--n-bezier);
13
+ display: flex;
14
+ `,[r(`&:hover`,`
15
+ color: var(--n-clear-color-hover)!important;
16
+ `),r(`&:active`,`
17
+ color: var(--n-clear-color-pressed)!important;
18
+ `)]),i(`placeholder`,`
19
+ display: flex;
20
+ `),i(`clear, placeholder`,`
21
+ position: absolute;
22
+ left: 50%;
23
+ top: 50%;
24
+ transform: translateX(-50%) translateY(-50%);
25
+ `,[s({originalTransform:`translateX(-50%) translateY(-50%)`,left:`50%`,top:`50%`})])])]),g=t({name:`BaseClear`,props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(t){return u(`-base-clear`,h,e(t,`clsPrefix`)),{handleMouseDown(e){e.preventDefault()}}},render(){let{clsPrefix:e}=this;return n(`div`,{class:`${e}-base-clear`},n(l,null,{default:()=>{var t;return this.show?n(`div`,{key:`dismiss`,class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},c(this.$slots.icon,()=>[n(f,{clsPrefix:e},{default:()=>n(m,null)})])):n(`div`,{key:`icon`,class:`${e}-base-clear__placeholder`},(t=this.$slots).placeholder?.call(t))}}))}}),_=t({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()=>{let{clsPrefix:r}=e;return n(a,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?n(g,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>n(f,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>c(t.default,()=>[n(p,null)])})}):null})}}});export{g as n,p as r,_ as t};
@@ -0,0 +1 @@
1
+ import{l as e,tt as t,v as n,x as r}from"./runtime-core.esm-bundler-yNW65ghW.js";import{H as i,at as a,c as o,l as s,r as c}from"./_plugin-vue_export-helper-CV9qMihF.js";import{i as l,n as u,t as d}from"./Popover-blRIsd-8.js";var f={padding:`8px 14px`};function p(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},f),{borderRadius:t,boxShadow:n,color:a(r,`rgba(0, 0, 0, .85)`),textColor:r})}var m=o({name:`Tooltip`,common:c,peers:{Popover:l},self:p}),h=n({name:`Tooltip`,props:Object.assign(Object.assign({},u),s.props),slots:Object,__popover__:!0,setup(n){let{mergedClsPrefixRef:r}=i(n),a=s(`Tooltip`,`-tooltip`,void 0,m,n,r),o=t(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(e){o.value.setShow(e)}}),{popoverRef:o,mergedTheme:a,popoverThemeOverrides:e(()=>a.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return r(d,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)}});export{m as n,h as t};
@@ -0,0 +1 @@
1
+ import{x as e}from"./runtime-core.esm-bundler-yNW65ghW.js";import{a as t}from"./Scrollbar-CYtpM7mc.js";var n=`modulepreload`,r=function(e){return`/`+e},i={},a=function(e,t,a){let o=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}o=l(t.map(t=>{if(t=r(t,a),t in i)return;i[t]=!0;let o=t.endsWith(`.css`),s=o?`[rel="stylesheet"]`:``;if(a)for(let n=e.length-1;n>=0;n--){let r=e[n];if(r.href===t&&(!o||r.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;let l=document.createElement(`link`);if(l.rel=o?`stylesheet`:n,o||(l.as=`script`),l.crossOrigin=``,l.href=t,c&&l.setAttribute(`nonce`,c),document.head.appendChild(l),o)return new Promise((e,n)=>{l.addEventListener(`load`,e),l.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(t=>{for(let e of t||[])e.status===`rejected`&&s(e.reason);return e().catch(s)})},o=t(`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`})))));export{a as n,o as t};
@@ -0,0 +1,47 @@
1
+ import{B as e,C as t,H as n,I as r,M as i,O as a,P as o,St as s,Tt as c,U as l,V as u,W as d,_ as f,_t as p,at as m,b as ee,bt as h,ct as g,dt as te,et as _,ft as ne,gt as re,ht as ie,i as ae,it as oe,k as se,l as v,lt as ce,m as le,mt as ue,n as de,pt as fe,r as pe,rt as me,s as he,t as ge,tt as _e,ut as ve,v as ye,vt as be,w as xe,x as y,xt as Se,y as Ce,yt as we}from"./runtime-core.esm-bundler-yNW65ghW.js";var Te=void 0,Ee=typeof window<`u`&&window.trustedTypes;if(Ee)try{Te=Ee.createPolicy(`vue`,{createHTML:e=>e})}catch{}var De=Te?e=>Te.createHTML(e):e=>e,Oe=`http://www.w3.org/2000/svg`,ke=`http://www.w3.org/1998/Math/MathML`,b=typeof document<`u`?document:null,Ae=b&&b.createElement(`template`),je={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?b.createElementNS(Oe,e):t===`mathml`?b.createElementNS(ke,e):n?b.createElement(e,{is:n}):b.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>b.createTextNode(e),createComment:e=>b.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>b.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Ae.innerHTML=De(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ae.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},x=`transition`,Me=`animation`,S=Symbol(`_vtc`),Ne={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},Pe=ve({},de,Ne),Fe=(e=>(e.displayName=`Transition`,e.props=Pe,e))((e,{slots:t})=>y(ge,Le(e),t)),C=(e,t=[])=>{ue(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ie=e=>e?ue(e)?e.some(e=>e.length>1):e.length>1:!1;function Le(e){let t={};for(let n in e)n in Ne||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Re(i),ee=m&&m[0],h=m&&m[1],{onBeforeEnter:g,onEnter:te,onEnterCancelled:_,onLeave:ne,onLeaveCancelled:re,onBeforeAppear:ie=g,onAppear:ae=te,onAppearCancelled:oe=_}=t,se=(e,t,n,r)=>{e._enterCancelled=r,T(e,t?u:s),T(e,t?l:o),n&&n()},v=(e,t)=>{e._isLeaving=!1,T(e,d),T(e,p),T(e,f),t&&t()},ce=e=>(t,n)=>{let i=e?ae:te,o=()=>se(t,e,n);C(i,[t,o]),Be(()=>{T(t,e?c:a),w(t,e?u:s),Ie(i)||He(t,r,ee,o)})};return ve(t,{onBeforeEnter(e){C(g,[e]),w(e,a),w(e,o)},onBeforeAppear(e){C(ie,[e]),w(e,c),w(e,l)},onEnter:ce(!1),onAppear:ce(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>v(e,t);w(e,d),e._enterCancelled?(w(e,f),Ke(e)):(Ke(e),w(e,f)),Be(()=>{e._isLeaving&&(T(e,d),w(e,p),Ie(ne)||He(e,r,h,n))}),C(ne,[e,n])},onEnterCancelled(e){se(e,!1,void 0,!0),C(_,[e])},onAppearCancelled(e){se(e,!0,void 0,!0),C(oe,[e])},onLeaveCancelled(e){v(e),C(re,[e])}})}function Re(e){if(e==null)return null;if(p(e))return[ze(e.enter),ze(e.leave)];{let t=ze(e);return[t,t]}}function ze(e){return c(e)}function w(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[S]||(e[S]=new Set)).add(t)}function T(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[S];n&&(n.delete(t),n.size||(e[S]=void 0))}function Be(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ve=0;function He(e,t,n,r){let i=e._endId=++Ve,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ue(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ue(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${x}Delay`),a=r(`${x}Duration`),o=We(i,a),s=r(`${Me}Delay`),c=r(`${Me}Duration`),l=We(s,c),u=null,d=0,f=0;t===x?o>0&&(u=x,d=o,f=a.length):t===Me?l>0&&(u=Me,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?x:Me:null,f=u?u===x?a.length:c.length:0);let p=u===x&&/\b(?:transform|all)(?:,|$)/.test(r(`${x}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function We(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ge(t)+Ge(e[n])))}function Ge(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Ke(e){return(e?e.ownerDocument:document).body.offsetHeight}function qe(e,t,n){let r=e[S];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Je=Symbol(`_vod`),Ye=Symbol(`_vsh`),Xe={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Je]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ze(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),Ze(e,!0),r.enter(e)):r.leave(e,()=>{Ze(e,!1)}):Ze(e,t))},beforeUnmount(e,{value:t}){Ze(e,t)}};function Ze(e,t){e.style.display=t?e[Je]:`none`,e[Ye]=!t}var Qe=Symbol(``),$e=/(?:^|;)\s*display\s*:/;function et(e,t,n){let r=e.style,i=h(n),a=!1;if(n&&!i){if(t)if(h(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??nt(r,t,``)}else for(let e in t)n[e]??nt(r,e,``);for(let e in n)e===`display`&&(a=!0),nt(r,e,n[e])}else if(i){if(t!==n){let e=r[Qe];e&&(n+=`;`+e),r.cssText=n,a=$e.test(n)}}else t&&e.removeAttribute(`style`);Je in e&&(e[Je]=a?r.display:``,e[Ye]&&(r.display=`none`))}var tt=/\s*!important$/;function nt(e,t,n){if(ue(n))n.forEach(n=>nt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=at(e,t);tt.test(n)?e.setProperty(te(r),n.replace(tt,``),`important`):e[r]=n}}var rt=[`Webkit`,`Moz`,`ms`],it={};function at(e,t){let n=it[t];if(n)return n;let r=g(t);if(r!==`filter`&&r in e)return it[t]=r;r=ce(r);for(let n=0;n<rt.length;n++){let i=rt[n]+r;if(i in e)return it[t]=i}return t}var ot=`http://www.w3.org/1999/xlink`;function st(e,t,n,r,i,a=we(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(ot,t.slice(6,t.length)):e.setAttributeNS(ot,t,n):n==null||a&&!ne(n)?e.removeAttribute(t):e.setAttribute(t,a?``:Se(n)?String(n):n)}function ct(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?De(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=ne(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function E(e,t,n,r){e.addEventListener(t,n,r)}function lt(e,t,n,r){e.removeEventListener(t,n,r)}var ut=Symbol(`_vei`);function dt(e,t,n,r,i=null){let a=e[ut]||(e[ut]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=pt(t);r?E(e,n,a[t]=_t(r,i),s):o&&(lt(e,n,o,s),a[t]=void 0)}}var ft=/(?:Once|Passive|Capture)$/;function pt(e){let t;if(ft.test(e)){t={};let n;for(;n=e.match(ft);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):te(e.slice(2)),t]}var mt=0,ht=Promise.resolve(),gt=()=>mt||=(ht.then(()=>mt=0),Date.now());function _t(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;he(vt(e,n.value),t,5,[e])};return n.value=e,n.attached=gt(),n}function vt(e,t){if(ue(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var yt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bt=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?qe(e,r,o):t===`style`?et(e,n,r):be(t)?re(t)||dt(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):xt(e,t,r,o))?(ct(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&st(e,t,r,o,a,t!==`value`)):e._isVueCE&&(St(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!h(r)))?ct(e,g(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),st(e,t,r,o))};function xt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&yt(t)&&ie(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return yt(t)&&h(n)?!1:t in e}function St(e,t){let n=e._def.props;if(!n)return!1;let r=g(t);return Array.isArray(n)?n.some(e=>g(e)===r):Object.keys(n).some(e=>g(e)===r)}var Ct=new WeakMap,wt=new WeakMap,Tt=Symbol(`_moveCb`),Et=Symbol(`_enterCb`),Dt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:ve({},Pe,{tag:String,moveClass:String}),setup(t,{slots:r}){let i=Ce(),a=n(),s,c;return o(()=>{if(!s.length)return;let e=t.moveClass||`${t.name||`v`}-move`;if(!Mt(s[0].el,i.vnode.el,e)){s=[];return}s.forEach(Ot),s.forEach(kt);let n=s.filter(At);Ke(i.vnode.el),n.forEach(t=>{let n=t.el,r=n.style;w(n,e),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Tt]=t=>{t&&t.target!==n||(!t||t.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Tt]=null,T(n,e))};n.addEventListener(`transitionend`,i)}),s=[]}),()=>{let n=oe(t),o=Le(n),l=n.tag||ae;if(s=[],c)for(let t=0;t<c.length;t++){let n=c[t];n.el&&n.el instanceof Element&&(s.push(n),u(n,e(n,o,a,i)),Ct.set(n,jt(n.el)))}c=r.default?ee(r.default()):[];for(let t=0;t<c.length;t++){let n=c[t];n.key!=null&&u(n,e(n,o,a,i))}return f(l,null,c)}}});function Ot(e){let t=e.el;t[Tt]&&t[Tt](),t[Et]&&t[Et]()}function kt(e){wt.set(e,jt(e.el))}function At(e){let t=Ct.get(e),n=wt.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function jt(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Mt(e,t,n){let r=e.cloneNode(),i=e[S];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ue(r);return a.removeChild(r),o}var Nt=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return ue(t)?e=>fe(t,e):t};function Pt(e){e.target.composing=!0}function Ft(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var It=Symbol(`_assign`);function Lt(e,t,n){return t&&(e=e.trim()),n&&(e=s(e)),e}var Rt={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[It]=Nt(i);let a=r||i.props&&i.props.type===`number`;E(e,t?`change`:`input`,t=>{t.target.composing||e[It](Lt(e.value,n,a))}),(n||a)&&E(e,`change`,()=>{e.value=Lt(e.value,n,a)}),t||(E(e,`compositionstart`,Pt),E(e,`compositionend`,Ft),E(e,`change`,Ft))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[It]=Nt(o),e.composing)return;let c=(a||e.type===`number`)&&!/^0\d/.test(e.value)?s(e.value):e.value,l=t??``;if(c===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},zt=[`ctrl`,`shift`,`alt`,`meta`],Bt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>zt.some(n=>e[`${n}Key`]&&!t.includes(n))},Vt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Bt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Ht=ve({patchProp:bt},je),Ut;function Wt(){return Ut||=le(Ht)}var Gt=((...e)=>{let t=Wt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=qt(e);if(!r)return;let i=t._component;!ie(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Kt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Kt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function qt(e){return h(e)?document.querySelector(e):e}function Jt(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function Yt(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var Xt=/\s*,(?![^(]*\))\s*/g,Zt=/\s+/g;function Qt(e,t){let n=[];return t.split(Xt).forEach(t=>{let r=Yt(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function $t(e,t){let n=[];return t.split(Xt).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function en(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?Qt(t,e):$t(t,e))}),t.join(`, `).replace(Zt,` `)}function tn(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function nn(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function rn(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function an(e){return e?/^\s*@(s|m)/.test(e):!1}var on=/[A-Z]/g;function sn(e){return e.replace(on,e=>`-`+e.toLowerCase())}function cn(e,t=` `){return typeof e==`object`&&e?` {
2
+ `+Object.entries(e).map(e=>t+` ${sn(e[0])}: ${e[1]};`).join(`
3
+ `)+`
4
+ `+t+`}`:`: ${e};`}function ln(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function un(e,t,n,r){if(!t)return``;let i=ln(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
5
+ }`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
6
+ `+t+`
7
+ `);return}e=sn(e),t!=null&&o.push(` ${e}${cn(t)}`)}),e&&o.push(`}`),o.join(`
8
+ `)}function dn(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))dn(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?dn(r,t,n):r&&n(r)}else e&&n(e)})}function fn(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)an(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});an(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)an(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});an(e)?o=e:t.push(e)}let s=en(t),c=un(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&dn(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=un(s,{raw:e},r,i);n.push(t)}else fn(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function pn(e,t,n){let r=[];return fn(e,[],r,t,n),r.join(`
9
+
10
+ `)}function mn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 hn(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(tn),t.els=[];else{let e=nn(n,r);e&&i.includes(e)&&(tn(e),t.els=i.filter(t=>t!==e))}}function gn(e,t){e.push(t)}function _n(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=mn(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=nn(n,s);if(u!==null&&!a)return u;let d=u??rn(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),gn(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),gn(t.els,d),d}function vn(e){return pn(this,this.instance,e)}function yn(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return _n(this.instance,this,t,r,i,a,o,s,n)}function bn(e={}){let{id:t,parent:n}=e;hn(this.instance,this,t,n)}var xn=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:vn,mount:yn,unmount:bn}},Sn=function(e,t,n,r){return Array.isArray(t)?xn(e,{$:null},null,t):Array.isArray(n)?xn(e,t,null,n):Array.isArray(r)?xn(e,t,n,r):xn(e,t,n,null)};function Cn(e={}){let t={c:((...e)=>Sn(t,...e)),use:(e,...n)=>e.install(t,...n),find:nn,context:{},config:e};return t}function wn(e,t){if(e===void 0)return!1;if(t){let{context:{ids:n}}=t;return n.has(e)}return nn(e)!==null}var Tn=`.n-`,En=`__`,Dn=`--`,On=Cn(),kn=Jt({blockPrefix:Tn,elementPrefix:En,modifierPrefix:Dn});On.use(kn);var{c:D,find:An}=On,{cB:jn,cE:Mn,cM:Nn,cNotM:Pn}=kn;function Fn(e){return D(({props:{bPrefix:e}})=>`${e||Tn}modal, ${e||Tn}drawer`,[e])}function In(e){return D(({props:{bPrefix:e}})=>`${e||Tn}popover`,[e])}function Ln(e){return D(({props:{bPrefix:e}})=>`&${e||Tn}modal`,e)}var Rn=(...e)=>D(`>`,[jn(...e)]);function zn(e,t){return e+(t===`default`?``:t.replace(/^[a-z]/,e=>e.toUpperCase()))}var Bn={aliceblue:`#F0F8FF`,antiquewhite:`#FAEBD7`,aqua:`#0FF`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,black:`#000`,blanchedalmond:`#FFEBCD`,blue:`#00F`,blueviolet:`#8A2BE2`,brown:`#A52A2A`,burlywood:`#DEB887`,cadetblue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerblue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,cyan:`#0FF`,darkblue:`#00008B`,darkcyan:`#008B8B`,darkgoldenrod:`#B8860B`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,darkgreen:`#006400`,darkkhaki:`#BDB76B`,darkmagenta:`#8B008B`,darkolivegreen:`#556B2F`,darkorange:`#FF8C00`,darkorchid:`#9932CC`,darkred:`#8B0000`,darksalmon:`#E9967A`,darkseagreen:`#8FBC8F`,darkslateblue:`#483D8B`,darkslategray:`#2F4F4F`,darkslategrey:`#2F4F4F`,darkturquoise:`#00CED1`,darkviolet:`#9400D3`,deeppink:`#FF1493`,deepskyblue:`#00BFFF`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1E90FF`,firebrick:`#B22222`,floralwhite:`#FFFAF0`,forestgreen:`#228B22`,fuchsia:`#F0F`,gainsboro:`#DCDCDC`,ghostwhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,gray:`#808080`,grey:`#808080`,green:`#008000`,greenyellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotpink:`#FF69B4`,indianred:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderblush:`#FFF0F5`,lawngreen:`#7CFC00`,lemonchiffon:`#FFFACD`,lightblue:`#ADD8E6`,lightcoral:`#F08080`,lightcyan:`#E0FFFF`,lightgoldenrodyellow:`#FAFAD2`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,lightgreen:`#90EE90`,lightpink:`#FFB6C1`,lightsalmon:`#FFA07A`,lightseagreen:`#20B2AA`,lightskyblue:`#87CEFA`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#B0C4DE`,lightyellow:`#FFFFE0`,lime:`#0F0`,limegreen:`#32CD32`,linen:`#FAF0E6`,magenta:`#F0F`,maroon:`#800000`,mediumaquamarine:`#66CDAA`,mediumblue:`#0000CD`,mediumorchid:`#BA55D3`,mediumpurple:`#9370DB`,mediumseagreen:`#3CB371`,mediumslateblue:`#7B68EE`,mediumspringgreen:`#00FA9A`,mediumturquoise:`#48D1CC`,mediumvioletred:`#C71585`,midnightblue:`#191970`,mintcream:`#F5FFFA`,mistyrose:`#FFE4E1`,moccasin:`#FFE4B5`,navajowhite:`#FFDEAD`,navy:`#000080`,oldlace:`#FDF5E6`,olive:`#808000`,olivedrab:`#6B8E23`,orange:`#FFA500`,orangered:`#FF4500`,orchid:`#DA70D6`,palegoldenrod:`#EEE8AA`,palegreen:`#98FB98`,paleturquoise:`#AFEEEE`,palevioletred:`#DB7093`,papayawhip:`#FFEFD5`,peachpuff:`#FFDAB9`,peru:`#CD853F`,pink:`#FFC0CB`,plum:`#DDA0DD`,powderblue:`#B0E0E6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#F00`,rosybrown:`#BC8F8F`,royalblue:`#4169E1`,saddlebrown:`#8B4513`,salmon:`#FA8072`,sandybrown:`#F4A460`,seagreen:`#2E8B57`,seashell:`#FFF5EE`,sienna:`#A0522D`,silver:`#C0C0C0`,skyblue:`#87CEEB`,slateblue:`#6A5ACD`,slategray:`#708090`,slategrey:`#708090`,snow:`#FFFAFA`,springgreen:`#00FF7F`,steelblue:`#4682B4`,tan:`#D2B48C`,teal:`#008080`,thistle:`#D8BFD8`,tomato:`#FF6347`,turquoise:`#40E0D0`,violet:`#EE82EE`,wheat:`#F5DEB3`,white:`#FFF`,whitesmoke:`#F5F5F5`,yellow:`#FF0`,yellowgreen:`#9ACD32`,transparent:`#0000`};function Vn(e,t,n){t/=100,n/=100;let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Hn(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}var O=`^\\s*`,k=`\\s*$`,A=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*`,j=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*`,M=`([0-9A-Fa-f])`,N=`([0-9A-Fa-f]{2})`,Un=RegExp(`${O}hsl\\s*\\(${j},${A},${A}\\)${k}`),Wn=RegExp(`${O}hsv\\s*\\(${j},${A},${A}\\)${k}`),Gn=RegExp(`${O}hsla\\s*\\(${j},${A},${A},${j}\\)${k}`),Kn=RegExp(`${O}hsva\\s*\\(${j},${A},${A},${j}\\)${k}`),qn=RegExp(`${O}rgb\\s*\\(${j},${j},${j}\\)${k}`),Jn=RegExp(`${O}rgba\\s*\\(${j},${j},${j},${j}\\)${k}`),Yn=RegExp(`${O}#${M}${M}${M}${k}`),Xn=RegExp(`${O}#${N}${N}${N}${k}`),Zn=RegExp(`${O}#${M}${M}${M}${M}${k}`),Qn=RegExp(`${O}#${N}${N}${N}${N}${k}`);function P(e){return parseInt(e,16)}function $n(e){try{let t;if(t=Gn.exec(e))return[sr(t[1]),R(t[5]),R(t[9]),I(t[13])];if(t=Un.exec(e))return[sr(t[1]),R(t[5]),R(t[9]),1];throw Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(e){throw e}}function er(e){try{let t;if(t=Kn.exec(e))return[sr(t[1]),R(t[5]),R(t[9]),I(t[13])];if(t=Wn.exec(e))return[sr(t[1]),R(t[5]),R(t[9]),1];throw Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(e){throw e}}function F(e){try{let t;if(t=Xn.exec(e))return[P(t[1]),P(t[2]),P(t[3]),1];if(t=qn.exec(e))return[L(t[1]),L(t[5]),L(t[9]),1];if(t=Jn.exec(e))return[L(t[1]),L(t[5]),L(t[9]),I(t[13])];if(t=Yn.exec(e))return[P(t[1]+t[1]),P(t[2]+t[2]),P(t[3]+t[3]),1];if(t=Qn.exec(e))return[P(t[1]),P(t[2]),P(t[3]),I(P(t[4])/255)];if(t=Zn.exec(e))return[P(t[1]+t[1]),P(t[2]+t[2]),P(t[3]+t[3]),I(P(t[4]+t[4])/255)];if(e in Bn)return F(Bn[e]);if(Un.test(e)||Gn.test(e)){let[t,n,r,i]=$n(e);return[...Hn(t,n,r),i]}else if(Wn.test(e)||Kn.test(e)){let[t,n,r,i]=er(e);return[...Vn(t,n,r),i]}throw Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(e){throw e}}function tr(e){return e>1?1:e<0?0:e}function nr(e,t,n,r){return`rgba(${L(e)}, ${L(t)}, ${L(n)}, ${tr(r)})`}function rr(e,t,n,r,i){return L((e*t*(1-r)+n*r)/i)}function ir(e,t){Array.isArray(e)||(e=F(e)),Array.isArray(t)||(t=F(t));let n=e[3],r=t[3],i=I(n+r-n*r);return nr(rr(e[0],n,t[0],r,i),rr(e[1],n,t[1],r,i),rr(e[2],n,t[2],r,i),i)}function ar(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:F(e);return typeof t.alpha==`number`?nr(n,r,i,t.alpha):nr(n,r,i,a)}function or(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:F(e),{lightness:o=1,alpha:s=1}=t;return cr([n*o,r*o,i*o,a*s])}function I(e){let t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function sr(e){let t=Math.round(Number(e));return t>=360||t<0?0:t}function L(e){let t=Math.round(Number(e));return t>255?255:t<0?0:t}function R(e){let t=Math.round(Number(e));return t>100?100:t<0?0:t}function cr(e){let[t,n,r]=e;return 3 in e?`rgba(${L(t)}, ${L(n)}, ${L(r)}, ${I(e[3])})`:`rgba(${L(t)}, ${L(n)}, ${L(r)}, 1)`}function lr(e){let t=v(e),n=_e(t.value);return l(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function ur(){let e=_e(!1);return i(()=>{e.value=!0}),_(e)}function dr(e){return e}var fr=typeof document<`u`&&typeof window<`u`,pr=`@css-render/vue3-ssr`;function mr(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}function hr(e,t,n){let{styles:r,ids:i}=n;i.has(e)||r!==null&&(i.add(e),r.push(mr(e,t)))}var gr=typeof document<`u`;function _r(){if(gr)return;let e=t(pr,null);if(e!==null)return{adapter:(t,n)=>hr(t,n,e),context:e}}function vr(e,t){console.error(`[naive/${e}]: ${t}`)}function yr(e,t){throw Error(`[naive/${e}]: ${t}`)}function br(e,...t){if(Array.isArray(e))e.forEach(e=>br(e,...t));else return e(...t)}function z(e){return e.some(e=>xe(e)?!(e.type===pe||e.type===ae&&!z(e.children)):!0)?e:null}function xr(e,t){return e&&z(e())||t()}function Sr(e,t,n){return e&&z(e(t))||n(t)}function Cr(e,t){return t(e&&z(e())||null)}function wr(e){return!(e&&z(e()))}var B=dr(`n-config-provider`);function Tr(e={},n={defaultBordered:!0}){let r=t(B,null);return{inlineThemeDisabled:r?.inlineThemeDisabled,mergedRtlRef:r?.mergedRtlRef,mergedComponentPropsRef:r?.mergedComponentPropsRef,mergedBreakpointsRef:r?.mergedBreakpointsRef,mergedBorderedRef:v(()=>{let{bordered:t}=e;return t===void 0?r?.mergedBorderedRef.value??n.defaultBordered??!0:t}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:me(`n`),namespaceRef:v(()=>r?.mergedNamespaceRef.value)}}function Er(){let e=t(B,null);return e?e.mergedClsPrefixRef:me(`n`)}function Dr(e,n,r,i){r||yr(`useThemeClass`,`cssVarsRef is not passed`);let a=t(B,null),o=a?.mergedThemeHashRef,s=a?.styleMountTarget,c=_e(``),l=_r(),u,f=`__${e}`,p=()=>{let e=f,t=n?n.value:void 0,a=o?.value;a&&(e+=`-${a}`),t&&(e+=`-${t}`);let{themeOverrides:d,builtinThemeOverrides:p}=i;d&&(e+=`-${mn(JSON.stringify(d))}`),p&&(e+=`-${mn(JSON.stringify(p))}`),c.value=e,u=()=>{let t=r.value,n=``;for(let e in t)n+=`${e}: ${t[e]};`;D(`.${e}`,n).mount({id:e,ssr:l,parent:s}),u=void 0}};return d(()=>{p()}),{themeClass:c,onRender:()=>{u?.()}}}var Or=dr(`n-form-item`);function kr(e,{defaultSize:n=`medium`,mergedSize:i,mergedDisabled:a}={}){let o=t(Or,null);r(Or,null);let s=v(i?()=>i(o):()=>{let{size:t}=e;if(t)return t;if(o){let{mergedSize:e}=o;if(e.value!==void 0)return e.value}return n}),c=v(a?()=>a(o):()=>{let{disabled:t}=e;return t===void 0?o?o.disabled.value:!1:t}),l=v(()=>{let{status:t}=e;return t||o?.mergedValidationStatus.value});return se(()=>{o&&o.restoreValidation()}),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Ar=typeof global==`object`&&global&&global.Object===Object&&global,jr=typeof self==`object`&&self&&self.Object===Object&&self,V=Ar||jr||Function(`return this`)(),H=V.Symbol,Mr=Object.prototype,Nr=Mr.hasOwnProperty,Pr=Mr.toString,U=H?H.toStringTag:void 0;function Fr(e){var t=Nr.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch{}var i=Pr.call(e);return r&&(t?e[U]=n:delete e[U]),i}var Ir=Object.prototype.toString;function Lr(e){return Ir.call(e)}var Rr=`[object Null]`,zr=`[object Undefined]`,Br=H?H.toStringTag:void 0;function Vr(e){return e==null?e===void 0?zr:Rr:Br&&Br in Object(e)?Fr(e):Lr(e)}function W(e){return typeof e==`object`&&!!e}var Hr=Array.isArray;function G(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Ur(e){return e}var Wr=`[object AsyncFunction]`,Gr=`[object Function]`,Kr=`[object GeneratorFunction]`,qr=`[object Proxy]`;function Jr(e){if(!G(e))return!1;var t=Vr(e);return t==Gr||t==Kr||t==Wr||t==qr}var Yr=V[`__core-js_shared__`],Xr=function(){var e=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Zr(e){return!!Xr&&Xr in e}var Qr=Function.prototype.toString;function $r(e){if(e!=null){try{return Qr.call(e)}catch{}try{return e+``}catch{}}return``}var ei=/[\\^$.*+?()[\]{}|]/g,ti=/^\[object .+?Constructor\]$/,ni=Function.prototype,ri=Object.prototype,ii=ni.toString,ai=ri.hasOwnProperty,oi=RegExp(`^`+ii.call(ai).replace(ei,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function si(e){return!G(e)||Zr(e)?!1:(Jr(e)?oi:ti).test($r(e))}function ci(e,t){return e?.[t]}function li(e,t){var n=ci(e,t);return si(n)?n:void 0}var ui=Object.create,di=function(){function e(){}return function(t){if(!G(t))return{};if(ui)return ui(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function fi(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function pi(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var mi=800,hi=16,gi=Date.now;function _i(e){var t=0,n=0;return function(){var r=gi(),i=hi-(r-n);if(n=r,i>0){if(++t>=mi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function vi(e){return function(){return e}}var yi=function(){try{var e=li(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),bi=_i(yi?function(e,t){return yi(e,`toString`,{configurable:!0,enumerable:!1,value:vi(t),writable:!0})}:Ur),xi=9007199254740991,Si=/^(?:0|[1-9]\d*)$/;function Ci(e,t){var n=typeof e;return t??=xi,!!t&&(n==`number`||n!=`symbol`&&Si.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){t==`__proto__`&&yi?yi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ti(e,t){return e===t||e!==e&&t!==t}var Ei=Object.prototype.hasOwnProperty;function Di(e,t,n){var r=e[t];(!(Ei.call(e,t)&&Ti(r,n))||n===void 0&&!(t in e))&&wi(e,t,n)}function Oi(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?wi(n,s,c):Di(n,s,c)}return n}var ki=Math.max;function Ai(e,t,n){return t=ki(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ki(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),fi(e,this,s)}}function ji(e,t){return bi(Ai(e,t,Ur),e+``)}var Mi=9007199254740991;function Ni(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Mi}function Pi(e){return e!=null&&Ni(e.length)&&!Jr(e)}function Fi(e,t,n){if(!G(n))return!1;var r=typeof t;return(r==`number`?Pi(n)&&Ci(t,n.length):r==`string`&&t in n)?Ti(n[t],e):!1}function Ii(e){return ji(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Fi(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Li=Object.prototype;function Ri(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Li)}function zi(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Bi=`[object Arguments]`;function Vi(e){return W(e)&&Vr(e)==Bi}var Hi=Object.prototype,Ui=Hi.hasOwnProperty,Wi=Hi.propertyIsEnumerable,Gi=Vi(function(){return arguments}())?Vi:function(e){return W(e)&&Ui.call(e,`callee`)&&!Wi.call(e,`callee`)};function Ki(){return!1}var qi=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ji=qi&&typeof module==`object`&&module&&!module.nodeType&&module,Yi=Ji&&Ji.exports===qi?V.Buffer:void 0,Xi=(Yi?Yi.isBuffer:void 0)||Ki,Zi=`[object Arguments]`,Qi=`[object Array]`,$i=`[object Boolean]`,ea=`[object Date]`,ta=`[object Error]`,na=`[object Function]`,ra=`[object Map]`,ia=`[object Number]`,aa=`[object Object]`,oa=`[object RegExp]`,sa=`[object Set]`,ca=`[object String]`,la=`[object WeakMap]`,ua=`[object ArrayBuffer]`,da=`[object DataView]`,fa=`[object Float32Array]`,pa=`[object Float64Array]`,ma=`[object Int8Array]`,ha=`[object Int16Array]`,ga=`[object Int32Array]`,_a=`[object Uint8Array]`,va=`[object Uint8ClampedArray]`,ya=`[object Uint16Array]`,ba=`[object Uint32Array]`,K={};K[fa]=K[pa]=K[ma]=K[ha]=K[ga]=K[_a]=K[va]=K[ya]=K[ba]=!0,K[Zi]=K[Qi]=K[ua]=K[$i]=K[da]=K[ea]=K[ta]=K[na]=K[ra]=K[ia]=K[aa]=K[oa]=K[sa]=K[ca]=K[la]=!1;function xa(e){return W(e)&&Ni(e.length)&&!!K[Vr(e)]}function Sa(e){return function(t){return e(t)}}var Ca=typeof exports==`object`&&exports&&!exports.nodeType&&exports,wa=Ca&&typeof module==`object`&&module&&!module.nodeType&&module,Ta=wa&&wa.exports===Ca&&Ar.process,Ea=function(){try{return wa&&wa.require&&wa.require(`util`).types||Ta&&Ta.binding&&Ta.binding(`util`)}catch{}}(),Da=Ea&&Ea.isTypedArray,Oa=Da?Sa(Da):xa,ka=Object.prototype.hasOwnProperty;function Aa(e,t){var n=Hr(e),r=!n&&Gi(e),i=!n&&!r&&Xi(e),a=!n&&!r&&!i&&Oa(e),o=n||r||i||a,s=o?zi(e.length,String):[],c=s.length;for(var l in e)(t||ka.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ci(l,c)))&&s.push(l);return s}function ja(e,t){return function(n){return e(t(n))}}function Ma(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Na=Object.prototype.hasOwnProperty;function Pa(e){if(!G(e))return Ma(e);var t=Ri(e),n=[];for(var r in e)r==`constructor`&&(t||!Na.call(e,r))||n.push(r);return n}function Fa(e){return Pi(e)?Aa(e,!0):Pa(e)}var Ia=li(Object,`create`);function La(){this.__data__=Ia?Ia(null):{},this.size=0}function Ra(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var za=`__lodash_hash_undefined__`,Ba=Object.prototype.hasOwnProperty;function Va(e){var t=this.__data__;if(Ia){var n=t[e];return n===za?void 0:n}return Ba.call(t,e)?t[e]:void 0}var Ha=Object.prototype.hasOwnProperty;function Ua(e){var t=this.__data__;return Ia?t[e]!==void 0:Ha.call(t,e)}var Wa=`__lodash_hash_undefined__`;function Ga(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Ia&&t===void 0?Wa:t,this}function q(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}q.prototype.clear=La,q.prototype.delete=Ra,q.prototype.get=Va,q.prototype.has=Ua,q.prototype.set=Ga;function Ka(){this.__data__=[],this.size=0}function qa(e,t){for(var n=e.length;n--;)if(Ti(e[n][0],t))return n;return-1}var Ja=Array.prototype.splice;function Ya(e){var t=this.__data__,n=qa(t,e);return n<0?!1:(n==t.length-1?t.pop():Ja.call(t,n,1),--this.size,!0)}function Xa(e){var t=this.__data__,n=qa(t,e);return n<0?void 0:t[n][1]}function Za(e){return qa(this.__data__,e)>-1}function Qa(e,t){var n=this.__data__,r=qa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function J(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}J.prototype.clear=Ka,J.prototype.delete=Ya,J.prototype.get=Xa,J.prototype.has=Za,J.prototype.set=Qa;var $a=li(V,`Map`);function eo(){this.size=0,this.__data__={hash:new q,map:new($a||J),string:new q}}function to(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function no(e,t){var n=e.__data__;return to(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function ro(e){var t=no(this,e).delete(e);return this.size-=+!!t,t}function io(e){return no(this,e).get(e)}function ao(e){return no(this,e).has(e)}function oo(e,t){var n=no(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Y(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Y.prototype.clear=eo,Y.prototype.delete=ro,Y.prototype.get=io,Y.prototype.has=ao,Y.prototype.set=oo;var so=ja(Object.getPrototypeOf,Object),co=`[object Object]`,lo=Function.prototype,uo=Object.prototype,fo=lo.toString,po=uo.hasOwnProperty,mo=fo.call(Object);function ho(e){if(!W(e)||Vr(e)!=co)return!1;var t=so(e);if(t===null)return!0;var n=po.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&fo.call(n)==mo}function go(){this.__data__=new J,this.size=0}function _o(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function vo(e){return this.__data__.get(e)}function yo(e){return this.__data__.has(e)}var bo=200;function xo(e,t){var n=this.__data__;if(n instanceof J){var r=n.__data__;if(!$a||r.length<bo-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Y(r)}return n.set(e,t),this.size=n.size,this}function X(e){this.size=(this.__data__=new J(e)).size}X.prototype.clear=go,X.prototype.delete=_o,X.prototype.get=vo,X.prototype.has=yo,X.prototype.set=xo;var So=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Co=So&&typeof module==`object`&&module&&!module.nodeType&&module,wo=Co&&Co.exports===So?V.Buffer:void 0,To=wo?wo.allocUnsafe:void 0;function Eo(e,t){if(t)return e.slice();var n=e.length,r=To?To(n):new e.constructor(n);return e.copy(r),r}var Do=V.Uint8Array;function Oo(e){var t=new e.constructor(e.byteLength);return new Do(t).set(new Do(e)),t}function ko(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e){return typeof e.constructor==`function`&&!Ri(e)?di(so(e)):{}}function jo(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Mo=jo();function No(e,t,n){(n!==void 0&&!Ti(e[t],n)||n===void 0&&!(t in e))&&wi(e,t,n)}function Po(e){return W(e)&&Pi(e)}function Fo(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Io(e){return Oi(e,Fa(e))}function Lo(e,t,n,r,i,a,o){var s=Fo(e,n),c=Fo(t,n),l=o.get(c);if(l){No(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=Hr(c),p=!f&&Xi(c),m=!f&&!p&&Oa(c);u=c,f||p||m?Hr(s)?u=s:Po(s)?u=pi(s):p?(d=!1,u=Eo(c,!0)):m?(d=!1,u=ko(c,!0)):u=[]:ho(c)||Gi(c)?(u=s,Gi(s)?u=Io(s):(!G(s)||Jr(s))&&(u=Ao(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),No(e,n,u)}function Ro(e,t,n,r,i){e!==t&&Mo(t,function(a,o){if(i||=new X,G(a))Lo(e,t,o,n,Ro,r,i);else{var s=r?r(Fo(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),No(e,o,s)}},Fa)}var zo=Ii(function(e,t,n){Ro(e,t,n)}),Z=`naive-ui-style`;function Bo(e,n,r){if(!n)return;let i=_r(),o=v(()=>{let{value:t}=n;if(!t)return;let r=t[e];if(r)return r}),s=t(B,null),c=()=>{d(()=>{let{value:t}=r,n=`${t}${e}Rtl`;if(wn(n,i))return;let{value:a}=o;a&&a.style.mount({id:n,head:!0,anchorMetaName:Z,props:{bPrefix:t?`.${t}-`:void 0},ssr:i,parent:s?.styleMountTarget})})};return i?c():a(c),o}var Vo={fontFamily:`v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMono:`v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace`,fontWeight:`400`,fontWeightStrong:`500`,cubicBezierEaseInOut:`cubic-bezier(.4, 0, .2, 1)`,cubicBezierEaseOut:`cubic-bezier(0, 0, .2, 1)`,cubicBezierEaseIn:`cubic-bezier(.4, 0, 1, 1)`,borderRadius:`3px`,borderRadiusSmall:`2px`,fontSize:`14px`,fontSizeMini:`12px`,fontSizeTiny:`12px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,lineHeight:`1.6`,heightMini:`16px`,heightTiny:`22px`,heightSmall:`28px`,heightMedium:`34px`,heightLarge:`40px`,heightHuge:`46px`},{fontSize:Ho,fontFamily:Uo,lineHeight:Wo}=Vo,Go=D(`body`,`
11
+ margin: 0;
12
+ font-size: ${Ho};
13
+ font-family: ${Uo};
14
+ line-height: ${Wo};
15
+ -webkit-text-size-adjust: 100%;
16
+ -webkit-tap-highlight-color: transparent;
17
+ `,[D(`input`,`
18
+ font-family: inherit;
19
+ font-size: inherit;
20
+ `)]);function Ko(e,n,r){if(!n)return;let i=_r(),o=t(B,null),s=()=>{let t=r.value;n.mount({id:t===void 0?e:t+e,head:!0,anchorMetaName:Z,props:{bPrefix:t?`.${t}-`:void 0},ssr:i,parent:o?.styleMountTarget}),o?.preflightStyleDisabled||Go.mount({id:`n-global`,head:!0,anchorMetaName:Z,ssr:i,parent:o?.styleMountTarget})};i?s():a(s)}function qo(e){return e}function Jo(e,n,r,i,o,s){let c=_r(),l=t(B,null);if(r){let e=()=>{let e=s?.value;r.mount({id:e===void 0?n:e+n,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:Z,ssr:c,parent:l?.styleMountTarget}),l?.preflightStyleDisabled||Go.mount({id:`n-global`,head:!0,anchorMetaName:Z,ssr:c,parent:l?.styleMountTarget})};c?e():a(e)}return v(()=>{let{theme:{common:t,self:n,peers:r={}}={},themeOverrides:a={},builtinThemeOverrides:s={}}=o,{common:c,peers:u}=a,{common:d=void 0,[e]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=l?.mergedThemeRef.value||{},{common:ee=void 0,[e]:h={}}=l?.mergedThemeOverridesRef.value||{},{common:g,peers:te={}}=h,_=zo({},t||f||d||i.common,ee,g,c);return{common:_,self:zo((n||p||i.self)?.(_),s,h,a),peers:zo({},i.peers,m,r),peerOverrides:zo({},s.peers,te,u)}})}Jo.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var Yo=ye({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=ur();return()=>y(Fe,{name:`icon-switch-transition`,appear:n.value},t)}}),{cubicBezierEaseInOut:Xo}=Vo;function Zo({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${Xo} !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})]}var Qo=D([D(`@keyframes rotator`,`
21
+ 0% {
22
+ -webkit-transform: rotate(0deg);
23
+ transform: rotate(0deg);
24
+ }
25
+ 100% {
26
+ -webkit-transform: rotate(360deg);
27
+ transform: rotate(360deg);
28
+ }`),jn(`base-loading`,`
29
+ position: relative;
30
+ line-height: 0;
31
+ width: 1em;
32
+ height: 1em;
33
+ `,[Mn(`transition-wrapper`,`
34
+ position: absolute;
35
+ width: 100%;
36
+ height: 100%;
37
+ `,[Zo()]),Mn(`placeholder`,`
38
+ position: absolute;
39
+ left: 50%;
40
+ top: 50%;
41
+ transform: translateX(-50%) translateY(-50%);
42
+ `,[Zo({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),Mn(`container`,`
43
+ animation: rotator 3s linear infinite both;
44
+ `,[Mn(`icon`,`
45
+ height: 1em;
46
+ width: 1em;
47
+ `)])])]),$o=`1.6s`,es={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}},ts=ye({name:`BaseLoading`,props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0}},es),setup(e){Ko(`-base-loading`,Qo,m(e,`clsPrefix`))},render(){let{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:i}=this,a=t/i;return y(`div`,{class:`${e}-base-loading`,role:`img`,"aria-label":`loading`},y(Yo,null,{default:()=>this.show?y(`div`,{key:`icon`,class:`${e}-base-loading__transition-wrapper`},y(`div`,{class:`${e}-base-loading__container`},y(`svg`,{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r}},y(`g`,null,y(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};270 ${a} ${a}`,begin:`0s`,dur:$o,fill:`freeze`,repeatCount:`indefinite`}),y(`circle`,{class:`${e}-base-loading__icon`,fill:`none`,stroke:`currentColor`,"stroke-width":n,"stroke-linecap":`round`,cx:a,cy:a,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},y(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:`0s`,dur:$o,fill:`freeze`,repeatCount:`indefinite`}),y(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*t};${1.42*t};${5.67*t}`,begin:`0s`,dur:$o,fill:`freeze`,repeatCount:`indefinite`})))))):y(`div`,{key:`placeholder`,class:`${e}-base-loading__placeholder`},this.$slots)}))}}),Q={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`},ns=F(Q.neutralBase),rs=F(Q.neutralInvertBase),is=`rgba(${rs.slice(0,3).join(`, `)}, `;function as(e){return`${is+String(e)})`}function $(e){let t=Array.from(rs);return t[3]=Number(e),ir(ns,t)}var os=Object.assign(Object.assign({name:`common`},Vo),{baseColor:Q.neutralBase,primaryColor:Q.primaryDefault,primaryColorHover:Q.primaryHover,primaryColorPressed:Q.primaryActive,primaryColorSuppl:Q.primarySuppl,infoColor:Q.infoDefault,infoColorHover:Q.infoHover,infoColorPressed:Q.infoActive,infoColorSuppl:Q.infoSuppl,successColor:Q.successDefault,successColorHover:Q.successHover,successColorPressed:Q.successActive,successColorSuppl:Q.successSuppl,warningColor:Q.warningDefault,warningColorHover:Q.warningHover,warningColorPressed:Q.warningActive,warningColorSuppl:Q.warningSuppl,errorColor:Q.errorDefault,errorColorHover:Q.errorHover,errorColorPressed:Q.errorActive,errorColorSuppl:Q.errorSuppl,textColorBase:Q.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:$(Q.alpha4),placeholderColor:$(Q.alpha4),placeholderColorDisabled:$(Q.alpha5),iconColor:$(Q.alpha4),iconColorHover:or($(Q.alpha4),{lightness:.75}),iconColorPressed:or($(Q.alpha4),{lightness:.9}),iconColorDisabled:$(Q.alpha5),opacity1:Q.alpha1,opacity2:Q.alpha2,opacity3:Q.alpha3,opacity4:Q.alpha4,opacity5:Q.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:$(Number(Q.alphaClose)),closeIconColorHover:$(Number(Q.alphaClose)),closeIconColorPressed:$(Number(Q.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:$(Q.alpha4),clearColorHover:or($(Q.alpha4),{lightness:.75}),clearColorPressed:or($(Q.alpha4),{lightness:.9}),scrollbarColor:as(Q.alphaScrollbar),scrollbarColorHover:as(Q.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:$(Q.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:Q.neutralPopover,tableColor:Q.neutralCard,cardColor:Q.neutralCard,modalColor:Q.neutralModal,bodyColor:Q.neutralBody,tagColor:`#eee`,avatarColor:$(Q.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:$(Q.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:Q.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)`}),ss=fr&&`chrome`in window;fr&&navigator.userAgent.includes(`Firefox`);var cs=fr&&navigator.userAgent.includes(`Safari`)&&!ss,ls=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{_r as $,li as A,kr as B,Xi as C,Xe as Ct,Ni as D,Pi as E,W as F,z as G,Tr as H,Vr as I,Sr as J,wr as K,H as L,Ur as M,G as N,Ti as O,Hr as P,vr as Q,V as R,Oa as S,Rt as St,Ri as T,Er as U,Dr as V,B as W,br as X,Cr as Y,yr as Z,X as _,Cn as _t,es as a,ir as at,ja as b,Dt as bt,qo as c,D as ct,Vo as d,Mn as dt,fr as et,Bo as f,Nn as ft,Do as g,In as gt,Mo as h,Fn as ht,ts as i,ar as it,$r as j,Ci as k,Jo as l,jn as lt,zo as m,zn as mt,cs as n,ur as nt,Zo as o,F as ot,Z as p,Pn as pt,xr as q,os as r,lr as rt,Yo as s,Ln as st,ls as t,dr as tt,Ko as u,Rn as ut,Y as v,mn as vt,Gi as w,Vt as wt,Aa as x,Gt as xt,$a as y,Fe as yt,Or as z};
@@ -0,0 +1 @@
1
+ import{n as e}from"./MarkdownRenderer-DNP-kPA8.js";import{tt as t}from"./runtime-core.esm-bundler-yNW65ghW.js";import{n}from"./pinia-tE0RcsDr.js";import{n as r}from"./client-BKiVmpru.js";async function i(){return r(`/health`)}async function a(){return r(`/api/available-models`)}async function o(e){await r(`/api/config/model`,{method:`PUT`,body:JSON.stringify(e)})}var s=e({useAppStore:()=>c}),c=n(`app`,()=>{let e=t(!1),n=t(``),r=t([]),s=t(``),c=t(),l=t(!0),u=t(!0),d=t(4096);async function f(){try{let t=await i();e.value=!0,t.version&&(n.value=t.version)}catch{e.value=!1}}async function p(){try{let e=await a();r.value=e.groups,s.value=e.default}catch{}}async function m(e,t){try{let n=r.value.find(t=>t.models.includes(e));await o({default:e,provider:t||n?.provider||``}),s.value=e}catch(e){console.error(`Failed to switch model:`,e)}}function h(e=3e4){g(),f(),c.value=setInterval(f,e)}function g(){c.value&&=(clearInterval(c.value),void 0)}return{connected:e,serverVersion:n,modelGroups:r,selectedModel:s,streamEnabled:l,sessionPersistence:u,maxTokens:d,checkConnection:f,loadModels:p,switchModel:m,startHealthPolling:h,stopHealthPolling:g}});export{c as n,s as t};
@@ -0,0 +1,6 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-4gFjNUoo.js","assets/MarkdownRenderer-DNP-kPA8.js","assets/runtime-core.esm-bundler-yNW65ghW.js","assets/MarkdownRenderer-CrMwC_5d.css","assets/pinia-tE0RcsDr.js","assets/client-BKiVmpru.js"])))=>i.map(i=>d[i]);
2
+ import{tt as e}from"./runtime-core.esm-bundler-yNW65ghW.js";import{n as t}from"./pinia-tE0RcsDr.js";import{n}from"./Warning-Ba-wYRRB.js";import{n as r,t as i}from"./client-BKiVmpru.js";import{n as a}from"./app-4gFjNUoo.js";var o=`/assets/logo-BAarh-tH.png`;async function s(e){return r(`/v1/runs`,{method:`POST`,body:JSON.stringify(e)})}function c(e,t,n,r){let a=`${i()}/v1/runs/${e}/events`,o=!1,s=new EventSource(a);return s.onmessage=e=>{if(!o)try{let r=JSON.parse(e.data);t(r),(r.event===`run.completed`||r.event===`run.failed`)&&(o=!0,s.close(),n())}catch{t({event:`message`,delta:e.data})}},s.onerror=()=>{o||(o=!0,s.close(),r(Error(`SSE connection error`)))},{abort:()=>{o||(o=!0,s.close())}}}async function l(e,t){let n=new URLSearchParams;e&&n.set(`source`,e),t&&n.set(`limit`,String(t));let i=n.toString();return(await r(`/api/sessions${i?`?${i}`:``}`)).sessions}async function u(e){try{return(await r(`/api/sessions/${e}`)).session}catch{return null}}async function d(e){try{return await r(`/api/sessions/${e}`,{method:`DELETE`}),!0}catch{return!1}}function f(){return Date.now().toString(36)+Math.random().toString(36).slice(2,8)}async function p(e){if(e.length===0)return[];let t=new FormData;for(let n of e)n.file&&t.append(`file`,n.file,n.name);let n=await fetch(`/upload`,{method:`POST`,body:t});if(!n.ok)throw Error(`Upload failed: ${n.status}`);return(await n.json()).files}function m(e){let t=new Map;for(let n of e)if(n.role===`assistant`&&n.tool_calls)for(let e of n.tool_calls)e.function?.name&&e.id&&t.set(e.id,e.function.name);let n=[];for(let r of e){if(r.role===`assistant`&&r.tool_calls?.length&&!r.content?.trim()){for(let e of r.tool_calls)n.push({id:String(r.id)+`_`+e.id,role:`tool`,content:``,timestamp:Math.round(r.timestamp*1e3),toolName:e.function?.name||`Tool`,toolStatus:`done`});continue}if(r.role===`tool`){let e=r.tool_name||t.get(r.tool_call_id||``)||`Tool`,i=``;if(r.content)try{let e=JSON.parse(r.content);i=e.url||e.title||e.preview||e.summary||``}catch{i=r.content.slice(0,80)}n.push({id:String(r.id),role:`tool`,content:``,timestamp:Math.round(r.timestamp*1e3),toolName:e,toolPreview:i.slice(0,100)||void 0,toolStatus:`done`});continue}n.push({id:String(r.id),role:r.role,content:r.content||``,timestamp:Math.round(r.timestamp*1e3)})}return n}function h(e){return{id:e.id,title:e.title||`New Chat`,messages:[],createdAt:Math.round(e.started_at*1e3),updatedAt:Math.round((e.ended_at||e.started_at)*1e3),model:e.model,provider:e.billing_provider||``,messageCount:e.message_count}}var g=t(`chat`,()=>{let t=e([]),r=e(null),i=e(!1),o=e(null),g=e(!1),_=e(!1),v=e(null),y=e([]);async function b(){g.value=!0;try{t.value=(await l(`api_server`)).map(h);let e=t.value.filter(e=>e.title===`New Chat`);e.length>0&&await Promise.allSettled(e.map(async e=>{let t=await u(e.id);if(t?.messages){let n=t.messages.find(e=>e.role===`user`);n&&(e.title=n.content.slice(0,40)+(n.content.length>40?`...`:``))}})),!r.value&&t.value.length>0&&await S(t.value[0].id)}catch(e){console.error(`Failed to load sessions:`,e)}finally{g.value=!1}}function x(){let e={id:f(),title:`New Chat`,messages:[],createdAt:Date.now(),updatedAt:Date.now()};return t.value.unshift(e),e}async function S(e){if(r.value=e,v.value=t.value.find(t=>t.id===e)||null,v.value&&v.value.messages.length===0){_.value=!0;try{let t=await u(e);if(t&&t.messages){let e=m(t.messages);if(v.value.messages=e,t.title)v.value.title=t.title;else{let t=e.find(e=>e.role===`user`);if(t){let e=t.content.slice(0,40);v.value.title=e+(t.content.length>40?`...`:``)}}}}catch(e){console.error(`Failed to load session messages:`,e)}finally{_.value=!1}}y.value=v.value?[...v.value.messages]:[]}function C(){if(i.value)return;let e=x();e.model=a().selectedModel||void 0,S(e.id)}async function w(e,t){if(v.value&&(v.value.model=e,v.value.provider=t||``,t)){let{useAppStore:r}=await n(async()=>{let{useAppStore:e}=await import(`./app-4gFjNUoo.js`).then(e=>e.t);return{useAppStore:e}},__vite__mapDeps([0,1,2,3,4,5]));await r().switchModel(e,t)}}async function T(e){await d(e),t.value=t.value.filter(t=>t.id!==e),r.value===e&&(t.value.length>0?await S(t.value[0].id):S(x().id))}function E(e){y.value.push(e)}function D(e,t){let n=y.value.findIndex(t=>t.id===e);n!==-1&&(y.value[n]={...y.value[n],...t})}function O(){if(v.value){if(v.value.title===`New Chat`){let e=y.value.find(e=>e.role===`user`);if(e){let t=e.attachments?.length?e.attachments.map(e=>e.name).join(`, `):e.content;v.value.title=t.slice(0,40)+(t.length>40?`...`:``)}}v.value.updatedAt=Date.now()}}async function k(e,t){if(!(!e.trim()&&!(t&&t.length>0)||i.value)){v.value||S(x().id),E({id:f(),role:`user`,content:e.trim(),timestamp:Date.now(),attachments:t&&t.length>0?t:void 0}),O(),i.value=!0;try{let n=y.value.filter(e=>(e.role===`user`||e.role===`assistant`)&&e.content.trim()).map(e=>({role:e.role,content:e.content})),r=e.trim();if(t&&t.length>0){let e=(await p(t)).map(e=>`[File: ${e.name}](${e.path})`);r=r?r+`
3
+
4
+ `+e.join(`
5
+ `):e.join(`
6
+ `)}let l=a(),u=v.value?.model||l.selectedModel,d=await s({input:r,conversation_history:n,session_id:v.value?.id,model:u||void 0}),m=d.run_id||d.id;if(!m){E({id:f(),role:`system`,content:`Error: startRun returned no run ID. Response: ${JSON.stringify(d)}`,timestamp:Date.now()}),i.value=!1;return}o.value=c(m,e=>{switch(e.event){case`run.started`:break;case`message.delta`:{let t=y.value[y.value.length-1];t?.role===`assistant`&&t.isStreaming?t.content+=e.delta||``:E({id:f(),role:`assistant`,content:e.delta||``,timestamp:Date.now(),isStreaming:!0});break}case`tool.started`:{let t=y.value[y.value.length-1];t?.isStreaming&&D(t.id,{isStreaming:!1}),E({id:f(),role:`tool`,content:``,timestamp:Date.now(),toolName:e.tool||e.name,toolPreview:e.preview,toolStatus:`running`});break}case`tool.completed`:{let e=y.value.filter(e=>e.role===`tool`&&e.toolStatus===`running`);if(e.length>0){let t=e[e.length-1];D(t.id,{toolStatus:`done`})}break}case`run.completed`:let t=y.value[y.value.length-1];t?.isStreaming&&D(t.id,{isStreaming:!1}),i.value=!1,o.value=null,O();break;case`run.failed`:let n=y.value[y.value.length-1];n?.isStreaming?D(n.id,{isStreaming:!1,content:e.error?`Error: ${e.error}`:`Run failed`,role:`system`}):E({id:f(),role:`system`,content:e.error?`Error: ${e.error}`:`Run failed`,timestamp:Date.now()}),y.value.forEach((e,t)=>{e.role===`tool`&&e.toolStatus===`running`&&(y.value[t]={...e,toolStatus:`error`})}),i.value=!1,o.value=null;break}},()=>{let e=y.value[y.value.length-1];e?.isStreaming&&D(e.id,{isStreaming:!1}),i.value=!1,o.value=null,O()},e=>{let t=y.value[y.value.length-1];t?.isStreaming?D(t.id,{isStreaming:!1,content:`Error: ${e.message}`,role:`system`}):E({id:f(),role:`system`,content:`Error: ${e.message}`,timestamp:Date.now()}),i.value=!1,o.value=null})}catch(e){E({id:f(),role:`system`,content:`Error: ${e.message}`,timestamp:Date.now()}),i.value=!1,o.value=null}}}function A(){o.value?.abort(),i.value=!1;let e=y.value[y.value.length-1];e?.isStreaming&&D(e.id,{isStreaming:!1}),o.value=null}return b(),{sessions:t,activeSessionId:r,activeSession:v,messages:y,isStreaming:i,isLoadingSessions:g,isLoadingMessages:_,newChat:C,switchSession:S,switchSessionModel:w,deleteSession:T,sendMessage:k,stopStreaming:A,loadSessions:b}});export{o as n,g as t};
@@ -0,0 +1,109 @@
1
+ import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-core.esm-bundler-yNW65ghW.js";import{B as c,H as l,K as u,V as d,X as f,Y as p,at as m,bt as h,ct as g,d as _,dt as v,et as y,f as b,ft as x,i as S,it as C,l as w,lt as T,mt as E,n as D,o as O,pt as k,r as A,rt as j,s as M,tt as N,u as P,yt as F}from"./_plugin-vue_export-helper-CV9qMihF.js";function I(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}var L=o({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(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth=`0`:t.style.maxHeight=`0`,t.offsetWidth;let{onLeave:n}=e;n&&n()}function i(t){e.width?t.style.maxWidth=``:t.style.maxHeight=``;let{onAfterLeave:n}=e;n&&n()}function a(t){if(t.style.transition=`none`,e.width){let e=t.offsetWidth;t.style.maxWidth=`0`,t.offsetWidth,t.style.transition=``,t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition=``,t.style.maxHeight=`0`;else{let e=t.offsetHeight;t.style.maxHeight=`0`,t.offsetWidth,t.style.transition=``,t.style.maxHeight=`${e}px`}t.offsetWidth}function o(t){var n;e.width?t.style.maxWidth=``:e.reverse||(t.style.maxHeight=``),(n=e.onAfterEnter)==null||n.call(e)}return()=>{let{group:c,width:l,appear:u,mode:d}=e,f=c?h:F,p={name:l?`fade-in-width-expand-transition`:`fade-in-height-expand-transition`,appear:u,onEnter:a,onAfterEnter:o,onBeforeLeave:n,onLeave:r,onAfterLeave:i};return c||(p.mode=d),s(f,p,t)}}}),{cubicBezierEaseInOut:R}=_;function z({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
2
+ opacity: 0!important;
3
+ margin-left: 0!important;
4
+ margin-right: 0!important;
5
+ `),g(`&.fade-in-width-expand-transition-leave-active`,`
6
+ overflow: hidden;
7
+ transition:
8
+ opacity ${e} ${R},
9
+ max-width ${e} ${R} ${t},
10
+ margin-left ${e} ${R} ${t},
11
+ margin-right ${e} ${R} ${t};
12
+ `),g(`&.fade-in-width-expand-transition-enter-active`,`
13
+ overflow: hidden;
14
+ transition:
15
+ opacity ${e} ${R} ${t},
16
+ max-width ${e} ${R},
17
+ margin-left ${e} ${R},
18
+ margin-right ${e} ${R};
19
+ `)]}var B=T(`base-wave`,`
20
+ position: absolute;
21
+ left: 0;
22
+ right: 0;
23
+ top: 0;
24
+ bottom: 0;
25
+ border-radius: inherit;
26
+ `),V=o({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(e){P(`-base-wave`,B,n(e,`clsPrefix`));let i=a(null),o=a(!1),s=null;return r(()=>{s!==null&&window.clearTimeout(s)}),{active:o,selfRef:i,play(){s!==null&&(window.clearTimeout(s),o.value=!1,s=null),t(()=>{var e;(e=i.value)==null||e.offsetHeight,o.value=!0,s=window.setTimeout(()=>{o.value=!1,s=null},1e3)})}}},render(){let{clsPrefix:e}=this;return s(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}});function H(e){return m(e,[255,255,255,.16])}function U(e){return m(e,[0,0,0,.12])}var W=N(`n-button-group`),G={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function K(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:k,fontWeight:A,buttonColor2:j,buttonColor2Hover:M,buttonColor2Pressed:N,fontWeightStrong:P}=e;return Object.assign(Object.assign({},G),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:j,colorSecondaryHover:M,colorSecondaryPressed:N,colorTertiary:j,colorTertiaryHover:M,colorTertiaryPressed:N,colorQuaternary:`#0000`,colorQuaternaryHover:M,colorQuaternaryPressed:N,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:k,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:k,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:k,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${k}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:A,fontWeightStrong:P})}var q={name:`Button`,common:A,self:K},J=g([T(`button`,`
27
+ margin: 0;
28
+ font-weight: var(--n-font-weight);
29
+ line-height: 1;
30
+ font-family: inherit;
31
+ padding: var(--n-padding);
32
+ height: var(--n-height);
33
+ font-size: var(--n-font-size);
34
+ border-radius: var(--n-border-radius);
35
+ color: var(--n-text-color);
36
+ background-color: var(--n-color);
37
+ width: var(--n-width);
38
+ white-space: nowrap;
39
+ outline: none;
40
+ position: relative;
41
+ z-index: auto;
42
+ border: none;
43
+ display: inline-flex;
44
+ flex-wrap: nowrap;
45
+ flex-shrink: 0;
46
+ align-items: center;
47
+ justify-content: center;
48
+ user-select: none;
49
+ -webkit-user-select: none;
50
+ text-align: center;
51
+ cursor: pointer;
52
+ text-decoration: none;
53
+ transition:
54
+ color .3s var(--n-bezier),
55
+ background-color .3s var(--n-bezier),
56
+ opacity .3s var(--n-bezier),
57
+ border-color .3s var(--n-bezier);
58
+ `,[x(`color`,[v(`border`,{borderColor:`var(--n-border-color)`}),x(`disabled`,[v(`border`,{borderColor:`var(--n-border-color-disabled)`})]),k(`disabled`,[g(`&:focus`,[v(`state-border`,{borderColor:`var(--n-border-color-focus)`})]),g(`&:hover`,[v(`state-border`,{borderColor:`var(--n-border-color-hover)`})]),g(`&:active`,[v(`state-border`,{borderColor:`var(--n-border-color-pressed)`})]),x(`pressed`,[v(`state-border`,{borderColor:`var(--n-border-color-pressed)`})])])]),x(`disabled`,{backgroundColor:`var(--n-color-disabled)`,color:`var(--n-text-color-disabled)`},[v(`border`,{border:`var(--n-border-disabled)`})]),k(`disabled`,[g(`&:focus`,{backgroundColor:`var(--n-color-focus)`,color:`var(--n-text-color-focus)`},[v(`state-border`,{border:`var(--n-border-focus)`})]),g(`&:hover`,{backgroundColor:`var(--n-color-hover)`,color:`var(--n-text-color-hover)`},[v(`state-border`,{border:`var(--n-border-hover)`})]),g(`&:active`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[v(`state-border`,{border:`var(--n-border-pressed)`})]),x(`pressed`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[v(`state-border`,{border:`var(--n-border-pressed)`})])]),x(`loading`,`cursor: wait;`),T(`base-wave`,`
59
+ pointer-events: none;
60
+ top: 0;
61
+ right: 0;
62
+ bottom: 0;
63
+ left: 0;
64
+ animation-iteration-count: 1;
65
+ animation-duration: var(--n-ripple-duration);
66
+ animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
67
+ `,[x(`active`,{zIndex:1,animationName:`button-wave-spread, button-wave-opacity`})]),y&&`MozBoxSizing`in document.createElement(`div`).style?g(`&::moz-focus-inner`,{border:0}):null,v(`border, state-border`,`
68
+ position: absolute;
69
+ left: 0;
70
+ top: 0;
71
+ right: 0;
72
+ bottom: 0;
73
+ border-radius: inherit;
74
+ transition: border-color .3s var(--n-bezier);
75
+ pointer-events: none;
76
+ `),v(`border`,`
77
+ border: var(--n-border);
78
+ `),v(`state-border`,`
79
+ border: var(--n-border);
80
+ border-color: #0000;
81
+ z-index: 1;
82
+ `),v(`icon`,`
83
+ margin: var(--n-icon-margin);
84
+ margin-left: 0;
85
+ height: var(--n-icon-size);
86
+ width: var(--n-icon-size);
87
+ max-width: var(--n-icon-size);
88
+ font-size: var(--n-icon-size);
89
+ position: relative;
90
+ flex-shrink: 0;
91
+ `,[T(`icon-slot`,`
92
+ height: var(--n-icon-size);
93
+ width: var(--n-icon-size);
94
+ position: absolute;
95
+ left: 0;
96
+ top: 50%;
97
+ transform: translateY(-50%);
98
+ display: flex;
99
+ align-items: center;
100
+ justify-content: center;
101
+ `,[O({top:`50%`,originalTransform:`translateY(-50%)`})]),z()]),v(`content`,`
102
+ display: flex;
103
+ align-items: center;
104
+ flex-wrap: nowrap;
105
+ min-width: 0;
106
+ `,[g(`~`,[v(`icon`,{margin:`var(--n-icon-margin)`,marginRight:0})])]),x(`block`,`
107
+ display: flex;
108
+ width: 100%;
109
+ `),x(`dashed`,[v(`border, state-border`,{borderStyle:`dashed !important`})]),x(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),g(`@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)`}}),g(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]),Y=o({name:`Button`,props:Object.assign(Object.assign({},w.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:!D},spinProps:Object}),slots:Object,setup(t){let n=a(null),r=a(null),o=a(!1),s=j(()=>!t.quaternary&&!t.tertiary&&!t.secondary&&!t.text&&(!t.color||t.ghost||t.dashed)&&t.bordered),u=e(W,{}),{inlineThemeDisabled:p,mergedClsPrefixRef:m,mergedRtlRef:h,mergedComponentPropsRef:g}=l(t),{mergedSizeRef:_}=c({},{defaultSize:`medium`,mergedSize:e=>{let{size:n}=t;if(n)return n;let{size:r}=u;if(r)return r;let{mergedSize:i}=e||{};return i?i.value:g?.value?.Button?.size||`medium`}}),v=i(()=>t.focusable&&!t.disabled),y=e=>{var r;v.value||e.preventDefault(),!t.nativeFocusBehavior&&(e.preventDefault(),!t.disabled&&v.value&&((r=n.value)==null||r.focus({preventScroll:!0})))},x=e=>{var n;if(!t.disabled&&!t.loading){let{onClick:i}=t;i&&f(i,e),t.text||(n=r.value)==null||n.play()}},S=e=>{switch(e.key){case`Enter`:if(!t.keyboard)return;o.value=!1}},T=e=>{switch(e.key){case`Enter`:if(!t.keyboard||t.loading){e.preventDefault();return}o.value=!0}},D=()=>{o.value=!1},O=w(`Button`,`-button`,J,q,t,m),k=b(`Button`,h,m),A=i(()=>{let{common:{cubicBezierEaseInOut:e,cubicBezierEaseOut:n},self:r}=O.value,{rippleDuration:i,opacityDisabled:a,fontWeight:o,fontWeightStrong:s}=r,c=_.value,{dashed:l,type:u,ghost:d,text:f,color:p,round:m,circle:h,textColor:g,secondary:v,tertiary:y,quaternary:b,strong:x}=t,S={"--n-font-weight":x?s:o},w={"--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`},T=u===`tertiary`,D=u===`default`,k=T?`default`:u;if(f){let e=g||p;w={"--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":e||r[E(`textColorText`,k)],"--n-text-color-hover":e?H(e):r[E(`textColorTextHover`,k)],"--n-text-color-pressed":e?U(e):r[E(`textColorTextPressed`,k)],"--n-text-color-focus":e?H(e):r[E(`textColorTextHover`,k)],"--n-text-color-disabled":e||r[E(`textColorTextDisabled`,k)]}}else if(d||l){let e=g||p;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":p||r[E(`rippleColor`,k)],"--n-text-color":e||r[E(`textColorGhost`,k)],"--n-text-color-hover":e?H(e):r[E(`textColorGhostHover`,k)],"--n-text-color-pressed":e?U(e):r[E(`textColorGhostPressed`,k)],"--n-text-color-focus":e?H(e):r[E(`textColorGhostHover`,k)],"--n-text-color-disabled":e||r[E(`textColorGhostDisabled`,k)]}}else if(v){let e=D?r.textColor:T?r.textColorTertiary:r[E(`color`,k)],t=p||e,n=u!==`default`&&u!==`tertiary`;w={"--n-color":n?C(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?C(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?C(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?C(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.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(y||b){let e=D?r.textColor:T?r.textColorTertiary:r[E(`color`,k)],t=p||e;y?(w[`--n-color`]=r.colorTertiary,w[`--n-color-hover`]=r.colorTertiaryHover,w[`--n-color-pressed`]=r.colorTertiaryPressed,w[`--n-color-focus`]=r.colorSecondaryHover,w[`--n-color-disabled`]=r.colorTertiary):(w[`--n-color`]=r.colorQuaternary,w[`--n-color-hover`]=r.colorQuaternaryHover,w[`--n-color-pressed`]=r.colorQuaternaryPressed,w[`--n-color-focus`]=r.colorQuaternaryHover,w[`--n-color-disabled`]=r.colorQuaternary),w[`--n-ripple-color`]=`#0000`,w[`--n-text-color`]=t,w[`--n-text-color-hover`]=t,w[`--n-text-color-pressed`]=t,w[`--n-text-color-focus`]=t,w[`--n-text-color-disabled`]=t}else w={"--n-color":p||r[E(`color`,k)],"--n-color-hover":p?H(p):r[E(`colorHover`,k)],"--n-color-pressed":p?U(p):r[E(`colorPressed`,k)],"--n-color-focus":p?H(p):r[E(`colorFocus`,k)],"--n-color-disabled":p||r[E(`colorDisabled`,k)],"--n-ripple-color":p||r[E(`rippleColor`,k)],"--n-text-color":g||(p?r.textColorPrimary:T?r.textColorTertiary:r[E(`textColor`,k)]),"--n-text-color-hover":g||(p?r.textColorHoverPrimary:r[E(`textColorHover`,k)]),"--n-text-color-pressed":g||(p?r.textColorPressedPrimary:r[E(`textColorPressed`,k)]),"--n-text-color-focus":g||(p?r.textColorFocusPrimary:r[E(`textColorFocus`,k)]),"--n-text-color-disabled":g||(p?r.textColorDisabledPrimary:r[E(`textColorDisabled`,k)])};let A={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};A=f?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[E(`border`,k)],"--n-border-hover":r[E(`borderHover`,k)],"--n-border-pressed":r[E(`borderPressed`,k)],"--n-border-focus":r[E(`borderFocus`,k)],"--n-border-disabled":r[E(`borderDisabled`,k)]};let{[E(`height`,c)]:j,[E(`fontSize`,c)]:M,[E(`padding`,c)]:N,[E(`paddingRound`,c)]:P,[E(`iconSize`,c)]:F,[E(`borderRadius`,c)]:I,[E(`iconMargin`,c)]:L,waveOpacity:R}=r,z={"--n-width":h&&!f?j:`initial`,"--n-height":f?`initial`:j,"--n-font-size":M,"--n-padding":h||f?`initial`:m?P:N,"--n-icon-size":F,"--n-icon-margin":L,"--n-border-radius":f?`initial`:h||m?j:I};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":e,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":R},S),w),A),z)}),M=p?d(`button`,i(()=>{let e=``,{dashed:n,type:r,ghost:i,text:a,color:o,round:s,circle:c,textColor:l,secondary:u,tertiary:d,quaternary:f,strong:p}=t;n&&(e+=`a`),i&&(e+=`b`),a&&(e+=`c`),s&&(e+=`d`),c&&(e+=`e`),u&&(e+=`f`),d&&(e+=`g`),f&&(e+=`h`),p&&(e+=`i`),o&&(e+=`j${I(o)}`),l&&(e+=`k${I(l)}`);let{value:m}=_;return e+=`l${m[0]}`,e+=`m${r[0]}`,e}),A,t):void 0;return{selfElRef:n,waveElRef:r,mergedClsPrefix:m,mergedFocusable:v,mergedSize:_,showBorder:s,enterPressed:o,rtlEnabled:k,handleMousedown:y,handleKeydown:T,handleBlur:D,handleKeyup:S,handleClick:x,customColorCssVars:i(()=>{let{color:e}=t;if(!e)return null;let n=H(e);return{"--n-border-color":e,"--n-border-color-hover":n,"--n-border-color-pressed":U(e),"--n-border-color-focus":n,"--n-border-color-disabled":e}}),cssVars:p?void 0:A,themeClass:M?.themeClass,onRender:M?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();let r=p(this.$slots.default,t=>t&&s(`span`,{class:`${e}-button__content`},t));return s(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,s(L,{width:!0},{default:()=>p(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&s(`span`,{class:`${e}-button__icon`,style:{margin:u(this.$slots.default)?`0`:``}},s(M,null,{default:()=>this.loading?s(S,Object.assign({clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20},this.spinProps)):s(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&r,this.text?null:s(V,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?s(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?s(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),X=Y,Z=N(`n-message-api`),Q=N(`n-message-provider`);export{q as a,X as i,Q as n,L as o,Y as r,I as s,Z as t};