usage-board 0.0.2 → 1.0.1

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,3 +1,3 @@
1
- import{u as de,_ as Z,a as ee,b as ce,c as me,d as pe,e as fe,f as ve,g as $,h as Q,i as Me,j as Re,k as Ue,l as Ee,m as Ne,n as $e,o as Oe,p as je}from"./CBiuWPro.js";import{h as te,r as A,i as g,j as Fe,k as ge,l as H,m as De,n as Be,p as ae,q as qe,s as Ve,v as K,x as ye,y as _e,z as ze,f as k,A as G,B as Le,C as X,D as Ke,E as He,F as Ge,S as le,G as We,H as be,o as T,g as S,w as i,b as u,I as r,P as j,J as N,K as he,L as ne,M as Ye,N as Je,O as oe,Q as Qe,R as Xe,T as B,U as q,V,W as Ze,X as et,a as R,c as O,t as h,Y as tt,d as v,Z as F,$ as D,a0 as Te,a1 as at,a2 as nt,a3 as ot,a4 as st,a5 as lt}from"./DRIVB4-c.js";function re(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}const[rt]=te("ConfigProvider");function we(e){const t=rt({dir:A("ltr")});return g(()=>e?.value||t.dir?.value||"ltr")}function it(e){const t=H(),o=t?.type.emits,l={};return o?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),o?.forEach(d=>{l[Fe(ge(d))]=(...p)=>e(d,...p)}),l}function W(){const e=H(),t=A(),o=g(()=>l());De(()=>{o.value!==l()&&Be(t)});function l(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:ae(t)}const d=Object.assign({},e.exposed),p={};for(const s in e.props)Object.defineProperty(p,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(d).length>0)for(const s in d)Object.defineProperty(p,s,{enumerable:!0,configurable:!0,get:()=>d[s]});Object.defineProperty(p,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=p;function c(s){if(t.value=s,!!s&&(Object.defineProperty(p,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.hasOwn(s,"$el"))){const m=s.$.exposed,a=Object.assign({},p);for(const n in m)Object.defineProperty(a,n,{enumerable:!0,configurable:!0,get:()=>m[n]});e.exposed=a}}return{forwardRef:c,currentRef:t,currentElement:o}}function Ce(e){const t=H(),o=Object.keys(t?.type.props??{}).reduce((d,p)=>{const c=(t?.type.props[p]).default;return c!==void 0&&(d[p]=c),d},{}),l=qe(e);return g(()=>{const d={},p=t?.vnode.props??{};return Object.keys(p).forEach(c=>{d[ge(c)]=p[c]}),Object.keys({...o,...d}).reduce((c,s)=>(l.value[s]!==void 0&&(c[s]=l.value[s]),c),{})})}function ut(e,t){const o=Ce(e),l=t?it(t):{};return g(()=>({...o.value,...l}))}function dt(e,t){const o=A(e);function l(p){return t[o.value][p]??o.value}return{state:o,dispatch:p=>{o.value=l(p)}}}function ct(e,t){const o=A({}),l=A("none"),d=A(e),p=e.value?"mounted":"unmounted";let c;const s=t.value?.ownerDocument.defaultView??Ve,{state:m,dispatch:a}=dt(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),n=y=>{if(ze){const w=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(w)}};K(e,async(y,w)=>{const M=w!==y;if(await _e(),M){const C=l.value,U=L(t.value);y?(a("MOUNT"),n("enter"),U==="none"&&n("after-enter")):U==="none"||U==="undefined"||o.value?.display==="none"?(a("UNMOUNT"),n("leave"),n("after-leave")):w&&C!==U?(a("ANIMATION_OUT"),n("leave")):(a("UNMOUNT"),n("after-leave"))}},{immediate:!0});const f=y=>{const w=L(t.value),M=w.includes(CSS.escape(y.animationName)),C=m.value==="mounted"?"enter":"leave";if(y.target===t.value&&M&&(n(`after-${C}`),a("ANIMATION_END"),!d.value)){const U=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",c=s?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=U)})}y.target===t.value&&w==="none"&&a("ANIMATION_END")},b=y=>{y.target===t.value&&(l.value=L(t.value))},_=K(t,(y,w)=>{y?(o.value=getComputedStyle(y),y.addEventListener("animationstart",b),y.addEventListener("animationcancel",f),y.addEventListener("animationend",f)):(a("ANIMATION_END"),c!==void 0&&s?.clearTimeout(c),w?.removeEventListener("animationstart",b),w?.removeEventListener("animationcancel",f),w?.removeEventListener("animationend",f))},{immediate:!0}),I=K(m,()=>{const y=L(t.value);l.value=m.value==="mounted"?y:"none"});return ye(()=>{_(),I()}),{isPresent:g(()=>["mounted","unmountSuspended"].includes(m.value))}}function L(e){return e&&getComputedStyle(e).animationName||"none"}var mt=k({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:o}){const{present:l,forceMount:d}=G(e),p=A(),{isPresent:c}=ct(l,p);o({present:c});let s=t.default({present:c.value});s=Le(s||[]);const m=H();if(s&&s?.length>1){const a=m?.parent?.type.name?`<${m.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${a}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(n=>` - ${n}`).join(`
1
+ import{u as de,_ as Z,a as ee,b as ce,c as me,d as pe,e as fe,f as ve,g as $,h as Q,i as Me,j as Re,k as Ue,l as Ee,m as Ne,n as $e,o as Oe,p as je}from"./BNf7fR7M.js";import{h as te,r as A,i as g,j as Fe,k as ge,l as H,m as De,n as Be,p as ae,q as qe,s as Ve,v as K,x as ye,y as _e,z as ze,f as k,A as G,B as Le,C as X,D as Ke,E as He,F as Ge,S as le,G as We,H as be,o as T,g as S,w as i,b as u,I as r,P as j,J as N,K as he,L as ne,M as Ye,N as Je,O as oe,Q as Qe,R as Xe,T as B,U as q,V,W as Ze,X as et,a as R,c as O,t as h,Y as tt,d as v,Z as F,$ as D,a0 as Te,a1 as at,a2 as nt,a3 as ot,a4 as st,a5 as lt}from"./DoxGa6D0.js";function re(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}const[rt]=te("ConfigProvider");function we(e){const t=rt({dir:A("ltr")});return g(()=>e?.value||t.dir?.value||"ltr")}function it(e){const t=H(),o=t?.type.emits,l={};return o?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),o?.forEach(d=>{l[Fe(ge(d))]=(...p)=>e(d,...p)}),l}function W(){const e=H(),t=A(),o=g(()=>l());De(()=>{o.value!==l()&&Be(t)});function l(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:ae(t)}const d=Object.assign({},e.exposed),p={};for(const s in e.props)Object.defineProperty(p,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(d).length>0)for(const s in d)Object.defineProperty(p,s,{enumerable:!0,configurable:!0,get:()=>d[s]});Object.defineProperty(p,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=p;function c(s){if(t.value=s,!!s&&(Object.defineProperty(p,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.hasOwn(s,"$el"))){const m=s.$.exposed,a=Object.assign({},p);for(const n in m)Object.defineProperty(a,n,{enumerable:!0,configurable:!0,get:()=>m[n]});e.exposed=a}}return{forwardRef:c,currentRef:t,currentElement:o}}function Ce(e){const t=H(),o=Object.keys(t?.type.props??{}).reduce((d,p)=>{const c=(t?.type.props[p]).default;return c!==void 0&&(d[p]=c),d},{}),l=qe(e);return g(()=>{const d={},p=t?.vnode.props??{};return Object.keys(p).forEach(c=>{d[ge(c)]=p[c]}),Object.keys({...o,...d}).reduce((c,s)=>(l.value[s]!==void 0&&(c[s]=l.value[s]),c),{})})}function ut(e,t){const o=Ce(e),l=t?it(t):{};return g(()=>({...o.value,...l}))}function dt(e,t){const o=A(e);function l(p){return t[o.value][p]??o.value}return{state:o,dispatch:p=>{o.value=l(p)}}}function ct(e,t){const o=A({}),l=A("none"),d=A(e),p=e.value?"mounted":"unmounted";let c;const s=t.value?.ownerDocument.defaultView??Ve,{state:m,dispatch:a}=dt(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),n=y=>{if(ze){const w=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(w)}};K(e,async(y,w)=>{const M=w!==y;if(await _e(),M){const C=l.value,U=L(t.value);y?(a("MOUNT"),n("enter"),U==="none"&&n("after-enter")):U==="none"||U==="undefined"||o.value?.display==="none"?(a("UNMOUNT"),n("leave"),n("after-leave")):w&&C!==U?(a("ANIMATION_OUT"),n("leave")):(a("UNMOUNT"),n("after-leave"))}},{immediate:!0});const f=y=>{const w=L(t.value),M=w.includes(CSS.escape(y.animationName)),C=m.value==="mounted"?"enter":"leave";if(y.target===t.value&&M&&(n(`after-${C}`),a("ANIMATION_END"),!d.value)){const U=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",c=s?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=U)})}y.target===t.value&&w==="none"&&a("ANIMATION_END")},b=y=>{y.target===t.value&&(l.value=L(t.value))},_=K(t,(y,w)=>{y?(o.value=getComputedStyle(y),y.addEventListener("animationstart",b),y.addEventListener("animationcancel",f),y.addEventListener("animationend",f)):(a("ANIMATION_END"),c!==void 0&&s?.clearTimeout(c),w?.removeEventListener("animationstart",b),w?.removeEventListener("animationcancel",f),w?.removeEventListener("animationend",f))},{immediate:!0}),I=K(m,()=>{const y=L(t.value);l.value=m.value==="mounted"?y:"none"});return ye(()=>{_(),I()}),{isPresent:g(()=>["mounted","unmountSuspended"].includes(m.value))}}function L(e){return e&&getComputedStyle(e).animationName||"none"}var mt=k({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:o}){const{present:l,forceMount:d}=G(e),p=A(),{isPresent:c}=ct(l,p);o({present:c});let s=t.default({present:c.value});s=Le(s||[]);const m=H();if(s&&s?.length>1){const a=m?.parent?.type.name?`<${m.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${a}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(n=>` - ${n}`).join(`
2
2
  `)].join(`
3
3
  `))}return()=>d.value||l.value||c.value?X(t.default({present:c.value})[0],{ref:a=>{const n=ae(a);return typeof n?.hasAttribute>"u"||(n?.hasAttribute("data-reka-popper-content-wrapper")?p.value=n.firstElementChild:p.value=n),n}}):null}});function ie(){const e=A(),t=g(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:ae(e));return{primitiveElement:e,currentElement:t}}const ue="data-reka-collection-item";function xe(e={}){const{key:t="",isProvider:o=!1}=e,l=`${t}CollectionProvider`;let d;if(o){const n=A(new Map);d={collectionRef:A(),itemMap:n},We(l,d)}else d=Ke(l);const p=(n=!1)=>{const f=d.collectionRef.value;if(!f)return[];const b=Array.from(f.querySelectorAll(`[${ue}]`)),I=Array.from(d.itemMap.value.values()).sort((E,y)=>b.indexOf(E.ref)-b.indexOf(y.ref));return n?I:I.filter(E=>E.ref.dataset.disabled!=="")},c=k({name:"CollectionSlot",inheritAttrs:!1,setup(n,{slots:f,attrs:b}){const{primitiveElement:_,currentElement:I}=ie();return K(I,()=>{d.collectionRef.value=I.value}),()=>X(le,{ref:_,...b},f)}}),s=k({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(n,{slots:f,attrs:b}){const{primitiveElement:_,currentElement:I}=ie();return He(E=>{if(I.value){const y=Ge(I.value);d.itemMap.value.set(y,{ref:I.value,value:n.value}),E(()=>d.itemMap.value.delete(y))}}),()=>X(le,{...b,[ue]:"",ref:_},f)}}),m=g(()=>Array.from(d.itemMap.value.values())),a=g(()=>d.itemMap.value.size);return{getItems:p,reactiveItems:m,itemMapSize:a,CollectionSlot:c,CollectionItem:s}}const pt="rovingFocusGroup.onEntryFocus",ft={bubbles:!1,cancelable:!0},vt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yt(e,t,o){const l=gt(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return vt[l]}function Se(e,t=!1){const o=re();for(const l of e)if(l===o||(l.focus({preventScroll:t}),re()!==o))return}function _t(e,t){return e.map((o,l)=>e[(t+l)%e.length])}const[bt,ht]=te("RovingFocusGroup");var Tt=k({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:o}){const l=e,d=o,{loop:p,orientation:c,dir:s}=G(l),m=we(s),a=be(l,"currentTabStopId",d,{defaultValue:l.defaultCurrentTabStopId,passive:l.currentTabStopId===void 0}),n=A(!1),f=A(!1),b=A(0),{getItems:_,CollectionSlot:I}=xe({isProvider:!0});function E(w){const M=!f.value;if(w.currentTarget&&w.target===w.currentTarget&&M&&!n.value){const C=new CustomEvent(pt,ft);if(w.currentTarget.dispatchEvent(C),d("entryFocus",C),!C.defaultPrevented){const U=_().map(x=>x.ref).filter(x=>x.dataset.disabled!==""),z=U.find(x=>x.getAttribute("data-active")===""),Y=U.find(x=>x.getAttribute("data-highlighted")===""),J=U.find(x=>x.id===a.value),P=[z,Y,J,...U].filter(Boolean);Se(P,l.preventScrollOnEntryFocus)}}f.value=!1}function y(){setTimeout(()=>{f.value=!1},1)}return t({getItems:_}),ht({loop:p,dir:m,orientation:c,currentTabStopId:a,onItemFocus:w=>{a.value=w},onItemShiftTab:()=>{n.value=!0},onFocusableItemAdd:()=>{b.value++},onFocusableItemRemove:()=>{b.value--}}),(w,M)=>(T(),S(r(I),null,{default:i(()=>[u(r(j),{tabindex:n.value||b.value===0?-1:0,"data-orientation":r(c),as:w.as,"as-child":w.asChild,dir:r(m),style:{outline:"none"},onMousedown:M[0]||(M[0]=C=>f.value=!0),onMouseup:y,onFocus:E,onBlur:M[1]||(M[1]=C=>n.value=!1)},{default:i(()=>[N(w.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),wt=Tt,Ct=k({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,o=bt(),l=de(),d=g(()=>t.tabStopId||l),p=g(()=>o.currentTabStopId.value===d.value),{getItems:c,CollectionItem:s}=xe();he(()=>{t.focusable&&o.onFocusableItemAdd()}),ye(()=>{t.focusable&&o.onFocusableItemRemove()});function m(a){if(a.key==="Tab"&&a.shiftKey){o.onItemShiftTab();return}if(a.target!==a.currentTarget)return;const n=yt(a,o.orientation.value,o.dir.value);if(n!==void 0){if(a.metaKey||a.ctrlKey||a.altKey||!t.allowShiftKey&&a.shiftKey)return;a.preventDefault();let f=[...c().map(b=>b.ref).filter(b=>b.dataset.disabled!=="")];if(n==="last")f.reverse();else if(n==="prev"||n==="next"){n==="prev"&&f.reverse();const b=f.indexOf(a.currentTarget);f=o.loop.value?_t(f,b+1):f.slice(b+1)}_e(()=>Se(f))}}return(a,n)=>(T(),S(r(s),null,{default:i(()=>[u(r(j),{tabindex:p.value?0:-1,"data-orientation":r(o).orientation.value,"data-active":a.active?"":void 0,"data-disabled":a.focusable?void 0:"",as:a.as,"as-child":a.asChild,onMousedown:n[0]||(n[0]=f=>{a.focusable?r(o).onItemFocus(d.value):f.preventDefault()}),onFocus:n[1]||(n[1]=f=>r(o).onItemFocus(d.value)),onKeydown:m},{default:i(()=>[N(a.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),xt=Ct;const[se,St]=te("TabsRoot");var kt=k({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,{orientation:d,unmountOnHide:p,dir:c}=G(o),s=we(c);W();const m=be(o,"modelValue",l,{defaultValue:o.defaultValue,passive:o.modelValue===void 0}),a=A(),n=ne(new Set);return St({modelValue:m,changeModelValue:f=>{m.value=f},orientation:d,dir:s,unmountOnHide:p,activationMode:o.activationMode,baseId:de(void 0,"reka-tabs"),tabsList:a,contentIds:n,registerContent:f=>{n.value=new Set([...n.value,f])},unregisterContent:f=>{const b=new Set(n.value);b.delete(f),n.value=b}}),(f,b)=>(T(),S(r(j),{dir:r(s),"data-orientation":r(d),"as-child":f.asChild,as:f.as},{default:i(()=>[N(f.$slots,"default",{modelValue:r(m)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),It=kt;function ke(e,t){return`${e}-trigger-${t}`}function Ie(e,t){return`${e}-content-${t}`}var Pt=k({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:o}=W(),l=se(),d=g(()=>ke(l.baseId,t.value)),p=g(()=>Ie(l.baseId,t.value)),c=g(()=>t.value===l.modelValue.value),s=A(c.value);return he(()=>{l.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),Ye(()=>{l.unregisterContent(t.value)}),(m,a)=>(T(),S(r(mt),{present:m.forceMount||c.value,"force-mount":""},{default:i(({present:n})=>[u(r(j),{id:p.value,ref:r(o),"as-child":m.asChild,as:m.as,role:"tabpanel","data-state":c.value?"active":"inactive","data-orientation":r(l).orientation.value,"aria-labelledby":d.value,hidden:!n,tabindex:"0",style:Je({animationDuration:s.value?"0s":void 0})},{default:i(()=>[!r(l).unmountOnHide.value||n?N(m.$slots,"default",{key:0}):oe("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),At=Pt,Mt=k({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:o}=G(t),{forwardRef:l,currentElement:d}=W(),p=se();return p.tabsList=d,(c,s)=>(T(),S(r(wt),{"as-child":"",orientation:r(p).orientation.value,dir:r(p).dir.value,loop:r(o)},{default:i(()=>[u(r(j),{ref:r(l),role:"tablist","as-child":c.asChild,as:c.as,"aria-orientation":r(p).orientation.value},{default:i(()=>[N(c.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Rt=Mt,Ut=k({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:o}=W(),l=se(),d=g(()=>ke(l.baseId,t.value)),p=g(()=>l.contentIds.value.has(t.value)?Ie(l.baseId,t.value):void 0),c=g(()=>t.value===l.modelValue.value);return(s,m)=>(T(),S(r(xt),{"as-child":"",focusable:!s.disabled,active:c.value},{default:i(()=>[u(r(j),{id:d.value,ref:r(o),role:"tab",type:s.as==="button"?"button":void 0,as:s.as,"as-child":s.asChild,"aria-selected":c.value?"true":"false","aria-controls":p.value,"data-state":c.value?"active":"inactive",disabled:s.disabled,"data-disabled":s.disabled?"":void 0,"data-orientation":r(l).orientation.value,onMousedown:m[0]||(m[0]=Xe(a=>{!s.disabled&&a.ctrlKey===!1?r(l).changeModelValue(s.value):a.preventDefault()},["left"])),onKeydown:m[1]||(m[1]=Qe(a=>r(l).changeModelValue(s.value),["enter","space"])),onFocus:m[2]||(m[2]=()=>{const a=r(l).activationMode!=="manual";!c.value&&!s.disabled&&a&&r(l).changeModelValue(s.value)})},{default:i(()=>[N(s.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Et=Ut;const Nt=k({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,d=B(o,"class"),p=ut(d,l);return(c,s)=>(T(),S(r(It),q({"data-slot":"tabs"},r(p),{class:r(V)("flex flex-col gap-2",o.class)}),{default:i(m=>[N(c.$slots,"default",Ze(et(m)))]),_:3},16,["class"]))}}),$t=k({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,o=B(t,"class");return(l,d)=>(T(),S(r(At),q({"data-slot":"tabs-content",class:r(V)("flex-1 outline-none",t.class)},r(o)),{default:i(()=>[N(l.$slots,"default")]),_:3},16,["class"]))}}),Ot=k({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,o=B(t,"class");return(l,d)=>(T(),S(r(Rt),q({"data-slot":"tabs-list"},r(o),{class:r(V)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t.class)}),{default:i(()=>[N(l.$slots,"default")]),_:3},16,["class"]))}}),jt=k({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,o=B(t,"class"),l=Ce(o);return(d,p)=>(T(),S(r(Et),q({"data-slot":"tabs-trigger",class:r(V)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class)},r(l)),{default:i(()=>[N(d.$slots,"default")]),_:3},16,["class"]))}}),Ft={class:"flex items-center justify-center py-10"},Pe=k({__name:"TableEmpty",props:{class:{type:[Boolean,null,String,Object,Array]},colspan:{default:1}},setup(e){const t=e,o=B(t,"class");return(l,d)=>(T(),S(Z,null,{default:i(()=>[u(ee,q({class:r(V)("p-4 whitespace-nowrap align-middle text-sm text-foreground",t.class)},r(o)),{default:i(()=>[R("div",Ft,[N(l.$slots,"default")])]),_:3},16,["class"])]),_:3}))}}),Dt={class:"mt-4 flex flex-col gap-3 border-t pt-4 sm:flex-row sm:items-center sm:justify-between"},Bt={class:"text-sm text-muted-foreground"},qt={class:"flex items-center justify-end gap-2"},Vt={class:"flex items-center gap-1"},zt=k({name:"UsageAnalyticsPaginationFooter",__name:"PaginationFooter",props:{page:{},pageCount:{},pageSize:{},total:{}},emits:["update:page"],setup(e,{emit:t}){const o=e,l=t,d=g(()=>{const c=Math.max(1,o.page-2),s=Math.min(o.pageCount,c+4),m=Math.max(1,s-4);return Array.from({length:s-m+1},(a,n)=>m+n)}),p=g(()=>{if(o.total===0)return"No records";const c=(o.page-1)*o.pageSize+1,s=Math.min(o.page*o.pageSize,o.total);return`${c}-${s} of ${o.total}`});return(c,s)=>{const m=tt;return T(),O("div",Dt,[R("p",Bt,h(r(p)),1),R("div",qt,[u(m,{disabled:e.page<=1,size:"sm",variant:"outline",onClick:s[0]||(s[0]=a=>l("update:page",e.page-1))},{default:i(()=>[...s[2]||(s[2]=[v(" Previous ",-1)])]),_:1},8,["disabled"]),R("div",Vt,[(T(!0),O(F,null,D(r(d),a=>(T(),S(m,{key:a,variant:a===e.page?"default":"ghost",class:"tabular-nums",size:"icon-sm",onClick:n=>l("update:page",a)},{default:i(()=>[v(h(a),1)]),_:2},1032,["variant","onClick"]))),128))]),u(m,{disabled:e.page>=e.pageCount,size:"sm",variant:"outline",onClick:s[1]||(s[1]=a=>l("update:page",e.page+1))},{default:i(()=>[...s[3]||(s[3]=[v(" Next ",-1)])]),_:1},8,["disabled"])])])}}}),Ae=Object.assign(zt,{__name:"UsageAnalyticsPaginationFooter"}),Lt=k({name:"UsageAnalyticsTokenUsageTabsPanel",__name:"TokenUsageTabsPanel",props:{dailyItems:{},weeklyItems:{},monthlyItems:{},sessionItems:{},pageSize:{default:10},productName:{default:"Product"}},setup(e){const t=e,o=ne("day"),l=at({day:1,month:1,session:1,week:1}),d=[{heading:"Date",label:"Day",value:"day"},{heading:"Week",label:"Week",value:"week"},{heading:"Month",label:"Month",value:"month"},{heading:"Session ID",label:"Session",value:"session"}],p=g(()=>({day:t.dailyItems,month:t.monthlyItems,session:t.sessionItems,week:t.weeklyItems})),c=g(()=>Object.fromEntries(d.map(a=>{const n=p.value[a.value],f=Math.max(1,Math.ceil(n.length/t.pageSize)),b=Math.min(l[a.value],f),_=(b-1)*t.pageSize;return[a.value,{items:n,page:b,pageCount:f,paginatedItems:n.slice(_,_+t.pageSize)}]})));function s(a,n){const f=c.value[a].pageCount;l[a]=Math.min(f,Math.max(1,n))}function m(a){return a.length>0?a.join(", "):"None"}return(a,n)=>{const f=jt,b=Ot,_=fe,I=Z,E=pe,y=ee,w=Pe,M=ve,C=me,U=Ae,z=$t,Y=Nt,J=ce;return T(),S(J,{description:`Browse ${e.productName} token consumption by day, week, month, or session.`,icon:"lucide:table-2",title:`${e.productName} Token Usage`},{default:i(()=>[u(Y,{modelValue:r(o),"onUpdate:modelValue":n[0]||(n[0]=P=>Te(o)?o.value=P:null)},{default:i(()=>[u(b,{class:"grid w-full grid-cols-4 sm:w-fit"},{default:i(()=>[(T(),O(F,null,D(d,P=>u(f,{key:P.value,value:P.value},{default:i(()=>[v(h(P.label),1)]),_:2},1032,["value"])),64))]),_:1}),(T(),O(F,null,D(d,P=>u(z,{key:P.value,class:"mt-4",value:P.value},{default:i(()=>[u(C,null,{default:i(()=>[u(E,null,{default:i(()=>[u(I,null,{default:i(()=>[u(_,null,{default:i(()=>[v(h(P.heading),1)]),_:2},1024),u(_,null,{default:i(()=>[...n[1]||(n[1]=[v("Models",-1)])]),_:1}),u(_,null,{default:i(()=>[...n[2]||(n[2]=[v("Projects",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[3]||(n[3]=[v(" Sessions ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[4]||(n[4]=[v(" Input ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[5]||(n[5]=[v(" Output ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[6]||(n[6]=[v(" Reasoning ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[7]||(n[7]=[v(" Cache Read ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[8]||(n[8]=[v(" Total Tokens ",-1)])]),_:1}),u(_,{class:"text-right"},{default:i(()=>[...n[9]||(n[9]=[v(" Cost ",-1)])]),_:1})]),_:2},1024)]),_:2},1024),u(M,null,{default:i(()=>[(T(!0),O(F,null,D(r(c)[P.value].paginatedItems,x=>(T(),S(I,{key:x.id},{default:i(()=>[u(y,{class:"max-w-72 truncate font-medium"},{default:i(()=>[v(h(x.label),1)]),_:2},1024),u(y,null,{default:i(()=>[v(h(m(x.models)),1)]),_:2},1024),u(y,{class:"max-w-56 truncate"},{default:i(()=>[v(h(m(x.projects)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(x.sessionCount),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.inputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.outputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.reasoningOutputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.cachedInputTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(x.totalTokens)),1)]),_:2},1024),u(y,{class:"text-right tabular-nums"},{default:i(()=>[v(h(("formatCurrency"in a?a.formatCurrency:r(Q))(x.costUSD)),1)]),_:2},1024)]),_:2},1024))),128)),r(c)[P.value].items.length===0?(T(),S(w,{key:0,colspan:10},{default:i(()=>[v(" No "+h(e.productName)+" token usage found. ",1)]),_:1})):oe("",!0)]),_:2},1024)]),_:2},1024),u(U,{page:r(c)[P.value].page,"page-count":r(c)[P.value].pageCount,"page-size":e.pageSize,total:r(c)[P.value].items.length,"onUpdate:page":x=>s(P.value,x)},null,8,["page","page-count","page-size","total","onUpdate:page"])]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["description","title"])}}}),Kt=Object.assign(Lt,{__name:"UsageAnalyticsTokenUsageTabsPanel"}),Ht={class:"mb-4 grid grid-cols-1 gap-3 sm:grid-cols-3"},Gt={class:"rounded-md border px-3 py-2"},Wt={class:"mt-1 text-lg font-semibold tabular-nums"},Yt={class:"rounded-md border px-3 py-2"},Jt={class:"mt-1 text-lg font-semibold tabular-nums"},Qt={class:"rounded-md border px-3 py-2"},Xt={class:"mt-1 text-lg font-semibold tabular-nums"},Zt=k({name:"UsageAnalyticsSessionUsageTable",__name:"SessionUsageTable",props:{items:{},pageSize:{default:10},productName:{default:"Product"}},setup(e){const t=e,o=ne(1),l=g(()=>Math.max(1,Math.ceil(t.items.length/t.pageSize))),d=g(()=>{const a=(Math.min(o.value,l.value)-1)*t.pageSize;return t.items.slice(a,a+t.pageSize)}),p=g(()=>t.items.reduce((m,a)=>m+a.costUSD,0)),c=g(()=>t.items.reduce((m,a)=>m+a.tokenTotal,0));function s(m){return new Intl.DateTimeFormat("en-US",{day:"2-digit",hour:"2-digit",minute:"2-digit",month:"short"}).format(new Date(m))}return(m,a)=>{const n=fe,f=Z,b=pe,_=ee,I=Pe,E=ve,y=me,w=Ae,M=ce;return T(),S(M,{description:`Each row maps one ${e.productName} session to its session-level token consumption.`,icon:"lucide:file-json-2",title:`${e.productName} Session Statistics`},{default:i(()=>[R("div",Ht,[R("div",Gt,[a[1]||(a[1]=R("p",{class:"text-xs text-muted-foreground"}," Sessions ",-1)),R("p",Wt,h(e.items.length),1)]),R("div",Yt,[a[2]||(a[2]=R("p",{class:"text-xs text-muted-foreground"}," Tokens ",-1)),R("p",Jt,h(("formatCompactNumber"in m?m.formatCompactNumber:r(Me))(r(c))),1)]),R("div",Qt,[a[3]||(a[3]=R("p",{class:"text-xs text-muted-foreground"}," Spend ",-1)),R("p",Xt,h(("formatCurrency"in m?m.formatCurrency:r(Q))(r(p))),1)])]),u(y,null,{default:i(()=>[u(b,null,{default:i(()=>[u(f,null,{default:i(()=>[u(n,null,{default:i(()=>[...a[4]||(a[4]=[v("Session ID",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[5]||(a[5]=[v("Project",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[6]||(a[6]=[v("Thread",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[7]||(a[7]=[v("Model",-1)])]),_:1}),u(n,null,{default:i(()=>[...a[8]||(a[8]=[v("Started",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[9]||(a[9]=[v(" Duration ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[10]||(a[10]=[v(" Input ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[11]||(a[11]=[v(" Output ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[12]||(a[12]=[v(" Total Tokens ",-1)])]),_:1}),u(n,{class:"text-right"},{default:i(()=>[...a[13]||(a[13]=[v(" Cost ",-1)])]),_:1})]),_:1})]),_:1}),u(E,null,{default:i(()=>[(T(!0),O(F,null,D(r(d),C=>(T(),S(f,{key:C.sessionId},{default:i(()=>[u(_,{class:"max-w-80 truncate font-mono text-xs"},{default:i(()=>[v(h(C.sessionId),1)]),_:2},1024),u(_,{class:"font-medium"},{default:i(()=>[v(h(C.project),1)]),_:2},1024),u(_,{class:"max-w-64 truncate"},{default:i(()=>[v(h(C.threadName),1)]),_:2},1024),u(_,null,{default:i(()=>[v(h(C.model),1)]),_:2},1024),u(_,{class:"whitespace-nowrap"},{default:i(()=>[v(h(s(C.startedAt)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(C.duration),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(C.inputTokens)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(C.outputTokens)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(r($)(C.tokenTotal)),1)]),_:2},1024),u(_,{class:"text-right tabular-nums"},{default:i(()=>[v(h(("formatCurrency"in m?m.formatCurrency:r(Q))(C.costUSD)),1)]),_:2},1024)]),_:2},1024))),128)),e.items.length===0?(T(),S(I,{key:0,colspan:10},{default:i(()=>[v(" No "+h(e.productName)+" sessions found. ",1)]),_:1})):oe("",!0)]),_:1})]),_:1}),u(w,{page:r(o),"onUpdate:page":a[0]||(a[0]=C=>Te(o)?o.value=C:null),"page-count":r(l),"page-size":e.pageSize,total:e.items.length},null,8,["page","page-count","page-size","total"])]),_:1},8,["description","title"])}}}),ea=Object.assign(Zt,{__name:"UsageAnalyticsSessionUsageTable"}),ta=k({name:"DashboardTokenConsumptionDashboard",__name:"TokenConsumptionDashboard",props:{dailyRows:{},dailyTokenUsage:{},monthlyModelUsage:{},monthlyRows:{},overviewCards:{},productName:{},projectUsage:{},sessionRows:{},sessionUsage:{},weeklyRows:{}},setup(e){const t=e,o=g(()=>je(t.sessionUsage));return(l,d)=>{const p=Ue,c=Ne,s=$e,m=Oe,a=Kt,n=ea,f=Ee,b=Re;return T(),S(b,null,{default:i(()=>[u(p,{cards:e.overviewCards},null,8,["cards"]),u(f,null,{default:i(()=>[u(c,{"monthly-items":e.monthlyModelUsage,class:"md:col-span-8"},null,8,["monthly-items"]),u(s,{items:e.projectUsage,class:"md:col-span-4"},null,8,["items"]),u(m,{items:e.dailyTokenUsage,class:"md:col-span-12",title:`${e.productName} Token Heatmap`},null,8,["items","title"]),u(a,{"daily-items":r(o),"monthly-items":e.monthlyRows,"product-name":e.productName,"session-items":e.sessionRows,"weekly-items":e.weeklyRows,class:"md:col-span-12"},null,8,["daily-items","monthly-items","product-name","session-items","weekly-items"]),u(n,{items:e.sessionUsage,"product-name":e.productName,class:"md:col-span-12"},null,8,["items","product-name"])]),_:1})]),_:1})}}}),aa=Object.assign(ta,{__name:"DashboardTokenConsumptionDashboard"}),na={dailyRows:[],dailyTokenUsage:[],monthlyModelUsage:[],monthlyRows:[],overviewCards:[],projectUsage:[],sessionRows:[],sessionUsage:[],todayTopModel:null,todayTopProject:null,todayTotalCost:0,todayTotalTokens:0,weeklyRows:[]};function oa(e){const{clear:t,error:o,execute:l,payload:d,refresh:p,status:c}=nt(),s=g(()=>d.value?.[e]??na);return{clear:t,dailyRows:g(()=>s.value.dailyRows),dailyTokenUsage:g(()=>s.value.dailyTokenUsage),dashboard:s,error:o,execute:l,monthlyModelUsage:g(()=>s.value.monthlyModelUsage),monthlyRows:g(()=>s.value.monthlyRows),overviewCards:g(()=>s.value.overviewCards),projectUsage:g(()=>s.value.projectUsage),refresh:p,sessionRows:g(()=>s.value.sessionRows),sessionUsage:g(()=>s.value.sessionUsage),status:c,todayTopModel:g(()=>s.value.todayTopModel),todayTopProject:g(()=>s.value.todayTopProject),todayTotalCost:g(()=>s.value.todayTotalCost),todayTotalTokens:g(()=>s.value.todayTotalTokens),weeklyRows:g(()=>s.value.weeklyRows)}}const sa=k({name:"DashboardProductPage",__name:"ProductPage",props:{productKey:{},productName:{}},setup(e){const t=e,{dailyRows:o,dailyTokenUsage:l,monthlyModelUsage:d,monthlyRows:p,overviewCards:c,projectUsage:s,sessionRows:m,sessionUsage:a,weeklyRows:n}=oa(t.productKey);return(f,b)=>{const _=aa;return T(),S(_,{"daily-rows":r(o),"daily-token-usage":r(l),"monthly-model-usage":r(d),"monthly-rows":r(p),"overview-cards":r(c),"product-name":e.productName,"project-usage":r(s),"session-rows":r(m),"session-usage":r(a),"weekly-rows":r(n)},null,8,["daily-rows","daily-token-usage","monthly-model-usage","monthly-rows","overview-cards","product-name","project-usage","session-rows","session-usage","weekly-rows"])}}}),la=Object.assign(sa,{__name:"DashboardProductPage"}),ua=k({__name:"[product]",setup(e){const t=ot(),o=st(t.params.product);if(!o)throw lt({status:404,message:"Page not found"});return(l,d)=>{const p=la;return T(),S(p,{"product-key":r(o).payloadKey,"product-name":r(o).name},null,8,["product-key","product-name"])}}});export{ua as default};
@@ -1 +1 @@
1
- {"id":"1dd71c56-40de-4e8e-9a95-0f4dceec1121","timestamp":1776414670126}
1
+ {"id":"b9978cce-47fc-4109-96be-42c2d4ff2464","timestamp":1776674626072}
@@ -0,0 +1 @@
1
+ {"id":"b9978cce-47fc-4109-96be-42c2d4ff2464","timestamp":1776674626072,"prerendered":[]}
@@ -0,0 +1,18 @@
1
+ import { e as escapeHtml_1 } from './shared.cjs.prod.mjs';
2
+
3
+ const _messages = {
4
+ "appName": "Nuxt",
5
+ "status": 500,
6
+ "statusText": "Internal server error",
7
+ "description": "This page is temporarily unavailable.",
8
+ "refresh": "Refresh this page"
9
+ };
10
+ const template = (messages) => {
11
+ messages = {
12
+ ..._messages,
13
+ ...messages
14
+ };
15
+ return "<!DOCTYPE html><html lang=\"en\"><head><title>" + escapeHtml_1(messages.status) + " - " + escapeHtml_1(messages.statusText) + " | " + escapeHtml_1(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0\" name=\"viewport\"><script>!function(){const e=document.createElement(\"link\").relList;if(!(e&&e.supports&&e.supports(\"modulepreload\"))){for(const e of document.querySelectorAll('link[rel=\"modulepreload\"]'))r(e);new MutationObserver(e=>{for(const o of e)if(\"childList\"===o.type)for(const e of o.addedNodes)\"LINK\"===e.tagName&&\"modulepreload\"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),\"use-credentials\"===e.crossOrigin?r.credentials=\"include\":\"anonymous\"===e.crossOrigin?r.credentials=\"omit\":r.credentials=\"same-origin\",r}(e);fetch(e.href,r)}}();<\/script><style>*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:\"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.grid{display:grid}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.place-content-center{place-content:center}.overflow-hidden{overflow:hidden}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-\\[80px\\]{font-size:80px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#64748B\\]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\\:text-\\[110px\\]{font-size:110px}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}</style></head><body class=\"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide\"><div class=\"max-w-520px text-center\"><h1 class=\"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]\">" + escapeHtml_1(messages.status) + "</h1><h2 class=\"font-semibold mb-2 sm:text-3xl text-2xl\">" + escapeHtml_1(messages.statusText) + "</h2><p class=\"mb-4 px-2 text-[#64748B] text-md\">" + escapeHtml_1(messages.description) + "</p></div></body></html>";
16
+ };
17
+
18
+ export { template };
@@ -0,0 +1,279 @@
1
+ import g, { stdin, stdout } from 'node:process';
2
+ import f from 'node:readline';
3
+ import { WriteStream } from 'node:tty';
4
+
5
+ function getDefaultExportFromCjs (x) {
6
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
+ }
8
+
9
+ var src;
10
+ var hasRequiredSrc;
11
+
12
+ function requireSrc () {
13
+ if (hasRequiredSrc) return src;
14
+ hasRequiredSrc = 1;
15
+
16
+ const ESC = '\x1B';
17
+ const CSI = `${ESC}[`;
18
+ const beep = '\u0007';
19
+
20
+ const cursor = {
21
+ to(x, y) {
22
+ if (!y) return `${CSI}${x + 1}G`;
23
+ return `${CSI}${y + 1};${x + 1}H`;
24
+ },
25
+ move(x, y) {
26
+ let ret = '';
27
+
28
+ if (x < 0) ret += `${CSI}${-x}D`;
29
+ else if (x > 0) ret += `${CSI}${x}C`;
30
+
31
+ if (y < 0) ret += `${CSI}${-y}A`;
32
+ else if (y > 0) ret += `${CSI}${y}B`;
33
+
34
+ return ret;
35
+ },
36
+ up: (count = 1) => `${CSI}${count}A`,
37
+ down: (count = 1) => `${CSI}${count}B`,
38
+ forward: (count = 1) => `${CSI}${count}C`,
39
+ backward: (count = 1) => `${CSI}${count}D`,
40
+ nextLine: (count = 1) => `${CSI}E`.repeat(count),
41
+ prevLine: (count = 1) => `${CSI}F`.repeat(count),
42
+ left: `${CSI}G`,
43
+ hide: `${CSI}?25l`,
44
+ show: `${CSI}?25h`,
45
+ save: `${ESC}7`,
46
+ restore: `${ESC}8`
47
+ };
48
+
49
+ const scroll = {
50
+ up: (count = 1) => `${CSI}S`.repeat(count),
51
+ down: (count = 1) => `${CSI}T`.repeat(count)
52
+ };
53
+
54
+ const erase = {
55
+ screen: `${CSI}2J`,
56
+ up: (count = 1) => `${CSI}1J`.repeat(count),
57
+ down: (count = 1) => `${CSI}J`.repeat(count),
58
+ line: `${CSI}2K`,
59
+ lineEnd: `${CSI}K`,
60
+ lineStart: `${CSI}1K`,
61
+ lines(count) {
62
+ let clear = '';
63
+ for (let i = 0; i < count; i++)
64
+ clear += this.line + (i < count - 1 ? cursor.up() : '');
65
+ if (count)
66
+ clear += cursor.left;
67
+ return clear;
68
+ }
69
+ };
70
+
71
+ src = { cursor, scroll, erase, beep };
72
+ return src;
73
+ }
74
+
75
+ var srcExports = requireSrc();
76
+
77
+ var picocolors = {exports: {}};
78
+
79
+ var hasRequiredPicocolors;
80
+
81
+ function requirePicocolors () {
82
+ if (hasRequiredPicocolors) return picocolors.exports;
83
+ hasRequiredPicocolors = 1;
84
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
85
+ let isColorSupported =
86
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
87
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
88
+
89
+ let formatter = (open, close, replace = open) =>
90
+ input => {
91
+ let string = "" + input, index = string.indexOf(close, open.length);
92
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
93
+ };
94
+
95
+ let replaceClose = (string, close, replace, index) => {
96
+ let result = "", cursor = 0;
97
+ do {
98
+ result += string.substring(cursor, index) + replace;
99
+ cursor = index + close.length;
100
+ index = string.indexOf(close, cursor);
101
+ } while (~index)
102
+ return result + string.substring(cursor)
103
+ };
104
+
105
+ let createColors = (enabled = isColorSupported) => {
106
+ let f = enabled ? formatter : () => String;
107
+ return {
108
+ isColorSupported: enabled,
109
+ reset: f("\x1b[0m", "\x1b[0m"),
110
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
111
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
112
+ italic: f("\x1b[3m", "\x1b[23m"),
113
+ underline: f("\x1b[4m", "\x1b[24m"),
114
+ inverse: f("\x1b[7m", "\x1b[27m"),
115
+ hidden: f("\x1b[8m", "\x1b[28m"),
116
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
117
+
118
+ black: f("\x1b[30m", "\x1b[39m"),
119
+ red: f("\x1b[31m", "\x1b[39m"),
120
+ green: f("\x1b[32m", "\x1b[39m"),
121
+ yellow: f("\x1b[33m", "\x1b[39m"),
122
+ blue: f("\x1b[34m", "\x1b[39m"),
123
+ magenta: f("\x1b[35m", "\x1b[39m"),
124
+ cyan: f("\x1b[36m", "\x1b[39m"),
125
+ white: f("\x1b[37m", "\x1b[39m"),
126
+ gray: f("\x1b[90m", "\x1b[39m"),
127
+
128
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
129
+ bgRed: f("\x1b[41m", "\x1b[49m"),
130
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
131
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
132
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
133
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
134
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
135
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
136
+
137
+ blackBright: f("\x1b[90m", "\x1b[39m"),
138
+ redBright: f("\x1b[91m", "\x1b[39m"),
139
+ greenBright: f("\x1b[92m", "\x1b[39m"),
140
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
141
+ blueBright: f("\x1b[94m", "\x1b[39m"),
142
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
143
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
144
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
145
+
146
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
147
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
148
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
149
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
150
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
151
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
152
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
153
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
154
+ }
155
+ };
156
+
157
+ picocolors.exports = createColors();
158
+ picocolors.exports.createColors = createColors;
159
+ return picocolors.exports;
160
+ }
161
+
162
+ var picocolorsExports = /*@__PURE__*/ requirePicocolors();
163
+ const e = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports);
164
+
165
+ function J({onlyFirst:t=false}={}){const F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,t?void 0:"g")}const Q=J();function T$1(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Q,"")}function O(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P$1={exports:{}};(function(t){var u={};t.exports=u,u.eastAsianWidth=function(e){var s=e.charCodeAt(0),i=e.length==2?e.charCodeAt(1):0,D=s;return 55296<=s&&s<=56319&&56320<=i&&i<=57343&&(s&=1023,i&=1023,D=s<<10|i,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},u.characterLength=function(e){var s=this.eastAsianWidth(e);return s=="F"||s=="W"||s=="A"?2:1};function F(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(e){for(var s=F(e),i=0,D=0;D<s.length;D++)i=i+this.characterLength(s[D]);return i},u.slice=function(e,s,i){textLen=u.length(e),s=s||0,i=i||1,s<0&&(s=textLen+s),i<0&&(i=textLen+i);for(var D="",C=0,o=F(e),E=0;E<o.length;E++){var a=o[E],n=u.length(a);if(C>=s-(n==2?1:0))if(C+n<=i)D+=a;else break;C+=n;}return D};})(P$1);var X=P$1.exports;const DD=O(X);var uD=function(){return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const FD=O(uD);function A$1(t,u={}){if(typeof t!="string"||t.length===0||(u={ambiguousIsNarrow:true,...u},t=T$1(t),t.length===0))return 0;t=t.replace(FD()," ");const F=u.ambiguousIsNarrow?1:2;let e=0;for(const s of t){const i=s.codePointAt(0);if(i<=31||i>=127&&i<=159||i>=768&&i<=879)continue;switch(DD.eastAsianWidth(s)){case "F":case "W":e+=2;break;case "A":e+=F;break;default:e+=1;}}return e}const m=10,L$1=(t=0)=>u=>`\x1B[${u+t}m`,N=(t=0)=>u=>`\x1B[${38+t};5;${u}m`,I=(t=0)=>(u,F,e)=>`\x1B[${38+t};2;${u};${F};${e}m`,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(r.modifier);const tD=Object.keys(r.color),eD=Object.keys(r.bgColor);[...tD,...eD];function sD(){const t=new Map;for(const[u,F]of Object.entries(r)){for(const[e,s]of Object.entries(F))r[e]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},F[e]=r[e],t.set(s[0],s[1]);Object.defineProperty(r,u,{value:F,enumerable:false});}return Object.defineProperty(r,"codes",{value:t,enumerable:false}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi=L$1(),r.color.ansi256=N(),r.color.ansi16m=I(),r.bgColor.ansi=L$1(m),r.bgColor.ansi256=N(m),r.bgColor.ansi16m=I(m),Object.defineProperties(r,{rgbToAnsi256:{value:(u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),enumerable:false},hexToRgb:{value:u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return [0,0,0];let[e]=F;e.length===3&&(e=[...e].map(i=>i+i).join(""));const s=Number.parseInt(e,16);return [s>>16&255,s>>8&255,s&255]},enumerable:false},hexToAnsi256:{value:u=>r.rgbToAnsi256(...r.hexToRgb(u)),enumerable:false},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,s;if(u>=232)F=((u-232)*10+8)/255,e=F,s=F;else {u-=16;const C=u%36;F=Math.floor(u/36)/5,e=Math.floor(C/6)/5,s=C%6/5;}const i=Math.max(F,e,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(e)<<1|Math.round(F));return i===2&&(D+=60),D},enumerable:false},rgbToAnsi:{value:(u,F,e)=>r.ansi256ToAnsi(r.rgbToAnsi256(u,F,e)),enumerable:false},hexToAnsi:{value:u=>r.ansi256ToAnsi(r.hexToAnsi256(u)),enumerable:false}}),r}const iD=sD(),v=new Set(["\x1B","\x9B"]),CD=39,w$1="\x07",W$1="[",rD="]",R="m",y=`${rD}8;;`,V$1=t=>`${v.values().next().value}${W$1}${t}${R}`,z=t=>`${v.values().next().value}${y}${t}${w$1}`,ED=t=>t.split(" ").map(u=>A$1(u)),_=(t,u,F)=>{const e=[...u];let s=false,i=false,D=A$1(T$1(t[t.length-1]));for(const[C,o]of e.entries()){const E=A$1(o);if(D+E<=F?t[t.length-1]+=o:(t.push(o),D=0),v.has(o)&&(s=true,i=e.slice(C+1).join("").startsWith(y)),s){i?o===w$1&&(s=false,i=false):o===R&&(s=false);continue}D+=E,D===F&&C<e.length-1&&(t.push(""),D=0);}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop());},nD=t=>{const u=t.split(" ");let F=u.length;for(;F>0&&!(A$1(u[F-1])>0);)F--;return F===u.length?t:u.slice(0,F).join(" ")+u.slice(F).join("")},oD=(t,u,F={})=>{if(F.trim!==false&&t.trim()==="")return "";let e="",s,i;const D=ED(t);let C=[""];for(const[E,a]of t.split(" ").entries()){F.trim!==false&&(C[C.length-1]=C[C.length-1].trimStart());let n=A$1(C[C.length-1]);if(E!==0&&(n>=u&&(F.wordWrap===false||F.trim===false)&&(C.push(""),n=0),(n>0||F.trim===false)&&(C[C.length-1]+=" ",n++)),F.hard&&D[E]>u){const B=u-n,p=1+Math.floor((D[E]-B-1)/u);Math.floor((D[E]-1)/u)<p&&C.push(""),_(C,a,u);continue}if(n+D[E]>u&&n>0&&D[E]>0){if(F.wordWrap===false&&n<u){_(C,a,u);continue}C.push("");}if(n+D[E]>u&&F.wordWrap===false){_(C,a,u);continue}C[C.length-1]+=a;}F.trim!==false&&(C=C.map(E=>nD(E)));const o=[...C.join(`
166
+ `)];for(const[E,a]of o.entries()){if(e+=a,v.has(a)){const{groups:B}=new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o.slice(E).join(""))||{groups:{}};if(B.code!==void 0){const p=Number.parseFloat(B.code);s=p===CD?void 0:p;}else B.uri!==void 0&&(i=B.uri.length===0?void 0:B.uri);}const n=iD.codes.get(Number(s));o[E+1]===`
167
+ `?(i&&(e+=z("")),s&&n&&(e+=V$1(n))):a===`
168
+ `&&(s&&n&&(e+=V$1(s)),i&&(e+=z(i)));}return e};function G(t,u,F){return String(t).normalize().replace(/\r\n/g,`
169
+ `).split(`
170
+ `).map(e=>oD(e,u,F)).join(`
171
+ `)}const aD=["up","down","left","right","space","enter","cancel"],c={actions:new Set(aD),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function k$1(t,u){if(typeof t=="string")return c.aliases.get(t)===u;for(const F of t)if(F!==void 0&&k$1(F,u))return true;return false}function lD(t,u){if(t===u)return;const F=t.split(`
172
+ `),e=u.split(`
173
+ `),s=[];for(let i=0;i<Math.max(F.length,e.length);i++)F[i]!==e[i]&&s.push(i);return s}process.platform.startsWith("win");const S=Symbol("clack:cancel");function d$1(t,u){const F=t;F.isTTY&&F.setRawMode(u);}var AD=Object.defineProperty,pD=(t,u,F)=>u in t?AD(t,u,{enumerable:true,configurable:true,writable:true,value:F}):t[u]=F,h=(t,u,F)=>(pD(t,typeof u!="symbol"?u+"":u,F),F);class x{constructor(u,F=true){h(this,"input"),h(this,"output"),h(this,"_abortSignal"),h(this,"rl"),h(this,"opts"),h(this,"_render"),h(this,"_track",false),h(this,"_prevFrame",""),h(this,"_subscribers",new Map),h(this,"_cursor",0),h(this,"state","initial"),h(this,"error",""),h(this,"value");const{input:e=stdin,output:s=stdout,render:i,signal:D,...C}=u;this.opts=C,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=F,this._abortSignal=D,this.input=e,this.output=s;}unsubscribe(){this._subscribers.clear();}setSubscriber(u,F){const e=this._subscribers.get(u)??[];e.push(F),this._subscribers.set(u,e);}on(u,F){this.setSubscriber(u,{cb:F});}once(u,F){this.setSubscriber(u,{cb:F,once:true});}emit(u,...F){const e=this._subscribers.get(u)??[],s=[];for(const i of e)i.cb(...F),i.once&&s.push(()=>e.splice(e.indexOf(i),1));for(const i of s)i();}prompt(){return new Promise((u,F)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(S);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close();},{once:true});}const e=new WriteStream(0);e._write=(s,i,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D();},this.input.pipe(e),this.rl=f.createInterface({input:this.input,output:e,tabSize:2,prompt:"",escapeCodeTimeout:50}),f.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),d$1(this.input,true),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(srcExports.cursor.show),this.output.off("resize",this.render),d$1(this.input,false),u(this.value);}),this.once("cancel",()=>{this.output.write(srcExports.cursor.show),this.output.off("resize",this.render),d$1(this.input,false),u(S);});})}onKeypress(u,F){if(this.state==="error"&&(this.state="active"),F?.name&&(!this._track&&c.aliases.has(F.name)&&this.emit("cursor",c.aliases.get(F.name)),c.actions.has(F.name)&&this.emit("cursor",F.name)),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),F?.name==="return"){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state="error",this.rl?.write(this.value));}this.state!=="error"&&(this.state="submit");}k$1([u,F?.name,F?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close();}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
174
+ `),d$1(this.input,false),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){const u=G(this._prevFrame,process.stdout.columns,{hard:true}).split(`
175
+ `).length-1;this.output.write(srcExports.cursor.move(-999,u*-1));}render(){const u=G(this._render(this)??"",process.stdout.columns,{hard:true});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(srcExports.cursor.hide);else {const F=lD(this._prevFrame,u);if(this.restoreCursor(),F&&F?.length===1){const e=F[0];this.output.write(srcExports.cursor.move(0,e)),this.output.write(srcExports.erase.lines(1));const s=u.split(`
176
+ `);this.output.write(s[e]),this._prevFrame=u,this.output.write(srcExports.cursor.move(0,s.length-e-1));return}if(F&&F?.length>1){const e=F[0];this.output.write(srcExports.cursor.move(0,e)),this.output.write(srcExports.erase.down());const s=u.split(`
177
+ `).slice(e);this.output.write(s.join(`
178
+ `)),this._prevFrame=u;return}this.output.write(srcExports.erase.down());}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u;}}}class fD extends x{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,false),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value;}),this.on("confirm",F=>{this.output.write(srcExports.cursor.move(0,-1)),this.value=F,this.state="submit",this.close();}),this.on("cursor",()=>{this.value=!this.value;});}}var bD=Object.defineProperty,mD=(t,u,F)=>u in t?bD(t,u,{enumerable:true,configurable:true,writable:true,value:F}):t[u]=F,Y=(t,u,F)=>(mD(t,typeof u!="symbol"?u+"":u,F),F);let wD=class extends x{constructor(u){super(u,false),Y(this,"options"),Y(this,"cursor",0),this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===u.cursorAt),0),this.on("key",F=>{F==="a"&&this.toggleAll();}),this.on("cursor",F=>{switch(F){case "left":case "up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case "down":case "right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case "space":this.toggleValue();break}});}get _value(){return this.options[this.cursor].value}toggleAll(){const u=this.value.length===this.options.length;this.value=u?[]:this.options.map(F=>F.value);}toggleValue(){const u=this.value.includes(this._value);this.value=u?this.value.filter(F=>F!==this._value):[...this.value,this._value];}};var SD=Object.defineProperty,$D=(t,u,F)=>u in t?SD(t,u,{enumerable:true,configurable:true,writable:true,value:F}):t[u]=F,q=(t,u,F)=>($D(t,typeof u!="symbol"?u+"":u,F),F);class jD extends x{constructor(u){super(u,false),q(this,"options"),q(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:F})=>F===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",F=>{switch(F){case "left":case "up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case "down":case "right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue();});}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value;}}class PD extends x{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return `${this.value}\u2588`;const u=this.value.slice(0,this.cursor),[F,...e$1]=this.value.slice(this.cursor);return `${u}${e.inverse(F)}${e$1.join("")}`}get cursor(){return this._cursor}constructor(u){super(u),this.on("finalize",()=>{this.value||(this.value=u.defaultValue);});}}
179
+
180
+ function ce(){return g.platform!=="win32"?g.env.TERM!=="linux":!!g.env.CI||!!g.env.WT_SESSION||!!g.env.TERMINUS_SUBLIME||g.env.ConEmuTask==="{cmd::Cmder}"||g.env.TERM_PROGRAM==="Terminus-Sublime"||g.env.TERM_PROGRAM==="vscode"||g.env.TERM==="xterm-256color"||g.env.TERM==="alacritty"||g.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const V=ce(),u=(t,n)=>V?t:n,le=u("❯", ">"),L=u("■", "x"),W=u("▲", "x"),C=u("✔", "√"),o=u(""),d=u(""),k=u("\u25CF",">"),P=u("\u25CB"," "),A=u("\u25FB","[\u2022]"),T=u("\u25FC","[+]"),F=u("\u25FB","[ ]"),w=t=>{switch(t){case "initial":case "active":return e.cyan(le);case "cancel":return e.red(L);case "error":return e.yellow(W);case "submit":return e.green(C)}},B=t=>{const{cursor:n,options:s,style:r}=t,i=t.maxItems??Number.POSITIVE_INFINITY,a=Math.max(process.stdout.rows-4,0),c=Math.min(a,Math.max(i,5));let l=0;n>=l+c-3?l=Math.max(Math.min(n-c+3,s.length-c),0):n<l+2&&(l=Math.max(n-2,0));const $=c<s.length&&l>0,p=c<s.length&&l+c<s.length;return s.slice(l,l+c).map((M,v,x)=>{const j=v===0&&$,E=v===x.length-1&&p;return j||E?e.dim("..."):r(M,v+l===n)})},he=t=>new PD({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){const n=`${e.gray(o)}
181
+ ${w(this.state)} ${t.message}
182
+ `,s=t.placeholder?e.inverse(t.placeholder[0])+e.dim(t.placeholder.slice(1)):e.inverse(e.hidden("_")),r=this.value?this.valueWithCursor:s;switch(this.state){case "error":return `${n.trim()}
183
+ ${e.yellow(o)} ${r}
184
+ ${e.yellow(d)} ${e.yellow(this.error)}
185
+ `;case "submit":return `${n}${e.gray(o)} ${e.dim(this.value||t.placeholder)}`;case "cancel":return `${n}${e.gray(o)} ${e.strikethrough(e.dim(this.value??""))}${this.value?.trim()?`
186
+ ${e.gray(o)}`:""}`;default:return `${n}${e.cyan(o)} ${r}
187
+ ${e.cyan(d)}
188
+ `}}}).prompt(),ye=t=>{const n=t.active??"Yes",s=t.inactive??"No";return new fD({active:n,inactive:s,initialValue:t.initialValue??true,render(){const r=`${e.gray(o)}
189
+ ${w(this.state)} ${t.message}
190
+ `,i=this.value?n:s;switch(this.state){case "submit":return `${r}${e.gray(o)} ${e.dim(i)}`;case "cancel":return `${r}${e.gray(o)} ${e.strikethrough(e.dim(i))}
191
+ ${e.gray(o)}`;default:return `${r}${e.cyan(o)} ${this.value?`${e.green(k)} ${n}`:`${e.dim(P)} ${e.dim(n)}`} ${e.dim("/")} ${this.value?`${e.dim(P)} ${e.dim(s)}`:`${e.green(k)} ${s}`}
192
+ ${e.cyan(d)}
193
+ `}}}).prompt()},ve=t=>{const n=(s,r)=>{const i=s.label??String(s.value);switch(r){case "selected":return `${e.dim(i)}`;case "active":return `${e.green(k)} ${i} ${s.hint?e.dim(`(${s.hint})`):""}`;case "cancelled":return `${e.strikethrough(e.dim(i))}`;default:return `${e.dim(P)} ${e.dim(i)}`}};return new jD({options:t.options,initialValue:t.initialValue,render(){const s=`${e.gray(o)}
194
+ ${w(this.state)} ${t.message}
195
+ `;switch(this.state){case "submit":return `${s}${e.gray(o)} ${n(this.options[this.cursor],"selected")}`;case "cancel":return `${s}${e.gray(o)} ${n(this.options[this.cursor],"cancelled")}
196
+ ${e.gray(o)}`;default:return `${s}${e.cyan(o)} ${B({cursor:this.cursor,options:this.options,maxItems:t.maxItems,style:(r,i)=>n(r,i?"active":"inactive")}).join(`
197
+ ${e.cyan(o)} `)}
198
+ ${e.cyan(d)}
199
+ `}}}).prompt()},fe=t=>{const n=(s,r)=>{const i=s.label??String(s.value);return r==="active"?`${e.cyan(A)} ${i} ${s.hint?e.dim(`(${s.hint})`):""}`:r==="selected"?`${e.green(T)} ${e.dim(i)}`:r==="cancelled"?`${e.strikethrough(e.dim(i))}`:r==="active-selected"?`${e.green(T)} ${i} ${s.hint?e.dim(`(${s.hint})`):""}`:r==="submitted"?`${e.dim(i)}`:`${e.dim(F)} ${e.dim(i)}`};return new wD({options:t.options,initialValues:t.initialValues,required:t.required??true,cursorAt:t.cursorAt,validate(s){if(this.required&&s.length===0)return `Please select at least one option.
200
+ ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){const s=`${e.gray(o)}
201
+ ${w(this.state)} ${t.message}
202
+ `,r=(i,a)=>{const c=this.value.includes(i.value);return a&&c?n(i,"active-selected"):c?n(i,"selected"):n(i,a?"active":"inactive")};switch(this.state){case "submit":return `${s}${e.gray(o)} ${this.options.filter(({value:i})=>this.value.includes(i)).map(i=>n(i,"submitted")).join(e.dim(", "))||e.dim("none")}`;case "cancel":{const i=this.options.filter(({value:a})=>this.value.includes(a)).map(a=>n(a,"cancelled")).join(e.dim(", "));return `${s}${e.gray(o)} ${i.trim()?`${i}
203
+ ${e.gray(o)}`:""}`}case "error":{const i=this.error.split(`
204
+ `).map((a,c)=>c===0?`${e.yellow(d)} ${e.yellow(a)}`:` ${a}`).join(`
205
+ `);return `${s+e.yellow(o)} ${B({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:r}).join(`
206
+ ${e.yellow(o)} `)}
207
+ ${i}
208
+ `}default:return `${s}${e.cyan(o)} ${B({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:r}).join(`
209
+ ${e.cyan(o)} `)}
210
+ ${e.cyan(d)}
211
+ `}}}).prompt()};`${e.gray(o)} `;
212
+
213
+ const kCancel = Symbol.for("cancel");
214
+ async function prompt(message, opts = {}) {
215
+ const handleCancel = (value) => {
216
+ if (typeof value !== "symbol" || value.toString() !== "Symbol(clack:cancel)") {
217
+ return value;
218
+ }
219
+ switch (opts.cancel) {
220
+ case "reject": {
221
+ const error = new Error("Prompt cancelled.");
222
+ error.name = "ConsolaPromptCancelledError";
223
+ if (Error.captureStackTrace) {
224
+ Error.captureStackTrace(error, prompt);
225
+ }
226
+ throw error;
227
+ }
228
+ case "undefined": {
229
+ return void 0;
230
+ }
231
+ case "null": {
232
+ return null;
233
+ }
234
+ case "symbol": {
235
+ return kCancel;
236
+ }
237
+ default:
238
+ case "default": {
239
+ return opts.default ?? opts.initial;
240
+ }
241
+ }
242
+ };
243
+ if (!opts.type || opts.type === "text") {
244
+ return await he({
245
+ message,
246
+ defaultValue: opts.default,
247
+ placeholder: opts.placeholder,
248
+ initialValue: opts.initial
249
+ }).then(handleCancel);
250
+ }
251
+ if (opts.type === "confirm") {
252
+ return await ye({
253
+ message,
254
+ initialValue: opts.initial
255
+ }).then(handleCancel);
256
+ }
257
+ if (opts.type === "select") {
258
+ return await ve({
259
+ message,
260
+ options: opts.options.map(
261
+ (o) => typeof o === "string" ? { value: o, label: o } : o
262
+ ),
263
+ initialValue: opts.initial
264
+ }).then(handleCancel);
265
+ }
266
+ if (opts.type === "multiselect") {
267
+ return await fe({
268
+ message,
269
+ options: opts.options.map(
270
+ (o) => typeof o === "string" ? { value: o, label: o } : o
271
+ ),
272
+ required: opts.required,
273
+ initialValues: opts.initial
274
+ }).then(handleCancel);
275
+ }
276
+ throw new Error(`Unknown prompt type: ${opts.type}`);
277
+ }
278
+
279
+ export { kCancel, prompt };