hermes-web-ui 0.3.7 → 0.4.0

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 (85) hide show
  1. package/README.md +28 -12
  2. package/dist/client/assets/{Add-Cc7cgBoB.js → Add-BChxDDdy.js} +1 -1
  3. package/dist/client/assets/{Button-EoeZgIFH.js → Button-uvjCWO-i.js} +1 -1
  4. package/dist/client/assets/{ChannelsView-Bfbq3w7n.js → ChannelsView-D3a0g0rb.js} +1 -1
  5. package/dist/client/assets/{ChatView-Vfi_jEpI.css → ChatView-DI3XN8vz.css} +1 -1
  6. package/dist/client/assets/ChatView-T8LH7dwU.js +127 -0
  7. package/dist/client/assets/{Close-CKHcXisf.js → Close-DbXijZpL.js} +1 -1
  8. package/dist/client/assets/{FormItem-CvZvjrtr.js → FormItem-BRiLD3TC.js} +1 -1
  9. package/dist/client/assets/{GatewaysView-Dp4-TFPE.js → GatewaysView-rfzh1nqy.js} +1 -1
  10. package/dist/client/assets/{Input-Bk7XdoG-.js → Input-CjlUbV0M.js} +1 -1
  11. package/dist/client/assets/{InputNumber-Dn0EHi-K.js → InputNumber-CPEjoOAv.js} +1 -1
  12. package/dist/client/assets/{JobsView-D4JN73Zz.js → JobsView-D6AFr9Xe.js} +2 -2
  13. package/dist/client/assets/{LoginView--hy5CI5O.js → LoginView-DJB_TSHN.js} +1 -1
  14. package/dist/client/assets/{LogsView-Dz2ZeYad.js → LogsView-Ul8pAp42.js} +1 -1
  15. package/dist/client/assets/{MarkdownRenderer-BbedVxvo.js → MarkdownRenderer-CY7d2L7Z.js} +1 -1
  16. package/dist/client/assets/{MemoryView-D2EHM35l.js → MemoryView-BR5Dl_fa.js} +1 -1
  17. package/dist/client/assets/{Modal-C5-Iw50K.js → Modal-DDUFP8vh.js} +1 -1
  18. package/dist/client/assets/{ModelsView-CtrRf4vK.js → ModelsView-DAi9Jdmk.js} +1 -1
  19. package/dist/client/assets/{Popconfirm-C-M2anVL.js → Popconfirm-Cnb_uQVo.js} +1 -1
  20. package/dist/client/assets/{Popover-mIRPCy7U.js → Popover-DiVI0l6E.js} +1 -1
  21. package/dist/client/assets/{ProfilesView-Dy9PivgB.js → ProfilesView-BB0Zrfhi.js} +1 -1
  22. package/dist/client/assets/{Select-uZBC8HC2.js → Select-BqUA1wxE.js} +1 -1
  23. package/dist/client/assets/{SettingRow-D9R65bDj.js → SettingRow-CK0bHtaz.js} +1 -1
  24. package/dist/client/assets/{SettingsView-DWEEXqSY.js → SettingsView-BKKk44FG.js} +1 -1
  25. package/dist/client/assets/{SkillsView-CdZSRy9_.js → SkillsView-whSlyc23.js} +1 -1
  26. package/dist/client/assets/{Spin-ChbFBUOD.js → Spin-DwHJdgNz.js} +1 -1
  27. package/dist/client/assets/{Suffix-DgzfIwzx.js → Suffix-D6x-7akR.js} +1 -1
  28. package/dist/client/assets/{Switch--HhY1uSh.js → Switch-BvHRSSqt.js} +1 -1
  29. package/dist/client/assets/{Tag-B2zrHMmZ.js → Tag-BMMlXaEi.js} +1 -1
  30. package/dist/client/assets/{TerminalView-BwfnH803.js → TerminalView-el6o2Q0a.js} +1 -1
  31. package/dist/client/assets/{Tooltip-9tdvSKGi.js → Tooltip-BM4wl764.js} +1 -1
  32. package/dist/client/assets/{UsageView-zL3a7F86.js → UsageView-DQ_YKoEV.js} +1 -1
  33. package/dist/client/assets/{Warning-CXXqHzLa.js → Warning-CEC7rgvY.js} +1 -1
  34. package/dist/client/assets/{_plugin-vue_export-helper-Cnn0Z73x.js → _plugin-vue_export-helper-DgUZPfuZ.js} +1 -1
  35. package/dist/client/assets/app-DPUhLGXq.js +1 -0
  36. package/dist/client/assets/{app-BMobzABI.js → app-DUt8TNq3.js} +1 -1
  37. package/dist/client/assets/{browser-CQRjhbaB.js → browser-vxCOMmsq.js} +1 -1
  38. package/dist/client/assets/chat-i_Ge_Lfr.js +6 -0
  39. package/dist/client/assets/composables-jrQPIjcq.js +1 -0
  40. package/dist/client/assets/{fade-in.cssr-lwO9nLky.js → fade-in.cssr-DVg2CkO3.js} +1 -1
  41. package/dist/client/assets/{index-Tg6M43Om.js → index-COwJ2oY0.js} +1 -1
  42. package/dist/client/assets/{jobs-Z2HS0j2d.js → jobs-Czr1RcSG.js} +1 -1
  43. package/dist/client/assets/{light-DgIst23O.js → light-3rSjNeC-.js} +1 -1
  44. package/dist/client/assets/{light-oE8MEiWL.js → light-CKDlpgGU.js} +1 -1
  45. package/dist/client/assets/{light-Dx6qj2pM.js → light-CiIDFs7y.js} +1 -1
  46. package/dist/client/assets/{light-DZ0Ns16h.js → light-CoJqT8Vu.js} +1 -1
  47. package/dist/client/assets/{light-CjCy-Dkn.js → light-DPRJ1OEN.js} +1 -1
  48. package/dist/client/assets/{light-DzpNsLai.js → light-vTpJevRf.js} +1 -1
  49. package/dist/client/assets/{models-DLQiHB7r.js → models-BzEeJuoO.js} +1 -1
  50. package/dist/client/assets/{pinia-Dp_b1vdW.js → pinia-BoNLlsLy.js} +1 -1
  51. package/dist/client/assets/{profiles-CNTHYFZE.js → profiles-B-DFTmc2.js} +1 -1
  52. package/dist/client/assets/{router-Dj-Nmg7q.js → router-HHMeDEaP.js} +2 -2
  53. package/dist/client/assets/{sessions-C0kvgvBm.js → sessions-BmxS_BoH.js} +1 -1
  54. package/dist/client/assets/{skills-G7EoEvdS.js → skills-Be8Mzr1r.js} +1 -1
  55. package/dist/client/assets/{use-message-BgToAqhv.js → use-message-DBTY4945.js} +1 -1
  56. package/dist/client/assets/{useTheme-BUShiwRu.js → useTheme-D58Cg7k2.js} +1 -1
  57. package/dist/client/index.html +27 -27
  58. package/dist/server/index.js +19 -194
  59. package/dist/server/routes/health.d.ts +4 -0
  60. package/dist/server/routes/health.js +109 -0
  61. package/dist/server/routes/hermes/group-chat.d.ts +4 -0
  62. package/dist/server/routes/hermes/group-chat.js +146 -0
  63. package/dist/server/routes/update.d.ts +2 -0
  64. package/dist/server/routes/update.js +69 -0
  65. package/dist/server/routes/upload.js +41 -11
  66. package/dist/server/services/auth.js +1 -1
  67. package/dist/server/services/gateway-bootstrap.d.ts +2 -0
  68. package/dist/server/services/gateway-bootstrap.js +51 -0
  69. package/dist/server/services/group-chat/coordinator.d.ts +14 -0
  70. package/dist/server/services/group-chat/coordinator.js +230 -0
  71. package/dist/server/services/group-chat/index.d.ts +5 -0
  72. package/dist/server/services/group-chat/index.js +115 -0
  73. package/dist/server/services/group-chat/rooms-db.d.ts +56 -0
  74. package/dist/server/services/group-chat/rooms-db.js +199 -0
  75. package/dist/server/services/hermes/group-chat/agent-clients.d.ts +133 -0
  76. package/dist/server/services/hermes/group-chat/agent-clients.js +364 -0
  77. package/dist/server/services/hermes/group-chat/index.d.ts +72 -0
  78. package/dist/server/services/hermes/group-chat/index.js +307 -0
  79. package/dist/server/services/shutdown.d.ts +1 -0
  80. package/dist/server/services/shutdown.js +37 -0
  81. package/package.json +1 -1
  82. package/dist/client/assets/ChatView-CDdyTo72.js +0 -127
  83. package/dist/client/assets/app-Bqu9Uz-1.js +0 -1
  84. package/dist/client/assets/chat-BIdq6ZXF.js +0 -6
  85. package/dist/client/assets/composables-ClIU-Ad1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,N as c,Q as l,R as u,T as d,U as f,V as p,X as m,Z as h,b as g,ct as _,d as v,dt as y,ft as b,g as x,gt as S,h as C,ht as w,j as T,k as E,mt as D,pt as O,q as k,w as A,y as j}from"./router-Dj-Nmg7q.js";import{r as M,t as N}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{$ as P,B as F,J as ee,Q as I,R as te,W as ne,X as L,Y as R,_t as z,a as re,c as B,ct as V,d as ie,dt as H,et as ae,ft as oe,n as se,o as ce,pt as le,q as U,s as ue,st as W,tt as de,ut as G,z as fe}from"./browser-CQRjhbaB.js";import{F as K,I as pe,_ as me,b as he,m as q,o as ge}from"./Popover-mIRPCy7U.js";import{d as _e,f as ve,p as ye,s as be}from"./Suffix-DgzfIwzx.js";import{i as xe,n as J,r as Y,t as Se}from"./fade-in.cssr-lwO9nLky.js";import{d as Ce,f as we,p as Te,t as Ee}from"./Modal-C5-Iw50K.js";import{n as De,t as Oe}from"./FormItem-CvZvjrtr.js";import{a as ke,t as X}from"./Button-EoeZgIFH.js";import{t as Ae}from"./Warning-CXXqHzLa.js";import{t as je}from"./Add-Cc7cgBoB.js";import{i as Me,t as Ne}from"./Input-Bk7XdoG-.js";import{t as Pe}from"./Tag-B2zrHMmZ.js";import{a as Fe,n as Ie,r as Le}from"./light-Dx6qj2pM.js";import{t as Re}from"./light-DgIst23O.js";import{t as ze}from"./Tooltip-9tdvSKGi.js";import{t as Be}from"./composables-ClIU-Ad1.js";import{t as Ve}from"./use-message-BgToAqhv.js";import{t as He}from"./Switch--HhY1uSh.js";import{t as Ue}from"./Spin-ChbFBUOD.js";import{t as Z}from"./profiles-CNTHYFZE.js";function We(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ge(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ke(e){return function(t){return e?.[t]}}var qe=Ke({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Xe(e){return e=xe(e),e&&e.replace(Je,qe).replace(Ye,``)}var Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qe(e){return e.match(Ze)||[]}var $e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function et(e){return $e.test(e)}var tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+dt+ht+rt+it+lt+`]`,yt=`(?:`+mt+`|\\ud83c[\\udffb-\\udfff])`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q=`[`+lt+`]`,Ct=`\\u200d`,wt=`(?:`+_t+`|`+vt+`)`,Tt=`(?:`+Q+`|`+vt+`)`,Et=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,Dt=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,kt=`[`+ut+`]?`,At=`(?:`+Ct+`(?:`+[bt,xt,St].join(`|`)+`)`+kt+Ot+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=kt+Ot+At,Pt=`(?:`+[gt,xt,St].join(`|`)+`)`+Nt,Ft=RegExp([Q+`?`+_t+`+`+Et+`(?=`+[pt,Q,`$`].join(`|`)+`)`,Tt+`+`+Dt+`(?=`+[pt,Q+wt,`$`].join(`|`)+`)`,Q+`?`+wt+`+`+Et,Q+`+`+Dt,Mt,jt,ht,Pt].join(`|`),`g`);function It(e){return e.match(Ft)||[]}function Lt(e,t,n){return e=xe(e),t=n?void 0:t,t===void 0?et(e)?It(e):Qe(e):e.match(t)||[]}var Rt=RegExp(`['’]`,`g`);function zt(e){return function(t){return Ge(Lt(Xe(t).replace(Rt,``)),e,``)}}var Bt=zt(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Vt=J(`attach`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),Ht=J(`cancel`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),Ut=J(`download`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),Wt=T({name:`ResizeSmall`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),Gt=J(`retry`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),c(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Kt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),qt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Jt=J(`trash`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Yt=J(`zoomIn`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),c(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Xt=J(`zoomOut`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),c(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Zt=I&&`loading`in document.createElement(`img`);function Qt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var $t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=(e,t,n)=>{if(!e)return()=>{};let r=Qt(t),{root:i}=r.options,a,o=$t.get(i);o?a=o:(a=new Map,$t.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=en.get(e.target),n=tn.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(en.delete(e),tn.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||$t.delete(i))};return en.set(e,u),tn.set(e,n),u};function rn(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var an=ue({name:`Image`,common:se,peers:{Tooltip:Re},self:rn});function on(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function sn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function cn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var ln=Object.assign(Object.assign({},B.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),un=P(`n-image`),dn=W([W(`body >`,[V(`image-container`,`position: fixed;`)]),V(`image-preview-container`,`
1
+ import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,N as c,Q as l,R as u,T as d,U as f,V as p,X as m,Z as h,b as g,ct as _,d as v,dt as y,ft as b,g as x,gt as S,h as C,ht as w,j as T,k as E,mt as D,pt as O,q as k,w as A,y as j}from"./router-HHMeDEaP.js";import{r as M,t as N}from"./_plugin-vue_export-helper-DgUZPfuZ.js";import{$ as P,B as F,J as ee,Q as I,R as te,W as ne,X as L,Y as R,_t as z,a as re,c as B,ct as V,d as ie,dt as H,et as ae,ft as oe,n as se,o as ce,pt as le,q as U,s as ue,st as W,tt as de,ut as G,z as fe}from"./browser-vxCOMmsq.js";import{F as K,I as pe,_ as me,b as he,m as q,o as ge}from"./Popover-DiVI0l6E.js";import{d as _e,f as ve,p as ye,s as be}from"./Suffix-D6x-7akR.js";import{i as xe,n as J,r as Y,t as Se}from"./fade-in.cssr-DVg2CkO3.js";import{d as Ce,f as we,p as Te,t as Ee}from"./Modal-DDUFP8vh.js";import{n as De,t as Oe}from"./FormItem-BRiLD3TC.js";import{a as ke,t as X}from"./Button-uvjCWO-i.js";import{t as Ae}from"./Warning-CEC7rgvY.js";import{t as je}from"./Add-BChxDDdy.js";import{i as Me,t as Ne}from"./Input-CjlUbV0M.js";import{t as Pe}from"./Tag-BMMlXaEi.js";import{a as Fe,n as Ie,r as Le}from"./light-CiIDFs7y.js";import{t as Re}from"./light-3rSjNeC-.js";import{t as ze}from"./Tooltip-BM4wl764.js";import{t as Be}from"./composables-jrQPIjcq.js";import{t as Ve}from"./use-message-DBTY4945.js";import{t as He}from"./Switch-BvHRSSqt.js";import{t as Ue}from"./Spin-DwHJdgNz.js";import{t as Z}from"./profiles-B-DFTmc2.js";function We(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ge(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ke(e){return function(t){return e?.[t]}}var qe=Ke({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Xe(e){return e=xe(e),e&&e.replace(Je,qe).replace(Ye,``)}var Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qe(e){return e.match(Ze)||[]}var $e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function et(e){return $e.test(e)}var tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+dt+ht+rt+it+lt+`]`,yt=`(?:`+mt+`|\\ud83c[\\udffb-\\udfff])`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q=`[`+lt+`]`,Ct=`\\u200d`,wt=`(?:`+_t+`|`+vt+`)`,Tt=`(?:`+Q+`|`+vt+`)`,Et=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,Dt=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,kt=`[`+ut+`]?`,At=`(?:`+Ct+`(?:`+[bt,xt,St].join(`|`)+`)`+kt+Ot+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=kt+Ot+At,Pt=`(?:`+[gt,xt,St].join(`|`)+`)`+Nt,Ft=RegExp([Q+`?`+_t+`+`+Et+`(?=`+[pt,Q,`$`].join(`|`)+`)`,Tt+`+`+Dt+`(?=`+[pt,Q+wt,`$`].join(`|`)+`)`,Q+`?`+wt+`+`+Et,Q+`+`+Dt,Mt,jt,ht,Pt].join(`|`),`g`);function It(e){return e.match(Ft)||[]}function Lt(e,t,n){return e=xe(e),t=n?void 0:t,t===void 0?et(e)?It(e):Qe(e):e.match(t)||[]}var Rt=RegExp(`['’]`,`g`);function zt(e){return function(t){return Ge(Lt(Xe(t).replace(Rt,``)),e,``)}}var Bt=zt(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Vt=J(`attach`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),Ht=J(`cancel`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),Ut=J(`download`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),Wt=T({name:`ResizeSmall`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),Gt=J(`retry`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),c(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Kt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),qt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Jt=J(`trash`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Yt=J(`zoomIn`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),c(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Xt=J(`zoomOut`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),c(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Zt=I&&`loading`in document.createElement(`img`);function Qt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var $t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=(e,t,n)=>{if(!e)return()=>{};let r=Qt(t),{root:i}=r.options,a,o=$t.get(i);o?a=o:(a=new Map,$t.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=en.get(e.target),n=tn.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(en.delete(e),tn.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||$t.delete(i))};return en.set(e,u),tn.set(e,n),u};function rn(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var an=ue({name:`Image`,common:se,peers:{Tooltip:Re},self:rn});function on(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function sn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function cn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var ln=Object.assign(Object.assign({},B.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),un=P(`n-image`),dn=W([W(`body >`,[V(`image-container`,`position: fixed;`)]),V(`image-preview-container`,`
2
2
  position: fixed;
3
3
  left: 0;
4
4
  right: 0;
@@ -1,4 +1,4 @@
1
- import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V as u,X as d,Z as f,ct as p,d as m,dt as h,h as g,j as _,y as v,z as y}from"./router-Dj-Nmg7q.js";import{B as b,K as x,R as S,W as C,Z as w,c as T,ct as E,d as D,dt as O,et as ee,ft as k,n as A,nt as j,pt as M,q as N,r as P,s as F,st as I,tt as L,ut as R,z as te}from"./browser-CQRjhbaB.js";import{A as ne,C as z,I as re,S as B,c as V,g as H,i as U,j as W,o as G,p as K,t as q,v as J,w as ie,x as ae,y as oe}from"./Popover-mIRPCy7U.js";import{n as Y,r as se,t as ce}from"./create-5zWq3BEB.js";import{c as X,d as le,i as ue,l as Z,m as de,n as fe,s as pe,t as me,u as he}from"./Suffix-DgzfIwzx.js";import{c as ge,l as Q,r as _e,s as ve}from"./fade-in.cssr-lwO9nLky.js";import{n as ye}from"./Close-CKHcXisf.js";import{t as be}from"./Tag-B2zrHMmZ.js";function xe(e){return e&-e}var Se=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=xe(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=xe(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Ce;function we(){return typeof document>`u`?!1:(Ce===void 0&&(Ce=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),Ce)}var Te;function Ee(){return typeof document>`u`?1:(Te===void 0&&(Te=`chrome`in window?window.devicePixelRatio:1),Te)}var De=`VVirtualListXScroll`;function Oe({columnsRef:e,renderColRef:n,renderItemWithColsRef:r}){let i=p(0),o=p(0),s=t(()=>{let t=e.value;if(t.length===0)return null;let n=new Se(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return a(De,{startIndexRef:L(()=>{let e=s.value;return e===null?0:Math.max(e.getBound(o.value)-1,0)}),endIndexRef:L(()=>{let t=s.value;return t===null?0:Math.min(t.getBound(o.value+i.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:n,renderItemWithColsRef:r,getLeft:e=>{let t=s.value;return t===null?0:t.sum(e)}}),{listWidthRef:i,scrollLeftRef:o}}var ke=_({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=n(De);return{startIndex:e,endIndex:t,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),Ae=J(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[J(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[J(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),je=_({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=w();Ae.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:oe,ssr:n}),l(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;y(()=>{if(i=!1,!a){a=!0;return}S({top:v.value,left:c.value})}),r(()=>{i=!0,a||=!0});let o=L(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),s=t(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:c,listWidthRef:u}=Oe({columnsRef:h(e,`columns`),renderColRef:h(e,`renderCol`),renderItemWithColsRef:h(e,`renderItemWithCols`)}),d=p(null),f=p(void 0),m=new Map,g=t(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Se(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=m.get(n);a!==void 0&&i.add(t,a)}),i}),_=p(0),v=p(0),b=L(()=>Math.max(g.value.getBound(v.value-ve(e.paddingTop))-1,0)),x=t(()=>{let{value:t}=f;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),S=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?D(0,2**53-1,c):o===`top`&&D(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=g,a=i.sum(t)+ve(e.paddingTop);if(!r)d.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=d.value;if(a>e){let o=i.get(t);a+o<=e+r||d.value.scrollTo({left:0,top:a+o-r,behavior:n})}else d.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){d.value.scrollTo({left:e,top:t,behavior:n})}function O(t,n){if(i||e.ignoreItemResize||P(n.target))return;let{value:r}=g,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?m.delete(t):m.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=d.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else (a<C||a===C&&c+r.sum(a)>u.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);N()}_.value++}let ee=!we(),k=!1;function A(t){var n;(n=e.onScroll)==null||n.call(e,t),(!ee||!k)&&N()}function j(t){var n;if((n=e.onWheel)==null||n.call(e,t),ee){let e=d.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/Ee(),e.scrollLeft+=t.deltaX/Ee(),N(),k=!0,re(()=>{k=!1})}}}function M(t){if(i||P(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===f.value)return}else if(t.contentRect.height===f.value&&t.contentRect.width===u.value)return;f.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function N(){let{value:e}=d;e!=null&&(v.value=e.scrollTop,c.value=e.scrollLeft)}function P(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:f,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:t(()=>{let{itemResizable:t}=e,n=Q(g.value.sum());return _.value,[e.itemsStyle,{boxSizing:`content-box`,width:Q(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:Q(e.paddingTop),paddingBottom:Q(e.paddingBottom)}]}),visibleItemsStyle:t(()=>(_.value,{transform:`translateY(${Q(g.value.sum(b.value))})`})),viewportItems:x,listElRef:d,itemsElRef:p(null),scrollTo:S,handleListResize:M,handleListScroll:A,handleListWheel:j,handleItemResize:O}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(Z,{onResize:this.handleListResize},{default:()=>{var i;return s(`div`,o(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):s(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[s(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],c=n.get(o),l=r==null?void 0:s(ke,{index:c,item:a}),u=i==null?void 0:s(ke,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?s(Z,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>d}):(d.key=o,d)})}})])])}})}}),$=`v-hidden`,Me=J(`[v-hidden]`,{display:`none!important`}),Ne=_({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=p(null),r=p(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute($)&&c.removeAttribute($);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute($)&&e.removeAttribute($);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute($)||n.setAttribute($,``);continue}else n.hasAttribute($)&&n.removeAttribute($);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute($,``))}let a=w();return Me.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:oe,ssr:a}),l(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return c(()=>this.sync({showAllItemsBeforeCalculate:!1})),s(`div`,{class:`v-overflow`,ref:`selfRef`},[i(e,`default`),e.counter?e.counter():s(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Pe(e,t){t&&(l(()=>{let{value:n}=e;n&&he.registerHandler(n,t)}),d(e,(e,t)=>{t&&he.unregisterHandler(t)},{deep:!1}),u(()=>{let{value:t}=e;t&&he.unregisterHandler(t)}))}function Fe(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function Ie(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var Le=_({name:`Checkmark`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},s(`g`,{fill:`none`},s(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),Re=_({name:`Empty`,render(){return s(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),s(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ze=_({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Be={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function Ve(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},Be),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var He={name:`Empty`,common:A,self:Ve},Ue=E(`empty`,`
1
+ import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V as u,X as d,Z as f,ct as p,d as m,dt as h,h as g,j as _,y as v,z as y}from"./router-HHMeDEaP.js";import{B as b,K as x,R as S,W as C,Z as w,c as T,ct as E,d as D,dt as O,et as ee,ft as k,n as A,nt as j,pt as M,q as N,r as P,s as F,st as I,tt as L,ut as R,z as te}from"./browser-vxCOMmsq.js";import{A as ne,C as z,I as re,S as B,c as V,g as H,i as U,j as W,o as G,p as K,t as q,v as J,w as ie,x as ae,y as oe}from"./Popover-DiVI0l6E.js";import{n as Y,r as se,t as ce}from"./create-5zWq3BEB.js";import{c as X,d as le,i as ue,l as Z,m as de,n as fe,s as pe,t as me,u as he}from"./Suffix-D6x-7akR.js";import{c as ge,l as Q,r as _e,s as ve}from"./fade-in.cssr-DVg2CkO3.js";import{n as ye}from"./Close-DbXijZpL.js";import{t as be}from"./Tag-BMMlXaEi.js";function xe(e){return e&-e}var Se=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=xe(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=xe(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Ce;function we(){return typeof document>`u`?!1:(Ce===void 0&&(Ce=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),Ce)}var Te;function Ee(){return typeof document>`u`?1:(Te===void 0&&(Te=`chrome`in window?window.devicePixelRatio:1),Te)}var De=`VVirtualListXScroll`;function Oe({columnsRef:e,renderColRef:n,renderItemWithColsRef:r}){let i=p(0),o=p(0),s=t(()=>{let t=e.value;if(t.length===0)return null;let n=new Se(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return a(De,{startIndexRef:L(()=>{let e=s.value;return e===null?0:Math.max(e.getBound(o.value)-1,0)}),endIndexRef:L(()=>{let t=s.value;return t===null?0:Math.min(t.getBound(o.value+i.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:n,renderItemWithColsRef:r,getLeft:e=>{let t=s.value;return t===null?0:t.sum(e)}}),{listWidthRef:i,scrollLeftRef:o}}var ke=_({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=n(De);return{startIndex:e,endIndex:t,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),Ae=J(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[J(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[J(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),je=_({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=w();Ae.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:oe,ssr:n}),l(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;y(()=>{if(i=!1,!a){a=!0;return}S({top:v.value,left:c.value})}),r(()=>{i=!0,a||=!0});let o=L(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),s=t(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:c,listWidthRef:u}=Oe({columnsRef:h(e,`columns`),renderColRef:h(e,`renderCol`),renderItemWithColsRef:h(e,`renderItemWithCols`)}),d=p(null),f=p(void 0),m=new Map,g=t(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Se(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=m.get(n);a!==void 0&&i.add(t,a)}),i}),_=p(0),v=p(0),b=L(()=>Math.max(g.value.getBound(v.value-ve(e.paddingTop))-1,0)),x=t(()=>{let{value:t}=f;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),S=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?D(0,2**53-1,c):o===`top`&&D(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=g,a=i.sum(t)+ve(e.paddingTop);if(!r)d.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=d.value;if(a>e){let o=i.get(t);a+o<=e+r||d.value.scrollTo({left:0,top:a+o-r,behavior:n})}else d.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){d.value.scrollTo({left:e,top:t,behavior:n})}function O(t,n){if(i||e.ignoreItemResize||P(n.target))return;let{value:r}=g,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?m.delete(t):m.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=d.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else (a<C||a===C&&c+r.sum(a)>u.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);N()}_.value++}let ee=!we(),k=!1;function A(t){var n;(n=e.onScroll)==null||n.call(e,t),(!ee||!k)&&N()}function j(t){var n;if((n=e.onWheel)==null||n.call(e,t),ee){let e=d.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/Ee(),e.scrollLeft+=t.deltaX/Ee(),N(),k=!0,re(()=>{k=!1})}}}function M(t){if(i||P(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===f.value)return}else if(t.contentRect.height===f.value&&t.contentRect.width===u.value)return;f.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function N(){let{value:e}=d;e!=null&&(v.value=e.scrollTop,c.value=e.scrollLeft)}function P(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:f,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:t(()=>{let{itemResizable:t}=e,n=Q(g.value.sum());return _.value,[e.itemsStyle,{boxSizing:`content-box`,width:Q(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:Q(e.paddingTop),paddingBottom:Q(e.paddingBottom)}]}),visibleItemsStyle:t(()=>(_.value,{transform:`translateY(${Q(g.value.sum(b.value))})`})),viewportItems:x,listElRef:d,itemsElRef:p(null),scrollTo:S,handleListResize:M,handleListScroll:A,handleListWheel:j,handleItemResize:O}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(Z,{onResize:this.handleListResize},{default:()=>{var i;return s(`div`,o(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):s(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[s(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],c=n.get(o),l=r==null?void 0:s(ke,{index:c,item:a}),u=i==null?void 0:s(ke,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?s(Z,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>d}):(d.key=o,d)})}})])])}})}}),$=`v-hidden`,Me=J(`[v-hidden]`,{display:`none!important`}),Ne=_({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=p(null),r=p(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute($)&&c.removeAttribute($);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute($)&&e.removeAttribute($);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute($)||n.setAttribute($,``);continue}else n.hasAttribute($)&&n.removeAttribute($);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute($,``))}let a=w();return Me.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:oe,ssr:a}),l(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return c(()=>this.sync({showAllItemsBeforeCalculate:!1})),s(`div`,{class:`v-overflow`,ref:`selfRef`},[i(e,`default`),e.counter?e.counter():s(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Pe(e,t){t&&(l(()=>{let{value:n}=e;n&&he.registerHandler(n,t)}),d(e,(e,t)=>{t&&he.unregisterHandler(t)},{deep:!1}),u(()=>{let{value:t}=e;t&&he.unregisterHandler(t)}))}function Fe(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function Ie(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var Le=_({name:`Checkmark`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},s(`g`,{fill:`none`},s(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),Re=_({name:`Empty`,render(){return s(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),s(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ze=_({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Be={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function Ve(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},Be),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var He={name:`Empty`,common:A,self:Ve},Ue=E(`empty`,`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{D as e,E as t,G as n,J as r,ct as i,gt as a,j as o,o as s,w as c}from"./router-Dj-Nmg7q.js";import{n as l}from"./pinia-Dp_b1vdW.js";import{t as u}from"./_plugin-vue_export-helper-Cnn0Z73x.js";async function d(e){return s(`/api/hermes/config${e?`?sections=${e.join(`,`)}`:``}`)}async function f(e,t){await s(`/api/hermes/config`,{method:`PUT`,body:JSON.stringify({section:e,values:t})})}async function p(e,t){await s(`/api/hermes/config/credentials`,{method:`PUT`,body:JSON.stringify({platform:e,values:t})})}async function m(){return s(`/api/hermes/weixin/qrcode`)}async function h(e){return s(`/api/hermes/weixin/qrcode/status?qrcode=${encodeURIComponent(e)}`)}async function g(e){await s(`/api/hermes/weixin/save`,{method:`POST`,body:JSON.stringify(e)})}var _=l(`settings`,()=>{let e=i(!1),t=i(!1),n=i({}),r=i({}),a=i({}),o=i({}),s=i({}),c=i({}),l=i({}),u=i({}),p=i({}),m=i({}),h=i({}),g=i({}),_=i({}),v=i({}),y=i({});async function b(){e.value=!0;try{let e=await d();n.value=e.display||{},r.value=e.agent||{},a.value=e.memory||{},o.value=e.session_reset||{},s.value=e.privacy||{},c.value=e.telegram||{},l.value=e.discord||{},u.value=e.slack||{},p.value=e.whatsapp||{},m.value=e.matrix||{},h.value=e.wecom||{},g.value=e.feishu||{},_.value=e.dingtalk||{},v.value=e.weixin||{},y.value=e.platforms||{}}catch(e){console.error(`Failed to fetch settings:`,e)}finally{e.value=!1}}async function x(e,i){t.value=!0;try{switch(await f(e,i),e){case`display`:n.value={...n.value,...i};break;case`agent`:r.value={...r.value,...i};break;case`memory`:a.value={...a.value,...i};break;case`session_reset`:o.value={...o.value,...i};break;case`privacy`:s.value={...s.value,...i};break;case`telegram`:c.value={...c.value,...i};break;case`discord`:l.value={...l.value,...i};break;case`slack`:u.value={...u.value,...i};break;case`whatsapp`:p.value={...p.value,...i};break;case`matrix`:m.value={...m.value,...i};break;case`wechat`:case`wecom`:h.value={...h.value,...i};break;case`feishu`:g.value={...g.value,...i};break;case`dingtalk`:_.value={..._.value,...i};break;case`weixin`:v.value={...v.value,...i};break;case`platforms`:for(let[e,t]of Object.entries(i))y.value={...y.value,[e]:{...y.value[e]||{},...t}};break}}finally{t.value=!1}}return{loading:e,saving:t,display:n,agent:r,memory:a,sessionReset:o,privacy:s,telegram:c,discord:l,slack:u,whatsapp:p,matrix:m,wecom:h,feishu:g,dingtalk:_,weixin:v,platforms:y,fetchSettings:b,saveSection:x}}),v={class:`setting-row`},y={class:`setting-info`},b={class:`setting-label`},x={key:0,class:`setting-hint`},S={class:`setting-control`},C=u(o({__name:`SettingRow`,props:{label:{},hint:{}},setup(i){return(o,s)=>(n(),e(`div`,v,[c(`div`,y,[c(`label`,b,a(i.label),1),i.hint?(n(),e(`p`,x,a(i.hint),1)):t(``,!0)]),c(`div`,S,[r(o.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-b81640b4`]]);export{p as a,h as i,_ as n,g as o,m as r,C as t};
1
+ import{D as e,E as t,G as n,J as r,ct as i,gt as a,j as o,o as s,w as c}from"./router-HHMeDEaP.js";import{n as l}from"./pinia-BoNLlsLy.js";import{t as u}from"./_plugin-vue_export-helper-DgUZPfuZ.js";async function d(e){return s(`/api/hermes/config${e?`?sections=${e.join(`,`)}`:``}`)}async function f(e,t){await s(`/api/hermes/config`,{method:`PUT`,body:JSON.stringify({section:e,values:t})})}async function p(e,t){await s(`/api/hermes/config/credentials`,{method:`PUT`,body:JSON.stringify({platform:e,values:t})})}async function m(){return s(`/api/hermes/weixin/qrcode`)}async function h(e){return s(`/api/hermes/weixin/qrcode/status?qrcode=${encodeURIComponent(e)}`)}async function g(e){await s(`/api/hermes/weixin/save`,{method:`POST`,body:JSON.stringify(e)})}var _=l(`settings`,()=>{let e=i(!1),t=i(!1),n=i({}),r=i({}),a=i({}),o=i({}),s=i({}),c=i({}),l=i({}),u=i({}),p=i({}),m=i({}),h=i({}),g=i({}),_=i({}),v=i({}),y=i({});async function b(){e.value=!0;try{let e=await d();n.value=e.display||{},r.value=e.agent||{},a.value=e.memory||{},o.value=e.session_reset||{},s.value=e.privacy||{},c.value=e.telegram||{},l.value=e.discord||{},u.value=e.slack||{},p.value=e.whatsapp||{},m.value=e.matrix||{},h.value=e.wecom||{},g.value=e.feishu||{},_.value=e.dingtalk||{},v.value=e.weixin||{},y.value=e.platforms||{}}catch(e){console.error(`Failed to fetch settings:`,e)}finally{e.value=!1}}async function x(e,i){t.value=!0;try{switch(await f(e,i),e){case`display`:n.value={...n.value,...i};break;case`agent`:r.value={...r.value,...i};break;case`memory`:a.value={...a.value,...i};break;case`session_reset`:o.value={...o.value,...i};break;case`privacy`:s.value={...s.value,...i};break;case`telegram`:c.value={...c.value,...i};break;case`discord`:l.value={...l.value,...i};break;case`slack`:u.value={...u.value,...i};break;case`whatsapp`:p.value={...p.value,...i};break;case`matrix`:m.value={...m.value,...i};break;case`wechat`:case`wecom`:h.value={...h.value,...i};break;case`feishu`:g.value={...g.value,...i};break;case`dingtalk`:_.value={..._.value,...i};break;case`weixin`:v.value={...v.value,...i};break;case`platforms`:for(let[e,t]of Object.entries(i))y.value={...y.value,[e]:{...y.value[e]||{},...t}};break}}finally{t.value=!1}}return{loading:e,saving:t,display:n,agent:r,memory:a,sessionReset:o,privacy:s,telegram:c,discord:l,slack:u,whatsapp:p,matrix:m,wecom:h,feishu:g,dingtalk:_,weixin:v,platforms:y,fetchSettings:b,saveSection:x}}),v={class:`setting-row`},y={class:`setting-info`},b={class:`setting-label`},x={key:0,class:`setting-hint`},S={class:`setting-control`},C=u(o({__name:`SettingRow`,props:{label:{},hint:{}},setup(i){return(o,s)=>(n(),e(`div`,v,[c(`div`,y,[c(`label`,b,a(i.label),1),i.hint?(n(),e(`p`,x,a(i.hint),1)):t(``,!0)]),c(`div`,S,[r(o.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-b81640b4`]]);export{p as a,h as i,_ as n,g as o,m as r,C as t};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,L as c,N as l,Q as u,R as d,S as f,U as p,X as m,Z as h,ct as g,dt as _,f as v,gt as y,h as b,j as x,k as S,mt as C,pt as w,q as T,w as E,y as D}from"./router-Dj-Nmg7q.js";import{r as O,t as k}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{$ as ee,B as te,I as ne,K as A,Y as j,Z as re,c as ie,ct as M,dt as N,ft as P,j as F,pt as I,q as L,st as R,ut as z,z as ae}from"./browser-CQRjhbaB.js";import{M as oe,c as se,d as ce,v as B,y as le}from"./Popover-mIRPCy7U.js";import{d as ue,l as V}from"./Suffix-DgzfIwzx.js";import{c as H,o as de,r as fe,s as pe}from"./fade-in.cssr-lwO9nLky.js";import{n as me,t as he}from"./Close-CKHcXisf.js";import{c as U,t as W}from"./Select-uZBC8HC2.js";import{t as G}from"./Button-EoeZgIFH.js";import{t as ge}from"./omit-1BRB6K75.js";import{t as _e}from"./Add-Cc7cgBoB.js";import{t as K}from"./Input-Bk7XdoG-.js";import{t as q}from"./InputNumber-Dn0EHi-K.js";import{t as J}from"./use-message-BgToAqhv.js";import{t as Y}from"./Switch--HhY1uSh.js";import{n as ve}from"./light-CjCy-Dkn.js";import{t as X}from"./Spin-ChbFBUOD.js";import{t as ye}from"./useTheme-BUShiwRu.js";import{o as be}from"./app-BMobzABI.js";import{n as Z,t as Q}from"./SettingRow-D9R65bDj.js";import{t as xe}from"./models-DLQiHB7r.js";var Se=B(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[B(`&::-webkit-scrollbar`,{width:0,height:0})]),Ce=x({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=g(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=re();return Se.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:le,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return l(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),we=/\s/;function Te(e){for(var t=e.length;t--&&we.test(e.charAt(t)););return t}var Ee=/^\s+/;function De(e){return e&&e.slice(0,Te(e)+1).replace(Ee,``)}var Oe=NaN,ke=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Me=parseInt;function Ne(e){if(typeof e==`number`)return e;if(de(e))return Oe;if(F(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=F(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=De(e);var n=Ae.test(e);return n||je.test(e)?Me(e.slice(2),n?2:8):ke.test(e)?Oe:+e}var Pe=function(){return ne.Date.now()},Fe=`Expected a function`,Ie=Math.max,Le=Math.min;function Re(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Fe);t=Ne(t)||0,F(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ie(Ne(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?Le(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=Pe();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(Pe())}function x(){var e=Pe(),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 ze=`Expected a function`;function Be(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ze);return F(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Re(e,t,{leading:r,maxWait:t,trailing:i})}var Ve=ee(`n-tabs`),He={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]},$=x({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:He,slots:Object,setup(e){let t=a(Ve,null);return t||j(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return l(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ue=x({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},ge(He,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:r,typeRef:i,closableRef:o,tabStyleRef:s,addTabStyleRef:c,tabClassRef:l,addTabClassRef:u,tabChangeIdRef:d,onBeforeLeaveRef:f,triggerRef:p,handleAdd:m,activateTab:h,handleClose:g}=a(Ve);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:i,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:s,trigger:u,$slots:{default:d}}=this,f=i??a;return l(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?l(`div`,{class:`${t}-tabs-tab-pad`}):null,l(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},c({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${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)),l(`span`,{class:`${t}-tabs-tab__label`},e?l(D,null,l(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),l(fe,{clsPrefix:t},{default:()=>l(_e,null)})):d?d():typeof f==`object`?f:se(f??n)),s&&this.type===`card`?l(he,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),We=M(`tabs`,`
1
+ import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,L as c,N as l,Q as u,R as d,S as f,U as p,X as m,Z as h,ct as g,dt as _,f as v,gt as y,h as b,j as x,k as S,mt as C,pt as w,q as T,w as E,y as D}from"./router-HHMeDEaP.js";import{r as O,t as k}from"./_plugin-vue_export-helper-DgUZPfuZ.js";import{$ as ee,B as te,I as ne,K as A,Y as j,Z as re,c as ie,ct as M,dt as N,ft as P,j as F,pt as I,q as L,st as R,ut as z,z as ae}from"./browser-vxCOMmsq.js";import{M as oe,c as se,d as ce,v as B,y as le}from"./Popover-DiVI0l6E.js";import{d as ue,l as V}from"./Suffix-D6x-7akR.js";import{c as H,o as de,r as fe,s as pe}from"./fade-in.cssr-DVg2CkO3.js";import{n as me,t as he}from"./Close-DbXijZpL.js";import{c as U,t as W}from"./Select-BqUA1wxE.js";import{t as G}from"./Button-uvjCWO-i.js";import{t as ge}from"./omit-1BRB6K75.js";import{t as _e}from"./Add-BChxDDdy.js";import{t as K}from"./Input-CjlUbV0M.js";import{t as q}from"./InputNumber-CPEjoOAv.js";import{t as J}from"./use-message-DBTY4945.js";import{t as Y}from"./Switch-BvHRSSqt.js";import{n as ve}from"./light-DPRJ1OEN.js";import{t as X}from"./Spin-DwHJdgNz.js";import{t as ye}from"./useTheme-D58Cg7k2.js";import{o as be}from"./app-DUt8TNq3.js";import{n as Z,t as Q}from"./SettingRow-CK0bHtaz.js";import{t as xe}from"./models-BzEeJuoO.js";var Se=B(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[B(`&::-webkit-scrollbar`,{width:0,height:0})]),Ce=x({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=g(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=re();return Se.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:le,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return l(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),we=/\s/;function Te(e){for(var t=e.length;t--&&we.test(e.charAt(t)););return t}var Ee=/^\s+/;function De(e){return e&&e.slice(0,Te(e)+1).replace(Ee,``)}var Oe=NaN,ke=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Me=parseInt;function Ne(e){if(typeof e==`number`)return e;if(de(e))return Oe;if(F(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=F(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=De(e);var n=Ae.test(e);return n||je.test(e)?Me(e.slice(2),n?2:8):ke.test(e)?Oe:+e}var Pe=function(){return ne.Date.now()},Fe=`Expected a function`,Ie=Math.max,Le=Math.min;function Re(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Fe);t=Ne(t)||0,F(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ie(Ne(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?Le(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=Pe();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(Pe())}function x(){var e=Pe(),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 ze=`Expected a function`;function Be(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ze);return F(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Re(e,t,{leading:r,maxWait:t,trailing:i})}var Ve=ee(`n-tabs`),He={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]},$=x({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:He,slots:Object,setup(e){let t=a(Ve,null);return t||j(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return l(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ue=x({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},ge(He,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:r,typeRef:i,closableRef:o,tabStyleRef:s,addTabStyleRef:c,tabClassRef:l,addTabClassRef:u,tabChangeIdRef:d,onBeforeLeaveRef:f,triggerRef:p,handleAdd:m,activateTab:h,handleClose:g}=a(Ve);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:i,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:s,trigger:u,$slots:{default:d}}=this,f=i??a;return l(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?l(`div`,{class:`${t}-tabs-tab-pad`}):null,l(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},c({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${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)),l(`span`,{class:`${t}-tabs-tab__label`},e?l(D,null,l(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),l(fe,{clsPrefix:t},{default:()=>l(_e,null)})):d?d():typeof f==`object`?f:se(f??n)),s&&this.type===`card`?l(he,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),We=M(`tabs`,`
2
2
  box-sizing: border-box;
3
3
  width: 100%;
4
4
  display: flex;
@@ -1 +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-Dj-Nmg7q.js";import{r as y,t as b}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{t as x}from"./Input-Bk7XdoG-.js";import{t as S}from"./use-message-BgToAqhv.js";import{t as C}from"./Switch--HhY1uSh.js";import{t as w}from"./MarkdownRenderer-BbedVxvo.js";import{i as T,n as E,o as ee,r as D}from"./skills-G7EoEvdS.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-d9844f2e`]]),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-aa8397b8`]]),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,d(h(c)(`common.loading`)),1)):(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,d(h(c)(`skills.noMatch`)),1)]))])]))])]))}}),[[`__scopeId`,`data-v-0147c6c2`]]);export{le as default};
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-HHMeDEaP.js";import{r as y,t as b}from"./_plugin-vue_export-helper-DgUZPfuZ.js";import{t as x}from"./Input-CjlUbV0M.js";import{t as S}from"./use-message-DBTY4945.js";import{t as C}from"./Switch-BvHRSSqt.js";import{t as w}from"./MarkdownRenderer-CY7d2L7Z.js";import{i as T,n as E,o as ee,r as D}from"./skills-Be8Mzr1r.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-d9844f2e`]]),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-aa8397b8`]]),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,d(h(c)(`common.loading`)),1)):(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,d(h(c)(`skills.noMatch`)),1)]))])]))])]))}}),[[`__scopeId`,`data-v-0147c6c2`]]);export{le as default};
@@ -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-Dj-Nmg7q.js";import{B as o,c as s,ct as c,dt as l,i as u,pt as d,r as f,st as p,z as m}from"./browser-CQRjhbaB.js";import{l as h,t as g}from"./fade-in.cssr-lwO9nLky.js";import{n as _}from"./Close-CKHcXisf.js";import{n as v}from"./light-oE8MEiWL.js";var y=p([p(`@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-HHMeDEaP.js";import{B as o,c as s,ct as c,dt as l,i as u,pt as d,r as f,st as p,z as m}from"./browser-vxCOMmsq.js";import{l as h,t as g}from"./fade-in.cssr-DVg2CkO3.js";import{n as _}from"./Close-DbXijZpL.js";import{n as v}from"./light-CKDlpgGU.js";var y=p([p(`@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-Dj-Nmg7q.js";import{B as _,V as v,W as y,a as b,c as x,ct as S,d as ee,dt as C,l as w,n as T,o as E,r as D,st as O,ut as k,z as te}from"./browser-CQRjhbaB.js";import{c as A,l as j,n as ne,r as re,s as ie,t as M}from"./fade-in.cssr-lwO9nLky.js";function ae(e){return e.composedPath()[0]||null}function N(e){return e.composedPath()[0]}var oe={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function P(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(N(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(N(n))},i=r=>{e&&(t.contains(N(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 F(e,t,n){let r=oe[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=P(e,t,n)),a}function se(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function ce(){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=N(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,se(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(I(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:L,off:R}=ce();function le(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var ue=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function de(){return ue}function fe(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 pe(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],me=function(){return z.some(function(e){return e.activeTargets.length>0})},he=function(){return z.some(function(e){return e.skippedTargets.length>0})},ge=`ResizeObserver loop completed with undelivered notifications.`,_e=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ge}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ge),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)},ve=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,V(this)}return e}(),ye=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}(),be=function(e){return e instanceof SVGElement&&`getBBox`in e},xe=function(e){if(be(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)},H=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},U=typeof window<`u`?window:{},W=new WeakMap,G=/auto|scroll/,Ce=/^tb|vertical/,we=/msie|trident/i.test(U.navigator&&U.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 ve((n?t:e)||0,(n?e:t)||0)},Te=V({devicePixelContentBoxSize:q(),borderBoxSize:q(),contentBoxSize:q(),contentRect:new ye(0,0,0,0)}),Ee=function(e,t){if(t===void 0&&(t=!1),W.has(e)&&!t)return W.get(e);if(xe(e))return W.set(e,Te),Te;var n=getComputedStyle(e),r=be(e)&&e.ownerSVGElement&&e.getBBox(),i=!we&&n.boxSizing===`border-box`,a=Ce.test(n.writingMode||``),o=!r&&G.test(n.overflowY||``),s=!r&&G.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,ee=i?_+y:0,C=r?r.width:K(n.width)-S-x,w=r?r.height:K(n.height)-ee-b,T=C+g+x+v,E=w+_+b+y,D=V({devicePixelContentBoxSize:q(Math.round(C*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:q(T,E,a),contentBoxSize:q(C,w,a),contentRect:new ye(d,c,C,w)});return W.set(e,D),D},De=function(e,t,n){var r=Ee(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=Ee(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}(),J=function(e){if(xe(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ke=function(){var e=1/0,t=[];z.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=J(t.target);r.push(n),t.lastReportedSize=De(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},Ae=function(e){z.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(J(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},je=function(){var e=0;for(Ae(e);me();)e=ke(),Ae(e);return he()&&_e(),e>0},Y,Me=[],X=function(){return Me.splice(0).forEach(function(e){return e()})},Ne=function(e){if(!Y){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return X()}).observe(n,{characterData:!0}),Y=function(){n.textContent=`${t?t--:t++}`}}Me.push(e),Y()},Pe=function(e){Ne(function(){requestAnimationFrame(e)})},Z=0,Fe=function(){return!!Z},Ie=250,Le={attributes:!0,characterData:!0,childList:!0,subtree:!0},Re=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],ze=function(e){return e===void 0&&(e=0),Date.now()+e},Be=!1,Ve=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=Ie),!Be){Be=!0;var n=ze(e);Pe(function(){var r=!1;try{r=je()}finally{if(Be=!1,e=n-ze(),!Fe())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,Le)};document.body?t():U.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Re.forEach(function(t){return U.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Re.forEach(function(t){return U.removeEventListener(t,e.listener,!0)}),!0)},e}()),He=function(e){!Z&&e>0&&Ve.start(),Z+=e,!Z&&Ve.stop()},Ue=function(e){return!be(e)&&!H(e)&&getComputedStyle(e).display===`inline`},We=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=De(this.target,this.observedBox,!0);return Ue(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ge=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ke=new WeakMap,qe=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Je=function(){function e(){}return e.connect=function(e,t){var n=new Ge(e,t);Ke.set(e,n)},e.observe=function(e,t,n){var r=Ke.get(e),i=r.observationTargets.length===0;qe(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new We(t,n&&n.box)),He(1),Ve.schedule())},e.unobserve=function(e,t){var n=Ke.get(e),r=qe(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),He(-1))},e.disconnect=function(e){var t=this,n=Ke.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ye=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.`);Je.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`);Je.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`);Je.unobserve(this,e)},e.prototype.disconnect=function(){Je.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Xe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ye)(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))}},Ze=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){pe(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){pe(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Xe.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Xe.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Qe(e){let{left:t,right:n,top:r,bottom:i}=A(e);return`${r} ${t} ${i} ${n}`}var $e=m({render(){var e;return(e=this.$slots).default?.call(e)}}),et={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 tt(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)?rt(s,e=>e.test(o)):nt(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 nt(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function it(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 at={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`}},ot=(e,t,n)=>{let r,i=at[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},st={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ct=(e,t,n,r)=>st[e],lt={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`})},ut={ordinalNumber:it({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`})},dt={name:`en-US`,locale:{code:`en-US`,formatDistance:ot,formatLong:{date:tt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tt({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:tt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ct,localize:lt,match:ut,options:{weekStartsOn:0,firstWeekContainsDate:1}}};function ft(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(v,null)||{},a=e(()=>r?.value?.[n]??et[n]);return{dateLocaleRef:e(()=>i?.value??dt),localeRef:a}}var pt=m({name:`ChevronDown`,render(){return o(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},o(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),mt=ne(`clear`,()=>o(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},o(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},o(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),ht=S(`base-clear`,`
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-HHMeDEaP.js";import{B as _,V as v,W as y,a as b,c as x,ct as S,d as ee,dt as C,l as w,n as T,o as E,r as D,st as O,ut as k,z as te}from"./browser-vxCOMmsq.js";import{c as A,l as j,n as ne,r as re,s as ie,t as M}from"./fade-in.cssr-DVg2CkO3.js";function ae(e){return e.composedPath()[0]||null}function N(e){return e.composedPath()[0]}var oe={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function P(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(N(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(N(n))},i=r=>{e&&(t.contains(N(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 F(e,t,n){let r=oe[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=P(e,t,n)),a}function se(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=F(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function ce(){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=N(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,se(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(I(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:L,off:R}=ce();function le(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var ue=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function de(){return ue}function fe(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 pe(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],me=function(){return z.some(function(e){return e.activeTargets.length>0})},he=function(){return z.some(function(e){return e.skippedTargets.length>0})},ge=`ResizeObserver loop completed with undelivered notifications.`,_e=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ge}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ge),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)},ve=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,V(this)}return e}(),ye=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}(),be=function(e){return e instanceof SVGElement&&`getBBox`in e},xe=function(e){if(be(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)},H=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},U=typeof window<`u`?window:{},W=new WeakMap,G=/auto|scroll/,Ce=/^tb|vertical/,we=/msie|trident/i.test(U.navigator&&U.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 ve((n?t:e)||0,(n?e:t)||0)},Te=V({devicePixelContentBoxSize:q(),borderBoxSize:q(),contentBoxSize:q(),contentRect:new ye(0,0,0,0)}),Ee=function(e,t){if(t===void 0&&(t=!1),W.has(e)&&!t)return W.get(e);if(xe(e))return W.set(e,Te),Te;var n=getComputedStyle(e),r=be(e)&&e.ownerSVGElement&&e.getBBox(),i=!we&&n.boxSizing===`border-box`,a=Ce.test(n.writingMode||``),o=!r&&G.test(n.overflowY||``),s=!r&&G.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,ee=i?_+y:0,C=r?r.width:K(n.width)-S-x,w=r?r.height:K(n.height)-ee-b,T=C+g+x+v,E=w+_+b+y,D=V({devicePixelContentBoxSize:q(Math.round(C*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:q(T,E,a),contentBoxSize:q(C,w,a),contentRect:new ye(d,c,C,w)});return W.set(e,D),D},De=function(e,t,n){var r=Ee(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=Ee(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}(),J=function(e){if(xe(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ke=function(){var e=1/0,t=[];z.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=J(t.target);r.push(n),t.lastReportedSize=De(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},Ae=function(e){z.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(J(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},je=function(){var e=0;for(Ae(e);me();)e=ke(),Ae(e);return he()&&_e(),e>0},Y,Me=[],X=function(){return Me.splice(0).forEach(function(e){return e()})},Ne=function(e){if(!Y){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return X()}).observe(n,{characterData:!0}),Y=function(){n.textContent=`${t?t--:t++}`}}Me.push(e),Y()},Pe=function(e){Ne(function(){requestAnimationFrame(e)})},Z=0,Fe=function(){return!!Z},Ie=250,Le={attributes:!0,characterData:!0,childList:!0,subtree:!0},Re=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],ze=function(e){return e===void 0&&(e=0),Date.now()+e},Be=!1,Ve=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=Ie),!Be){Be=!0;var n=ze(e);Pe(function(){var r=!1;try{r=je()}finally{if(Be=!1,e=n-ze(),!Fe())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,Le)};document.body?t():U.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Re.forEach(function(t){return U.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Re.forEach(function(t){return U.removeEventListener(t,e.listener,!0)}),!0)},e}()),He=function(e){!Z&&e>0&&Ve.start(),Z+=e,!Z&&Ve.stop()},Ue=function(e){return!be(e)&&!H(e)&&getComputedStyle(e).display===`inline`},We=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=De(this.target,this.observedBox,!0);return Ue(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ge=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ke=new WeakMap,qe=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Je=function(){function e(){}return e.connect=function(e,t){var n=new Ge(e,t);Ke.set(e,n)},e.observe=function(e,t,n){var r=Ke.get(e),i=r.observationTargets.length===0;qe(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new We(t,n&&n.box)),He(1),Ve.schedule())},e.unobserve=function(e,t){var n=Ke.get(e),r=qe(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),He(-1))},e.disconnect=function(e){var t=this,n=Ke.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ye=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.`);Je.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`);Je.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`);Je.unobserve(this,e)},e.prototype.disconnect=function(){Je.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Xe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ye)(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))}},Ze=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){pe(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){pe(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Xe.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Xe.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Qe(e){let{left:t,right:n,top:r,bottom:i}=A(e);return`${r} ${t} ${i} ${n}`}var $e=m({render(){var e;return(e=this.$slots).default?.call(e)}}),et={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 tt(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)?rt(s,e=>e.test(o)):nt(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 nt(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function it(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 at={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`}},ot=(e,t,n)=>{let r,i=at[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},st={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ct=(e,t,n,r)=>st[e],lt={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`})},ut={ordinalNumber:it({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`})},dt={name:`en-US`,locale:{code:`en-US`,formatDistance:ot,formatLong:{date:tt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tt({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:tt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ct,localize:lt,match:ut,options:{weekStartsOn:0,firstWeekContainsDate:1}}};function ft(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(v,null)||{},a=e(()=>r?.value?.[n]??et[n]);return{dateLocaleRef:e(()=>i?.value??dt),localeRef:a}}var pt=m({name:`ChevronDown`,render(){return o(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},o(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),mt=ne(`clear`,()=>o(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},o(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},o(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),ht=S(`base-clear`,`
2
2
  flex-shrink: 0;
3
3
  height: 1em;
4
4
  width: 1em;
@@ -1,4 +1,4 @@
1
- import{C as e,N as t,ct as n,dt as r,j as i}from"./router-Dj-Nmg7q.js";import{B as a,K as o,R as s,U as c,a as l,c as u,ct as d,dt as f,ft as p,n as m,nt as h,o as g,pt as _,q as v,r as y,st as b,ut as x,z as S}from"./browser-CQRjhbaB.js";import{d as C}from"./Suffix-DgzfIwzx.js";import{l as w,s as T}from"./fade-in.cssr-lwO9nLky.js";import{t as E}from"./_common-Yp55QE79.js";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 ${h(t,{alpha:.2})}`})}var O={name:`Switch`,common:m,self:D},k=d(`switch`,`
1
+ import{C as e,N as t,ct as n,dt as r,j as i}from"./router-HHMeDEaP.js";import{B as a,K as o,R as s,U as c,a as l,c as u,ct as d,dt as f,ft as p,n as m,nt as h,o as g,pt as _,q as v,r as y,st as b,ut as x,z as S}from"./browser-vxCOMmsq.js";import{d as C}from"./Suffix-D6x-7akR.js";import{l as w,s as T}from"./fade-in.cssr-DVg2CkO3.js";import{t as E}from"./_common-Yp55QE79.js";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 ${h(t,{alpha:.2})}`})}var O={name:`Switch`,common:m,self:D},k=d(`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-Dj-Nmg7q.js";import{$ as o,B as s,K as c,c as l,ct as u,d,dt as f,ft as p,n as m,nt as h,pt as g,q as _,st as v,ut as y,z as b}from"./browser-CQRjhbaB.js";import{c as x}from"./fade-in.cssr-lwO9nLky.js";import{t as S}from"./Close-CKHcXisf.js";import{o as C}from"./Button-EoeZgIFH.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:g,borderRadiusSmall:_,fontSizeMini:v,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:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:d,fontSizeTiny:v,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:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${h(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:h(i,{alpha:.12}),colorBorderedPrimary:h(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:h(i,{alpha:.12}),closeColorPressedPrimary:h(i,{alpha:.18}),borderInfo:`1px solid ${h(a,{alpha:.3})}`,textColorInfo:a,colorInfo:h(a,{alpha:.12}),colorBorderedInfo:h(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:h(a,{alpha:.12}),closeColorPressedInfo:h(a,{alpha:.18}),borderSuccess:`1px solid ${h(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:h(o,{alpha:.12}),colorBorderedSuccess:h(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:h(o,{alpha:.12}),closeColorPressedSuccess:h(o,{alpha:.18}),borderWarning:`1px solid ${h(s,{alpha:.35})}`,textColorWarning:s,colorWarning:h(s,{alpha:.15}),colorBorderedWarning:h(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:h(s,{alpha:.12}),closeColorPressedWarning:h(s,{alpha:.18}),borderError:`1px solid ${h(c,{alpha:.23})}`,textColorError:c,colorError:h(c,{alpha:.1}),colorBorderedError:h(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:h(c,{alpha:.12}),closeColorPressedError:h(c,{alpha:.18})})}var E={name:`Tag`,common:m,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=u(`tag`,`
1
+ import{C as e,K as t,N as n,ct as r,dt as i,j as a}from"./router-HHMeDEaP.js";import{$ as o,B as s,K as c,c as l,ct as u,d,dt as f,ft as p,n as m,nt as h,pt as g,q as _,st as v,ut as y,z as b}from"./browser-vxCOMmsq.js";import{c as x}from"./fade-in.cssr-DVg2CkO3.js";import{t as S}from"./Close-DbXijZpL.js";import{o as C}from"./Button-uvjCWO-i.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:g,borderRadiusSmall:_,fontSizeMini:v,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:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:d,fontSizeTiny:v,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:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${h(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:h(i,{alpha:.12}),colorBorderedPrimary:h(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:h(i,{alpha:.12}),closeColorPressedPrimary:h(i,{alpha:.18}),borderInfo:`1px solid ${h(a,{alpha:.3})}`,textColorInfo:a,colorInfo:h(a,{alpha:.12}),colorBorderedInfo:h(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:h(a,{alpha:.12}),closeColorPressedInfo:h(a,{alpha:.18}),borderSuccess:`1px solid ${h(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:h(o,{alpha:.12}),colorBorderedSuccess:h(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:h(o,{alpha:.12}),closeColorPressedSuccess:h(o,{alpha:.18}),borderWarning:`1px solid ${h(s,{alpha:.35})}`,textColorWarning:s,colorWarning:h(s,{alpha:.15}),colorBorderedWarning:h(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:h(s,{alpha:.12}),closeColorPressedWarning:h(s,{alpha:.18}),borderError:`1px solid ${h(c,{alpha:.23})}`,textColorError:c,colorError:h(c,{alpha:.1}),colorBorderedError:h(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:h(c,{alpha:.12}),closeColorPressedError:h(c,{alpha:.18})})}var E={name:`Tag`,common:m,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=u(`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,4 +1,4 @@
1
- import{A as e,C as t,D as n,E as r,G as i,Q as a,T as o,U as s,W as c,_ as l,ct as u,gt as d,ht as f,i as p,j as m,k as h,mt as g,pt as _,q as ee,r as te,w as v,y as ne}from"./router-Dj-Nmg7q.js";import{r as re,t as ie}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{t as ae}from"./Select-uZBC8HC2.js";import{t as oe}from"./Button-EoeZgIFH.js";import{t as se}from"./Tooltip-9tdvSKGi.js";import{t as y}from"./use-message-BgToAqhv.js";import{t as ce}from"./Popconfirm-C-M2anVL.js";var b=Object.defineProperty,le=Object.getOwnPropertyDescriptor,ue=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{for(var i=r>1?void 0:r?le(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&b(t,n,i),i},S=(e,t)=>(n,r)=>t(n,r,e),C=`Terminal input`,de={get:()=>C,set:e=>C=e},w=`Too much output to announce, navigate to rows manually to read`,fe={get:()=>w,set:e=>w=e};function pe(e){return e.replace(/\r?\n/g,`\r`)}function T(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function me(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function E(e,t,n,r){e.stopPropagation(),e.clipboardData&&he(e.clipboardData.getData(`text/plain`),t,n,r)}function he(e,t,n,r){e=pe(e),e=T(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function ge(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function _e(e,t,n,r,i){ge(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function ve(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function ye(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var be=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},xe=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},Se=``,Ce=` `,we=class e{constructor(){this.fg=0,this.bg=0,this.extended=new Te}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Te=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ee=class e extends we{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Te,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?ve(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},De=`di$target`,Oe=`di$dependencies`,ke=new Map;function Ae(e){return e[Oe]||[]}function D(e){if(ke.has(e))return ke.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);je(t,e,r)};return t._id=e,ke.set(e,t),t}function je(e,t,n){t[De]===t?t[Oe].push({id:e,index:n}):(t[Oe]=[{id:e,index:n}],t[De]=t)}var O=D(`BufferService`),Me=D(`CoreMouseService`),Ne=D(`CoreService`),Pe=D(`CharsetService`),Fe=D(`InstantiationService`),Ie=D(`LogService`),k=D(`OptionsService`),Le=D(`OscLinkService`),Re=D(`UnicodeService`),ze=D(`DecorationService`),Be=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new Ee,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(!(c===-1&&!n.hasContent(t))){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId)if(c===-1){c=t,s=a.extended.urlId;continue}else l=a.extended.urlId!==s;else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):Ve(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};Be=x([S(0,O),S(1,k),S(2,Le)],Be);function Ve(e,t){if(confirm(`Do you want to navigate to ${t}?
1
+ import{A as e,C as t,D as n,E as r,G as i,Q as a,T as o,U as s,W as c,_ as l,ct as u,gt as d,ht as f,i as p,j as m,k as h,mt as g,pt as _,q as ee,r as te,w as v,y as ne}from"./router-HHMeDEaP.js";import{r as re,t as ie}from"./_plugin-vue_export-helper-DgUZPfuZ.js";import{t as ae}from"./Select-BqUA1wxE.js";import{t as oe}from"./Button-uvjCWO-i.js";import{t as se}from"./Tooltip-BM4wl764.js";import{t as y}from"./use-message-DBTY4945.js";import{t as ce}from"./Popconfirm-Cnb_uQVo.js";var b=Object.defineProperty,le=Object.getOwnPropertyDescriptor,ue=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{for(var i=r>1?void 0:r?le(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&b(t,n,i),i},S=(e,t)=>(n,r)=>t(n,r,e),C=`Terminal input`,de={get:()=>C,set:e=>C=e},w=`Too much output to announce, navigate to rows manually to read`,fe={get:()=>w,set:e=>w=e};function pe(e){return e.replace(/\r?\n/g,`\r`)}function T(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function me(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function E(e,t,n,r){e.stopPropagation(),e.clipboardData&&he(e.clipboardData.getData(`text/plain`),t,n,r)}function he(e,t,n,r){e=pe(e),e=T(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function ge(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function _e(e,t,n,r,i){ge(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function ve(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function ye(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var be=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},xe=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},Se=``,Ce=` `,we=class e{constructor(){this.fg=0,this.bg=0,this.extended=new Te}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Te=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ee=class e extends we{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Te,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?ve(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},De=`di$target`,Oe=`di$dependencies`,ke=new Map;function Ae(e){return e[Oe]||[]}function D(e){if(ke.has(e))return ke.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);je(t,e,r)};return t._id=e,ke.set(e,t),t}function je(e,t,n){t[De]===t?t[Oe].push({id:e,index:n}):(t[Oe]=[{id:e,index:n}],t[De]=t)}var O=D(`BufferService`),Me=D(`CoreMouseService`),Ne=D(`CoreService`),Pe=D(`CharsetService`),Fe=D(`InstantiationService`),Ie=D(`LogService`),k=D(`OptionsService`),Le=D(`OscLinkService`),Re=D(`UnicodeService`),ze=D(`DecorationService`),Be=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new Ee,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(!(c===-1&&!n.hasContent(t))){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId)if(c===-1){c=t,s=a.extended.urlId;continue}else l=a.extended.urlId!==s;else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):Ve(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};Be=x([S(0,O),S(1,k),S(2,Le)],Be);function Ve(e,t){if(confirm(`Do you want to navigate to ${t}?
2
2
 
3
3
  WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var He=D(`CharSizeService`),Ue=D(`CoreBrowserService`),We=D(`MouseService`),Ge=D(`RenderService`),Ke=D(`SelectionService`),qe=D(`CharacterJoinerService`),Je=D(`ThemeService`),Ye=D(`LinkProviderService`),Xe=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?nt.isErrorNoTelemetry(e)?new nt(e.message+`
4
4
 
@@ -1 +1 @@
1
- import{C as e,N as t,ct as n,j as r}from"./router-Dj-Nmg7q.js";import{B as i,c as a}from"./browser-CQRjhbaB.js";import{n as o,t as s}from"./Popover-mIRPCy7U.js";import{t as c}from"./light-DgIst23O.js";var l=r({name:`Tooltip`,props:Object.assign(Object.assign({},o),a.props),slots:Object,__popover__:!0,setup(t){let{mergedClsPrefixRef:r}=i(t),o=a(`Tooltip`,`-tooltip`,void 0,c,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(s,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{l as t};
1
+ import{C as e,N as t,ct as n,j as r}from"./router-HHMeDEaP.js";import{B as i,c as a}from"./browser-vxCOMmsq.js";import{n as o,t as s}from"./Popover-DiVI0l6E.js";import{t as c}from"./light-3rSjNeC-.js";var l=r({name:`Tooltip`,props:Object.assign(Object.assign({},o),a.props),slots:Object,__popover__:!0,setup(t){let{mergedClsPrefixRef:r}=i(t),o=a(`Tooltip`,`-tooltip`,void 0,c,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(s,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{l as t};
@@ -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-Dj-Nmg7q.js";import{n as ee}from"./pinia-Dp_b1vdW.js";import{r as g,t as _}from"./_plugin-vue_export-helper-Cnn0Z73x.js";import{t as v}from"./Button-EoeZgIFH.js";import{r as y}from"./sessions-C0kvgvBm.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))+` `+c(f(t)(`usage.tokens`)),1))])]))}}),[[`__scopeId`,`data-v-3a594781`]]),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-d364aa35`]]),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-2caa0ddc`]]),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-c0e83cbe`]]);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-HHMeDEaP.js";import{n as ee}from"./pinia-BoNLlsLy.js";import{r as g,t as _}from"./_plugin-vue_export-helper-DgUZPfuZ.js";import{t as v}from"./Button-uvjCWO-i.js";import{r as y}from"./sessions-BmxS_BoH.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))+` `+c(f(t)(`usage.tokens`)),1))])]))}}),[[`__scopeId`,`data-v-3a594781`]]),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-d364aa35`]]),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-2caa0ddc`]]),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-c0e83cbe`]]);export{de as default};
@@ -1 +1 @@
1
- import{N as e}from"./router-Dj-Nmg7q.js";import{n as t}from"./fade-in.cssr-lwO9nLky.js";function n(e){return Object.keys(e)}var r=t(`warning`,()=>e(`svg`,{viewBox:`0 0 24 24`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},e(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},e(`g`,{"fill-rule":`nonzero`},e(`path`,{d:`M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z`})))));export{n,r as t};
1
+ import{N as e}from"./router-HHMeDEaP.js";import{n as t}from"./fade-in.cssr-DVg2CkO3.js";function n(e){return Object.keys(e)}var r=t(`warning`,()=>e(`svg`,{viewBox:`0 0 24 24`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},e(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},e(`g`,{"fill-rule":`nonzero`},e(`path`,{d:`M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z`})))));export{n,r as t};