dimcode 0.0.12-beta.2 → 0.0.12-beta.3

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 (76) hide show
  1. package/assets/gui/200.html +1 -1
  2. package/assets/gui/404.html +1 -1
  3. package/assets/gui/_nuxt/{B4BeXTM8.js → 0lvo-1Wn.js} +1 -1
  4. package/assets/gui/_nuxt/{Cd_MtzEZ.js → BIYtAlzl.js} +32 -32
  5. package/assets/gui/_nuxt/{BTTJEMKv.js → CpLH-0oy.js} +1 -1
  6. package/assets/gui/_nuxt/Cv8uL8HE.js +2 -0
  7. package/assets/gui/_nuxt/{CBflTB_3.js → DtCrOtYE.js} +1 -1
  8. package/assets/gui/_nuxt/{ULB_ug-y.js → DzRKJGL0.js} +200 -200
  9. package/assets/gui/_nuxt/{_baseUniq-BP57Elhf.js → _baseUniq-ehq7CflS.js} +1 -1
  10. package/assets/gui/_nuxt/{arc-Y1WZXZUo.js → arc-C77pA5_q.js} +1 -1
  11. package/assets/gui/_nuxt/{architectureDiagram-VXUJARFQ-aO7Rb24c.js → architectureDiagram-VXUJARFQ-BUlQXimy.js} +1 -1
  12. package/assets/gui/_nuxt/{blockDiagram-VD42YOAC-B3uFbaWi.js → blockDiagram-VD42YOAC-CEYUcgzw.js} +1 -1
  13. package/assets/gui/_nuxt/builds/latest.json +1 -1
  14. package/assets/gui/_nuxt/builds/meta/a86a34d7-9087-4f45-8cb5-4aba00e96a28.json +1 -0
  15. package/assets/gui/_nuxt/{c4Diagram-YG6GDRKO-DHJl7yiB.js → c4Diagram-YG6GDRKO-C7aW0wBr.js} +1 -1
  16. package/assets/gui/_nuxt/channel-CseRkzVy.js +1 -0
  17. package/assets/gui/_nuxt/{chunk-4BX2VUAB-CWm83ERH.js → chunk-4BX2VUAB-X1nL2Q_8.js} +1 -1
  18. package/assets/gui/_nuxt/{chunk-55IACEB6-Du_n8jC4.js → chunk-55IACEB6-C0gF82B7.js} +1 -1
  19. package/assets/gui/_nuxt/{chunk-B4BG7PRW-BTzCu0pf.js → chunk-B4BG7PRW-CXyPkDtS.js} +1 -1
  20. package/assets/gui/_nuxt/{chunk-DI55MBZ5-DBddr-cr.js → chunk-DI55MBZ5-kmljIE-I.js} +1 -1
  21. package/assets/gui/_nuxt/{chunk-FMBD7UC4-8fDVfHv2.js → chunk-FMBD7UC4-Djnad9Eh.js} +1 -1
  22. package/assets/gui/_nuxt/{chunk-QN33PNHL-CR7hsK0L.js → chunk-QN33PNHL-BP3nogXP.js} +1 -1
  23. package/assets/gui/_nuxt/{chunk-QZHKN3VN-DaFYAnGP.js → chunk-QZHKN3VN-urMdu3C_.js} +1 -1
  24. package/assets/gui/_nuxt/{chunk-TZMSLE5B-BjCFOyRb.js → chunk-TZMSLE5B-B6JoqG6g.js} +1 -1
  25. package/assets/gui/_nuxt/classDiagram-2ON5EDUG-BGzRbyO6.js +1 -0
  26. package/assets/gui/_nuxt/classDiagram-v2-WZHVMYZB-BGzRbyO6.js +1 -0
  27. package/assets/gui/_nuxt/clone-DeXr0S3i.js +1 -0
  28. package/assets/gui/_nuxt/{cose-bilkent-S5V4N54A-CA9LZ8Zj.js → cose-bilkent-S5V4N54A-D8ho0Gn2.js} +1 -1
  29. package/assets/gui/_nuxt/dVZhdREZ.js +521 -0
  30. package/assets/gui/_nuxt/{dagre-6UL2VRFP-CBQSftkS.js → dagre-6UL2VRFP-BgW4hHl-.js} +1 -1
  31. package/assets/gui/_nuxt/{defaultLocale-CCNgq9ws.js → defaultLocale-F7AzO-rD.js} +1 -1
  32. package/assets/gui/_nuxt/{diagram-PSM6KHXK-DsTyKY6m.js → diagram-PSM6KHXK-Cs40URaf.js} +1 -1
  33. package/assets/gui/_nuxt/{diagram-QEK2KX5R-D9APFlGs.js → diagram-QEK2KX5R-BjGWZIUV.js} +1 -1
  34. package/assets/gui/_nuxt/{diagram-S2PKOQOG-IKVKLS18.js → diagram-S2PKOQOG-BBw3ivua.js} +1 -1
  35. package/assets/gui/_nuxt/{erDiagram-Q2GNP2WA-CH15dTWb.js → erDiagram-Q2GNP2WA-deO2knnJ.js} +1 -1
  36. package/assets/gui/_nuxt/error-404.BAwq3L4-.css +1 -0
  37. package/assets/gui/_nuxt/error-500.DFXMopWe.css +1 -0
  38. package/assets/gui/_nuxt/{flowDiagram-NV44I4VS-zt5vccS4.js → flowDiagram-NV44I4VS-BGzkQf4f.js} +1 -1
  39. package/assets/gui/_nuxt/{ganttDiagram-JELNMOA3-DvD26RKf.js → ganttDiagram-JELNMOA3-uGGmt9u6.js} +1 -1
  40. package/assets/gui/_nuxt/{gitGraphDiagram-NY62KEGX-BEF64eCN.js → gitGraphDiagram-NY62KEGX-k1-pvUaj.js} +2 -2
  41. package/assets/gui/_nuxt/{graph-CvZayWR8.js → graph-BhaQ6R4I.js} +1 -1
  42. package/assets/gui/_nuxt/{infoDiagram-WHAUD3N6-BqqPKCej.js → infoDiagram-WHAUD3N6-DQZwFQkR.js} +1 -1
  43. package/assets/gui/_nuxt/{journeyDiagram-XKPGCS4Q-D37U2RLk.js → journeyDiagram-XKPGCS4Q-Df9E20_n.js} +1 -1
  44. package/assets/gui/_nuxt/{kanban-definition-3W4ZIXB7-o0rG_onk.js → kanban-definition-3W4ZIXB7-BVpYTEY7.js} +7 -7
  45. package/assets/gui/_nuxt/{layout-BVt2QQzT.js → layout-BAKUp7Sr.js} +1 -1
  46. package/assets/gui/_nuxt/{linear-CjtgffNP.js → linear-DHiUZNEj.js} +1 -1
  47. package/assets/gui/_nuxt/{min-CuqY3rK3.js → min-DuU_-kEA.js} +1 -1
  48. package/assets/gui/_nuxt/{mindmap-definition-VGOIOE7T-4BDFzlaj.js → mindmap-definition-VGOIOE7T-DyACRQ3F.js} +3 -3
  49. package/assets/gui/_nuxt/ordinal-BENe2yWM.js +1 -0
  50. package/assets/gui/_nuxt/{pieDiagram-ADFJNKIX-DOY587kc.js → pieDiagram-ADFJNKIX-DYs5xwST.js} +2 -2
  51. package/assets/gui/_nuxt/{quadrantDiagram-AYHSOK5B-C0uhckN3.js → quadrantDiagram-AYHSOK5B-rm7vlaiZ.js} +2 -2
  52. package/assets/gui/_nuxt/{requirementDiagram-UZGBJVZJ-D0pHyv4t.js → requirementDiagram-UZGBJVZJ-Cgzo6C1U.js} +1 -1
  53. package/assets/gui/_nuxt/{sankeyDiagram-TZEHDZUN-B9uFH2wG.js → sankeyDiagram-TZEHDZUN-1RQxRnuM.js} +1 -1
  54. package/assets/gui/_nuxt/{sequenceDiagram-WL72ISMW-CmLKcFaQ.js → sequenceDiagram-WL72ISMW-DjgdelRm.js} +1 -1
  55. package/assets/gui/_nuxt/{stateDiagram-FKZM4ZOC-DXLM32ee.js → stateDiagram-FKZM4ZOC--Oo6eWuM.js} +1 -1
  56. package/assets/gui/_nuxt/stateDiagram-v2-4FDKWEC3-BU0lrXh9.js +1 -0
  57. package/assets/gui/_nuxt/{timeline-definition-IT6M3QCI-Bz55IcKP.js → timeline-definition-IT6M3QCI-Co63ukhY.js} +1 -1
  58. package/assets/gui/_nuxt/{treemap-KMMF4GRG-D3QBlffy.js → treemap-KMMF4GRG-BGsGpUbe.js} +1 -1
  59. package/assets/gui/_nuxt/{vendor-katex.ltkKqWhd.css → vendor-katex.DmkBOJCM.css} +1 -1
  60. package/assets/gui/_nuxt/vendor-markstream.Cj37GgC9.css +1 -0
  61. package/assets/gui/_nuxt/{xychartDiagram-PRI3JC2R-CPU3Crx9.js → xychartDiagram-PRI3JC2R-80IeJN_W.js} +2 -2
  62. package/assets/gui/index.html +1 -1
  63. package/dist/cli.mjs +529 -529
  64. package/package.json +1 -1
  65. package/assets/gui/_nuxt/DLcXGJ1M.js +0 -261
  66. package/assets/gui/_nuxt/DTsXV384.js +0 -2
  67. package/assets/gui/_nuxt/builds/meta/b9a4030b-2b64-41b7-9aa4-5a9682917e49.json +0 -1
  68. package/assets/gui/_nuxt/channel-DpNic2cF.js +0 -1
  69. package/assets/gui/_nuxt/classDiagram-2ON5EDUG-CqyEtcjO.js +0 -1
  70. package/assets/gui/_nuxt/classDiagram-v2-WZHVMYZB-CqyEtcjO.js +0 -1
  71. package/assets/gui/_nuxt/clone-DCFnqWq9.js +0 -1
  72. package/assets/gui/_nuxt/error-404.DF6r4GP7.css +0 -1
  73. package/assets/gui/_nuxt/error-500.Bo5pzFPU.css +0 -1
  74. package/assets/gui/_nuxt/ordinal-Cboi1Yqb.js +0 -1
  75. package/assets/gui/_nuxt/stateDiagram-v2-4FDKWEC3-Bwg-9iwU.js +0 -1
  76. package/assets/gui/_nuxt/vendor-markstream.D6yyxftE.css +0 -1
@@ -1,4 +1,4 @@
1
- import{f as he,r as T,c as u,g as U,o as c,a as s,F as re,h as ve,i as Le,j as ue,t as E,k as jn,l as Ln,m as Dn,n as z,p as q,b as ee,w as we,d as ge,q as Y,s as Ha,v as xt,x as Ka,y as Xa,T as ar,z as ir,A as Me,B as Un,C as rt,D as nt,E as Ya,G as Bn,H as bn,I as Or,J as Za}from"./Cd_MtzEZ.js";import{_ as yt}from"./DlAUqK2U.js";const eo={class:"flex items-center justify-between mb-3"},to={class:"space-y-4"},ro={key:0,class:"space-y-4"},no={class:"flex items-start gap-2 mb-3"},so={class:"inline-flex items-center rounded bg-gray-100 dark:bg-gray-800 px-2 py-0.5 text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},ao={class:"text-sm text-text-primary-light dark:text-text-primary-dark"},oo={class:"space-y-2"},io=["type","name","checked","onChange"],lo={class:"font-medium"},co={class:"text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},uo={key:0,class:"space-y-2"},mo={class:"flex items-start gap-2 text-xs text-text-primary-light dark:text-text-primary-dark"},fo=["type","name","checked","onChange"],po={class:"font-medium"},go=["value","onInput"],xo={key:1,class:"text-xs text-text-secondary-light dark:text-text-secondary-dark"},yo={class:"mt-4 flex justify-end gap-2"},vo=["disabled"],ho=["disabled"],bo=he({__name:"AskUserDialog",props:{open:{type:Boolean},questions:{},selections:{},otherInputs:{},otherLabel:{},busy:{type:Boolean},isSelected:{type:Function}},emits:["cancel","submit","option-change","update:otherInputs"],setup(e,{expose:r}){const t=T(null);return r({dialogEl:t}),(n,a)=>e.open?(c(),u("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm px-4",role:"presentation",onClick:a[5]||(a[5]=o=>n.$emit("cancel"))},[s("div",{ref_key:"dialogEl",ref:t,class:"w-full max-w-2xl rounded-lg border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-5",role:"dialog","aria-modal":"true",tabindex:"0",onClick:a[3]||(a[3]=ue(()=>{},["stop"])),onKeydown:a[4]||(a[4]=Le(ue(o=>n.$emit("cancel"),["stop","prevent"]),["escape"]))},[s("div",eo,[a[7]||(a[7]=s("h3",{class:"text-sm font-semibold text-text-primary-light dark:text-text-primary-dark"}," Answer questions ",-1)),s("button",{class:"text-text-secondary-light dark:text-text-secondary-dark hover:text-primary",type:"button",onClick:a[0]||(a[0]=o=>n.$emit("cancel"))},[...a[6]||(a[6]=[s("span",{class:"material-icons-outlined text-base"},"close",-1)])])]),s("div",to,[a[9]||(a[9]=s("p",{class:"text-xs text-text-secondary-light dark:text-text-secondary-dark"}," Provide answers to let the agent continue. ",-1)),e.questions.length?(c(),u("div",ro,[(c(!0),u(re,null,ve(e.questions,(o,i)=>(c(),u("div",{key:`ask-${i}`,class:"rounded-md border border-border-light dark:border-border-dark p-3"},[s("div",no,[s("span",so,E(o.header),1),s("p",ao,E(o.question),1)]),s("div",oo,[(c(!0),u(re,null,ve(o.options||[],d=>(c(),u("label",{key:d.label,class:"flex items-start gap-2 text-xs text-text-primary-light dark:text-text-primary-dark"},[s("input",{type:o.multiSelect?"checkbox":"radio",name:`ask-${i}`,checked:e.isSelected(i,d.label),class:"mt-1 h-3 w-3",onChange:m=>n.$emit("option-change",i,d.label,m)},null,40,io),s("div",null,[s("div",lo,E(d.label),1),s("div",co,E(d.description),1)])]))),128)),o.multiSelect?U("",!0):(c(),u("div",uo,[s("label",mo,[s("input",{type:o.multiSelect?"checkbox":"radio",name:`ask-${i}`,checked:e.isSelected(i,e.otherLabel),class:"mt-1 h-3 w-3",onChange:d=>n.$emit("option-change",i,e.otherLabel,d)},null,40,fo),s("div",null,[s("div",po,E(e.otherLabel),1),a[8]||(a[8]=s("div",{class:"text-[10px] text-text-secondary-light dark:text-text-secondary-dark"}," Provide a custom answer ",-1))])]),e.isSelected(i,e.otherLabel)?(c(),u("input",{key:0,value:e.otherInputs[i]||"",class:"w-full rounded-md border border-border-light dark:border-border-dark bg-transparent px-2 py-1 text-xs text-text-primary-light dark:text-text-primary-dark",type:"text",placeholder:"Type your answer",onInput:d=>n.$emit("update:otherInputs",{...e.otherInputs,[i]:d.target.value})},null,40,go)):U("",!0)]))])]))),128))])):(c(),u("p",xo,"No questions available."))]),s("div",yo,[s("button",{class:"text-xs px-3 py-1.5 rounded border border-border-light dark:border-border-dark",type:"button",disabled:e.busy,onClick:a[1]||(a[1]=o=>n.$emit("cancel"))}," Cancel ",8,vo),s("button",{class:"text-xs px-3 py-1.5 rounded bg-primary text-primary-foreground",type:"button",disabled:e.busy,onClick:a[2]||(a[2]=o=>n.$emit("submit"))}," Submit ",8,ho)])],544)])):U("",!0)}}),ko=Object.assign(bo,{__name:"AskUserDialog"});function zn(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=zn(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Fn(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=zn(e))&&(n&&(n+=" "),n+=r);return n}const kn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wn=Fn,wo=(e,r)=>t=>{var n;if(r?.variants==null)return wn(e,t?.class,t?.className);const{variants:a,defaultVariants:o}=r,i=Object.keys(a).map(A=>{const I=t?.[A],M=o?.[A];if(I===null)return null;const P=kn(I)||kn(M);return a[A][P]}),d=t&&Object.entries(t).reduce((A,I)=>{let[M,P]=I;return P===void 0||(A[M]=P),A},{}),m=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((A,I)=>{let{class:M,className:P,..._}=I;return Object.entries(_).every(D=>{let[w,l]=D;return Array.isArray(l)?l.includes({...o,...d}[w]):{...o,...d}[w]===l})?[...A,M,P]:A},[]);return wn(e,i,m,t?.class,t?.className)},So=(e,r)=>{const t=new Array(e.length+r.length);for(let n=0;n<e.length;n++)t[n]=e[n];for(let n=0;n<r.length;n++)t[e.length+n]=r[n];return t},Co=(e,r)=>({classGroupId:e,validator:r}),Wn=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),lr="-",Sn=[],$o="arbitrary..",Ao=e=>{const r=Mo(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Io(i);const d=i.split(lr),m=d[0]===""&&d.length>1?1:0;return qn(d,m,r)},getConflictingClassGroupIds:(i,d)=>{if(d){const m=n[i],A=t[i];return m?A?So(A,m):m:A||Sn}return t[i]||Sn}}},qn=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const a=e[r],o=t.nextPart.get(a);if(o){const A=qn(e,r+1,o);if(A)return A}const i=t.validators;if(i===null)return;const d=r===0?e.join(lr):e.slice(r).join(lr),m=i.length;for(let A=0;A<m;A++){const I=i[A];if(I.validator(d))return I.classGroupId}},Io=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),n=r.slice(0,t);return n?$o+n:void 0})(),Mo=e=>{const{theme:r,classGroups:t}=e;return To(t,r)},To=(e,r)=>{const t=Wn();for(const n in e){const a=e[n];Dr(a,t,n,r)}return t},Dr=(e,r,t,n)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];Ro(i,r,t,n)}},Ro=(e,r,t,n)=>{if(typeof e=="string"){Eo(e,r,t);return}if(typeof e=="function"){_o(e,r,t,n);return}Oo(e,r,t,n)},Eo=(e,r,t)=>{const n=e===""?r:Qn(r,e);n.classGroupId=t},_o=(e,r,t,n)=>{if(No(e)){Dr(e(n),r,t,n);return}r.validators===null&&(r.validators=[]),r.validators.push(Co(t,e))},Oo=(e,r,t,n)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[d,m]=a[i];Dr(m,Qn(r,d),t,n)}},Qn=(e,r)=>{let t=e;const n=r.split(lr),a=n.length;for(let o=0;o<a;o++){const i=n[o];let d=t.nextPart.get(i);d||(d=Wn(),t.nextPart.set(i,d)),t=d}return t},No=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Po=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),n=Object.create(null);const a=(o,i)=>{t[o]=i,r++,r>e&&(r=0,n=t,t=Object.create(null))};return{get(o){let i=t[o];if(i!==void 0)return i;if((i=n[o])!==void 0)return a(o,i),i},set(o,i){o in t?t[o]=i:a(o,i)}}},Nr="!",Cn=":",jo=[],$n=(e,r,t,n,a)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:n,isExternal:a}),Lo=e=>{const{prefix:r,experimentalParseClassName:t}=e;let n=a=>{const o=[];let i=0,d=0,m=0,A;const I=a.length;for(let w=0;w<I;w++){const l=a[w];if(i===0&&d===0){if(l===Cn){o.push(a.slice(m,w)),m=w+1;continue}if(l==="/"){A=w;continue}}l==="["?i++:l==="]"?i--:l==="("?d++:l===")"&&d--}const M=o.length===0?a:a.slice(m);let P=M,_=!1;M.endsWith(Nr)?(P=M.slice(0,-1),_=!0):M.startsWith(Nr)&&(P=M.slice(1),_=!0);const D=A&&A>m?A-m:void 0;return $n(o,_,P,D)};if(r){const a=r+Cn,o=n;n=i=>i.startsWith(a)?o(i.slice(a.length)):$n(jo,!1,i,void 0,!0)}if(t){const a=n;n=o=>t({className:o,parseClassName:a})}return n},Do=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,n)=>{r.set(t,1e6+n)}),t=>{const n=[];let a=[];for(let o=0;o<t.length;o++){const i=t[o],d=i[0]==="[",m=r.has(i);d||m?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(i)):a.push(i)}return a.length>0&&(a.sort(),n.push(...a)),n}},Uo=e=>({cache:Po(e.cacheSize),parseClassName:Lo(e),sortModifiers:Do(e),...Ao(e)}),Bo=/\s+/,zo=(e,r)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=r,i=[],d=e.trim().split(Bo);let m="";for(let A=d.length-1;A>=0;A-=1){const I=d[A],{isExternal:M,modifiers:P,hasImportantModifier:_,baseClassName:D,maybePostfixModifierPosition:w}=t(I);if(M){m=I+(m.length>0?" "+m:m);continue}let l=!!w,g=n(l?D.substring(0,w):D);if(!g){if(!l){m=I+(m.length>0?" "+m:m);continue}if(g=n(D),!g){m=I+(m.length>0?" "+m:m);continue}l=!1}const O=P.length===0?"":P.length===1?P[0]:o(P).join(":"),b=_?O+Nr:O,h=b+g;if(i.indexOf(h)>-1)continue;i.push(h);const v=a(g,l);for(let $=0;$<v.length;++$){const F=v[$];i.push(b+F)}m=I+(m.length>0?" "+m:m)}return m},Fo=(...e)=>{let r=0,t,n,a="";for(;r<e.length;)(t=e[r++])&&(n=Vn(t))&&(a&&(a+=" "),a+=n);return a},Vn=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=Vn(e[n]))&&(t&&(t+=" "),t+=r);return t},Wo=(e,...r)=>{let t,n,a,o;const i=m=>{const A=r.reduce((I,M)=>M(I),e());return t=Uo(A),n=t.cache.get,a=t.cache.set,o=d,d(m)},d=m=>{const A=n(m);if(A)return A;const I=zo(m,t);return a(m,I),I};return o=i,(...m)=>o(Fo(...m))},qo=[],be=e=>{const r=t=>t[e]||qo;return r.isThemeGetter=!0,r},Gn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qo=/^\d+\/\d+$/,Vo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ho=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>Qo.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),Ir=e=>e.endsWith("%")&&Z(e.slice(0,-1)),Qe=e=>Vo.test(e),Xo=()=>!0,Yo=e=>Go.test(e)&&!Jo.test(e),Hn=()=>!1,Zo=e=>Ho.test(e),ei=e=>Ko.test(e),ti=e=>!G(e)&&!J(e),ri=e=>vt(e,Yn,Hn),G=e=>Gn.test(e),et=e=>vt(e,Zn,Yo),Mr=e=>vt(e,ii,Z),An=e=>vt(e,Kn,Hn),ni=e=>vt(e,Xn,ei),er=e=>vt(e,es,Zo),J=e=>Jn.test(e),Rt=e=>ht(e,Zn),si=e=>ht(e,li),In=e=>ht(e,Kn),ai=e=>ht(e,Yn),oi=e=>ht(e,Xn),tr=e=>ht(e,es,!0),vt=(e,r,t)=>{const n=Gn.exec(e);return n?n[1]?r(n[1]):t(n[2]):!1},ht=(e,r,t=!1)=>{const n=Jn.exec(e);return n?n[1]?r(n[1]):t:!1},Kn=e=>e==="position"||e==="percentage",Xn=e=>e==="image"||e==="url",Yn=e=>e==="length"||e==="size"||e==="bg-size",Zn=e=>e==="length",ii=e=>e==="number",li=e=>e==="family-name",es=e=>e==="shadow",di=()=>{const e=be("color"),r=be("font"),t=be("text"),n=be("font-weight"),a=be("tracking"),o=be("leading"),i=be("breakpoint"),d=be("container"),m=be("spacing"),A=be("radius"),I=be("shadow"),M=be("inset-shadow"),P=be("text-shadow"),_=be("drop-shadow"),D=be("blur"),w=be("perspective"),l=be("aspect"),g=be("ease"),O=be("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...h(),J,G],$=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],x=()=>[J,G,m],f=()=>[gt,"full","auto",...x()],C=()=>[Je,"none","subgrid",J,G],N=()=>["auto",{span:["full",Je,J,G]},Je,J,G],k=()=>[Je,"auto",J,G],Q=()=>["auto","min","max","fr",J,G],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],le=()=>["auto",...x()],Se=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],j=()=>[e,J,G],R=()=>[...h(),In,An,{position:[J,G]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",ai,ri,{size:[J,G]}],de=()=>[Ir,Rt,et],oe=()=>["","none","full",A,J,G],me=()=>["",Z,Rt,et],Ee=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Z,Ir,In,An],Ne=()=>["","none",D,J,G],pe=()=>["none",Z,J,G],_e=()=>["none",Z,J,G],Ce=()=>[Z,J,G],We=()=>[gt,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[Xo],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[ti],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",Z],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,G,J,l]}],container:["container"],columns:[{columns:[Z,G,J,d]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:f()}],"inset-x":[{"inset-x":f()}],"inset-y":[{"inset-y":f()}],start:[{start:f()}],end:[{end:f()}],top:[{top:f()}],right:[{right:f()}],bottom:[{bottom:f()}],left:[{left:f()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",J,G]}],basis:[{basis:[gt,"full","auto",d,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,gt,"auto","initial","none",G]}],grow:[{grow:["",Z,J,G]}],shrink:[{shrink:["",Z,J,G]}],order:[{order:[Je,"first","last","none",J,G]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:le()}],mx:[{mx:le()}],my:[{my:le()}],ms:[{ms:le()}],me:[{me:le()}],mt:[{mt:le()}],mr:[{mr:le()}],mb:[{mb:le()}],ml:[{ml:le()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:Se()}],w:[{w:[d,"screen",...Se()]}],"min-w":[{"min-w":[d,"screen","none",...Se()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...Se()]}],h:[{h:["screen","lh",...Se()]}],"min-h":[{"min-h":["screen","lh","none",...Se()]}],"max-h":[{"max-h":["screen","lh",...Se()]}],"font-size":[{text:["base",t,Rt,et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,J,Mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ir,G]}],"font-family":[{font:[si,G,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,J,G]}],"line-clamp":[{"line-clamp":[Z,"none",J,Mr]}],leading:[{leading:[o,...x()]}],"list-image":[{"list-image":["none",J,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",J,et]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Z,"auto",J,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,J,G],radial:["",J,G],conic:[Je,J,G]},oi,ni]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z,J,G]}],"outline-w":[{outline:["",Z,Rt,et]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",I,tr,er]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",M,tr,er]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Z,et]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",P,tr,er]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Z,J,G]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[J,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":h()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,G]}],filter:[{filter:["","none",J,G]}],blur:[{blur:Ne()}],brightness:[{brightness:[Z,J,G]}],contrast:[{contrast:[Z,J,G]}],"drop-shadow":[{"drop-shadow":["","none",_,tr,er]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Z,J,G]}],"hue-rotate":[{"hue-rotate":[Z,J,G]}],invert:[{invert:["",Z,J,G]}],saturate:[{saturate:[Z,J,G]}],sepia:[{sepia:["",Z,J,G]}],"backdrop-filter":[{"backdrop-filter":["","none",J,G]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Z,J,G]}],"backdrop-contrast":[{"backdrop-contrast":[Z,J,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,J,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,J,G]}],"backdrop-invert":[{"backdrop-invert":["",Z,J,G]}],"backdrop-opacity":[{"backdrop-opacity":[Z,J,G]}],"backdrop-saturate":[{"backdrop-saturate":[Z,J,G]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,J,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",J,G]}],ease:[{ease:["linear","initial",g,J,G]}],delay:[{delay:[Z,J,G]}],animate:[{animate:["none",O,J,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,J,G]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[J,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:We()}],"translate-x":[{"translate-x":We()}],"translate-y":[{"translate-y":We()}],"translate-z":[{"translate-z":We()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,G]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Z,Rt,et,Mr]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ci=Wo(di);function ts(...e){return ci(Fn(e))}const ui=he({inheritAttrs:!1,__name:"Button",props:{variant:{default:"default"},size:{default:"default"},class:{default:""}},setup(e){const r=wo("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background-light transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-border-light dark:border-border-dark bg-transparent hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark",secondary:"bg-gray-100 dark:bg-gray-800 text-text-primary-light dark:text-text-primary-dark hover:bg-gray-200 dark:hover:bg-gray-700",ghost:"hover:bg-gray-100 dark:hover:bg-gray-800 text-text-secondary-light dark:text-text-secondary-dark hover:text-text-primary-light dark:hover:text-text-primary-dark",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),t=e,n=jn(),a=z(()=>ts(r({variant:t.variant,size:t.size}),t.class));return(o,i)=>(c(),u("button",Dn(q(n),{class:a.value}),[Ln(o.$slots,"default")],16))}}),Fe=Object.assign(ui,{__name:"UiButton"}),mi=he({inheritAttrs:!1,__name:"Card",props:{class:{default:""}},setup(e){const r=e,t=jn(),n=z(()=>ts("rounded-lg border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark text-text-primary-light dark:text-text-primary-dark shadow-sm",r.class));return(a,o)=>(c(),u("div",Dn(q(t),{class:n.value}),[Ln(a.$slots,"default")],16))}}),fi=Object.assign(mi,{__name:"UiCard"}),pi={key:0,class:"absolute left-0 bottom-10 w-44 rounded-md border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-1 z-30"},gi=he({__name:"ApprovalsMenu",props:{open:{type:Boolean},mode:{}},emits:["toggle","select"],setup(e,{expose:r}){const t=e,n=z(()=>t.mode==="all"?"Always allow":"Auto"),a=T(null);return r({menuEl:a}),(o,i)=>(c(),u("div",{ref_key:"menuEl",ref:a,class:"relative"},[ee(Fe,{variant:"secondary",size:"sm",class:"h-8 gap-1.5 text-xs font-medium border border-gray-200 dark:border-gray-700 text-text-secondary-light dark:text-text-secondary-dark",type:"button",onClick:i[0]||(i[0]=d=>o.$emit("toggle"))},{default:we(()=>[i[3]||(i[3]=s("span",{class:"material-icons-outlined text-[14px]"},"shield",-1)),ge(" "+E(n.value)+" ",1),i[4]||(i[4]=s("span",{class:"material-icons-outlined text-xs"},"expand_more",-1))]),_:1}),e.open?(c(),u("div",pi,[s("button",{class:Y(["w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark flex items-center gap-2",e.mode==="auto"?"font-semibold":""]),type:"button",onClick:i[1]||(i[1]=d=>o.$emit("select","auto"))},[...i[5]||(i[5]=[s("span",{class:"material-icons-outlined text-[14px]"},"tune",-1),ge(" Auto ",-1)])],2),s("button",{class:Y(["w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark flex items-center gap-2",e.mode==="all"?"font-semibold":""]),type:"button",onClick:i[2]||(i[2]=d=>o.$emit("select","all"))},[...i[6]||(i[6]=[s("span",{class:"material-icons-outlined text-[14px]"},"verified",-1),ge(" Always allow ",-1)])],2)])):U("",!0)],512))}}),xi=Object.assign(gi,{__name:"ApprovalsMenu"}),yi={key:0,class:"absolute left-0 bottom-10 w-40 rounded-md border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-1 z-30"},vi=["disabled"],hi=he({__name:"ComposerMenu",props:{open:{type:Boolean},uploadsEnabled:{type:Boolean},debugUi:{type:Boolean}},emits:["toggle","add-file","quick-action"],setup(e,{expose:r}){const t=T(null);return r({menuEl:t}),(n,a)=>(c(),u("div",{ref_key:"menuEl",ref:t,class:"relative"},[ee(Fe,{variant:"ghost",size:"icon",class:"h-8 w-8 text-text-secondary-light dark:text-text-secondary-dark",type:"button",onClick:a[0]||(a[0]=o=>n.$emit("toggle"))},{default:we(()=>[...a[3]||(a[3]=[s("span",{class:"material-icons-outlined text-lg"},"add",-1)])]),_:1}),e.open?(c(),u("div",yi,[s("button",{class:"w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark disabled:opacity-50",type:"button",disabled:!e.uploadsEnabled,onClick:a[1]||(a[1]=o=>n.$emit("add-file"))}," Add file ",8,vi),e.debugUi?(c(),u("button",{key:0,class:"w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark",type:"button",onClick:a[2]||(a[2]=o=>n.$emit("quick-action","Health check"))}," Health check ")):U("",!0)])):U("",!0)],512))}}),bi=Object.assign(hi,{__name:"ComposerMenu"}),ki={class:"material-icons-outlined text-[14px]"},wi={key:0,class:"absolute left-0 bottom-10 w-36 rounded-md border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-1 z-30"},Si=["onClick"],Ci={class:"inline-flex items-center gap-2"},$i={class:"material-icons-outlined text-[14px]"},Ai={key:0,class:"material-icons-outlined text-[14px] text-primary"},Ii=he({__name:"ModeMenu",props:{open:{type:Boolean},modeIcon:{},modeLabel:{},modeOptions:{},activeMode:{}},emits:["toggle","select-mode"],setup(e,{expose:r}){const t=T(null);return r({menuEl:t}),(n,a)=>(c(),u("div",{ref_key:"menuEl",ref:t,class:"relative"},[ee(Fe,{variant:"secondary",size:"sm",class:"h-8 gap-1.5 text-xs font-medium border border-gray-200 dark:border-gray-700 text-text-secondary-light dark:text-text-secondary-dark",type:"button",onClick:a[0]||(a[0]=o=>n.$emit("toggle"))},{default:we(()=>[s("span",ki,E(e.modeIcon),1),ge(" "+E(e.modeLabel)+" ",1),a[1]||(a[1]=s("span",{class:"material-icons-outlined text-xs"},"expand_more",-1))]),_:1}),e.open?(c(),u("div",wi,[(c(!0),u(re,null,ve(e.modeOptions,o=>(c(),u("button",{key:o.id,class:Y(["w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark flex items-center justify-between gap-2",o.id===e.activeMode?"bg-gray-100 dark:bg-gray-800/70":""]),type:"button",onClick:i=>n.$emit("select-mode",o.id)},[s("span",Ci,[s("span",$i,E(o.icon),1),s("span",null,E(o.label),1)]),o.id===e.activeMode?(c(),u("span",Ai," check ")):U("",!0)],10,Si))),128))])):U("",!0)],512))}}),Mi=Object.assign(Ii,{__name:"ModeMenu"}),Ti={class:"absolute bottom-0 left-0 right-0 p-6 flex justify-center bg-gradient-to-t from-background-light via-background-light to-transparent dark:from-background-dark dark:via-background-dark pointer-events-none z-20"},Ri={key:0,class:"mb-3 grid gap-2"},Ei={class:"flex items-center gap-2.5"},_i={class:"h-11 w-11 shrink-0 overflow-hidden rounded-md border border-border-light/80 dark:border-border-dark/80 bg-gray-100 dark:bg-gray-800/60"},Oi=["src","alt"],Ni={key:1,class:"h-full w-full flex items-center justify-center text-text-secondary-light dark:text-text-secondary-dark"},Pi={class:"material-icons-outlined text-[19px]"},ji={class:"min-w-0 flex-1"},Li={class:"flex items-center gap-1.5"},Di={class:"truncate text-xs font-medium text-text-primary-light dark:text-text-primary-dark"},Ui={class:"inline-flex shrink-0 items-center rounded-full border border-border-light dark:border-border-dark bg-white/75 dark:bg-gray-900/55 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-text-secondary-light dark:text-text-secondary-dark"},Bi={class:"mt-0.5 truncate text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},zi={key:0,class:"mt-2 h-1.5 overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800/80"},Fi={key:1,class:"mt-1.5 text-[10px] text-red-500"},Wi=["value","placeholder","onKeydown"],qi={key:1,class:"mt-2 text-[10px] text-text-secondary-light dark:text-text-secondary-dark space-y-1"},Qi={key:0},Vi={key:1},Gi={key:2},Ji={key:2,class:"mt-2 flex items-center justify-between gap-2 text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},Hi={class:"flex items-center gap-2"},Ki=["checked"],Xi={key:0},Yi={class:"flex items-center justify-between mt-3"},Zi={class:"flex items-center gap-2"},el={class:"flex items-center gap-1.5 flex-wrap"},tl=["title"],rl={key:1,class:"flex items-center gap-2 text-xs text-text-secondary-light dark:text-text-secondary-dark"},nl=["checked"],sl={key:0,class:"material-icons-outlined text-[14px] mr-1"},al={key:0,class:"text-center mt-2"},ol={class:"text-[10px] text-red-500"},il={key:1,class:"text-center mt-2"},ll=he({__name:"ChatComposer",props:{modelValue:{},placeholder:{},attachments:{},uploadsEnabled:{type:Boolean},imagesEnabled:{type:Boolean},attachmentsBase64:{type:Boolean},attachmentNote:{},composerMenuOpen:{type:Boolean},modeMenuOpen:{type:Boolean},modeIcon:{},modeLabel:{},modeOptions:{},activeMode:{},approvalsMenuOpen:{type:Boolean},toolApprovalsMode:{},useStreamingQuery:{type:Boolean},debugUi:{type:Boolean},sendLabel:{},sendDisabled:{type:Boolean},sendIsStop:{type:Boolean},queryError:{},streamQueryError:{},activeSkillNames:{}},emits:["update:modelValue","update:attachmentsBase64","update:useStreamingQuery","drop","paste","compositionstart","compositionend","enter","remove-attachment","toggle-composer-menu","toggle-mode-menu","toggle-approvals-menu","set-approvals","add-file","quick-action","select-mode","send","stop","file-pick","open-skills"],setup(e,{expose:r,emit:t}){const n=e,a=t,o=T(null),i=T(null);function d(w){const l=Number(w||0);if(!Number.isFinite(l)||l<=0)return"0 B";if(l<1024)return`${l} B`;const g=l/1024;if(g<1024)return`${g.toFixed(g>=100?0:1)} KB`;const O=g/1024;return`${O.toFixed(O>=100?0:1)} MB`}function m(w){const l=String(w??"").toLowerCase();return l.startsWith("image/")?"image":l.includes("pdf")?"picture_as_pdf":l.includes("json")||l.includes("xml")||l.includes("javascript")||l.includes("typescript")?"data_object":l.startsWith("text/")?"description":"attach_file"}function A(w){return String(w??"").toLowerCase().startsWith("image/")?"image":"file"}function I(w){return w==="ready"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/35 dark:text-emerald-300":w==="error"?"bg-rose-100 text-rose-700 dark:bg-rose-900/35 dark:text-rose-300":w==="uploading"?"bg-sky-100 text-sky-700 dark:bg-sky-900/35 dark:text-sky-300":"bg-gray-100 text-gray-700 dark:bg-gray-800/80 dark:text-gray-300"}function M(w){const l=[d(w.size)];return w.remote?.url&&l.push(w.remote.url),l.join(" · ")}function P(){if(n.sendIsStop){a("stop");return}a("send")}function _(){n.sendIsStop&&a("stop")}function D(){o.value?.click(),a("add-file")}return r({filePickerRef:o,approvalsMenuComponent:i}),(w,l)=>(c(),u("div",Ti,[s("div",{class:"w-full max-w-3xl pointer-events-auto",onDragover:l[14]||(l[14]=ue(()=>{},["prevent"])),onDrop:l[15]||(l[15]=ue(g=>w.$emit("drop",g),["prevent"]))},[ee(fi,{class:"p-3 shadow-soft dark:shadow-none bg-surface-light dark:bg-surface-dark border-border-light dark:border-border-dark"},{default:we(()=>[e.attachments.length?(c(),u("div",Ri,[(c(!0),u(re,null,ve(e.attachments,g=>(c(),u("div",{key:g.id,class:"rounded-lg border border-border-light dark:border-border-dark bg-white/65 dark:bg-gray-900/35 px-2.5 py-2"},[s("div",Ei,[s("div",_i,[g.mime.startsWith("image/")?(c(),u("img",{key:0,src:g.localUrl,alt:g.name,class:"h-full w-full object-cover",loading:"lazy",decoding:"async"},null,8,Oi)):(c(),u("div",Ni,[s("span",Pi,E(m(g.mime)),1)]))]),s("div",ji,[s("div",Li,[s("span",Di,E(g.name),1),s("span",Ui,E(A(g.mime)),1)]),s("div",Bi,E(M(g)),1)]),s("span",{class:Y(["inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-[10px] font-medium",I(g.status)])},E(g.status),3),ee(Fe,{variant:"ghost",size:"sm",class:"h-7 w-7 px-0 text-text-secondary-light dark:text-text-secondary-dark hover:text-destructive",type:"button",title:"Remove attachment",onClick:O=>w.$emit("remove-attachment",g.id)},{default:we(()=>[...l[17]||(l[17]=[s("span",{class:"material-icons-outlined text-[16px]"},"close",-1)])]),_:1},8,["onClick"])]),g.status==="uploading"?(c(),u("div",zi,[...l[18]||(l[18]=[s("div",{class:"h-full w-1/2 animate-pulse rounded-full bg-primary/75"},null,-1)])])):U("",!0),g.status==="error"&&g.error?(c(),u("div",Fi,E(g.error),1)):U("",!0)]))),128))])):U("",!0),s("textarea",{value:e.modelValue,class:"w-full resize-none border-none bg-transparent text-sm text-text-primary-light dark:text-text-primary-dark placeholder:text-text-secondary-light dark:placeholder:text-text-secondary-dark focus-visible:outline-none focus-visible:ring-0 py-2",rows:"2",placeholder:e.placeholder,onInput:l[0]||(l[0]=g=>w.$emit("update:modelValue",g.target.value)),onPaste:l[1]||(l[1]=g=>w.$emit("paste",g)),onCompositionstart:l[2]||(l[2]=g=>w.$emit("compositionstart")),onCompositionend:l[3]||(l[3]=g=>w.$emit("compositionend")),onKeydown:[l[4]||(l[4]=Le(ue(g=>w.$emit("enter",g),["exact"]),["enter"])),Le(ue(_,["exact","prevent"]),["esc"])]},null,40,Wi),e.attachments.length?(c(),u("div",qi,[e.uploadsEnabled?e.imagesEnabled?(c(),u("span",Vi,"Attachments keep visual preview in GUI and are also sent as markdown refs (`[image](...)` / `[file](...)`).")):(c(),u("span",Gi,"Model does not support images; images are still attached and also sent as markdown refs for context.")):(c(),u("span",Qi,"Uploads disabled by server."))])):U("",!0),e.attachments.length?(c(),u("div",Ji,[s("label",Hi,[s("input",{checked:e.attachmentsBase64,type:"checkbox",class:"h-3 w-3",onChange:l[5]||(l[5]=g=>w.$emit("update:attachmentsBase64",g.target.checked))},null,40,Ki),l[19]||(l[19]=ge(" Include base64 when images are unsupported (large) ",-1))]),e.attachmentNote?(c(),u("span",Xi,E(e.attachmentNote),1)):U("",!0)])):U("",!0),s("div",Yi,[s("div",Zi,[ee(bi,{open:e.composerMenuOpen,"uploads-enabled":e.uploadsEnabled,"debug-ui":e.debugUi,onToggle:l[6]||(l[6]=g=>w.$emit("toggle-composer-menu")),onAddFile:D,onQuickAction:l[7]||(l[7]=g=>w.$emit("quick-action",g))},null,8,["open","uploads-enabled","debug-ui"]),ee(Mi,{open:e.modeMenuOpen,"mode-icon":e.modeIcon,"mode-label":e.modeLabel,"mode-options":e.modeOptions,"active-mode":e.activeMode,onToggle:l[8]||(l[8]=g=>w.$emit("toggle-mode-menu")),onSelectMode:l[9]||(l[9]=g=>w.$emit("select-mode",g))},null,8,["open","mode-icon","mode-label","mode-options","active-mode"]),ee(xi,{ref_key:"approvalsMenuComponent",ref:i,open:e.approvalsMenuOpen,mode:e.toolApprovalsMode,onToggle:l[10]||(l[10]=g=>w.$emit("toggle-approvals-menu")),onSelect:l[11]||(l[11]=g=>w.$emit("set-approvals",g))},null,8,["open","mode"]),e.activeSkillNames.length?(c(),u(re,{key:0},[l[21]||(l[21]=s("span",{class:"w-px h-4 bg-border-light dark:bg-border-dark"},null,-1)),s("div",el,[(c(!0),u(re,null,ve(e.activeSkillNames,g=>(c(),u("button",{key:g,type:"button",class:"inline-flex items-center gap-1 h-6 px-2 rounded-full text-[11px] font-medium bg-primary/10 text-primary hover:bg-primary/20 transition-colors",title:`Active skill: ${g} (click to manage)`,onClick:l[12]||(l[12]=O=>w.$emit("open-skills"))},[l[20]||(l[20]=s("span",{class:"material-icons-outlined text-[12px]"},"bolt",-1)),ge(" "+E(g),1)],8,tl))),128))])],64)):U("",!0),e.debugUi?(c(),u("label",rl,[s("input",{checked:e.useStreamingQuery,type:"checkbox",class:"h-3 w-3",onChange:l[13]||(l[13]=g=>w.$emit("update:useStreamingQuery",g.target.checked))},null,40,nl),l[22]||(l[22]=s("span",null,"Streaming",-1))])):U("",!0)]),ee(Fe,{type:"button",disabled:e.sendDisabled,class:"h-8 px-4 text-xs",onClick:P},{default:we(()=>[e.sendIsStop?(c(),u("span",sl,"stop_circle")):U("",!0),ge(" "+E(e.sendLabel),1)]),_:1},8,["disabled"])])]),_:1}),e.queryError||e.streamQueryError?(c(),u("div",al,[s("p",ol,E(e.queryError||e.streamQueryError),1)])):(c(),u("div",il,[...l[23]||(l[23]=[s("p",{class:"text-[10px] text-text-secondary-light dark:text-text-secondary-dark"}," AI can make mistakes. Please review code. ",-1)])]))],32),s("input",{ref_key:"filePickerRef",ref:o,class:"hidden",type:"file",accept:"*/*",multiple:"",onChange:l[16]||(l[16]=g=>w.$emit("file-pick",g))},null,544)]))}}),dl=Object.assign(ll,{__name:"ChatComposer"}),cl={class:"h-14 border-b border-border-light dark:border-border-dark flex items-center justify-between px-6 bg-background-light dark:bg-background-dark z-10 flex-shrink-0"},ul={class:"flex items-center gap-3 overflow-hidden"},ml={class:"text-sm font-semibold text-text-primary-light dark:text-text-primary-dark whitespace-nowrap truncate"},fl=["title"],pl={class:"flex h-8 items-center gap-1 text-xs text-text-secondary-light dark:text-text-secondary-dark"},gl={class:"hidden md:inline text-[11px] leading-none"},xl=["title"],yl={class:"material-icons-outlined text-base leading-none"},vl=he({__name:"ChatHeader",props:{activeSessionTitle:{},activeSessionSummary:{},chatHeaderStats:{},darkMode:{type:Boolean}},emits:["reconnect","toggle-theme"],setup(e){const r=e,t=z(()=>{const n=r.activeSessionTitle.trim().toLowerCase(),a=r.activeSessionSummary.trim().toLowerCase();return a.length>0&&a!==n});return(n,a)=>(c(),u("header",cl,[s("div",ul,[s("h1",ml,E(e.activeSessionTitle||"New thread"),1),t.value?(c(),u("span",{key:0,class:"hidden xl:inline-flex max-w-[280px] truncate text-[11px] text-text-secondary-light dark:text-text-secondary-dark",title:e.activeSessionSummary},E(e.activeSessionSummary),9,fl)):U("",!0)]),s("div",pl,[s("span",gl,E(e.chatHeaderStats),1),s("button",{class:"h-8 w-8 rounded-md inline-flex items-center justify-center text-text-secondary-light dark:text-text-secondary-dark hover:text-primary hover:bg-gray-100 dark:hover:bg-gray-800/60 transition-colors",type:"button",title:e.darkMode?"Switch to light mode":"Switch to dark mode",onClick:a[0]||(a[0]=o=>n.$emit("toggle-theme"))},[s("span",yl,E(e.darkMode?"light_mode":"dark_mode"),1)],8,xl),s("button",{class:"h-8 w-8 rounded-md inline-flex items-center justify-center text-text-secondary-light dark:text-text-secondary-dark hover:text-primary hover:bg-gray-100 dark:hover:bg-gray-800/60 transition-colors",type:"button",onClick:a[1]||(a[1]=o=>n.$emit("reconnect"))},[...a[2]||(a[2]=[s("span",{class:"material-icons-outlined text-base leading-none"},"refresh",-1)])])])]))}}),hl=Object.assign(vl,{__name:"ChatHeader"}),bl={class:"message-renderer"},kl={key:1,class:"empty-message"},wl=he({__name:"MessageRenderer",props:{content:{},emptyText:{default:"No content"},isDark:{type:Boolean}},setup(e){const r=e,t=z(()=>r.content?.trim()||""),n=z(()=>!!r.isDark);return(a,o)=>{const i=Ha("MarkdownRender");return c(),u("div",bl,[t.value?(c(),xt(i,{key:n.value?"md-dark":"md-light",class:Y(n.value?"dark":""),content:t.value,"is-dark":n.value,"max-live-nodes":0,"batch-rendering":!0,"render-batch-size":16,"render-batch-delay":8,"enable-mermaid":!0,"enable-katex":!0},null,8,["class","content","is-dark"])):(c(),u("div",kl,E(e.emptyText),1))])}}}),Sl=Object.assign(yt(wl,[["__scopeId","data-v-c32aab6f"]]),{__name:"MessageRenderer"}),rs=Object.freeze({readOnly:!0,automaticLayout:!0,scrollBeyondLastLine:!1,minimap:{enabled:!1},wordWrap:"on"}),Cl=Object.freeze({...rs,renderSideBySide:!0,useInlineViewWhenSpaceIsLimited:!0,diffWordWrap:"on"}),$l={class:"tool-code-block markstream-vue min-w-0 w-full max-w-full overflow-hidden"},Al=he({__name:"ToolCodeBlock",props:{node:{},isDark:{type:Boolean,default:!1},diff:{type:Boolean,default:!1}},setup(e){const r=e,t=z(()=>r.diff?Cl:rs),n=Ka({loader:Xa,suspensible:!1});return(a,o)=>(c(),u("div",$l,[ee(q(n),{class:"tool-code-node",node:r.node,"is-dark":r.isDark,loading:!1,stream:!1,"dark-theme":"vitesse-dark","light-theme":"vitesse-light","is-show-preview":!1,"enable-font-size-control":!1,"show-header":!1,"show-copy-button":!1,"show-expand-button":!1,"show-preview-button":!1,"show-font-size-buttons":!1,"monaco-options":t.value,"min-width":0,"max-width":"100%"},null,8,["node","is-dark","monaco-options"])]))}}),Et=Object.assign(yt(Al,[["__scopeId","data-v-510bc205"]]),{__name:"ToolCodeBlock"});function Il(e,r=1200){const t=String(e??"").replace(/\r/g,"").split(`
1
+ import{f as he,o as c,c as u,a as s,F as re,r as ve,g as Le,h as ue,i as U,j as T,t as E,k as jn,l as Ln,m as Dn,n as q,p as z,b as ee,w as we,d as ge,q as Y,s as Ha,v as xt,x as Ka,y as Xa,T as ar,z as ir,A as Me,B as Un,C as rt,D as nt,E as Ya,G as Bn,H as bn,I as Or,J as Za}from"./BIYtAlzl.js";import{_ as yt}from"./DlAUqK2U.js";const eo={class:"flex items-center justify-between mb-3"},to={class:"space-y-4"},ro={key:0,class:"space-y-4"},no={class:"flex items-start gap-2 mb-3"},so={class:"inline-flex items-center rounded bg-gray-100 dark:bg-gray-800 px-2 py-0.5 text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},ao={class:"text-sm text-text-primary-light dark:text-text-primary-dark"},oo={class:"space-y-2"},io=["type","name","checked","onChange"],lo={class:"font-medium"},co={class:"text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},uo={key:0,class:"space-y-2"},mo={class:"flex items-start gap-2 text-xs text-text-primary-light dark:text-text-primary-dark"},fo=["type","name","checked","onChange"],po={class:"font-medium"},go=["value","onInput"],xo={key:1,class:"text-xs text-text-secondary-light dark:text-text-secondary-dark"},yo={class:"mt-4 flex justify-end gap-2"},vo=["disabled"],ho=["disabled"],bo=he({__name:"AskUserDialog",props:{open:{type:Boolean},questions:{},selections:{},otherInputs:{},otherLabel:{},busy:{type:Boolean},isSelected:{type:Function}},emits:["cancel","submit","option-change","update:otherInputs"],setup(e,{expose:r}){const t=T(null);return r({dialogEl:t}),(n,a)=>e.open?(c(),u("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm px-4",role:"presentation",onClick:a[5]||(a[5]=o=>n.$emit("cancel"))},[s("div",{ref_key:"dialogEl",ref:t,class:"w-full max-w-2xl rounded-lg border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-5",role:"dialog","aria-modal":"true",tabindex:"0",onClick:a[3]||(a[3]=ue(()=>{},["stop"])),onKeydown:a[4]||(a[4]=Le(ue(o=>n.$emit("cancel"),["stop","prevent"]),["escape"]))},[s("div",eo,[a[7]||(a[7]=s("h3",{class:"text-sm font-semibold text-text-primary-light dark:text-text-primary-dark"}," Answer questions ",-1)),s("button",{class:"text-text-secondary-light dark:text-text-secondary-dark hover:text-primary",type:"button",onClick:a[0]||(a[0]=o=>n.$emit("cancel"))},[...a[6]||(a[6]=[s("span",{class:"material-icons-outlined text-base"},"close",-1)])])]),s("div",to,[a[9]||(a[9]=s("p",{class:"text-xs text-text-secondary-light dark:text-text-secondary-dark"}," Provide answers to let the agent continue. ",-1)),e.questions.length?(c(),u("div",ro,[(c(!0),u(re,null,ve(e.questions,(o,i)=>(c(),u("div",{key:`ask-${i}`,class:"rounded-md border border-border-light dark:border-border-dark p-3"},[s("div",no,[s("span",so,E(o.header),1),s("p",ao,E(o.question),1)]),s("div",oo,[(c(!0),u(re,null,ve(o.options||[],d=>(c(),u("label",{key:d.label,class:"flex items-start gap-2 text-xs text-text-primary-light dark:text-text-primary-dark"},[s("input",{type:o.multiSelect?"checkbox":"radio",name:`ask-${i}`,checked:e.isSelected(i,d.label),class:"mt-1 h-3 w-3",onChange:m=>n.$emit("option-change",i,d.label,m)},null,40,io),s("div",null,[s("div",lo,E(d.label),1),s("div",co,E(d.description),1)])]))),128)),o.multiSelect?U("",!0):(c(),u("div",uo,[s("label",mo,[s("input",{type:o.multiSelect?"checkbox":"radio",name:`ask-${i}`,checked:e.isSelected(i,e.otherLabel),class:"mt-1 h-3 w-3",onChange:d=>n.$emit("option-change",i,e.otherLabel,d)},null,40,fo),s("div",null,[s("div",po,E(e.otherLabel),1),a[8]||(a[8]=s("div",{class:"text-[10px] text-text-secondary-light dark:text-text-secondary-dark"}," Provide a custom answer ",-1))])]),e.isSelected(i,e.otherLabel)?(c(),u("input",{key:0,value:e.otherInputs[i]||"",class:"w-full rounded-md border border-border-light dark:border-border-dark bg-transparent px-2 py-1 text-xs text-text-primary-light dark:text-text-primary-dark",type:"text",placeholder:"Type your answer",onInput:d=>n.$emit("update:otherInputs",{...e.otherInputs,[i]:d.target.value})},null,40,go)):U("",!0)]))])]))),128))])):(c(),u("p",xo,"No questions available."))]),s("div",yo,[s("button",{class:"text-xs px-3 py-1.5 rounded border border-border-light dark:border-border-dark",type:"button",disabled:e.busy,onClick:a[1]||(a[1]=o=>n.$emit("cancel"))}," Cancel ",8,vo),s("button",{class:"text-xs px-3 py-1.5 rounded bg-primary text-primary-foreground",type:"button",disabled:e.busy,onClick:a[2]||(a[2]=o=>n.$emit("submit"))}," Submit ",8,ho)])],544)])):U("",!0)}}),ko=Object.assign(bo,{__name:"AskUserDialog"});function zn(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=zn(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Fn(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=zn(e))&&(n&&(n+=" "),n+=r);return n}const kn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wn=Fn,wo=(e,r)=>t=>{var n;if(r?.variants==null)return wn(e,t?.class,t?.className);const{variants:a,defaultVariants:o}=r,i=Object.keys(a).map(A=>{const I=t?.[A],M=o?.[A];if(I===null)return null;const P=kn(I)||kn(M);return a[A][P]}),d=t&&Object.entries(t).reduce((A,I)=>{let[M,P]=I;return P===void 0||(A[M]=P),A},{}),m=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((A,I)=>{let{class:M,className:P,..._}=I;return Object.entries(_).every(D=>{let[w,l]=D;return Array.isArray(l)?l.includes({...o,...d}[w]):{...o,...d}[w]===l})?[...A,M,P]:A},[]);return wn(e,i,m,t?.class,t?.className)},So=(e,r)=>{const t=new Array(e.length+r.length);for(let n=0;n<e.length;n++)t[n]=e[n];for(let n=0;n<r.length;n++)t[e.length+n]=r[n];return t},Co=(e,r)=>({classGroupId:e,validator:r}),Wn=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),lr="-",Sn=[],$o="arbitrary..",Ao=e=>{const r=Mo(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Io(i);const d=i.split(lr),m=d[0]===""&&d.length>1?1:0;return qn(d,m,r)},getConflictingClassGroupIds:(i,d)=>{if(d){const m=n[i],A=t[i];return m?A?So(A,m):m:A||Sn}return t[i]||Sn}}},qn=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const a=e[r],o=t.nextPart.get(a);if(o){const A=qn(e,r+1,o);if(A)return A}const i=t.validators;if(i===null)return;const d=r===0?e.join(lr):e.slice(r).join(lr),m=i.length;for(let A=0;A<m;A++){const I=i[A];if(I.validator(d))return I.classGroupId}},Io=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),n=r.slice(0,t);return n?$o+n:void 0})(),Mo=e=>{const{theme:r,classGroups:t}=e;return To(t,r)},To=(e,r)=>{const t=Wn();for(const n in e){const a=e[n];Dr(a,t,n,r)}return t},Dr=(e,r,t,n)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];Ro(i,r,t,n)}},Ro=(e,r,t,n)=>{if(typeof e=="string"){Eo(e,r,t);return}if(typeof e=="function"){_o(e,r,t,n);return}Oo(e,r,t,n)},Eo=(e,r,t)=>{const n=e===""?r:Qn(r,e);n.classGroupId=t},_o=(e,r,t,n)=>{if(No(e)){Dr(e(n),r,t,n);return}r.validators===null&&(r.validators=[]),r.validators.push(Co(t,e))},Oo=(e,r,t,n)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[d,m]=a[i];Dr(m,Qn(r,d),t,n)}},Qn=(e,r)=>{let t=e;const n=r.split(lr),a=n.length;for(let o=0;o<a;o++){const i=n[o];let d=t.nextPart.get(i);d||(d=Wn(),t.nextPart.set(i,d)),t=d}return t},No=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Po=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),n=Object.create(null);const a=(o,i)=>{t[o]=i,r++,r>e&&(r=0,n=t,t=Object.create(null))};return{get(o){let i=t[o];if(i!==void 0)return i;if((i=n[o])!==void 0)return a(o,i),i},set(o,i){o in t?t[o]=i:a(o,i)}}},Nr="!",Cn=":",jo=[],$n=(e,r,t,n,a)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:n,isExternal:a}),Lo=e=>{const{prefix:r,experimentalParseClassName:t}=e;let n=a=>{const o=[];let i=0,d=0,m=0,A;const I=a.length;for(let w=0;w<I;w++){const l=a[w];if(i===0&&d===0){if(l===Cn){o.push(a.slice(m,w)),m=w+1;continue}if(l==="/"){A=w;continue}}l==="["?i++:l==="]"?i--:l==="("?d++:l===")"&&d--}const M=o.length===0?a:a.slice(m);let P=M,_=!1;M.endsWith(Nr)?(P=M.slice(0,-1),_=!0):M.startsWith(Nr)&&(P=M.slice(1),_=!0);const D=A&&A>m?A-m:void 0;return $n(o,_,P,D)};if(r){const a=r+Cn,o=n;n=i=>i.startsWith(a)?o(i.slice(a.length)):$n(jo,!1,i,void 0,!0)}if(t){const a=n;n=o=>t({className:o,parseClassName:a})}return n},Do=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,n)=>{r.set(t,1e6+n)}),t=>{const n=[];let a=[];for(let o=0;o<t.length;o++){const i=t[o],d=i[0]==="[",m=r.has(i);d||m?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(i)):a.push(i)}return a.length>0&&(a.sort(),n.push(...a)),n}},Uo=e=>({cache:Po(e.cacheSize),parseClassName:Lo(e),sortModifiers:Do(e),...Ao(e)}),Bo=/\s+/,zo=(e,r)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=r,i=[],d=e.trim().split(Bo);let m="";for(let A=d.length-1;A>=0;A-=1){const I=d[A],{isExternal:M,modifiers:P,hasImportantModifier:_,baseClassName:D,maybePostfixModifierPosition:w}=t(I);if(M){m=I+(m.length>0?" "+m:m);continue}let l=!!w,g=n(l?D.substring(0,w):D);if(!g){if(!l){m=I+(m.length>0?" "+m:m);continue}if(g=n(D),!g){m=I+(m.length>0?" "+m:m);continue}l=!1}const O=P.length===0?"":P.length===1?P[0]:o(P).join(":"),b=_?O+Nr:O,h=b+g;if(i.indexOf(h)>-1)continue;i.push(h);const v=a(g,l);for(let $=0;$<v.length;++$){const F=v[$];i.push(b+F)}m=I+(m.length>0?" "+m:m)}return m},Fo=(...e)=>{let r=0,t,n,a="";for(;r<e.length;)(t=e[r++])&&(n=Vn(t))&&(a&&(a+=" "),a+=n);return a},Vn=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=Vn(e[n]))&&(t&&(t+=" "),t+=r);return t},Wo=(e,...r)=>{let t,n,a,o;const i=m=>{const A=r.reduce((I,M)=>M(I),e());return t=Uo(A),n=t.cache.get,a=t.cache.set,o=d,d(m)},d=m=>{const A=n(m);if(A)return A;const I=zo(m,t);return a(m,I),I};return o=i,(...m)=>o(Fo(...m))},qo=[],be=e=>{const r=t=>t[e]||qo;return r.isThemeGetter=!0,r},Gn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qo=/^\d+\/\d+$/,Vo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ho=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>Qo.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),Ir=e=>e.endsWith("%")&&Z(e.slice(0,-1)),Qe=e=>Vo.test(e),Xo=()=>!0,Yo=e=>Go.test(e)&&!Jo.test(e),Hn=()=>!1,Zo=e=>Ho.test(e),ei=e=>Ko.test(e),ti=e=>!G(e)&&!J(e),ri=e=>vt(e,Yn,Hn),G=e=>Gn.test(e),et=e=>vt(e,Zn,Yo),Mr=e=>vt(e,ii,Z),An=e=>vt(e,Kn,Hn),ni=e=>vt(e,Xn,ei),er=e=>vt(e,es,Zo),J=e=>Jn.test(e),Rt=e=>ht(e,Zn),si=e=>ht(e,li),In=e=>ht(e,Kn),ai=e=>ht(e,Yn),oi=e=>ht(e,Xn),tr=e=>ht(e,es,!0),vt=(e,r,t)=>{const n=Gn.exec(e);return n?n[1]?r(n[1]):t(n[2]):!1},ht=(e,r,t=!1)=>{const n=Jn.exec(e);return n?n[1]?r(n[1]):t:!1},Kn=e=>e==="position"||e==="percentage",Xn=e=>e==="image"||e==="url",Yn=e=>e==="length"||e==="size"||e==="bg-size",Zn=e=>e==="length",ii=e=>e==="number",li=e=>e==="family-name",es=e=>e==="shadow",di=()=>{const e=be("color"),r=be("font"),t=be("text"),n=be("font-weight"),a=be("tracking"),o=be("leading"),i=be("breakpoint"),d=be("container"),m=be("spacing"),A=be("radius"),I=be("shadow"),M=be("inset-shadow"),P=be("text-shadow"),_=be("drop-shadow"),D=be("blur"),w=be("perspective"),l=be("aspect"),g=be("ease"),O=be("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...h(),J,G],$=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],x=()=>[J,G,m],f=()=>[gt,"full","auto",...x()],C=()=>[Je,"none","subgrid",J,G],N=()=>["auto",{span:["full",Je,J,G]},Je,J,G],k=()=>[Je,"auto",J,G],Q=()=>["auto","min","max","fr",J,G],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],le=()=>["auto",...x()],Se=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],j=()=>[e,J,G],R=()=>[...h(),In,An,{position:[J,G]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",ai,ri,{size:[J,G]}],de=()=>[Ir,Rt,et],oe=()=>["","none","full",A,J,G],me=()=>["",Z,Rt,et],Ee=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Z,Ir,In,An],Ne=()=>["","none",D,J,G],pe=()=>["none",Z,J,G],_e=()=>["none",Z,J,G],Ce=()=>[Z,J,G],We=()=>[gt,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[Xo],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[ti],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",Z],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,G,J,l]}],container:["container"],columns:[{columns:[Z,G,J,d]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:f()}],"inset-x":[{"inset-x":f()}],"inset-y":[{"inset-y":f()}],start:[{start:f()}],end:[{end:f()}],top:[{top:f()}],right:[{right:f()}],bottom:[{bottom:f()}],left:[{left:f()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",J,G]}],basis:[{basis:[gt,"full","auto",d,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,gt,"auto","initial","none",G]}],grow:[{grow:["",Z,J,G]}],shrink:[{shrink:["",Z,J,G]}],order:[{order:[Je,"first","last","none",J,G]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:le()}],mx:[{mx:le()}],my:[{my:le()}],ms:[{ms:le()}],me:[{me:le()}],mt:[{mt:le()}],mr:[{mr:le()}],mb:[{mb:le()}],ml:[{ml:le()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:Se()}],w:[{w:[d,"screen",...Se()]}],"min-w":[{"min-w":[d,"screen","none",...Se()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...Se()]}],h:[{h:["screen","lh",...Se()]}],"min-h":[{"min-h":["screen","lh","none",...Se()]}],"max-h":[{"max-h":["screen","lh",...Se()]}],"font-size":[{text:["base",t,Rt,et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,J,Mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ir,G]}],"font-family":[{font:[si,G,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,J,G]}],"line-clamp":[{"line-clamp":[Z,"none",J,Mr]}],leading:[{leading:[o,...x()]}],"list-image":[{"list-image":["none",J,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",J,et]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Z,"auto",J,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,J,G],radial:["",J,G],conic:[Je,J,G]},oi,ni]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z,J,G]}],"outline-w":[{outline:["",Z,Rt,et]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",I,tr,er]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",M,tr,er]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Z,et]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",P,tr,er]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Z,J,G]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[J,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":h()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,G]}],filter:[{filter:["","none",J,G]}],blur:[{blur:Ne()}],brightness:[{brightness:[Z,J,G]}],contrast:[{contrast:[Z,J,G]}],"drop-shadow":[{"drop-shadow":["","none",_,tr,er]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Z,J,G]}],"hue-rotate":[{"hue-rotate":[Z,J,G]}],invert:[{invert:["",Z,J,G]}],saturate:[{saturate:[Z,J,G]}],sepia:[{sepia:["",Z,J,G]}],"backdrop-filter":[{"backdrop-filter":["","none",J,G]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Z,J,G]}],"backdrop-contrast":[{"backdrop-contrast":[Z,J,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,J,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,J,G]}],"backdrop-invert":[{"backdrop-invert":["",Z,J,G]}],"backdrop-opacity":[{"backdrop-opacity":[Z,J,G]}],"backdrop-saturate":[{"backdrop-saturate":[Z,J,G]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,J,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",J,G]}],ease:[{ease:["linear","initial",g,J,G]}],delay:[{delay:[Z,J,G]}],animate:[{animate:["none",O,J,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,J,G]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[J,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:We()}],"translate-x":[{"translate-x":We()}],"translate-y":[{"translate-y":We()}],"translate-z":[{"translate-z":We()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,G]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Z,Rt,et,Mr]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ci=Wo(di);function ts(...e){return ci(Fn(e))}const ui=he({inheritAttrs:!1,__name:"Button",props:{variant:{default:"default"},size:{default:"default"},class:{default:""}},setup(e){const r=wo("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background-light transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-border-light dark:border-border-dark bg-transparent hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark",secondary:"bg-gray-100 dark:bg-gray-800 text-text-primary-light dark:text-text-primary-dark hover:bg-gray-200 dark:hover:bg-gray-700",ghost:"hover:bg-gray-100 dark:hover:bg-gray-800 text-text-secondary-light dark:text-text-secondary-dark hover:text-text-primary-light dark:hover:text-text-primary-dark",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),t=e,n=jn(),a=z(()=>ts(r({variant:t.variant,size:t.size}),t.class));return(o,i)=>(c(),u("button",Dn(q(n),{class:a.value}),[Ln(o.$slots,"default")],16))}}),Fe=Object.assign(ui,{__name:"UiButton"}),mi=he({inheritAttrs:!1,__name:"Card",props:{class:{default:""}},setup(e){const r=e,t=jn(),n=z(()=>ts("rounded-lg border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark text-text-primary-light dark:text-text-primary-dark shadow-sm",r.class));return(a,o)=>(c(),u("div",Dn(q(t),{class:n.value}),[Ln(a.$slots,"default")],16))}}),fi=Object.assign(mi,{__name:"UiCard"}),pi={key:0,class:"absolute left-0 bottom-10 w-44 rounded-md border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-1 z-30"},gi=he({__name:"ApprovalsMenu",props:{open:{type:Boolean},mode:{}},emits:["toggle","select"],setup(e,{expose:r}){const t=e,n=z(()=>t.mode==="all"?"Always allow":"Auto"),a=T(null);return r({menuEl:a}),(o,i)=>(c(),u("div",{ref_key:"menuEl",ref:a,class:"relative"},[ee(Fe,{variant:"secondary",size:"sm",class:"h-8 gap-1.5 text-xs font-medium border border-gray-200 dark:border-gray-700 text-text-secondary-light dark:text-text-secondary-dark",type:"button",onClick:i[0]||(i[0]=d=>o.$emit("toggle"))},{default:we(()=>[i[3]||(i[3]=s("span",{class:"material-icons-outlined text-[14px]"},"shield",-1)),ge(" "+E(n.value)+" ",1),i[4]||(i[4]=s("span",{class:"material-icons-outlined text-xs"},"expand_more",-1))]),_:1}),e.open?(c(),u("div",pi,[s("button",{class:Y(["w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark flex items-center gap-2",e.mode==="auto"?"font-semibold":""]),type:"button",onClick:i[1]||(i[1]=d=>o.$emit("select","auto"))},[...i[5]||(i[5]=[s("span",{class:"material-icons-outlined text-[14px]"},"tune",-1),ge(" Auto ",-1)])],2),s("button",{class:Y(["w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark flex items-center gap-2",e.mode==="all"?"font-semibold":""]),type:"button",onClick:i[2]||(i[2]=d=>o.$emit("select","all"))},[...i[6]||(i[6]=[s("span",{class:"material-icons-outlined text-[14px]"},"verified",-1),ge(" Always allow ",-1)])],2)])):U("",!0)],512))}}),xi=Object.assign(gi,{__name:"ApprovalsMenu"}),yi={key:0,class:"absolute left-0 bottom-10 w-40 rounded-md border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-1 z-30"},vi=["disabled"],hi=he({__name:"ComposerMenu",props:{open:{type:Boolean},uploadsEnabled:{type:Boolean},debugUi:{type:Boolean}},emits:["toggle","add-file","quick-action"],setup(e,{expose:r}){const t=T(null);return r({menuEl:t}),(n,a)=>(c(),u("div",{ref_key:"menuEl",ref:t,class:"relative"},[ee(Fe,{variant:"ghost",size:"icon",class:"h-8 w-8 text-text-secondary-light dark:text-text-secondary-dark",type:"button",onClick:a[0]||(a[0]=o=>n.$emit("toggle"))},{default:we(()=>[...a[3]||(a[3]=[s("span",{class:"material-icons-outlined text-lg"},"add",-1)])]),_:1}),e.open?(c(),u("div",yi,[s("button",{class:"w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark disabled:opacity-50",type:"button",disabled:!e.uploadsEnabled,onClick:a[1]||(a[1]=o=>n.$emit("add-file"))}," Add file ",8,vi),e.debugUi?(c(),u("button",{key:0,class:"w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark",type:"button",onClick:a[2]||(a[2]=o=>n.$emit("quick-action","Health check"))}," Health check ")):U("",!0)])):U("",!0)],512))}}),bi=Object.assign(hi,{__name:"ComposerMenu"}),ki={class:"material-icons-outlined text-[14px]"},wi={key:0,class:"absolute left-0 bottom-10 w-36 rounded-md border border-border-light dark:border-border-dark bg-surface-light dark:bg-surface-dark shadow-lg p-1 z-30"},Si=["onClick"],Ci={class:"inline-flex items-center gap-2"},$i={class:"material-icons-outlined text-[14px]"},Ai={key:0,class:"material-icons-outlined text-[14px] text-primary"},Ii=he({__name:"ModeMenu",props:{open:{type:Boolean},modeIcon:{},modeLabel:{},modeOptions:{},activeMode:{}},emits:["toggle","select-mode"],setup(e,{expose:r}){const t=T(null);return r({menuEl:t}),(n,a)=>(c(),u("div",{ref_key:"menuEl",ref:t,class:"relative"},[ee(Fe,{variant:"secondary",size:"sm",class:"h-8 gap-1.5 text-xs font-medium border border-gray-200 dark:border-gray-700 text-text-secondary-light dark:text-text-secondary-dark",type:"button",onClick:a[0]||(a[0]=o=>n.$emit("toggle"))},{default:we(()=>[s("span",ki,E(e.modeIcon),1),ge(" "+E(e.modeLabel)+" ",1),a[1]||(a[1]=s("span",{class:"material-icons-outlined text-xs"},"expand_more",-1))]),_:1}),e.open?(c(),u("div",wi,[(c(!0),u(re,null,ve(e.modeOptions,o=>(c(),u("button",{key:o.id,class:Y(["w-full text-left px-2 py-1.5 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 text-text-primary-light dark:text-text-primary-dark flex items-center justify-between gap-2",o.id===e.activeMode?"bg-gray-100 dark:bg-gray-800/70":""]),type:"button",onClick:i=>n.$emit("select-mode",o.id)},[s("span",Ci,[s("span",$i,E(o.icon),1),s("span",null,E(o.label),1)]),o.id===e.activeMode?(c(),u("span",Ai," check ")):U("",!0)],10,Si))),128))])):U("",!0)],512))}}),Mi=Object.assign(Ii,{__name:"ModeMenu"}),Ti={class:"absolute bottom-0 left-0 right-0 p-6 flex justify-center bg-gradient-to-t from-background-light via-background-light to-transparent dark:from-background-dark dark:via-background-dark pointer-events-none z-20"},Ri={key:0,class:"mb-3 grid gap-2"},Ei={class:"flex items-center gap-2.5"},_i={class:"h-11 w-11 shrink-0 overflow-hidden rounded-md border border-border-light/80 dark:border-border-dark/80 bg-gray-100 dark:bg-gray-800/60"},Oi=["src","alt"],Ni={key:1,class:"h-full w-full flex items-center justify-center text-text-secondary-light dark:text-text-secondary-dark"},Pi={class:"material-icons-outlined text-[19px]"},ji={class:"min-w-0 flex-1"},Li={class:"flex items-center gap-1.5"},Di={class:"truncate text-xs font-medium text-text-primary-light dark:text-text-primary-dark"},Ui={class:"inline-flex shrink-0 items-center rounded-full border border-border-light dark:border-border-dark bg-white/75 dark:bg-gray-900/55 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-text-secondary-light dark:text-text-secondary-dark"},Bi={class:"mt-0.5 truncate text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},zi={key:0,class:"mt-2 h-1.5 overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800/80"},Fi={key:1,class:"mt-1.5 text-[10px] text-red-500"},Wi=["value","placeholder","onKeydown"],qi={key:1,class:"mt-2 text-[10px] text-text-secondary-light dark:text-text-secondary-dark space-y-1"},Qi={key:0},Vi={key:1},Gi={key:2},Ji={key:2,class:"mt-2 flex items-center justify-between gap-2 text-[10px] text-text-secondary-light dark:text-text-secondary-dark"},Hi={class:"flex items-center gap-2"},Ki=["checked"],Xi={key:0},Yi={class:"flex items-center justify-between mt-3"},Zi={class:"flex items-center gap-2"},el={class:"flex items-center gap-1.5 flex-wrap"},tl=["title"],rl={key:1,class:"flex items-center gap-2 text-xs text-text-secondary-light dark:text-text-secondary-dark"},nl=["checked"],sl={key:0,class:"material-icons-outlined text-[14px] mr-1"},al={key:0,class:"text-center mt-2"},ol={class:"text-[10px] text-red-500"},il={key:1,class:"text-center mt-2"},ll=he({__name:"ChatComposer",props:{modelValue:{},placeholder:{},attachments:{},uploadsEnabled:{type:Boolean},imagesEnabled:{type:Boolean},attachmentsBase64:{type:Boolean},attachmentNote:{},composerMenuOpen:{type:Boolean},modeMenuOpen:{type:Boolean},modeIcon:{},modeLabel:{},modeOptions:{},activeMode:{},approvalsMenuOpen:{type:Boolean},toolApprovalsMode:{},useStreamingQuery:{type:Boolean},debugUi:{type:Boolean},sendLabel:{},sendDisabled:{type:Boolean},sendIsStop:{type:Boolean},queryError:{},streamQueryError:{},activeSkillNames:{}},emits:["update:modelValue","update:attachmentsBase64","update:useStreamingQuery","drop","paste","compositionstart","compositionend","enter","remove-attachment","toggle-composer-menu","toggle-mode-menu","toggle-approvals-menu","set-approvals","add-file","quick-action","select-mode","send","stop","file-pick","open-skills"],setup(e,{expose:r,emit:t}){const n=e,a=t,o=T(null),i=T(null);function d(w){const l=Number(w||0);if(!Number.isFinite(l)||l<=0)return"0 B";if(l<1024)return`${l} B`;const g=l/1024;if(g<1024)return`${g.toFixed(g>=100?0:1)} KB`;const O=g/1024;return`${O.toFixed(O>=100?0:1)} MB`}function m(w){const l=String(w??"").toLowerCase();return l.startsWith("image/")?"image":l.includes("pdf")?"picture_as_pdf":l.includes("json")||l.includes("xml")||l.includes("javascript")||l.includes("typescript")?"data_object":l.startsWith("text/")?"description":"attach_file"}function A(w){return String(w??"").toLowerCase().startsWith("image/")?"image":"file"}function I(w){return w==="ready"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/35 dark:text-emerald-300":w==="error"?"bg-rose-100 text-rose-700 dark:bg-rose-900/35 dark:text-rose-300":w==="uploading"?"bg-sky-100 text-sky-700 dark:bg-sky-900/35 dark:text-sky-300":"bg-gray-100 text-gray-700 dark:bg-gray-800/80 dark:text-gray-300"}function M(w){const l=[d(w.size)];return w.remote?.url&&l.push(w.remote.url),l.join(" · ")}function P(){if(n.sendIsStop){a("stop");return}a("send")}function _(){n.sendIsStop&&a("stop")}function D(){o.value?.click(),a("add-file")}return r({filePickerRef:o,approvalsMenuComponent:i}),(w,l)=>(c(),u("div",Ti,[s("div",{class:"w-full max-w-3xl pointer-events-auto",onDragover:l[14]||(l[14]=ue(()=>{},["prevent"])),onDrop:l[15]||(l[15]=ue(g=>w.$emit("drop",g),["prevent"]))},[ee(fi,{class:"p-3 shadow-soft dark:shadow-none bg-surface-light dark:bg-surface-dark border-border-light dark:border-border-dark"},{default:we(()=>[e.attachments.length?(c(),u("div",Ri,[(c(!0),u(re,null,ve(e.attachments,g=>(c(),u("div",{key:g.id,class:"rounded-lg border border-border-light dark:border-border-dark bg-white/65 dark:bg-gray-900/35 px-2.5 py-2"},[s("div",Ei,[s("div",_i,[g.mime.startsWith("image/")?(c(),u("img",{key:0,src:g.localUrl,alt:g.name,class:"h-full w-full object-cover",loading:"lazy",decoding:"async"},null,8,Oi)):(c(),u("div",Ni,[s("span",Pi,E(m(g.mime)),1)]))]),s("div",ji,[s("div",Li,[s("span",Di,E(g.name),1),s("span",Ui,E(A(g.mime)),1)]),s("div",Bi,E(M(g)),1)]),s("span",{class:Y(["inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-[10px] font-medium",I(g.status)])},E(g.status),3),ee(Fe,{variant:"ghost",size:"sm",class:"h-7 w-7 px-0 text-text-secondary-light dark:text-text-secondary-dark hover:text-destructive",type:"button",title:"Remove attachment",onClick:O=>w.$emit("remove-attachment",g.id)},{default:we(()=>[...l[17]||(l[17]=[s("span",{class:"material-icons-outlined text-[16px]"},"close",-1)])]),_:1},8,["onClick"])]),g.status==="uploading"?(c(),u("div",zi,[...l[18]||(l[18]=[s("div",{class:"h-full w-1/2 animate-pulse rounded-full bg-primary/75"},null,-1)])])):U("",!0),g.status==="error"&&g.error?(c(),u("div",Fi,E(g.error),1)):U("",!0)]))),128))])):U("",!0),s("textarea",{value:e.modelValue,class:"w-full resize-none border-none bg-transparent text-sm text-text-primary-light dark:text-text-primary-dark placeholder:text-text-secondary-light dark:placeholder:text-text-secondary-dark focus-visible:outline-none focus-visible:ring-0 py-2",rows:"2",placeholder:e.placeholder,onInput:l[0]||(l[0]=g=>w.$emit("update:modelValue",g.target.value)),onPaste:l[1]||(l[1]=g=>w.$emit("paste",g)),onCompositionstart:l[2]||(l[2]=g=>w.$emit("compositionstart")),onCompositionend:l[3]||(l[3]=g=>w.$emit("compositionend")),onKeydown:[l[4]||(l[4]=Le(ue(g=>w.$emit("enter",g),["exact"]),["enter"])),Le(ue(_,["exact","prevent"]),["esc"])]},null,40,Wi),e.attachments.length?(c(),u("div",qi,[e.uploadsEnabled?e.imagesEnabled?(c(),u("span",Vi,"Attachments keep visual preview in GUI and are also sent as markdown refs (`[image](...)` / `[file](...)`).")):(c(),u("span",Gi,"Model does not support images; images are still attached and also sent as markdown refs for context.")):(c(),u("span",Qi,"Uploads disabled by server."))])):U("",!0),e.attachments.length?(c(),u("div",Ji,[s("label",Hi,[s("input",{checked:e.attachmentsBase64,type:"checkbox",class:"h-3 w-3",onChange:l[5]||(l[5]=g=>w.$emit("update:attachmentsBase64",g.target.checked))},null,40,Ki),l[19]||(l[19]=ge(" Include base64 when images are unsupported (large) ",-1))]),e.attachmentNote?(c(),u("span",Xi,E(e.attachmentNote),1)):U("",!0)])):U("",!0),s("div",Yi,[s("div",Zi,[ee(bi,{open:e.composerMenuOpen,"uploads-enabled":e.uploadsEnabled,"debug-ui":e.debugUi,onToggle:l[6]||(l[6]=g=>w.$emit("toggle-composer-menu")),onAddFile:D,onQuickAction:l[7]||(l[7]=g=>w.$emit("quick-action",g))},null,8,["open","uploads-enabled","debug-ui"]),ee(Mi,{open:e.modeMenuOpen,"mode-icon":e.modeIcon,"mode-label":e.modeLabel,"mode-options":e.modeOptions,"active-mode":e.activeMode,onToggle:l[8]||(l[8]=g=>w.$emit("toggle-mode-menu")),onSelectMode:l[9]||(l[9]=g=>w.$emit("select-mode",g))},null,8,["open","mode-icon","mode-label","mode-options","active-mode"]),ee(xi,{ref_key:"approvalsMenuComponent",ref:i,open:e.approvalsMenuOpen,mode:e.toolApprovalsMode,onToggle:l[10]||(l[10]=g=>w.$emit("toggle-approvals-menu")),onSelect:l[11]||(l[11]=g=>w.$emit("set-approvals",g))},null,8,["open","mode"]),e.activeSkillNames.length?(c(),u(re,{key:0},[l[21]||(l[21]=s("span",{class:"w-px h-4 bg-border-light dark:bg-border-dark"},null,-1)),s("div",el,[(c(!0),u(re,null,ve(e.activeSkillNames,g=>(c(),u("button",{key:g,type:"button",class:"inline-flex items-center gap-1 h-6 px-2 rounded-full text-[11px] font-medium bg-primary/10 text-primary hover:bg-primary/20 transition-colors",title:`Active skill: ${g} (click to manage)`,onClick:l[12]||(l[12]=O=>w.$emit("open-skills"))},[l[20]||(l[20]=s("span",{class:"material-icons-outlined text-[12px]"},"bolt",-1)),ge(" "+E(g),1)],8,tl))),128))])],64)):U("",!0),e.debugUi?(c(),u("label",rl,[s("input",{checked:e.useStreamingQuery,type:"checkbox",class:"h-3 w-3",onChange:l[13]||(l[13]=g=>w.$emit("update:useStreamingQuery",g.target.checked))},null,40,nl),l[22]||(l[22]=s("span",null,"Streaming",-1))])):U("",!0)]),ee(Fe,{type:"button",disabled:e.sendDisabled,class:"h-8 px-4 text-xs",onClick:P},{default:we(()=>[e.sendIsStop?(c(),u("span",sl,"stop_circle")):U("",!0),ge(" "+E(e.sendLabel),1)]),_:1},8,["disabled"])])]),_:1}),e.queryError||e.streamQueryError?(c(),u("div",al,[s("p",ol,E(e.queryError||e.streamQueryError),1)])):(c(),u("div",il,[...l[23]||(l[23]=[s("p",{class:"text-[10px] text-text-secondary-light dark:text-text-secondary-dark"}," AI can make mistakes. Please review code. ",-1)])]))],32),s("input",{ref_key:"filePickerRef",ref:o,class:"hidden",type:"file",accept:"*/*",multiple:"",onChange:l[16]||(l[16]=g=>w.$emit("file-pick",g))},null,544)]))}}),dl=Object.assign(ll,{__name:"ChatComposer"}),cl={class:"h-14 border-b border-border-light dark:border-border-dark flex items-center justify-between px-6 bg-background-light dark:bg-background-dark z-10 flex-shrink-0"},ul={class:"flex items-center gap-3 overflow-hidden"},ml={class:"text-sm font-semibold text-text-primary-light dark:text-text-primary-dark whitespace-nowrap truncate"},fl=["title"],pl={class:"flex h-8 items-center gap-1 text-xs text-text-secondary-light dark:text-text-secondary-dark"},gl={class:"hidden md:inline text-[11px] leading-none"},xl=["title"],yl={class:"material-icons-outlined text-base leading-none"},vl=he({__name:"ChatHeader",props:{activeSessionTitle:{},activeSessionSummary:{},chatHeaderStats:{},darkMode:{type:Boolean}},emits:["reconnect","toggle-theme"],setup(e){const r=e,t=z(()=>{const n=r.activeSessionTitle.trim().toLowerCase(),a=r.activeSessionSummary.trim().toLowerCase();return a.length>0&&a!==n});return(n,a)=>(c(),u("header",cl,[s("div",ul,[s("h1",ml,E(e.activeSessionTitle||"New thread"),1),t.value?(c(),u("span",{key:0,class:"hidden xl:inline-flex max-w-[280px] truncate text-[11px] text-text-secondary-light dark:text-text-secondary-dark",title:e.activeSessionSummary},E(e.activeSessionSummary),9,fl)):U("",!0)]),s("div",pl,[s("span",gl,E(e.chatHeaderStats),1),s("button",{class:"h-8 w-8 rounded-md inline-flex items-center justify-center text-text-secondary-light dark:text-text-secondary-dark hover:text-primary hover:bg-gray-100 dark:hover:bg-gray-800/60 transition-colors",type:"button",title:e.darkMode?"Switch to light mode":"Switch to dark mode",onClick:a[0]||(a[0]=o=>n.$emit("toggle-theme"))},[s("span",yl,E(e.darkMode?"light_mode":"dark_mode"),1)],8,xl),s("button",{class:"h-8 w-8 rounded-md inline-flex items-center justify-center text-text-secondary-light dark:text-text-secondary-dark hover:text-primary hover:bg-gray-100 dark:hover:bg-gray-800/60 transition-colors",type:"button",onClick:a[1]||(a[1]=o=>n.$emit("reconnect"))},[...a[2]||(a[2]=[s("span",{class:"material-icons-outlined text-base leading-none"},"refresh",-1)])])])]))}}),hl=Object.assign(vl,{__name:"ChatHeader"}),bl={class:"message-renderer"},kl={key:1,class:"empty-message"},wl=he({__name:"MessageRenderer",props:{content:{},emptyText:{default:"No content"},isDark:{type:Boolean}},setup(e){const r=e,t=z(()=>r.content?.trim()||""),n=z(()=>!!r.isDark);return(a,o)=>{const i=Ha("MarkdownRender");return c(),u("div",bl,[t.value?(c(),xt(i,{key:n.value?"md-dark":"md-light",class:Y(n.value?"dark":""),content:t.value,"is-dark":n.value,"max-live-nodes":0,"batch-rendering":!0,"render-batch-size":16,"render-batch-delay":8,"enable-mermaid":!0,"enable-katex":!0},null,8,["class","content","is-dark"])):(c(),u("div",kl,E(e.emptyText),1))])}}}),Sl=Object.assign(yt(wl,[["__scopeId","data-v-c32aab6f"]]),{__name:"MessageRenderer"}),rs=Object.freeze({readOnly:!0,automaticLayout:!0,scrollBeyondLastLine:!1,minimap:{enabled:!1},wordWrap:"on"}),Cl=Object.freeze({...rs,renderSideBySide:!0,useInlineViewWhenSpaceIsLimited:!0,diffWordWrap:"on"}),$l={class:"tool-code-block markstream-vue min-w-0 w-full max-w-full overflow-hidden"},Al=he({__name:"ToolCodeBlock",props:{node:{},isDark:{type:Boolean,default:!1},diff:{type:Boolean,default:!1}},setup(e){const r=e,t=z(()=>r.diff?Cl:rs),n=Ka({loader:Xa,suspensible:!1});return(a,o)=>(c(),u("div",$l,[ee(q(n),{class:"tool-code-node",node:r.node,"is-dark":r.isDark,loading:!1,stream:!1,"dark-theme":"vitesse-dark","light-theme":"vitesse-light","is-show-preview":!1,"enable-font-size-control":!1,"show-header":!1,"show-copy-button":!1,"show-expand-button":!1,"show-preview-button":!1,"show-font-size-buttons":!1,"monaco-options":t.value,"min-width":0,"max-width":"100%"},null,8,["node","is-dark","monaco-options"])]))}}),Et=Object.assign(yt(Al,[["__scopeId","data-v-510bc205"]]),{__name:"ToolCodeBlock"});function Il(e,r=1200){const t=String(e??"").replace(/\r/g,"").split(`
2
2
  `),n=[];let a=0,o=0;const i=d=>{const m=String(d).match(/^@@\s*-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s*@@/);if(!m)return null;const A=Number(m[1]),I=Number(m[2]);return!Number.isFinite(A)||!Number.isFinite(I)?null:{oldStart:A,newStart:I}};for(let d=0;d<t.length&&!(n.length>=r);d+=1){const m=t[d]??"";if(m.startsWith("@@")){const M=i(m);M&&(a=M.oldStart,o=M.newStart),n.push({kind:"hunk",text:m});continue}if(m.startsWith("+++")||m.startsWith("---")||m.startsWith("diff ")||m.startsWith("index ")||m.startsWith("\\")){n.push({kind:"meta",text:m});continue}if(m.startsWith("+")){const M=o>0?o:void 0;n.push({kind:"add",text:m,newNo:M}),o>0&&(o+=1);continue}if(m.startsWith("-")){const M=a>0?a:void 0;n.push({kind:"remove",text:m,oldNo:M}),a>0&&(a+=1);continue}const A=a>0?a:void 0,I=o>0?o:void 0;n.push({kind:"context",text:m,oldNo:A,newNo:I}),a>0&&(a+=1),o>0&&(o+=1)}return n}function Ml(e,r,t=1200){const n=String(e??"").replace(/\r/g,"").split(`
3
3
  `),a=String(r??"").replace(/\r/g,"").split(`
4
4
  `),o=[{kind:"hunk",text:"@@ @@",oldNo:1,newNo:1}];let i=0,d=0;for(;(i<n.length||d<a.length)&&o.length<t;){const m=n[i],A=a[d];if(m===A){m!=null&&o.push({kind:"context",text:` ${m}`,oldNo:i+1,newNo:d+1}),i+=1,d+=1;continue}const I=n[i+1],M=a[d+1];if(I!=null&&I===A){m!=null&&o.push({kind:"remove",text:`-${m}`,oldNo:i+1}),i+=1;continue}if(M!=null&&m===M){A!=null&&o.push({kind:"add",text:`+${A}`,newNo:d+1}),d+=1;continue}m!=null&&(o.push({kind:"remove",text:`-${m}`,oldNo:i+1}),i+=1),A!=null&&o.length<t&&(o.push({kind:"add",text:`+${A}`,newNo:d+1}),d+=1)}return o}function ns(e){let r=0,t=0;for(const n of e)n.kind==="add"?r+=1:n.kind==="remove"&&(t+=1);return{added:r,removed:t}}function Tl(e,r=3e3){const t=String(e??"").replace(/\r/g,"").split(`
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CpLH-0oy.js","./BIYtAlzl.js","./vendor-markstream.Cj37GgC9.css","./DlAUqK2U.js","./index.BGLZpmxK.css","./0lvo-1Wn.js","./error-404.BAwq3L4-.css","./DtCrOtYE.js","./error-500.DFXMopWe.css"])))=>i.map(i=>d[i]);
2
+ import{K as q,L as Ne,M as T,N as Ue,O as H,P as Ie,Q as L,R as I,j as F,S as z,H as _e,U as te,V as Be,W as oe,X as Ke,Y as $e,Z as qe,$ as Fe,a0 as C,a1 as xe,_ as x,a2 as ge,a3 as we,a4 as be,a5 as ve,a6 as S,a7 as De,a8 as We,a9 as Je,aa as Qe,ab as O,ac as Re,ad as Ee,ae as re,af as ne,ag as ae,ah as ze,ai as M,aj as se,ak as G,al as ke,am as ie,an as Ge,ao as Ve,ap as Ye,aq as Xe,ar as Ze,f as Te,as as Se,at as V,au as Pe,av as ce,aw as et,A as tt,B as ot,I as D,ax as le,ay as rt,az as nt,aA as Ce,aB as at,aC as st,F as it,o as P,c as Oe,b as ct,v as A,aD as lt,aE as ut,n as R,x as ue,aF as dt,aG as ft,w as pt,aH as ht,aI as yt,aJ as mt,aK as _t,aL as de,aM as gt,aN as wt}from"./BIYtAlzl.js";import"./dVZhdREZ.js";import{c as bt,a as vt,b as Rt,e as Et,f as kt,g as Tt,h as St,I as Pt,P as Ct,d as Ot,A as Mt,G as At,R as Lt,T as Ht}from"./DzRKJGL0.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function o(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(r){if(r.ep)return;r.ep=!0;const s=o(r);fetch(r.href,s)}})();const jt=/#/g,Nt=/&/g,Ut=/\//g,It=/=/g,Y=/\+/g,Bt=/%5e/gi,Kt=/%60/gi,$t=/%7c/gi,qt=/%20/gi;function Ft(e){return encodeURI(""+e).replace($t,"|")}function W(e){return Ft(typeof e=="string"?e:JSON.stringify(e)).replace(Y,"%2B").replace(qt,"+").replace(jt,"%23").replace(Nt,"%26").replace(Kt,"`").replace(Bt,"^").replace(Ut,"%2F")}function K(e){return W(e).replace(It,"%3D")}function Me(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function xt(e){return Me(e.replace(Y," "))}function Dt(e){return Me(e.replace(Y," "))}function Wt(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const o of e.split("&")){const a=o.match(/([^=]+)=?(.*)/)||[];if(a.length<2)continue;const r=xt(a[1]);if(r==="__proto__"||r==="constructor")continue;const s=Dt(a[2]||"");t[r]===void 0?t[r]=s:Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]}return t}function Jt(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(o=>`${K(e)}=${W(o)}`).join("&"):`${K(e)}=${W(t)}`:K(e)}function Qt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Jt(t,e[t])).filter(Boolean).join("&")}const zt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Gt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Vt=/^([/\\]\s*){2,}[^/\\]/,Yt=/^\.?\//;function Ae(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?zt.test(e):Gt.test(e)||(t.acceptRelative?Vt.test(e):!1)}function Xt(e="",t){return e.endsWith("/")}function Zt(e="",t){return(Xt(e)?e.slice(0,-1):e)||"/"}function eo(e="",t){return e.endsWith("/")?e:e+"/"}function to(e,t){if(ro(t)||Ae(e))return e;const o=Zt(t);return e.startsWith(o)?e:ao(o,e)}function oo(e,t){const o=so(e),a={...Wt(o.search),...t};return o.search=Qt(a),io(o)}function ro(e){return!e||e==="/"}function no(e){return e&&e!=="/"}function ao(e,...t){let o=e||"";for(const a of t.filter(r=>no(r)))if(o){const r=a.replace(Yt,"");o=eo(o)+r}else o=a;return o}const Le=Symbol.for("ufo:protocolRelative");function so(e="",t){const o=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(o){const[,m,v=""]=o;return{protocol:m.toLowerCase(),pathname:v,href:m+v,auth:"",host:"",search:"",hash:""}}if(!Ae(e,{acceptRelative:!0}))return fe(e);const[,a="",r,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,u="",i=""]=s.match(/([^#/?]*)(.*)?/)||[];a==="file:"&&(i=i.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:y,search:f,hash:n}=fe(i);return{protocol:a.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:u,pathname:y,search:f,hash:n,[Le]:!a}}function fe(e=""){const[t="",o="",a=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:o,hash:a}}function io(e){const t=e.pathname||"",o=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",a=e.hash||"",r=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Le]?(e.protocol||"")+"//":"")+r+s+t+o+a}class co extends Error{constructor(t,o){super(t,o),this.name="FetchError",o?.cause&&!this.cause&&(this.cause=o.cause)}}function lo(e){const t=e.error?.message||e.error?.toString()||"",o=e.request?.method||e.options?.method||"GET",a=e.request?.url||String(e.request)||"/",r=`[${o}] ${JSON.stringify(a)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",u=`${r}: ${s}${t?` ${t}`:""}`,i=new co(u,e.error?{cause:e.error}:void 0);for(const y of["request","options","response"])Object.defineProperty(i,y,{get(){return e[y]}});for(const[y,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(i,y,{get(){return e.response&&e.response[f]}});return i}const uo=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function pe(e="GET"){return uo.has(e.toUpperCase())}function fo(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const po=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ho=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yo(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return ho.test(t)?"json":t==="text/event-stream"?"stream":po.has(t)||t.startsWith("text/")?"text":"blob"}function mo(e,t,o,a){const r=_o(t?.headers??e?.headers,o?.headers,a);let s;return(o?.query||o?.params||t?.params||t?.query)&&(s={...o?.params,...o?.query,...t?.params,...t?.query}),{...o,...t,query:s,params:s,headers:r}}function _o(e,t,o){if(!t)return new o(e);const a=new o(t);if(e)for(const[r,s]of Symbol.iterator in e||Array.isArray(e)?e:new o(e))a.set(r,s);return a}async function N(e,t){if(t)if(Array.isArray(t))for(const o of t)await o(e);else await t(e)}const go=new Set([408,409,425,429,500,502,503,504]),wo=new Set([101,204,205,304]);function He(e={}){const{fetch:t=globalThis.fetch,Headers:o=globalThis.Headers,AbortController:a=globalThis.AbortController}=e;async function r(i){const y=i.error&&i.error.name==="AbortError"&&!i.options.timeout||!1;if(i.options.retry!==!1&&!y){let n;typeof i.options.retry=="number"?n=i.options.retry:n=pe(i.options.method)?0:1;const m=i.response&&i.response.status||500;if(n>0&&(Array.isArray(i.options.retryStatusCodes)?i.options.retryStatusCodes.includes(m):go.has(m))){const v=typeof i.options.retryDelay=="function"?i.options.retryDelay(i):i.options.retryDelay||0;return v>0&&await new Promise(l=>setTimeout(l,v)),s(i.request,{...i.options,retry:n-1})}}const f=lo(i);throw Error.captureStackTrace&&Error.captureStackTrace(f,s),f}const s=async function(y,f={}){const n={request:y,options:mo(y,f,e.defaults,o),response:void 0,error:void 0};if(n.options.method&&(n.options.method=n.options.method.toUpperCase()),n.options.onRequest&&(await N(n,n.options.onRequest),n.options.headers instanceof o||(n.options.headers=new o(n.options.headers||{}))),typeof n.request=="string"&&(n.options.baseURL&&(n.request=to(n.request,n.options.baseURL)),n.options.query&&(n.request=oo(n.request,n.options.query),delete n.options.query),"query"in n.options&&delete n.options.query,"params"in n.options&&delete n.options.params),n.options.body&&pe(n.options.method))if(fo(n.options.body)){const l=n.options.headers.get("content-type");typeof n.options.body!="string"&&(n.options.body=l==="application/x-www-form-urlencoded"?new URLSearchParams(n.options.body).toString():JSON.stringify(n.options.body)),l||n.options.headers.set("content-type","application/json"),n.options.headers.has("accept")||n.options.headers.set("accept","application/json")}else("pipeTo"in n.options.body&&typeof n.options.body.pipeTo=="function"||typeof n.options.body.pipe=="function")&&("duplex"in n.options||(n.options.duplex="half"));let m;if(!n.options.signal&&n.options.timeout){const l=new a;m=setTimeout(()=>{const c=new Error("[TimeoutError]: The operation was aborted due to timeout");c.name="TimeoutError",c.code=23,l.abort(c)},n.options.timeout),n.options.signal=l.signal}try{n.response=await t(n.request,n.options)}catch(l){return n.error=l,n.options.onRequestError&&await N(n,n.options.onRequestError),await r(n)}finally{m&&clearTimeout(m)}if((n.response.body||n.response._bodyInit)&&!wo.has(n.response.status)&&n.options.method!=="HEAD"){const l=(n.options.parseResponse?"json":n.options.responseType)||yo(n.response.headers.get("content-type")||"");switch(l){case"json":{const c=await n.response.text(),p=n.options.parseResponse||q;n.response._data=p(c);break}case"stream":{n.response._data=n.response.body||n.response._bodyInit;break}default:n.response._data=await n.response[l]()}}return n.options.onResponse&&await N(n,n.options.onResponse),!n.options.ignoreResponseError&&n.response.status>=400&&n.response.status<600?(n.options.onResponseError&&await N(n,n.options.onResponseError),await r(n)):n.response},u=async function(y,f){return(await s(y,f))._data};return u.raw=s,u.native=(...i)=>t(...i),u.create=(i={},y={})=>He({...e,...y,defaults:{...e.defaults,...y.defaults,...i}}),u}const B=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),bo=B.fetch?(...e)=>B.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),vo=B.Headers,Ro=B.AbortController,Eo=He({fetch:bo,Headers:vo,AbortController:Ro}),ko=Eo;globalThis.$fetch||(globalThis.$fetch=ko.create({baseURL:Ne()}));"global"in globalThis||(globalThis.global=globalThis);const To=[["NuxtError",e=>L(e)],["EmptyShallowRef",e=>I(e==="_"?void 0:e==="0n"?BigInt(0):q(e))],["EmptyRef",e=>F(e==="_"?void 0:e==="0n"?BigInt(0):q(e))],["ShallowRef",e=>I(e)],["ShallowReactive",e=>z(e)],["Ref",e=>F(e)],["Reactive",e=>_e(e)]],So=T({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,o;for(const[a,r]of To)Ue(a,r);Object.assign(e.payload,([t,o]=H(()=>e.runWithContext(Ie)),t=await t,o(),t)),delete window.__NUXT__}});async function X(e,t={}){const o=t.document||e.resolvedOptions.document;if(!o||!e.dirty)return;const a={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",a),!!a.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const s=new Map,u=new Promise(l=>{e.resolveTags().then(c=>{l(c.map(p=>{const d=s.get(p._d)||0,h={tag:p,id:(d?`${p._d}:${d}`:p._d)||te(p),shouldRender:!0};return p._d&&Be(p._d)&&s.set(p._d,d+1),h}))})});let i=e._dom;if(!i){i={title:o.title,elMap:new Map().set("htmlAttrs",o.documentElement).set("bodyAttrs",o.body)};for(const l of["body","head"]){const c=o[l]?.children;for(const p of c){const d=p.tagName.toLowerCase();if(!oe.has(d))continue;const h=Ke({tag:d,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((_,w)=>(_[w]=p.getAttribute(w),_),{})||{}});if(h.key=p.getAttribute("data-hid")||void 0,h._d=$e(h)||te(h),i.elMap.has(h._d)){let _=1,w=h._d;for(;i.elMap.has(w);)w=`${h._d}:${_++}`;i.elMap.set(w,p)}else i.elMap.set(h._d,p)}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function y(l,c,p){const d=`${l}:${c}`;i.sideEffects[d]=p,delete i.pendingSideEffects[d]}function f({id:l,$el:c,tag:p}){const d=p.tag.endsWith("Attrs");i.elMap.set(l,c),d||(p.textContent&&p.textContent!==c.textContent&&(c.textContent=p.textContent),p.innerHTML&&p.innerHTML!==c.innerHTML&&(c.innerHTML=p.innerHTML),y(l,"el",()=>{c?.remove(),i.elMap.delete(l)}));for(const h in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,h))continue;const _=p.props[h];if(h.startsWith("on")&&typeof _=="function"){const g=c?.dataset;if(g&&g[`${h}fired`]){const E=h.slice(0,-5);_.call(c,new Event(E.substring(2)))}c.getAttribute(`data-${h}`)!==""&&((p.tag==="bodyAttrs"?o.defaultView:c).addEventListener(h.substring(2),_.bind(c)),c.setAttribute(`data-${h}`,""));continue}const w=`attr:${h}`;if(h==="class"){if(!_)continue;for(const g of _)d&&y(l,`${w}:${g}`,()=>c.classList.remove(g)),!c.classList.contains(g)&&c.classList.add(g)}else if(h==="style"){if(!_)continue;for(const[g,E]of _)y(l,`${w}:${g}`,()=>{c.style.removeProperty(g)}),c.style.setProperty(g,E)}else _!==!1&&_!==null&&(c.getAttribute(h)!==_&&c.setAttribute(h,_===!0?"":String(_)),d&&y(l,w,()=>c.removeAttribute(h)))}}const n=[],m={bodyClose:void 0,bodyOpen:void 0,head:void 0},v=await u;for(const l of v){const{tag:c,shouldRender:p,id:d}=l;if(p){if(c.tag==="title"){o.title=c.textContent,y("title","",()=>o.title=i.title);continue}l.$el=l.$el||i.elMap.get(d),l.$el?f(l):oe.has(c.tag)&&n.push(l)}}for(const l of n){const c=l.tag.tagPosition||"head";l.$el=o.createElement(l.tag.tag),f(l),m[c]=m[c]||o.createDocumentFragment(),m[c].appendChild(l.$el)}for(const l of v)await e.hooks.callHook("dom:renderTag",l,o,y);m.head&&o.head.appendChild(m.head),m.bodyOpen&&o.body.insertBefore(m.bodyOpen,o.body.firstChild),m.bodyClose&&o.body.appendChild(m.bodyClose);for(const l in i.pendingSideEffects)i.pendingSideEffects[l]();e._dom=i,await e.hooks.callHook("dom:rendered",{renders:v}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Po(e={}){const t=e.domOptions?.render||X;e.document=e.document||(typeof window<"u"?document:void 0);const o=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return qe({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[o?JSON.parse(o):!1,...e.init||[]]})}function Co(e,t){let o=0;return()=>{const a=++o;t(()=>{o===a&&e()})}}function Oo(e={}){const t=Po({domOptions:{render:Co(()=>X(t),o=>setTimeout(o,0))},...e});return t.install=Fe(t),t}const Mo={disableDefaults:!0},Ao=T({name:"nuxt:head",enforce:"pre",setup(e){const t=Oo(Mo);e.vueApp.use(t);{let o=!0;const a=async()=>{o=!1,await X(t)};t.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!o}),e.hooks.hook("page:start",()=>{o=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||a()}),e.hooks.hook("app:error",a),e.hooks.hook("app:suspense:resolve",a)}}}),Lo=/(:\w+)\([^)]+\)/g,Ho=/(:\w+)[?+*]/g,jo=/:\w+/g,No=(e,t)=>t.path.replace(Lo,"$1").replace(Ho,"$1").replace(jo,o=>e.params[o.slice(1)]?.toString()||""),J=(e,t)=>{const o=e.route.matched.find(r=>r.components?.default===e.Component.type),a=t??o?.meta.key??(o&&No(e.route,o));return typeof a=="function"?a(e.route):a},Uo=(e,t)=>({default:()=>e?C(xe,e===!0?{}:e,t):t});function Z(e){return Array.isArray(e)?e:[e]}const $=[{name:"index",path:"/",component:()=>x(()=>import("./CpLH-0oy.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)}],Io=ge(async(e,t)=>{let o,a;if(!e.meta?.validate)return;const r=([o,a]=H(()=>Promise.resolve(e.meta.validate(e))),o=await o,a(),o);if(r===!0)return;const s=L({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),s}),Bo=ge(e=>{const t=we({path:e.path});if(t.redirect){const o=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return be(o,{acceptRelative:!0})?(window.location.href=o,!1):o}}),Ko=[Io,Bo],Q={};function $o(e,t,o){const{pathname:a,search:r,hash:s}=t,u=e.indexOf("#");if(u>-1){const f=s.includes(e.slice(u))?e.slice(u).length:1;let n=s.slice(f);return n[0]!=="/"&&(n="/"+n),ne(ae(n,""))}const i=ne(ae(a,e)),y=!o||ze(i,o)?i:o;return y+(y.includes("?")?"":r)+s}const qo=T({name:"nuxt:router",enforce:"pre",async setup(e){let t,o,a=ve().app.baseURL;const r=S.history?.(a)??De(a),s=S.routes?([t,o]=H(()=>S.routes($)),t=await t,o(),t??$):$;let u;const i=We({...S,scrollBehavior:(d,h,_)=>{if(h===re){u=_;return}if(S.scrollBehavior){if(i.options.scrollBehavior=S.scrollBehavior,"scrollRestoration"in window.history){const w=i.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return S.scrollBehavior(d,re,u||_)}},history:r,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(i);const y=I(i.currentRoute.value);i.afterEach((d,h)=>{y.value=h}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>y.value});const f=$o(a,window.location,e.payload.path),n=I(i.currentRoute.value),m=()=>{n.value=i.currentRoute.value};i.afterEach((d,h)=>{d.matched.at(-1)?.components?.default===h.matched.at(-1)?.components?.default&&m()});const v={sync:m};for(const d in n.value)Object.defineProperty(v,d,{get:()=>n.value[d],enumerable:!0});e._route=z(v),e._middleware||={global:[],named:{}};const l=Ee();i.afterEach(async(d,h,_)=>{delete e._processingMiddleware,!e.isHydrating&&l.value&&await e.runWithContext(Je),_&&await e.callHook("page:loading:end")});try{[t,o]=H(()=>i.isReady()),await t,o()}catch(d){[t,o]=H(()=>e.runWithContext(()=>O(d))),await t,o()}const c=f!==i.currentRoute.value.fullPath?i.resolve(f):i.currentRoute.value;m();const p=e.payload.state._layout;return i.beforeEach(async(d,h)=>{await e.callHook("page:loading:start"),d.meta=_e(d.meta),e.isHydrating&&p&&!Qe(d.meta.layout)&&(d.meta.layout=p),e._processingMiddleware=!0;{const _=new Set([...Ko,...e._middleware.global]);for(const g of d.matched){const E=g.meta.middleware;if(E)for(const b of Z(E))_.add(b)}const w=we({path:d.path});if(w.appMiddleware)for(const g in w.appMiddleware)w.appMiddleware[g]?_.add(g):_.delete(g);for(const g of _){const E=typeof g=="string"?e._middleware.named[g]||await Q[g]?.().then(b=>b.default||b):g;if(!E)throw new Error(`Unknown route middleware: '${g}'.`);try{const b=await e.runWithContext(()=>E(d,h));if(!e.payload.serverRendered&&e.isHydrating&&(b===!1||b instanceof Error)){const k=b||L({status:404,statusText:`Page Not Found: ${f}`});return await e.runWithContext(()=>O(k)),!1}if(b===!0)continue;if(b===!1)return b;if(b)return Re(b)&&b.fatal&&await e.runWithContext(()=>O(b)),b}catch(b){const k=L(b);return k.fatal&&await e.runWithContext(()=>O(k)),k}}}}),i.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),i.afterEach(d=>{if(d.matched.length===0)return e.runWithContext(()=>O(L({status:404,fatal:!1,statusText:`Page not found: ${d.fullPath}`,data:{path:d.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in c&&(c.name=void 0),await i.replace({...c,force:!0}),i.options.scrollBehavior=S.scrollBehavior}catch(d){await e.runWithContext(()=>O(d))}}),{provide:{router:i}}}}),Fo=T({name:"nuxt:payload",setup(e){const t=new Set;M().beforeResolve(async(o,a)=>{if(o.path===a.path)return;const r=await se(o.path);if(r){for(const s of t)delete e.static.data[s];for(const s in r.data)s in e.static.data||t.add(s),e.static.data[s]=r.data[s]}}),G(()=>{e.hooks.hook("link:prefetch",async o=>{const{hostname:a}=new URL(o,window.location.href);a===window.location.hostname&&await se(o).catch(()=>{console.warn("[nuxt] Error preloading payload for",o)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(ke,1e3)})}}),xo=T(()=>{const e=M();G(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Do=T(e=>{let t;async function o(){let a;try{a=await ke()}catch(r){const s=r;if(!("status"in s&&(s.status===404||s.status===403)))throw s}t&&clearTimeout(t),t=setTimeout(o,ie);try{const r=await $fetch(Ge("builds/latest.json")+`?${Date.now()}`);r.id!==a?.id&&(e.hooks.callHook("app:manifest:update",r),t&&clearTimeout(t))}catch{}}G(()=>{t=setTimeout(o,ie)})}),Wo=T({name:"nuxt:chunk-reload",setup(e){const t=M(),o=ve(),a=new Set;t.beforeEach(()=>{a.clear()}),e.hook("app:chunkError",({error:s})=>{a.add(s)});function r(s){const u=Ve(o.app.baseURL,s.fullPath);Ye({path:u,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(r)}),t.onError((s,u)=>{a.has(s)&&r(u)})}}),Jo=T({name:"nuxt:global-components"}),U={},Qo=T({name:"nuxt:prefetch",setup(e){const t=M();e.hooks.hook("app:mounted",()=>{t.beforeEach(async o=>{const a=o?.meta?.layout;a&&typeof U[a]=="function"&&await U[a]()})}),e.hooks.hook("link:prefetch",o=>{if(be(o))return;const a=t.resolve(o);if(!a)return;const r=a.meta.layout;let s=Z(a.meta.middleware);s=s.filter(u=>typeof u=="string");for(const u of s)typeof Q[u]=="function"&&Q[u]();typeof r=="string"&&r in U&&Xe(U[r])})}}),zo=[So,Ao,qo,Fo,xo,Do,Wo,Jo,Qo,Ze],je=(e="RouteProvider")=>Te({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const o=t.renderKey,a=t.route,r={};for(const s in t.route)Object.defineProperty(r,s,{get:()=>o===t.renderKey?t.route[s]:a[s],enumerable:!0});return Se(V,z(r)),()=>t.vnode?C(t.vnode,{ref:t.vnodeRef}):t.vnode}}),Go=je(),he=new WeakMap,Vo=Te({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:o,expose:a}){const r=Pe(),s=F(),u=ce(V,null);let i;a({pageRef:s});const y=ce(et,null);let f;const n=r.deferHydration();let m=!1,v=0;if(r.isHydrating){const c=r.hooks.hookOnce("app:error",n);M().beforeEach(c)}e.pageKey&&tt(()=>e.pageKey,(c,p)=>{c!==p&&r.callHook("page:loading:start")});let l=!1;{const c=M().beforeResolve(()=>{l=!1});ot(()=>{c()})}return()=>C(at,{name:e.name,route:e.route,...t},{default:c=>{const p=Xo(u,c.route,c.Component),d=u&&u.matched.length===c.route.matched.length;if(!c.Component){if(f&&!d)return f;n();return}if(f&&y&&!y.isCurrent(c.route))return f;if(p&&u&&(!y||y?.isCurrent(u)))return d?f:null;const h=J(c,e.pageKey),_=Zo(u,c.route,c.Component);!r.isHydrating&&i===h&&!_&&D(()=>{l||(l=!0,r.callHook("page:loading:end"))}),m&&i!==h&&v++,i=h;const w=!!(e.transition??c.route.meta.pageTransition??le),g=w&&Yo([e.transition,c.route.meta.pageTransition,le,{onAfterLeave(){delete r._runningTransition,r.callHook("page:transition:finish",c.Component)}}]),E=e.keepalive??c.route.meta.keepalive??rt;return f=nt(w&&g,Uo(E,C(Ce,{key:v,suspensible:!0,onPending:()=>{m=!0,w&&(r._runningTransition=!0),r.callHook("page:start",c.Component)},onResolve:async()=>{m=!1;try{await D(),r._route.sync?.(),await r.callHook("page:finish",c.Component),delete r._runningTransition,!l&&!_&&(l=!0,await r.callHook("page:loading:end"))}finally{n()}}},{default:()=>{const b={key:h||void 0,vnode:o.default?er(o.default,c):c.Component,route:c.route,renderKey:h||void 0,trackRootNodes:w,vnodeRef:s};if(!E)return C(Go,b);const k=c.Component.type,ee=k;let j=he.get(ee);return j||(j=je(k.name||k.__name),he.set(ee,j)),C(j,b)}}))).default(),f}})}});function Yo(e){const t=[];for(const o of e)o&&t.push({...o,onAfterLeave:o.onAfterLeave?Z(o.onAfterLeave):void 0});return st(...t)}function Xo(e,t,o){if(!e)return!1;const a=t.matched.findIndex(r=>r.components?.default===o?.type);return!a||a===-1?!1:t.matched.slice(0,a).some((r,s)=>r.components?.default!==e.matched[s]?.components?.default)||o&&J({route:t,Component:o})!==J({route:e,Component:o})}function Zo(e,t,o){return e?t.matched.findIndex(r=>r.components?.default===o?.type)<t.matched.length-1:!1}function er(e,t){const o=e(t);return o.length===1?C(o[0]):C(it,void 0,o)}const tr={class:"h-full"},or={__name:"app",setup(e){if(typeof window<"u"){const t=localStorage.getItem("goatchain-theme"),o=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;(t==="dark"||!t&&o)&&document.documentElement.classList.add("dark")}return(t,o)=>{const a=Vo;return P(),Oe("div",tr,[ct(a)])}}},rr={__name:"nuxt-error-page",props:{error:Object},setup(e){const o=e.error,a=Number(o.statusCode||500),r=a===404,s=o.statusMessage??(r?"Page Not Found":"Internal Server Error"),u=o.message||o.toString(),i=void 0,y=ue(()=>x(()=>import("./0lvo-1Wn.js"),__vite__mapDeps([5,1,2,3,6]),import.meta.url)),f=ue(()=>x(()=>import("./DtCrOtYE.js"),__vite__mapDeps([7,3,1,2,8]),import.meta.url)),n=r?y:f;return(m,v)=>(P(),A(R(n),lt(ut({status:R(a),statusText:R(s),statusCode:R(a),statusMessage:R(s),description:R(u),stack:R(i)})),null,16))}},nr={key:0},ye={__name:"nuxt-root",setup(e){const t=()=>null,o=Pe(),a=o.deferHydration();if(o.isHydrating){const f=o.hooks.hookOnce("app:error",a);M().beforeEach(f)}const r=!1;Se(V,dt()),o.hooks.callHookWith(f=>f.map(n=>n()),"vue:setup");const s=Ee(),u=!1,i=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;ft((f,n,m)=>{if(o.hooks.callHook("vue:error",f,n,m).catch(v=>console.error("[nuxt] Error in `vue:error` hook",v)),i.test(navigator.userAgent))return o.hooks.callHook("app:error",f),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,f),!1;if(Re(f)&&(f.fatal||f.unhandled))return o.runWithContext(()=>O(f)),!1});const y=!1;return(f,n)=>(P(),A(Ce,{onResolve:R(a)},{default:pt(()=>[R(u)?(P(),Oe("div",nr)):R(s)?(P(),A(R(rr),{key:1,error:R(s)},null,8,["error"])):R(y)?(P(),A(R(t),{key:2,context:R(y)},null,8,["context"])):R(r)?(P(),A(ht(R(r)),{key:3})):(P(),A(R(or),{key:4}))]),_:1},8,["onResolve"]))}};let me;{let e;me=async function(){if(e)return e;const o=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),a=o?yt(ye):mt(ye),r=_t({vueApp:a});async function s(u){await r.callHook("app:error",u),r.payload.error||=L(u)}a.config.errorHandler=s,r.hook("app:suspense:resolve",()=>{a.config.errorHandler===s&&(a.config.errorHandler=void 0)}),!o&&de.id&&r.hook("app:suspense:resolve",()=>{document.getElementById(de.id)?.remove()});try{await gt(r,zo)}catch(u){s(u)}try{await r.hooks.callHook("app:created",a),await r.hooks.callHook("app:beforeMount",a),a.mount(wt),await r.hooks.callHook("app:mounted",a),await D()}catch(u){s(u)}return a},e=me().catch(t=>{throw console.error("Error while mounting app:",t),t})}const cr=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:Pt,createInfoServices:bt},Symbol.toStringTag,{value:"Module"})),lr=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:Ct,createPacketServices:vt},Symbol.toStringTag,{value:"Module"})),ur=Object.freeze(Object.defineProperty({__proto__:null,PieModule:Ot,createPieServices:Rt},Symbol.toStringTag,{value:"Module"})),dr=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:Mt,createArchitectureServices:Et},Symbol.toStringTag,{value:"Module"})),fr=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:At,createGitGraphServices:kt},Symbol.toStringTag,{value:"Module"})),pr=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:Lt,createRadarServices:Tt},Symbol.toStringTag,{value:"Module"})),hr=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:Ht,createTreemapServices:St},Symbol.toStringTag,{value:"Module"}));export{ur as a,dr as b,fr as g,cr as i,lr as p,pr as r,hr as t};
@@ -1 +1 @@
1
- import{_ as o}from"./DlAUqK2U.js";import{u as s,c as a,o as i,a as t,t as r}from"./Cd_MtzEZ.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},c={class:"max-w-520px text-center"},l=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(i(),a("div",u,[t("div",c,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,l),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},x=o(f,[["__scopeId","data-v-d5cdef00"]]);export{x as default};
1
+ import{_ as o}from"./DlAUqK2U.js";import{u as s,o as a,c as i,a as t,t as r}from"./BIYtAlzl.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(a(),i("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},x=o(f,[["__scopeId","data-v-fd7d7560"]]);export{x as default};