hermes-web-ui 0.2.4 → 0.2.5

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/dist/assets/{Button-sJ2BpaPl.js → Button-DBOPt_s1.js} +1 -1
  2. package/dist/assets/{ChannelsView-C2h4_vNn.css → ChannelsView-BU9QAub-.css} +1 -1
  3. package/dist/assets/ChannelsView-CIZXL3vY.js +1 -0
  4. package/dist/assets/ChatView-D1SaZAvQ.css +1 -0
  5. package/dist/assets/ChatView-DvAYfM24.js +142 -0
  6. package/dist/assets/{Close-2w73mIOt.js → Close-Ck11Jegf.js} +1 -1
  7. package/dist/assets/{FormItem-XpOdWzQ0.js → FormItem-De01hN-G.js} +1 -1
  8. package/dist/assets/{Input-BzhYBEbH.js → Input-CyvPny5v.js} +1 -1
  9. package/dist/assets/{InputNumber-8txyKuLX.js → InputNumber-v7Tkrv97.js} +1 -1
  10. package/dist/assets/{JobsView-C-1FgnDL.js → JobsView-Cch6Sv2Y.js} +2 -2
  11. package/dist/assets/{JobsView-OYrxaGgM.css → JobsView-DARa8llR.css} +1 -1
  12. package/dist/assets/LoginView-Cp-xfwtv.css +1 -0
  13. package/dist/assets/{LoginView-BD15AZNF.js → LoginView-DsClZpVT.js} +1 -1
  14. package/dist/assets/{LogsView-DmQ4ttpe.js → LogsView-BgmSycD4.js} +1 -1
  15. package/dist/assets/LogsView-COSQTXoG.css +1 -0
  16. package/dist/assets/MarkdownRenderer-Bd-nS4jK.css +1 -0
  17. package/dist/assets/{MarkdownRenderer-DJm5zGZj.js → MarkdownRenderer-z5xC7cOw.js} +1 -1
  18. package/dist/assets/{MemoryView-DBtvO2X2.js → MemoryView-BUZGXC60.js} +2 -2
  19. package/dist/assets/MemoryView-CL5H-3mE.css +1 -0
  20. package/dist/assets/{Modal-D421R1s7.js → Modal-BLLYorfc.js} +1 -1
  21. package/dist/assets/{ModelsView-Dt3deKCr.js → ModelsView-ByryHyh7.js} +1 -1
  22. package/dist/assets/{ModelsView-Dm1vBT2p.css → ModelsView-DCR-0I10.css} +1 -1
  23. package/dist/assets/{Popover-pOQtxFC1.js → Popover-ZzeCeChJ.js} +1 -1
  24. package/dist/assets/{Select-rOqAn7Lj.js → Select-CPQQRbMt.js} +1 -1
  25. package/dist/assets/{SettingRow-CndAlF8Z.js → SettingRow-BvAmImkg.js} +1 -1
  26. package/dist/assets/SettingRow-Dwpo-tP0.css +1 -0
  27. package/dist/assets/{SettingsView-CxEQl8Fh.js → SettingsView-B_5pGI0B.js} +2 -2
  28. package/dist/assets/SettingsView-Y2Et1YHr.css +1 -0
  29. package/dist/assets/SkillsView-Blcv_g2_.js +1 -0
  30. package/dist/assets/{SkillsView-4FLTf1XD.css → SkillsView-CREfL6dQ.css} +1 -1
  31. package/dist/assets/{Spin-CaLC5eru.js → Spin-DiwsqMEC.js} +1 -1
  32. package/dist/assets/{Suffix-C1X_jn5E.js → Suffix-La8FFPWu.js} +1 -1
  33. package/dist/assets/{Switch-BeZgnVyD.js → Switch-Ce0Tgpcj.js} +1 -1
  34. package/dist/assets/{Tag-DFrN7AVl.js → Tag-BUJuCRNX.js} +1 -1
  35. package/dist/assets/{Tooltip-ClSL1Ac2.js → Tooltip-C65FWX0W.js} +1 -1
  36. package/dist/assets/UsageView-CKMaJ5W0.css +1 -0
  37. package/dist/assets/{UsageView-BvGRIGlC.js → UsageView-MZGY4EKW.js} +1 -1
  38. package/dist/assets/{_plugin-vue_export-helper-DQGaK6t5.js → _plugin-vue_export-helper-DkLSTLBi.js} +1 -1
  39. package/dist/assets/app-DVSCPXta.js +1 -0
  40. package/dist/assets/app-DtII96CF.js +1 -0
  41. package/dist/assets/{browser-Bf2Q3p4g.js → browser-oMT2KRlV.js} +1 -1
  42. package/dist/assets/chat-nPd2Ount.js +6 -0
  43. package/dist/assets/context-DRBiUHq_.js +1 -0
  44. package/dist/assets/index-8v0lZOmS.css +1 -0
  45. package/dist/assets/index-DNNVWa6r.js +306 -0
  46. package/dist/assets/{jobs-QM3wEm9o.js → jobs-fIgcRW5v.js} +1 -1
  47. package/dist/assets/{pinia-bZ6_VpBU.js → pinia-D41F8A9y.js} +1 -1
  48. package/dist/assets/{router-Ddepf70Q.js → router-B0PaAFys.js} +2 -2
  49. package/dist/assets/{sessions-r2FX4lYx.js → sessions-Dsqr5aLA.js} +1 -1
  50. package/dist/assets/{skills-DtNdlEJd.js → skills-COmQAkb0.js} +1 -1
  51. package/dist/assets/{use-message-DAtcV1hg.js → use-message-CG8KB3t0.js} +1 -1
  52. package/dist/index.html +19 -19
  53. package/package.json +1 -1
  54. package/dist/assets/ChannelsView-CD_79lUP.js +0 -1
  55. package/dist/assets/ChatView-CLIjlJ1x.js +0 -142
  56. package/dist/assets/ChatView-CX_ZYhvz.css +0 -1
  57. package/dist/assets/LoginView-BHThbj0n.css +0 -1
  58. package/dist/assets/LogsView-DzYGlYxF.css +0 -1
  59. package/dist/assets/MarkdownRenderer-CrMwC_5d.css +0 -1
  60. package/dist/assets/MemoryView-WR7DvkW0.css +0 -1
  61. package/dist/assets/SettingRow-HrI0c-1s.css +0 -1
  62. package/dist/assets/SettingsView-CIcrKeJw.css +0 -1
  63. package/dist/assets/SkillsView-BopVAaC6.js +0 -1
  64. package/dist/assets/UsageView-Bdck_cnA.css +0 -1
  65. package/dist/assets/app-DHhjDueA.js +0 -1
  66. package/dist/assets/app-DqRfMAIZ.js +0 -1
  67. package/dist/assets/chat-B0V07VGa.js +0 -6
  68. package/dist/assets/context-Bm7UPqDk.js +0 -1
  69. package/dist/assets/index-BR3ulF5g.css +0 -1
  70. package/dist/assets/index-Bdq3IZmO.js +0 -306
  71. /package/dist/assets/{logo-CiQBpLPw.js → logo-Cd-t_oGE.js} +0 -0
  72. /package/dist/assets/{omit-QZj0aLfU.js → omit-C6t0n7Zy.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,C as n,D as r,F as i,G as a,K as o,L as s,N as c,Q as l,R as u,S as d,U as f,X as p,Z as m,ct as h,dt as g,f as _,gt as v,h as y,j as b,pt as x,w as S,y as C}from"./router-Ddepf70Q.js";import{r as w,t as T}from"./_plugin-vue_export-helper-DQGaK6t5.js";import{B as ee,I as E,J as D,K as O,Q as k,X as te,at as A,c as ne,ct as j,dt as M,j as N,lt as P,n as F,ot as I,q as L,ut as R,z as re}from"./browser-Bf2Q3p4g.js";import{N as ie,b as ae,f as oe,l as se,y as z}from"./Popover-pOQtxFC1.js";import{b as B,c as V,f as H,g as ce,m as U,y as le}from"./Suffix-C1X_jn5E.js";import{n as ue,t as de}from"./Close-2w73mIOt.js";import{t as W}from"./Select-rOqAn7Lj.js";import{t as fe}from"./omit-QZj0aLfU.js";import{n as pe,t as G}from"./InputNumber-8txyKuLX.js";import{t as K}from"./Input-BzhYBEbH.js";import{t as q}from"./use-message-DAtcV1hg.js";import{t as me}from"./Spin-CaLC5eru.js";import{t as J}from"./Switch-BeZgnVyD.js";import{n as Y,t as X}from"./SettingRow-CndAlF8Z.js";var he=z(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[z(`&::-webkit-scrollbar`,{width:0,height:0})]),ge=b({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=h(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=te();return he.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:ae,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return c(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Z=/\s/;function _e(e){for(var t=e.length;t--&&Z.test(e.charAt(t)););return t}var ve=/^\s+/;function ye(e){return e&&e.slice(0,_e(e)+1).replace(ve,``)}var Q=NaN,be=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,Ce=parseInt;function we(e){if(typeof e==`number`)return e;if(H(e))return Q;if(N(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=N(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=ye(e);var n=xe.test(e);return n||Se.test(e)?Ce(e.slice(2),n?2:8):be.test(e)?Q:+e}var Te=function(){return E.Date.now()},Ee=`Expected a function`,De=Math.max,Oe=Math.min;function ke(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Ee);t=we(t)||0,N(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?De(we(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Oe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=Te();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(Te())}function x(){var e=Te(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Ae=`Expected a function`;function je(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Ae);return N(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),ke(e,t,{leading:r,maxWait:t,trailing:i})}var Me={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function Ne(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Me),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var Pe={name:`Tabs`,common:F,self:Ne},Fe=k(`n-tabs`),Ie={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},$=b({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:Ie,slots:Object,setup(e){let t=i(Fe,null);return t||D(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return c(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Le=b({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},fe(Ie,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:r,typeRef:a,closableRef:o,tabStyleRef:s,addTabStyleRef:c,tabClassRef:l,addTabClassRef:u,tabChangeIdRef:d,onBeforeLeaveRef:f,triggerRef:p,handleAdd:m,activateTab:h,handleClose:g}=i(Fe);return{trigger:p,mergedClosable:n(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?o.value:t}),style:s,addStyle:c,tabClass:l,addTabClass:u,clsPrefix:t,value:r,type:a,handleClose(t){t.stopPropagation(),!e.disabled&&g(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){m();return}let{name:t}=e,n=++d.id;if(t!==r.value){let{value:i}=f;i?Promise.resolve(i(e.name,r.value)).then(e=>{e&&d.id===n&&h(t)}):h(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:a,value:o,mergedClosable:l,trigger:u,$slots:{default:d}}=this,f=i??a;return c(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?c(`div`,{class:`${t}-tabs-tab-pad`}):null,c(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},s({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:u===`click`?this.activateTab:void 0,onMouseenter:u===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),c(`span`,{class:`${t}-tabs-tab__label`},e?c(C,null,c(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),c(V,{clsPrefix:t},{default:()=>c(pe,null)})):d?d():typeof f==`object`?f:se(f??n)),l&&this.type===`card`?c(de,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Re=I(`tabs`,`
1
+ import{$ as e,A as t,C as n,D as r,F as i,G as a,K as o,L as s,N as c,Q as l,R as u,S as d,U as f,X as p,Z as m,ct as h,dt as g,f as _,gt as v,h as y,j as b,pt as x,w as S,y as C}from"./router-B0PaAFys.js";import{r as w,t as T}from"./_plugin-vue_export-helper-DkLSTLBi.js";import{B as ee,I as E,J as D,K as O,Q as k,X as te,at as A,c as ne,ct as j,dt as M,j as N,lt as P,n as F,ot as I,q as L,ut as R,z as re}from"./browser-oMT2KRlV.js";import{N as ie,b as ae,f as oe,l as se,y as z}from"./Popover-ZzeCeChJ.js";import{b as B,c as V,f as H,g as ce,m as U,y as le}from"./Suffix-La8FFPWu.js";import{n as ue,t as de}from"./Close-Ck11Jegf.js";import{t as W}from"./Select-CPQQRbMt.js";import{t as fe}from"./omit-C6t0n7Zy.js";import{n as pe,t as G}from"./InputNumber-v7Tkrv97.js";import{t as K}from"./Input-CyvPny5v.js";import{t as q}from"./use-message-CG8KB3t0.js";import{t as me}from"./Spin-DiwsqMEC.js";import{t as J}from"./Switch-Ce0Tgpcj.js";import{n as Y,t as X}from"./SettingRow-BvAmImkg.js";var he=z(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[z(`&::-webkit-scrollbar`,{width:0,height:0})]),ge=b({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=h(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=te();return he.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:ae,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return c(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Z=/\s/;function _e(e){for(var t=e.length;t--&&Z.test(e.charAt(t)););return t}var ve=/^\s+/;function ye(e){return e&&e.slice(0,_e(e)+1).replace(ve,``)}var Q=NaN,be=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,Ce=parseInt;function we(e){if(typeof e==`number`)return e;if(H(e))return Q;if(N(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=N(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=ye(e);var n=xe.test(e);return n||Se.test(e)?Ce(e.slice(2),n?2:8):be.test(e)?Q:+e}var Te=function(){return E.Date.now()},Ee=`Expected a function`,De=Math.max,Oe=Math.min;function ke(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Ee);t=we(t)||0,N(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?De(we(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Oe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=Te();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(Te())}function x(){var e=Te(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Ae=`Expected a function`;function je(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Ae);return N(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),ke(e,t,{leading:r,maxWait:t,trailing:i})}var Me={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function Ne(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Me),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var Pe={name:`Tabs`,common:F,self:Ne},Fe=k(`n-tabs`),Ie={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},$=b({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:Ie,slots:Object,setup(e){let t=i(Fe,null);return t||D(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return c(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Le=b({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},fe(Ie,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:r,typeRef:a,closableRef:o,tabStyleRef:s,addTabStyleRef:c,tabClassRef:l,addTabClassRef:u,tabChangeIdRef:d,onBeforeLeaveRef:f,triggerRef:p,handleAdd:m,activateTab:h,handleClose:g}=i(Fe);return{trigger:p,mergedClosable:n(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?o.value:t}),style:s,addStyle:c,tabClass:l,addTabClass:u,clsPrefix:t,value:r,type:a,handleClose(t){t.stopPropagation(),!e.disabled&&g(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){m();return}let{name:t}=e,n=++d.id;if(t!==r.value){let{value:i}=f;i?Promise.resolve(i(e.name,r.value)).then(e=>{e&&d.id===n&&h(t)}):h(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:a,value:o,mergedClosable:l,trigger:u,$slots:{default:d}}=this,f=i??a;return c(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?c(`div`,{class:`${t}-tabs-tab-pad`}):null,c(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},s({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:u===`click`?this.activateTab:void 0,onMouseenter:u===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),c(`span`,{class:`${t}-tabs-tab__label`},e?c(C,null,c(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),c(V,{clsPrefix:t},{default:()=>c(pe,null)})):d?d():typeof f==`object`?f:se(f??n)),l&&this.type===`card`?c(de,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Re=I(`tabs`,`
2
2
  box-sizing: border-box;
3
3
  width: 100%;
4
4
  display: flex;
@@ -349,4 +349,4 @@ import{$ as e,A as t,C as n,D as r,F as i,G as a,K as o,L as s,N as c,Q as l,R a
349
349
  border-top: 1px solid var(--n-tab-border-color);
350
350
  `),I(`tabs-pad`,`
351
351
  border-top: 1px solid var(--n-tab-border-color);
352
- `)])])])]),ze=je,Be=b({name:`Tabs`,props:Object.assign(Object.assign({},ne.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:a}=ee(e),s=ne(`Tabs`,`-tabs`,Re,Pe,e,r),c=h(null),l=h(null),d=h(null),_=h(null),v=h(null),y=h(null),b=h(!0),x=h(!0),S=ue(e,[`labelSize`,`size`]),C=n(()=>S.value?S.value:a?.value?.Tabs?.size||`medium`),w=ue(e,[`activeName`,`value`]),T=h(w.value??e.defaultValue??(t.default?oe(t.default())[0]?.props?.name:null)),E=ce(w,T),D={id:0},O=n(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});p(E,()=>{D.id=0,N(),P()});function k(){let{value:e}=E;return e===null?null:c.value?.querySelector(`[data-name="${e}"]`)}function te(t){if(e.type===`card`)return;let{value:n}=l;if(!n)return;let i=n.style.opacity===`0`;if(t){let a=`${r.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?n.classList.add(a):n.classList.remove(a),[`top`,`bottom`].includes(s)){if(j([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;n.style.left=`${e}px`,n.style.maxWidth=`${o}px`}else n.style.left=`${t.offsetLeft}px`,n.style.maxWidth=`${t.offsetWidth}px`;n.style.width=`8192px`,i&&(n.style.transition=`none`),n.offsetWidth,i&&(n.style.transition=``,n.style.opacity=`1`)}else{if(j([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;n.style.top=`${e}px`,n.style.maxHeight=`${o}px`}else n.style.top=`${t.offsetTop}px`,n.style.maxHeight=`${t.offsetHeight}px`;n.style.height=`8192px`,i&&(n.style.transition=`none`),n.offsetHeight,i&&(n.style.transition=``,n.style.opacity=`1`)}}}function A(){if(e.type===`card`)return;let{value:t}=l;t&&(t.style.opacity=`0`)}function j(e){let{value:t}=l;if(t)for(let n of e)t.style[n]=``}function N(){if(e.type===`card`)return;let t=k();t?te(t):A()}function P(){let e=v.value?.$el;if(!e)return;let t=k();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let F=h(null),I=0,R=null;function ae(e){let t=F.value;if(t){I=e.getBoundingClientRect().height;let n=`${I}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};R?(r(),R(),R=null):R=r}}function se(e){let t=F.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(I,n)}px`};R?(R(),R=null,r()):R=r}}function z(){let t=F.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let V={value:[]},H=h(`next`);function U(e){let t=E.value,n=`next`;for(let r of V.value){if(r===t)break;if(r===e){n=`prev`;break}}H.value=n,de(e)}function de(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&L(n,t),r&&L(r,t),i&&L(i,t),T.value=t}function W(t){let{onClose:n}=e;n&&L(n,t)}let fe=!0;function pe(){let{value:e}=l;if(!e)return;fe||=!1;let t=`transition-disabled`;e.classList.add(t),N(),e.classList.remove(t)}let G=h(null);function K({transitionDisabled:e}){let t=c.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=k();n&&G.value&&(G.value.style.width=`${n.offsetWidth}px`,G.value.style.height=`${n.offsetHeight}px`,G.value.style.transform=`translateX(${n.offsetLeft-le(getComputedStyle(t).paddingLeft)}px)`,e&&G.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}p([E],()=>{e.type===`segment`&&u(()=>{K({transitionDisabled:!1})})}),f(()=>{e.type===`segment`&&K({transitionDisabled:!0})});let q=0;function me(t){if(t.contentRect.width===0&&t.contentRect.height===0||q===t.contentRect.width)return;q=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(fe||e.justifyContent?.startsWith(`space`))&&pe(),n!==`segment`){let{placement:t}=e;Z((t===`top`||t===`bottom`?v.value?.$el:y.value)||null)}}let J=ze(me,64);p([()=>e.justifyContent,()=>e.size],()=>{u(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&pe()})});let Y=h(!1);function X(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!Y.value)s===`top`||s===`bottom`?a<r&&(Y.value=!0):o<i&&(Y.value=!0);else{let{value:e}=_;if(!e)return;s===`top`||s===`bottom`?a-r>e.$el.offsetWidth&&(Y.value=!1):o-i>e.$el.offsetHeight&&(Y.value=!1)}Z(v.value?.$el||null)}let he=ze(X,64);function ge(){let{onAdd:t}=e;t&&t(),u(()=>{let e=k(),{value:t}=v;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function Z(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;b.value=e<=0,x.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;b.value=e<=0,x.value=e+r>=n}}let _e=ze(e=>{Z(e.target)},64);o(Fe,{triggerRef:g(e,`trigger`),tabStyleRef:g(e,`tabStyle`),tabClassRef:g(e,`tabClass`),addTabStyleRef:g(e,`addTabStyle`),addTabClassRef:g(e,`addTabClass`),paneClassRef:g(e,`paneClass`),paneStyleRef:g(e,`paneStyle`),mergedClsPrefixRef:r,typeRef:g(e,`type`),closableRef:g(e,`closable`),valueRef:E,tabChangeIdRef:D,onBeforeLeaveRef:g(e,`onBeforeLeave`),activateTab:U,handleClose:W,handleAdd:ge}),ie(()=>{N(),P()}),m(()=>{let{value:e}=d;if(!e)return;let{value:t}=r,n=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;b.value?e.classList.remove(n):e.classList.add(n),x.value?e.classList.remove(i):e.classList.add(i)});let ve={syncBarPosition:()=>{N()}},ye=()=>{K({transitionDisabled:!0})},Q=n(()=>{let{value:t}=C,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:c,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:h,fontWeightStrong:g,tabColorSegment:_,closeSize:v,closeIconSize:y,closeColorHover:b,closeColorPressed:x,closeBorderRadius:S,[M(`panePadding`,t)]:w,[M(`tabPadding`,r)]:T,[M(`tabPaddingVertical`,r)]:ee,[M(`tabGap`,r)]:E,[M(`tabGap`,`${r}Vertical`)]:D,[M(`tabTextColor`,n)]:O,[M(`tabTextColorActive`,n)]:k,[M(`tabTextColorHover`,n)]:te,[M(`tabTextColorDisabled`,n)]:A,[M(`tabFontSize`,t)]:ne},common:{cubicBezierEaseInOut:j}}=s.value;return{"--n-bezier":j,"--n-color-segment":h,"--n-bar-color":i,"--n-tab-font-size":ne,"--n-tab-text-color":O,"--n-tab-text-color-active":k,"--n-tab-text-color-disabled":A,"--n-tab-text-color-hover":te,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":v,"--n-close-icon-size":y,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-border-radius":S,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":c,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":ee,"--n-tab-gap":E,"--n-tab-gap-vertical":D,"--n-pane-padding-left":B(w,`left`),"--n-pane-padding-right":B(w,`right`),"--n-pane-padding-top":B(w,`top`),"--n-pane-padding-bottom":B(w,`bottom`),"--n-font-weight-strong":g,"--n-tab-color-segment":_}}),be=i?re(`tabs`,n(()=>`${C.value[0]}${e.type[0]}`),Q,e):void 0;return Object.assign({mergedClsPrefix:r,mergedValue:E,renderedNames:new Set,segmentCapsuleElRef:G,tabsPaneWrapperRef:F,tabsElRef:c,barElRef:l,addTabInstRef:_,xScrollInstRef:v,scrollWrapperElRef:d,addTabFixed:Y,tabWrapperStyle:O,handleNavResize:J,mergedSize:C,handleScroll:_e,handleTabsResize:he,cssVars:i?void 0:Q,themeClass:be?.themeClass,animationDirection:H,renderNameListRef:V,yScrollElRef:y,handleSegmentResize:ye,onAnimationBeforeLeave:ae,onAnimationEnter:se,onAnimationAfterEnter:z,onRender:be?.onRender},ve)},render(){let{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:o,onRender:s,paneWrapperClass:l,paneWrapperStyle:u,$slots:{default:d,prefix:f,suffix:p}}=this;s?.();let m=d?oe(d()).filter(e=>e.type.__TAB_PANE__===!0):[],h=d?oe(d()).filter(e=>e.type.__TAB__===!0):[],g=!h.length,_=t===`card`,v=t===`segment`,y=!_&&!v&&this.justifyContent;o.value=[];let b=()=>{let t=c(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:c(`div`,{class:`${e}-tabs-scroll-padding`,style:n===`top`||n===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?m.map((e,t)=>(o.value.push(e.props.name),We(c(Le,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!y||y===`center`||y===`start`||y===`end`)}),e.children?{default:e.children.tab}:void 0)))):h.map((e,t)=>(o.value.push(e.props.name),We(t!==0&&!y?Ue(e):e))),!r&&i&&_?He(i,(g?m.length:h.length)!==0):null,y?null:c(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return c(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},_&&i?c(U,{onResize:this.handleTabsResize},{default:()=>t}):t,_?c(`div`,{class:`${e}-tabs-pad`}):null,_?null:c(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},x=v?`top`:n;return c(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${x}`],style:this.cssVars},c(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${x}`,`${e}-tabs-nav`]},O(f,t=>t&&c(`div`,{class:`${e}-tabs-nav__prefix`},t)),v?c(U,{onResize:this.handleSegmentResize},{default:()=>c(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},c(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},c(`div`,{class:`${e}-tabs-wrapper`},c(`div`,{class:`${e}-tabs-tab`}))),g?m.map((e,t)=>(o.value.push(e.props.name),c(Le,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):h.map((e,t)=>(o.value.push(e.props.name),t===0?e:Ue(e))))}):c(U,{onResize:this.handleNavResize},{default:()=>c(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(x)?c(ge,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:b}):c(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},b()))}),r&&i&&_?He(i,!0):null,O(p,t=>t&&c(`div`,{class:`${e}-tabs-nav__suffix`},t))),g&&(this.animated&&(x===`top`||x===`bottom`)?c(`div`,{ref:`tabsPaneWrapperRef`,style:u,class:[`${e}-tabs-pane-wrapper`,l]},Ve(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Ve(m,this.mergedValue,this.renderedNames)))}});function Ve(t,n,r,i,a,o,s){let l=[];return t.forEach(t=>{let{name:i,displayDirective:a,"display-directive":o}=t.props,s=e=>a===e||o===e,c=n===i;if(t.key!==void 0&&(t.key=i),c||s(`show`)||s(`show:lazy`)&&r.has(i)){r.has(i)||r.add(i);let n=!s(`if`);l.push(n?e(t,[[y,c]]):t)}}),s?c(_,{name:`${s}-transition`,onBeforeLeave:i,onEnter:a,onAfterEnter:o},{default:()=>l}):l}function He(e,t){return c(Le,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function Ue(e){let t=d(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function We(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}var Ge={class:`settings-section`},Ke=T(b({__name:`DisplaySettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`display`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,Ge,[t(X,{label:x(o)(`settings.display.streaming`),hint:x(o)(`settings.display.streamingHint`)},{default:l(()=>[t(x(J),{value:x(n).display.streaming,"onUpdate:value":i[0]||=e=>s({streaming:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.compact`),hint:x(o)(`settings.display.compactHint`)},{default:l(()=>[t(x(J),{value:x(n).display.compact,"onUpdate:value":i[1]||=e=>s({compact:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.showReasoning`),hint:x(o)(`settings.display.showReasoningHint`)},{default:l(()=>[t(x(J),{value:x(n).display.show_reasoning,"onUpdate:value":i[2]||=e=>s({show_reasoning:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.showCost`),hint:x(o)(`settings.display.showCostHint`)},{default:l(()=>[t(x(J),{value:x(n).display.show_cost,"onUpdate:value":i[3]||=e=>s({show_cost:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.inlineDiffs`),hint:x(o)(`settings.display.inlineDiffsHint`)},{default:l(()=>[t(x(J),{value:x(n).display.inline_diffs,"onUpdate:value":i[4]||=e=>s({inline_diffs:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.bellOnComplete`),hint:x(o)(`settings.display.bellOnCompleteHint`)},{default:l(()=>[t(x(J),{value:x(n).display.bell_on_complete,"onUpdate:value":i[5]||=e=>s({bell_on_complete:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.busyInputMode`),hint:x(o)(`settings.display.busyInputModeHint`)},{default:l(()=>[t(x(J),{value:x(n).display.busy_input_mode===`interrupt`,"onUpdate:value":i[6]||=e=>s({busy_input_mode:e?`interrupt`:`off`})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-c8db8205`]]),qe={class:`settings-section`},Je=T(b({__name:`AgentSettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`agent`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,qe,[t(X,{label:x(o)(`settings.agent.maxTurns`),hint:x(o)(`settings.agent.maxTurnsHint`)},{default:l(()=>[t(x(G),{value:x(n).agent.max_turns,min:1,max:200,step:5,size:`small`,style:{width:`120px`},"onUpdate:value":i[0]||=e=>e!=null&&s({max_turns:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.agent.gatewayTimeout`),hint:x(o)(`settings.agent.gatewayTimeoutHint`)},{default:l(()=>[t(x(G),{value:x(n).agent.gateway_timeout,min:60,max:7200,step:60,size:`small`,style:{width:`120px`},"onUpdate:value":i[1]||=e=>e!=null&&s({gateway_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.agent.restartDrainTimeout`),hint:x(o)(`settings.agent.restartDrainTimeoutHint`)},{default:l(()=>[t(x(G),{value:x(n).agent.restart_drain_timeout,min:10,max:300,step:10,size:`small`,style:{width:`120px`},"onUpdate:value":i[2]||=e=>e!=null&&s({restart_drain_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.agent.toolEnforcement`),hint:x(o)(`settings.agent.toolEnforcementHint`)},{default:l(()=>[t(x(W),{value:x(n).agent.tool_use_enforcement||`auto`,options:[{label:x(o)(`settings.agent.auto`),value:`auto`},{label:x(o)(`settings.agent.always`),value:`always`},{label:x(o)(`settings.agent.never`),value:`never`}],size:`small`,style:{width:`120px`},"onUpdate:value":i[3]||=e=>s({tool_use_enforcement:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-7c41cbf5`]]),Ye={class:`settings-section`},Xe=T(b({__name:`MemorySettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`memory`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,Ye,[t(X,{label:x(o)(`settings.memory.enabled`),hint:x(o)(`settings.memory.enabledHint`)},{default:l(()=>[t(x(J),{value:x(n).memory.memory_enabled,"onUpdate:value":i[0]||=e=>s({memory_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.memory.userProfile`),hint:x(o)(`settings.memory.userProfileHint`)},{default:l(()=>[t(x(J),{value:x(n).memory.user_profile_enabled,"onUpdate:value":i[1]||=e=>s({user_profile_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.memory.charLimit`),hint:x(o)(`settings.memory.charLimitHint`)},{default:l(()=>[t(x(G),{value:x(n).memory.memory_char_limit,min:100,max:1e4,step:100,size:`small`,style:{width:`120px`},"onUpdate:value":i[2]||=e=>e!=null&&s({memory_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.memory.userCharLimit`),hint:x(o)(`settings.memory.userCharLimitHint`)},{default:l(()=>[t(x(G),{value:x(n).memory.user_char_limit,min:100,max:1e4,step:100,size:`small`,style:{width:`120px`},"onUpdate:value":i[3]||=e=>e!=null&&s({user_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-8fb90a20`]]),Ze={class:`settings-section`},Qe=T(b({__name:`SessionSettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`session_reset`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,Ze,[t(X,{label:x(o)(`settings.session.mode`),hint:x(o)(`settings.session.modeHint`)},{default:l(()=>[t(x(W),{value:x(n).sessionReset.mode||`both`,options:[{label:x(o)(`settings.session.modeBoth`),value:`both`},{label:x(o)(`settings.session.modeIdle`),value:`idle`},{label:x(o)(`settings.session.modeHourly`),value:`hourly`}],size:`small`,style:{width:`140px`},"onUpdate:value":i[0]||=e=>s({mode:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.session.idleMinutes`),hint:x(o)(`settings.session.idleMinutesHint`)},{default:l(()=>[t(x(G),{value:x(n).sessionReset.idle_minutes,min:10,max:10080,step:30,size:`small`,style:{width:`120px`},"onUpdate:value":i[1]||=e=>e!=null&&s({idle_minutes:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.session.atHour`),hint:x(o)(`settings.session.atHourHint`)},{default:l(()=>[t(x(G),{value:x(n).sessionReset.at_hour,min:0,max:23,step:1,size:`small`,style:{width:`120px`},"onUpdate:value":i[2]||=e=>e!=null&&s({at_hour:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-f01b7f59`]]),$e={class:`settings-section`},et=T(b({__name:`PrivacySettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`privacy`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,$e,[t(X,{label:x(o)(`settings.privacy.redactPii`),hint:x(o)(`settings.privacy.redactPiiHint`)},{default:l(()=>[t(x(J),{value:x(n).privacy.redact_pii,"onUpdate:value":i[0]||=e=>s({redact_pii:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-eecbcbf4`]]),tt={class:`settings-view`},nt={class:`page-header`},rt={class:`header-title`},it={class:`settings-content`},at={class:`settings-section`},ot=T(b({__name:`SettingsView`,setup(e){let n=Y(),i=q(),{t:o}=w();f(()=>{n.fetchSettings()});async function s(e){try{await n.saveSection(`platforms`,{api_server:e}),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`div`,tt,[S(`header`,nt,[S(`h2`,rt,v(x(o)(`settings.title`)),1)]),S(`div`,it,[t(x(me),{show:x(n).loading},{default:l(()=>[t(x(Be),{type:`line`,animated:``},{default:l(()=>[t(x($),{name:`display`,tab:x(o)(`settings.tabs.display`)},{default:l(()=>[t(Ke)]),_:1},8,[`tab`]),t(x($),{name:`agent`,tab:x(o)(`settings.tabs.agent`)},{default:l(()=>[t(Je)]),_:1},8,[`tab`]),t(x($),{name:`memory`,tab:x(o)(`settings.tabs.memory`)},{default:l(()=>[t(Xe)]),_:1},8,[`tab`]),t(x($),{name:`session`,tab:x(o)(`settings.tabs.session`)},{default:l(()=>[t(Qe)]),_:1},8,[`tab`]),t(x($),{name:`privacy`,tab:x(o)(`settings.tabs.privacy`)},{default:l(()=>[t(et)]),_:1},8,[`tab`]),t(x($),{name:`api_server`,tab:x(o)(`settings.tabs.apiServer`)},{default:l(()=>[S(`section`,at,[t(X,{label:x(o)(`settings.apiServer.enable`),hint:x(o)(`settings.apiServer.enableHint`)},{default:l(()=>[t(x(J),{value:x(n).platforms?.api_server?.enabled,"onUpdate:value":i[0]||=e=>s({enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.host`),hint:x(o)(`settings.apiServer.hostHint`)},{default:l(()=>[t(x(K),{value:x(n).platforms?.api_server?.host||``,size:`small`,style:{width:`200px`},"onUpdate:value":i[1]||=e=>s({host:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.port`),hint:x(o)(`settings.apiServer.portHint`)},{default:l(()=>[t(x(G),{value:x(n).platforms?.api_server?.port,min:1024,max:65535,size:`small`,style:{width:`120px`},"onUpdate:value":i[2]||=e=>e!=null&&s({port:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.key`),hint:x(o)(`settings.apiServer.keyHint`)},{default:l(()=>[t(x(K),{value:x(n).platforms?.api_server?.key||``,type:`password`,"show-password-on":`click`,size:`small`,style:{width:`200px`},"onUpdate:value":i[3]||=e=>s({key:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.cors`),hint:x(o)(`settings.apiServer.corsHint`)},{default:l(()=>[t(x(K),{value:x(n).platforms?.api_server?.cors_origins||``,size:`small`,style:{width:`200px`},"onUpdate:value":i[4]||=e=>s({cors_origins:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])])]),_:1},8,[`tab`])]),_:1})]),_:1},8,[`show`])])]))}}),[[`__scopeId`,`data-v-65c130ad`]]);export{ot as default};
352
+ `)])])])]),ze=je,Be=b({name:`Tabs`,props:Object.assign(Object.assign({},ne.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:a}=ee(e),s=ne(`Tabs`,`-tabs`,Re,Pe,e,r),c=h(null),l=h(null),d=h(null),_=h(null),v=h(null),y=h(null),b=h(!0),x=h(!0),S=ue(e,[`labelSize`,`size`]),C=n(()=>S.value?S.value:a?.value?.Tabs?.size||`medium`),w=ue(e,[`activeName`,`value`]),T=h(w.value??e.defaultValue??(t.default?oe(t.default())[0]?.props?.name:null)),E=ce(w,T),D={id:0},O=n(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});p(E,()=>{D.id=0,N(),P()});function k(){let{value:e}=E;return e===null?null:c.value?.querySelector(`[data-name="${e}"]`)}function te(t){if(e.type===`card`)return;let{value:n}=l;if(!n)return;let i=n.style.opacity===`0`;if(t){let a=`${r.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?n.classList.add(a):n.classList.remove(a),[`top`,`bottom`].includes(s)){if(j([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;n.style.left=`${e}px`,n.style.maxWidth=`${o}px`}else n.style.left=`${t.offsetLeft}px`,n.style.maxWidth=`${t.offsetWidth}px`;n.style.width=`8192px`,i&&(n.style.transition=`none`),n.offsetWidth,i&&(n.style.transition=``,n.style.opacity=`1`)}else{if(j([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;n.style.top=`${e}px`,n.style.maxHeight=`${o}px`}else n.style.top=`${t.offsetTop}px`,n.style.maxHeight=`${t.offsetHeight}px`;n.style.height=`8192px`,i&&(n.style.transition=`none`),n.offsetHeight,i&&(n.style.transition=``,n.style.opacity=`1`)}}}function A(){if(e.type===`card`)return;let{value:t}=l;t&&(t.style.opacity=`0`)}function j(e){let{value:t}=l;if(t)for(let n of e)t.style[n]=``}function N(){if(e.type===`card`)return;let t=k();t?te(t):A()}function P(){let e=v.value?.$el;if(!e)return;let t=k();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let F=h(null),I=0,R=null;function ae(e){let t=F.value;if(t){I=e.getBoundingClientRect().height;let n=`${I}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};R?(r(),R(),R=null):R=r}}function se(e){let t=F.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(I,n)}px`};R?(R(),R=null,r()):R=r}}function z(){let t=F.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let V={value:[]},H=h(`next`);function U(e){let t=E.value,n=`next`;for(let r of V.value){if(r===t)break;if(r===e){n=`prev`;break}}H.value=n,de(e)}function de(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&L(n,t),r&&L(r,t),i&&L(i,t),T.value=t}function W(t){let{onClose:n}=e;n&&L(n,t)}let fe=!0;function pe(){let{value:e}=l;if(!e)return;fe||=!1;let t=`transition-disabled`;e.classList.add(t),N(),e.classList.remove(t)}let G=h(null);function K({transitionDisabled:e}){let t=c.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=k();n&&G.value&&(G.value.style.width=`${n.offsetWidth}px`,G.value.style.height=`${n.offsetHeight}px`,G.value.style.transform=`translateX(${n.offsetLeft-le(getComputedStyle(t).paddingLeft)}px)`,e&&G.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}p([E],()=>{e.type===`segment`&&u(()=>{K({transitionDisabled:!1})})}),f(()=>{e.type===`segment`&&K({transitionDisabled:!0})});let q=0;function me(t){if(t.contentRect.width===0&&t.contentRect.height===0||q===t.contentRect.width)return;q=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(fe||e.justifyContent?.startsWith(`space`))&&pe(),n!==`segment`){let{placement:t}=e;Z((t===`top`||t===`bottom`?v.value?.$el:y.value)||null)}}let J=ze(me,64);p([()=>e.justifyContent,()=>e.size],()=>{u(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&pe()})});let Y=h(!1);function X(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!Y.value)s===`top`||s===`bottom`?a<r&&(Y.value=!0):o<i&&(Y.value=!0);else{let{value:e}=_;if(!e)return;s===`top`||s===`bottom`?a-r>e.$el.offsetWidth&&(Y.value=!1):o-i>e.$el.offsetHeight&&(Y.value=!1)}Z(v.value?.$el||null)}let he=ze(X,64);function ge(){let{onAdd:t}=e;t&&t(),u(()=>{let e=k(),{value:t}=v;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function Z(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;b.value=e<=0,x.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;b.value=e<=0,x.value=e+r>=n}}let _e=ze(e=>{Z(e.target)},64);o(Fe,{triggerRef:g(e,`trigger`),tabStyleRef:g(e,`tabStyle`),tabClassRef:g(e,`tabClass`),addTabStyleRef:g(e,`addTabStyle`),addTabClassRef:g(e,`addTabClass`),paneClassRef:g(e,`paneClass`),paneStyleRef:g(e,`paneStyle`),mergedClsPrefixRef:r,typeRef:g(e,`type`),closableRef:g(e,`closable`),valueRef:E,tabChangeIdRef:D,onBeforeLeaveRef:g(e,`onBeforeLeave`),activateTab:U,handleClose:W,handleAdd:ge}),ie(()=>{N(),P()}),m(()=>{let{value:e}=d;if(!e)return;let{value:t}=r,n=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;b.value?e.classList.remove(n):e.classList.add(n),x.value?e.classList.remove(i):e.classList.add(i)});let ve={syncBarPosition:()=>{N()}},ye=()=>{K({transitionDisabled:!0})},Q=n(()=>{let{value:t}=C,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:c,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:h,fontWeightStrong:g,tabColorSegment:_,closeSize:v,closeIconSize:y,closeColorHover:b,closeColorPressed:x,closeBorderRadius:S,[M(`panePadding`,t)]:w,[M(`tabPadding`,r)]:T,[M(`tabPaddingVertical`,r)]:ee,[M(`tabGap`,r)]:E,[M(`tabGap`,`${r}Vertical`)]:D,[M(`tabTextColor`,n)]:O,[M(`tabTextColorActive`,n)]:k,[M(`tabTextColorHover`,n)]:te,[M(`tabTextColorDisabled`,n)]:A,[M(`tabFontSize`,t)]:ne},common:{cubicBezierEaseInOut:j}}=s.value;return{"--n-bezier":j,"--n-color-segment":h,"--n-bar-color":i,"--n-tab-font-size":ne,"--n-tab-text-color":O,"--n-tab-text-color-active":k,"--n-tab-text-color-disabled":A,"--n-tab-text-color-hover":te,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":v,"--n-close-icon-size":y,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-border-radius":S,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":c,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":ee,"--n-tab-gap":E,"--n-tab-gap-vertical":D,"--n-pane-padding-left":B(w,`left`),"--n-pane-padding-right":B(w,`right`),"--n-pane-padding-top":B(w,`top`),"--n-pane-padding-bottom":B(w,`bottom`),"--n-font-weight-strong":g,"--n-tab-color-segment":_}}),be=i?re(`tabs`,n(()=>`${C.value[0]}${e.type[0]}`),Q,e):void 0;return Object.assign({mergedClsPrefix:r,mergedValue:E,renderedNames:new Set,segmentCapsuleElRef:G,tabsPaneWrapperRef:F,tabsElRef:c,barElRef:l,addTabInstRef:_,xScrollInstRef:v,scrollWrapperElRef:d,addTabFixed:Y,tabWrapperStyle:O,handleNavResize:J,mergedSize:C,handleScroll:_e,handleTabsResize:he,cssVars:i?void 0:Q,themeClass:be?.themeClass,animationDirection:H,renderNameListRef:V,yScrollElRef:y,handleSegmentResize:ye,onAnimationBeforeLeave:ae,onAnimationEnter:se,onAnimationAfterEnter:z,onRender:be?.onRender},ve)},render(){let{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:o,onRender:s,paneWrapperClass:l,paneWrapperStyle:u,$slots:{default:d,prefix:f,suffix:p}}=this;s?.();let m=d?oe(d()).filter(e=>e.type.__TAB_PANE__===!0):[],h=d?oe(d()).filter(e=>e.type.__TAB__===!0):[],g=!h.length,_=t===`card`,v=t===`segment`,y=!_&&!v&&this.justifyContent;o.value=[];let b=()=>{let t=c(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:c(`div`,{class:`${e}-tabs-scroll-padding`,style:n===`top`||n===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?m.map((e,t)=>(o.value.push(e.props.name),We(c(Le,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!y||y===`center`||y===`start`||y===`end`)}),e.children?{default:e.children.tab}:void 0)))):h.map((e,t)=>(o.value.push(e.props.name),We(t!==0&&!y?Ue(e):e))),!r&&i&&_?He(i,(g?m.length:h.length)!==0):null,y?null:c(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return c(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},_&&i?c(U,{onResize:this.handleTabsResize},{default:()=>t}):t,_?c(`div`,{class:`${e}-tabs-pad`}):null,_?null:c(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},x=v?`top`:n;return c(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${x}`],style:this.cssVars},c(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${x}`,`${e}-tabs-nav`]},O(f,t=>t&&c(`div`,{class:`${e}-tabs-nav__prefix`},t)),v?c(U,{onResize:this.handleSegmentResize},{default:()=>c(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},c(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},c(`div`,{class:`${e}-tabs-wrapper`},c(`div`,{class:`${e}-tabs-tab`}))),g?m.map((e,t)=>(o.value.push(e.props.name),c(Le,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):h.map((e,t)=>(o.value.push(e.props.name),t===0?e:Ue(e))))}):c(U,{onResize:this.handleNavResize},{default:()=>c(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(x)?c(ge,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:b}):c(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},b()))}),r&&i&&_?He(i,!0):null,O(p,t=>t&&c(`div`,{class:`${e}-tabs-nav__suffix`},t))),g&&(this.animated&&(x===`top`||x===`bottom`)?c(`div`,{ref:`tabsPaneWrapperRef`,style:u,class:[`${e}-tabs-pane-wrapper`,l]},Ve(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Ve(m,this.mergedValue,this.renderedNames)))}});function Ve(t,n,r,i,a,o,s){let l=[];return t.forEach(t=>{let{name:i,displayDirective:a,"display-directive":o}=t.props,s=e=>a===e||o===e,c=n===i;if(t.key!==void 0&&(t.key=i),c||s(`show`)||s(`show:lazy`)&&r.has(i)){r.has(i)||r.add(i);let n=!s(`if`);l.push(n?e(t,[[y,c]]):t)}}),s?c(_,{name:`${s}-transition`,onBeforeLeave:i,onEnter:a,onAfterEnter:o},{default:()=>l}):l}function He(e,t){return c(Le,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function Ue(e){let t=d(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function We(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}var Ge={class:`settings-section`},Ke=T(b({__name:`DisplaySettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`display`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,Ge,[t(X,{label:x(o)(`settings.display.streaming`),hint:x(o)(`settings.display.streamingHint`)},{default:l(()=>[t(x(J),{value:x(n).display.streaming,"onUpdate:value":i[0]||=e=>s({streaming:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.compact`),hint:x(o)(`settings.display.compactHint`)},{default:l(()=>[t(x(J),{value:x(n).display.compact,"onUpdate:value":i[1]||=e=>s({compact:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.showReasoning`),hint:x(o)(`settings.display.showReasoningHint`)},{default:l(()=>[t(x(J),{value:x(n).display.show_reasoning,"onUpdate:value":i[2]||=e=>s({show_reasoning:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.showCost`),hint:x(o)(`settings.display.showCostHint`)},{default:l(()=>[t(x(J),{value:x(n).display.show_cost,"onUpdate:value":i[3]||=e=>s({show_cost:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.inlineDiffs`),hint:x(o)(`settings.display.inlineDiffsHint`)},{default:l(()=>[t(x(J),{value:x(n).display.inline_diffs,"onUpdate:value":i[4]||=e=>s({inline_diffs:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.bellOnComplete`),hint:x(o)(`settings.display.bellOnCompleteHint`)},{default:l(()=>[t(x(J),{value:x(n).display.bell_on_complete,"onUpdate:value":i[5]||=e=>s({bell_on_complete:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.display.busyInputMode`),hint:x(o)(`settings.display.busyInputModeHint`)},{default:l(()=>[t(x(J),{value:x(n).display.busy_input_mode===`interrupt`,"onUpdate:value":i[6]||=e=>s({busy_input_mode:e?`interrupt`:`off`})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-c8db8205`]]),qe={class:`settings-section`},Je=T(b({__name:`AgentSettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`agent`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,qe,[t(X,{label:x(o)(`settings.agent.maxTurns`),hint:x(o)(`settings.agent.maxTurnsHint`)},{default:l(()=>[t(x(G),{value:x(n).agent.max_turns,min:1,max:200,step:5,size:`small`,class:`input-sm`,"onUpdate:value":i[0]||=e=>e!=null&&s({max_turns:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.agent.gatewayTimeout`),hint:x(o)(`settings.agent.gatewayTimeoutHint`)},{default:l(()=>[t(x(G),{value:x(n).agent.gateway_timeout,min:60,max:7200,step:60,size:`small`,class:`input-sm`,"onUpdate:value":i[1]||=e=>e!=null&&s({gateway_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.agent.restartDrainTimeout`),hint:x(o)(`settings.agent.restartDrainTimeoutHint`)},{default:l(()=>[t(x(G),{value:x(n).agent.restart_drain_timeout,min:10,max:300,step:10,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({restart_drain_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.agent.toolEnforcement`),hint:x(o)(`settings.agent.toolEnforcementHint`)},{default:l(()=>[t(x(W),{value:x(n).agent.tool_use_enforcement||`auto`,options:[{label:x(o)(`settings.agent.auto`),value:`auto`},{label:x(o)(`settings.agent.always`),value:`always`},{label:x(o)(`settings.agent.never`),value:`never`}],size:`small`,class:`input-sm`,"onUpdate:value":i[3]||=e=>s({tool_use_enforcement:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-ef76d803`]]),Ye={class:`settings-section`},Xe=T(b({__name:`MemorySettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`memory`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,Ye,[t(X,{label:x(o)(`settings.memory.enabled`),hint:x(o)(`settings.memory.enabledHint`)},{default:l(()=>[t(x(J),{value:x(n).memory.memory_enabled,"onUpdate:value":i[0]||=e=>s({memory_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.memory.userProfile`),hint:x(o)(`settings.memory.userProfileHint`)},{default:l(()=>[t(x(J),{value:x(n).memory.user_profile_enabled,"onUpdate:value":i[1]||=e=>s({user_profile_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.memory.charLimit`),hint:x(o)(`settings.memory.charLimitHint`)},{default:l(()=>[t(x(G),{value:x(n).memory.memory_char_limit,min:100,max:1e4,step:100,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({memory_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.memory.userCharLimit`),hint:x(o)(`settings.memory.userCharLimitHint`)},{default:l(()=>[t(x(G),{value:x(n).memory.user_char_limit,min:100,max:1e4,step:100,size:`small`,class:`input-sm`,"onUpdate:value":i[3]||=e=>e!=null&&s({user_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-0dfe4428`]]),Ze={class:`settings-section`},Qe=T(b({__name:`SessionSettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`session_reset`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,Ze,[t(X,{label:x(o)(`settings.session.mode`),hint:x(o)(`settings.session.modeHint`)},{default:l(()=>[t(x(W),{value:x(n).sessionReset.mode||`both`,options:[{label:x(o)(`settings.session.modeBoth`),value:`both`},{label:x(o)(`settings.session.modeIdle`),value:`idle`},{label:x(o)(`settings.session.modeHourly`),value:`hourly`}],size:`small`,class:`input-md`,"onUpdate:value":i[0]||=e=>s({mode:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.session.idleMinutes`),hint:x(o)(`settings.session.idleMinutesHint`)},{default:l(()=>[t(x(G),{value:x(n).sessionReset.idle_minutes,min:10,max:10080,step:30,size:`small`,class:`input-sm`,"onUpdate:value":i[1]||=e=>e!=null&&s({idle_minutes:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.session.atHour`),hint:x(o)(`settings.session.atHourHint`)},{default:l(()=>[t(x(G),{value:x(n).sessionReset.at_hour,min:0,max:23,step:1,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({at_hour:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-b7d98a60`]]),$e={class:`settings-section`},et=T(b({__name:`PrivacySettings`,setup(e){let n=Y(),i=q(),{t:o}=w();async function s(e){try{await n.saveSection(`privacy`,e),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`section`,$e,[t(X,{label:x(o)(`settings.privacy.redactPii`),hint:x(o)(`settings.privacy.redactPiiHint`)},{default:l(()=>[t(x(J),{value:x(n).privacy.redact_pii,"onUpdate:value":i[0]||=e=>s({redact_pii:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-eecbcbf4`]]),tt={class:`settings-view`},nt={class:`page-header`},rt={class:`header-title`},it={class:`settings-content`},at={class:`settings-section`},ot=T(b({__name:`SettingsView`,setup(e){let n=Y(),i=q(),{t:o}=w();f(()=>{n.fetchSettings()});async function s(e){try{await n.saveSection(`platforms`,{api_server:e}),i.success(o(`settings.saved`))}catch{i.error(o(`settings.saveFailed`))}}return(e,i)=>(a(),r(`div`,tt,[S(`header`,nt,[S(`h2`,rt,v(x(o)(`settings.title`)),1)]),S(`div`,it,[t(x(me),{show:x(n).loading},{default:l(()=>[t(x(Be),{type:`line`,animated:``},{default:l(()=>[t(x($),{name:`display`,tab:x(o)(`settings.tabs.display`)},{default:l(()=>[t(Ke)]),_:1},8,[`tab`]),t(x($),{name:`agent`,tab:x(o)(`settings.tabs.agent`)},{default:l(()=>[t(Je)]),_:1},8,[`tab`]),t(x($),{name:`memory`,tab:x(o)(`settings.tabs.memory`)},{default:l(()=>[t(Xe)]),_:1},8,[`tab`]),t(x($),{name:`session`,tab:x(o)(`settings.tabs.session`)},{default:l(()=>[t(Qe)]),_:1},8,[`tab`]),t(x($),{name:`privacy`,tab:x(o)(`settings.tabs.privacy`)},{default:l(()=>[t(et)]),_:1},8,[`tab`]),t(x($),{name:`api_server`,tab:x(o)(`settings.tabs.apiServer`)},{default:l(()=>[S(`section`,at,[t(X,{label:x(o)(`settings.apiServer.enable`),hint:x(o)(`settings.apiServer.enableHint`)},{default:l(()=>[t(x(J),{value:x(n).platforms?.api_server?.enabled,"onUpdate:value":i[0]||=e=>s({enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.host`),hint:x(o)(`settings.apiServer.hostHint`)},{default:l(()=>[t(x(K),{value:x(n).platforms?.api_server?.host||``,size:`small`,class:`input-md`,"onUpdate:value":i[1]||=e=>s({host:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.port`),hint:x(o)(`settings.apiServer.portHint`)},{default:l(()=>[t(x(G),{value:x(n).platforms?.api_server?.port,min:1024,max:65535,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>e!=null&&s({port:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.key`),hint:x(o)(`settings.apiServer.keyHint`)},{default:l(()=>[t(x(K),{value:x(n).platforms?.api_server?.key||``,type:`password`,"show-password-on":`click`,size:`small`,class:`input-md`,"onUpdate:value":i[3]||=e=>s({key:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),t(X,{label:x(o)(`settings.apiServer.cors`),hint:x(o)(`settings.apiServer.corsHint`)},{default:l(()=>[t(x(K),{value:x(n).platforms?.api_server?.cors_origins||``,size:`small`,class:`input-md`,"onUpdate:value":i[4]||=e=>s({cors_origins:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])])]),_:1},8,[`tab`])]),_:1})]),_:1},8,[`show`])])]))}}),[[`__scopeId`,`data-v-0025565a`]]);export{ot as default};
@@ -0,0 +1 @@
1
+ .settings-section[data-v-c8db8205],.settings-section[data-v-ef76d803],.settings-section[data-v-0dfe4428],.settings-section[data-v-b7d98a60],.settings-section[data-v-eecbcbf4]{margin-top:16px}.settings-view[data-v-0025565a]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.settings-content[data-v-0025565a]{flex:1;padding:20px;overflow-y:auto}
@@ -0,0 +1 @@
1
+ import{A as e,C as t,D as n,E as r,G as i,T as a,U as o,W as s,X as c,_ as l,ct as u,gt as d,j as f,k as p,mt as m,pt as h,q as g,w as _,y as v}from"./router-B0PaAFys.js";import{r as y,t as b}from"./_plugin-vue_export-helper-DkLSTLBi.js";import{t as x}from"./Input-CyvPny5v.js";import{t as S}from"./use-message-CG8KB3t0.js";import{t as C}from"./Switch-Ce0Tgpcj.js";import{t as w}from"./MarkdownRenderer-z5xC7cOw.js";import{i as T,n as E,o as ee,r as D}from"./skills-COmQAkb0.js";var O={class:`skill-list`},k={key:0,class:`skill-empty`},A=[`onClick`],j={class:`category-name`},M={class:`category-count`},N={key:0,class:`category-skills`},P=[`onClick`],F={class:`skill-info`},I={class:`skill-name`},L={key:0,class:`skill-desc`},R=b(f({__name:`SkillList`,props:{categories:{},selectedSkill:{},searchQuery:{}},emits:[`select`],setup(a,{emit:o}){let{t:s}=y(),c=S(),f=a,p=o,b=u(new Set),x=u(new Set),w=t(()=>{if(!f.searchQuery)return f.categories;let e=f.searchQuery.toLowerCase();return f.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 T(e){b.value.has(e)?b.value.delete(e):b.value.add(e)}function E(e,t){p(`select`,e,t)}async function D(e,t,n){if(!x.value.has(t)){x.value.add(t);try{await ee(t,n);let r=f.categories.find(t=>t.name===e)?.skills.find(e=>e.name===t);r&&(r.enabled=n)}catch(e){c.error(s(`skills.toggleFailed`)+`: ${e.message}`)}finally{x.value.delete(t)}}}return(t,o)=>(i(),n(`div`,O,[w.value.length===0?(i(),n(`div`,k,d(a.searchQuery?h(s)(`skills.noMatch`):h(s)(`skills.noSkills`)),1)):r(``,!0),(i(!0),n(v,null,g(w.value,t=>(i(),n(`div`,{key:t.name,class:`skill-category`},[_(`button`,{class:`category-header`,onClick:e=>T(t.name)},[(i(),n(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:m([`category-arrow`,{collapsed:b.value.has(t.name)}])},[...o[1]||=[_(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)),_(`span`,j,d(t.name),1),_(`span`,M,d(t.skills.length),1)],8,A),b.value.has(t.name)?r(``,!0):(i(),n(`div`,N,[(i(!0),n(v,null,g(t.skills,s=>(i(),n(`button`,{key:s.name,class:m([`skill-item`,{active:a.selectedSkill===`${t.name}/${s.name}`}]),onClick:e=>E(t.name,s.name)},[_(`div`,F,[_(`span`,I,d(s.name),1),s.description?(i(),n(`span`,L,d(s.description),1)):r(``,!0)]),e(h(C),{size:`small`,value:s.enabled!==!1,loading:x.value.has(s.name),"onUpdate:value":e=>D(t.name,s.name,e),onClick:o[0]||=l(()=>{},[`stop`])},null,8,[`value`,`loading`,`onUpdate:value`])],10,P))),128))]))]))),128))]))}}),[[`__scopeId`,`data-v-242ac691`]]),z={class:`skill-detail`},B={class:`detail-title`},V={class:`detail-category`},H={class:`detail-name`},U={key:0,class:`detail-loading`},te={key:0,class:`detail-breadcrumb`},W={class:`breadcrumb-path`},G={class:`detail-content`},K={key:1,class:`detail-files`},q={class:`files-header`},J={class:`files-list`},Y=[`onClick`],X=b(f({__name:`SkillDetail`,props:{category:{},skill:{}},setup(e){let{t}=y(),o=e,s=u(``),l=u([]),f=u(!1),m=u(``),b=u(null),x=u(!1);async function S(){f.value=!0,b.value=null,m.value=``,l.value=[],s.value=``;try{let e=`${o.category}/${o.skill}/SKILL.md`,[t,n]=await Promise.all([E(e),D(o.category,o.skill)]);s.value=t,l.value=n.filter(e=>!e.isDir&&e.path!==`SKILL.md`)}catch(e){s.value=t(`skills.loadFailed`)+`: ${e.message}`}finally{f.value=!1}}async function C(e){x.value=!0,b.value=e;try{let t=`${o.category}/${o.skill}/`,n=e;if(e.startsWith(`/`)){let t=e.split(`/.hermes/skills/`)[1];t&&(n=t.split(`/`).slice(2).join(`/`))}m.value=await E(`${t}${n}`)}catch(e){m.value=t(`skills.fileLoadFailed`)+`: ${e.message}`}finally{x.value=!1}}function T(){b.value=null,m.value=``}return c(()=>`${o.category}/${o.skill}`,S,{immediate:!0}),(o,c)=>(i(),n(`div`,z,[_(`div`,B,[_(`span`,V,d(e.category),1),c[0]||=_(`span`,{class:`detail-separator`},`/`,-1),_(`span`,H,d(e.skill),1)]),f.value&&!s.value?(i(),n(`div`,U,d(h(t)(`common.loading`)),1)):(i(),n(v,{key:1},[b.value?(i(),n(`div`,te,[_(`button`,{class:`back-btn`,onClick:T},[c[1]||=_(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[_(`polyline`,{points:`15 18 9 12 15 6`})],-1),p(` `+d(h(t)(`skills.backTo`))+` `+d(e.skill),1)]),_(`span`,W,d(b.value),1)])):r(``,!0),_(`div`,G,[b.value?(i(),a(w,{key:0,content:m.value},null,8,[`content`])):(i(),a(w,{key:1,content:s.value},null,8,[`content`]))]),!b.value&&l.value.length>0?(i(),n(`div`,K,[_(`div`,q,d(h(t)(`skills.attachedFiles`)),1),_(`div`,J,[(i(!0),n(v,null,g(l.value,e=>(i(),n(`button`,{key:e.path,class:`file-item`,onClick:t=>C(e.path)},[c[2]||=_(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[_(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),_(`polyline`,{points:`14 2 14 8 20 8`})],-1),_(`span`,null,d(e.path),1)],8,Y))),128))])])):r(``,!0)],64))]))}}),[[`__scopeId`,`data-v-b84bbe48`]]),Z={class:`skills-view`},Q={class:`page-header`},ne={style:{display:`flex`,"align-items":`center`,gap:`8px`}},re={class:`header-title`},ie={class:`skills-content`},ae={key:0,class:`skills-loading`},oe={key:1,class:`skills-layout`},$={key:0,class:`skills-sidebar`},se={class:`skills-main`},ce={key:1,class:`empty-detail`},le=b(f({__name:`SkillsView`,setup(t){let{t:c}=y(),l=u([]),f=u(!1),p=u(``),g=u(``),v=u(``),b=u(!0),S=null;function C(e){b.value=!e.matches}o(()=>{S=window.matchMedia(`(max-width: 768px)`),C(S),S.addEventListener(`change`,C),w()}),s(()=>{S?.removeEventListener(`change`,C)});async function w(){f.value=!0;try{l.value=await T()}catch(e){console.error(`Failed to load skills:`,e)}finally{f.value=!1}}function E(e,t){p.value=e,g.value=t,window.innerWidth<=768&&(b.value=!1)}return(t,o)=>(i(),n(`div`,Z,[_(`header`,Q,[_(`div`,ne,[_(`h2`,re,d(h(c)(`skills.title`)),1),b.value?r(``,!0):(i(),n(`button`,{key:0,class:`sidebar-toggle`,onClick:o[0]||=e=>b.value=!0},[...o[3]||=[_(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[_(`line`,{x1:`3`,y1:`12`,x2:`21`,y2:`12`}),_(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),_(`line`,{x1:`3`,y1:`18`,x2:`21`,y2:`18`})],-1)]]))]),e(h(x),{value:v.value,"onUpdate:value":o[1]||=e=>v.value=e,placeholder:h(c)(`skills.searchPlaceholder`),size:`small`,clearable:``,style:{width:`160px`}},null,8,[`value`,`placeholder`])]),_(`div`,ie,[f.value&&l.value.length===0?(i(),n(`div`,ae,`Loading...`)):(i(),n(`div`,oe,[_(`div`,{class:m([`mobile-backdrop`,{active:b.value}]),onClick:o[2]||=e=>b.value=!1},null,2),b.value?(i(),n(`div`,$,[e(R,{categories:l.value,"selected-skill":p.value&&g.value?`${p.value}/${g.value}`:null,"search-query":v.value,onSelect:E},null,8,[`categories`,`selected-skill`,`search-query`])])):r(``,!0),_(`div`,se,[p.value&&g.value?(i(),a(X,{key:0,category:p.value,skill:g.value},null,8,[`category`,`skill`])):(i(),n(`div`,ce,[...o[4]||=[_(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,opacity:`0.2`},[_(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),_(`polyline`,{points:`2 17 12 22 22 17`}),_(`polyline`,{points:`2 12 12 17 22 12`})],-1),_(`span`,null,`Select a skill from the list`,-1)]]))])]))])]))}}),[[`__scopeId`,`data-v-1f82c2bc`]]);export{le as default};
@@ -1 +1 @@
1
- .skill-list[data-v-242ac691]{flex:1;padding:8px;overflow-y:auto}.skill-empty[data-v-242ac691]{color:#999;text-align:center;padding:24px 16px;font-size:13px}.skill-category[data-v-242ac691]{margin-bottom:4px}.category-header[data-v-242ac691]{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-242ac691]:hover{background:#3333330a}.category-arrow[data-v-242ac691]{flex-shrink:0;transition:transform .15s}.category-arrow.collapsed[data-v-242ac691]{transform:rotate(-90deg)}.category-name[data-v-242ac691]{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.category-count[data-v-242ac691]{color:#999;background:#3333330f;border-radius:8px;padding:1px 6px;font-size:11px}.category-skills[data-v-242ac691]{padding:2px 0 4px}.skill-item[data-v-242ac691]{color:#666;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-direction:row;align-items:center;gap:8px;width:100%;padding:6px 10px 6px 28px;font-size:13px;transition:all .15s;display:flex}.skill-item[data-v-242ac691]:hover{color:#1a1a1a;background:#3333330f}.skill-item.active[data-v-242ac691]{color:#1a1a1a;background:#3333331a;font-weight:500}.skill-info[data-v-242ac691]{flex-direction:column;flex:1;min-width:0;display:flex}.skill-name[data-v-242ac691]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.skill-desc[data-v-242ac691]{color:#999;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:11px;overflow:hidden}.skill-detail[data-v-b84bbe48]{flex-direction:column;height:100%;display:flex}.detail-title[data-v-b84bbe48]{border-bottom:1px solid #e0e0e0;flex-shrink:0;margin-bottom:12px;padding-bottom:12px;font-size:15px}.detail-category[data-v-b84bbe48]{color:#999;font-size:13px}.detail-separator[data-v-b84bbe48]{color:#999;margin:0 6px}.detail-name[data-v-b84bbe48]{color:#1a1a1a;font-weight:600}.detail-loading[data-v-b84bbe48]{color:#999;flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.detail-breadcrumb[data-v-b84bbe48]{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-b84bbe48]{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-b84bbe48]:hover{background:#3333330f}.breadcrumb-path[data-v-b84bbe48]{color:#999;font-size:13px}.detail-content[data-v-b84bbe48]{flex:1;min-height:0;padding-bottom:12px;overflow-y:auto}.detail-content[data-v-b84bbe48] hr{border:none;margin:12px 0}.detail-files[data-v-b84bbe48]{border-top:1px solid #e0e0e0;flex-shrink:0;margin-top:12px;padding-top:12px}.files-header[data-v-b84bbe48]{color:#999;text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px;font-size:12px;font-weight:600}.files-list[data-v-b84bbe48]{flex-wrap:wrap;gap:4px;display:flex}.file-item[data-v-b84bbe48]{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-b84bbe48]:hover{color:#333;border-color:#333}.skills-view[data-v-e3410494]{flex-direction:column;height:100vh;display:flex}.search-input[data-v-e3410494]{width:220px}.skills-content[data-v-e3410494]{flex:1;overflow:hidden}.skills-loading[data-v-e3410494]{color:#999;justify-content:center;align-items:center;height:100%;font-size:13px;display:flex}.skills-layout[data-v-e3410494]{height:100%;display:flex}.skills-sidebar[data-v-e3410494]{border-right:1px solid #e0e0e0;flex-direction:column;flex-shrink:0;width:280px;min-height:0;display:flex;overflow:hidden}.skills-main[data-v-e3410494]{flex:1;min-width:0;min-height:0;padding:16px 20px;overflow-y:auto}.empty-detail[data-v-e3410494]{color:#999;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;font-size:13px;display:flex}
1
+ .skill-list[data-v-242ac691]{flex:1;padding:8px;overflow-y:auto}.skill-empty[data-v-242ac691]{color:#999;text-align:center;padding:24px 16px;font-size:13px}.skill-category[data-v-242ac691]{margin-bottom:4px}.category-header[data-v-242ac691]{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-242ac691]:hover{background:#3333330a}.category-arrow[data-v-242ac691]{flex-shrink:0;transition:transform .15s}.category-arrow.collapsed[data-v-242ac691]{transform:rotate(-90deg)}.category-name[data-v-242ac691]{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.category-count[data-v-242ac691]{color:#999;background:#3333330f;border-radius:8px;padding:1px 6px;font-size:11px}.category-skills[data-v-242ac691]{padding:2px 0 4px}.skill-item[data-v-242ac691]{color:#666;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-direction:row;align-items:center;gap:8px;width:100%;padding:6px 10px 6px 28px;font-size:13px;transition:all .15s;display:flex}.skill-item[data-v-242ac691]:hover{color:#1a1a1a;background:#3333330f}.skill-item.active[data-v-242ac691]{color:#1a1a1a;background:#3333331a;font-weight:500}.skill-info[data-v-242ac691]{flex-direction:column;flex:1;min-width:0;display:flex}.skill-name[data-v-242ac691]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.skill-desc[data-v-242ac691]{color:#999;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:11px;overflow:hidden}.skill-detail[data-v-b84bbe48]{flex-direction:column;height:100%;display:flex}.detail-title[data-v-b84bbe48]{border-bottom:1px solid #e0e0e0;flex-shrink:0;margin-bottom:12px;padding-bottom:12px;font-size:15px}.detail-category[data-v-b84bbe48]{color:#999;font-size:13px}.detail-separator[data-v-b84bbe48]{color:#999;margin:0 6px}.detail-name[data-v-b84bbe48]{color:#1a1a1a;font-weight:600}.detail-loading[data-v-b84bbe48]{color:#999;flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.detail-breadcrumb[data-v-b84bbe48]{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-b84bbe48]{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-b84bbe48]:hover{background:#3333330f}.breadcrumb-path[data-v-b84bbe48]{color:#999;font-size:13px}.detail-content[data-v-b84bbe48]{flex:1;min-height:0;padding-bottom:12px;overflow-y:auto}.detail-content[data-v-b84bbe48] hr{border:none;margin:12px 0}.detail-files[data-v-b84bbe48]{border-top:1px solid #e0e0e0;flex-shrink:0;margin-top:12px;padding-top:12px}.files-header[data-v-b84bbe48]{color:#999;text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px;font-size:12px;font-weight:600}.files-list[data-v-b84bbe48]{flex-wrap:wrap;gap:4px;display:flex}.file-item[data-v-b84bbe48]{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-b84bbe48]:hover{color:#333;border-color:#333}.skills-view[data-v-1f82c2bc]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.search-input[data-v-1f82c2bc]{width:100px}@media (width<=768px){.search-input[data-v-1f82c2bc]{width:100%}}.skills-content[data-v-1f82c2bc]{flex:1;overflow:hidden}.skills-loading[data-v-1f82c2bc]{color:#999;justify-content:center;align-items:center;height:100%;font-size:13px;display:flex}.skills-layout[data-v-1f82c2bc]{height:100%;display:flex}.skills-sidebar[data-v-1f82c2bc]{border-right:1px solid #e0e0e0;flex-direction:column;flex-shrink:0;width:280px;min-height:0;display:flex;overflow:hidden}.skills-main[data-v-1f82c2bc]{flex:1;min-width:0;padding:16px 20px;overflow-y:auto}.sidebar-toggle[data-v-1f82c2bc]{cursor:pointer;color:#666;background:0 0;border:none;border-radius:6px;padding:4px;display:none}.sidebar-toggle[data-v-1f82c2bc]:hover{background:#3333330f}@media (width<=768px){.sidebar-toggle[data-v-1f82c2bc]{display:flex}.skills-sidebar[data-v-1f82c2bc]{z-index:10;background:#fff;height:100%;position:absolute;top:0;left:0;box-shadow:2px 0 8px #0000001a}.skills-layout[data-v-1f82c2bc]{position:relative}.mobile-backdrop[data-v-1f82c2bc]{z-index:9;opacity:0;pointer-events:none;background:#0006;transition:opacity .15s;display:block;position:absolute;inset:0}.mobile-backdrop.active[data-v-1f82c2bc]{opacity:1;pointer-events:auto}}.empty-detail[data-v-1f82c2bc]{color:#999;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;font-size:13px;display:flex}
@@ -1,4 +1,4 @@
1
- import{C as e,N as t,Z as n,ct as r,d as i,j as a}from"./router-Ddepf70Q.js";import{B as o,at as s,c,dt as l,i as u,lt as d,n as f,ot as p,r as m,z as h}from"./browser-Bf2Q3p4g.js";import{a as g,x as _}from"./Suffix-C1X_jn5E.js";import{n as v}from"./Close-2w73mIOt.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:f,self:y},x=s([s(`@keyframes spin-rotate`,`
1
+ import{C as e,N as t,Z as n,ct as r,d as i,j as a}from"./router-B0PaAFys.js";import{B as o,at as s,c,dt as l,i as u,lt as d,n as f,ot as p,r as m,z as h}from"./browser-oMT2KRlV.js";import{a as g,x as _}from"./Suffix-La8FFPWu.js";import{n as v}from"./Close-Ck11Jegf.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:f,self:y},x=s([s(`@keyframes spin-rotate`,`
2
2
  from {
3
3
  transform: rotate(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-Ddepf70Q.js";import{B as _,F as v,M as y,N as b,P as x,V as S,W as C,a as w,at as T,c as ee,ct as E,d as te,l as D,lt as O,n as k,o as ne,ot as A,r as re,u as ie,z as ae}from"./browser-Bf2Q3p4g.js";function oe(e){return e.composedPath()[0]||null}function se(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function ce(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function j(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function M(e){return e.composedPath()[0]}var N={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function le(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(M(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(M(n))},i=r=>{e&&(t.contains(M(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function P(e,t,n){let r=N[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=le(e,t,n)),a}function ue(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=P(e,t,n);return Object.keys(i).forEach(e=>{F(e,document,i[e],r)}),!0}return!1}function de(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=P(e,t,n);return Object.keys(i).forEach(e=>{I(e,document,i[e],r)}),!0}return!1}function fe(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=M(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ue(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(de(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:F,off:I}=fe();function pe(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var me=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function he(){return me}function ge(e){let t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function L(e,t){console.error(`[vueuc/${e}]: ${t}`)}var R=[],_e=function(){return R.some(function(e){return e.activeTargets.length>0})},ve=function(){return R.some(function(e){return e.skippedTargets.length>0})},z=`ResizeObserver loop completed with undelivered notifications.`,ye=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:z}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=z),window.dispatchEvent(e)},B;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(B||={});var V=function(e){return Object.freeze(e)},be=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,V(this)}return e}(),xe=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,V(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),H=function(e){return e instanceof SVGElement&&`getBBox`in e},U=function(e){if(H(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Se=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},Ce=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},W=typeof window<`u`?window:{},G=new WeakMap,we=/auto|scroll/,Te=/^tb|vertical/,Ee=/msie|trident/i.test(W.navigator&&W.navigator.userAgent),K=function(e){return parseFloat(e||`0`)},q=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new be((n?t:e)||0,(n?e:t)||0)},De=V({devicePixelContentBoxSize:q(),borderBoxSize:q(),contentBoxSize:q(),contentRect:new xe(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),G.has(e)&&!t)return G.get(e);if(U(e))return G.set(e,De),De;var n=getComputedStyle(e),r=H(e)&&e.ownerSVGElement&&e.getBBox(),i=!Ee&&n.boxSizing===`border-box`,a=Te.test(n.writingMode||``),o=!r&&we.test(n.overflowY||``),s=!r&&we.test(n.overflowX||``),c=r?0:K(n.paddingTop),l=r?0:K(n.paddingRight),u=r?0:K(n.paddingBottom),d=r?0:K(n.paddingLeft),f=r?0:K(n.borderTopWidth),p=r?0:K(n.borderRightWidth),m=r?0:K(n.borderBottomWidth),h=r?0:K(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:K(n.width)-S-x,T=r?r.height:K(n.height)-C-b,ee=w+g+x+v,E=T+_+b+y,te=V({devicePixelContentBoxSize:q(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:q(ee,E,a),contentBoxSize:q(w,T,a),contentRect:new xe(d,c,w,T)});return G.set(e,te),te},Y=function(e,t,n){var r=J(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case B.DEVICE_PIXEL_CONTENT_BOX:return o;case B.BORDER_BOX:return i;default:return a}},Oe=function(){function e(e){var t=J(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=V([t.borderBoxSize]),this.contentBoxSize=V([t.contentBoxSize]),this.devicePixelContentBoxSize=V([t.devicePixelContentBoxSize])}return e}(),ke=function(e){if(U(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ae=function(){var e=1/0,t=[];R.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=ke(t.target);r.push(n),t.lastReportedSize=Y(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},je=function(e){R.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(ke(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Me=function(){var e=0;for(je(e);_e();)e=Ae(),je(e);return ve()&&ye(),e>0},X,Z=[],Ne=function(){return Z.splice(0).forEach(function(e){return e()})},Pe=function(e){if(!X){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Ne()}).observe(n,{characterData:!0}),X=function(){n.textContent=`${t?t--:t++}`}}Z.push(e),X()},Fe=function(e){Pe(function(){requestAnimationFrame(e)})},Ie=0,Le=function(){return!!Ie},Re=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},Be=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Ve=function(e){return e===void 0&&(e=0),Date.now()+e},He=!1,Ue=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Re),!He){He=!0;var n=Ve(e);Fe(function(){var r=!1;try{r=Me()}finally{if(He=!1,e=n-Ve(),!Le())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ze)};document.body?t():W.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Be.forEach(function(t){return W.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Be.forEach(function(t){return W.removeEventListener(t,e.listener,!0)}),!0)},e}()),We=function(e){!Ie&&e>0&&Ue.start(),Ie+=e,!Ie&&Ue.stop()},Ge=function(e){return!H(e)&&!Ce(e)&&getComputedStyle(e).display===`inline`},Ke=function(){function e(e,t){this.target=e,this.observedBox=t||B.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Y(this.target,this.observedBox,!0);return Ge(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),qe=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Je=new WeakMap,Ye=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xe=function(){function e(){}return e.connect=function(e,t){var n=new qe(e,t);Je.set(e,n)},e.observe=function(e,t,n){var r=Je.get(e),i=r.observationTargets.length===0;Ye(r.observationTargets,t)<0&&(i&&R.push(r),r.observationTargets.push(new Ke(t,n&&n.box)),We(1),Ue.schedule())},e.unobserve=function(e,t){var n=Je.get(e),r=Ye(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&R.splice(R.indexOf(n),1),n.observationTargets.splice(r,1),We(-1))},e.disconnect=function(e){var t=this,n=Je.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ze=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Xe.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Xe.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Xe.unobserve(this,e)},e.prototype.disconnect=function(){Xe.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Qe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ze)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},$e=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){L(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){L(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Qe.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Qe.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function et(e){let{left:t,right:n,top:r,bottom:i}=j(e);return`${r} ${t} ${i} ${n}`}var tt=m({render(){var e;return(e=this.$slots).default?.call(e)}}),nt={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function rt(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Q(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function $(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?at(s,e=>e.test(o)):it(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function it(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function at(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ot(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var st={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ct=(e,t,n)=>{let r,i=st[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},lt={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ut=(e,t,n,r)=>lt[e],dt={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Q({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Q({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Q({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},ft={ordinalNumber:ot({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},pt={name:`en-US`,locale:{code:`en-US`,formatDistance:ct,formatLong:{date:rt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:rt({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:rt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ut,localize:dt,match:ft,options:{weekStartsOn:0,firstWeekContainsDate:1}}},mt=`[object Symbol]`;function ht(e){return typeof e==`symbol`||b(e)&&x(e)==mt}function gt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var _t=1/0,vt=v?v.prototype:void 0,yt=vt?vt.toString:void 0;function bt(e){if(typeof e==`string`)return e;if(y(e))return gt(e,bt)+``;if(ht(e))return yt?yt.call(e):``;var t=e+``;return t==`0`&&1/e==-_t?`-0`:t}function xt(e){return e==null?``:bt(e)}function St(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function Ct(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:St(e,t,n)}var wt=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Tt(e){return wt.test(e)}function Et(e){return e.split(``)}var Dt=`\\ud800-\\udfff`,Ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,kt=`\\ufe0e\\ufe0f`,At=`[`+Dt+`]`,jt=`[`+Ot+`]`,Mt=`\\ud83c[\\udffb-\\udfff]`,Nt=`(?:`+jt+`|`+Mt+`)`,Pt=`[^`+Dt+`]`,Ft=`(?:\\ud83c[\\udde6-\\uddff]){2}`,It=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Lt=`\\u200d`,Rt=Nt+`?`,zt=`[`+kt+`]?`,Bt=`(?:`+Lt+`(?:`+[Pt,Ft,It].join(`|`)+`)`+zt+Rt+`)*`,Vt=zt+Rt+Bt,Ht=`(?:`+[Pt+jt+`?`,jt,Ft,It,At].join(`|`)+`)`,Ut=RegExp(Mt+`(?=`+Mt+`)|`+Ht+Vt,`g`);function Wt(e){return e.match(Ut)||[]}function Gt(e){return Tt(e)?Wt(e):Et(e)}function Kt(e){return function(t){t=xt(t);var n=Tt(t)?Gt(t):void 0,r=n?n[0]:t.charAt(0),i=n?Ct(n,1).join(``):t.slice(1);return r[e]()+i}}var qt=Kt(`toUpperCase`);function Jt(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(S,null)||{},a=e(()=>r?.value?.[n]??nt[n]);return{dateLocaleRef:e(()=>i?.value??pt),localeRef:a}}var Yt=A(`base-icon`,`
1
+ import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-B0PaAFys.js";import{B as _,F as v,M as y,N as b,P as x,V as S,W as C,a as w,at as T,c as ee,ct as E,d as te,l as D,lt as O,n as k,o as ne,ot as A,r as re,u as ie,z as ae}from"./browser-oMT2KRlV.js";function oe(e){return e.composedPath()[0]||null}function se(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function ce(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function j(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function M(e){return e.composedPath()[0]}var N={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function le(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(M(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(M(n))},i=r=>{e&&(t.contains(M(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function P(e,t,n){let r=N[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=le(e,t,n)),a}function ue(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=P(e,t,n);return Object.keys(i).forEach(e=>{F(e,document,i[e],r)}),!0}return!1}function de(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=P(e,t,n);return Object.keys(i).forEach(e=>{I(e,document,i[e],r)}),!0}return!1}function fe(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=M(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ue(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(de(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:F,off:I}=fe();function pe(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var me=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function he(){return me}function ge(e){let t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function L(e,t){console.error(`[vueuc/${e}]: ${t}`)}var R=[],_e=function(){return R.some(function(e){return e.activeTargets.length>0})},ve=function(){return R.some(function(e){return e.skippedTargets.length>0})},z=`ResizeObserver loop completed with undelivered notifications.`,ye=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:z}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=z),window.dispatchEvent(e)},B;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(B||={});var V=function(e){return Object.freeze(e)},be=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,V(this)}return e}(),xe=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,V(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),H=function(e){return e instanceof SVGElement&&`getBBox`in e},U=function(e){if(H(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Se=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},Ce=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},W=typeof window<`u`?window:{},G=new WeakMap,we=/auto|scroll/,Te=/^tb|vertical/,Ee=/msie|trident/i.test(W.navigator&&W.navigator.userAgent),K=function(e){return parseFloat(e||`0`)},q=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new be((n?t:e)||0,(n?e:t)||0)},De=V({devicePixelContentBoxSize:q(),borderBoxSize:q(),contentBoxSize:q(),contentRect:new xe(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),G.has(e)&&!t)return G.get(e);if(U(e))return G.set(e,De),De;var n=getComputedStyle(e),r=H(e)&&e.ownerSVGElement&&e.getBBox(),i=!Ee&&n.boxSizing===`border-box`,a=Te.test(n.writingMode||``),o=!r&&we.test(n.overflowY||``),s=!r&&we.test(n.overflowX||``),c=r?0:K(n.paddingTop),l=r?0:K(n.paddingRight),u=r?0:K(n.paddingBottom),d=r?0:K(n.paddingLeft),f=r?0:K(n.borderTopWidth),p=r?0:K(n.borderRightWidth),m=r?0:K(n.borderBottomWidth),h=r?0:K(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:K(n.width)-S-x,T=r?r.height:K(n.height)-C-b,ee=w+g+x+v,E=T+_+b+y,te=V({devicePixelContentBoxSize:q(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:q(ee,E,a),contentBoxSize:q(w,T,a),contentRect:new xe(d,c,w,T)});return G.set(e,te),te},Y=function(e,t,n){var r=J(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case B.DEVICE_PIXEL_CONTENT_BOX:return o;case B.BORDER_BOX:return i;default:return a}},Oe=function(){function e(e){var t=J(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=V([t.borderBoxSize]),this.contentBoxSize=V([t.contentBoxSize]),this.devicePixelContentBoxSize=V([t.devicePixelContentBoxSize])}return e}(),ke=function(e){if(U(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ae=function(){var e=1/0,t=[];R.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=ke(t.target);r.push(n),t.lastReportedSize=Y(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},je=function(e){R.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(ke(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Me=function(){var e=0;for(je(e);_e();)e=Ae(),je(e);return ve()&&ye(),e>0},X,Z=[],Ne=function(){return Z.splice(0).forEach(function(e){return e()})},Pe=function(e){if(!X){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Ne()}).observe(n,{characterData:!0}),X=function(){n.textContent=`${t?t--:t++}`}}Z.push(e),X()},Fe=function(e){Pe(function(){requestAnimationFrame(e)})},Ie=0,Le=function(){return!!Ie},Re=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},Be=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Ve=function(e){return e===void 0&&(e=0),Date.now()+e},He=!1,Ue=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Re),!He){He=!0;var n=Ve(e);Fe(function(){var r=!1;try{r=Me()}finally{if(He=!1,e=n-Ve(),!Le())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ze)};document.body?t():W.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Be.forEach(function(t){return W.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Be.forEach(function(t){return W.removeEventListener(t,e.listener,!0)}),!0)},e}()),We=function(e){!Ie&&e>0&&Ue.start(),Ie+=e,!Ie&&Ue.stop()},Ge=function(e){return!H(e)&&!Ce(e)&&getComputedStyle(e).display===`inline`},Ke=function(){function e(e,t){this.target=e,this.observedBox=t||B.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Y(this.target,this.observedBox,!0);return Ge(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),qe=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Je=new WeakMap,Ye=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xe=function(){function e(){}return e.connect=function(e,t){var n=new qe(e,t);Je.set(e,n)},e.observe=function(e,t,n){var r=Je.get(e),i=r.observationTargets.length===0;Ye(r.observationTargets,t)<0&&(i&&R.push(r),r.observationTargets.push(new Ke(t,n&&n.box)),We(1),Ue.schedule())},e.unobserve=function(e,t){var n=Je.get(e),r=Ye(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&R.splice(R.indexOf(n),1),n.observationTargets.splice(r,1),We(-1))},e.disconnect=function(e){var t=this,n=Je.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ze=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Xe.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Xe.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Se(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Xe.unobserve(this,e)},e.prototype.disconnect=function(){Xe.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Qe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ze)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},$e=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){L(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){L(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Qe.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Qe.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function et(e){let{left:t,right:n,top:r,bottom:i}=j(e);return`${r} ${t} ${i} ${n}`}var tt=m({render(){var e;return(e=this.$slots).default?.call(e)}}),nt={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function rt(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Q(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function $(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?at(s,e=>e.test(o)):it(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function it(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function at(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ot(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var st={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ct=(e,t,n)=>{let r,i=st[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},lt={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ut=(e,t,n,r)=>lt[e],dt={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Q({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Q({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Q({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},ft={ordinalNumber:ot({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},pt={name:`en-US`,locale:{code:`en-US`,formatDistance:ct,formatLong:{date:rt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:rt({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:rt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ut,localize:dt,match:ft,options:{weekStartsOn:0,firstWeekContainsDate:1}}},mt=`[object Symbol]`;function ht(e){return typeof e==`symbol`||b(e)&&x(e)==mt}function gt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var _t=1/0,vt=v?v.prototype:void 0,yt=vt?vt.toString:void 0;function bt(e){if(typeof e==`string`)return e;if(y(e))return gt(e,bt)+``;if(ht(e))return yt?yt.call(e):``;var t=e+``;return t==`0`&&1/e==-_t?`-0`:t}function xt(e){return e==null?``:bt(e)}function St(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function Ct(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:St(e,t,n)}var wt=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Tt(e){return wt.test(e)}function Et(e){return e.split(``)}var Dt=`\\ud800-\\udfff`,Ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,kt=`\\ufe0e\\ufe0f`,At=`[`+Dt+`]`,jt=`[`+Ot+`]`,Mt=`\\ud83c[\\udffb-\\udfff]`,Nt=`(?:`+jt+`|`+Mt+`)`,Pt=`[^`+Dt+`]`,Ft=`(?:\\ud83c[\\udde6-\\uddff]){2}`,It=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Lt=`\\u200d`,Rt=Nt+`?`,zt=`[`+kt+`]?`,Bt=`(?:`+Lt+`(?:`+[Pt,Ft,It].join(`|`)+`)`+zt+Rt+`)*`,Vt=zt+Rt+Bt,Ht=`(?:`+[Pt+jt+`?`,jt,Ft,It,At].join(`|`)+`)`,Ut=RegExp(Mt+`(?=`+Mt+`)|`+Ht+Vt,`g`);function Wt(e){return e.match(Ut)||[]}function Gt(e){return Tt(e)?Wt(e):Et(e)}function Kt(e){return function(t){t=xt(t);var n=Tt(t)?Gt(t):void 0,r=n?n[0]:t.charAt(0),i=n?Ct(n,1).join(``):t.slice(1);return r[e]()+i}}var qt=Kt(`toUpperCase`);function Jt(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(S,null)||{},a=e(()=>r?.value?.[n]??nt[n]);return{dateLocaleRef:e(()=>i?.value??pt),localeRef:a}}var Yt=A(`base-icon`,`
2
2
  height: 1em;
3
3
  width: 1em;
4
4
  line-height: 1em;
@@ -1,4 +1,4 @@
1
- import{C as e,N as t,ct as n,dt as r,j as i}from"./router-Ddepf70Q.js";import{B as a,K as o,R as s,U as c,a as l,at as u,c as d,ct as f,dt as p,lt as m,n as h,o as g,ot as _,q as v,r as y,tt as b,ut as x,z as S}from"./browser-Bf2Q3p4g.js";import{g as C,x as w,y as T}from"./Suffix-C1X_jn5E.js";var E={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`};function D(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},E),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${b(t,{alpha:.2})}`})}var O={name:`Switch`,common:h,self:D},k=_(`switch`,`
1
+ import{C as e,N as t,ct as n,dt as r,j as i}from"./router-B0PaAFys.js";import{B as a,K as o,R as s,U as c,a as l,at as u,c as d,ct as f,dt as p,lt as m,n as h,o as g,ot as _,q as v,r as y,tt as b,ut as x,z as S}from"./browser-oMT2KRlV.js";import{g as C,x as w,y as T}from"./Suffix-La8FFPWu.js";var E={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`};function D(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},E),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${b(t,{alpha:.2})}`})}var O={name:`Switch`,common:h,self:D},k=_(`switch`,`
2
2
  height: var(--n-height);
3
3
  min-width: var(--n-width);
4
4
  vertical-align: middle;
@@ -1,4 +1,4 @@
1
- import{C as e,K as t,N as n,ct as r,dt as i,j as a}from"./router-Ddepf70Q.js";import{B as o,K as s,Q as c,at as l,c as u,ct as d,d as f,dt as p,lt as m,n as h,ot as g,q as _,tt as v,ut as y,z as b}from"./browser-Bf2Q3p4g.js";import{b as x}from"./Suffix-C1X_jn5E.js";import{t as S}from"./Close-2w73mIOt.js";import{a as C}from"./Button-sJ2BpaPl.js";var w={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`};function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderRadiusSmall:g,fontSizeMini:_,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:g,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:g,opacityDisabled:d,fontSizeTiny:_,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:`rgb(250, 250, 252)`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${v(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:v(i,{alpha:.12}),colorBorderedPrimary:v(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:v(i,{alpha:.12}),closeColorPressedPrimary:v(i,{alpha:.18}),borderInfo:`1px solid ${v(a,{alpha:.3})}`,textColorInfo:a,colorInfo:v(a,{alpha:.12}),colorBorderedInfo:v(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:v(a,{alpha:.12}),closeColorPressedInfo:v(a,{alpha:.18}),borderSuccess:`1px solid ${v(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:v(o,{alpha:.12}),colorBorderedSuccess:v(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:v(o,{alpha:.12}),closeColorPressedSuccess:v(o,{alpha:.18}),borderWarning:`1px solid ${v(s,{alpha:.35})}`,textColorWarning:s,colorWarning:v(s,{alpha:.15}),colorBorderedWarning:v(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:v(s,{alpha:.12}),closeColorPressedWarning:v(s,{alpha:.18}),borderError:`1px solid ${v(c,{alpha:.23})}`,textColorError:c,colorError:v(c,{alpha:.1}),colorBorderedError:v(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:v(c,{alpha:.12}),closeColorPressedError:v(c,{alpha:.18})})}var E={name:`Tag`,common:h,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=g(`tag`,`
1
+ import{C as e,K as t,N as n,ct as r,dt as i,j as a}from"./router-B0PaAFys.js";import{B as o,K as s,Q as c,at as l,c as u,ct as d,d as f,dt as p,lt as m,n as h,ot as g,q as _,tt as v,ut as y,z as b}from"./browser-oMT2KRlV.js";import{b as x}from"./Suffix-La8FFPWu.js";import{t as S}from"./Close-Ck11Jegf.js";import{a as C}from"./Button-DBOPt_s1.js";var w={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`};function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderRadiusSmall:g,fontSizeMini:_,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:g,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:g,opacityDisabled:d,fontSizeTiny:_,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:`rgb(250, 250, 252)`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${v(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:v(i,{alpha:.12}),colorBorderedPrimary:v(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:v(i,{alpha:.12}),closeColorPressedPrimary:v(i,{alpha:.18}),borderInfo:`1px solid ${v(a,{alpha:.3})}`,textColorInfo:a,colorInfo:v(a,{alpha:.12}),colorBorderedInfo:v(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:v(a,{alpha:.12}),closeColorPressedInfo:v(a,{alpha:.18}),borderSuccess:`1px solid ${v(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:v(o,{alpha:.12}),colorBorderedSuccess:v(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:v(o,{alpha:.12}),closeColorPressedSuccess:v(o,{alpha:.18}),borderWarning:`1px solid ${v(s,{alpha:.35})}`,textColorWarning:s,colorWarning:v(s,{alpha:.15}),colorBorderedWarning:v(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:v(s,{alpha:.12}),closeColorPressedWarning:v(s,{alpha:.18}),borderError:`1px solid ${v(c,{alpha:.23})}`,textColorError:c,colorError:v(c,{alpha:.1}),colorBorderedError:v(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:v(c,{alpha:.12}),closeColorPressedError:v(c,{alpha:.18})})}var E={name:`Tag`,common:h,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=g(`tag`,`
2
2
  --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
3
3
  white-space: nowrap;
4
4
  position: relative;
@@ -1 +1 @@
1
- import{C as e,N as t,ct as n,j as r}from"./router-Ddepf70Q.js";import{B as i,c as a,n as o,nt as s,s as c}from"./browser-Bf2Q3p4g.js";import{i as l,n as u,t as d}from"./Popover-pOQtxFC1.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:s(r,`rgba(0, 0, 0, .85)`),textColor:r})}var m=c({name:`Tooltip`,common:o,peers:{Popover:l},self:p}),h=r({name:`Tooltip`,props:Object.assign(Object.assign({},u),a.props),slots:Object,__popover__:!0,setup(t){let{mergedClsPrefixRef:r}=i(t),o=a(`Tooltip`,`-tooltip`,void 0,m,t,r),s=n(null);return Object.assign(Object.assign({},{syncPosition(){s.value.syncPosition()},setShow(e){s.value.setShow(e)}}),{popoverRef:s,mergedTheme:o,popoverThemeOverrides:e(()=>o.value.self)})},render(){let{mergedTheme:e,internalExtraClass:n}=this;return t(d,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:n.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});export{h as t};
1
+ import{C as e,N as t,ct as n,j as r}from"./router-B0PaAFys.js";import{B as i,c as a,n as o,nt as s,s as c}from"./browser-oMT2KRlV.js";import{i as l,n as u,t as d}from"./Popover-ZzeCeChJ.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:s(r,`rgba(0, 0, 0, .85)`),textColor:r})}var m=c({name:`Tooltip`,common:o,peers:{Popover:l},self:p}),h=r({name:`Tooltip`,props:Object.assign(Object.assign({},u),a.props),slots:Object,__popover__:!0,setup(t){let{mergedClsPrefixRef:r}=i(t),o=a(`Tooltip`,`-tooltip`,void 0,m,t,r),s=n(null);return Object.assign(Object.assign({},{syncPosition(){s.value.syncPosition()},setShow(e){s.value.setShow(e)}}),{popoverRef:s,mergedTheme:o,popoverThemeOverrides:e(()=>o.value.self)})},render(){let{mergedTheme:e,internalExtraClass:n}=this;return t(d,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:n.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});export{h as t};
@@ -0,0 +1 @@
1
+ .stat-cards[data-v-4d1744aa]{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px;display:grid}.stat-card[data-v-4d1744aa]{background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:16px}.stat-label[data-v-4d1744aa]{color:#999;margin-bottom:6px;font-size:12px}.stat-value[data-v-4d1744aa]{color:#1a1a1a;font-size:22px;font-weight:600;line-height:1.2}.stat-sub[data-v-4d1744aa]{color:#999;margin-top:4px;font-size:11px}@media (width<=768px){.stat-cards[data-v-4d1744aa]{grid-template-columns:repeat(2,1fr)}}@media (width<=480px){.stat-cards[data-v-4d1744aa]{grid-template-columns:1fr}}.model-breakdown[data-v-26d187bc]{background:#fff;border:1px solid #e0e0e0;border-radius:10px;margin-bottom:20px;padding:16px}.section-title[data-v-26d187bc]{color:#666;margin:0 0 12px;font-size:13px;font-weight:600}.model-list[data-v-26d187bc]{flex-direction:column;gap:8px;display:flex}.model-row[data-v-26d187bc]{align-items:center;gap:10px;display:flex}.model-name[data-v-26d187bc]{color:#666;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:140px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px;overflow:hidden}.model-bar-wrap[data-v-26d187bc]{background:#f0f0f0;border-radius:3px;flex:1;height:16px;overflow:hidden}.model-bar[data-v-26d187bc]{background:#1a1a1a;border-radius:3px;min-width:2px;height:100%;transition:width .3s}.model-tokens[data-v-26d187bc]{color:#999;text-align:right;flex-shrink:0;width:60px;font-size:12px}.daily-trend[data-v-42ea27be]{background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:16px}.section-title[data-v-42ea27be]{color:#666;margin:0 0 12px;font-size:13px;font-weight:600}.bar-chart[data-v-42ea27be]{gap:2px;margin-bottom:16px;display:flex}.bar-col[data-v-42ea27be]{flex-direction:column;flex:1;align-items:center;min-width:0;display:flex}.bar-track[data-v-42ea27be]{background:#f0f0f0;border-radius:2px 2px 0 0;align-items:flex-end;width:100%;height:140px;display:flex}.bar-fill[data-v-42ea27be]{background:#1a1a1a;border-radius:2px 2px 0 0;width:100%;min-height:0;transition:height .3s}.bar-col[data-v-42ea27be]{position:relative}.bar-tooltip[data-v-42ea27be]{color:#fff;white-space:nowrap;z-index:10;pointer-events:none;background:#1a1a1a;border-radius:6px;padding:6px 10px;font-size:11px;display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.bar-tooltip[data-v-42ea27be]:after{content:"";border:5px solid #0000;border-top-color:#1a1a1a;position:absolute;top:100%;left:50%;transform:translate(-50%)}.bar-col:hover .bar-tooltip[data-v-42ea27be]{display:block}.tooltip-date[data-v-42ea27be]{margin-bottom:2px;font-weight:600}.tooltip-row[data-v-42ea27be]{opacity:.85;font-size:10px;line-height:1.5}.bar-label[data-v-42ea27be]{display:none}.bar-dates[data-v-42ea27be]{color:#999;justify-content:space-between;margin-top:4px;margin-bottom:16px;font-size:10px;display:flex}.trend-table[data-v-42ea27be]{overflow-x:auto}table[data-v-42ea27be]{border-collapse:collapse;width:100%;font-size:12px}thead[data-v-42ea27be]{position:sticky;top:0}th[data-v-42ea27be]{text-align:left;color:#999;text-transform:uppercase;letter-spacing:.3px;background:#fff;border-bottom:1px solid #e0e0e0;padding:8px 10px;font-size:11px;font-weight:600}td[data-v-42ea27be]{color:#666;border-bottom:1px solid #ebebeb;padding:6px 10px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:11px}tr:last-child td[data-v-42ea27be]{border-bottom:none}.usage-view[data-v-e14e424d]{flex-direction:column;height:100%;display:flex}.usage-content[data-v-e14e424d]{scrollbar-width:none;-ms-overflow-style:none;flex:1;width:100%;max-width:960px;margin:0 auto;padding:20px;overflow-y:auto}.usage-content[data-v-e14e424d]::-webkit-scrollbar{display:none}.usage-loading[data-v-e14e424d],.usage-empty[data-v-e14e424d]{text-align:center;color:#999;padding:60px 0;font-size:14px}
@@ -1 +1 @@
1
- import{A as e,C as t,D as n,E as r,G as i,Q as a,U as o,ct as s,gt as c,ht as l,j as u,k as d,pt as f,q as p,w as m,y as h}from"./router-Ddepf70Q.js";import{n as ee}from"./pinia-bZ6_VpBU.js";import{r as g,t as _}from"./_plugin-vue_export-helper-DQGaK6t5.js";import{t as v}from"./Button-sJ2BpaPl.js";import{r as y}from"./sessions-r2FX4lYx.js";var b=ee(`usage`,()=>{let e=s([]),n=s(!1);async function r(){n.value=!0;try{e.value=await y()}catch(e){console.error(`Failed to load sessions for usage:`,e)}finally{n.value=!1}}let i=t(()=>e.value.reduce((e,t)=>e+(t.input_tokens||0),0)),a=t(()=>e.value.reduce((e,t)=>e+(t.output_tokens||0),0)),o=t(()=>i.value+a.value),c=t(()=>e.value.length),l=t(()=>e.value.reduce((e,t)=>e+(t.cache_read_tokens||0),0));return{sessions:e,isLoading:n,loadSessions:r,totalInputTokens:i,totalOutputTokens:a,totalTokens:o,totalSessions:c,totalCacheTokens:l,cacheHitRate:t(()=>{let e=i.value;return e===0?null:l.value/e*100}),estimatedCost:t(()=>e.value.reduce((e,t)=>e+(t.actual_cost_usd??t.estimated_cost_usd??0),0)),modelUsage:t(()=>{let t=new Map;for(let n of e.value){let e=n.model||`unknown`;t.has(e)||t.set(e,{model:e,inputTokens:0,outputTokens:0,cacheTokens:0,totalTokens:0,sessions:0});let r=t.get(e);r.inputTokens+=n.input_tokens||0,r.outputTokens+=n.output_tokens||0,r.cacheTokens+=n.cache_read_tokens||0,r.totalTokens+=(n.input_tokens||0)+(n.output_tokens||0),r.sessions+=1}return[...t.values()].sort((e,t)=>t.totalTokens-e.totalTokens)}),dailyUsage:t(()=>{let t=new Map,n=new Date;for(let e=29;e>=0;e--){let r=new Date(n);r.setDate(r.getDate()-e);let i=r.toISOString().slice(0,10);t.set(i,{date:i,tokens:0,cache:0,sessions:0,cost:0})}for(let n of e.value){let e=new Date(n.started_at*1e3).toISOString().slice(0,10),r=t.get(e);if(r){r.tokens+=(n.input_tokens||0)+(n.output_tokens||0),r.cache+=n.cache_read_tokens||0,r.sessions+=1;let e=n.actual_cost_usd??n.estimated_cost_usd??0;r.cost+=e}}return[...t.values()]}),avgSessionsPerDay:t(()=>{let t=e.value.length>0?new Date(e.value[e.value.length-1].started_at*1e3):new Date,n=Math.max(1,Math.ceil((Date.now()-t.getTime())/(1e3*60*60*24)));return c.value/n})}}),x={class:`stat-cards`},S={class:`stat-card`},C={class:`stat-label`},w={class:`stat-value`},T={class:`stat-sub`},E={class:`stat-card`},D={class:`stat-label`},O={class:`stat-value`},k={class:`stat-sub`},A={class:`stat-card`},j={class:`stat-label`},M={class:`stat-value`},N={class:`stat-card`},P={class:`stat-label`},F={class:`stat-value`},I={key:0,class:`stat-sub`},L=_(u({__name:`StatCards`,setup(e){let{t}=g(),a=b();function o(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}function s(e){return e===0?`$0.00`:e<.01?`<$0.01`:`$`+e.toFixed(2)}return(e,l)=>(i(),n(`div`,x,[m(`div`,S,[m(`div`,C,c(f(t)(`usage.totalTokens`)),1),m(`div`,w,c(o(f(a).totalTokens)),1),m(`div`,T,c(o(f(a).totalInputTokens))+` `+c(f(t)(`usage.inputTokens`))+` / `+c(o(f(a).totalOutputTokens))+` `+c(f(t)(`usage.outputTokens`)),1)]),m(`div`,E,[m(`div`,D,c(f(t)(`usage.totalSessions`)),1),m(`div`,O,c(f(a).totalSessions),1),m(`div`,k,c(f(t)(`usage.avgPerDay`,{n:f(a).avgSessionsPerDay.toFixed(1)})),1)]),m(`div`,A,[m(`div`,j,c(f(t)(`usage.estimatedCost`)),1),m(`div`,M,c(s(f(a).estimatedCost)),1)]),m(`div`,N,[m(`div`,P,c(f(t)(`usage.cacheHitRate`)),1),m(`div`,F,c(f(a).cacheHitRate===null?`--`:f(a).cacheHitRate.toFixed(1)+`%`),1),f(a).cacheHitRate===null?r(``,!0):(i(),n(`div`,I,c(o(f(a).totalCacheTokens))+` tokens `,1))])]))}}),[[`__scopeId`,`data-v-5a2f1363`]]),te={class:`model-breakdown`},R={class:`section-title`},z={class:`model-list`},B={class:`model-name`},V={class:`model-bar-wrap`},H={class:`model-tokens`},U=_(u({__name:`ModelBreakdown`,setup(e){let{t}=g(),r=b();function a(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}return(e,o)=>(i(),n(`div`,te,[m(`h3`,R,c(f(t)(`usage.modelBreakdown`)),1),m(`div`,z,[(i(!0),n(h,null,p(f(r).modelUsage,e=>(i(),n(`div`,{key:e.model,class:`model-row`},[m(`span`,B,c(e.model),1),m(`div`,V,[m(`div`,{class:`model-bar`,style:l({width:e.totalTokens/f(r).modelUsage[0].totalTokens*100+`%`})},null,4)]),m(`span`,H,c(a(e.totalTokens)),1)]))),128))])]))}}),[[`__scopeId`,`data-v-26d187bc`]]),W={class:`daily-trend`},G={class:`section-title`},K={class:`bar-chart`},q={class:`bar-track`},J={class:`bar-tooltip`},Y={class:`tooltip-date`},X={class:`tooltip-row`},Z={class:`tooltip-row`},Q={class:`tooltip-row`},ne={class:`tooltip-row`},re={class:`bar-dates`},ie={class:`trend-table`},ae=_(u({__name:`DailyTrend`,setup(e){let{t:r}=g(),a=b();function o(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}function s(e){return e===0?`$0.00`:e<.01?`<$0.01`:`$`+e.toFixed(2)}let u=t(()=>Math.max(...a.dailyUsage.map(e=>e.tokens),1));return(e,t)=>(i(),n(`div`,W,[m(`h3`,G,c(f(r)(`usage.dailyTrend`)),1),m(`div`,K,[(i(!0),n(h,null,p(f(a).dailyUsage,e=>(i(),n(`div`,{key:e.date,class:`bar-col`},[m(`div`,q,[m(`div`,{class:`bar-fill`,style:l({height:e.tokens/u.value*100+`%`})},null,4)]),m(`div`,J,[m(`div`,Y,c(e.date),1),m(`div`,X,c(f(r)(`usage.tokens`))+`: `+c(o(e.tokens)),1),m(`div`,Z,c(f(r)(`usage.cache`))+`: `+c(o(e.cache)),1),m(`div`,Q,c(f(r)(`usage.sessions`))+`: `+c(e.sessions),1),m(`div`,ne,c(f(r)(`usage.cost`))+`: `+c(s(e.cost)),1)])]))),128))]),m(`div`,re,[m(`span`,null,c(f(a).dailyUsage[0]?.date.slice(5)),1),m(`span`,null,c(f(a).dailyUsage[f(a).dailyUsage.length-1]?.date.slice(5)),1)]),m(`div`,ie,[m(`table`,null,[m(`thead`,null,[m(`tr`,null,[m(`th`,null,c(f(r)(`usage.date`)),1),m(`th`,null,c(f(r)(`usage.tokens`)),1),m(`th`,null,c(f(r)(`usage.cache`)),1),m(`th`,null,c(f(r)(`usage.sessions`)),1),m(`th`,null,c(f(r)(`usage.cost`)),1)])]),m(`tbody`,null,[(i(!0),n(h,null,p([...f(a).dailyUsage].reverse().slice(0,30),e=>(i(),n(`tr`,{key:e.date},[m(`td`,null,c(e.date),1),m(`td`,null,c(o(e.tokens)),1),m(`td`,null,c(o(e.cache)),1),m(`td`,null,c(e.sessions),1),m(`td`,null,c(s(e.cost)),1)]))),128))])])])]))}}),[[`__scopeId`,`data-v-42ea27be`]]),oe={class:`usage-view`},$={class:`page-header`},se={class:`header-title`},ce={class:`usage-content`},le={key:0,class:`usage-loading`},ue={key:2,class:`usage-empty`},de=_(u({__name:`UsageView`,setup(t){let{t:r}=g(),s=b();return o(()=>{s.loadSessions()}),(t,o)=>(i(),n(`div`,oe,[m(`header`,$,[m(`h2`,se,c(f(r)(`usage.title`)),1),e(f(v),{size:`small`,quaternary:``,loading:f(s).isLoading,onClick:o[0]||=e=>f(s).loadSessions()},{default:a(()=>[d(c(f(r)(`usage.refresh`)),1)]),_:1},8,[`loading`])]),m(`div`,ce,[f(s).isLoading&&f(s).sessions.length===0?(i(),n(`div`,le,c(f(r)(`common.loading`)),1)):f(s).sessions.length>0?(i(),n(h,{key:1},[e(L),e(U),e(ae)],64)):(i(),n(`div`,ue,c(f(r)(`usage.noData`)),1))])]))}}),[[`__scopeId`,`data-v-e14e424d`]]);export{de as default};
1
+ import{A as e,C as t,D as n,E as r,G as i,Q as a,U as o,ct as s,gt as c,ht as l,j as u,k as d,pt as f,q as p,w as m,y as h}from"./router-B0PaAFys.js";import{n as ee}from"./pinia-D41F8A9y.js";import{r as g,t as _}from"./_plugin-vue_export-helper-DkLSTLBi.js";import{t as v}from"./Button-DBOPt_s1.js";import{r as y}from"./sessions-Dsqr5aLA.js";var b=ee(`usage`,()=>{let e=s([]),n=s(!1);async function r(){n.value=!0;try{e.value=await y()}catch(e){console.error(`Failed to load sessions for usage:`,e)}finally{n.value=!1}}let i=t(()=>e.value.reduce((e,t)=>e+(t.input_tokens||0),0)),a=t(()=>e.value.reduce((e,t)=>e+(t.output_tokens||0),0)),o=t(()=>i.value+a.value),c=t(()=>e.value.length),l=t(()=>e.value.reduce((e,t)=>e+(t.cache_read_tokens||0),0));return{sessions:e,isLoading:n,loadSessions:r,totalInputTokens:i,totalOutputTokens:a,totalTokens:o,totalSessions:c,totalCacheTokens:l,cacheHitRate:t(()=>{let e=i.value;return e===0?null:l.value/e*100}),estimatedCost:t(()=>e.value.reduce((e,t)=>e+(t.actual_cost_usd??t.estimated_cost_usd??0),0)),modelUsage:t(()=>{let t=new Map;for(let n of e.value){let e=n.model||`unknown`;t.has(e)||t.set(e,{model:e,inputTokens:0,outputTokens:0,cacheTokens:0,totalTokens:0,sessions:0});let r=t.get(e);r.inputTokens+=n.input_tokens||0,r.outputTokens+=n.output_tokens||0,r.cacheTokens+=n.cache_read_tokens||0,r.totalTokens+=(n.input_tokens||0)+(n.output_tokens||0),r.sessions+=1}return[...t.values()].sort((e,t)=>t.totalTokens-e.totalTokens)}),dailyUsage:t(()=>{let t=new Map,n=new Date;for(let e=29;e>=0;e--){let r=new Date(n);r.setDate(r.getDate()-e);let i=r.toISOString().slice(0,10);t.set(i,{date:i,tokens:0,cache:0,sessions:0,cost:0})}for(let n of e.value){let e=new Date(n.started_at*1e3).toISOString().slice(0,10),r=t.get(e);if(r){r.tokens+=(n.input_tokens||0)+(n.output_tokens||0),r.cache+=n.cache_read_tokens||0,r.sessions+=1;let e=n.actual_cost_usd??n.estimated_cost_usd??0;r.cost+=e}}return[...t.values()]}),avgSessionsPerDay:t(()=>{let t=e.value.length>0?new Date(e.value[e.value.length-1].started_at*1e3):new Date,n=Math.max(1,Math.ceil((Date.now()-t.getTime())/(1e3*60*60*24)));return c.value/n})}}),x={class:`stat-cards`},S={class:`stat-card`},C={class:`stat-label`},w={class:`stat-value`},T={class:`stat-sub`},E={class:`stat-card`},D={class:`stat-label`},O={class:`stat-value`},k={class:`stat-sub`},A={class:`stat-card`},j={class:`stat-label`},M={class:`stat-value`},N={class:`stat-card`},P={class:`stat-label`},F={class:`stat-value`},I={key:0,class:`stat-sub`},L=_(u({__name:`StatCards`,setup(e){let{t}=g(),a=b();function o(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}function s(e){return e===0?`$0.00`:e<.01?`<$0.01`:`$`+e.toFixed(2)}return(e,l)=>(i(),n(`div`,x,[m(`div`,S,[m(`div`,C,c(f(t)(`usage.totalTokens`)),1),m(`div`,w,c(o(f(a).totalTokens)),1),m(`div`,T,c(o(f(a).totalInputTokens))+` `+c(f(t)(`usage.inputTokens`))+` / `+c(o(f(a).totalOutputTokens))+` `+c(f(t)(`usage.outputTokens`)),1)]),m(`div`,E,[m(`div`,D,c(f(t)(`usage.totalSessions`)),1),m(`div`,O,c(f(a).totalSessions),1),m(`div`,k,c(f(t)(`usage.avgPerDay`,{n:f(a).avgSessionsPerDay.toFixed(1)})),1)]),m(`div`,A,[m(`div`,j,c(f(t)(`usage.estimatedCost`)),1),m(`div`,M,c(s(f(a).estimatedCost)),1)]),m(`div`,N,[m(`div`,P,c(f(t)(`usage.cacheHitRate`)),1),m(`div`,F,c(f(a).cacheHitRate===null?`--`:f(a).cacheHitRate.toFixed(1)+`%`),1),f(a).cacheHitRate===null?r(``,!0):(i(),n(`div`,I,c(o(f(a).totalCacheTokens))+` tokens `,1))])]))}}),[[`__scopeId`,`data-v-4d1744aa`]]),te={class:`model-breakdown`},R={class:`section-title`},z={class:`model-list`},B={class:`model-name`},V={class:`model-bar-wrap`},H={class:`model-tokens`},U=_(u({__name:`ModelBreakdown`,setup(e){let{t}=g(),r=b();function a(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}return(e,o)=>(i(),n(`div`,te,[m(`h3`,R,c(f(t)(`usage.modelBreakdown`)),1),m(`div`,z,[(i(!0),n(h,null,p(f(r).modelUsage,e=>(i(),n(`div`,{key:e.model,class:`model-row`},[m(`span`,B,c(e.model),1),m(`div`,V,[m(`div`,{class:`model-bar`,style:l({width:e.totalTokens/f(r).modelUsage[0].totalTokens*100+`%`})},null,4)]),m(`span`,H,c(a(e.totalTokens)),1)]))),128))])]))}}),[[`__scopeId`,`data-v-26d187bc`]]),W={class:`daily-trend`},G={class:`section-title`},K={class:`bar-chart`},q={class:`bar-track`},J={class:`bar-tooltip`},Y={class:`tooltip-date`},X={class:`tooltip-row`},Z={class:`tooltip-row`},Q={class:`tooltip-row`},ne={class:`tooltip-row`},re={class:`bar-dates`},ie={class:`trend-table`},ae=_(u({__name:`DailyTrend`,setup(e){let{t:r}=g(),a=b();function o(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}function s(e){return e===0?`$0.00`:e<.01?`<$0.01`:`$`+e.toFixed(2)}let u=t(()=>Math.max(...a.dailyUsage.map(e=>e.tokens),1));return(e,t)=>(i(),n(`div`,W,[m(`h3`,G,c(f(r)(`usage.dailyTrend`)),1),m(`div`,K,[(i(!0),n(h,null,p(f(a).dailyUsage,e=>(i(),n(`div`,{key:e.date,class:`bar-col`},[m(`div`,q,[m(`div`,{class:`bar-fill`,style:l({height:e.tokens/u.value*100+`%`})},null,4)]),m(`div`,J,[m(`div`,Y,c(e.date),1),m(`div`,X,c(f(r)(`usage.tokens`))+`: `+c(o(e.tokens)),1),m(`div`,Z,c(f(r)(`usage.cache`))+`: `+c(o(e.cache)),1),m(`div`,Q,c(f(r)(`usage.sessions`))+`: `+c(e.sessions),1),m(`div`,ne,c(f(r)(`usage.cost`))+`: `+c(s(e.cost)),1)])]))),128))]),m(`div`,re,[m(`span`,null,c(f(a).dailyUsage[0]?.date.slice(5)),1),m(`span`,null,c(f(a).dailyUsage[f(a).dailyUsage.length-1]?.date.slice(5)),1)]),m(`div`,ie,[m(`table`,null,[m(`thead`,null,[m(`tr`,null,[m(`th`,null,c(f(r)(`usage.date`)),1),m(`th`,null,c(f(r)(`usage.tokens`)),1),m(`th`,null,c(f(r)(`usage.cache`)),1),m(`th`,null,c(f(r)(`usage.sessions`)),1),m(`th`,null,c(f(r)(`usage.cost`)),1)])]),m(`tbody`,null,[(i(!0),n(h,null,p([...f(a).dailyUsage].reverse().slice(0,30),e=>(i(),n(`tr`,{key:e.date},[m(`td`,null,c(e.date),1),m(`td`,null,c(o(e.tokens)),1),m(`td`,null,c(o(e.cache)),1),m(`td`,null,c(e.sessions),1),m(`td`,null,c(s(e.cost)),1)]))),128))])])])]))}}),[[`__scopeId`,`data-v-42ea27be`]]),oe={class:`usage-view`},$={class:`page-header`},se={class:`header-title`},ce={class:`usage-content`},le={key:0,class:`usage-loading`},ue={key:2,class:`usage-empty`},de=_(u({__name:`UsageView`,setup(t){let{t:r}=g(),s=b();return o(()=>{s.loadSessions()}),(t,o)=>(i(),n(`div`,oe,[m(`header`,$,[m(`h2`,se,c(f(r)(`usage.title`)),1),e(f(v),{size:`small`,quaternary:``,loading:f(s).isLoading,onClick:o[0]||=e=>f(s).loadSessions()},{default:a(()=>[d(c(f(r)(`usage.refresh`)),1)]),_:1},8,[`loading`])]),m(`div`,ce,[f(s).isLoading&&f(s).sessions.length===0?(i(),n(`div`,le,c(f(r)(`common.loading`)),1)):f(s).sessions.length>0?(i(),n(h,{key:1},[e(L),e(U),e(ae)],64)):(i(),n(`div`,ue,c(f(r)(`usage.noData`)),1))])]))}}),[[`__scopeId`,`data-v-e14e424d`]]);export{de as default};
@@ -1,3 +1,3 @@
1
- import{A as e,C as t,F as n,M as r,N as i,U as a,W as o,X as s,ct as c,et as l,j as u,lt as d,rt as f,u as p,x as m,y as h}from"./router-Ddepf70Q.js";function g(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var _=typeof window<`u`,v=(e,t=!1)=>t?Symbol.for(e):Symbol(e),y=(e,t,n)=>b({l:e,k:t,s:n}),b=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),x=e=>typeof e==`number`&&isFinite(e),S=e=>re(e)===`[object Date]`,C=e=>re(e)===`[object RegExp]`,w=e=>z(e)&&Object.keys(e).length===0,T=Object.assign,E=Object.create,D=(e=null)=>E(e),O,k=()=>O||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:D();function A(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/\//g,`&#x2F;`).replace(/=/g,`&#x3D;`)}function j(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function M(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${j(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${j(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1&#111;n$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript&#58;`)}),e}var ee=Object.prototype.hasOwnProperty;function N(e,t){return ee.call(e,t)}var P=Array.isArray,F=e=>typeof e==`function`,I=e=>typeof e==`string`,L=e=>typeof e==`boolean`,R=e=>typeof e==`object`&&!!e,te=e=>R(e)&&F(e.then)&&F(e.catch),ne=Object.prototype.toString,re=e=>ne.call(e),z=e=>re(e)===`[object Object]`,ie=e=>e==null?``:P(e)||z(e)&&e.toString===ne?JSON.stringify(e,null,2):String(e);function ae(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var oe=e=>!R(e)||P(e);function se(e,t){if(oe(e)||oe(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(R(e[r])&&!R(t[r])&&(t[r]=Array.isArray(e[r])?[]:D()),oe(t[r])||oe(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function ce(e,t,n){return{line:e,column:t,offset:n}}function le(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};B.EXPECTED_TOKEN,B.INVALID_TOKEN_IN_PLACEHOLDER,B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,B.UNKNOWN_ESCAPE_SEQUENCE,B.INVALID_UNICODE_ESCAPE_SEQUENCE,B.UNBALANCED_CLOSING_BRACE,B.UNTERMINATED_CLOSING_BRACE,B.EMPTY_PLACEHOLDER,B.NOT_ALLOW_NEST_PLACEHOLDER,B.INVALID_LINKED_FORMAT,B.MUST_HAVE_MESSAGES_IN_PLURAL,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.UNEXPECTED_EMPTY_LINKED_KEY,B.UNEXPECTED_LEXICAL_ANALYSIS,B.UNHANDLED_CODEGEN_NODE_TYPE,B.UNHANDLED_MINIFIER_NODE_TYPE;function ue(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function de(e){throw e}var V=` `,fe=`\r`,H=`
1
+ import{A as e,C as t,F as n,M as r,N as i,U as a,W as o,X as s,ct as c,et as l,j as u,lt as d,rt as f,u as p,x as m,y as h}from"./router-B0PaAFys.js";function g(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var _=typeof window<`u`,v=(e,t=!1)=>t?Symbol.for(e):Symbol(e),y=(e,t,n)=>b({l:e,k:t,s:n}),b=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),x=e=>typeof e==`number`&&isFinite(e),S=e=>re(e)===`[object Date]`,C=e=>re(e)===`[object RegExp]`,w=e=>z(e)&&Object.keys(e).length===0,T=Object.assign,E=Object.create,D=(e=null)=>E(e),O,k=()=>O||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:D();function A(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/\//g,`&#x2F;`).replace(/=/g,`&#x3D;`)}function j(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function M(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${j(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${j(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1&#111;n$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript&#58;`)}),e}var ee=Object.prototype.hasOwnProperty;function N(e,t){return ee.call(e,t)}var P=Array.isArray,F=e=>typeof e==`function`,I=e=>typeof e==`string`,L=e=>typeof e==`boolean`,R=e=>typeof e==`object`&&!!e,te=e=>R(e)&&F(e.then)&&F(e.catch),ne=Object.prototype.toString,re=e=>ne.call(e),z=e=>re(e)===`[object Object]`,ie=e=>e==null?``:P(e)||z(e)&&e.toString===ne?JSON.stringify(e,null,2):String(e);function ae(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var oe=e=>!R(e)||P(e);function se(e,t){if(oe(e)||oe(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(R(e[r])&&!R(t[r])&&(t[r]=Array.isArray(e[r])?[]:D()),oe(t[r])||oe(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function ce(e,t,n){return{line:e,column:t,offset:n}}function le(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};B.EXPECTED_TOKEN,B.INVALID_TOKEN_IN_PLACEHOLDER,B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,B.UNKNOWN_ESCAPE_SEQUENCE,B.INVALID_UNICODE_ESCAPE_SEQUENCE,B.UNBALANCED_CLOSING_BRACE,B.UNTERMINATED_CLOSING_BRACE,B.EMPTY_PLACEHOLDER,B.NOT_ALLOW_NEST_PLACEHOLDER,B.INVALID_LINKED_FORMAT,B.MUST_HAVE_MESSAGES_IN_PLURAL,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.UNEXPECTED_EMPTY_LINKED_KEY,B.UNEXPECTED_LEXICAL_ANALYSIS,B.UNHANDLED_CODEGEN_NODE_TYPE,B.UNHANDLED_MINIFIER_NODE_TYPE;function ue(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function de(e){throw e}var V=` `,fe=`\r`,H=`
2
2
  `,pe=`\u2028`,me=`\u2029`;function he(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===fe&&t[e+1]===H,s=e=>t[e]===H,c=e=>t[e]===me,l=e=>t[e]===pe,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?H:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var U=void 0,ge=`'`,_e=`tokenizer`;function ve(e,t={}){let n=t.location!==!1,r=he(e),i=()=>r.index(),a=()=>ce(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(ue(e,n?le(a.startLoc,t):null,{domain:_e,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=le(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(B.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===V||e.currentPeek()===H;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===U)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===U)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===ge;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===V||!t?!1:t===H?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===V||r===H):i===V?(e.peek(),n(!0,V)):i===H?(e.peek(),n(!0,H)):!0},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();return n===U?U:t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function A(e){return O(e,k)}function j(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function M(e){return O(e,j)}function ee(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function N(e){return O(e,ee)}function P(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function F(e){return O(e,P)}function I(e){let t=``,n=``;for(;t=N(e);)n+=t;return n}function L(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===V||n===H)if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function R(e){g(e);let t=``,n=``;for(;t=M(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==U&&r!==V&&r!==H&&r!==` `){let t=oe(e);return d(B.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===U&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),n}function te(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${I(e)}`):t+=I(e),e.currentChar()===U&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ne(e){return e!==ge&&e!==H}function re(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,ne);)t===`\\`?n+=z(e):n+=t;let r=e.currentChar();return r===H||r===U?(d(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===H&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function z(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return ie(e,t,4);case`U`:return ie(e,t,6);default:return d(B.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function ie(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=F(e);if(!n){d(B.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function ae(e){return e!==`{`&&e!==`}`&&e!==V&&e!==H}function oe(e){g(e);let t=``,n=``;for(;t=O(e,ae);)n+=t;return n}function se(e){let t=``,n=``;for(;t=A(e);)n+=t;return n}function de(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===V?n:(n+=r,e.next(),t(n))};return t(``)}function fe(e){g(e);let t=m(e,`|`);return g(e),t}function pe(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(B.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(B.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),n=me(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,fe(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(B.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,ve(e,t);if(r=y(e,t))return n=f(t,4,R(e)),g(e),n;if(i=b(e,t))return n=f(t,5,te(e)),g(e),n;if(o=x(e,t))return n=f(t,6,re(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,oe(e)),d(B.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function me(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===H||i===V)&&d(B.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,fe(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),me(e,t)):C(e,t)?(g(e),f(t,11,se(e))):T(e,t)?(g(e),i===`{`?pe(e,t)||r:f(t,10,de(e))):(n===7&&d(B.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,ve(e,t))}}function ve(e,t){let n={type:13};if(t.braceNest>0)return pe(e,t)||p(t);if(t.inLinked)return me(e,t)||p(t);switch(e.currentChar()){case`{`:return pe(e,t)||p(t);case`}`:return d(B.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return me(e,t)||p(t);default:if(E(e))return n=f(t,1,fe(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,L(e));break}return n}function ye(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===U?f(c,13):ve(r,c)}return{nextToken:ye,currentOffset:i,currentPosition:a,context:l}}var ye=`parser`,be=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,xe=/\\([\\@{}|])/g;function Se(e,t){return t}function Ce(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function we(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(ue(r,t?le(i,s):null,{domain:ye,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(xe,Se),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(be,Ce),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,W(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(o)),n.key=l(e,o.value||``);break;default:{r(e,B.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,W(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,B.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=ve(n,T({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,B.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function W(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Te(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Ee(e,t){for(let n=0;n<e.length;n++)De(e[n],t)}function De(e,t){switch(e.type){case 1:Ee(e.cases,t),t.helper(`plural`);break;case 2:Ee(e.items,t);break;case 6:De(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`);break}}function G(e,t={}){let n=Te(e);n.helper(`normalize`),e.body&&De(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function Oe(e){let t=e.body;return t.type===2?ke(t):t.cases.forEach(e=>ke(e)),e}function ke(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=ae(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function Ae(e){switch(e.t=e.type,e.type){case 0:{let t=e;Ae(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)Ae(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)Ae(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;Ae(t.key),t.k=t.key,delete t.key,t.modifier&&(Ae(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:}delete e.type}function je(e,t){let{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,o=t.location!==!1,s={filename:r,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);let c=()=>s;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:p,helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function Me(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),Ie(e,t.key),t.modifier?(e.push(`, `),Ie(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function Ne(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(Ie(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function Pe(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(Ie(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function Fe(e,t){t.body?Ie(e,t.body):e.push(`null`)}function Ie(e,t){let{helper:n}=e;switch(t.type){case 0:Fe(e,t);break;case 1:Pe(e,t);break;case 2:Ne(e,t);break;case 6:Me(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:}}var Le=(e,t={})=>{let n=I(t.mode)?t.mode:`normal`,r=I(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:`
3
3
  `:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=je(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${ae(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),Ie(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Re(e,t={}){let n=T({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=we(n).parse(e);return r?(a&&Oe(o),i&&Ae(o),{ast:o,code:``}):(G(o,n),Le(o,n))}function ze(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(k().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(k().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function K(e){return R(e)&&Ye(e)===0&&(N(e,`b`)||N(e,`body`))}var Be=[`b`,`body`];function Ve(e){return q(e,Be)}var He=[`c`,`cases`];function Ue(e){return q(e,He,[])}var We=[`s`,`static`];function Ge(e){return q(e,We)}var Ke=[`i`,`items`];function qe(e){return q(e,Ke,[])}var Je=[`t`,`type`];function Ye(e){return q(e,Je)}var Xe=[`v`,`value`];function Ze(e,t){let n=q(e,Xe);if(n!=null)return n;throw rt(t)}var Qe=[`m`,`modifier`];function $e(e){return q(e,Qe)}var et=[`k`,`key`];function tt(e){let t=q(e,et);if(t)return t;throw rt(6)}function q(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(N(e,r)&&e[r]!=null)return e[r]}return n}var nt=[...Be,...He,...We,...Ke,...et,...Qe,...Xe,...Je];function rt(e){return Error(`unhandled node type: ${e}`)}function it(e){return t=>at(t,e)}function at(e,t){let n=Ve(t);if(n==null)throw rt(0);if(Ye(n)===1){let t=Ue(n);return e.plural(t.reduce((t,n)=>[...t,ot(e,n)],[]))}else return ot(e,n)}function ot(e,t){let n=Ge(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=qe(t).reduce((t,n)=>[...t,st(e,n)],[]);return e.normalize(n)}}function st(e,t){let n=Ye(t);switch(n){case 3:return Ze(t,n);case 9:return Ze(t,n);case 4:{let r=t;if(N(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(N(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw rt(n)}case 5:{let r=t;if(N(r,`i`)&&x(r.i))return e.interpolate(e.list(r.i));if(N(r,`index`)&&x(r.index))return e.interpolate(e.list(r.index));throw rt(n)}case 6:{let n=t,r=$e(n),i=tt(n);return e.linked(st(e,i),r?st(e,r):void 0,e.type)}case 7:return Ze(t,n);case 8:return Ze(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var ct=e=>e,lt=D();function ut(e,t={}){let n=!1,r=t.onError||de;return t.onError=e=>{n=!0,r(e)},{...Re(e,t),detectError:n}}function dt(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&I(e)){L(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||ct)(e),r=lt[n];if(r)return r;let{ast:i,detectError:a}=ut(e,{...t,location:!1,jit:!0}),o=it(i);return a?o:lt[n]=o}else{let t=e.cacheKey;return t?lt[t]||(lt[t]=it(e)):it(e)}}var ft=null;function pt(e){ft=e}function mt(e,t,n){ft&&ft.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var ht=gt(`function:translate`);function gt(e){return t=>ft&&ft.emit(e,t)}var J={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Y(e){return ue(e,null,void 0)}J.INVALID_ARGUMENT,J.INVALID_DATE_ARGUMENT,J.INVALID_ISO_DATE_ARGUMENT,J.NOT_SUPPORT_NON_STRING_MESSAGE,J.NOT_SUPPORT_LOCALE_PROMISE_VALUE,J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,J.NOT_SUPPORT_LOCALE_TYPE;function _t(e,t){return t.locale==null?yt(e.locale):yt(t.locale)}var vt;function yt(e){if(I(e))return e;if(F(e)){if(e.resolvedOnce&&vt!=null)return vt;if(e.constructor.name===`Function`){let t=e();if(te(t))throw Y(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return vt=t}else throw Y(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Y(J.NOT_SUPPORT_LOCALE_TYPE)}function bt(e,t,n){return[...new Set([n,...P(t)?t:R(t)?Object.keys(t):I(t)?[t]:[n]])]}function xt(e,t,n){let r=I(n)?n:It,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;P(e);)e=St(a,e,t);let o=P(t)||!z(t)?t:t.default?t.default:null;e=I(o)?[o]:o,P(e)&&St(a,e,!1),i.__localeChainCache.set(r,a)}return a}function St(e,t,n){let r=!0;for(let i=0;i<t.length&&L(r);i++){let a=t[i];I(a)&&(r=Ct(e,t[i],n))}return r}function Ct(e,t,n){let r,i=t.split(`-`);do r=wt(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function wt(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(P(n)||z(n))&&n[i]&&(r=n[i])}return r}var Tt=[];Tt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Tt[1]={w:[1],".":[2],"[":[4],o:[7]},Tt[2]={w:[2],i:[3,0],0:[3,0]},Tt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Tt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Tt[5]={"'":[4,0],o:8,l:[5,0]},Tt[6]={'"':[4,0],o:8,l:[6,0]};var Et=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Dt(e){return Et.test(e)}function Ot(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function kt(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function At(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:Dt(t)?Ot(t):`*`+t}function jt(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=At(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=kt(a),d=Tt[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Mt=new Map;function Nt(e,t){return R(e)?e[t]:null}function Pt(e,t){if(!R(e))return null;let n=Mt.get(t);if(n||(n=jt(t),n&&Mt.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(nt.includes(e)&&K(i)||!R(i)||!N(i,e))return null;let t=i[e];if(t===void 0||F(i))return null;i=t,a++}return i}var X={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};X.NOT_FOUND_KEY,X.FALLBACK_TO_TRANSLATE,X.CANNOT_FORMAT_NUMBER,X.FALLBACK_TO_NUMBER_FORMAT,X.CANNOT_FORMAT_DATE,X.FALLBACK_TO_DATE_FORMAT,X.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,X.INVALID_NUMBER_ARGUMENT,X.INVALID_DATE_ARGUMENT;var Ft=`11.3.2`,It=`en-US`,Lt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Rt(){return{upper:(e,t)=>t===`text`&&I(e)?e.toUpperCase():t===`vnode`&&R(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&I(e)?e.toLowerCase():t===`vnode`&&R(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&I(e)?Lt(e):t===`vnode`&&R(e)&&`__v_isVNode`in e?Lt(e.children):e}}var zt;function Bt(e){zt=e}var Vt;function Ht(e){Vt=e}var Ut;function Wt(e){Ut=e}var Gt=null,Kt=()=>Gt,qt=null,Jt=e=>{qt=e},Yt=()=>qt,Xt=0;function Zt(e={}){let t=F(e.onWarn)?e.onWarn:g,n=I(e.version)?e.version:Ft,r=I(e.locale)||F(e.locale)?e.locale:It,i=F(r)?It:r,a=P(e.fallbackLocale)||z(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=z(e.messages)?e.messages:Qt(i),s=z(e.datetimeFormats)?e.datetimeFormats:Qt(i),c=z(e.numberFormats)?e.numberFormats:Qt(i),l=T(D(),e.modifiers,Rt()),u=e.pluralRules||D(),d=F(e.missing)?e.missing:null,f=L(e.missingWarn)||C(e.missingWarn)?e.missingWarn:!0,p=L(e.fallbackWarn)||C(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,_=F(e.postTranslation)?e.postTranslation:null,v=z(e.processor)?e.processor:null,y=L(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,x=F(e.messageCompiler)?e.messageCompiler:zt,S=F(e.messageResolver)?e.messageResolver:Vt||Nt,w=F(e.localeFallbacker)?e.localeFallbacker:Ut||bt,E=R(e.fallbackContext)?e.fallbackContext:void 0,O=e,k=R(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,A=R(O.__numberFormatters)?O.__numberFormatters:new Map,j=R(O.__meta)?O.__meta:{};Xt++;let M={version:n,cid:Xt,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:_,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:x,messageResolver:S,localeFallbacker:w,fallbackContext:E,onWarn:t,__meta:j};return M.datetimeFormats=s,M.numberFormats=c,M.__datetimeFormatters=k,M.__numberFormatters=A,__INTLIFY_PROD_DEVTOOLS__&&mt(M,n,j),M}var Qt=e=>({[e]:D()});function $t(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return I(r)?r:t}else return t}function en(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function tn(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function nn(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(tn(e,t[r]))return!0;return!1}var rn=typeof Intl<`u`;rn&&Intl.DateTimeFormat,rn&&Intl.NumberFormat;function an(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(!I(t[0])&&!S(t[0])&&!x(t[0]))return``;let[c,l,u,d]=sn(...t),f=L(u.missingWarn)?u.missingWarn:e.missingWarn;L(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=_t(e,u),h=o(e,i,m);if(!I(c)||c===``)return new Intl.DateTimeFormat(m.replace(/!/g,``),d).format(l);let g={},_,v=null;for(let t=0;t<h.length&&(_=h[t],g=n[_]||{},v=g[c],!z(v));t++)$t(e,c,_,f,`datetime format`);if(!z(v)||!I(_))return r?-1:c;let y=`${_}__${c}`;w(d)||(y=`${y}__${JSON.stringify(d)}`);let b=s.get(y);return b||(b=new Intl.DateTimeFormat(_,T({},v,d)),s.set(y,b)),p?b.formatToParts(l):b.format(l)}var on=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function sn(...e){let[t,n,r,i]=e,a=D(),o=D(),s;if(I(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Y(J.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Y(J.INVALID_ISO_DATE_ARGUMENT)}}else if(S(t)){if(isNaN(t.getTime()))throw Y(J.INVALID_DATE_ARGUMENT);s=t}else if(x(t))s=t;else throw Y(J.INVALID_ARGUMENT);return I(n)?a.key=n:z(n)&&Object.keys(n).forEach(e=>{on.includes(e)?o[e]=n[e]:a[e]=n[e]}),I(r)?a.locale=r:z(r)&&(o=r),z(i)&&(o=i),[a.key||``,s,a,o]}function cn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function ln(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(!x(t[0]))return``;let[c,l,u,d]=dn(...t),f=L(u.missingWarn)?u.missingWarn:e.missingWarn;L(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=_t(e,u),h=o(e,i,m);if(!I(c)||c===``)return new Intl.NumberFormat(m.replace(/!/g,``),d).format(l);let g={},_,v=null;for(let t=0;t<h.length&&(_=h[t],g=n[_]||{},v=g[c],!z(v));t++)$t(e,c,_,f,`number format`);if(!z(v)||!I(_))return r?-1:c;let y=`${_}__${c}`;w(d)||(y=`${y}__${JSON.stringify(d)}`);let b=s.get(y);return b||(b=new Intl.NumberFormat(_,T({},v,d)),s.set(y,b)),p?b.formatToParts(l):b.format(l)}var un=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function dn(...e){let[t,n,r,i]=e,a=D(),o=D();if(!x(t))throw Y(J.INVALID_ARGUMENT);let s=t;return I(n)?a.key=n:z(n)&&Object.keys(n).forEach(e=>{un.includes(e)?o[e]=n[e]:a[e]=n[e]}),I(r)?a.locale=r:z(r)&&(o=r),z(i)&&(o=i),[a.key||``,s,a,o]}function fn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var pn=e=>e,mn=e=>``,hn=`text`,gn=e=>e.length===0?``:ae(e),_n=ie;function vn(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function yn(e){let t=x(e.pluralIndex)?e.pluralIndex:-1;return x(e.named?.count)?e.named.count:x(e.named?.n)?e.named.n:t}function bn(e={}){let t=e.locale,n=yn(e),r=I(t)&&F(e.pluralRules?.[t])?e.pluralRules[t]:vn,i=r===vn?void 0:vn,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||D();x(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(F(e.messages)?e.messages(t,!!n):R(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):mn)}let d=t=>e.modifiers?e.modifiers[t]:pn,f=F(e.processor?.normalize)?e.processor.normalize:gn,p=F(e.processor?.interpolate)?e.processor.interpolate:_n,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?R(n)?(a=n.modifier||a,i=n.type||i):I(n)&&(a=n||a):t.length===2&&(I(n)&&(a=n||a),I(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&P(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:I(e.processor?.type)?e.processor.type:hn,interpolate:p,normalize:f,values:T(D(),o,c)};return m}var xn=()=>``,Z=e=>F(e);function Sn(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Dn(...t),u=L(l.missingWarn)?l.missingWarn:e.missingWarn,d=L(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=L(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=I(l.default)||L(l.default)?L(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(I(m)||F(m)),g=_t(e,l);f&&Cn(l);let[_,v,y]=p?[c,g,s[g]||D()]:wn(e,c,g,o,d,u),b=_,x=c;if(!p&&!(I(b)||K(b)||Z(b))&&h&&(b=m,x=b),!p&&(!(I(b)||K(b)||Z(b))||!I(v)))return i?-1:c;let S=!1,C=Z(b)?b:Tn(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=En(e,C,bn(kn(e,v,y,l))),E=r?r(w,c):w;if(f&&I(E)&&(E=M(E)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:I(c)?c:Z(b)?b.key:``,locale:v||(Z(b)?b.locale:``),format:I(b)?b:Z(b)?b.source:``,message:E};t.meta=T({},e.__meta,Kt()||{}),ht(t)}return E}function Cn(e){P(e.list)?e.list=e.list.map(e=>I(e)?A(e):e):R(e.named)&&Object.keys(e.named).forEach(t=>{I(e.named[t])&&(e.named[t]=A(e.named[t]))})}function wn(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=D(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||D(),(p=c(d,t))===null&&(p=d[t]),!(I(p)||K(p)||Z(p)));n++)if(!nn(f,u)){let n=$t(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function Tn(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Z(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,On(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function En(e,t,n){return t(n)}function Dn(...e){let[t,n,r]=e,i=D();if(!I(t)&&!x(t)&&!Z(t)&&!K(t))throw Y(J.INVALID_ARGUMENT);let a=x(t)?String(t):(Z(t),t);return x(n)?i.plural=n:I(n)?i.default=n:z(n)&&!w(n)?i.named=n:P(n)&&(i.list=n),x(r)?i.plural=r:I(r)?i.default=r:z(r)&&T(i,r),[a,i]}function On(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>y(t,n,e)}}function kn(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=wn(u||e,r,t,s,c,l);a=n??o(i,r)}if(I(a)||K(a)){let n=!1,i=Tn(e,r,t,a,r,()=>{n=!0});return n?xn:i}else if(Z(a))return a;else return xn}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),x(r.plural)&&(d.pluralIndex=r.plural),d}ze();var An=`11.3.2`;function jn(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(k().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(k().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(k().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(k().__INTLIFY_PROD_DEVTOOLS__=!1)}var Q={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function $(e,...t){return ue(e,null,void 0)}Q.UNEXPECTED_RETURN_TYPE,Q.INVALID_ARGUMENT,Q.MUST_BE_CALL_SETUP_TOP,Q.NOT_INSTALLED,Q.UNEXPECTED_ERROR,Q.REQUIRED_VALUE,Q.INVALID_VALUE,Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Q.NOT_INSTALLED_WITH_PROVIDE,Q.NOT_COMPATIBLE_LEGACY_VUE_I18N,Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var Mn=v(`__translateVNode`),Nn=v(`__datetimeParts`),Pn=v(`__numberParts`),Fn=v(`__setPluralRules`);v(`__intlifyMeta`);var In=v(`__injectWithOption`),Ln=v(`__dispose`),Rn={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15};Rn.FALLBACK_TO_ROOT,Rn.NOT_FOUND_PARENT_SCOPE,Rn.IGNORE_OBJ_FLATTEN,Rn.DEPRECATE_LEGACY_MODE,Rn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,Rn.DUPLICATE_USE_I18N_CALLING;function zn(e){if(!R(e)||K(e))return e;for(let t in e)if(N(e,t))if(!t.includes(`.`))R(e[t])&&zn(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=D()),!R(i[n[e]])){a=!0;break}i=i[n[e]]}if(a||(K(i)?nt.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!K(i)){let e=i[n[r]];R(e)&&zn(e)}}return e}function Bn(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=z(n)?n:P(r)?D():{[e]:D()};if(P(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||D(),se(n,o[t])):se(n,o)}else I(e)&&se(JSON.parse(e),o)}),i==null&&a)for(let e in o)N(o,e)&&zn(o[e]);return o}function Vn(e){return e.type}function Hn(e,t,n){let r=R(t.messages)?t.messages:D();`__i18nGlobal`in n&&(r=Bn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),R(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(R(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function Un(t){return e(m,null,t,0)}function Wn(){let e=`currentInstance`;return e in p?p[e]:r()}var Gn=()=>[],Kn=()=>!1,qn=0;function Jn(e){return((t,n,r,i)=>e(n,r,Wn()||void 0,i))}function Yn(e={}){let{__root:n,__injectWithOption:r}=e,i=n===void 0,a=e.flatJson,o=_?c:d,l=L(e.inheritLocale)?e.inheritLocale:!0,u=o(n&&l?n.locale.value:I(e.locale)?e.locale:It),f=o(n&&l?n.fallbackLocale.value:I(e.fallbackLocale)||P(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),p=o(Bn(u.value,e)),m=o(z(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),h=o(z(e.numberFormats)?e.numberFormats:{[u.value]:{}}),g=n?n.missingWarn:L(e.missingWarn)||C(e.missingWarn)?e.missingWarn:!0,v=n?n.fallbackWarn:L(e.fallbackWarn)||C(e.fallbackWarn)?e.fallbackWarn:!0,y=n?n.fallbackRoot:L(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,S=F(e.missing)?e.missing:null,w=F(e.missing)?Jn(e.missing):null,E=F(e.postTranslation)?e.postTranslation:null,D=n?n.warnHtmlMessage:L(e.warnHtmlMessage)?e.warnHtmlMessage:!0,O=!!e.escapeParameter,k=n?n.modifiers:z(e.modifiers)?e.modifiers:{},A=e.pluralRules||n&&n.pluralRules,j;j=(()=>{i&&Jt(null);let t={version:An,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:k,pluralRules:A,missing:w===null?void 0:w,missingWarn:g,fallbackWarn:v,fallbackFormat:b,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:D,escapeParameter:O,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=m.value,t.numberFormats=h.value,t.__datetimeFormatters=z(j)?j.__datetimeFormatters:void 0,t.__numberFormatters=z(j)?j.__numberFormatters:void 0;let n=Zt(t);return i&&Jt(n),n})(),en(j,u.value,f.value);function M(){return[u.value,f.value,p.value,m.value,h.value]}let ee=t({get:()=>u.value,set:e=>{j.locale=e,u.value=e}}),te=t({get:()=>f.value,set:e=>{j.fallbackLocale=e,f.value=e,en(j,u.value,e)}}),ne=t(()=>p.value),re=t(()=>m.value),ie=t(()=>h.value);function ae(){return F(E)?E:null}function oe(e){E=e,j.postTranslation=e}function ce(){return S}function le(e){e!==null&&(w=Jn(e)),S=e,j.missing=w}let B=(e,t,r,a,o,s)=>{M();let c;try{__INTLIFY_PROD_DEVTOOLS__,i||(j.fallbackContext=n?Yt():void 0),c=e(j)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(j.fallbackContext=void 0)}if(r!==`translate exists`&&x(c)&&c===-1||r===`translate exists`&&!c){let[e,r]=t();return n&&y?a(n):o(e)}else if(s(c))return c;else throw $(Q.UNEXPECTED_RETURN_TYPE)};function ue(...e){return B(t=>Reflect.apply(Sn,null,[t,...e]),()=>Dn(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>I(e))}function de(...e){let[t,n,r]=e;if(r&&!R(r))throw $(Q.INVALID_ARGUMENT);return ue(t,n,T({resolvedMessage:!0},r||{}))}function V(...e){return B(t=>Reflect.apply(an,null,[t,...e]),()=>sn(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>I(e)||P(e))}function fe(...e){return B(t=>Reflect.apply(ln,null,[t,...e]),()=>dn(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>I(e)||P(e))}function H(e){return e.map(e=>I(e)||x(e)||L(e)?Un(String(e)):e)}let pe={normalize:H,interpolate:e=>e,type:`vnode`};function me(...e){return B(t=>{let n,r=t;try{r.processor=pe,n=Reflect.apply(Sn,null,[r,...e])}finally{r.processor=null}return n},()=>Dn(...e),`translate`,t=>t[Mn](...e),e=>[Un(e)],e=>P(e))}function he(...e){return B(t=>Reflect.apply(ln,null,[t,...e]),()=>dn(...e),`number format`,t=>t[Pn](...e),Gn,e=>I(e)||P(e))}function U(...e){return B(t=>Reflect.apply(an,null,[t,...e]),()=>sn(...e),`datetime format`,t=>t[Nn](...e),Gn,e=>I(e)||P(e))}function ge(e){A=e,j.pluralRules=A}function _e(e,t){return B(()=>{if(!e)return!1;let n=I(t)?t:u.value,r=I(t)?[n]:xt(j,f.value,n);for(let t=0;t<r.length;t++){let n=be(r[t]),i=j.messageResolver(n,e);if(i===null&&(i=n[e]),K(i)||Z(i)||I(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),Kn,e=>L(e))}function ve(e){let t=null,n=xt(j,f.value,u.value);for(let r=0;r<n.length;r++){let i=p.value[n[r]]||{},a=j.messageResolver(i,e);if(a!=null){t=a;break}}return t}function ye(e){return ve(e)??(n&&n.tm(e)||{})}function be(e){return p.value[e]||{}}function xe(e,t){if(a){let n={[e]:t};for(let e in n)N(n,e)&&zn(n[e]);t=n[e]}p.value[e]=t,j.messages=p.value}function Se(e,t){p.value[e]=p.value[e]||{};let n={[e]:t};if(a)for(let e in n)N(n,e)&&zn(n[e]);t=n[e],se(t,p.value[e]),j.messages=p.value}function Ce(e){return m.value[e]||{}}function we(e,t){m.value[e]=t,j.datetimeFormats=m.value,cn(j,e,t)}function W(e,t){m.value[e]=T(m.value[e]||{},t),j.datetimeFormats=m.value,cn(j,e,t)}function Te(e){return h.value[e]||{}}function Ee(e,t){h.value[e]=t,j.numberFormats=h.value,fn(j,e,t)}function De(e,t){h.value[e]=T(h.value[e]||{},t),j.numberFormats=h.value,fn(j,e,t)}qn++,n&&_&&(s(n.locale,e=>{l&&(u.value=e,j.locale=e,en(j,u.value,f.value))}),s(n.fallbackLocale,e=>{l&&(f.value=e,j.fallbackLocale=e,en(j,u.value,f.value))}));let G={id:qn,locale:ee,fallbackLocale:te,get inheritLocale(){return l},set inheritLocale(e){l=e,e&&n&&(u.value=n.locale.value,f.value=n.fallbackLocale.value,en(j,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:ne,get modifiers(){return k},get pluralRules(){return A||{}},get isGlobal(){return i},get missingWarn(){return g},set missingWarn(e){g=e,j.missingWarn=g},get fallbackWarn(){return v},set fallbackWarn(e){v=e,j.fallbackWarn=v},get fallbackRoot(){return y},set fallbackRoot(e){y=e},get fallbackFormat(){return b},set fallbackFormat(e){b=e,j.fallbackFormat=b},get warnHtmlMessage(){return D},set warnHtmlMessage(e){D=e,j.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,j.escapeParameter=e},t:ue,getLocaleMessage:be,setLocaleMessage:xe,mergeLocaleMessage:Se,getPostTranslationHandler:ae,setPostTranslationHandler:oe,getMissingHandler:ce,setMissingHandler:le,[Fn]:ge};return G.datetimeFormats=re,G.numberFormats=ie,G.rt=de,G.te=_e,G.tm=ye,G.d=V,G.n=fe,G.getDateTimeFormat=Ce,G.setDateTimeFormat=we,G.mergeDateTimeFormat=W,G.getNumberFormat=Te,G.setNumberFormat=Ee,G.mergeNumberFormat=De,G[In]=r,G[Mn]=me,G[Nn]=U,G[Pn]=he,G}function Xn(e){let t=I(e.locale)?e.locale:It,n=I(e.fallbackLocale)||P(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=F(e.missing)?e.missing:void 0,i=L(e.silentTranslationWarn)||C(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=L(e.silentFallbackWarn)||C(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=L(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=z(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=F(e.postTranslation)?e.postTranslation:void 0,d=I(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=L(e.sync)?e.sync:!0,m=e.messages;if(z(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(T(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function Zn(e={}){let t=Yn(Xn(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return L(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=L(e)?!e:e},get silentFallbackWarn(){return L(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=L(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function Qn(e,t,n){return{beforeCreate(){let r=Wn();if(!r)throw $(Q.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=$n(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Zn(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=$n(e,i);else{this.$i18n=Zn({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Hn(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){let e=Wn();if(!e)throw $(Q.UNEXPECTED_ERROR);let t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function $n(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Fn](t.pluralizationRules||e.pluralizationRules);let n=Bn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var er={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function tr({slots:e},t){return t.length===1&&t[0]===`default`?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===h?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},D())}function nr(){return h}var rr=u({name:`i18n-t`,props:T({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>x(e)||!isNaN(e)}},er),setup(e,t){let{slots:n,attrs:r}=t,a=e.i18n||mr({useScope:e.scope,__useComponent:!0});return()=>{let o=Object.keys(n).filter(e=>e[0]!==`_`),s=D();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=I(e.plural)?+e.plural:e.plural);let c=tr(t,o),l=a[Mn](e.keypath,c,s),u=T(D(),r);return i(I(e.tag)||R(e.tag)?e.tag:nr(),u,l)}}});function ir(e){return P(e)&&!I(e[0])}function ar(e,t,n,r){let{slots:a,attrs:o}=t;return()=>{let t={part:!0},s=D();e.locale&&(t.locale=e.locale),I(e.format)?t.key=e.format:R(e.format)&&(I(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce((t,r)=>n.includes(r)?T(D(),t,{[r]:e.format[r]}):t,D()));let c=r(e.value,t,s),l=[t.key];P(c)?l=c.map((e,t)=>{let n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];return ir(r)&&(r[0].key=`${e.type}-${t}`),r}):I(c)&&(l=[c]);let u=T(D(),o);return i(I(e.tag)||R(e.tag)?e.tag:nr(),u,l)}}var or=u({name:`i18n-n`,props:T({value:{type:Number,required:!0},format:{type:[String,Object]}},er),setup(e,t){let n=e.i18n||mr({useScope:e.scope,__useComponent:!0});return ar(e,t,un,(...e)=>n[Pn](...e))}});function sr(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function cr(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw $(Q.UNEXPECTED_ERROR);let i=sr(e,n.$),a=lr(r);return[Reflect.apply(i.t,i,[...ur(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);_&&(e.__i18nWatcher=s(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{_&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=lr(t);e.textContent=Reflect.apply(n.t,n,[...ur(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function lr(e){if(I(e))return{path:e};if(z(e)){if(!(`path`in e))throw $(Q.REQUIRED_VALUE,`path`);return e}else throw $(Q.INVALID_VALUE)}function ur(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return I(n)&&(o.locale=n),x(i)&&(o.plural=i),x(a)&&(o.plural=a),[t,s,o]}function dr(e,t,...n){let r=z(n[0])?n[0]:{};(!L(r.globalInstall)||r.globalInstall)&&([rr.name,`I18nT`].forEach(t=>e.component(t,rr)),[or.name,`I18nN`].forEach(t=>e.component(t,or)),[Tr.name,`I18nD`].forEach(t=>e.component(t,Tr))),e.directive(`t`,cr(t))}var fr=v(`global-vue-i18n`);function pr(e={}){let t=__VUE_I18N_LEGACY_API__&&L(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=L(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=hr(e,t),o=v(``);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),z(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=wr(e,u.global)),__VUE_I18N_FULL_INSTALL__&&dr(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(Qn(a,a.__composer,u));let s=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),s()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function mr(e={}){let t=Wn();if(t==null)throw $(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $(Q.NOT_INSTALLED);let n=gr(t),r=vr(n),i=Vn(t),a=_r(e,i);if(a===`global`)return Hn(r,e,i),r;if(a===`parent`){let i=yr(n,t,e.__useComponent);return i??=r,i}let o=n,s=o.__getInstance(t);if(s==null){let n=T({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=Yn(n),o.__composerExtend&&(s[Ln]=o.__composerExtend(s)),xr(o,t,s),o.__setInstance(t,s)}return s}function hr(e,t){let n=l(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Zn(e)):n.run(()=>Yn(e));if(r==null)throw $(Q.UNEXPECTED_ERROR);return[n,r]}function gr(e){let t=n(e.isCE?fr:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function _r(e,t){return w(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function vr(e){return e.mode===`composition`?e.global:e.global.__composer}function yr(e,t,n=!1){let r=null,i=t.root,a=br(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[In]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function br(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function xr(e,t,n){a(()=>{},t),o(()=>{let r=n;e.__deleteInstance(t);let i=r[Ln];i&&(i(),delete r[Ln])},t)}var Sr=[`locale`,`fallbackLocale`,`availableLocales`],Cr=[`t`,`rt`,`d`,`n`,`tm`,`te`];function wr(e,t){let n=Object.create(null);return Sr.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw $(Q.UNEXPECTED_ERROR);let i=f(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,Cr.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw $(Q.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,Cr.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var Tr=u({name:`i18n-d`,props:T({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},er),setup(e,t){let n=e.i18n||mr({useScope:e.scope,__useComponent:!0});return ar(e,t,on,(...e)=>n[Nn](...e))}});if(jn(),Bt(dt),Ht(Pt),Wt(xt),__INTLIFY_PROD_DEVTOOLS__){let e=k();e.__INTLIFY__=!0,pt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Er=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{pr as n,mr as r,Er as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./app-DtII96CF.js";export{e as useAppStore};