@hollware/admin 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Entries-Q9g2TzDi.js","assets/session-BTjYVlu_.js","assets/Badge-BejL8cBQ.js","assets/NewEntry-DioDJL4M.js","assets/VisuallyHidden-CFCnkG2O.js","assets/FormField-Ba9y2pmW.js","assets/Alert-CYo_h5Zi.js","assets/VerdictList-6AHZk7yQ.js","assets/Input-DWc50m3j.js","assets/Entry-CJPeYozs.js","assets/editor-theme-47BGjyMs.js","assets/Reviews-BznoCQEZ.js","assets/Tokens-D4_XjSQy.js","assets/People-McaQgClc.js","assets/Callback-CAUWS3EP.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Entries-D96RLWvp.js","assets/session-BTjYVlu_.js","assets/Badge-BejL8cBQ.js","assets/NewEntry-BCzC5zGj.js","assets/VisuallyHidden-CFCnkG2O.js","assets/FormField-Ba9y2pmW.js","assets/Alert-BpMMmQXc.js","assets/VerdictList-6AHZk7yQ.js","assets/Input-DWc50m3j.js","assets/Entry-6kv0JvQV.js","assets/editor-theme-Bfz7mn9i.js","assets/Reviews-Bdmt1KTy.js","assets/Tokens-CuGAn29Z.js","assets/People-DNpDqK2w.js","assets/Callback-DcSS94_p.js"])))=>i.map(i=>d[i]);
2
2
  import{S as e,_ as t,a as n,c as r,d as i,f as a,g as o,h as s,i as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g,v as _,y as v}from"./VisuallyHidden-CFCnkG2O.js";import{A as y,An as b,B as x,D as S,Dr as C,Dt as w,E as T,Er as E,Et as D,F as ee,Ft as O,G as k,Gn as te,Gt as ne,Hn as re,I as ie,Ir as A,Jt as ae,Kn as oe,L as se,Lt as j,Mn as ce,Mr as M,N as le,Nr as ue,On as de,Or as fe,Ot as N,P as pe,Pr as me,Pt as P,Qn as F,R as he,S as ge,Sn as I,T as _e,Tt as L,U as R,V as ve,X as ye,Xn as z,Xt as be,Y as xe,Z as B,Zn as V,_ as Se,ai as H,b as Ce,bn as we,br as Te,ci as Ee,cn as U,ct as De,d as Oe,et as ke,f as Ae,fn as je,g as Me,gn as W,h as Ne,i as Pe,ir as Fe,it as Ie,j as Le,k as Re,kn as G,kr as ze,l as Be,li as K,ln as q,m as Ve,mn as He,mt as J,n as Ue,nn as We,on as Ge,p as Ke,pr as qe,qt as Je,rt as Ye,si as Xe,st as Ze,t as Qe,tr as Y,u as $e,un as et,v as tt,vr as nt,vt as rt,w as it,wn as at,wr as ot,wt as X,x as st,xr as ct,y as Z}from"./session-BTjYVlu_.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var lt=!1;function ut(e){if(lt)return;let t=JSON.parse(`[{"prefix":"lucide","icons":{"arrow-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v14m7-7l-7 7l-7-7\\"/>"},"arrow-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 19l-7-7l7-7m7 7H5\\"/>"},"arrow-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7l7 7l-7 7\\"/>"},"arrow-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m5 12l7-7l7 7m-7 7V5\\"/>"},"arrow-up-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M7 7h10v10M7 17L17 7\\"/>"},"check":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 6L9 17l-5-5\\"/>"},"chevron-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 9l6 6l6-6\\"/>"},"chevron-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m15 18l-6-6l6-6\\"/>"},"chevron-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m9 18l6-6l-6-6\\"/>"},"chevron-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m18 15l-6-6l-6 6\\"/>"},"chevrons-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m11 17l-5-5l5-5m7 10l-5-5l5-5\\"/>"},"chevrons-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 17l5-5l-5-5m7 10l5-5l-5-5\\"/>"},"circle-alert":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"circle-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"circle-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m15 9l-6 6m0-6l6 6\\"/></g>"},"copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"copy-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m12 15l2 2l4-4\\"/><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"ellipsis":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"19\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"5\\" cy=\\"12\\" r=\\"1\\"/></g>"},"eye":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/></g>"},"eye-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242\\"/><path d=\\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20\\"/></g>"},"file":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\"/><path d=\\"M14 2v5a1 1 0 0 0 1 1h5\\"/></g>"},"folder":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\"/>"},"folder-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\\"/>"},"grip-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"9\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"19\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"19\\" r=\\"1\\"/></g>"},"hash":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\\"/>"},"info":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 16v-4m0-4h.01\\"/></g>"},"lightbulb":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\\"/>"},"loader-circle":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M21 12a9 9 0 1 1-6.219-8.56\\"/>"},"menu":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 5h16M4 12h16M4 19h16\\"/>"},"minus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14\\"/>"},"monitor":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"20\\" height=\\"14\\" x=\\"2\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M8 21h8m-4-4v4\\"/></g>"},"moon":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\\"/>"},"panel-left-close":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m7-6l-3-3l3-3\\"/></g>"},"panel-left-open":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m5-12l3 3l-3 3\\"/></g>"},"plus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7v14\\"/>"},"rotate-ccw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5\\"/></g>"},"search":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m21 21l-4.34-4.34\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/></g>"},"square":{"width":24,"height":24,"body":"<rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" rx=\\"2\\"/>"},"star":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\\"/>"},"sun":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"4\\"/><path d=\\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\\"/></g>"},"triangle-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\\"/>"},"upload":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\\"/>"},"x":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M18 6L6 18M6 6l12 12\\"/>"}}}]`);for(let n of t)for(let[t,r]of Object.entries(n.icons))e(n.prefix?n.prefix+`:`+t:t,r);lt=!0}var dt={install(){ut((e,t)=>{let n=e.indexOf(`:`);return n!==-1&&e.slice(0,n).includes(`-`)&&De(e.replace(`:`,`-`),t),De(e,t)})}};function ft(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function pt(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>ft(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var mt=new Set([`link`,`style`,`script`,`noscript`]),ht=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),gt=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),_t=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),vt=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),yt=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),bt=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),xt=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),St={critical:-8,high:-1,low:2},Ct=e=>typeof e==`number`?Number.isFinite(e):e;function wt(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Tt(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Tt(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Et=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function Dt(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>Dt(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function Ot(e,t,n){if(e.length>0)return Dt(e,t,0,Et(n))}function kt(e,t,n){if(e.length>0){let r=Et(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function At(e,t){for(let n of[...e])n(t)}var jt=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Tt(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=Tt(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Ot,e,t)}callHookParallel(e,...t){return this.callHookWith(kt,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&At(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&At(this._after,r)}):(this._after&&r&&At(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Mt(){return new jt}var Nt=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(n&&n.length!==0)return Dt(n.slice(),t,0)}};function Pt(e){let t=new Nt;for(let n in e||{})t.hook(n,e[n]);return t}function Ft(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function It(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>ft(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Lt=/^(?:viewport|description|keywords|robots)$/,Rt=[`name`,`property`,`http-equiv`];function zt(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return xt.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function Bt(e){let{props:t,tag:n,key:r}=e;if(vt.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of Rt){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Lt.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:ht.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function Vt(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return String(t);let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function Ht(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=Ht(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=wt(n),a=i?void 0:Ht(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var Ut=/[\s"'<>/=\x00-\x1F\x7F]/;function Wt(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function Gt(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=gt.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(wt(r))continue;let i=r.startsWith(`data-`),a=n&&!yt.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||Ut.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=Wt(r,s);else if(yt.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function Kt(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),Ht(e,n)}function qt(e,t){let n=Gt({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&mt.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function Jt(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function Yt(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=Kt(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)Jt(n,qt(t,e));else Jt(n,qt(t,r))}}return n}var Xt=/</g,Zt=/<\/script/g,Qt=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,$t=()=>100;function en(e){for(let t in e)return!1;return!0}var tn=/^tags:|:render/;function nn(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function rn(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function an(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(Qt)}function on(e){let t=!1;for(let n of e.tags.sort(Qt)){let r=n._d||Vt(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(bt.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&zt(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function sn(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function cn(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(_t.has(i)&&(!en(a)||Ct(r)||Ct(n.textContent))&&(i!==`meta`||Ct(a.content)||a[`http-equiv`]||a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(Xt,`\\u003C`):typeof e==`string`?e.replace(Zt,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=Bt(n)}e[t++]=n}}return e.length=t,e}function ln(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??$t,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};nn(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&Ft(e,`entries:resolve`,{entries:a,...r})),nn(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||en(t.options)))a=t._precomputedTags;else{if(a=Yt(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!en(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};Ft(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=Bt(r),r._d||(r._h=Vt(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&tn.test(e)){rn(r.tags);break}let o=on(r);return sn(r,e),an(r,o),Ft(e,`tags:beforeResolve`,r),Ft(e,`tags:resolve`,r),Ft(e,`tags:afterResolve`,r),cn(r.tags)}var un=/\s+/;function dn(e={}){return t=>mn(t,e)}function fn(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function pn(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(un))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function mn(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!fn(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(Ft(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=pn(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=ln(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&zt(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`){n.title=e.textContent,o(`title:`,()=>n.title=d._t);continue}i.$el=d._e.get(r),i.$el?c(i):gt.has(e.tag)&&p.push(i)}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!gt.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=Gt({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=Bt(i)||Vt(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,Ft(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||fn(e))&&mn(e,t),a}var hn=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(St[e.tagPriority]||0);function gn(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||dn({document:e.document}),n=It(pt(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:hn,init:[]}),Pt(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var _n=`usehead`;function vn(){if(be()){let e=We(_n);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function yn(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(_n,e)}}.install}var bn=Object.assign((e,t)=>nt(t)?me(t):t,{_static:!0});function xn(e,t={}){let n=t.head||vn();return n.ssr?n.push(e||{},t):Sn(n,e,t)}function Sn(e,t,n={}){let r=qe();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=E(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let a;return V(()=>{let r=i.value?{}:Ht(t,bn);a?a.patch(r):a=e.push(r,n)}),ne()?(je(()=>{a.dispose()}),He(()=>{i.value=!0}),et(()=>{i.value=!1})):r&&ct(()=>a.dispose()),a}function Cn(e={}){let t=dn(),n,r=0;return n=gn({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=yn(n),n}var wn={install(e){if(e._context.provides.usehead)return;let t=Cn();e.use(t)}},Tn={install(e,t){t?.router&&typeof t.router==`function`&&e.provide(`nuxtui:router`,t.router)}},En={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 none)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 none)`,100:`oklch(97% 0 none)`,200:`oklch(92.2% 0 none)`,300:`oklch(87% 0 none)`,400:`oklch(70.8% 0 none)`,500:`oklch(55.6% 0 none)`,600:`oklch(43.9% 0 none)`,700:`oklch(37.1% 0 none)`,800:`oklch(26.9% 0 none)`,900:`oklch(20.5% 0 none)`,950:`oklch(14.5% 0 none)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 none)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}};function Dn(e){return ie(e,{dir:`ltr`})}function On(e){return(t,n)=>kn(t,n,A(e))}function kn(e,t,n){return Re(n,`messages.${e}`,e).replace(/\{(\w+)\}/g,(e,n)=>`${t?.[n]??`{${n}}`}`)}function An(e){return{lang:X(()=>A(e).name),code:X(()=>A(e).code),dir:X(()=>A(e).dir),locale:nt(e)?e:E(e),t:On(e)}}var jn=Dn({name:`English`,code:`en`,messages:{alert:{close:`Close`},authForm:{hidePassword:`Hide password`,showPassword:`Show password`,submit:`Continue`},banner:{close:`Close`},calendar:{nextMonth:`Next month`,nextYear:`Next year`,prevMonth:`Previous month`,prevYear:`Previous year`},carousel:{dots:`Choose slide to display`,goto:`Go to slide {slide}`,next:`Next`,prev:`Prev`},chatPrompt:{placeholder:`Type your message here…`},chatPromptSubmit:{label:`Send prompt`},colorMode:{dark:`Dark`,light:`Light`,switchToDark:`Switch to dark mode`,switchToLight:`Switch to light mode`,system:`System`},commandPalette:{back:`Back`,close:`Close`,noData:`No data`,noMatch:`No matching data`,placeholder:`Type a command or search…`},contentSearch:{links:`Links`,search:`Results`,theme:`Theme`},contentSearchButton:{label:`Search…`},contentToc:{title:`On this page`},dropdownMenu:{noMatch:`No matching data`,search:`Search…`},dashboardSearch:{theme:`Theme`},dashboardSearchButton:{label:`Search…`},dashboardSidebarCollapse:{collapse:`Collapse sidebar`,expand:`Expand sidebar`},dashboardSidebarToggle:{close:`Close sidebar`,open:`Open sidebar`},drawer:{close:`Close`},error:{clear:`Back to home`},fileUpload:{removeFile:`Remove {filename}`},header:{close:`Close menu`,open:`Open menu`},inputMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`},inputNumber:{decrement:`Decrement`,increment:`Increment`},listbox:{noData:`No data`,noMatch:`No matching data`,search:`Search…`},modal:{close:`Close`},pricingTable:{caption:`Pricing plan comparison`},prose:{codeCollapse:{closeText:`Collapse`,name:`code`,openText:`Expand`},collapsible:{closeText:`Hide`,name:`properties`,openText:`Show`},pre:{copy:`Copy code to clipboard`},prompt:{copy:`Copy prompt`,openIn:`Open in {name}`}},chatReasoning:{thinking:`Thinking…`,thought:`Thought`,thoughtFor:`Thought for {duration}`},sidebar:{close:`Close`,toggle:`Toggle`},selectMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`,search:`Search…`},slideover:{close:`Close`},table:{noData:`No data`},toast:{close:`Close`}}}),Mn=Symbol.for(`nuxt-ui.locale-context`),Nn=ve(e=>{let t=e||M(We(Mn,jn));return An(X(()=>t.value||jn))}),Pn=()=>{if(!he.colorMode)return{forced:!0};let{store:e,system:t}=a();return{get preference(){return e.value===`auto`?`system`:e.value},set preference(t){e.value=t===`system`?`auto`:t},get value(){return e.value===`auto`?t.value:e.value},forced:!1}},Fn={},In=(e,t)=>{if(Fn[e])return Fn[e];let n=E(t());return Fn[e]=n,n},Ln=Mt();function Rn(){return{isHydrating:!0,payload:{serverRendered:!1},hooks:Ln,hook:Ln.hook}}function zn(e){return{install(t){t.runWithContext(()=>e({vueApp:t}))}}}var Bn=[50,100,200,300,400,500,600,700,800,900,950];function Vn(e,t){return e in En&&typeof En[e]==`object`&&t in En[e]?En[e][t]:``}function Hn(e,t,n){let r=n?`${n}-`:``;return`${Bn.map(n=>`--ui-color-${e}-${n}: var(--${r}color-${t===`neutral`?`old-neutral`:t}-${n}, ${Vn(t,n)});`).join(`
3
3
  `)}`}function Un(e,t){return`--ui-${e}: var(--ui-color-${e}-${t});`}function Wn(){document.querySelector(`[data-nuxt-ui-colors]`)?.remove()}var Gn=zn(()=>{let e=se(),t=Rn(),n=X(()=>{let{neutral:t,...n}=e.ui.colors,r=e.ui.prefix;return`@layer theme {
4
4
  :root, :host {
@@ -25,4 +25,4 @@ Defaulting to \`null\`.`),null)}function Co(e){return xo(e)&&!Number.isNaN(e)&&e
25
25
  would route through Vue's \`toDisplayString\`, which JSON-stringifies
26
26
  arrays — the live region would then announce literal \`[\`, quotes
27
27
  and commas instead of the toast title and description.
28
- `),(I(!0),N(J,null,de(C.value,(e,t)=>(I(),N(J,{key:t},[P(K(e),1)],64))),128))]),_:1},8,[`aria-live`])):w(`v-if`,!0),A(d).viewport.value?(I(),D(rt,{key:1,to:A(d).viewport.value},[O(A(u),null,{default:Y(()=>[O(A(Z),U({ref:A(s),tabindex:`0`},t.$attrs,{as:t.as,"as-child":t.asChild,"data-state":t.open?`open`:`closed`,"data-swipe-direction":A(d).swipeDirection.value,style:A(d).disableSwipe.value?void 0:{userSelect:`none`,touchAction:`none`},onPointerdown:n[0]||=e(e=>{A(d).disableSwipe.value||(f.value={x:e.clientX,y:e.clientY})},[`left`]),onPointermove:n[1]||=e=>{if(A(d).disableSwipe.value||!f.value)return;let t=e.clientX-f.value.x,n=e.clientY-f.value.y,r=!!p.value,i=[`left`,`right`].includes(A(d).swipeDirection.value),o=[`left`,`up`].includes(A(d).swipeDirection.value)?Math.min:Math.max,s=i?o(0,t):0,c=i?0:o(0,n),l=e.pointerType===`touch`?10:2,u={x:s,y:c},m={originalEvent:e,delta:u};r?(p.value=u,A(hs)(A(`toast.swipeMove`),e=>a(`swipeMove`,e),m)):A(gs)(u,A(d).swipeDirection.value,l)?(p.value=u,A(hs)(A(`toast.swipeStart`),e=>a(`swipeStart`,e),m),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(f.value=null)},onPointerup:n[2]||=e=>{if(A(d).disableSwipe.value)return;let t=p.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),p.value=null,f.value=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};A(gs)(t,A(d).swipeDirection.value,A(d).swipeThreshold.value)?A(hs)(A(`toast.swipeEnd`),e=>a(`swipeEnd`,e),r):A(hs)(A(`toast.swipeCancel`),e=>a(`swipeCancel`,e),r),n?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}}}),{default:Y(()=>[G(t.$slots,`default`,{remaining:y.value,duration:m.value})]),_:3},16,[`as`,`as-child`,`data-state`,`data-swipe-direction`,`style`])]),_:3})],8,[`to`])):w(`v-if`,!0)],64))}}),Ss=j({__name:`ToastClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=ys(),{forwardRef:r}=c();return(e,i)=>(I(),D(cs,{"as-child":``},{default:Y(()=>[O(A(Z),U(t,{ref:A(r),type:e.as===`button`?`button`:void 0,onClick:A(n).onClose}),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16,[`type`,`onClick`])]),_:3}))}}),Cs=j({__name:`ToastAction`,props:{altText:{type:String,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){if(!e.altText)throw Error("Missing prop `altText` expected on `ToastAction`");let{forwardRef:t}=c();return(e,n)=>e.altText?(I(),D(cs,{key:0,"alt-text":e.altText,"as-child":``},{default:Y(()=>[O(Ss,{ref:A(t),as:e.as,"as-child":e.asChild},{default:Y(()=>[G(e.$slots,`default`)]),_:3},8,[`as`,`as-child`])]),_:3},8,[`alt-text`])):w(`v-if`,!0)}}),ws=j({__name:`ToastDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return c(),(e,n)=>(I(),D(A(Z),Xe(Je(t)),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16))}}),Ts=j({__name:`ToastPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(I(),D(A(qr),Xe(Je(t)),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16))}}),Es=j({__name:`ToastRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:`foreground`},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i}=c(),a=_(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(e,t)=>(I(),D(A(u),{present:e.forceMount||A(a)},{default:Y(()=>[O(xs,U({ref:A(i),open:A(a),type:e.type,as:e.as,"as-child":e.asChild,duration:e.duration},e.$attrs,{onClose:t[0]||=e=>a.value=!1,onPause:t[1]||=e=>r(`pause`),onResume:t[2]||=e=>r(`resume`),onEscapeKeyDown:t[3]||=e=>r(`escapeKeyDown`,e),onSwipeStart:t[4]||=e=>{r(`swipeStart`,e),e.defaultPrevented||e.currentTarget.setAttribute(`data-swipe`,`start`)},onSwipeMove:t[5]||=e=>{if(r(`swipeMove`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`move`),r.style.setProperty(`--reka-toast-swipe-move-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-move-y`,`${n}px`)}},onSwipeCancel:t[6]||=e=>{if(r(`swipeCancel`,e),!e.defaultPrevented){let t=e.currentTarget;t.setAttribute(`data-swipe`,`cancel`),t.style.removeProperty(`--reka-toast-swipe-move-x`),t.style.removeProperty(`--reka-toast-swipe-move-y`),t.style.removeProperty(`--reka-toast-swipe-end-x`),t.style.removeProperty(`--reka-toast-swipe-end-y`)}},onSwipeEnd:t[7]||=e=>{if(r(`swipeEnd`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`end`),r.style.removeProperty(`--reka-toast-swipe-move-x`),r.style.removeProperty(`--reka-toast-swipe-move-y`),r.style.setProperty(`--reka-toast-swipe-end-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-end-y`,`${n}px`),a.value=!1}}}),{default:Y(({remaining:t,duration:n})=>[G(e.$slots,`default`,{remaining:t,duration:n,open:A(a)})]),_:3},16,[`open`,`type`,`as`,`as-child`,`duration`])]),_:3},8,[`present`]))}}),Ds=j({__name:`ToastTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return c(),(e,n)=>(I(),D(A(Z),Xe(Je(t)),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16))}}),Os=j({__name:`FocusProxy`,emits:[`focusFromOutsideViewport`],setup(e,{emit:t}){let n=t,r=ls();return(e,t)=>(I(),D(A(h),{tabindex:`0`,style:{position:`fixed`},onFocus:t[0]||=e=>{let t=e.relatedTarget;A(r).viewport.value?.contains(t)||n(`focusFromOutsideViewport`)}},{default:Y(()=>[G(e.$slots,`default`)]),_:3}))}}),ks=j({inheritAttrs:!1,__name:`ToastViewport`,props:{hotkey:{type:Array,required:!1,default:()=>[`F8`]},label:{type:[String,Function],required:!1,default:`Notifications ({hotkey})`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ol`}},setup(e){let{hotkey:t,label:n}=ue(e),{forwardRef:a,currentElement:o}=c(),{CollectionSlot:s,getItems:l}=Yr(),u=ls(),d=X(()=>u.toastCount.value>0),f=E(),p=E(),m=/Key/g,h=/Digit/g,_=X(()=>t.value.join(`+`).replace(m,``).replace(h,``));g(t.value,()=>{o.value.focus()}),W(()=>{u.onViewportChange(o.value)}),V(e=>{let t=o.value;if(d.value&&t){let n=()=>{if(!u.isClosePausedRef.value){let e=new CustomEvent(ps);t.dispatchEvent(e),u.isClosePausedRef.value=!0}},i=()=>{if(u.isClosePausedRef.value){let e=new CustomEvent(ms);t.dispatchEvent(e),u.isClosePausedRef.value=!1}},a=e=>{t.contains(e.relatedTarget)||i()},o=()=>{t.contains(r())||i()},s=e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n){let n=r(),i=e.shiftKey;if(e.target===t&&i){f.value?.focus();return}let a=v({tabbingDirection:i?`backwards`:`forwards`}),o=a.findIndex(e=>e===n);Pr(a.slice(o+1))?e.preventDefault():i?f.value?.focus():p.value?.focus()}};t.addEventListener(`focusin`,n),t.addEventListener(`focusout`,a),t.addEventListener(`pointermove`,n),t.addEventListener(`pointerleave`,o),t.addEventListener(`keydown`,s),window.addEventListener(`blur`,n),window.addEventListener(`focus`,i),e(()=>{t.removeEventListener(`focusin`,n),t.removeEventListener(`focusout`,a),t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerleave`,o),t.removeEventListener(`keydown`,s),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,i)})}});function v({tabbingDirection:e}){let t=l().map(e=>e.ref).map(t=>{let n=[t,...Ir(t)];return e===`forwards`?n:n.reverse()});return(e===`forwards`?t.reverse():t).flat()}return(e,t)=>(I(),D(A(Dr),{role:`region`,"aria-label":typeof A(n)==`string`?A(n).replace(`{hotkey}`,_.value):A(n)(_.value),tabindex:`-1`,style:Ee({pointerEvents:d.value?void 0:`none`})},{default:Y(()=>[d.value?(I(),D(Os,{key:0,ref:e=>{e&&(f.value=A(i)(e))},onFocusFromOutsideViewport:t[0]||=()=>{let e=v({tabbingDirection:`forwards`});A(Pr)(e)}},null,512)):w(`v-if`,!0),O(A(s),null,{default:Y(()=>[O(A(Z),U({ref:A(a),tabindex:`-1`,as:e.as,"as-child":e.asChild},e.$attrs),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3}),d.value?(I(),D(Os,{key:1,ref:e=>{e&&(p.value=A(i)(e))},onFocusFromOutsideViewport:t[1]||=()=>{let e=v({tabbingDirection:`backwards`});A(Pr)(e)}},null,512)):w(`v-if`,!0)]),_:3},8,[`aria-label`,`style`]))}}),[As,js]=it(`TooltipProvider`),Ms=j({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:t,skipDelayDuration:n,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:o,content:s}=ue(e);c();let l=E(!0),u=E(!1),{start:d,stop:f}=Ie(()=>{l.value=!0},n,{immediate:!1});return js({isOpenDelayed:l,delayDuration:t,onOpen(){f(),l.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:r,disableClosingTrigger:i,disabled:o,ignoreNonKeyboardFocus:a,content:s}),(e,t)=>G(e.$slots,`default`)}}),Ns=Symbol(`nuxt-ui.portal-target`);function Ps(e){let t=We(Ns,void 0),n=X(()=>e.value===!0?t?.value:e.value),r=X(()=>typeof n.value==`boolean`&&!n.value),i=X(()=>typeof n.value==`boolean`?`body`:n.value);return X(()=>({to:i.value,disabled:r.value}))}var Fs=Symbol(`nuxt-ui.toast-max`);function Is(){let e=In(`toasts`,()=>[]),t=We(Fs,void 0),n=E(!1),r=[],i=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;function a(t,n){e.value[t]={...e.value[t],...n,_duplicate:(e.value[t]._duplicate||0)+1}}async function o(){if(!(n.value||r.length===0)){for(n.value=!0;r.length>0;){await q();let n=r.shift(),i=t?.value??5;if(i<=0){e.value.length&&(e.value=[]);continue}let o=e.value.findIndex(e=>e.id===n.id);if(o!==-1){a(o,n);continue}e.value=[...e.value,n].slice(-i)}n.value=!1}}function s(t){let n={id:i(),open:!0,...t},s=e.value.findIndex(e=>e.id===n.id);return s===-1?(r.push(n),o(),n):(a(s,n),n)}function c(t,n){let r=e.value.findIndex(e=>e.id===t);r!==-1&&(e.value[r]={...e.value[r],...n,duration:n.duration,open:!0,_updated:!0},q(()=>{let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated&&(e.value[n]={...e.value[n],_updated:void 0})}))}function l(t){let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated||(n!==-1&&(e.value[n]={...e.value[n],open:!1}),setTimeout(()=>{e.value=e.value.filter(e=>e.id!==t)},200))}function u(){e.value=[]}return{toasts:e,add:s,update:c,remove:l,clear:u}}var Ls={slots:{root:`gap-2`,base:`relative overflow-hidden rounded-full bg-accented`,indicator:`rounded-full size-full transition-transform duration-200 ease-out motion-reduce:transition-none motion-reduce:data-[state=indeterminate]:animate-pulse`,status:`flex text-dimmed duration-200 ease-out motion-reduce:transition-none`,steps:`grid items-end`,step:`truncate text-end row-start-1 col-start-1 transition-opacity ease-out`},variants:{animation:{carousel:``,"carousel-inverse":``,swing:``,elastic:``},color:{primary:{indicator:`bg-primary`,steps:`text-primary`},secondary:{indicator:`bg-secondary`,steps:`text-secondary`},success:{indicator:`bg-success`,steps:`text-success`},info:{indicator:`bg-info`,steps:`text-info`},warning:{indicator:`bg-warning`,steps:`text-warning`},error:{indicator:`bg-error`,steps:`text-error`},neutral:{indicator:`bg-inverted`,steps:`text-highlighted`}},size:{"2xs":{status:`text-xs`,steps:`text-xs`},xs:{status:`text-xs`,steps:`text-xs`},sm:{status:`text-sm`,steps:`text-sm`},md:{status:`text-sm`,steps:`text-sm`},lg:{status:`text-sm`,steps:`text-sm`},xl:{status:`text-base`,steps:`text-base`},"2xl":{status:`text-base`,steps:`text-base`}},step:{active:{step:`opacity-100`},first:{step:`opacity-100 text-muted`},other:{step:`opacity-0`},last:{step:``}},orientation:{horizontal:{root:`w-full flex flex-col`,base:`w-full`,status:`flex-row items-center justify-end w-(--percent) min-w-fit transition-[width]`},vertical:{root:`h-full flex flex-row-reverse`,base:`h-full`,status:`flex-col justify-end h-(--percent) min-h-fit transition-[height]`}},inverted:{true:{status:`self-end`}}},compoundVariants:[{inverted:!0,orientation:`horizontal`,class:{step:`text-start`,status:`flex-row-reverse`}},{inverted:!0,orientation:`vertical`,class:{steps:`items-start`,status:`flex-col-reverse`}},{orientation:`horizontal`,size:`2xs`,class:`h-px`},{orientation:`horizontal`,size:`xs`,class:`h-0.5`},{orientation:`horizontal`,size:`sm`,class:`h-1`},{orientation:`horizontal`,size:`md`,class:`h-2`},{orientation:`horizontal`,size:`lg`,class:`h-3`},{orientation:`horizontal`,size:`xl`,class:`h-4`},{orientation:`horizontal`,size:`2xl`,class:`h-5`},{orientation:`vertical`,size:`2xs`,class:`w-px`},{orientation:`vertical`,size:`xs`,class:`w-0.5`},{orientation:`vertical`,size:`sm`,class:`w-1`},{orientation:`vertical`,size:`md`,class:`w-2`},{orientation:`vertical`,size:`lg`,class:`w-3`},{orientation:`vertical`,size:`xl`,class:`w-4`},{orientation:`vertical`,size:`2xl`,class:`w-5`},{orientation:`horizontal`,animation:`carousel`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel_2s_linear_infinite] motion-safe:data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_linear_infinite]`}},{orientation:`vertical`,animation:`carousel`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-vertical_2s_linear_infinite]`}},{orientation:`horizontal`,animation:`carousel-inverse`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-inverse_2s_linear_infinite] motion-safe:data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_linear_infinite]`}},{orientation:`vertical`,animation:`carousel-inverse`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_linear_infinite]`}},{orientation:`horizontal`,animation:`swing`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[swing_2s_var(--ease-in-out)_infinite]`}},{orientation:`vertical`,animation:`swing`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[swing-vertical_2s_var(--ease-in-out)_infinite]`}},{orientation:`horizontal`,animation:`elastic`,class:{indicator:`relative motion-safe:data-[state=indeterminate]:animate-[elastic_2s_var(--ease-in-out)_infinite]`}},{orientation:`vertical`,animation:`elastic`,class:{indicator:`relative motion-safe:data-[state=indeterminate]:animate-[elastic-vertical_2s_var(--ease-in-out)_infinite]`}}],defaultVariants:{animation:`carousel`,color:`primary`,size:`md`}},Rs={__name:`Progress`,props:{as:{type:null,required:!1},max:{type:[Number,Array],required:!1},status:{type:Boolean,required:!1},inverted:{type:Boolean,required:!1,default:!1},size:{type:null,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},animation:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},getValueLabel:{type:Function,required:!1},getValueText:{type:Function,required:!1},modelValue:{type:[Number,null],required:!1,default:null}},emits:[`update:modelValue`,`update:max`],setup(e,{emit:t}){let n=e,r=t,i=te(),a=tt(`progress`,n),{dir:o}=Nn(),s=se(),c=Se(ye(a,`getValueLabel`,`getValueText`,`modelValue`),r),l=X(()=>c.value.modelValue===null),u=X(()=>Array.isArray(a.max)),d=X(()=>{if(!l.value&&a.max)return Array.isArray(a.max)?a.max.length-1:Number(a.max)}),f=X(()=>{if(!l.value)switch(!0){case c.value.modelValue<0:return 0;case c.value.modelValue>(d.value??100):return 100;default:return Math.round(c.value.modelValue/(d.value??100)*100)}}),p=X(()=>{if(f.value!==void 0)return a.orientation===`vertical`?{transform:`translateY(${a.inverted?``:`-`}${100-f.value}%)`}:o.value===`rtl`?{transform:`translateX(${a.inverted?`-`:``}${100-f.value}%)`}:{transform:`translateX(${a.inverted?``:`-`}${100-f.value}%)`}}),m=X(()=>({"--percent":`${Math.max(f.value??0,0)}%`}));function h(e){return e===Number(a.modelValue)}function g(e){return e===0}function _(e){return e===d.value}function v(e){return e=Number(e),h(e)&&!g(e)?`active`:g(e)&&h(e)?`first`:_(e)&&h(e)?`last`:`other`}let y=X(()=>Me({extend:Ls,...s.ui?.progress||{}})({animation:a.animation,size:a.size,color:a.color,orientation:a.orientation,inverted:a.inverted})),b=X(()=>Object.keys({...Ls.variants?.color,...s.ui?.progress?.variants?.color})),x=X(()=>a.color&&!b.value.includes(a.color)?a.color:void 0);return(e,t)=>(I(),D(A(Z),{as:A(a).as,"data-orientation":A(a).orientation,"data-slot":`root`,class:H(y.value.root({class:[A(a).ui?.root,A(a).class]}))},{default:Y(()=>[!l.value&&(A(a).status||i.status)?(I(),N(`div`,{key:0,"data-slot":`status`,class:H(y.value.status({class:A(a).ui?.status})),style:Ee(m.value)},[G(e.$slots,`status`,{percent:f.value},()=>[P(K(f.value)+`% `,1)])],6)):w(``,!0),O(A(wo),U(A(c),{max:d.value,"data-slot":`base`,class:y.value.base({class:A(a).ui?.base}),style:{transform:`translateZ(0)`}}),{default:Y(()=>[O(A(To),{"data-slot":`indicator`,class:H(y.value.indicator({class:A(a).ui?.indicator})),style:Ee([p.value,x.value?{backgroundColor:x.value}:void 0])},null,8,[`class`,`style`])]),_:1},16,[`max`,`class`]),u.value?(I(),N(`div`,{key:1,"data-slot":`steps`,class:H(y.value.steps({class:A(a).ui?.steps})),style:Ee(x.value?{color:x.value}:void 0)},[(I(!0),N(J,null,de(A(a).max,(t,n)=>(I(),N(`div`,{key:n,"data-slot":`step`,class:H(y.value.step({class:A(a).ui?.step,step:v(n)}))},[G(e.$slots,`step-${n}`,{step:t},()=>[P(K(t),1)])],2))),128))],6)):w(``,!0)]),_:3},8,[`as`,`data-orientation`,`class`]))}},zs={slots:{root:`relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5`,wrapper:`w-0 flex-1 flex flex-col`,title:`text-sm font-medium text-highlighted`,description:`text-sm text-muted`,icon:`shrink-0 size-5`,avatar:`shrink-0`,avatarSize:`2xl`,actions:`flex gap-1.5 shrink-0`,progress:`absolute inset-x-0 bottom-0`,close:`p-0`},variants:{color:{primary:{root:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`,icon:`text-primary`},secondary:{root:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`,icon:`text-secondary`},success:{root:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`,icon:`text-success`},info:{root:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`,icon:`text-info`},warning:{root:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`,icon:`text-warning`},error:{root:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`,icon:`text-error`},neutral:{root:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`,icon:`text-highlighted`}},orientation:{horizontal:{root:`items-center`,actions:`items-center`},vertical:{root:`items-start`,actions:`items-start mt-2.5`}},title:{true:{description:`mt-1`}}},defaultVariants:{color:`primary`}},Bs={__name:`Toast`,props:{as:{type:null,required:!1},title:{type:[String,Object,Function],required:!1},description:{type:[String,Object,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`vertical`},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},actions:{type:Array,required:!1},duration:{type:Number,required:!1},progress:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},type:{type:String,required:!1}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(t,{expose:n,emit:r}){let i=t,a=r,o=te(),s=tt(`toast`,i),{t:c}=Nn(),l=se(),u=Se(ye(s,`as`,`defaultOpen`,`open`,`duration`,`type`),a),d=X(()=>Me({extend:zs,...l.ui?.toast||{}})({color:s.color,orientation:s.orientation,title:!!s.title||!!o.title})),f=oe(`rootRef`),p=E(0);return W(()=>{f.value?.$el?.getBoundingClientRect&&(p.value=f.value.$el.getBoundingClientRect().height)}),n({height:p}),(t,n)=>(I(),D(A(Es),U({ref_key:`rootRef`,ref:f},A(u),{"data-orientation":A(s).orientation,"data-slot":`root`,class:d.value.root({class:[A(s).ui?.root,A(s).class]}),style:{"--height":p.value}}),{default:Y(({remaining:r,duration:i,open:a})=>[G(t.$slots,`leading`,{ui:d.value},()=>[A(s).avatar?(I(),D(Ke,U({key:0,size:A(s).ui?.avatarSize||d.value.avatarSize()},A(s).avatar,{"data-slot":`avatar`,class:d.value.avatar({class:A(s).ui?.avatar})}),null,16,[`size`,`class`])):A(s).icon?(I(),D(Ne,{key:1,name:A(s).icon,"data-slot":`icon`,class:H(d.value.icon({class:A(s).ui?.icon}))},null,8,[`name`,`class`])):w(``,!0)]),L(`div`,{"data-slot":`wrapper`,class:H(d.value.wrapper({class:A(s).ui?.wrapper}))},[A(s).title||o.title?(I(),D(A(Ds),{key:0,"data-slot":`title`,class:H(d.value.title({class:A(s).ui?.title}))},{default:Y(()=>[G(t.$slots,`title`,{},()=>[typeof A(s).title==`function`?(I(),D(ce(A(s).title()),{key:0})):typeof A(s).title==`object`?(I(),D(ce(A(s).title),{key:1})):(I(),N(J,{key:2},[P(K(A(s).title),1)],64))])]),_:3},8,[`class`])):w(``,!0),A(s).description||o.description?(I(),D(A(ws),{key:1,"data-slot":`description`,class:H(d.value.description({class:A(s).ui?.description}))},{default:Y(()=>[G(t.$slots,`description`,{},()=>[typeof A(s).description==`function`?(I(),D(ce(A(s).description()),{key:0})):typeof A(s).description==`object`?(I(),D(ce(A(s).description),{key:1})):(I(),N(J,{key:2},[P(K(A(s).description),1)],64))])]),_:3},8,[`class`])):w(``,!0),A(s).orientation===`vertical`&&(A(s).actions?.length||o.actions)?(I(),N(`div`,{key:2,"data-slot":`actions`,class:H(d.value.actions({class:A(s).ui?.actions}))},[G(t.$slots,`actions`,{},()=>[(I(!0),N(J,null,de(A(s).actions,(t,r)=>(I(),D(A(Cs),{key:r,"alt-text":t.label||`Action`,"as-child":``,onClick:n[0]||=e(()=>{},[`stop`])},{default:Y(()=>[O(Pe,U({size:`xs`,color:A(s).color},{ref_for:!0},t),null,16,[`color`])]),_:2},1032,[`alt-text`]))),128))])],2)):w(``,!0)],2),A(s).orientation===`horizontal`&&(A(s).actions?.length||o.actions)||A(s).close?(I(),N(`div`,{key:0,"data-slot":`actions`,class:H(d.value.actions({class:A(s).ui?.actions,orientation:`horizontal`}))},[A(s).orientation===`horizontal`&&(A(s).actions?.length||o.actions)?G(t.$slots,`actions`,{},()=>[(I(!0),N(J,null,de(A(s).actions,(t,r)=>(I(),D(A(Cs),{key:r,"alt-text":t.label||`Action`,"as-child":``,onClick:n[1]||=e(()=>{},[`stop`])},{default:Y(()=>[O(Pe,U({size:`xs`,color:A(s).color},{ref_for:!0},t),null,16,[`color`])]),_:2},1032,[`alt-text`]))),128))],void 0,0):w(``,!0),A(s).close||o.close?(I(),D(A(Ss),{key:1,"as-child":``},{default:Y(()=>[G(t.$slots,`close`,{ui:d.value},()=>[A(s).close?(I(),D(Pe,U({key:0,icon:A(s).closeIcon||A(l).ui.icons.close,color:`neutral`,variant:`link`,"aria-label":A(c)(`toast.close`)},typeof A(s).close==`object`?A(s).close:{},{"data-slot":`close`,class:d.value.close({class:A(s).ui?.close}),onClick:n[2]||=e(()=>{},[`stop`])}),null,16,[`icon`,`aria-label`,`class`])):w(``,!0)])]),_:3})):w(``,!0)],2)):w(``,!0),A(s).progress&&a&&r>0&&i?(I(),D(Rs,U({key:1,"model-value":r/i*100,color:A(s).color},typeof A(s).progress==`object`?A(s).progress:{},{size:`sm`,"data-slot":`progress`,class:d.value.progress({class:A(s).ui?.progress})}),null,16,[`model-value`,`color`,`class`])):w(``,!0)]),_:3},16,[`data-orientation`,`class`,`style`]))}},Vs={slots:{viewport:`fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none`,base:`pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_var(--ease-out)] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=odd]:animate-[toast-pulse-a_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=even]:animate-[toast-pulse-b_200ms_var(--ease-out)] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out motion-reduce:transition-none`},variants:{position:{"top-left":{viewport:`left-4`},"top-center":{viewport:`left-1/2 transform -translate-x-1/2`},"top-right":{viewport:`right-4`},"bottom-left":{viewport:`left-4`},"bottom-center":{viewport:`left-1/2 transform -translate-x-1/2`},"bottom-right":{viewport:`right-4`}},swipeDirection:{up:`data-[swipe=end]:animate-[toast-slide-up_200ms_var(--ease-out)]`,right:`data-[swipe=end]:animate-[toast-slide-right_200ms_var(--ease-out)]`,down:`data-[swipe=end]:animate-[toast-slide-down_200ms_var(--ease-out)]`,left:`data-[swipe=end]:animate-[toast-slide-left_200ms_var(--ease-out)]`}},compoundVariants:[{position:[`top-left`,`top-center`,`top-right`],class:{viewport:`top-4`,base:`top-0 data-[state=open]:animate-[toast-slide-in-from-top_200ms_var(--ease-out)]`}},{position:[`bottom-left`,`bottom-center`,`bottom-right`],class:{viewport:`bottom-4`,base:`bottom-0 data-[state=open]:animate-[toast-slide-in-from-bottom_200ms_var(--ease-out)]`}},{swipeDirection:[`left`,`right`],class:`data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0`},{swipeDirection:[`up`,`down`],class:`data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0`}],defaultVariants:{position:`bottom-right`}},Hs=Object.assign({name:`Toaster`},{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},max:{type:Number,required:!1,default:5},class:{type:null,required:!1},ui:{type:Object,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeThreshold:{type:Number,required:!1}},setup(e){let t=tt(`toaster`,e),{toasts:n,remove:r}=Is(),i=se();at(Fs,M(()=>t.max));let a=Se(ye(t,`duration`,`label`,`swipeThreshold`,`disableSwipe`)),o=Ps(M(()=>t.portal)),s=X(()=>{switch(t.position){case`top-center`:return`up`;case`top-right`:case`bottom-right`:return`right`;case`bottom-center`:return`down`;case`top-left`:case`bottom-left`:return`left`}return`right`}),c=X(()=>Me({extend:Vs,...i.ui?.toaster||{}})({position:t.position,swipeDirection:s.value}));function l(e,t){e||r(t)}let u=E(!1),d=X(()=>t.expand||u.value),f=E([]),p=X(()=>f.value.reduce((e,{height:t})=>e+t+16,0)),m=X(()=>f.value[f.value.length-1]?.height||0);function h(e){return f.value.slice(e+1).reduce((e,{height:t})=>e+t+16,0)}return(e,r)=>(I(),D(A(ds),U({"swipe-direction":s.value},A(a)),{default:Y(()=>[G(e.$slots,`default`),(I(!0),N(J,null,de(A(n),(e,r)=>(I(),D(Bs,U({key:e.id,ref_for:!0,ref_key:`refs`,ref:f,progress:A(t).progress},{ref_for:!0},A(pe)(e,[`id`,`close`,`_duplicate`,`_updated`,`onClick`]),{close:e.close,"data-expanded":d.value,"data-front":!d.value&&r===A(n).length-1,"data-pulsing":e._duplicate?e._duplicate%2==0?`even`:`odd`:void 0,style:{"--index":r-A(n).length+A(n).length,"--before":A(n).length-1-r,"--offset":h(r),"--scale":d.value?`1`:`calc(1 - var(--before) * var(--scale-factor))`,"--translate":d.value?`calc(var(--offset) * var(--translate-factor))`:`calc(var(--before) * var(--gap))`,"--transform":`translateY(var(--translate)) scale(var(--scale))`},"data-slot":`base`,class:c.value.base({class:[A(t).ui?.base,e.onClick?`cursor-pointer`:void 0]}),"onUpdate:open":t=>l(t,e.id),onClick:t=>e.onClick&&e.onClick(e)}),null,16,[`progress`,`close`,`data-expanded`,`data-front`,`data-pulsing`,`style`,`class`,`onUpdate:open`,`onClick`]))),128)),O(A(Ts),Xe(Je(A(o))),{default:Y(()=>[O(A(ks),{"data-expanded":d.value,"data-slot":`viewport`,class:H(c.value.viewport({class:[A(t).ui?.viewport,A(t).class]})),style:Ee({"--scale-factor":`0.05`,"--translate-factor":A(t).position?.startsWith(`top`)?`1px`:`-1px`,"--gap":A(t).position?.startsWith(`top`)?`16px`:`-16px`,"--front-height":`${m.value}px`,"--height":`${p.value}px`}),onMouseenter:r[0]||=e=>u.value=!0,onMouseleave:r[1]||=e=>u.value=!1},null,8,[`data-expanded`,`class`,`style`])]),_:1},16)]),_:3},16,[`swipe-direction`]))}});function Us(){let e=C([]),t=(t,i)=>{let{props:a,defaultOpen:s,destroyOnClose:c}=i||{},l=ot({id:Symbol(import.meta.dev?`useOverlay`:``),isOpen:!!s,component:Te(t),isMounted:!!s,destroyOnClose:!!c,originalProps:a||{},props:{...a},resolvers:[]});return e.push(l),{...l,open:e=>n(l.id,e),close:e=>r(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);n.props=t?{...n.originalProps,...t}:{...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvers.push(e));return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1;for(let e of n.resolvers.splice(0))e(t)},i=()=>{e.forEach(e=>r(e.id))},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{overlays:e,open:n,close:r,closeAll:i,create:t,patch:o,unmount:a,isOpen:e=>s(e).isOpen}}var Ws=ve(Us),Gs={__name:`OverlayProvider`,setup(e){let{overlays:t,unmount:n,close:r}=Ws(),i=X(()=>t.filter(e=>e.isMounted)),a=e=>{r(e),n(e)},o=(e,t)=>{r(e,t)};return(e,t)=>(I(!0),N(J,null,de(i.value,e=>(I(),D(ce(e.component),U({key:e.id},{ref_for:!0},e.props,{open:e.isOpen,"onUpdate:open":t=>e.isOpen=t,onClose:t=>o(e.id,t),"onAfter:leave":t=>a(e.id)}),null,16,[`open`,`onUpdate:open`,`onClose`,`onAfter:leave`]))),128))}},Ks=Object.assign({name:`App`},{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:Object,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:`body`},dir:{type:String,required:!1},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){let t=e,r=st(ye(t,`scrollBody`)),i=M(()=>t.tooltip),a=M(()=>t.toaster),o=M(()=>t.dir?{...t.locale||jn,dir:t.dir}:t.locale);at(Mn,o);let s=M(()=>t.portal);return at(Ns,s),(s,c)=>(I(),D(A(n),U({"use-id":()=>re(),dir:t.dir||o.value?.dir,locale:o.value?.code},A(r)),{default:Y(()=>[O(A(Ms),Xe(Je(i.value)),{default:Y(()=>[e.toaster===null?G(s.$slots,`default`,{},void 0,void 0,1):(I(),D(Hs,Xe(U({key:0},a.value)),{default:Y(()=>[G(s.$slots,`default`)]),_:3},16)),O(Gs)]),_:3},16)]),_:3},16,[`use-id`,`dir`,`locale`]))}});function qs(){let e=se().ui?.prefix;return t=>!e||!t?t:t.split(/\s+/).filter(Boolean).map(t=>`${e}:${t}`).join(` `)}var Js=Object.assign({inheritAttrs:!1},{__name:`ColorModeButton`,props:{color:{type:null,required:!1,default:`neutral`},variant:{type:null,required:!1,default:`ghost`},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){let t=tt(`button`,e),{t:n}=Nn(),r=Pn(),i=se(),a=qs(),o=Se(xe(t,`icon`)),s=X({get(){return r.value===`dark`},set(e){r.preference=e?`dark`:`light`}});return(e,r)=>(I(),D(Pe,U({...A(o),"aria-label":s.value?A(n)(`colorMode.switchToLight`):A(n)(`colorMode.switchToDark`),...e.$attrs},{onClick:r[0]||=e=>s.value=!s.value}),{leading:Y(({ui:e})=>[O(Ne,{class:H(e.leadingIcon({class:[A(t).ui?.leadingIcon,A(a)(`hidden dark:inline-block`)]})),name:A(i).ui.icons.dark},null,8,[`class`,`name`]),O(Ne,{class:H(e.leadingIcon({class:[A(t).ui?.leadingIcon,A(a)(`dark:hidden`)]})),name:A(i).ui.icons.light},null,8,[`class`,`name`])]),_:1},16))}}),Ys={slots:{base:[`relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`,value:`truncate pointer-events-none`,placeholder:`truncate text-dimmed`,arrow:`fill-bg stroke-default`,content:`max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col`,viewport:`relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1`,group:`p-1 isolate`,empty:`text-center text-muted`,label:`font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:[`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default`,`transition-colors`],itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemLeadingChip:`shrink-0`,itemLeadingChipSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemWrapper:`flex-1 flex flex-col min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1 text-[10px]/3 gap-1`,item:`p-1 text-xs gap-1`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2 text-xs`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1.5 text-[10px]/3 gap-1.5`,item:`p-1.5 text-xs gap-1.5`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2.5 text-xs`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-sm gap-1.5`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-2.5 text-sm`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-2 text-xs gap-2`,item:`p-2 text-sm gap-2`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-3 text-sm`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`,label:`p-2 text-sm gap-2`,item:`p-2 text-base gap-2`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemLeadingChip:`size-6`,itemLeadingChipSize:`lg`,itemTrailingIcon:`size-6`,empty:`p-3 text-base`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},position:{popper:{content:`data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]`},"item-aligned":{content:``}},multiple:{true:``}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`,position:`popper`}},Xs=Object.assign({inheritAttrs:!1},{__name:`Select`,props:{id:{type:String,required:!1},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},nullableValue:{type:String,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`change`,`blur`,`focus`,`update:modelValue`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=te(),o=tt(`select`,r),s=se(),c=Se(ye(o,`open`,`defaultOpen`,`disabled`,`autocomplete`,`required`,`multiple`,`nullableValue`),i),l=Ps(M(()=>o.portal)),u=X(()=>o.content?.position??s.ui?.select?.defaultVariants?.position??Ys.defaultVariants?.position),d=M(()=>ie(o.content,{side:`bottom`,sideOffset:8,collisionPadding:8,position:u.value})),f=M(()=>ie(o.arrow,{rounded:!0})),{emitFormChange:p,emitFormInput:m,emitFormBlur:h,emitFormFocus:g,size:_,color:v,id:b,name:x,highlight:S,disabled:C,ariaAttrs:T}=Be(r),{orientation:E,size:ee}=Oe(r),{isLeading:k,isTrailing:ne,leadingIconName:re,trailingIconName:ae}=Ae(X(()=>({icon:o.icon,leading:o.leading,leadingIcon:o.leadingIcon,trailing:o.trailing,trailingIcon:o.trailingIcon??s.ui.icons.chevronDown,loading:o.loading,loadingIcon:o.loadingIcon}))),j=X(()=>v.value??o.color),ue=X(()=>S.value??o.highlight),fe=X(()=>ee.value??_.value??o.size),pe=X(()=>C.value??o.disabled),me=X(()=>u.value===`item-aligned`),F=X(()=>Me({extend:Ys,...s.ui?.select||{}})({color:j.value,variant:o.variant,size:fe.value,loading:o.loading,highlight:ue.value,fixed:o.fixed,leading:k.value||!!o.avatar||!!a.leading,trailing:ne.value||!!a.trailing,fieldGroup:E.value,position:u.value,multiple:o.multiple})),he=X(()=>o.items?.length?Le(o.items)?o.items:[o.items]:[]),ge=X(()=>he.value.flatMap(e=>e));function _e(e){if(o.multiple&&Array.isArray(e)){let t=e.map(e=>y(ge.value,e,{labelKey:o.labelKey,valueKey:o.valueKey})).filter(e=>e!=null&&e!==``);return t.length>0?t.join(`, `):void 0}return y(ge.value,e,{labelKey:o.labelKey,valueKey:o.valueKey})}let R=oe(`triggerRef`);function ve(){o.autofocus&&R.value?.$el?.focus({focusVisible:!0})}let z;W(()=>{z=setTimeout(()=>{ve()},o.autofocusDelay)}),ct(()=>clearTimeout(z));function be(e){o.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),o.modelModifiers?.number&&(e=le(e)),o.modelModifiers?.nullable&&(e??=null),o.modelModifiers?.optional&&!o.modelModifiers?.nullable&&e!==null&&(e??=void 0);let t=new Event(`change`,{target:{value:e}});i(`change`,t),p(),m()}function xe(e){if(e){let e=new FocusEvent(`focus`);i(`focus`,e),g()}else{let e=new FocusEvent(`blur`);i(`blur`,e),h()}}function B(e){return typeof e==`object`&&!!e}function V(e){e||R.value?.$el?.dispatchEvent(new PointerEvent(`pointerdown`,{bubbles:!0,button:0}))}function Ce(e){let t=document.activeElement;t&&t!==document.body&&!e.target.contains(t)&&e.preventDefault()}let we=oe(`viewportRef`);return t({triggerRef:M(()=>R.value?.$el),viewportRef:M(()=>{let e=we.value;return e&&typeof e==`object`&&`$el`in e?e.$el:e})}),(t,n)=>(I(),D(A(Po),U({name:A(x)},A(c),{autocomplete:A(o).autocomplete,disabled:pe.value,"default-value":A(o).defaultValue,"model-value":e.modelValue,"onUpdate:modelValue":be,"onUpdate:open":xe}),{default:Y(({modelValue:e,open:n})=>[O(A(as),U({id:A(b),ref_key:`triggerRef`,ref:R,"data-slot":`base`,class:F.value.base({class:[A(o).ui?.base,A(o).class]})},{...t.$attrs,...A(T)},{onClick:e=>V(n)}),{default:Y(()=>[A(k)||A(o).avatar||a.leading?(I(),N(`span`,{key:0,"data-slot":`leading`,class:H(F.value.leading({class:A(o).ui?.leading}))},[G(t.$slots,`leading`,{modelValue:e,open:n,ui:F.value},()=>[A(k)&&A(re)?(I(),D(Ne,{key:0,name:A(re),"data-slot":`leadingIcon`,class:H(F.value.leadingIcon({class:A(o).ui?.leadingIcon}))},null,8,[`name`,`class`])):A(o).avatar?(I(),D(Ke,U({key:1,size:A(o).ui?.itemLeadingAvatarSize||F.value.itemLeadingAvatarSize()},A(o).avatar,{"data-slot":`itemLeadingAvatar`,class:F.value.itemLeadingAvatar({class:A(o).ui?.itemLeadingAvatar})}),null,16,[`size`,`class`])):w(``,!0)])],2)):w(``,!0),(I(!0),N(J,null,de([_e(e)],r=>(I(),D(A(os),{key:r,"data-slot":r==null?`placeholder`:`value`,class:H(r==null?F.value.placeholder({class:A(o).ui?.placeholder}):F.value.value({class:A(o).ui?.value}))},{default:Y(()=>[G(t.$slots,`default`,{modelValue:e,open:n,ui:F.value},()=>[P(K(r??A(o).placeholder??`\xA0`),1)])]),_:2},1032,[`data-slot`,`class`]))),128)),A(ne)||a.trailing?(I(),N(`span`,{key:1,"data-slot":`trailing`,class:H(F.value.trailing({class:A(o).ui?.trailing}))},[G(t.$slots,`trailing`,{modelValue:e,open:n,ui:F.value},()=>[A(ae)?(I(),D(Ne,{key:0,name:A(ae),"data-slot":`trailingIcon`,class:H(F.value.trailingIcon({class:A(o).ui?.trailingIcon}))},null,8,[`name`,`class`])):w(``,!0)])],2)):w(``,!0)]),_:2},1040,[`id`,`class`,`onClick`]),O(A(rs),Xe(Je(A(l))),{default:Y(()=>[O(A($e),null,{default:Y(()=>[O(A(qo),U({"data-slot":`content`,class:F.value.content({class:A(o).ui?.content})},d.value,{onCloseAutoFocus:Ce}),{default:Y(()=>[G(t.$slots,`content-top`),(I(),D(ce(me.value?A(ss):`div`),{ref_key:`viewportRef`,ref:we,role:`presentation`,"data-slot":`viewport`,class:H(F.value.viewport({class:A(o).ui?.viewport}))},{default:Y(()=>[(I(!0),N(J,null,de(he.value,(e,n)=>(I(),D(A(Xo),{key:`group-${n}`,"data-slot":`group`,class:H(F.value.group({class:A(o).ui?.group}))},{default:Y(()=>[(I(!0),N(J,null,de(e,(e,r)=>(I(),N(J,{key:`group-${n}-${r}`},[B(e)&&e.type===`label`?(I(),D(A(ns),{key:0,"data-slot":`label`,class:H(F.value.label({class:[A(o).ui?.label,e.ui?.label,e.class]}))},{default:Y(()=>[P(K(A(Re)(e,A(o).labelKey)),1)]),_:2},1032,[`class`])):B(e)&&e.type===`separator`?(I(),D(A(is),{key:1,"data-slot":`separator`,class:H(F.value.separator({class:[A(o).ui?.separator,e.ui?.separator,e.class]}))},null,8,[`class`])):(I(),D(A($o),{key:2,"data-slot":`item`,class:H(F.value.item({class:[A(o).ui?.item,B(e)&&e.ui?.item,B(e)&&e.class]})),disabled:B(e)&&e.disabled,value:B(e)?A(Re)(e,A(o).valueKey):e,onSelect:t=>B(e)&&e.onSelect?.(t)},{default:Y(()=>[G(t.$slots,`item`,{item:e,index:r,ui:F.value},()=>[G(t.$slots,`item-leading`,{item:e,index:r,ui:F.value},()=>[B(e)&&e.icon?(I(),D(Ne,{key:0,name:e.icon,"data-slot":`itemLeadingIcon`,class:H(F.value.itemLeadingIcon({class:[A(o).ui?.itemLeadingIcon,e.ui?.itemLeadingIcon]}))},null,8,[`name`,`class`])):B(e)&&e.avatar?(I(),D(Ke,U({key:1,size:e.ui?.itemLeadingAvatarSize||A(o).ui?.itemLeadingAvatarSize||F.value.itemLeadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":`itemLeadingAvatar`,class:F.value.itemLeadingAvatar({class:[A(o).ui?.itemLeadingAvatar,e.ui?.itemLeadingAvatar]})}),null,16,[`size`,`class`])):B(e)&&e.chip?(I(),D(Ve,U({key:2,size:e.ui?.itemLeadingChipSize||A(o).ui?.itemLeadingChipSize||F.value.itemLeadingChipSize(),inset:``,standalone:``},{ref_for:!0},e.chip,{"data-slot":`itemLeadingChip`,class:F.value.itemLeadingChip({class:[A(o).ui?.itemLeadingChip,e.ui?.itemLeadingChip]})}),null,16,[`size`,`class`])):w(``,!0)]),L(`span`,{"data-slot":`itemWrapper`,class:H(F.value.itemWrapper({class:[A(o).ui?.itemWrapper,B(e)&&e.ui?.itemWrapper]}))},[O(A(ts),{"data-slot":`itemLabel`,class:H(F.value.itemLabel({class:[A(o).ui?.itemLabel,B(e)&&e.ui?.itemLabel]}))},{default:Y(()=>[G(t.$slots,`item-label`,{item:e,index:r},()=>[P(K(B(e)?A(Re)(e,A(o).labelKey):e),1)])]),_:2},1032,[`class`]),B(e)&&(A(Re)(e,A(o).descriptionKey)||a[`item-description`])?(I(),N(`span`,{key:0,"data-slot":`itemDescription`,class:H(F.value.itemDescription({class:[A(o).ui?.itemDescription,B(e)&&e.ui?.itemDescription]}))},[G(t.$slots,`item-description`,{item:e,index:r},()=>[P(K(A(Re)(e,A(o).descriptionKey)),1)])],2)):w(``,!0)],2),L(`span`,{"data-slot":`itemTrailing`,class:H(F.value.itemTrailing({class:[A(o).ui?.itemTrailing,B(e)&&e.ui?.itemTrailing]}))},[G(t.$slots,`item-trailing`,{item:e,index:r,ui:F.value}),O(A(es),{"as-child":``},{default:Y(()=>[O(Ne,{name:A(o).selectedIcon||A(s).ui.icons.check,"data-slot":`itemTrailingIcon`,class:H(F.value.itemTrailingIcon({class:[A(o).ui?.itemTrailingIcon,B(e)&&e.ui?.itemTrailingIcon]}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:2},1032,[`class`,`disabled`,`value`,`onSelect`]))],64))),128))]),_:2},1032,[`class`]))),128))]),_:3},8,[`class`])),G(t.$slots,`content-bottom`),A(o).arrow?(I(),D(A(Wo),U({key:0},f.value,{"data-slot":`arrow`,class:F.value.arrow({class:A(o).ui?.arrow})}),null,16,[`class`])):w(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`name`,`autocomplete`,`disabled`,`default-value`,`model-value`]))}}),Zs={class:`min-h-screen bg-default`},Qs={class:`sticky top-0 z-10 border-b border-default bg-default/80 backdrop-blur-md`},$s={class:`mx-auto flex max-w-6xl items-center gap-6 px-4 py-3`,"aria-label":`Main`},ec={class:`ml-auto flex items-center gap-2 text-sm`},tc={key:1,class:`font-mono text-xs text-muted`},nc={class:`mx-auto max-w-6xl px-4 py-8`},rc=j({__name:`App`,setup(e){let t=[{label:`Entries`,to:`/`},{label:`Reviews`,to:`/reviews`},{label:`Tokens`,to:`/tokens`},{label:`People`,to:`/people`}],n=S(),r=E(null);z(()=>n.matched.length>0&&n.meta.open!==!0,async e=>{e&&r.value===null&&(r.value=await Qe.admin(`me`))},{immediate:!0});let i=X({get:()=>r.value?.site,set:e=>{e!==void 0&&e!==r.value?.site&&Ue.switchSite(e,`/admin/`)}}),a=X(()=>(r.value?.sites??[]).map(e=>({label:`${e.site} (${e.role})`,value:e.site})));return(e,n)=>{let o=b(`RouterLink`),s=Xs,c=Js,l=b(`RouterView`),u=Ks;return I(),D(u,null,{default:Y(()=>[L(`div`,Zs,[L(`header`,Qs,[L(`nav`,$s,[O(o,{to:`/`,class:`inline-flex items-center gap-2.5`},{default:Y(()=>[...n[1]||=[L(`svg`,{viewBox:`0 0 32 32`,class:`size-6`,"aria-hidden":`true`},[L(`rect`,{width:`32`,height:`32`,rx:`8`,class:`fill-(--ui-bg-accented)`}),L(`path`,{d:`M9 8v16M23 8v16M9 16h14`,class:`stroke-primary`,"stroke-width":`3`,"stroke-linecap":`round`,fill:`none`})],-1),L(`span`,{class:`font-semibold tracking-tight text-highlighted`},`Hollware`,-1),L(`span`,{class:`rounded-full border border-default px-2 py-0.5 font-mono text-[11px] text-muted`},`admin`,-1)]]),_:1}),(I(),N(J,null,de(t,e=>O(o,{key:e.to,to:e.to,class:`text-sm text-muted transition-colors hover:text-highlighted`,"active-class":`text-highlighted font-medium`},{default:Y(()=>[P(K(e.label),1)]),_:2},1032,[`to`])),64)),L(`div`,ec,[r.value===null?w(``,!0):(I(),N(J,{key:0},[a.value.length>1?(I(),D(s,{key:0,modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,items:a.value,"aria-label":`Site`,class:`w-48`},null,8,[`modelValue`,`items`])):(I(),N(`span`,tc,K(r.value.site),1))],64)),O(c,{color:`neutral`,variant:`ghost`})])])]),L(`main`,nc,[O(l)])])]),_:1})}}}),ic=`modulepreload`,ac=function(e){return`/admin/`+e},oc={},sc=function(e){return e.pathname.endsWith(`.css`)},cc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=ac(t,n);let r=s(t);if(r.href in oc)return;oc[r.href]=!0;let i=sc(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:ic,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};Ze({prefix:`lucide`,icons:{"arrow-down":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m7-7l-7 7l-7-7"/>`},"arrow-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m12 19l-7-7l7-7m7 7H5"/>`},"arrow-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7l7 7l-7 7"/>`},"arrow-up":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 12l7-7l7 7m-7 7V5"/>`},"arrow-up-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h10v10M7 17L17 7"/>`},check:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"/>`},"chevron-down":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>`},"chevron-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 18l-6-6l6-6"/>`},"chevron-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 18l6-6l-6-6"/>`},"chevron-up":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m18 15l-6-6l-6 6"/>`},"chevrons-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m11 17l-5-5l5-5m7 10l-5-5l5-5"/>`},"chevrons-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 17l5-5l-5-5m7 10l5-5l-5-5"/>`},"circle-alert":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 8v4m0 4h.01"/></g>`},"circle-check":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m16 9l-5.5 5.5L8 12"/></g>`},"circle-x":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m15 9l-6 6m0-6l6 6"/></g>`},copy:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></g>`},"copy-check":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 15l2 2l4-4"/><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></g>`},ellipsis:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></g>`},eye:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></g>`},"eye-off":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20"/></g>`},file:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/></g>`},folder:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>`},"folder-open":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>`},"grip-vertical":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/></g>`},hash:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 9h16M4 15h16M10 3L8 21m8-18l-2 18"/>`},info:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4m0-4h.01"/></g>`},lightbulb:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/>`},"loader-circle":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 1 1-6.219-8.56"/>`},menu:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 5h16M4 12h16M4 19h16"/>`},minus:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14"/>`},monitor:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="20" height="14" x="2" y="3" rx="2"/><path d="M8 21h8m-4-4v4"/></g>`},moon:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/>`},"panel-left-close":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m7-6l-3-3l3-3"/></g>`},"panel-left-open":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m5-12l3 3l-3 3"/></g>`},plus:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7v14"/>`},"rotate-ccw":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></g>`},search:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m21 21l-4.34-4.34"/><circle cx="11" cy="11" r="8"/></g>`},square:{body:`<rect width="18" height="18" x="3" y="3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" rx="2"/>`},star:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"/>`},sun:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></g>`},terminal:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19h8M4 17l6-6l-6-6"/>`},"triangle-alert":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01"/>`},upload:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>`},x:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>`}},lastModified:1791785319,width:24,height:24});var lc=`/admin`;try{window.localStorage.getItem(`vueuse-color-scheme`)===null&&window.localStorage.setItem(`vueuse-color-scheme`,`dark`)}catch{}var uc=_e({history:T(`${lc}/`),routes:[{path:`/`,component:()=>cc(()=>import(`./Entries-Q9g2TzDi.js`),__vite__mapDeps([0,1,2]))},{path:`/entries/new`,component:()=>cc(()=>import(`./NewEntry-DioDJL4M.js`),__vite__mapDeps([3,4,1,5,6,7,2,8]))},{path:`/entries/:collection/:locale/:slug`,component:()=>cc(()=>import(`./Entry-CJPeYozs.js`),__vite__mapDeps([9,1,10,4,2,7])),props:!0},{path:`/reviews`,component:()=>cc(()=>import(`./Reviews-BznoCQEZ.js`),__vite__mapDeps([11,4,1,10,5,7,2]))},{path:`/tokens`,component:()=>cc(()=>import(`./Tokens-D4_XjSQy.js`),__vite__mapDeps([12,4,1,5,6,2,8]))},{path:`/people`,component:()=>cc(()=>import(`./People-McaQgClc.js`),__vite__mapDeps([13,4,1,5,6,2]))},{path:`/callback`,component:()=>cc(()=>import(`./Callback-CAUWS3EP.js`),__vite__mapDeps([14,1,6])),meta:{open:!0}}]});uc.beforeEach(async e=>e.meta.open===!0||await Ue.token()!==null||(await Ue.signIn(`${lc}${e.fullPath}`),!1)),v(rc).use(uc).use(qn).mount(`#app`);export{qr as a,Er as c,ir as d,Zn as f,Yr as i,br as l,Is as n,Gr as o,Nn as p,Ps as r,Vr as s,Xs as t,hr as u};
28
+ `),(I(!0),N(J,null,de(C.value,(e,t)=>(I(),N(J,{key:t},[P(K(e),1)],64))),128))]),_:1},8,[`aria-live`])):w(`v-if`,!0),A(d).viewport.value?(I(),D(rt,{key:1,to:A(d).viewport.value},[O(A(u),null,{default:Y(()=>[O(A(Z),U({ref:A(s),tabindex:`0`},t.$attrs,{as:t.as,"as-child":t.asChild,"data-state":t.open?`open`:`closed`,"data-swipe-direction":A(d).swipeDirection.value,style:A(d).disableSwipe.value?void 0:{userSelect:`none`,touchAction:`none`},onPointerdown:n[0]||=e(e=>{A(d).disableSwipe.value||(f.value={x:e.clientX,y:e.clientY})},[`left`]),onPointermove:n[1]||=e=>{if(A(d).disableSwipe.value||!f.value)return;let t=e.clientX-f.value.x,n=e.clientY-f.value.y,r=!!p.value,i=[`left`,`right`].includes(A(d).swipeDirection.value),o=[`left`,`up`].includes(A(d).swipeDirection.value)?Math.min:Math.max,s=i?o(0,t):0,c=i?0:o(0,n),l=e.pointerType===`touch`?10:2,u={x:s,y:c},m={originalEvent:e,delta:u};r?(p.value=u,A(hs)(A(`toast.swipeMove`),e=>a(`swipeMove`,e),m)):A(gs)(u,A(d).swipeDirection.value,l)?(p.value=u,A(hs)(A(`toast.swipeStart`),e=>a(`swipeStart`,e),m),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(f.value=null)},onPointerup:n[2]||=e=>{if(A(d).disableSwipe.value)return;let t=p.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),p.value=null,f.value=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};A(gs)(t,A(d).swipeDirection.value,A(d).swipeThreshold.value)?A(hs)(A(`toast.swipeEnd`),e=>a(`swipeEnd`,e),r):A(hs)(A(`toast.swipeCancel`),e=>a(`swipeCancel`,e),r),n?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}}}),{default:Y(()=>[G(t.$slots,`default`,{remaining:y.value,duration:m.value})]),_:3},16,[`as`,`as-child`,`data-state`,`data-swipe-direction`,`style`])]),_:3})],8,[`to`])):w(`v-if`,!0)],64))}}),Ss=j({__name:`ToastClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=ys(),{forwardRef:r}=c();return(e,i)=>(I(),D(cs,{"as-child":``},{default:Y(()=>[O(A(Z),U(t,{ref:A(r),type:e.as===`button`?`button`:void 0,onClick:A(n).onClose}),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16,[`type`,`onClick`])]),_:3}))}}),Cs=j({__name:`ToastAction`,props:{altText:{type:String,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){if(!e.altText)throw Error("Missing prop `altText` expected on `ToastAction`");let{forwardRef:t}=c();return(e,n)=>e.altText?(I(),D(cs,{key:0,"alt-text":e.altText,"as-child":``},{default:Y(()=>[O(Ss,{ref:A(t),as:e.as,"as-child":e.asChild},{default:Y(()=>[G(e.$slots,`default`)]),_:3},8,[`as`,`as-child`])]),_:3},8,[`alt-text`])):w(`v-if`,!0)}}),ws=j({__name:`ToastDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return c(),(e,n)=>(I(),D(A(Z),Xe(Je(t)),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16))}}),Ts=j({__name:`ToastPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(I(),D(A(qr),Xe(Je(t)),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16))}}),Es=j({__name:`ToastRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:`foreground`},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i}=c(),a=_(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(e,t)=>(I(),D(A(u),{present:e.forceMount||A(a)},{default:Y(()=>[O(xs,U({ref:A(i),open:A(a),type:e.type,as:e.as,"as-child":e.asChild,duration:e.duration},e.$attrs,{onClose:t[0]||=e=>a.value=!1,onPause:t[1]||=e=>r(`pause`),onResume:t[2]||=e=>r(`resume`),onEscapeKeyDown:t[3]||=e=>r(`escapeKeyDown`,e),onSwipeStart:t[4]||=e=>{r(`swipeStart`,e),e.defaultPrevented||e.currentTarget.setAttribute(`data-swipe`,`start`)},onSwipeMove:t[5]||=e=>{if(r(`swipeMove`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`move`),r.style.setProperty(`--reka-toast-swipe-move-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-move-y`,`${n}px`)}},onSwipeCancel:t[6]||=e=>{if(r(`swipeCancel`,e),!e.defaultPrevented){let t=e.currentTarget;t.setAttribute(`data-swipe`,`cancel`),t.style.removeProperty(`--reka-toast-swipe-move-x`),t.style.removeProperty(`--reka-toast-swipe-move-y`),t.style.removeProperty(`--reka-toast-swipe-end-x`),t.style.removeProperty(`--reka-toast-swipe-end-y`)}},onSwipeEnd:t[7]||=e=>{if(r(`swipeEnd`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`end`),r.style.removeProperty(`--reka-toast-swipe-move-x`),r.style.removeProperty(`--reka-toast-swipe-move-y`),r.style.setProperty(`--reka-toast-swipe-end-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-end-y`,`${n}px`),a.value=!1}}}),{default:Y(({remaining:t,duration:n})=>[G(e.$slots,`default`,{remaining:t,duration:n,open:A(a)})]),_:3},16,[`open`,`type`,`as`,`as-child`,`duration`])]),_:3},8,[`present`]))}}),Ds=j({__name:`ToastTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return c(),(e,n)=>(I(),D(A(Z),Xe(Je(t)),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16))}}),Os=j({__name:`FocusProxy`,emits:[`focusFromOutsideViewport`],setup(e,{emit:t}){let n=t,r=ls();return(e,t)=>(I(),D(A(h),{tabindex:`0`,style:{position:`fixed`},onFocus:t[0]||=e=>{let t=e.relatedTarget;A(r).viewport.value?.contains(t)||n(`focusFromOutsideViewport`)}},{default:Y(()=>[G(e.$slots,`default`)]),_:3}))}}),ks=j({inheritAttrs:!1,__name:`ToastViewport`,props:{hotkey:{type:Array,required:!1,default:()=>[`F8`]},label:{type:[String,Function],required:!1,default:`Notifications ({hotkey})`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ol`}},setup(e){let{hotkey:t,label:n}=ue(e),{forwardRef:a,currentElement:o}=c(),{CollectionSlot:s,getItems:l}=Yr(),u=ls(),d=X(()=>u.toastCount.value>0),f=E(),p=E(),m=/Key/g,h=/Digit/g,_=X(()=>t.value.join(`+`).replace(m,``).replace(h,``));g(t.value,()=>{o.value.focus()}),W(()=>{u.onViewportChange(o.value)}),V(e=>{let t=o.value;if(d.value&&t){let n=()=>{if(!u.isClosePausedRef.value){let e=new CustomEvent(ps);t.dispatchEvent(e),u.isClosePausedRef.value=!0}},i=()=>{if(u.isClosePausedRef.value){let e=new CustomEvent(ms);t.dispatchEvent(e),u.isClosePausedRef.value=!1}},a=e=>{t.contains(e.relatedTarget)||i()},o=()=>{t.contains(r())||i()},s=e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n){let n=r(),i=e.shiftKey;if(e.target===t&&i){f.value?.focus();return}let a=v({tabbingDirection:i?`backwards`:`forwards`}),o=a.findIndex(e=>e===n);Pr(a.slice(o+1))?e.preventDefault():i?f.value?.focus():p.value?.focus()}};t.addEventListener(`focusin`,n),t.addEventListener(`focusout`,a),t.addEventListener(`pointermove`,n),t.addEventListener(`pointerleave`,o),t.addEventListener(`keydown`,s),window.addEventListener(`blur`,n),window.addEventListener(`focus`,i),e(()=>{t.removeEventListener(`focusin`,n),t.removeEventListener(`focusout`,a),t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerleave`,o),t.removeEventListener(`keydown`,s),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,i)})}});function v({tabbingDirection:e}){let t=l().map(e=>e.ref).map(t=>{let n=[t,...Ir(t)];return e===`forwards`?n:n.reverse()});return(e===`forwards`?t.reverse():t).flat()}return(e,t)=>(I(),D(A(Dr),{role:`region`,"aria-label":typeof A(n)==`string`?A(n).replace(`{hotkey}`,_.value):A(n)(_.value),tabindex:`-1`,style:Ee({pointerEvents:d.value?void 0:`none`})},{default:Y(()=>[d.value?(I(),D(Os,{key:0,ref:e=>{e&&(f.value=A(i)(e))},onFocusFromOutsideViewport:t[0]||=()=>{let e=v({tabbingDirection:`forwards`});A(Pr)(e)}},null,512)):w(`v-if`,!0),O(A(s),null,{default:Y(()=>[O(A(Z),U({ref:A(a),tabindex:`-1`,as:e.as,"as-child":e.asChild},e.$attrs),{default:Y(()=>[G(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3}),d.value?(I(),D(Os,{key:1,ref:e=>{e&&(p.value=A(i)(e))},onFocusFromOutsideViewport:t[1]||=()=>{let e=v({tabbingDirection:`backwards`});A(Pr)(e)}},null,512)):w(`v-if`,!0)]),_:3},8,[`aria-label`,`style`]))}}),[As,js]=it(`TooltipProvider`),Ms=j({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:t,skipDelayDuration:n,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:o,content:s}=ue(e);c();let l=E(!0),u=E(!1),{start:d,stop:f}=Ie(()=>{l.value=!0},n,{immediate:!1});return js({isOpenDelayed:l,delayDuration:t,onOpen(){f(),l.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:r,disableClosingTrigger:i,disabled:o,ignoreNonKeyboardFocus:a,content:s}),(e,t)=>G(e.$slots,`default`)}}),Ns=Symbol(`nuxt-ui.portal-target`);function Ps(e){let t=We(Ns,void 0),n=X(()=>e.value===!0?t?.value:e.value),r=X(()=>typeof n.value==`boolean`&&!n.value),i=X(()=>typeof n.value==`boolean`?`body`:n.value);return X(()=>({to:i.value,disabled:r.value}))}var Fs=Symbol(`nuxt-ui.toast-max`);function Is(){let e=In(`toasts`,()=>[]),t=We(Fs,void 0),n=E(!1),r=[],i=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;function a(t,n){e.value[t]={...e.value[t],...n,_duplicate:(e.value[t]._duplicate||0)+1}}async function o(){if(!(n.value||r.length===0)){for(n.value=!0;r.length>0;){await q();let n=r.shift(),i=t?.value??5;if(i<=0){e.value.length&&(e.value=[]);continue}let o=e.value.findIndex(e=>e.id===n.id);if(o!==-1){a(o,n);continue}e.value=[...e.value,n].slice(-i)}n.value=!1}}function s(t){let n={id:i(),open:!0,...t},s=e.value.findIndex(e=>e.id===n.id);return s===-1?(r.push(n),o(),n):(a(s,n),n)}function c(t,n){let r=e.value.findIndex(e=>e.id===t);r!==-1&&(e.value[r]={...e.value[r],...n,duration:n.duration,open:!0,_updated:!0},q(()=>{let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated&&(e.value[n]={...e.value[n],_updated:void 0})}))}function l(t){let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value[n]._updated||(n!==-1&&(e.value[n]={...e.value[n],open:!1}),setTimeout(()=>{e.value=e.value.filter(e=>e.id!==t)},200))}function u(){e.value=[]}return{toasts:e,add:s,update:c,remove:l,clear:u}}var Ls={slots:{root:`gap-2`,base:`relative overflow-hidden rounded-full bg-accented`,indicator:`rounded-full size-full transition-transform duration-200 ease-out motion-reduce:transition-none motion-reduce:data-[state=indeterminate]:animate-pulse`,status:`flex text-dimmed duration-200 ease-out motion-reduce:transition-none`,steps:`grid items-end`,step:`truncate text-end row-start-1 col-start-1 transition-opacity ease-out`},variants:{animation:{carousel:``,"carousel-inverse":``,swing:``,elastic:``},color:{primary:{indicator:`bg-primary`,steps:`text-primary`},secondary:{indicator:`bg-secondary`,steps:`text-secondary`},success:{indicator:`bg-success`,steps:`text-success`},info:{indicator:`bg-info`,steps:`text-info`},warning:{indicator:`bg-warning`,steps:`text-warning`},error:{indicator:`bg-error`,steps:`text-error`},neutral:{indicator:`bg-inverted`,steps:`text-highlighted`}},size:{"2xs":{status:`text-xs`,steps:`text-xs`},xs:{status:`text-xs`,steps:`text-xs`},sm:{status:`text-sm`,steps:`text-sm`},md:{status:`text-sm`,steps:`text-sm`},lg:{status:`text-sm`,steps:`text-sm`},xl:{status:`text-base`,steps:`text-base`},"2xl":{status:`text-base`,steps:`text-base`}},step:{active:{step:`opacity-100`},first:{step:`opacity-100 text-muted`},other:{step:`opacity-0`},last:{step:``}},orientation:{horizontal:{root:`w-full flex flex-col`,base:`w-full`,status:`flex-row items-center justify-end w-(--percent) min-w-fit transition-[width]`},vertical:{root:`h-full flex flex-row-reverse`,base:`h-full`,status:`flex-col justify-end h-(--percent) min-h-fit transition-[height]`}},inverted:{true:{status:`self-end`}}},compoundVariants:[{inverted:!0,orientation:`horizontal`,class:{step:`text-start`,status:`flex-row-reverse`}},{inverted:!0,orientation:`vertical`,class:{steps:`items-start`,status:`flex-col-reverse`}},{orientation:`horizontal`,size:`2xs`,class:`h-px`},{orientation:`horizontal`,size:`xs`,class:`h-0.5`},{orientation:`horizontal`,size:`sm`,class:`h-1`},{orientation:`horizontal`,size:`md`,class:`h-2`},{orientation:`horizontal`,size:`lg`,class:`h-3`},{orientation:`horizontal`,size:`xl`,class:`h-4`},{orientation:`horizontal`,size:`2xl`,class:`h-5`},{orientation:`vertical`,size:`2xs`,class:`w-px`},{orientation:`vertical`,size:`xs`,class:`w-0.5`},{orientation:`vertical`,size:`sm`,class:`w-1`},{orientation:`vertical`,size:`md`,class:`w-2`},{orientation:`vertical`,size:`lg`,class:`w-3`},{orientation:`vertical`,size:`xl`,class:`w-4`},{orientation:`vertical`,size:`2xl`,class:`w-5`},{orientation:`horizontal`,animation:`carousel`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel_2s_linear_infinite] motion-safe:data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_linear_infinite]`}},{orientation:`vertical`,animation:`carousel`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-vertical_2s_linear_infinite]`}},{orientation:`horizontal`,animation:`carousel-inverse`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-inverse_2s_linear_infinite] motion-safe:data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_linear_infinite]`}},{orientation:`vertical`,animation:`carousel-inverse`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_linear_infinite]`}},{orientation:`horizontal`,animation:`swing`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[swing_2s_var(--ease-in-out)_infinite]`}},{orientation:`vertical`,animation:`swing`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[swing-vertical_2s_var(--ease-in-out)_infinite]`}},{orientation:`horizontal`,animation:`elastic`,class:{indicator:`relative motion-safe:data-[state=indeterminate]:animate-[elastic_2s_var(--ease-in-out)_infinite]`}},{orientation:`vertical`,animation:`elastic`,class:{indicator:`relative motion-safe:data-[state=indeterminate]:animate-[elastic-vertical_2s_var(--ease-in-out)_infinite]`}}],defaultVariants:{animation:`carousel`,color:`primary`,size:`md`}},Rs={__name:`Progress`,props:{as:{type:null,required:!1},max:{type:[Number,Array],required:!1},status:{type:Boolean,required:!1},inverted:{type:Boolean,required:!1,default:!1},size:{type:null,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},animation:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},getValueLabel:{type:Function,required:!1},getValueText:{type:Function,required:!1},modelValue:{type:[Number,null],required:!1,default:null}},emits:[`update:modelValue`,`update:max`],setup(e,{emit:t}){let n=e,r=t,i=te(),a=tt(`progress`,n),{dir:o}=Nn(),s=se(),c=Se(ye(a,`getValueLabel`,`getValueText`,`modelValue`),r),l=X(()=>c.value.modelValue===null),u=X(()=>Array.isArray(a.max)),d=X(()=>{if(!l.value&&a.max)return Array.isArray(a.max)?a.max.length-1:Number(a.max)}),f=X(()=>{if(!l.value)switch(!0){case c.value.modelValue<0:return 0;case c.value.modelValue>(d.value??100):return 100;default:return Math.round(c.value.modelValue/(d.value??100)*100)}}),p=X(()=>{if(f.value!==void 0)return a.orientation===`vertical`?{transform:`translateY(${a.inverted?``:`-`}${100-f.value}%)`}:o.value===`rtl`?{transform:`translateX(${a.inverted?`-`:``}${100-f.value}%)`}:{transform:`translateX(${a.inverted?``:`-`}${100-f.value}%)`}}),m=X(()=>({"--percent":`${Math.max(f.value??0,0)}%`}));function h(e){return e===Number(a.modelValue)}function g(e){return e===0}function _(e){return e===d.value}function v(e){return e=Number(e),h(e)&&!g(e)?`active`:g(e)&&h(e)?`first`:_(e)&&h(e)?`last`:`other`}let y=X(()=>Me({extend:Ls,...s.ui?.progress||{}})({animation:a.animation,size:a.size,color:a.color,orientation:a.orientation,inverted:a.inverted})),b=X(()=>Object.keys({...Ls.variants?.color,...s.ui?.progress?.variants?.color})),x=X(()=>a.color&&!b.value.includes(a.color)?a.color:void 0);return(e,t)=>(I(),D(A(Z),{as:A(a).as,"data-orientation":A(a).orientation,"data-slot":`root`,class:H(y.value.root({class:[A(a).ui?.root,A(a).class]}))},{default:Y(()=>[!l.value&&(A(a).status||i.status)?(I(),N(`div`,{key:0,"data-slot":`status`,class:H(y.value.status({class:A(a).ui?.status})),style:Ee(m.value)},[G(e.$slots,`status`,{percent:f.value},()=>[P(K(f.value)+`% `,1)])],6)):w(``,!0),O(A(wo),U(A(c),{max:d.value,"data-slot":`base`,class:y.value.base({class:A(a).ui?.base}),style:{transform:`translateZ(0)`}}),{default:Y(()=>[O(A(To),{"data-slot":`indicator`,class:H(y.value.indicator({class:A(a).ui?.indicator})),style:Ee([p.value,x.value?{backgroundColor:x.value}:void 0])},null,8,[`class`,`style`])]),_:1},16,[`max`,`class`]),u.value?(I(),N(`div`,{key:1,"data-slot":`steps`,class:H(y.value.steps({class:A(a).ui?.steps})),style:Ee(x.value?{color:x.value}:void 0)},[(I(!0),N(J,null,de(A(a).max,(t,n)=>(I(),N(`div`,{key:n,"data-slot":`step`,class:H(y.value.step({class:A(a).ui?.step,step:v(n)}))},[G(e.$slots,`step-${n}`,{step:t},()=>[P(K(t),1)])],2))),128))],6)):w(``,!0)]),_:3},8,[`as`,`data-orientation`,`class`]))}},zs={slots:{root:`relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5`,wrapper:`w-0 flex-1 flex flex-col`,title:`text-sm font-medium text-highlighted`,description:`text-sm text-muted`,icon:`shrink-0 size-5`,avatar:`shrink-0`,avatarSize:`2xl`,actions:`flex gap-1.5 shrink-0`,progress:`absolute inset-x-0 bottom-0`,close:`p-0`},variants:{color:{primary:{root:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`,icon:`text-primary`},secondary:{root:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`,icon:`text-secondary`},success:{root:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`,icon:`text-success`},info:{root:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`,icon:`text-info`},warning:{root:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`,icon:`text-warning`},error:{root:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`,icon:`text-error`},neutral:{root:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`,icon:`text-highlighted`}},orientation:{horizontal:{root:`items-center`,actions:`items-center`},vertical:{root:`items-start`,actions:`items-start mt-2.5`}},title:{true:{description:`mt-1`}}},defaultVariants:{color:`primary`}},Bs={__name:`Toast`,props:{as:{type:null,required:!1},title:{type:[String,Object,Function],required:!1},description:{type:[String,Object,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`vertical`},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},actions:{type:Array,required:!1},duration:{type:Number,required:!1},progress:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},type:{type:String,required:!1}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(t,{expose:n,emit:r}){let i=t,a=r,o=te(),s=tt(`toast`,i),{t:c}=Nn(),l=se(),u=Se(ye(s,`as`,`defaultOpen`,`open`,`duration`,`type`),a),d=X(()=>Me({extend:zs,...l.ui?.toast||{}})({color:s.color,orientation:s.orientation,title:!!s.title||!!o.title})),f=oe(`rootRef`),p=E(0);return W(()=>{f.value?.$el?.getBoundingClientRect&&(p.value=f.value.$el.getBoundingClientRect().height)}),n({height:p}),(t,n)=>(I(),D(A(Es),U({ref_key:`rootRef`,ref:f},A(u),{"data-orientation":A(s).orientation,"data-slot":`root`,class:d.value.root({class:[A(s).ui?.root,A(s).class]}),style:{"--height":p.value}}),{default:Y(({remaining:r,duration:i,open:a})=>[G(t.$slots,`leading`,{ui:d.value},()=>[A(s).avatar?(I(),D(Ke,U({key:0,size:A(s).ui?.avatarSize||d.value.avatarSize()},A(s).avatar,{"data-slot":`avatar`,class:d.value.avatar({class:A(s).ui?.avatar})}),null,16,[`size`,`class`])):A(s).icon?(I(),D(Ne,{key:1,name:A(s).icon,"data-slot":`icon`,class:H(d.value.icon({class:A(s).ui?.icon}))},null,8,[`name`,`class`])):w(``,!0)]),L(`div`,{"data-slot":`wrapper`,class:H(d.value.wrapper({class:A(s).ui?.wrapper}))},[A(s).title||o.title?(I(),D(A(Ds),{key:0,"data-slot":`title`,class:H(d.value.title({class:A(s).ui?.title}))},{default:Y(()=>[G(t.$slots,`title`,{},()=>[typeof A(s).title==`function`?(I(),D(ce(A(s).title()),{key:0})):typeof A(s).title==`object`?(I(),D(ce(A(s).title),{key:1})):(I(),N(J,{key:2},[P(K(A(s).title),1)],64))])]),_:3},8,[`class`])):w(``,!0),A(s).description||o.description?(I(),D(A(ws),{key:1,"data-slot":`description`,class:H(d.value.description({class:A(s).ui?.description}))},{default:Y(()=>[G(t.$slots,`description`,{},()=>[typeof A(s).description==`function`?(I(),D(ce(A(s).description()),{key:0})):typeof A(s).description==`object`?(I(),D(ce(A(s).description),{key:1})):(I(),N(J,{key:2},[P(K(A(s).description),1)],64))])]),_:3},8,[`class`])):w(``,!0),A(s).orientation===`vertical`&&(A(s).actions?.length||o.actions)?(I(),N(`div`,{key:2,"data-slot":`actions`,class:H(d.value.actions({class:A(s).ui?.actions}))},[G(t.$slots,`actions`,{},()=>[(I(!0),N(J,null,de(A(s).actions,(t,r)=>(I(),D(A(Cs),{key:r,"alt-text":t.label||`Action`,"as-child":``,onClick:n[0]||=e(()=>{},[`stop`])},{default:Y(()=>[O(Pe,U({size:`xs`,color:A(s).color},{ref_for:!0},t),null,16,[`color`])]),_:2},1032,[`alt-text`]))),128))])],2)):w(``,!0)],2),A(s).orientation===`horizontal`&&(A(s).actions?.length||o.actions)||A(s).close?(I(),N(`div`,{key:0,"data-slot":`actions`,class:H(d.value.actions({class:A(s).ui?.actions,orientation:`horizontal`}))},[A(s).orientation===`horizontal`&&(A(s).actions?.length||o.actions)?G(t.$slots,`actions`,{},()=>[(I(!0),N(J,null,de(A(s).actions,(t,r)=>(I(),D(A(Cs),{key:r,"alt-text":t.label||`Action`,"as-child":``,onClick:n[1]||=e(()=>{},[`stop`])},{default:Y(()=>[O(Pe,U({size:`xs`,color:A(s).color},{ref_for:!0},t),null,16,[`color`])]),_:2},1032,[`alt-text`]))),128))],void 0,0):w(``,!0),A(s).close||o.close?(I(),D(A(Ss),{key:1,"as-child":``},{default:Y(()=>[G(t.$slots,`close`,{ui:d.value},()=>[A(s).close?(I(),D(Pe,U({key:0,icon:A(s).closeIcon||A(l).ui.icons.close,color:`neutral`,variant:`link`,"aria-label":A(c)(`toast.close`)},typeof A(s).close==`object`?A(s).close:{},{"data-slot":`close`,class:d.value.close({class:A(s).ui?.close}),onClick:n[2]||=e(()=>{},[`stop`])}),null,16,[`icon`,`aria-label`,`class`])):w(``,!0)])]),_:3})):w(``,!0)],2)):w(``,!0),A(s).progress&&a&&r>0&&i?(I(),D(Rs,U({key:1,"model-value":r/i*100,color:A(s).color},typeof A(s).progress==`object`?A(s).progress:{},{size:`sm`,"data-slot":`progress`,class:d.value.progress({class:A(s).ui?.progress})}),null,16,[`model-value`,`color`,`class`])):w(``,!0)]),_:3},16,[`data-orientation`,`class`,`style`]))}},Vs={slots:{viewport:`fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none`,base:`pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_var(--ease-out)] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=odd]:animate-[toast-pulse-a_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=even]:animate-[toast-pulse-b_200ms_var(--ease-out)] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out motion-reduce:transition-none`},variants:{position:{"top-left":{viewport:`left-4`},"top-center":{viewport:`left-1/2 transform -translate-x-1/2`},"top-right":{viewport:`right-4`},"bottom-left":{viewport:`left-4`},"bottom-center":{viewport:`left-1/2 transform -translate-x-1/2`},"bottom-right":{viewport:`right-4`}},swipeDirection:{up:`data-[swipe=end]:animate-[toast-slide-up_200ms_var(--ease-out)]`,right:`data-[swipe=end]:animate-[toast-slide-right_200ms_var(--ease-out)]`,down:`data-[swipe=end]:animate-[toast-slide-down_200ms_var(--ease-out)]`,left:`data-[swipe=end]:animate-[toast-slide-left_200ms_var(--ease-out)]`}},compoundVariants:[{position:[`top-left`,`top-center`,`top-right`],class:{viewport:`top-4`,base:`top-0 data-[state=open]:animate-[toast-slide-in-from-top_200ms_var(--ease-out)]`}},{position:[`bottom-left`,`bottom-center`,`bottom-right`],class:{viewport:`bottom-4`,base:`bottom-0 data-[state=open]:animate-[toast-slide-in-from-bottom_200ms_var(--ease-out)]`}},{swipeDirection:[`left`,`right`],class:`data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0`},{swipeDirection:[`up`,`down`],class:`data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0`}],defaultVariants:{position:`bottom-right`}},Hs=Object.assign({name:`Toaster`},{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},max:{type:Number,required:!1,default:5},class:{type:null,required:!1},ui:{type:Object,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeThreshold:{type:Number,required:!1}},setup(e){let t=tt(`toaster`,e),{toasts:n,remove:r}=Is(),i=se();at(Fs,M(()=>t.max));let a=Se(ye(t,`duration`,`label`,`swipeThreshold`,`disableSwipe`)),o=Ps(M(()=>t.portal)),s=X(()=>{switch(t.position){case`top-center`:return`up`;case`top-right`:case`bottom-right`:return`right`;case`bottom-center`:return`down`;case`top-left`:case`bottom-left`:return`left`}return`right`}),c=X(()=>Me({extend:Vs,...i.ui?.toaster||{}})({position:t.position,swipeDirection:s.value}));function l(e,t){e||r(t)}let u=E(!1),d=X(()=>t.expand||u.value),f=E([]),p=X(()=>f.value.reduce((e,{height:t})=>e+t+16,0)),m=X(()=>f.value[f.value.length-1]?.height||0);function h(e){return f.value.slice(e+1).reduce((e,{height:t})=>e+t+16,0)}return(e,r)=>(I(),D(A(ds),U({"swipe-direction":s.value},A(a)),{default:Y(()=>[G(e.$slots,`default`),(I(!0),N(J,null,de(A(n),(e,r)=>(I(),D(Bs,U({key:e.id,ref_for:!0,ref_key:`refs`,ref:f,progress:A(t).progress},{ref_for:!0},A(pe)(e,[`id`,`close`,`_duplicate`,`_updated`,`onClick`]),{close:e.close,"data-expanded":d.value,"data-front":!d.value&&r===A(n).length-1,"data-pulsing":e._duplicate?e._duplicate%2==0?`even`:`odd`:void 0,style:{"--index":r-A(n).length+A(n).length,"--before":A(n).length-1-r,"--offset":h(r),"--scale":d.value?`1`:`calc(1 - var(--before) * var(--scale-factor))`,"--translate":d.value?`calc(var(--offset) * var(--translate-factor))`:`calc(var(--before) * var(--gap))`,"--transform":`translateY(var(--translate)) scale(var(--scale))`},"data-slot":`base`,class:c.value.base({class:[A(t).ui?.base,e.onClick?`cursor-pointer`:void 0]}),"onUpdate:open":t=>l(t,e.id),onClick:t=>e.onClick&&e.onClick(e)}),null,16,[`progress`,`close`,`data-expanded`,`data-front`,`data-pulsing`,`style`,`class`,`onUpdate:open`,`onClick`]))),128)),O(A(Ts),Xe(Je(A(o))),{default:Y(()=>[O(A(ks),{"data-expanded":d.value,"data-slot":`viewport`,class:H(c.value.viewport({class:[A(t).ui?.viewport,A(t).class]})),style:Ee({"--scale-factor":`0.05`,"--translate-factor":A(t).position?.startsWith(`top`)?`1px`:`-1px`,"--gap":A(t).position?.startsWith(`top`)?`16px`:`-16px`,"--front-height":`${m.value}px`,"--height":`${p.value}px`}),onMouseenter:r[0]||=e=>u.value=!0,onMouseleave:r[1]||=e=>u.value=!1},null,8,[`data-expanded`,`class`,`style`])]),_:1},16)]),_:3},16,[`swipe-direction`]))}});function Us(){let e=C([]),t=(t,i)=>{let{props:a,defaultOpen:s,destroyOnClose:c}=i||{},l=ot({id:Symbol(import.meta.dev?`useOverlay`:``),isOpen:!!s,component:Te(t),isMounted:!!s,destroyOnClose:!!c,originalProps:a||{},props:{...a},resolvers:[]});return e.push(l),{...l,open:e=>n(l.id,e),close:e=>r(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);n.props=t?{...n.originalProps,...t}:{...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvers.push(e));return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1;for(let e of n.resolvers.splice(0))e(t)},i=()=>{e.forEach(e=>r(e.id))},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{overlays:e,open:n,close:r,closeAll:i,create:t,patch:o,unmount:a,isOpen:e=>s(e).isOpen}}var Ws=ve(Us),Gs={__name:`OverlayProvider`,setup(e){let{overlays:t,unmount:n,close:r}=Ws(),i=X(()=>t.filter(e=>e.isMounted)),a=e=>{r(e),n(e)},o=(e,t)=>{r(e,t)};return(e,t)=>(I(!0),N(J,null,de(i.value,e=>(I(),D(ce(e.component),U({key:e.id},{ref_for:!0},e.props,{open:e.isOpen,"onUpdate:open":t=>e.isOpen=t,onClose:t=>o(e.id,t),"onAfter:leave":t=>a(e.id)}),null,16,[`open`,`onUpdate:open`,`onClose`,`onAfter:leave`]))),128))}},Ks=Object.assign({name:`App`},{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:Object,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:`body`},dir:{type:String,required:!1},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){let t=e,r=st(ye(t,`scrollBody`)),i=M(()=>t.tooltip),a=M(()=>t.toaster),o=M(()=>t.dir?{...t.locale||jn,dir:t.dir}:t.locale);at(Mn,o);let s=M(()=>t.portal);return at(Ns,s),(s,c)=>(I(),D(A(n),U({"use-id":()=>re(),dir:t.dir||o.value?.dir,locale:o.value?.code},A(r)),{default:Y(()=>[O(A(Ms),Xe(Je(i.value)),{default:Y(()=>[e.toaster===null?G(s.$slots,`default`,{},void 0,void 0,1):(I(),D(Hs,Xe(U({key:0},a.value)),{default:Y(()=>[G(s.$slots,`default`)]),_:3},16)),O(Gs)]),_:3},16)]),_:3},16,[`use-id`,`dir`,`locale`]))}});function qs(){let e=se().ui?.prefix;return t=>!e||!t?t:t.split(/\s+/).filter(Boolean).map(t=>`${e}:${t}`).join(` `)}var Js=Object.assign({inheritAttrs:!1},{__name:`ColorModeButton`,props:{color:{type:null,required:!1,default:`neutral`},variant:{type:null,required:!1,default:`ghost`},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){let t=tt(`button`,e),{t:n}=Nn(),r=Pn(),i=se(),a=qs(),o=Se(xe(t,`icon`)),s=X({get(){return r.value===`dark`},set(e){r.preference=e?`dark`:`light`}});return(e,r)=>(I(),D(Pe,U({...A(o),"aria-label":s.value?A(n)(`colorMode.switchToLight`):A(n)(`colorMode.switchToDark`),...e.$attrs},{onClick:r[0]||=e=>s.value=!s.value}),{leading:Y(({ui:e})=>[O(Ne,{class:H(e.leadingIcon({class:[A(t).ui?.leadingIcon,A(a)(`hidden dark:inline-block`)]})),name:A(i).ui.icons.dark},null,8,[`class`,`name`]),O(Ne,{class:H(e.leadingIcon({class:[A(t).ui?.leadingIcon,A(a)(`dark:hidden`)]})),name:A(i).ui.icons.light},null,8,[`class`,`name`])]),_:1},16))}}),Ys={slots:{base:[`relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`,value:`truncate pointer-events-none`,placeholder:`truncate text-dimmed`,arrow:`fill-bg stroke-default`,content:`max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col`,viewport:`relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1`,group:`p-1 isolate`,empty:`text-center text-muted`,label:`font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:[`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default`,`transition-colors`],itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemLeadingChip:`shrink-0`,itemLeadingChipSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemWrapper:`flex-1 flex flex-col min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1 text-[10px]/3 gap-1`,item:`p-1 text-xs gap-1`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2 text-xs`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1.5 text-[10px]/3 gap-1.5`,item:`p-1.5 text-xs gap-1.5`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2.5 text-xs`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-sm gap-1.5`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-2.5 text-sm`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-2 text-xs gap-2`,item:`p-2 text-sm gap-2`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-3 text-sm`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`,label:`p-2 text-sm gap-2`,item:`p-2 text-base gap-2`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemLeadingChip:`size-6`,itemLeadingChipSize:`lg`,itemTrailingIcon:`size-6`,empty:`p-3 text-base`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},position:{popper:{content:`data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]`},"item-aligned":{content:``}},multiple:{true:``}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`,position:`popper`}},Xs=Object.assign({inheritAttrs:!1},{__name:`Select`,props:{id:{type:String,required:!1},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},nullableValue:{type:String,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`change`,`blur`,`focus`,`update:modelValue`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=te(),o=tt(`select`,r),s=se(),c=Se(ye(o,`open`,`defaultOpen`,`disabled`,`autocomplete`,`required`,`multiple`,`nullableValue`),i),l=Ps(M(()=>o.portal)),u=X(()=>o.content?.position??s.ui?.select?.defaultVariants?.position??Ys.defaultVariants?.position),d=M(()=>ie(o.content,{side:`bottom`,sideOffset:8,collisionPadding:8,position:u.value})),f=M(()=>ie(o.arrow,{rounded:!0})),{emitFormChange:p,emitFormInput:m,emitFormBlur:h,emitFormFocus:g,size:_,color:v,id:b,name:x,highlight:S,disabled:C,ariaAttrs:T}=Be(r),{orientation:E,size:ee}=Oe(r),{isLeading:k,isTrailing:ne,leadingIconName:re,trailingIconName:ae}=Ae(X(()=>({icon:o.icon,leading:o.leading,leadingIcon:o.leadingIcon,trailing:o.trailing,trailingIcon:o.trailingIcon??s.ui.icons.chevronDown,loading:o.loading,loadingIcon:o.loadingIcon}))),j=X(()=>v.value??o.color),ue=X(()=>S.value??o.highlight),fe=X(()=>ee.value??_.value??o.size),pe=X(()=>C.value??o.disabled),me=X(()=>u.value===`item-aligned`),F=X(()=>Me({extend:Ys,...s.ui?.select||{}})({color:j.value,variant:o.variant,size:fe.value,loading:o.loading,highlight:ue.value,fixed:o.fixed,leading:k.value||!!o.avatar||!!a.leading,trailing:ne.value||!!a.trailing,fieldGroup:E.value,position:u.value,multiple:o.multiple})),he=X(()=>o.items?.length?Le(o.items)?o.items:[o.items]:[]),ge=X(()=>he.value.flatMap(e=>e));function _e(e){if(o.multiple&&Array.isArray(e)){let t=e.map(e=>y(ge.value,e,{labelKey:o.labelKey,valueKey:o.valueKey})).filter(e=>e!=null&&e!==``);return t.length>0?t.join(`, `):void 0}return y(ge.value,e,{labelKey:o.labelKey,valueKey:o.valueKey})}let R=oe(`triggerRef`);function ve(){o.autofocus&&R.value?.$el?.focus({focusVisible:!0})}let z;W(()=>{z=setTimeout(()=>{ve()},o.autofocusDelay)}),ct(()=>clearTimeout(z));function be(e){o.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),o.modelModifiers?.number&&(e=le(e)),o.modelModifiers?.nullable&&(e??=null),o.modelModifiers?.optional&&!o.modelModifiers?.nullable&&e!==null&&(e??=void 0);let t=new Event(`change`,{target:{value:e}});i(`change`,t),p(),m()}function xe(e){if(e){let e=new FocusEvent(`focus`);i(`focus`,e),g()}else{let e=new FocusEvent(`blur`);i(`blur`,e),h()}}function B(e){return typeof e==`object`&&!!e}function V(e){e||R.value?.$el?.dispatchEvent(new PointerEvent(`pointerdown`,{bubbles:!0,button:0}))}function Ce(e){let t=document.activeElement;t&&t!==document.body&&!e.target.contains(t)&&e.preventDefault()}let we=oe(`viewportRef`);return t({triggerRef:M(()=>R.value?.$el),viewportRef:M(()=>{let e=we.value;return e&&typeof e==`object`&&`$el`in e?e.$el:e})}),(t,n)=>(I(),D(A(Po),U({name:A(x)},A(c),{autocomplete:A(o).autocomplete,disabled:pe.value,"default-value":A(o).defaultValue,"model-value":e.modelValue,"onUpdate:modelValue":be,"onUpdate:open":xe}),{default:Y(({modelValue:e,open:n})=>[O(A(as),U({id:A(b),ref_key:`triggerRef`,ref:R,"data-slot":`base`,class:F.value.base({class:[A(o).ui?.base,A(o).class]})},{...t.$attrs,...A(T)},{onClick:e=>V(n)}),{default:Y(()=>[A(k)||A(o).avatar||a.leading?(I(),N(`span`,{key:0,"data-slot":`leading`,class:H(F.value.leading({class:A(o).ui?.leading}))},[G(t.$slots,`leading`,{modelValue:e,open:n,ui:F.value},()=>[A(k)&&A(re)?(I(),D(Ne,{key:0,name:A(re),"data-slot":`leadingIcon`,class:H(F.value.leadingIcon({class:A(o).ui?.leadingIcon}))},null,8,[`name`,`class`])):A(o).avatar?(I(),D(Ke,U({key:1,size:A(o).ui?.itemLeadingAvatarSize||F.value.itemLeadingAvatarSize()},A(o).avatar,{"data-slot":`itemLeadingAvatar`,class:F.value.itemLeadingAvatar({class:A(o).ui?.itemLeadingAvatar})}),null,16,[`size`,`class`])):w(``,!0)])],2)):w(``,!0),(I(!0),N(J,null,de([_e(e)],r=>(I(),D(A(os),{key:r,"data-slot":r==null?`placeholder`:`value`,class:H(r==null?F.value.placeholder({class:A(o).ui?.placeholder}):F.value.value({class:A(o).ui?.value}))},{default:Y(()=>[G(t.$slots,`default`,{modelValue:e,open:n,ui:F.value},()=>[P(K(r??A(o).placeholder??`\xA0`),1)])]),_:2},1032,[`data-slot`,`class`]))),128)),A(ne)||a.trailing?(I(),N(`span`,{key:1,"data-slot":`trailing`,class:H(F.value.trailing({class:A(o).ui?.trailing}))},[G(t.$slots,`trailing`,{modelValue:e,open:n,ui:F.value},()=>[A(ae)?(I(),D(Ne,{key:0,name:A(ae),"data-slot":`trailingIcon`,class:H(F.value.trailingIcon({class:A(o).ui?.trailingIcon}))},null,8,[`name`,`class`])):w(``,!0)])],2)):w(``,!0)]),_:2},1040,[`id`,`class`,`onClick`]),O(A(rs),Xe(Je(A(l))),{default:Y(()=>[O(A($e),null,{default:Y(()=>[O(A(qo),U({"data-slot":`content`,class:F.value.content({class:A(o).ui?.content})},d.value,{onCloseAutoFocus:Ce}),{default:Y(()=>[G(t.$slots,`content-top`),(I(),D(ce(me.value?A(ss):`div`),{ref_key:`viewportRef`,ref:we,role:`presentation`,"data-slot":`viewport`,class:H(F.value.viewport({class:A(o).ui?.viewport}))},{default:Y(()=>[(I(!0),N(J,null,de(he.value,(e,n)=>(I(),D(A(Xo),{key:`group-${n}`,"data-slot":`group`,class:H(F.value.group({class:A(o).ui?.group}))},{default:Y(()=>[(I(!0),N(J,null,de(e,(e,r)=>(I(),N(J,{key:`group-${n}-${r}`},[B(e)&&e.type===`label`?(I(),D(A(ns),{key:0,"data-slot":`label`,class:H(F.value.label({class:[A(o).ui?.label,e.ui?.label,e.class]}))},{default:Y(()=>[P(K(A(Re)(e,A(o).labelKey)),1)]),_:2},1032,[`class`])):B(e)&&e.type===`separator`?(I(),D(A(is),{key:1,"data-slot":`separator`,class:H(F.value.separator({class:[A(o).ui?.separator,e.ui?.separator,e.class]}))},null,8,[`class`])):(I(),D(A($o),{key:2,"data-slot":`item`,class:H(F.value.item({class:[A(o).ui?.item,B(e)&&e.ui?.item,B(e)&&e.class]})),disabled:B(e)&&e.disabled,value:B(e)?A(Re)(e,A(o).valueKey):e,onSelect:t=>B(e)&&e.onSelect?.(t)},{default:Y(()=>[G(t.$slots,`item`,{item:e,index:r,ui:F.value},()=>[G(t.$slots,`item-leading`,{item:e,index:r,ui:F.value},()=>[B(e)&&e.icon?(I(),D(Ne,{key:0,name:e.icon,"data-slot":`itemLeadingIcon`,class:H(F.value.itemLeadingIcon({class:[A(o).ui?.itemLeadingIcon,e.ui?.itemLeadingIcon]}))},null,8,[`name`,`class`])):B(e)&&e.avatar?(I(),D(Ke,U({key:1,size:e.ui?.itemLeadingAvatarSize||A(o).ui?.itemLeadingAvatarSize||F.value.itemLeadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":`itemLeadingAvatar`,class:F.value.itemLeadingAvatar({class:[A(o).ui?.itemLeadingAvatar,e.ui?.itemLeadingAvatar]})}),null,16,[`size`,`class`])):B(e)&&e.chip?(I(),D(Ve,U({key:2,size:e.ui?.itemLeadingChipSize||A(o).ui?.itemLeadingChipSize||F.value.itemLeadingChipSize(),inset:``,standalone:``},{ref_for:!0},e.chip,{"data-slot":`itemLeadingChip`,class:F.value.itemLeadingChip({class:[A(o).ui?.itemLeadingChip,e.ui?.itemLeadingChip]})}),null,16,[`size`,`class`])):w(``,!0)]),L(`span`,{"data-slot":`itemWrapper`,class:H(F.value.itemWrapper({class:[A(o).ui?.itemWrapper,B(e)&&e.ui?.itemWrapper]}))},[O(A(ts),{"data-slot":`itemLabel`,class:H(F.value.itemLabel({class:[A(o).ui?.itemLabel,B(e)&&e.ui?.itemLabel]}))},{default:Y(()=>[G(t.$slots,`item-label`,{item:e,index:r},()=>[P(K(B(e)?A(Re)(e,A(o).labelKey):e),1)])]),_:2},1032,[`class`]),B(e)&&(A(Re)(e,A(o).descriptionKey)||a[`item-description`])?(I(),N(`span`,{key:0,"data-slot":`itemDescription`,class:H(F.value.itemDescription({class:[A(o).ui?.itemDescription,B(e)&&e.ui?.itemDescription]}))},[G(t.$slots,`item-description`,{item:e,index:r},()=>[P(K(A(Re)(e,A(o).descriptionKey)),1)])],2)):w(``,!0)],2),L(`span`,{"data-slot":`itemTrailing`,class:H(F.value.itemTrailing({class:[A(o).ui?.itemTrailing,B(e)&&e.ui?.itemTrailing]}))},[G(t.$slots,`item-trailing`,{item:e,index:r,ui:F.value}),O(A(es),{"as-child":``},{default:Y(()=>[O(Ne,{name:A(o).selectedIcon||A(s).ui.icons.check,"data-slot":`itemTrailingIcon`,class:H(F.value.itemTrailingIcon({class:[A(o).ui?.itemTrailingIcon,B(e)&&e.ui?.itemTrailingIcon]}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:2},1032,[`class`,`disabled`,`value`,`onSelect`]))],64))),128))]),_:2},1032,[`class`]))),128))]),_:3},8,[`class`])),G(t.$slots,`content-bottom`),A(o).arrow?(I(),D(A(Wo),U({key:0},f.value,{"data-slot":`arrow`,class:F.value.arrow({class:A(o).ui?.arrow})}),null,16,[`class`])):w(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`name`,`autocomplete`,`disabled`,`default-value`,`model-value`]))}}),Zs={class:`min-h-screen bg-default`},Qs={class:`sticky top-0 z-10 border-b border-default bg-default/80 backdrop-blur-md`},$s={class:`mx-auto flex max-w-6xl items-center gap-6 px-4 py-3`,"aria-label":`Main`},ec={class:`ml-auto flex items-center gap-2 text-sm`},tc={key:1,class:`font-mono text-xs text-muted`},nc={class:`mx-auto max-w-6xl px-4 py-8`},rc=j({__name:`App`,setup(e){let t=[{label:`Entries`,to:`/`},{label:`Reviews`,to:`/reviews`},{label:`Tokens`,to:`/tokens`},{label:`People`,to:`/people`}],n=S(),r=E(null);z(()=>n.matched.length>0&&n.meta.open!==!0,async e=>{e&&r.value===null&&(r.value=await Qe.admin(`me`))},{immediate:!0});let i=X({get:()=>r.value?.site,set:e=>{e!==void 0&&e!==r.value?.site&&Ue.switchSite(e,`/admin/`)}}),a=X(()=>(r.value?.sites??[]).map(e=>({label:`${e.site} (${e.role})`,value:e.site})));return(e,n)=>{let o=b(`RouterLink`),s=Xs,c=Js,l=b(`RouterView`),u=Ks;return I(),D(u,null,{default:Y(()=>[L(`div`,Zs,[L(`header`,Qs,[L(`nav`,$s,[O(o,{to:`/`,class:`inline-flex items-center gap-2.5`},{default:Y(()=>[...n[1]||=[L(`svg`,{viewBox:`0 0 32 32`,class:`size-6`,"aria-hidden":`true`},[L(`rect`,{width:`32`,height:`32`,rx:`8`,class:`fill-(--ui-bg-accented)`}),L(`path`,{d:`M9 8v16M23 8v16M9 16h14`,class:`stroke-primary`,"stroke-width":`3`,"stroke-linecap":`round`,fill:`none`})],-1),L(`span`,{class:`font-semibold tracking-tight text-highlighted`},`Hollware`,-1),L(`span`,{class:`rounded-full border border-default px-2 py-0.5 font-mono text-[11px] text-muted`},`admin`,-1)]]),_:1}),(I(),N(J,null,de(t,e=>O(o,{key:e.to,to:e.to,class:`text-sm text-muted transition-colors hover:text-highlighted`,"active-class":`text-highlighted font-medium`},{default:Y(()=>[P(K(e.label),1)]),_:2},1032,[`to`])),64)),L(`div`,ec,[r.value===null?w(``,!0):(I(),N(J,{key:0},[a.value.length>1?(I(),D(s,{key:0,modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,items:a.value,"aria-label":`Site`,class:`w-48`},null,8,[`modelValue`,`items`])):(I(),N(`span`,tc,K(r.value.site),1))],64)),O(c,{color:`neutral`,variant:`ghost`})])])]),L(`main`,nc,[O(l)])])]),_:1})}}}),ic=`modulepreload`,ac=function(e){return`/admin/`+e},oc={},sc=function(e){return e.pathname.endsWith(`.css`)},cc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=ac(t,n);let r=s(t);if(r.href in oc)return;oc[r.href]=!0;let i=sc(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:ic,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};Ze({prefix:`lucide`,icons:{"arrow-down":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m7-7l-7 7l-7-7"/>`},"arrow-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m12 19l-7-7l7-7m7 7H5"/>`},"arrow-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7l7 7l-7 7"/>`},"arrow-up":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 12l7-7l7 7m-7 7V5"/>`},"arrow-up-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h10v10M7 17L17 7"/>`},check:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"/>`},"chevron-down":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>`},"chevron-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 18l-6-6l6-6"/>`},"chevron-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 18l6-6l-6-6"/>`},"chevron-up":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m18 15l-6-6l-6 6"/>`},"chevrons-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m11 17l-5-5l5-5m7 10l-5-5l5-5"/>`},"chevrons-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 17l5-5l-5-5m7 10l5-5l-5-5"/>`},"circle-alert":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 8v4m0 4h.01"/></g>`},"circle-check":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m16 9l-5.5 5.5L8 12"/></g>`},"circle-x":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m15 9l-6 6m0-6l6 6"/></g>`},copy:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></g>`},"copy-check":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 15l2 2l4-4"/><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></g>`},ellipsis:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></g>`},eye:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></g>`},"eye-off":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20"/></g>`},file:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/></g>`},folder:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>`},"folder-open":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>`},"grip-vertical":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/></g>`},hash:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 9h16M4 15h16M10 3L8 21m8-18l-2 18"/>`},info:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4m0-4h.01"/></g>`},lightbulb:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/>`},"loader-circle":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 1 1-6.219-8.56"/>`},menu:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 5h16M4 12h16M4 19h16"/>`},minus:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14"/>`},monitor:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="20" height="14" x="2" y="3" rx="2"/><path d="M8 21h8m-4-4v4"/></g>`},moon:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/>`},"panel-left-close":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m7-6l-3-3l3-3"/></g>`},"panel-left-open":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m5-12l3 3l-3 3"/></g>`},plus:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7v14"/>`},"rotate-ccw":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></g>`},search:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m21 21l-4.34-4.34"/><circle cx="11" cy="11" r="8"/></g>`},square:{body:`<rect width="18" height="18" x="3" y="3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" rx="2"/>`},star:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"/>`},sun:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></g>`},terminal:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19h8M4 17l6-6l-6-6"/>`},"triangle-alert":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01"/>`},upload:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>`},x:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>`}},lastModified:1791785319,width:24,height:24});var lc=`/admin`;try{window.localStorage.getItem(`vueuse-color-scheme`)===null&&window.localStorage.setItem(`vueuse-color-scheme`,`dark`)}catch{}var uc=_e({history:T(`${lc}/`),routes:[{path:`/`,component:()=>cc(()=>import(`./Entries-D96RLWvp.js`),__vite__mapDeps([0,1,2]))},{path:`/entries/new`,component:()=>cc(()=>import(`./NewEntry-BCzC5zGj.js`),__vite__mapDeps([3,4,1,5,6,7,2,8]))},{path:`/entries/:collection/:locale/:slug`,component:()=>cc(()=>import(`./Entry-6kv0JvQV.js`),__vite__mapDeps([9,1,10,4,2,7])),props:!0},{path:`/reviews`,component:()=>cc(()=>import(`./Reviews-Bdmt1KTy.js`),__vite__mapDeps([11,4,1,10,5,2,7]))},{path:`/tokens`,component:()=>cc(()=>import(`./Tokens-CuGAn29Z.js`),__vite__mapDeps([12,4,1,5,6,2,8]))},{path:`/people`,component:()=>cc(()=>import(`./People-DNpDqK2w.js`),__vite__mapDeps([13,4,1,5,6,2]))},{path:`/callback`,component:()=>cc(()=>import(`./Callback-DcSS94_p.js`),__vite__mapDeps([14,1,6])),meta:{open:!0}}]});uc.beforeEach(async e=>e.meta.open===!0||await Ue.token()!==null||(await Ue.signIn(`${lc}${e.fullPath}`),!1)),v(rc).use(uc).use(qn).mount(`#app`);export{qr as a,Er as c,ir as d,Zn as f,Yr as i,br as l,Is as n,Gr as o,Nn as p,Ps as r,Vr as s,Xs as t,hr as u};
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Hollware</title>
7
- <script type="module" crossorigin src="/admin/assets/index-kJu8z9GB.js"></script>
7
+ <script type="module" crossorigin src="/admin/assets/index-BSMWmzxi.js"></script>
8
8
  <link rel="modulepreload" crossorigin href="/admin/assets/session-BTjYVlu_.js">
9
9
  <link rel="modulepreload" crossorigin href="/admin/assets/VisuallyHidden-CFCnkG2O.js">
10
10
  <link rel="stylesheet" crossorigin href="/admin/assets/index-5cXYb8Gp.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hollware/admin",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "The Hollware admin, prebuilt for the user's Worker.",
5
5
  "homepage": "https://hollware.com",
6
6
  "bugs": {
@@ -38,7 +38,7 @@
38
38
  "@comark/vue": "0.7.0",
39
39
  "@fontsource-variable/geist": "5.3.0",
40
40
  "@fontsource-variable/geist-mono": "5.3.0",
41
- "@hollware/core": "0.5.0",
41
+ "@hollware/core": "0.6.0",
42
42
  "@iconify-json/lucide": "1.2.143",
43
43
  "@iconify/utils": "3.1.7",
44
44
  "@iconify/vue": "5.0.3",
@@ -1 +0,0 @@
1
- import{v as e}from"./VisuallyHidden-CFCnkG2O.js";import{Dt as t,Er as n,Et as r,Ft as i,Gn as a,Ir as o,Kn as s,L as c,Lt as l,M as u,N as d,On as f,Ot as p,Sn as m,Tt as h,Xn as g,ai as _,cn as v,f as y,fn as b,g as x,gn as S,h as C,i as w,kn as T,l as ee,li as E,ln as te,mt as D,p as ne,r as re,t as O,tr as k,v as ie,wt as A,xr as ae,y as oe}from"./session-BTjYVlu_.js";import{$ as j,C as M,E as se,K as ce,N as le,T as ue,Y as de,Z as fe,at as N,et as pe,it as P,mt as me,n as he,nt as ge,rt as F,t as _e,tt as I,w as ve,x as L}from"./editor-theme-47BGjyMs.js";import{t as R}from"./FormField-Ba9y2pmW.js";import{n as ye}from"./index-kJu8z9GB.js";import{t as be}from"./VerdictList-6AHZk7yQ.js";var xe={slots:{root:`relative inline-flex items-center`,base:[`w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute start-0 flex items-start`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute end-0 flex items-start`,trailingIcon:`shrink-0 text-dimmed`},variants:{fieldGroup:{horizontal:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none`},vertical:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none`}},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2 inset-y-1`,trailing:`pe-2 inset-y-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5 inset-y-1.5`,trailing:`pe-2.5 inset-y-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5 inset-y-1.5`,trailing:`pe-2.5 inset-y-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3 inset-y-2`,trailing:`pe-3 inset-y-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3 inset-y-2`,trailing:`pe-3 inset-y-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},autoresize:{true:{base:`resize-none`}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`}},Se=[`id`,`value`,`name`,`rows`,`placeholder`,`disabled`,`required`],Ce=Object.assign({inheritAttrs:!1},{__name:`Textarea`,props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},autoresize:{type:Boolean,required:!1},autoresizeDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},rows:{type:Number,required:!1,default:3},maxrows:{type:Number,required:!1,default:0},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`update:modelValue`,`blur`,`change`],setup(n,{expose:i,emit:l}){let f=n,b=l,w=a(),E=ie(`textarea`,f),D=e(E,`modelValue`,b,{defaultValue:E.defaultValue}),re=c(),{emitFormFocus:O,emitFormBlur:j,emitFormInput:M,emitFormChange:se,size:ce,color:le,id:ue,name:de,highlight:fe,disabled:N,ariaAttrs:pe}=ee(f,{deferInputValidation:!0}),P=A(()=>le.value??E.color),me=A(()=>fe.value??E.highlight),he=A(()=>ce.value??E.size),ge=A(()=>N.value??E.disabled),{isLeading:F,isTrailing:_e,leadingIconName:I,trailingIconName:ve}=y(E),L=A(()=>x({extend:xe,...re.ui?.textarea||{}})({color:P.value,variant:E.variant,size:he.value,loading:E.loading,highlight:me.value,fixed:E.fixed,autoresize:E.autoresize,leading:F.value||!!E.avatar||!!w.leading,trailing:_e.value||!!w.trailing})),R=s(`textareaRef`);function ye(e){E.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),E.modelModifiers?.number&&(e=d(e)),E.modelModifiers?.nullable&&u(e)&&(e=null),E.modelModifiers?.optional&&!E.modelModifiers?.nullable&&e!==null&&u(e)&&(e=void 0),D.value=e,M()}function be(e){V(),E.modelModifiers?.lazy||ye(e.target.value)}function Ce(e){let t=e.target.value;E.modelModifiers?.lazy&&ye(t),E.modelModifiers?.trim&&(e.target.value=t.trim()),se(),b(`change`,e)}function z(e){j(),b(`blur`,e)}function B(){E.autofocus&&R.value?.focus()}function V(){if(E.autoresize&&R.value){R.value.rows=E.rows;let e=R.value.style.overflow;R.value.style.overflow=`hidden`;let t=window.getComputedStyle(R.value),n=Number.parseInt(t.paddingTop)+Number.parseInt(t.paddingBottom),r=Number.parseInt(t.lineHeight),{scrollHeight:i}=R.value,a=(i-n)/r;a>E.rows&&(R.value.rows=E.maxrows?Math.min(a,E.maxrows):a),R.value.style.overflow=e}}g(D,()=>{te(V)});let H,U;return S(()=>{H=setTimeout(()=>{B()},E.autofocusDelay),U=setTimeout(async()=>{await te(),V()},E.autoresizeDelay)}),ae(()=>{clearTimeout(H),clearTimeout(U)}),i({textareaRef:R,autoResize:V}),(e,n)=>(m(),r(o(oe),{as:o(E).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:_(L.value.root({class:[o(E).ui?.root,o(E).class]}))},{default:k(()=>[h(`textarea`,v({id:o(ue),ref_key:`textareaRef`,ref:R,value:o(D),name:o(de),rows:o(E).rows,placeholder:o(E).placeholder,class:L.value.base({class:o(E).ui?.base}),disabled:ge.value,required:o(E).required},{...e.$attrs,...o(pe)},{"data-slot":`base`,onInput:be,onBlur:z,onChange:Ce,onFocus:n[0]||=(...e)=>o(O)&&o(O)(...e)}),null,16,Se),T(e.$slots,`default`,{ui:L.value}),o(F)||o(E).avatar||w.leading?(m(),p(`span`,{key:0,"data-slot":`leading`,class:_(L.value.leading({class:o(E).ui?.leading}))},[T(e.$slots,`leading`,{ui:L.value},()=>[o(F)&&o(I)?(m(),r(C,{key:0,name:o(I),"data-slot":`leadingIcon`,class:_(L.value.leadingIcon({class:o(E).ui?.leadingIcon}))},null,8,[`name`,`class`])):o(E).avatar?(m(),r(ne,v({key:1,size:o(E).ui?.leadingAvatarSize||L.value.leadingAvatarSize()},o(E).avatar,{"data-slot":`leadingAvatar`,class:L.value.leadingAvatar({class:o(E).ui?.leadingAvatar})}),null,16,[`size`,`class`])):t(``,!0)])],2)):t(``,!0),o(_e)||w.trailing?(m(),p(`span`,{key:1,"data-slot":`trailing`,class:_(L.value.trailing({class:o(E).ui?.trailing}))},[T(e.$slots,`trailing`,{ui:L.value},()=>[o(ve)?(m(),r(C,{key:0,name:o(ve),"data-slot":`trailingIcon`,class:_(L.value.trailingIcon({class:o(E).ui?.trailingIcon}))},null,8,[`name`,`class`])):t(``,!0)])],2)):t(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),z=class e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}offset(t,n=t){return new e(this.fromA+t,this.toA+t,this.fromB+n,this.toB+n)}};function B(e,t,n,r,i,a){if(e==r)return[];let o=Ae(e,t,n,r,i,a),s=je(e,t+o,n,r,i+o,a);t+=o,n-=s,i+=o,a-=s;let c=n-t,l=a-i;if(!c||!l)return[new z(t,n,i,a)];if(c>l){let o=e.slice(t,n).indexOf(r.slice(i,a));if(o>-1)return[new z(t,t+o,i,i),new z(t+o+l,n,a,a)]}else if(l>c){let o=r.slice(i,a).indexOf(e.slice(t,n));if(o>-1)return[new z(t,t,i,i+o),new z(n,n,i+o+c,a)]}if(c==1||l==1)return[new z(t,n,i,a)];let u=Ne(e,t,n,r,i,a);if(u){let[o,s,c]=u;return B(e,t,o,r,i,s).concat(B(e,o+c,n,r,s+c,a))}return we(e,t,n,r,i,a)}var V=1e9,H=0,U=!1;function we(e,t,n,r,i,a){let o=n-t,s=a-i;if(V<1e9&&Math.min(o,s)>V*16||H>0&&Date.now()>H)return Math.min(o,s)>V*64?[new z(t,n,i,a)]:Pe(e,t,n,r,i,a);let c=Math.ceil((o+s)/2);Ee.reset(c),De.reset(c);let l=(n,a)=>e.charCodeAt(t+n)==r.charCodeAt(i+a),u=(t,i)=>e.charCodeAt(n-t-1)==r.charCodeAt(a-i-1),d=(o-s)%2==0?null:De,f=d?null:Ee;for(let p=0;p<c;p++){if(p>V||H>0&&!(p&63)&&Date.now()>H)return Pe(e,t,n,r,i,a);let m=Ee.advance(p,o,s,c,d,!1,l)||De.advance(p,o,s,c,f,!0,u);if(m)return Oe(e,t,n,t+m[0],r,i,a,i+m[1])}return[new z(t,n,i,a)]}var Te=class{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let e=0;e<this.len;e++)this.vec[e]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,t,n,r,i,a,o){for(let s=-e+this.start;s<=e-this.end;s+=2){let c=r+s,l=s==-e||s!=e&&this.vec[c-1]<this.vec[c+1]?this.vec[c+1]:this.vec[c-1]+1,u=l-s;for(;l<t&&u<n&&o(l,u);)l++,u++;if(this.vec[c]=l,l>t)this.end+=2;else if(u>n)this.start+=2;else if(i){let e=r+(t-n)-s;if(e>=0&&e<this.len&&i.vec[e]!=-1){if(a){let n=i.vec[e];if(n>=t-l)return[n,r+n-e]}else{let n=t-i.vec[e];if(l>=n)return[l,u]}}}}return null}},Ee=new Te,De=new Te;function Oe(e,t,n,r,i,a,o,s){let c=!1;return!G(e,r)&&++r==n&&(c=!0),!G(i,s)&&++s==o&&(c=!0),c?[new z(t,n,a,o)]:B(e,t,r,i,a,s).concat(B(e,r,n,i,s,o))}function ke(e,t){let n=1,r=Math.min(e,t);for(;n<r;)n<<=1;return n}function Ae(e,t,n,r,i,a){if(t==n||t==a||e.charCodeAt(t)!=r.charCodeAt(i))return 0;let o=ke(n-t,a-i);for(let s=t,c=i;;){let i=s+o,l=c+o;if(i>n||l>a||e.slice(s,i)!=r.slice(c,l)){if(o==1)return s-t-+!G(e,s);o>>=1}else if(i==n||l==a)return i-t;else s=i,c=l}}function je(e,t,n,r,i,a){if(t==n||i==a||e.charCodeAt(n-1)!=r.charCodeAt(a-1))return 0;let o=ke(n-t,a-i);for(let s=n,c=a;;){let a=s-o,l=c-o;if(a<t||l<i||e.slice(a,s)!=r.slice(l,c)){if(o==1)return n-s-+!G(e,s);o>>=1}else if(a==t||l==i)return n-a;else s=a,c=l}}function Me(e,t,n,r,i,a,o,s){let c=r.slice(i,a),l=null;for(;;){if(l||o<s)return l;for(let s=t+o;;){G(e,s)||s++;let u=s+o;if(G(e,u)||(u+=u==s+1?1:-1),u>=n)break;let d=e.slice(s,u),f=-1;for(;(f=c.indexOf(d,f+1))!=-1;){let o=Ae(e,u,n,r,i+f+d.length,a),c=je(e,t,s,r,i,i+f),p=d.length+o+c;(!l||l[2]<p)&&(l=[s-c,i+f-c,p])}s=u}if(s<0)return l;o>>=1}}function Ne(e,t,n,r,i,a){let o=n-t,s=a-i;if(o<s){let o=Ne(r,i,a,e,t,n);return o&&[o[1],o[0],o[2]]}return o<4||s*2<o?null:Me(e,t,n,r,i,a,Math.floor(o/4),-1)}function Pe(e,t,n,r,i,a){U=!0;let o=n-t,s=a-i,c;if(o<s){let s=Me(r,i,a,e,t,n,Math.floor(o/6),50);c=s&&[s[1],s[0],s[2]]}else c=Me(e,t,n,r,i,a,Math.floor(s/6),50);if(!c)return[new z(t,n,i,a)];let[l,u,d]=c;return B(e,t,l,r,i,u).concat(B(e,l+d,n,r,u+d,a))}function Fe(e,t){for(let n=1;n<e.length;n++){let r=e[n-1],i=e[n];r.toA>i.fromA-t&&r.toB>i.fromB-t&&(e[n-1]=new z(r.fromA,i.toA,r.fromB,i.toB),e.splice(n--,1))}}function Ie(e,t,n){for(;;){Fe(n,1);let r=!1;for(let i=0;i<n.length;i++){let a=n[i],o,s;(o=Ae(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new z(a.fromA+o,a.toA,a.fromB+o,a.toB)),(s=je(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new z(a.fromA,a.toA-s,a.fromB,a.toB-s));let c=a.toA-a.fromA,l=a.toB-a.fromB;if(c&&l)continue;let u=a.fromA-(i?n[i-1].toA:0),d=(i<n.length-1?n[i+1].fromA:e.length)-a.toA;if(!u||!d)continue;let f=c?e.slice(a.fromA,a.toA):t.slice(a.fromB,a.toB);u<=f.length&&e.slice(a.fromA-u,a.fromA)==f.slice(f.length-u)?(n[i]=new z(a.fromA-u,a.toA-u,a.fromB-u,a.toB-u),r=!0):d<=f.length&&e.slice(a.toA,a.toA+d)==f.slice(0,d)&&(n[i]=new z(a.fromA+d,a.toA+d,a.fromB+d,a.toB+d),r=!0)}if(!r)break}return n}function Le(e,t,n){for(let r=0,i=0;i<e.length;i++){let a=e[i],o=a.toA-a.fromA,s=a.toB-a.fromB;if(o&&s||o>3||s>3){let c=i==e.length-1?t.length:e[i+1].fromA,l=a.fromA-r,u=c-a.toA,d=Ue(t,a.fromA,l),f=He(t,a.toA,u),p=a.fromA-d,m=f-a.toA;if((!o||!s)&&p&&m){let l=Math.max(o,s),[u,h,g]=o?[t,a.fromA,a.toA]:[n,a.fromB,a.toB];l>p&&t.slice(d,a.fromA)==u.slice(g-p,g)?(a=e[i]=new z(d,d+o,a.fromB-p,a.toB-p),d=a.fromA,f=He(t,a.toA,c-a.toA)):l>m&&t.slice(a.toA,f)==u.slice(h,h+m)&&(a=e[i]=new z(f-o,f,a.fromB+m,a.toB+m),f=a.toA,d=Ue(t,a.fromA,a.fromA-r)),p=a.fromA-d,m=f-a.toA}if(p||m)a=e[i]=new z(a.fromA-p,a.toA+m,a.fromB-p,a.toB+m);else if(!o){let t=Ge(n,a.fromB,a.toB),r,o=t<0?-1:We(n,a.toB,a.fromB);t>-1&&(r=t-a.fromB)<=u&&n.slice(a.fromB,t)==n.slice(a.toB,a.toB+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toB-o)<=l&&n.slice(a.fromB-r,a.fromB)==n.slice(o,a.toB)&&(a=e[i]=a.offset(-r))}else if(!s){let n=Ge(t,a.fromA,a.toA),r,o=n<0?-1:We(t,a.toA,a.fromA);n>-1&&(r=n-a.fromA)<=u&&t.slice(a.fromA,n)==t.slice(a.toA,a.toA+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toA-o)<=l&&t.slice(a.fromA-r,a.fromA)==t.slice(o,a.toA)&&(a=e[i]=a.offset(-r))}}r=a.toA}return Fe(e,3),e}var W;try{W=RegExp(`[\\p{Alphabetic}\\p{Number}]`,`u`)}catch{}function Re(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function ze(e,t){if(t==e.length)return 0;let n=e.charCodeAt(t);return n<192?+!!Re(n):W?!Ke(n)||t==e.length-1?+!!W.test(String.fromCharCode(n)):W.test(e.slice(t,t+2))?2:0:0}function Be(e,t){if(!t)return 0;let n=e.charCodeAt(t-1);return n<192?+!!Re(n):W?!qe(n)||t==1?+!!W.test(String.fromCharCode(n)):W.test(e.slice(t-2,t))?2:0:0}var Ve=8;function He(e,t,n){if(t==e.length||!Be(e,t))return t;for(let r=t,i=t+n,a=0;a<Ve;a++){let t=ze(e,r);if(!t||r+t>i)return r;r+=t}return t}function Ue(e,t,n){if(!t||!ze(e,t))return t;for(let r=t,i=t-n,a=0;a<Ve;a++){let t=Be(e,r);if(!t||r-t<i)return r;r-=t}return t}function We(e,t,n){for(;t!=n;t--)if(e.charCodeAt(t-1)==10)return t;return-1}function Ge(e,t,n){for(;t!=n;t++)if(e.charCodeAt(t)==10)return t;return-1}var Ke=e=>e>=55296&&e<=56319,qe=e=>e>=56320&&e<=57343;function G(e,t){return!t||t==e.length||!Ke(e.charCodeAt(t-1))||!qe(e.charCodeAt(t))}function Je(e,t,n){let r=n?.override;return r?r(e,t):(V=(n?.scanLimit??1e9)>>1,H=n?.timeout?Date.now()+n.timeout:0,U=!1,Ie(e,t,B(e,0,e.length,t,0,t.length)))}function Ye(){return!U}function Xe(e,t,n){return Le(Je(e,t,n),e,t)}var K=pe.define({combine:e=>e[0]}),Ze=P.define(),Qe=pe.define(),q=N.define({create(e){return null},update(e,t){for(let n of t.effects)n.is(Ze)&&(e=n.value);for(let n of t.state.facet(Qe))e=n(e,t);return e}}),J=class e{constructor(e,t,n,r,i,a=!0){this.changes=e,this.fromA=t,this.toA=n,this.fromB=r,this.toB=i,this.precise=a}offset(t,n){return t||n?new e(this.changes,this.fromA+t,this.toA+t,this.fromB+n,this.toB+n,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,t,n){return tt(Xe(e.toString(),t.toString(),n),e,t,0,0,Ye())}static updateA(e,t,n,r,i){return it(rt(e,r,!0,n.length),e,t,n,i)}static updateB(e,t,n,r,i){return it(rt(e,r,!1,t.length),e,t,n,i)}};function $e(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.to==e&&a.to==t&&e<n.length&&t<r.length?[e+1,t+1]:[i.from,a.from]}function et(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.from==e&&a.from==t?[e,t]:[i.to+1,a.to+1]}function tt(e,t,n,r,i,a){let o=[];for(let s=0;s<e.length;s++){let c=e[s],[l,u]=$e(c.fromA+r,c.fromB+i,t,n),[d,f]=et(c.toA+r,c.toB+i,t,n),p=[c.offset(-l+r,-u+i)];for(;s<e.length-1;){let a=e[s+1],[o,c]=$e(a.fromA+r,a.fromB+i,t,n);if(o>d+1&&c>f+1)break;p.push(a.offset(-l+r,-u+i)),[d,f]=et(a.toA+r,a.toB+i,t,n),s++}o.push(new J(p,l,Math.max(l,d),u,Math.max(u,f),a))}return o}var Y=1e3;function nt(e,t,n,r){let i=0,a=e.length;for(;;){if(i==a){let r=0,a=0;i&&({toA:r,toB:a}=e[i-1]);let o=t-(n?r:a);return[r+o,a+o]}let o=i+a>>1,s=e[o],[c,l]=n?[s.fromA,s.toA]:[s.fromB,s.toB];if(c>t)a=o;else if(l<=t)i=o+1;else return r?[s.fromA,s.fromB]:[s.toA,s.toB]}}function rt(e,t,n,r){let i=[];return t.iterChangedRanges((a,o,s,c)=>{let l=0,u=n?t.length:r,d=0,f=n?r:t.length;a>Y&&([l,d]=nt(e,a-Y,n,!0)),o<t.length-Y&&([u,f]=nt(e,o+Y,n,!1));let p=c-s-(o-a),m,[h,g]=n?[p,0]:[0,p];i.length&&(m=i[i.length-1]).toA>=l?i[i.length-1]={fromA:m.fromA,fromB:m.fromB,toA:u,toB:f,diffA:m.diffA+h,diffB:m.diffB+g}:i.push({fromA:l,toA:u,fromB:d,toB:f,diffA:h,diffB:g})}),i}function it(e,t,n,r,i){if(!e.length)return t;let a=[];for(let o=0,s=0,c=0,l=0;;o++){let u=o==e.length?null:e[o],d=u?u.fromA+s:n.length,f=u?u.fromB+c:r.length;for(;l<t.length;){let e=t[l];if(u&&(e.toA+s>d||e.toB+c>f))break;a.push(e.offset(s,c)),l++}if(!u)break;let p=u.toA+s+u.diffA,m=u.toB+c+u.diffB,h=Xe(n.sliceString(d,p),r.sliceString(f,m),i);for(let e of tt(h,n,r,d,f,Ye()))a.push(e);for(s+=u.diffA,c+=u.diffB;l<t.length;){let e=t[l];if(e.fromA+s>p&&e.fromB+c>m)break;l++}}return a}var at={scanLimit:500},ot=ue.fromClass(class{constructor(e){({deco:this.deco,gutter:this.gutter}=ht(e))}update(e){(e.docChanged||e.viewportChanged||st(e.startState,e.state)||ct(e.startState,e.state))&&({deco:this.deco,gutter:this.gutter}=ht(e.view))}},{decorations:e=>e.deco}),X=I.low(le({class:`cm-changeGutter`,markers:e=>e.plugin(ot)?.gutter||ge.empty}));function st(e,t){return e.field(q,!1)!=t.field(q,!1)}function ct(e,t){return e.facet(K)!=t.facet(K)}var lt=L.line({class:`cm-changedLine`}),ut=L.mark({class:`cm-changedText`}),dt=L.mark({tagName:`ins`,class:`cm-insertedLine`}),ft=L.mark({tagName:`del`,class:`cm-deletedLine`}),pt=new class extends ve{constructor(){super(...arguments),this.elementClass=`cm-changedLineGutter`}};function mt(e,t,n,r,i,a){let o=n?e.fromA:e.fromB,s=n?e.toA:e.toB,c=0;if(o!=s){i.add(o,o,lt),i.add(o,s,n?ft:dt),a&&a.add(o,o,pt);for(let l=t.iterRange(o,s-1),u=o;!l.next().done;){if(l.lineBreak){u++,i.add(u,u,lt),a&&a.add(u,u,pt);continue}let t=u+l.value.length;if(r)for(;c<e.changes.length;){let r=e.changes[c],a=o+(n?r.fromA:r.fromB),s=o+(n?r.toA:r.toB),l=Math.max(u,a),d=Math.min(t,s);if(l<d&&i.add(l,d,ut),s<t)c++;else break}u=t}}}function ht(e){let t=e.state.field(q),{side:n,highlightChanges:r,markGutter:i,overrideChunk:a}=e.state.facet(K),o=n==`a`,s=new F,c=i?new F:null,{from:l,to:u}=e.viewport;for(let n of t){if((o?n.fromA:n.fromB)>=u)break;(o?n.toA:n.toB)>l&&(!a||!a(e.state,n,s,c))&&mt(n,e.state.doc,o,r,s,c)}return{deco:s.finish(),gutter:c&&c.finish()}}var Z=class extends se{constructor(e){super(),this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement(`div`);return e.className=`cm-mergeSpacer`,e.style.height=this.height+`px`,e}updateDOM(e){return e.style.height=this.height+`px`,!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},Q=P.define({map:(e,t)=>e.map(t)}),$=N.define({create:()=>L.none,update:(e,t)=>{for(let e of t.effects)if(e.is(Q))return e.value;return e.map(t.changes)},provide:e=>M.decorations.from(e)}),gt=.01;function _t(e,t){if(e.size!=t.size)return!1;let n=e.iter(),r=t.iter();for(;n.value;){if(n.from!=r.from||Math.abs(n.value.spec.widget.height-r.value.spec.widget.height)>1)return!1;n.next(),r.next()}return!0}function vt(e,t,n){let r=new F,i=new F,a=e.state.field($).iter(),o=t.state.field($).iter(),s=0,c=0,l=0,u=0,d=e.viewport,f=t.viewport;for(let p=0;;p++){let m=p<n.length?n[p]:null,h=m?m.fromA:e.state.doc.length,g=m?m.fromB:t.state.doc.length;if(s<h){let n=e.lineBlockAt(s).top+l-(t.lineBlockAt(c).top+u);n<-.01?(l-=n,r.add(s,s,L.widget({widget:new Z(-n),block:!0,side:-1}))):n>gt&&(u+=n,i.add(c,c,L.widget({widget:new Z(n),block:!0,side:-1})))}if(h>s+1e3&&s<d.from&&h>d.from&&c<f.from&&g>f.from){let e=Math.min(d.from-s,f.from-c);s+=e,c+=e,p--}else if(m)s=m.toA,c=m.toB;else break;for(;a.value&&a.from<s;)l-=a.value.spec.widget.height,a.next();for(;o.value&&o.from<c;)u-=o.value.spec.widget.height,o.next()}for(;a.value;)l-=a.value.spec.widget.height,a.next();for(;o.value;)u-=o.value.spec.widget.height,o.next();let p=e.contentHeight+l-(t.contentHeight+u);p<gt?r.add(e.state.doc.length,e.state.doc.length,L.widget({widget:new Z(-p),block:!0,side:1})):p>gt&&i.add(t.state.doc.length,t.state.doc.length,L.widget({widget:new Z(p),block:!0,side:1}));let m=r.finish(),h=i.finish();_t(m,e.state.field($))||e.dispatch({effects:Q.of(m)}),_t(h,t.state.field($))||t.dispatch({effects:Q.of(h)})}var yt=P.define({map:(e,t)=>t.mapPos(e)}),bt=class extends se{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement(`div`);return t.className=`cm-collapsedLines`,t.textContent=e.state.phrase(`$ unchanged lines`,this.lines),t.addEventListener(`click`,t=>{let n=e.posAtDOM(t.target);e.dispatch({effects:yt.of(n)});let{side:r,sibling:i}=e.state.facet(K);i&&i().dispatch({effects:yt.of(xt(n,e.state.field(q),r==`a`))})}),t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return`collapsed-unchanged-code`}};function xt(e,t,n){let r=0,i=0;for(let a=0;;a++){let o=a<t.length?t[a]:null;if(!o||(n?o.fromA:o.fromB)>=e)return i+(e-r);[r,i]=n?[o.toA,o.toB]:[o.toB,o.toA]}}var St=N.define({create(e){return L.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(yt)&&(e=e.update({filter:e=>e!=n.value}));if(e.size&&t.state.field(q)!=t.startState.field(q,!1)){let n=t.state.facet(K).side==`a`,r=[];for(let i of t.state.field(q))e.between(n?i.fromA:i.fromB,n?i.toA:i.toB,e=>{r.push(e)});r.length&&(e=e.update({filter:e=>r.indexOf(e)<0}))}return e},provide:e=>M.decorations.from(e)});function Ct({margin:e=3,minSize:t=4}){return St.init(n=>wt(n,e,t))}function wt(e,t,n){let r=new F,i=e.facet(K).side==`a`,a=e.field(q),o=1;for(let s=0;;s++){let c=s<a.length?a[s]:null,l=s?o+t:1,u=c?e.doc.lineAt(i?c.fromA:c.fromB).number-1-t:e.doc.lines,d=u-l+1;if(d>=n&&r.add(e.doc.line(l).from,e.doc.line(u).to,L.replace({widget:new bt(d),block:!0})),!c)break;o=e.doc.lineAt(Math.min(e.doc.length,i?c.toA:c.toB)).number}return r.finish()}var Tt=M.styleModule.of(new ce({".cm-mergeView":{overflowY:`auto`},".cm-mergeViewEditors":{display:`flex`,alignItems:`stretch`},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:`hidden`},".cm-merge-revert":{width:`1.6em`,flexGrow:0,flexShrink:0,position:`relative`},".cm-merge-revert button":{position:`absolute`,display:`block`,width:`100%`,boxSizing:`border-box`,textAlign:`center`,background:`none`,border:`none`,font:`inherit`,cursor:`pointer`}})),Et=M.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:`auto !important`,overflowY:`visible !important`},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:`rgba(160, 128, 100, .08)`},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:`rgba(100, 160, 128, .08)`},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat`},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat`},"&light.cm-merge-b .cm-changedText":{background:`linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat`},"&dark.cm-merge-b .cm-changedText":{background:`linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat`},"&.cm-merge-b .cm-deletedText":{background:`#ff000033`},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:`none`},".cm-deletedChunk":{paddingLeft:`6px`,"& .cm-chunkButtons":{position:`absolute`,insetInlineEnd:`5px`},"& button":{border:`none`,cursor:`pointer`,color:`white`,margin:`0 2px`,borderRadius:`3px`,"&[name=accept]":{background:`#2a2`},"&[name=reject]":{background:`#d43`}}},".cm-collapsedLines":{padding:`5px 5px 5px 10px`,cursor:`pointer`,"&:before":{content:`"⦚"`,marginInlineEnd:`7px`},"&:after":{content:`"⦚"`,marginInlineStart:`7px`}},"&light .cm-collapsedLines":{color:`#444`,background:`linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)`},"&dark .cm-collapsedLines":{color:`#ddd`,background:`linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)`},".cm-changeGutter":{width:`3px`,paddingLeft:`1px`},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:`#e43`},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:`#fa9`},"&light.cm-merge-b .cm-changedLineGutter":{background:`#2b2`},"&dark.cm-merge-b .cm-changedLineGutter":{background:`#8f8`},".cm-inlineChangedLineGutter":{background:`#75d`}}),Dt=new fe,Ot=new fe,kt=class{constructor(e){this.revertDOM=null,this.revertToA=!1,this.revertToLeft=!1,this.measuring=-1,this.diffConf=e.diffConfig||at;let t=[I.low(ot),Et,Tt,$,M.updateListener.of(e=>{this.measuring<0&&(e.heightChanged||e.viewportChanged)&&!e.transactions.some(e=>e.effects.some(e=>e.is(Q)))&&this.measure()})],n=[K.of({side:`a`,sibling:()=>this.b,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&n.push(X);let r=j.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],M.editorAttributes.of({class:`cm-merge-a`}),Ot.of(n),t]}),i=[K.of({side:`b`,sibling:()=>this.a,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&i.push(X);let a=j.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],M.editorAttributes.of({class:`cm-merge-b`}),Ot.of(i),t]});this.chunks=J.build(r.doc,a.doc,this.diffConf);let o=[q.init(()=>this.chunks),Dt.of(e.collapseUnchanged?Ct(e.collapseUnchanged):[])];r=r.update({effects:P.appendConfig.of(o)}).state,a=a.update({effects:P.appendConfig.of(o)}).state,this.dom=document.createElement(`div`),this.dom.className=`cm-mergeView`,this.editorDOM=this.dom.appendChild(document.createElement(`div`)),this.editorDOM.className=`cm-mergeViewEditors`;let s=e.orientation||`a-b`,c=document.createElement(`div`);c.className=`cm-mergeViewEditor`;let l=document.createElement(`div`);l.className=`cm-mergeViewEditor`,this.editorDOM.appendChild(s==`a-b`?c:l),this.editorDOM.appendChild(s==`a-b`?l:c),this.a=new M({state:r,parent:c,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.a)}),this.b=new M({state:a,parent:l,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.b)}),this.setupRevertControls(!!e.revertControls,e.revertControls==`b-to-a`,e.renderRevertControl),e.parent&&e.parent.appendChild(this.dom),this.scheduleMeasure()}dispatch(e,t){if(e.some(e=>e.docChanged)){let n=e[e.length-1],r=e.reduce((e,t)=>e.compose(t.changes),de.empty(e[0].startState.doc.length));this.chunks=t==this.a?J.updateA(this.chunks,n.newDoc,this.b.state.doc,r,this.diffConf):J.updateB(this.chunks,this.a.state.doc,n.newDoc,r,this.diffConf),t.update([...e,n.state.update({effects:Ze.of(this.chunks)})]);let i=t==this.a?this.b:this.a;i.update([i.state.update({effects:Ze.of(this.chunks)})]),this.scheduleMeasure()}else t.update(e)}reconfigure(e){if(`diffConfig`in e&&(this.diffConf=e.diffConfig),`orientation`in e){let t=e.orientation!=`b-a`;if(t!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let e=this.a.dom.parentNode,n=this.b.dom.parentNode;e.remove(),n.remove(),this.editorDOM.insertBefore(t?e:n,this.editorDOM.firstChild),this.editorDOM.appendChild(t?n:e),this.revertToLeft=!this.revertToLeft,this.revertDOM&&(this.revertDOM.textContent=``)}}if(`revertControls`in e||`renderRevertControl`in e){let t=!!this.revertDOM,n=this.revertToA,r=this.renderRevert;`revertControls`in e&&(t=!!e.revertControls,n=e.revertControls==`b-to-a`),`renderRevertControl`in e&&(r=e.renderRevertControl),this.setupRevertControls(t,n,r)}let t=`highlightChanges`in e,n=`gutter`in e,r=`collapseUnchanged`in e;if(t||n||r){let i=[],a=[];if(t||n){let r=this.a.state.facet(K),o=n?e.gutter!==!1:r.markGutter,s=t?e.highlightChanges!==!1:r.highlightChanges;i.push(Ot.reconfigure([K.of({side:`a`,sibling:()=>this.b,highlightChanges:s,markGutter:o}),o?X:[]])),a.push(Ot.reconfigure([K.of({side:`b`,sibling:()=>this.a,highlightChanges:s,markGutter:o}),o?X:[]]))}if(r){let t=Dt.reconfigure(e.collapseUnchanged?Ct(e.collapseUnchanged):[]);i.push(t),a.push(t)}this.a.dispatch({effects:i}),this.b.dispatch({effects:a})}this.scheduleMeasure()}setupRevertControls(e,t,n){this.revertToA=t,this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode),this.renderRevert=n,!e&&this.revertDOM?(this.revertDOM.remove(),this.revertDOM=null):e&&!this.revertDOM?(this.revertDOM=this.editorDOM.insertBefore(document.createElement(`div`),this.editorDOM.firstChild.nextSibling),this.revertDOM.addEventListener(`mousedown`,e=>this.revertClicked(e)),this.revertDOM.className=`cm-merge-revert`):this.revertDOM&&(this.revertDOM.textContent=``)}scheduleMeasure(){if(this.measuring<0){let e=this.dom.ownerDocument.defaultView||window;this.measuring=e.requestAnimationFrame(()=>{this.measuring=-1,this.measure()})}}measure(){vt(this.a,this.b,this.chunks),this.revertDOM&&this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild,n=this.a.viewport,r=this.b.viewport;for(let i=0;i<this.chunks.length;i++){let a=this.chunks[i];if(a.fromA>n.to||a.fromB>r.to)break;if(a.fromA<n.from||a.fromB<r.from)continue;let o=this.a.lineBlockAt(a.fromA).top+`px`;for(;t&&+t.dataset.chunk<i;)t=At(t);t&&t.dataset.chunk==String(i)?(t.style.top!=o&&(t.style.top=o),t=t.nextSibling):e.insertBefore(this.renderRevertButton(o,i),t)}for(;t;)t=At(t)}renderRevertButton(e,t){let n;if(this.renderRevert)n=this.renderRevert();else{n=document.createElement(`button`);let e=this.a.state.phrase(`Revert this chunk`);n.setAttribute(`aria-label`,e),n.setAttribute(`title`,e),n.textContent=this.revertToLeft?`⇜`:`⇝`}return n.style.top=e,n.setAttribute(`data-chunk`,String(t)),n}revertClicked(e){let t=e.target,n;for(;t&&t.parentNode!=this.revertDOM;)t=t.parentNode;if(t&&(n=this.chunks[t.dataset.chunk])){let[t,r,i,a,o,s]=this.revertToA?[this.b,this.a,n.fromB,n.toB,n.fromA,n.toA]:[this.a,this.b,n.fromA,n.toA,n.fromB,n.toB],c=t.state.sliceDoc(i,Math.max(i,a-1));i!=a&&s<=r.state.doc.length&&(c+=t.state.lineBreak),r.dispatch({changes:{from:o,to:Math.min(r.state.doc.length,s),insert:c},userEvent:`revert`}),e.preventDefault()}}destroy(){this.a.destroy(),this.b.destroy(),this.measuring>-1&&(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring),this.dom.remove()}};function At(e){let t=e.nextSibling;return e.remove(),t}var jt=l({__name:`DiffView`,props:{original:{},modified:{}},setup(e){let t=e,r=n(null),i=null,a=[he(),_e,M.lineWrapping,M.editable.of(!1),j.readOnly.of(!0)];function o(){i?.destroy(),r.value!==null&&(i=new kt({a:{doc:t.original,extensions:[a,M.contentAttributes.of({"aria-label":`The Markdown that is live`})]},b:{doc:t.modified,extensions:[a,M.contentAttributes.of({"aria-label":`The Markdown asked for`})]},parent:r.value,collapseUnchanged:{margin:3,minSize:6}}))}return S(o),b(()=>i?.destroy()),g(()=>[t.original,t.modified],o),(e,t)=>(m(),p(`div`,{ref_key:`host`,ref:r,class:`overflow-hidden rounded border border-default text-sm`},null,512))}}),Mt={class:`grid gap-6 lg:grid-cols-[18rem_1fr]`},Nt={"aria-label":`Pending reviews`,class:`space-y-2`},Pt={key:0,class:`text-muted`},Ft=[`onClick`],It={class:`font-medium`},Lt={class:`block text-muted`},Rt={key:0,"aria-label":`The review`,class:`space-y-4`},zt={class:`text-sm text-muted`},Bt={class:`flex flex-wrap items-end gap-3`},Vt={class:`space-y-2 text-sm`},Ht={class:`font-mono text-xs text-muted`},Ut={class:`text-muted`},Wt=l({__name:`Reviews`,setup(e){let r=ye(),a=n([]),o=n(null),s=n(``),c=n(``),l=n(null),u=n(``),d=n(!1),g=n([]),v=n(!1);async function y(){a.value=(await O.call(`list_reviews`,{})).reviews,o.value!==null&&!a.value.some(e=>e.id===o.value?.id)&&(o.value=null)}S(y);async function b(e){o.value=e,u.value=``;let t={collection:e.entry.collection,locale:e.entry.locale,slug:e.entry.slug},[n,r]=await Promise.all([O.call(`get_entry`,{...t,published:!0}),O.call(`get_entry`,t)]);s.value=n.entry?.markdown??``,c.value=r.entry?.markdown??``,l.value=r.entry?.verdict??null}function x(e,t){let n=e instanceof re?`${e.message} ${e.fix}`:String(e);r.add({title:t,description:n,color:`error`})}async function C(e=[]){if(o.value!==null){d.value=!0,v.value=!1;try{let t=await O.call(`approve_review`,{id:o.value.id,acknowledgeWarnings:e.map(({contract:e,path:t})=>({contract:e,path:t}))});switch(t.outcome){case`published`:r.add({title:`Approved and published`,color:`success`}),await y();break;case`needs_acknowledgement`:g.value=t.verdict?.warnings??[],v.value=!0;break;case`blocked`:l.value=t.verdict??l.value,r.add({title:`Blocked`,description:`The contracts report errors now.`,color:`error`});break;case`not_pending`:case`not_found`:r.add({title:`This review is closed`,color:`warning`}),await y()}}catch(e){x(e,`Not approved`)}finally{d.value=!1}}}async function T(){if(o.value!==null&&u.value.trim()!==``){d.value=!0;try{let e=await O.call(`request_changes`,{id:o.value.id,note:u.value});r.add({title:e.outcome===`changes_requested`?`Changes requested`:`This review is closed`,color:e.outcome===`changes_requested`?`success`:`warning`}),await y()}catch(e){x(e,`Not sent`)}finally{d.value=!1}}}return(e,n)=>{let r=w,y=Ce,x=R,S=me;return m(),p(`div`,Mt,[h(`section`,Nt,[n[5]||=h(`h1`,{class:`text-xl font-semibold`},`Reviews`,-1),a.value.length===0?(m(),p(`p`,Pt,`Nothing waits for review.`)):t(``,!0),(m(!0),p(D,null,f(a.value,e=>(m(),p(`button`,{key:e.id,type:`button`,class:_([`block w-full rounded border p-2 text-left text-sm`,o.value?.id===e.id?`border-primary`:`border-default`]),onClick:t=>b(e)},[h(`span`,It,E(e.entry.frontmatter.title??e.entry.slug),1),h(`span`,Lt,E(e.entry.locale)+` · asked by `+E(e.requestedByName??e.requestedBy)+` · `+E(new Date(e.requestedAt).toLocaleString()),1)],10,Ft))),128))]),o.value===null?t(``,!0):(m(),p(`section`,Rt,[h(`p`,zt,` On the left what is live (`+E(s.value===``?`nothing yet`:`the published revision`)+`), on the right the revision asked for. `,1),i(jt,{original:s.value,modified:c.value},null,8,[`original`,`modified`]),i(be,{verdict:l.value},null,8,[`verdict`]),h(`div`,Bt,[i(r,{label:`Approve and publish`,color:`success`,loading:d.value,onClick:n[0]||=e=>C()},null,8,[`loading`]),i(x,{label:`What to change`,class:`min-w-64 flex-1`},{default:k(()=>[i(y,{modelValue:u.value,"onUpdate:modelValue":n[1]||=e=>u.value=e,class:`w-full`,rows:2},null,8,[`modelValue`])]),_:1}),i(r,{label:`Ask for changes`,color:`warning`,variant:`outline`,loading:d.value,disabled:u.value.trim()===``,onClick:T},null,8,[`loading`,`disabled`])])])),i(S,{open:v.value,"onUpdate:open":n[4]||=e=>v.value=e,title:`Approve with these warnings?`},{body:k(()=>[h(`ul`,Vt,[(m(!0),p(D,null,f(g.value,(e,t)=>(m(),p(`li`,{key:t},[h(`span`,Ht,E(e.contract),1),h(`p`,null,E(e.message),1),h(`p`,Ut,E(e.fix),1)]))),128))])]),footer:k(()=>[i(r,{label:`Cancel`,variant:`ghost`,onClick:n[2]||=e=>v.value=!1}),i(r,{label:`Approve anyway`,color:`warning`,onClick:n[3]||=e=>C(g.value)})]),_:1},8,[`open`])])}}});export{Wt as default};