(function(u,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(u=typeof globalThis<"u"?globalThis:u||self,n(u["vue-fomantic-ui"]={},u.Vue))})(this,function(u,n){"use strict";function ja(e){var t,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te?t:"",$=(e,t)=>typeof e=="string"?`${e} ${t}`:"",T=(e,t)=>e===!0?t:e==="below"?`${t} ${e}`:typeof e=="string"?`${e} ${t}`:"",de=e=>e==="justified"?"justified":$(e,"aligned"),q=(e,t)=>typeof e=="number"&&t?`${St(e)} ${t}`:typeof e=="number"&&!t?St(e):typeof e=="string"&&e==="equal"?`${e} width`:"",Ne=(e,t)=>e?`${St(e)} wide ${t}`:"",St=e=>["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen"][e-1],pe=n.defineComponent({props:{active:Boolean,compact:Boolean,styled:Boolean},setup(e,{slots:t}){const a=n.ref(e.active),i={active:e.styled?"0.5em 1em 1.5em":e.compact?"0.25em 0px 0.5em":"0.5em 0px 1em",inactive:e.styled?"0px 1em":"0px 0px"},o=n.ref(),r=n.ref(0),c=n.ref(0),s=n.ref(i.inactive),d=n.computed(()=>S(l(a.value,"active"),"content")),m=n.computed(()=>({maxHeight:`${r.value}px`,opacity:c.value,padding:s.value,overflow:"hidden",transition:"all 0.5s ease"})),h=()=>{if(!o.value)return 0;const f=window.getComputedStyle(o.value).fontSize;return o.value.scrollHeight+parseInt(f)*(e.styled?2:1.5)};return n.watch(()=>e.active,async f=>{f?(s.value=i.inactive,a.value=f,await n.nextTick(()=>{o.value&&(s.value=i.active,r.value=h(),c.value=1)})):(s.value=i.inactive,r.value=0,c.value=0)}),()=>{var f;return n.createVNode("div",{ref:o,class:d.value,style:m.value,onTransitionend:()=>{e.active||(a.value=!1)}},[(f=t.default)==null?void 0:f.call(t)])}}}),Zi=["top","middle","bottom"],Qi=()=>({aligned:{type:String,validator:e=>Zi.includes(e)}}),eo=e=>({alignedClasses:n.computed(()=>S(e.aligned,{aligned:e.aligned}))}),z=n.defineComponent({props:{as:String,bordered:Boolean,circular:Boolean,color:String,colored:Boolean,corner:[Boolean,String],disabled:Boolean,fitted:Boolean,flipped:String,inverted:Boolean,link:Boolean,loading:Boolean,name:String,primary:Boolean,rotated:String,secondary:Boolean,size:String,...Qi()},setup(e){const{alignedClasses:t}=eo(e);return{classes:n.computed(()=>S(e.color,e.name,e.size,l(e.primary,"primary"),l(e.secondary,"secondary"),l(e.bordered,"bordered"),l(e.circular,"circular"),l(e.colored,"colored"),l(e.disabled,"disabled"),l(e.fitted,"fitted"),l(e.inverted,"inverted"),l(e.link,"link"),l(e.loading,"loading"),$(e.flipped,"flipped"),$(e.rotated,"rotated"),T(e.corner,"corner"),t.value,"icon"))}},render(){let e=this.$props.as||"i";return n.h(e,{"aria-hidden":!0,class:this.classes})}}),He=n.defineComponent({props:{compact:Boolean,icon:String,index:Number,title:String,styled:Boolean},setup(e){const t=n.inject("isTabActive"),a=n.inject("updateActiveIndex"),i=n.computed(()=>S(l(t(e.index),"active"),"title"));return{isTabActive:t,updateActiveIndex:a,titleClass:i}},render(){return n.createVNode(n.Fragment,null,[n.createVNode("div",{class:this.titleClass,onClick:()=>this.updateActiveIndex(this.index)},[n.createVNode(z,{name:this.icon??"dropdown"},null),this.title]),n.createVNode(pe,{active:this.isTabActive(this.index),compact:this.compact,styled:this.styled},{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})])}}),Ct=n.defineComponent({props:{basic:Boolean,compact:[Boolean,String],fluid:Boolean,inverted:Boolean,multiple:Boolean,styled:Boolean},setup(e,{slots:t}){const a=e.multiple?n.ref([]):n.ref(-1),i=s=>e.multiple?a.value.includes(s):a.value===s,o=s=>{const d=i(s);e.multiple?d?a.value=a.value.filter(m=>m!==s):a.value.push(s):a.value=d?-1:s};n.provide("isTabActive",i),n.provide("updateActiveIndex",o);const r=n.computed(()=>S("ui",l(e.basic,"basic"),l(e.fluid,"fluid"),l(e.inverted,"inverted"),l(e.styled,"styled"),T(e.compact,"compact"),"accordion")),c=n.computed(()=>{var d;return(((d=t.default)==null?void 0:d.call(t))||[]).map((m,h)=>({...m,props:{...m.props,index:h},slots:m.children}))});return()=>n.createVNode("div",{class:r.value},[c.value.map(s=>n.createVNode(He,n.mergeProps({compact:!!e.compact,styled:e.styled},s.props),s.slots))])}}),vt=n.defineComponent({render(){var e,t;return n.h("div",{class:"accordion"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),wt=n.defineComponent({props:{active:Boolean},setup(e){return{computedClass:n.computed(()=>S(l(e.active,"active"),"title"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),to={install(e){e.component("SuiAccordion",Ct),e.component("SuiAccordionAccordion",vt),e.component("SuiAccordionContent",pe),e.component("SuiAccordionTab",He),e.component("SuiAccordionTitle",wt)}},Vt=n.defineComponent({props:{centered:Boolean,test:String,unit:String},setup(e){return{computedClass:n.computed(()=>S("ui",e.unit,l(e.centered,"centered"),l(!!e.test,"test"),"ad"))}},render(){var e,t,a,i;return this.$props.test?n.h("div",{class:this.computedClass,"data-text":this.$props.test},(t=(e=this.$slots).default)==null?void 0:t.call(e)):n.h("div",{class:this.computedClass},(i=(a=this.$slots).default)==null?void 0:i.call(a))}}),no={install(e){e.component("SuiAdvertisement",Vt)}},Ge=n.defineComponent({props:{icon:String},setup(e){return{computedClass:n.computed(()=>S(e.icon,"icon","divider"))}},render(){var e,t;return this.icon?n.createVNode("i",{"aria-hidden":"true",class:this.computedClass},null):n.createVNode("div",{class:"divider"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),_e=n.defineComponent({props:{active:Boolean,href:String,link:Boolean,to:String},setup(e){const t=n.computed(()=>S(l(e.active,"active"),"section")),a=e.link||!!e.href;return{computedClass:t,isLink:a}},render(){let e="div";this.isLink?e="a":this.to&&(e=n.resolveComponent("router-link"));const t={href:this.href,to:this.to};return n.createVNode(e,n.mergeProps({class:this.computedClass},t),{default:()=>{var a,i;return[(i=(a=this.$slots).default)==null?void 0:i.call(a)]}})}}),Bt=n.defineComponent({props:{icon:String,inverted:Boolean,sections:{type:Array,default:()=>[]},size:String},setup(e){return{computedClass:n.computed(()=>S("ui",e.size,l(e.inverted,"inverted"),"breadcrumb"))}},render(){var t,a;const e=()=>{var i;return(i=this.sections)==null?void 0:i.map((o,r)=>{const c={active:o.active,href:o.href,link:o.link,to:o.to};return n.createVNode(n.Fragment,null,[n.createVNode(_e,c,{default:()=>[o.content]}),this.sections.length!==r+1&&n.createVNode(Ge,{icon:this.icon},{default:()=>[n.createTextVNode(" / ")]})])})};return n.createVNode("div",{class:this.computedClass},[((a=(t=this.$slots).default)==null?void 0:a.call(t))||e()])}}),ao={install(e){e.component("SuiBreadcrumb",Bt),e.component("SuiBreadcrumbDivider",Ge),e.component("SuiBreadcrumbSection",_e)}},Nt=n.defineComponent({props:{as:String,size:String},setup(e){return{computedClass:n.computed(()=>S(e.size,"icons"))}},render(){var t,a;let e=this.$props.as||"i";return n.h(e,{class:this.computedClass},(a=(t=this.$slots).default)==null?void 0:a.call(t))}}),io={install(e){e.component("SuiIcon",z),e.component("SuiIconGroup",Nt)}},oo=()=>({icon:[Boolean,String],iconPos:String}),lo=e=>({iconClasses:n.computed(()=>typeof e.icon=="boolean"&&e.icon||e.labeled&&e.icon?"icon":S({icon:e.icon&&!e.content}))}),co=["right","left"],ro=()=>({labeled:[Boolean,String]}),so=e=>({labeledClasses:n.computed(()=>typeof e.labeled=="boolean"&&e.labeled?"labeled":co.includes(e.labeled)?`${e.labeled} labeled`:"")}),uo=["double","usual double","elastic"],Ya=()=>({loading:{type:[Boolean,String],validator:e=>uo.includes(e)||typeof e=="boolean"}}),pa=e=>({loadingClasses:n.computed(()=>S(e.loading,{loading:e.loading}))}),Xe=n.defineComponent({props:{active:Boolean,animated:[Boolean,String],as:{type:String,default:"button"},attached:String,basic:Boolean,circular:Boolean,color:String,compact:Boolean,content:[String,Array],disabled:Boolean,facebook:Boolean,floated:String,fluid:Boolean,google:Boolean,linkedin:Boolean,instagram:Boolean,inverted:Boolean,negative:Boolean,positive:Boolean,primary:Boolean,secondary:Boolean,size:String,telegram:Boolean,tertiary:Boolean,toggle:Boolean,twitter:Boolean,vk:Boolean,whatsapp:Boolean,youtube:Boolean,...oo(),...ro(),...Ya()},setup(e){const{iconClasses:t}=lo(e),{labeledClasses:a}=so(e),{loadingClasses:i}=pa(e);return{classes:n.computed(()=>S("ui",e.color,e.size,l(e.active,"active"),l(e.basic,"basic"),l(e.circular,"circular"),l(e.compact,"compact"),l(e.disabled,"disabled"),l(e.facebook,"facebook"),l(e.fluid,"fluid"),l(e.google,"google"),l(e.linkedin,"linkedin"),l(e.instagram,"instagram"),l(e.inverted,"inverted"),l(e.negative,"negative"),l(e.positive,"positive"),l(e.primary,"primary"),l(e.secondary,"secondary"),l(e.telegram,"telegram"),l(e.tertiary,"tertiary"),l(e.toggle,"toggle"),l(e.twitter,"twitter"),l(e.vk,"vk"),l(e.whatsapp,"whatsapp"),l(e.youtube,"youtube"),$(e.attached,"attached"),$(e.floated,"floated"),T(e.animated,"animated"),t.value,a.value,i.value,"button"))}},render(){var t,a;const e=this.attached?"div":this.as;return n.h(e,{class:this.classes,role:"button"},[typeof this.icon=="string"&&this.iconPos!=="right"&&n.h(z,{name:this.icon}),this.content||((a=(t=this.$slots).default)==null?void 0:a.call(t)),typeof this.icon=="string"&&this.iconPos==="right"&&n.h(z,{name:this.icon,class:"right"})])}}),xt=n.defineComponent({props:{hidden:Boolean,visible:Boolean},setup(e){return{computedClass:n.computed(()=>S(l(e.hidden,"hidden"),l(e.visible,"visible"),"content"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),We=n.defineComponent({props:{attached:String,basic:Boolean,color:String,icon:Boolean,labeled:Boolean,size:String,vertical:Boolean,widths:Number},setup(e){return{computedClass:n.computed(()=>S("ui",e.color,e.size,l(e.basic,"basic"),l(e.icon,"icon"),l(e.labeled,"labeled"),l(e.vertical,"vertical"),$(e.attached,"attached"),q(e.widths,""),"buttons"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),mo={install(e){e.component("SuiButton",Xe),e.component("SuiButtonContent",xt),e.component("SuiButtonGroup",We)}},fo=["top","right","bottom","left"],Ha=["start","end"],Ga=fo.reduce((e,t)=>e.concat(t,t+"-"+Ha[0],t+"-"+Ha[1]),[]),At=Math.min,ue=Math.max,Ue=Math.round,qe=Math.floor,Q=e=>({x:e,y:e}),ho={left:"right",right:"left",bottom:"top",top:"bottom"},go={start:"end",end:"start"};function _a(e,t){return typeof e=="function"?e(t):e}function Ke(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function bo(e){return e==="x"?"y":"x"}function Xa(e){return e==="y"?"height":"width"}function Wa(e){return["top","bottom"].includes(Ke(e))?"y":"x"}function Ua(e){return bo(Wa(e))}function yo(e,t,a){a===void 0&&(a=!1);const i=ne(e),o=Ua(e),r=Xa(o);let c=o==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(c=qa(c)),[c,qa(c)]}function So(e){return e.replace(/start|end/g,t=>go[t])}function qa(e){return e.replace(/left|right|bottom|top/g,t=>ho[t])}function Co(e){return{top:0,right:0,bottom:0,left:0,...e}}function vo(e){return typeof e!="number"?Co(e):{top:e,right:e,bottom:e,left:e}}function Je(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ka(e,t,a){let{reference:i,floating:o}=e;const r=Wa(t),c=Ua(t),s=Xa(c),d=Ke(t),m=r==="y",h=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,g=i[s]/2-o[s]/2;let b;switch(d){case"top":b={x:h,y:i.y-o.height};break;case"bottom":b={x:h,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:f};break;case"left":b={x:i.x-o.width,y:f};break;default:b={x:i.x,y:i.y}}switch(ne(t)){case"start":b[c]-=g*(a&&m?-1:1);break;case"end":b[c]+=g*(a&&m?-1:1);break}return b}const wo=async(e,t,a)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:c}=a,s=r.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:f}=Ka(m,i,d),g=i,b={},y=0;for(let w=0;wne(o)===e),...a.filter(o=>ne(o)!==e)]:a.filter(o=>Ke(o)===o)).filter(o=>e?ne(o)===e||(t?So(o)!==o:!1):!0)}const No=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,o;const{rects:r,middlewareData:c,placement:s,platform:d,elements:m}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:g=Ga,autoAlignment:b=!0,...y}=_a(e,t),w=f!==void 0||g===Ga?Bo(f||null,b,g):g,v=await Vo(t,y),V=((a=c.autoPlacement)==null?void 0:a.index)||0,N=w[V];if(N==null)return{};const D=yo(N,r,await(d.isRTL==null?void 0:d.isRTL(m.floating)));if(s!==N)return{reset:{placement:w[0]}};const I=[v[Ke(N)],v[D[0]],v[D[1]]],x=[...((i=c.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:I}],L=w[V+1];if(L)return{data:{index:V+1,overflows:x},reset:{placement:L}};const A=x.map(E=>{const F=ne(E.placement);return[E.placement,F&&h?E.overflows.slice(0,2).reduce((Y,R)=>Y+R,0):E.overflows[0],E.overflows]}).sort((E,F)=>E[1]-F[1]),O=((o=A.filter(E=>E[2].slice(0,ne(E[0])?2:3).every(F=>F<=0))[0])==null?void 0:o[0])||A[0][0];return O!==s?{data:{index:V+1,overflows:x},reset:{placement:O}}:{}}}};function K(e){return kt(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(kt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kt(e){return e instanceof Node||e instanceof H(e).Node}function Z(e){return e instanceof Element||e instanceof H(e).Element}function U(e){return e instanceof HTMLElement||e instanceof H(e).HTMLElement}function Ja(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function xe(e){const{overflow:t,overflowX:a,overflowY:i,display:o}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(o)}function xo(e){return["table","td","th"].includes(K(e))}function Dt(e){const t=Tt(),a=G(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Ao(e){let t=me(e);for(;U(t)&&!Ze(t);){if(Dt(t))return t;t=me(t)}return null}function Tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes(K(e))}function G(e){return H(e).getComputedStyle(e)}function Qe(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if(K(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ja(e)&&e.host||J(e);return Ja(t)?t.host:t}function Za(e){const t=me(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&xe(t)?t:Za(t)}function Ae(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const o=Za(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),c=H(o);return r?t.concat(c,c.visualViewport||[],xe(o)?o:[],c.frameElement&&a?Ae(c.frameElement):[]):t.concat(o,Ae(o,[],a))}function Qa(e){const t=G(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=U(e),r=o?e.offsetWidth:a,c=o?e.offsetHeight:i,s=Ue(a)!==r||Ue(i)!==c;return s&&(a=r,i=c),{width:a,height:i,$:s}}function $t(e){return Z(e)?e:e.contextElement}function fe(e){const t=$t(e);if(!U(t))return Q(1);const a=t.getBoundingClientRect(),{width:i,height:o,$:r}=Qa(t);let c=(r?Ue(a.width):a.width)/i,s=(r?Ue(a.height):a.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const ko=Q(0);function ei(e){const t=H(e);return!Tt()||!t.visualViewport?ko:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Do(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==H(e)?!1:t}function ae(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const o=e.getBoundingClientRect(),r=$t(e);let c=Q(1);t&&(i?Z(i)&&(c=fe(i)):c=fe(e));const s=Do(r,a,i)?ei(r):Q(0);let d=(o.left+s.x)/c.x,m=(o.top+s.y)/c.y,h=o.width/c.x,f=o.height/c.y;if(r){const g=H(r),b=i&&Z(i)?H(i):i;let y=g,w=y.frameElement;for(;w&&i&&b!==y;){const v=fe(w),V=w.getBoundingClientRect(),N=G(w),D=V.left+(w.clientLeft+parseFloat(N.paddingLeft))*v.x,I=V.top+(w.clientTop+parseFloat(N.paddingTop))*v.y;d*=v.x,m*=v.y,h*=v.x,f*=v.y,d+=D,m+=I,y=H(w),w=y.frameElement}}return Je({width:h,height:f,x:d,y:m})}const To=[":popover-open",":modal"];function ti(e){return To.some(t=>{try{return e.matches(t)}catch{return!1}})}function $o(e){let{elements:t,rect:a,offsetParent:i,strategy:o}=e;const r=o==="fixed",c=J(i),s=t?ti(t.floating):!1;if(i===c||s&&r)return a;let d={scrollLeft:0,scrollTop:0},m=Q(1);const h=Q(0),f=U(i);if((f||!f&&!r)&&((K(i)!=="body"||xe(c))&&(d=Qe(i)),U(i))){const g=ae(i);m=fe(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}return{width:a.width*m.x,height:a.height*m.y,x:a.x*m.x-d.scrollLeft*m.x+h.x,y:a.y*m.y-d.scrollTop*m.y+h.y}}function Oo(e){return Array.from(e.getClientRects())}function ni(e){return ae(J(e)).left+Qe(e).scrollLeft}function Fo(e){const t=J(e),a=Qe(e),i=e.ownerDocument.body,o=ue(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=ue(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-a.scrollLeft+ni(e);const s=-a.scrollTop;return G(i).direction==="rtl"&&(c+=ue(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:c,y:s}}function Io(e,t){const a=H(e),i=J(e),o=a.visualViewport;let r=i.clientWidth,c=i.clientHeight,s=0,d=0;if(o){r=o.width,c=o.height;const m=Tt();(!m||m&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}return{width:r,height:c,x:s,y:d}}function Mo(e,t){const a=ae(e,!0,t==="fixed"),i=a.top+e.clientTop,o=a.left+e.clientLeft,r=U(e)?fe(e):Q(1),c=e.clientWidth*r.x,s=e.clientHeight*r.y,d=o*r.x,m=i*r.y;return{width:c,height:s,x:d,y:m}}function ai(e,t,a){let i;if(t==="viewport")i=Io(e,a);else if(t==="document")i=Fo(J(e));else if(Z(t))i=Mo(t,a);else{const o=ei(e);i={...t,x:t.x-o.x,y:t.y-o.y}}return Je(i)}function ii(e,t){const a=me(e);return a===t||!Z(a)||Ze(a)?!1:G(a).position==="fixed"||ii(a,t)}function Lo(e,t){const a=t.get(e);if(a)return a;let i=Ae(e,[],!1).filter(s=>Z(s)&&K(s)!=="body"),o=null;const r=G(e).position==="fixed";let c=r?me(e):e;for(;Z(c)&&!Ze(c);){const s=G(c),d=Dt(c);!d&&s.position==="fixed"&&(o=null),(r?!d&&!o:!d&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xe(c)&&!d&&ii(e,c))?i=i.filter(h=>h!==c):o=s,c=me(c)}return t.set(e,i),i}function Eo(e){let{element:t,boundary:a,rootBoundary:i,strategy:o}=e;const c=[...a==="clippingAncestors"?Lo(t,this._c):[].concat(a),i],s=c[0],d=c.reduce((m,h)=>{const f=ai(t,h,o);return m.top=ue(f.top,m.top),m.right=At(f.right,m.right),m.bottom=At(f.bottom,m.bottom),m.left=ue(f.left,m.left),m},ai(t,s,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ro(e){const{width:t,height:a}=Qa(e);return{width:t,height:a}}function Po(e,t,a){const i=U(t),o=J(t),r=a==="fixed",c=ae(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const d=Q(0);if(i||!i&&!r)if((K(t)!=="body"||xe(o))&&(s=Qe(t)),i){const f=ae(t,!0,r,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else o&&(d.x=ni(o));const m=c.left+s.scrollLeft-d.x,h=c.top+s.scrollTop-d.y;return{x:m,y:h,width:c.width,height:c.height}}function oi(e,t){return!U(e)||G(e).position==="fixed"?null:t?t(e):e.offsetParent}function li(e,t){const a=H(e);if(!U(e)||ti(e))return a;let i=oi(e,t);for(;i&&xo(i)&&G(i).position==="static";)i=oi(i,t);return i&&(K(i)==="html"||K(i)==="body"&&G(i).position==="static"&&!Dt(i))?a:i||Ao(e)||a}const zo=async function(e){const t=this.getOffsetParent||li,a=this.getDimensions;return{reference:Po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await a(e.floating)}}};function jo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:$o,getDocumentElement:J,getClippingRect:Eo,getOffsetParent:li,getElementRects:zo,getClientRects:Oo,getDimensions:Ro,getScale:fe,isElement:Z,isRTL:jo};function po(e,t){let a=null,i;const o=J(e);function r(){var s;clearTimeout(i),(s=a)==null||s.disconnect(),a=null}function c(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),r();const{left:m,top:h,width:f,height:g}=e.getBoundingClientRect();if(s||t(),!f||!g)return;const b=qe(h),y=qe(o.clientWidth-(m+f)),w=qe(o.clientHeight-(h+g)),v=qe(m),N={rootMargin:-b+"px "+-y+"px "+-w+"px "+-v+"px",threshold:ue(0,At(1,d))||1};let D=!0;function I(x){const L=x[0].intersectionRatio;if(L!==d){if(!D)return c();L?c(!1,L):i=setTimeout(()=>{c(!1,1e-7)},100)}D=!1}try{a=new IntersectionObserver(I,{...N,root:o.ownerDocument})}catch{a=new IntersectionObserver(I,N)}a.observe(e)}return c(!0),r}function Ho(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,m=$t(e),h=o||r?[...m?Ae(m):[],...Ae(t)]:[];h.forEach(V=>{o&&V.addEventListener("scroll",a,{passive:!0}),r&&V.addEventListener("resize",a)});const f=m&&s?po(m,a):null;let g=-1,b=null;c&&(b=new ResizeObserver(V=>{let[N]=V;N&&N.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(t)})),a()}),m&&!d&&b.observe(m),b.observe(t));let y,w=d?ae(e):null;d&&v();function v(){const V=ae(e);w&&(V.x!==w.x||V.y!==w.y||V.width!==w.width||V.height!==w.height)&&a(),w=V,y=requestAnimationFrame(v)}return a(),()=>{var V;h.forEach(N=>{o&&N.removeEventListener("scroll",a),r&&N.removeEventListener("resize",a)}),f==null||f(),(V=b)==null||V.disconnect(),b=null,d&&cancelAnimationFrame(y)}}const Go=No,_o=(e,t,a)=>{const i=new Map,o={platform:Yo,...a},r={...o.platform,_c:i};return wo(e,t,{...o,platform:r})};function Xo(e){return e!=null&&typeof e=="object"&&"$el"in e}function ci(e){if(Xo(e)){const t=e.$el;return kt(t)&&K(t)==="#comment"?null:t}return e}function ri(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function si(e,t){const a=ri(e);return Math.round(t*a)/a}function Wo(e,t,a){a===void 0&&(a={});const i=a.whileElementsMounted,o=n.computed(()=>{var A;return(A=n.unref(a.open))!=null?A:!0}),r=n.computed(()=>n.unref(a.middleware)),c=n.computed(()=>{var A;return(A=n.unref(a.placement))!=null?A:"bottom"}),s=n.computed(()=>{var A;return(A=n.unref(a.strategy))!=null?A:"absolute"}),d=n.computed(()=>{var A;return(A=n.unref(a.transform))!=null?A:!0}),m=n.computed(()=>ci(e.value)),h=n.computed(()=>ci(t.value)),f=n.ref(0),g=n.ref(0),b=n.ref(s.value),y=n.ref(c.value),w=n.shallowRef({}),v=n.ref(!1),V=n.computed(()=>{const A={position:b.value,left:"0",top:"0"};if(!h.value)return A;const p=si(h.value,f.value),O=si(h.value,g.value);return d.value?{...A,transform:"translate("+p+"px, "+O+"px)",...ri(h.value)>=1.5&&{willChange:"transform"}}:{position:b.value,left:p+"px",top:O+"px"}});let N;function D(){m.value==null||h.value==null||_o(m.value,h.value,{middleware:r.value,placement:c.value,strategy:s.value}).then(A=>{f.value=A.x,g.value=A.y,b.value=A.strategy,y.value=A.placement,w.value=A.middlewareData,v.value=!0})}function I(){typeof N=="function"&&(N(),N=void 0)}function x(){if(I(),i===void 0){D();return}if(m.value!=null&&h.value!=null){N=i(m.value,h.value,D);return}}function L(){o.value||(v.value=!1)}return n.watch([r,c,s],D,{flush:"sync"}),n.watch([m,h],x,{flush:"sync"}),n.watch(o,L,{flush:"sync"}),n.getCurrentScope()&&n.onScopeDispose(I),{x:n.shallowReadonly(f),y:n.shallowReadonly(g),strategy:n.shallowReadonly(b),placement:n.shallowReadonly(y),middlewareData:n.shallowReadonly(w),isPositioned:n.shallowReadonly(v),floatingStyles:V,update:D}}function Uo(e,t){let a,i,o;const r=n.ref(!0),c=()=>{r.value=!0,o()};n.watch(e,c,{flush:"sync"});const s=typeof t=="function"?t:t.get,d=typeof t=="function"?void 0:t.set,m=n.customRef((h,f)=>(i=h,o=f,{get(){return r.value&&(a=s(),r.value=!1),i(),a},set(g){d==null||d(g)}}));return Object.isExtensible(m)&&(m.trigger=c),m}function et(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function ke(e){return typeof e=="function"?e():n.unref(e)}const di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qo=e=>e!=null,Ko=Object.prototype.toString,Jo=e=>Ko.call(e)==="[object Object]",tt=()=>{},Zo=Qo();function Qo(){var e,t;return di&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function el(e){return n.getCurrentInstance()}function nt(e,t=!0,a){el()?n.onMounted(e,a):t?e():n.nextTick(e)}function j(e){var t;const a=ke(e);return(t=a==null?void 0:a.$el)!=null?t:a}const ie=di?window:void 0;function he(...e){let t,a,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,o]=e,t=ie):[t,a,i,o]=e,!t)return tt;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],c=()=>{r.forEach(h=>h()),r.length=0},s=(h,f,g,b)=>(h.addEventListener(f,g,b),()=>h.removeEventListener(f,g,b)),d=n.watch(()=>[j(t),ke(o)],([h,f])=>{if(c(),!h)return;const g=Jo(f)?{...f}:f;r.push(...a.flatMap(b=>i.map(y=>s(h,b,y,g))))},{immediate:!0,flush:"post"}),m=()=>{d(),c()};return et(m),m}let ui=!1;function oe(e,t,a={}){const{window:i=ie,ignore:o=[],capture:r=!0,detectIframe:c=!1}=a;if(!i)return tt;Zo&&!ui&&(ui=!0,Array.from(i.document.body.children).forEach(g=>g.addEventListener("click",tt)),i.document.documentElement.addEventListener("click",tt));let s=!0;const d=g=>o.some(b=>{if(typeof b=="string")return Array.from(i.document.querySelectorAll(b)).some(y=>y===g.target||g.composedPath().includes(y));{const y=j(b);return y&&(g.target===y||g.composedPath().includes(y))}}),h=[he(i,"click",g=>{const b=j(e);if(!(!b||b===g.target||g.composedPath().includes(b))){if(g.detail===0&&(s=!d(g)),!s){s=!0;return}t(g)}},{passive:!0,capture:r}),he(i,"pointerdown",g=>{const b=j(e);s=!d(g)&&!!(b&&!g.composedPath().includes(b))},{passive:!0}),c&&he(i,"blur",g=>{setTimeout(()=>{var b;const y=j(e);((b=i.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&t(g)},0)})].filter(Boolean);return()=>h.forEach(g=>g())}function tl(){const e=n.ref(!1),t=n.getCurrentInstance();return t&&n.onMounted(()=>{e.value=!0},t),e}function Ot(e){const t=tl();return n.computed(()=>(t.value,!!e()))}function nl(e,t,a={}){const{window:i=ie,...o}=a;let r;const c=Ot(()=>i&&"MutationObserver"in i),s=()=>{r&&(r.disconnect(),r=void 0)},d=n.computed(()=>{const g=ke(e),b=(Array.isArray(g)?g:[g]).map(j).filter(qo);return new Set(b)}),m=n.watch(()=>d.value,g=>{s(),c.value&&g.size&&(r=new MutationObserver(t),g.forEach(b=>r.observe(b,o)))},{immediate:!0,flush:"post"}),h=()=>r==null?void 0:r.takeRecords(),f=()=>{s(),m()};return et(f),{isSupported:c,stop:f,takeRecords:h}}function al(e,t={}){const{window:a=ie}=t,i=Ot(()=>a&&"matchMedia"in a&&typeof a.matchMedia=="function");let o;const r=n.ref(!1),c=m=>{r.value=m.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",c):o.removeListener(c))},d=n.watchEffect(()=>{i.value&&(s(),o=a.matchMedia(ke(e)),"addEventListener"in o?o.addEventListener("change",c):o.addListener(c),r.value=o.matches)});return et(()=>{d(),s(),o=void 0}),r}function il(e){const t=n.getCurrentInstance(),a=Uo(()=>null,()=>t.proxy.$el);return n.onUpdated(a.trigger),n.onMounted(a.trigger),a}function mi(e,t,a={}){const{window:i=ie,...o}=a;let r;const c=Ot(()=>i&&"ResizeObserver"in i),s=()=>{r&&(r.disconnect(),r=void 0)},d=n.computed(()=>Array.isArray(e)?e.map(f=>j(f)):[j(e)]),m=n.watch(d,f=>{if(s(),c.value&&i){r=new ResizeObserver(t);for(const g of f)g&&r.observe(g,o)}},{immediate:!0,flush:"post"}),h=()=>{s(),m()};return et(h),{isSupported:c,stop:h}}function Ft(e,t={}){const{reset:a=!0,windowResize:i=!0,windowScroll:o=!0,immediate:r=!0}=t,c=n.ref(0),s=n.ref(0),d=n.ref(0),m=n.ref(0),h=n.ref(0),f=n.ref(0),g=n.ref(0),b=n.ref(0);function y(){const w=j(e);if(!w){a&&(c.value=0,s.value=0,d.value=0,m.value=0,h.value=0,f.value=0,g.value=0,b.value=0);return}const v=w.getBoundingClientRect();c.value=v.height,s.value=v.bottom,d.value=v.left,m.value=v.right,h.value=v.top,f.value=v.width,g.value=v.x,b.value=v.y}return mi(e,y),n.watch(()=>j(e),w=>!w&&y()),nl(e,y,{attributeFilter:["style","class"]}),o&&he("scroll",y,{capture:!0,passive:!0}),i&&he("resize",y,{passive:!0}),nt(()=>{r&&y()}),{height:c,bottom:s,left:d,right:m,top:h,width:f,x:g,y:b,update:y}}function ol(e,t={width:0,height:0},a={}){const{window:i=ie,box:o="content-box"}=a,r=n.computed(()=>{var f,g;return(g=(f=j(e))==null?void 0:f.namespaceURI)==null?void 0:g.includes("svg")}),c=n.ref(t.width),s=n.ref(t.height),{stop:d}=mi(e,([f])=>{const g=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(i&&r.value){const b=j(e);if(b){const y=b.getBoundingClientRect();c.value=y.width,s.value=y.height}}else if(g){const b=Array.isArray(g)?g:[g];c.value=b.reduce((y,{inlineSize:w})=>y+w,0),s.value=b.reduce((y,{blockSize:w})=>y+w,0)}else c.value=f.contentRect.width,s.value=f.contentRect.height},a);nt(()=>{const f=j(e);f&&(c.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const m=n.watch(()=>j(e),f=>{c.value=f?t.width:0,s.value=f?t.height:0});function h(){d(),m()}return{width:c,height:s,stop:h}}function at(e=il()){const t=n.shallowRef(),a=()=>{const i=j(e);i&&(t.value=i.parentElement)};return nt(a),n.watch(()=>ke(e),a),t}function It(e={}){const{window:t=ie,initialWidth:a=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:r=!0}=e,c=n.ref(a),s=n.ref(i),d=()=>{t&&(r?(c.value=t.innerWidth,s.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};if(d(),nt(d),he("resize",d,{passive:!0}),o){const m=al("(orientation: portrait)");n.watch(m,()=>d())}return{width:c,height:s}}const ll=["mini","tiny","small","medium","large","big","huge","massive"],le=()=>({size:{type:String,validator:e=>ll.includes(e)}}),ce=e=>({sizeClass:n.computed(()=>e.size)});function Mt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function fi(e){const t=e.getFullYear(),a=t+(-t+1)%10,i=new Date;return i.setFullYear(a,0,1),i.setHours(0,0,0,0),i}function hi(e,t=0){return(e.getDay()+t)%7}function Lt(e,t){const a=new Date(e.getTime());return a.setDate(a.getDate()+t),a}function gi(e,t){return Lt(e,-t)}function it(e,t){const a=new Date(e.getTime()),i=a.getMonth();return a.setMonth(i+t),a}function Et(e,t){return it(e,-t)}const De=["decade","year","month","day","hour"],Rt="month",_=Symbol("UseCalendar");function cl(e){const t=n.reactive({activeStartDate:Mt(e.activeStartDate||new Date),selectedDate:e.modelValue,view:e.defaultView||Rt}),a=n.computed(()=>t.activeStartDate),i=v=>t.activeStartDate=v,o=n.computed(()=>t.selectedDate),r=v=>t.selectedDate=v,c=n.computed(()=>t.view),s=v=>t.view=v,d=()=>{const v=De.indexOf(t.view);v>0?t.view=De[v-1]:t.view=e.defaultView||Rt},m=()=>{const v=De.indexOf(t.view);v{h.value.push(v)},g=v=>{v&&(h.value.forEach(V=>V(v)),t.view=e.defaultView||Rt)},b=n.computed(()=>a.value.getMonth()),y=n.computed(()=>e.locale?e.locale:new Intl.DateTimeFormat().resolvedOptions().locale);function w(v,V=void 0){return new Intl.DateTimeFormat(y.value,V).format(v)}return{activeStartDate:a,updateActiveStartDate:i,selectedDate:o,dateSelected:g,onDateSelected:f,updateSelectedDate:r,currentView:c,updateView:s,drillUpView:d,drillDownView:m,currentMonth:b,format:w}}const Te=n.defineComponent({props:{label:String,onLabelClick:Function,onPrev:Function,onNext:Function},setup(e){return()=>n.createVNode("tr",null,[n.createVNode("th",{colspan:7},[n.createVNode("span",{class:"link",onClick:()=>{var t;return(t=e.onLabelClick)==null?void 0:t.call(e)}},[e.label]),n.createVNode("span",{class:"prev link",onClick:()=>{var t;return(t=e.onPrev)==null?void 0:t.call(e)}},[n.createVNode("i",{class:"chevron left icon"},null)]),n.createVNode("span",{class:"next link",onClick:()=>{var t;return(t=e.onNext)==null?void 0:t.call(e)}},[n.createVNode("i",{class:"chevron right icon"},null)])])])}}),$e=n.defineComponent({props:{active:Boolean,disabled:Boolean,onClick:Function},setup(e,{slots:t}){const a=n.ref(!1),i=n.computed(()=>[e.active&&"active",a.value&&!e.disabled&&"focus"]);return()=>{var o;return n.createVNode("td",{class:i.value,onClick:e.onClick,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onMouseenter:()=>a.value=!0,onMouseleave:()=>a.value=!1},[(o=t.default)==null?void 0:o.call(t)])}}});function rl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const sl=n.defineComponent({props:{date:{type:Date,required:!0}},setup(e){const{selectedDate:t,updateSelectedDate:a,dateSelected:i,format:o}=n.inject(_),r=n.computed(()=>{var d;return e.date.getTime()===((d=t.value)==null?void 0:d.getTime())}),c=n.computed(()=>["link",{active:r.value}]),s=()=>{a(e.date),i(e.date)};return()=>{let d;return n.createVNode($e,{class:c.value,onClick:s},rl(d=o(e.date,{hour:"numeric",minute:"numeric"}))?d:{default:()=>[d]})}}}),Oe=n.defineComponent({props:{rows:{type:Number,required:!0},cols:{type:Number,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},step:{type:Number,default:1},dateTransform:Function,tile:Object},setup(e){const t=n.computed(()=>{const a=[];for(let i=e.start;i<=e.end*e.step;i+=e.step)a.push(i);return a});return()=>n.createVNode(n.Fragment,null,[Array.from({length:e.cols},(a,i)=>n.createVNode("tr",{key:i},[Array.from({length:e.rows}).map((o,r)=>n.h(e.tile,{date:e.dateTransform(t.value[i*e.rows+r])}))]))])}}),dl=n.defineComponent({props:{activeStartDate:{type:Date,required:!0}},setup(e){const t=n.computed(()=>e.activeStartDate.getFullYear()),a=n.computed(()=>e.activeStartDate.getMonth()),i=n.computed(()=>e.activeStartDate.getDate()),o=n.computed(()=>e.activeStartDate.getHours()),r=c=>{const s=new Date;return s.setFullYear(t.value,a.value,i.value),s.setHours(o.value,c,0,0),s};return()=>n.createVNode(Oe,{rows:3,cols:4,start:0,end:11,step:5,dateTransform:r,tile:sl},null)}}),ul=n.defineComponent({setup(){const{activeStartDate:e,updateActiveStartDate:t,updateView:a,format:i}=n.inject(_);return()=>n.createVNode("table",{class:"ui celled center aligned unstackable table minute three column"},[n.createVNode("thead",null,[n.createVNode(Te,{label:i(e.value,{day:"numeric",month:"long",year:"numeric"}),onLabelClick:()=>a("month"),onPrev:()=>t(gi(e.value,1)),onNext:()=>t(Lt(e.value,1))},null)]),n.createVNode("tbody",null,[n.createVNode(dl,{activeStartDate:e.value},null)])])}});function ml(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const fl=n.defineComponent({props:{date:{type:Date,required:!0}},setup(e){const{drillDownView:t,updateActiveStartDate:a,selectedDate:i,updateSelectedDate:o,format:r}=n.inject(_),c=n.computed(()=>{var m,h,f,g;return e.date.getFullYear()===((m=i.value)==null?void 0:m.getFullYear())&&e.date.getMonth()===((h=i.value)==null?void 0:h.getMonth())&&e.date.getDate()===((f=i.value)==null?void 0:f.getDate())&&e.date.getHours()===((g=i.value)==null?void 0:g.getHours())}),s=n.computed(()=>["link",{active:c.value}]),d=()=>{a(e.date),o(e.date),t()};return()=>{let m;return n.createVNode($e,{class:s.value,onClick:()=>d()},ml(m=r(e.date,{hour:"numeric",minute:"numeric"}))?m:{default:()=>[m]})}}}),hl=n.defineComponent({props:{activeStartDate:{type:Date,required:!0}},setup(e){const t=n.computed(()=>e.activeStartDate.getFullYear()),a=n.computed(()=>e.activeStartDate.getMonth()),i=n.computed(()=>e.activeStartDate.getDate()),o=r=>{const c=new Date;return c.setFullYear(t.value,a.value,i.value),c.setHours(r,0,0,0),c};return()=>n.createVNode(Oe,{rows:4,cols:6,start:0,end:24,dateTransform:o,tile:fl},null)}}),gl=n.defineComponent({setup(){const{activeStartDate:e,updateActiveStartDate:t,drillUpView:a,format:i}=n.inject(_);return()=>n.createVNode("table",{class:"ui celled center aligned unstackable table hour four column"},[n.createVNode("thead",null,[n.createVNode(Te,{label:i(e.value,{day:"numeric",month:"long",year:"numeric"}),onLabelClick:()=>a(),onPrev:()=>t(gi(e.value,1)),onNext:()=>t(Lt(e.value,1))},null)]),n.createVNode("tbody",null,[n.createVNode(hl,{activeStartDate:e.value},null)])])}}),bl=n.defineComponent({props:{localeFirstDayOfYear:Number},setup(e){const{format:t}=n.inject(_),i=Mt(new Date),o=i.getFullYear(),r=i.getMonth(),c=d=>new Date(o,r,d-hi(i,e.localeFirstDayOfYear)),s=Array.from({length:7},(d,m)=>c(m+1));return()=>n.createVNode("tr",null,[s.map((d,m)=>n.createVNode("th",{key:m},[t(d,{weekday:"narrow"})]))])}});function yl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Sl=n.defineComponent({props:{date:{type:Date,required:!0}},setup(e){const{currentMonth:t,drillDownView:a,selectedDate:i,updateSelectedDate:o,updateActiveStartDate:r}=n.inject(_),c=n.computed(()=>e.date.getMonth()===t.value),s=n.computed(()=>{const f=new Date;return e.date.getDate()===f.getDate()&&e.date.getMonth()===f.getMonth()&&e.date.getFullYear()===f.getFullYear()}),d=n.computed(()=>{var f,g,b;return e.date.getFullYear()===((f=i.value)==null?void 0:f.getFullYear())&&e.date.getMonth()===((g=i.value)==null?void 0:g.getMonth())&&e.date.getDate()===((b=i.value)==null?void 0:b.getDate())}),m=n.computed(()=>["link",{today:s.value},{active:d.value},{disabled:!c.value}]),h=()=>{if(c.value){if(r(e.date),i.value){const f=new Date(i.value);f.setDate(e.date.getDate()),o(f)}a()}};return()=>{let f;return n.createVNode($e,{class:m.value,disabled:!c.value,onClick:()=>h()},yl(f=e.date.getDate())?f:{default:()=>[f]})}}}),Cl=n.defineComponent({props:{activeStartDate:{type:Date,required:!0},localeFirstDayOfYear:Number},setup(e){const t=n.computed(()=>e.activeStartDate.getFullYear()),a=n.computed(()=>e.activeStartDate.getMonth()),i=s=>{const d=new Date;return d.setFullYear(t.value,a.value,s),d.setHours(0,0,0,0),d},o=n.computed(()=>hi(Mt(e.activeStartDate),e.localeFirstDayOfYear)),r=n.computed(()=>1-o.value),c=n.computed(()=>42+r.value);return()=>n.createVNode(Oe,{rows:7,cols:6,start:r.value,end:c.value,dateTransform:i,tile:Sl},null)}}),vl=n.defineComponent({props:{localeFirstDayOfYear:Number},setup(e){const{activeStartDate:t,updateActiveStartDate:a,drillUpView:i,format:o}=n.inject(_);return()=>n.createVNode("table",{class:"ui celled center aligned unstackable table day seven column"},[n.createVNode("thead",null,[n.createVNode(Te,{label:o(t.value,{month:"long",year:"numeric"}),onLabelClick:i,onPrev:()=>a(Et(t.value,1)),onNext:()=>a(it(t.value,1))},null),n.createVNode(bl,{localeFirstDayOfYear:e.localeFirstDayOfYear},null)]),n.createVNode("tbody",null,[n.createVNode(Cl,{activeStartDate:t.value,localeFirstDayOfYear:e.localeFirstDayOfYear},null)])])}});function wl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Vl=n.defineComponent({props:{date:{type:Date,required:!0}},setup(e){const{drillDownView:t,updateActiveStartDate:a,selectedDate:i,format:o}=n.inject(_),r=n.computed(()=>{var m,h;return e.date.getFullYear()===((m=i.value)==null?void 0:m.getFullYear())&&e.date.getMonth()===((h=i.value)==null?void 0:h.getMonth())}),c=n.computed(()=>{const m=new Date;return e.date.getMonth()===m.getMonth()&&e.date.getFullYear()===m.getFullYear()}),s=n.computed(()=>["link",{today:c.value}]),d=()=>{a(e.date),t()};return()=>{let m;return n.createVNode($e,{class:s.value,active:r.value,onClick:()=>d()},wl(m=o(e.date,{month:"short"}))?m:{default:()=>[m]})}}}),Bl=n.defineComponent({props:{activeStartDate:{type:Date,required:!0}},setup(e){const t=n.computed(()=>e.activeStartDate.getFullYear()),a=i=>{const o=new Date;return o.setFullYear(t.value,i,1),o.setHours(0,0,0,0),o};return()=>n.createVNode(Oe,{rows:3,cols:4,start:0,end:12,dateTransform:a,tile:Vl},null)}}),Nl=n.defineComponent({setup(){const{activeStartDate:e,updateActiveStartDate:t,drillUpView:a,format:i}=n.inject(_);return()=>n.createVNode("table",{class:"ui celled center aligned unstackable table month three column"},[n.createVNode("thead",null,[n.createVNode(Te,{label:i(e.value,{year:"numeric"}),onLabelClick:a,onPrev:()=>t(Et(e.value,12)),onNext:()=>t(it(e.value,12))},null)]),n.createVNode("tbody",null,[n.createVNode(Bl,{activeStartDate:e.value},null)])])}});function xl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Al=n.defineComponent({props:{date:{type:Date,required:!0}},setup(e){const{drillDownView:t,updateActiveStartDate:a,selectedDate:i,format:o}=n.inject(_),r=n.computed(()=>{var m;return e.date.getFullYear()===((m=i.value)==null?void 0:m.getFullYear())}),c=n.computed(()=>{const m=new Date;return e.date.getFullYear()===m.getFullYear()}),s=n.computed(()=>["link",{today:c.value}]),d=()=>{a(e.date),t()};return()=>{let m;return n.createVNode($e,{class:s.value,active:r.value,onClick:()=>d()},xl(m=o(e.date,{year:"numeric"}))?m:{default:()=>[m]})}}}),kl=n.defineComponent({props:{activeStartDate:{type:Date,required:!0}},setup(e){const t=n.computed(()=>fi(e.activeStartDate).getFullYear()),a=n.computed(()=>t.value+11),i=o=>{const r=new Date;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r};return()=>n.createVNode(Oe,{rows:3,cols:4,start:t.value,end:a.value,dateTransform:i,tile:Al},null)}}),Dl=n.defineComponent({setup(){const{activeStartDate:e,updateActiveStartDate:t,drillUpView:a}=n.inject(_),i=n.computed(()=>fi(e.value)),o=n.computed(()=>{const r=i.value.getFullYear(),c=r+11;return`${r} - ${c}`});return()=>n.createVNode("table",{class:"ui celled center aligned unstackable table year three column"},[n.createVNode("thead",null,[n.createVNode(Te,{label:o.value,onLabelClick:a,onPrev:()=>t(Et(e.value,120)),onNext:()=>t(it(e.value,120))},null)]),n.createVNode("tbody",null,[n.createVNode(kl,{activeStartDate:i.value},null)])])}}),Pt=n.defineComponent({props:{activeStartDate:Date,defaultView:{type:String,default:"month"},disabled:Boolean,locale:String,localeFirstDayOfYear:{type:Number,default:0},modelValue:Date,inline:Boolean,inverted:Boolean,placeholder:String,showIcon:{type:Boolean,default:!0},...le()},emits:["update:modelValue","dateSelected"],setup(e,{emit:t}){const a=cl(e);n.provide(_,a);const{currentView:i,selectedDate:o,onDateSelected:r,format:c}=a,s=n.ref(!1);r(w=>{t("update:modelValue",w),t("dateSelected",w),s.value=!1});const{sizeClass:d}=ce(e),m=n.computed(()=>S("ui",e.disabled&&"disabled",e.inverted&&"inverted",d.value,"calendar")),h=n.ref(),f=n.ref(),{floatingStyles:g,placement:b}=Wo(h,f,{middleware:[Go({allowedPlacements:["top-start","bottom-start"]})],whileElementsMounted:Ho});oe(f,()=>s.value=!1);const y=()=>{const w=n.computed(()=>S(!e.inline&&"ui popup visible",s.value&&"active",e.inverted&&"inverted","calendar",b.value==="top-start"&&"top left",b.value==="bottom-start"&&"bottom left")),v=n.computed(()=>({display:s.value?"block":"none",maxWidth:"250px",minWidth:"min-content",top:b.value==="top-start"?"-1em":"0"}));return n.createVNode("div",{ref:f,class:w.value,style:e.inline?void 0:{...g.value,...v.value}},[i.value==="hour"&&n.createVNode(ul,{class:e.inverted?"inverted":""},null),i.value==="day"&&n.createVNode(gl,{class:e.inverted?"inverted":""},null),i.value==="month"&&n.createVNode(vl,{localeFirstDayOfYear:e.localeFirstDayOfYear,class:e.inverted?"inverted":""},null),i.value==="year"&&n.createVNode(Nl,{class:e.inverted?"inverted":""},null),i.value==="decade"&&n.createVNode(Dl,{class:e.inverted?"inverted":""},null)])};return()=>n.createVNode("div",{class:m.value},[e.inline&&y(),!e.inline&&n.createVNode(n.Fragment,null,[n.createVNode("div",{ref:h,class:["ui input",e.showIcon&&"left icon"]},[e.showIcon&&n.createVNode("i",{class:"calendar icon"},null),n.createVNode("input",{type:"text",placeholder:e.placeholder,value:o.value?c(o.value,{dateStyle:"long",timeStyle:"short",hour12:!0}):"",onClick:()=>s.value=!s.value},null)]),y()])])}}),Tl={install:e=>{e.component("SuiCalendar",Pt)}},zt=n.defineComponent({props:{centered:Boolean,color:String,disabled:Boolean,fluid:Boolean,horizontal:Boolean,href:String,link:Boolean,primary:Boolean,raised:Boolean,secondary:Boolean,...Ya(),...le()},setup:(e,{slots:t})=>{const{loadingClasses:a}=pa(e),{sizeClass:i}=ce(e),o=n.computed(()=>S("ui",e.color,l(e.centered,"centered"),l(e.disabled,"disabled"),l(e.fluid,"fluid"),l(e.horizontal,"horizontal"),l(e.link,"link"),l(e.primary,"primary"),l(e.raised,"raised"),l(e.secondary,"secondary"),a.value,i.value,"card"));return()=>{var r,c;return e.href||e.link?n.createVNode("a",{class:o.value,href:e.href},[(r=t.default)==null?void 0:r.call(t)]):n.createVNode("div",{class:o.value},[(c=t.default)==null?void 0:c.call(t)])}}}),jt=n.defineComponent({props:{extra:Boolean,header:String},setup:(e,{slots:t})=>{const a=n.computed(()=>S(l(e.extra,"extra"),"content"));return()=>{var i,o,r,c;return n.createVNode("div",{class:a.value},[e.header&&n.createVNode("div",{class:"header"},[e.header]),t.header&&n.createVNode("div",{class:"header"},[(i=t.header)==null?void 0:i.call(t)]),t.meta&&n.createVNode("div",{class:"meta"},[(o=t.meta)==null?void 0:o.call(t)]),t.description&&n.createVNode("div",{class:"description"},[(r=t.description)==null?void 0:r.call(t)]),(c=t.default)==null?void 0:c.call(t)])}}}),Yt=n.defineComponent({props:{textAlign:String},setup(e){return{computedClass:n.computed(()=>S($(e.textAlign,"aligned"),"description"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),pt=n.defineComponent({props:{basic:Boolean,centered:Boolean,doubling:Boolean,horizontal:Boolean,inverted:Boolean,itemsPerRow:Number,stackable:Boolean},setup(e){return{classes:n.computed(()=>S("ui",l(e.basic,"basic"),l(e.centered,"centered"),l(e.doubling,"doubling"),l(e.horizontal,"horizontal"),l(e.inverted,"inverted"),l(e.stackable,"stackable"),q(e.itemsPerRow,""),"cards"))}},render(){var e,t;return n.createVNode("div",{class:this.classes},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Ht=n.defineComponent({props:{textAlign:String},setup(e){return{computedClass:n.computed(()=>S($(e.textAlign,"aligned"),"header"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Gt=n.defineComponent({render(){var e,t;return n.h("div",{class:"meta"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),$l={install(e){e.component("SuiCard",zt),e.component("SuiCardContent",jt),e.component("SuiCardDescription",Yt),e.component("SuiCardGroup",pt),e.component("SuiCardHeader",Ht),e.component("SuiCardMeta",Gt)}},_t=n.defineComponent({emits:["update:modelValue","change","click"],props:{disabled:Boolean,indeterminate:Boolean,label:String,modelValue:null,radio:Boolean,readOnly:Boolean,slider:Boolean,toggle:Boolean,value:null},setup(e,{emit:t}){const a=n.computed(()=>S("ui",!e.label&&"fitted",l(e.disabled,"disabled"),l(e.indeterminate,"indeterminate"),l(e.radio,"radio"),l(e.readOnly,"read-only"),l(e.slider,"slider"),l(e.toggle,"toggle"),"checkbox")),i=n.computed(()=>Array.isArray(e.modelValue)?e.modelValue.includes(e.value):e.modelValue);return{computedClass:a,checked:i,onClick:r=>{if(e.disabled||e.readOnly)return;let c;e.value?i.value?c=e.modelValue.filter(s=>e.value!==s):c=e.modelValue?[...e.modelValue,e.value]:[e.value]:c=!e.modelValue,t("change",r),t("click",r),t("update:modelValue",c)}}},render(){return n.createVNode("div",{class:this.computedClass,onClick:this.onClick},[n.createVNode("input",{type:this.radio?"radio":"checkbox",class:"hidden",checked:this.checked,readonly:!0},null),n.createVNode("label",null,[this.label])])}}),Ol={install(e){e.component("SuiCheckbox",_t)}},ot=n.defineComponent({name:"SuiCommentAvatar",props:{as:String,src:String},render(){let e=this.$props.as||"div";return this.src?n.h(e,{class:"avatar"},n.h("img",{src:this.$props.src})):n.createVNode("div",{class:"avatar"},[this.$slots.default&&this.$slots.default()])}});function Fl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Xt=n.defineComponent({props:{disabled:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S(e.disabled&&"disabled","comment"));return()=>{let i;return n.createVNode("div",{class:a.value},[t.avatar&&n.createVNode(ot,{as:"a"},Fl(i=t.avatar())?i:{default:()=>[i]}),n.createVNode("div",{class:"content"},[t.author&&n.createVNode("a",{class:"author"},[t.author()]),t.metadata&&n.createVNode("div",{class:"metadata"},[t.metadata()]),t.text&&n.createVNode("div",{class:"text"},[t.text()]),t.actions&&n.createVNode("div",{class:"actions"},[t.actions()])]),t.default&&t.default()])}}}),Wt=n.defineComponent({props:{active:Boolean},setup(e){const{active:t}=e;return{computedClass:n.computed(()=>S(l(t,"active")))}},render(){var e,t,a,i;return this.computedClass?n.h("a",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e)):n.h("a",{},(i=(a=this.$slots).default)==null?void 0:i.call(a))}}),Ut=n.defineComponent({render(){var e,t;return n.h("div",{class:"actions"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),qt=n.defineComponent({props:{as:String},render(){var t,a;let e=this.$props.as||"div";return n.h(e,{class:"author"},(a=(t=this.$slots).default)==null?void 0:a.call(t))}}),Kt=n.defineComponent({render(){var e,t;return n.h("div",{class:"content"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Jt=n.defineComponent({props:{collapsed:Boolean,inverted:Boolean,minimal:Boolean,size:String,threaded:Boolean},setup(e){return{computedClass:n.computed(()=>S("ui",e.size,l(e.collapsed,"collapsed"),l(e.inverted,"inverted"),l(e.minimal,"minimal"),l(e.threaded,"threaded"),"comments"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Zt=n.defineComponent({render(){var e,t;return n.h("div",{class:"metadata"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Qt=n.defineComponent({render(){var e,t;return n.h("div",{class:"text"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Il={install(e){e.component("SuiComment",Xt),e.component("SuiCommentAction",Wt),e.component("SuiCommentActions",Ut),e.component("SuiCommentAuthor",qt),e.component("SuiCommentAvatar",ot),e.component("SuiCommentContent",Kt),e.component("SuiCommentGroup",Jt),e.component("SuiCommentMetadata",Zt),e.component("SuiCommentText",Qt)}},en=n.defineComponent({props:{fluid:Boolean,text:Boolean,textAlign:String},setup(e){return{computedClass:n.computed(()=>S("ui",l(e.fluid,"fluid"),l(e.text,"text"),de(e.textAlign),"container"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Ml={install(e){e.component("SuiContainer",en)}},tn=n.defineComponent({props:{active:Boolean,inverted:Boolean,page:Boolean,simple:Boolean,verticalAlign:String},setup(e){return{computedClass:n.computed(()=>S("ui",l(e.active,"active"),l(e.inverted,"inverted"),l(e.page,"page"),l(e.simple,"simple"),$(e.verticalAlign,"aligned"),"dimmer"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),nn=n.defineComponent((e,{slots:t})=>{const a=n.computed(()=>S("ui",l(e.blurring,"blurring"),"dimmable","segment"));return()=>{var i;return n.createVNode("div",{class:a.value},[(i=t.default)==null?void 0:i.call(t)])}},{props:{blurring:Boolean}}),Ll={install(e){e.component("SuiDimmer",tn),e.component("SuiDimmerDimmable",nn)}},an=n.defineComponent({props:{clearing:Boolean,fitted:Boolean,hidden:Boolean,horizontal:Boolean,inverted:Boolean,section:Boolean,textAlign:String,vertical:Boolean,...le()},setup(e){const{sizeClass:t}=ce(e);return{classes:n.computed(()=>S("ui",t.value,l(e.clearing,"clearing"),l(e.fitted,"fitted"),l(e.hidden,"hidden"),l(e.horizontal,"horizontal"),l(e.inverted,"inverted"),l(e.section,"section"),l(e.vertical,"vertical"),$(e.textAlign,"aligned"),"divider"))}},render(){var e,t;return n.h("div",{class:this.classes},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),El={install(e){e.component("SuiDivider",an)}},Rl=n.defineComponent({props:{active:Boolean,direction:{type:String,default:"down"}},emits:["update:direction"],setup(e,{emit:t,slots:a}){const i=n.ref(),o=n.ref(!1),r=at(i),{height:c}=It(),{top:s,bottom:d}=Ft(r);n.watchEffect(()=>{const b=s.value,y=c.value-d.value,w=b>240&&y<240?"up":"down";t("update:direction",w)});const m=n.computed(()=>S("scrollhint menu")),h=n.computed(()=>({display:o.value?"block":"none",transformOrigin:e.direction==="up"?"bottom center":"top center"})),f=()=>{var b;(b=i.value)==null||b.animate([{transform:"scaleY(0)"},{transform:"scaleY(1)"}],150),o.value=!0},g=()=>{var y;const b=(y=i.value)==null?void 0:y.animate([{transform:"scaleY(1)"},{transform:"scaleY(0)"}],150);b&&(b.onfinish=()=>o.value=!1)};return n.watch(()=>e.active,b=>{b?f():g()}),()=>{var b;return n.createVNode("div",{ref:i,class:m.value,style:h.value},[(b=a.default)==null?void 0:b.call(a)])}}}),bi=["top","middle","bottom"],Pl={verticalAlign:{type:String,validator:e=>bi.includes(e)}};function zl(e){return{verticalAlignClass:n.computed(()=>e.verticalAlign&&bi.includes(e.verticalAlign)?`${e.verticalAlign} aligned`:null)}}const jl=["left","right"],Yl={floated:{type:String,validator:e=>jl.includes(e)}};function pl(e){return{floatedClass:n.computed(()=>e.floated&&(e.floated==="left"||e.floated==="right")?`${e.floated} floated`:null)}}const on=n.defineComponent({props:{is:String},setup:(e,{attrs:t,slots:a})=>{const i=e.is||"div";return()=>{var o;return n.h(i,{...t},(o=a.default)==null?void 0:o.call(a))}}}),re=n.defineComponent({props:{as:String,attached:String,basic:Boolean,circular:Boolean,color:String,content:String,corner:String,empty:Boolean,floating:Boolean,horizontal:Boolean,icon:String,iconPos:String,image:Boolean,inverted:Boolean,pointing:[Boolean,String],prompt:Boolean,ribbon:[Boolean,String],size:String,tag:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S("ui",e.size,e.color,l(e.basic,"basic"),l(e.circular,"circular"),l(e.empty,"empty"),l(e.floating,"floating"),l(e.horizontal,"horizontal"),l(!!e.icon&&!e.content&&!t.default,"icon"),l(e.iconPos==="right","right icon"),l(e.image,"image"),l(e.inverted,"inverted"),l(e.prompt,"prompt"),l(e.tag,"tag"),$(e.attached,"attached"),$(e.corner,"corner"),T(e.pointing,"pointing"),T(e.ribbon,"ribbon"),"label")),i=e.as||"div";return()=>n.createVNode(on,{is:i,class:a.value},{default:()=>{var o;return[e.icon&&e.iconPos!=="right"&&n.createVNode(z,{name:e.icon},null),e.content,(o=t.default)==null?void 0:o.call(t),e.icon&&e.iconPos==="right"&&n.createVNode(z,{name:e.icon},null)]}})}}),ln=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"detail"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),cn=n.defineComponent({props:{basic:Boolean,circular:Boolean,color:String,size:String,tag:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S("ui",e.color,e.size,l(e.basic,"basic"),l(e.circular,"circular"),l(e.tag,"tag"),"labels"));return()=>{var i;return n.h("div",{class:a.value},(i=t.default)==null?void 0:i.call(t))}}}),Hl={install(e){e.component("SuiLabel",re),e.component("SuiLabelDetail",ln),e.component("SuiLabelGroup",cn)}},se=n.defineComponent({props:{as:String,avatar:Boolean,bordered:Boolean,centered:Boolean,circular:Boolean,disabled:Boolean,fluid:Boolean,hidden:Boolean,href:String,inline:Boolean,label:Object,target:String,wrapped:Boolean,rounded:Boolean,size:String,spaced:[Boolean,String],src:String,...Pl,...Yl},setup(e,{slots:t}){const{verticalAlignClass:a}=zl(e),{floatedClass:i}=pl(e),o=n.computed(()=>S("ui",e.size,a.value,i.value,l(e.avatar,"avatar"),l(e.bordered,"bordered"),l(e.centered,"centered"),l(e.circular,"circular"),l(e.disabled,"disabled"),l(e.fluid,"fluid"),l(e.hidden,"hidden"),l(e.inline,"inline"),l(e.rounded,"rounded"),T(e.spaced,"spaced"),"image"));if(e.as==="a"||e.as==="router-link"){let r=e.as;return e.as==="router-link"&&(r=n.resolveComponent(e.as)),()=>{var c;return n.h(r,{class:o.value,href:e.href,target:e.target&&e.target},n.h("img",{src:e.src},(c=t.default)==null?void 0:c.call(t)))}}return e.wrapped?()=>{var r;return n.h("div",{class:o.value},n.h("img",{src:e.src},(r=t.default)==null?void 0:r.call(t)))}:e.label?()=>n.h("div",{class:o.value},[n.h("img",{src:e.src}),n.h(re,{...e.label})]):()=>n.createVNode("img",{class:o.value,src:e.src},null)}}),Gl=n.defineComponent({props:{active:Boolean,option:[String,Object]},emits:["select"],setup(e,{emit:t}){const a=n.computed(()=>{var d;return["item",typeof e.option=="object"&&((d=e.option)!=null&&d.disabled)?"disabled":void 0,{active:e.active}]}),i=n.computed(()=>{var d;return typeof e.option=="string"?e.option:(d=e.option)==null?void 0:d.text}),o=n.computed(()=>{var d;return typeof e.option=="string"?e.option:(d=e.option)==null?void 0:d.value}),r=n.computed(()=>{var d;return typeof e.option=="object"?(d=e.option)==null?void 0:d.flag:void 0}),c=n.computed(()=>{var d;return typeof e.option=="object"?(d=e.option)==null?void 0:d.image:void 0}),s=n.computed(()=>{var d;return typeof e.option=="object"?(d=e.option)==null?void 0:d.icon:void 0});return()=>n.createVNode("div",{class:a.value,"data-value":o.value,onClick:()=>t("select",e.option)},[s.value&&n.createVNode(z,{name:s.value},null),r.value&&n.createVNode("i",{class:`${r.value} flag`},null),c.value&&n.createVNode(se,c.value,null),i.value])}}),_l=n.defineComponent({props:{active:Boolean,option:{type:[String,Object],required:!0},onClick:Function},emits:["remove"],setup(e,{emit:t}){const a=n.ref(),i=n.computed(()=>["ui label",{active:e.active}]),o=n.computed(()=>{var s;return typeof e.option=="string"?e.option:(s=e.option)==null?void 0:s.text}),r=n.computed(()=>{var s;return typeof e.option=="string"?e.option:(s=e.option)==null?void 0:s.value}),c=n.computed(()=>{var s;return typeof e.option=="object"?(s=e.option)==null?void 0:s.flag:void 0});return n.onMounted(()=>{a.value&&a.value.animate([{transform:"scale(0)"},{transform:"scale(1)"}],{duration:100,easing:"ease-out"})}),()=>n.createVNode("a",{ref:a,class:i.value,style:"display: inline-block !important;","data-value":r.value,onClick:n.withModifiers(()=>e.onClick&&e.onClick(e.option),["stop"])},[c.value&&n.createVNode("i",{class:`${c.value} flag`},null),o.value,n.createVNode("i",{class:"delete icon",onClick:n.withModifiers(()=>t("remove",e.option),["stop"])},null)])}}),Xl=n.defineComponent({props:{items:{type:Array,required:!0}},emits:["remove"],setup(e,{emit:t}){const a=n.ref(-1),i=at();return oe(i,()=>a.value=-1),()=>e.items.map((o,r)=>n.createVNode(_l,{key:r,active:r===a.value,option:o,onClick:()=>a.value=r,onRemove:c=>{a.value=-1,t("remove",c)}},null))}}),Wl=n.defineComponent({props:{active:Boolean,clearable:Boolean,placeholder:String,search:Boolean,searchText:String,value:[String,Object]},emits:["clear","remove","dropdown","update:searchText"],setup(e,{emit:t}){const a=n.ref(),i=n.computed(()=>{var d;return typeof e.value=="string"?e.value:Array.isArray(e.value)?e.value.map(m=>typeof m=="string"?m:m.text).join(", "):(d=e.value)==null?void 0:d.text}),o=n.computed(()=>!!(e.value===void 0||e.value===null||Array.isArray(e.value)&&e.value.length===0)),r=()=>{e.search&&a.value&&(a.value.value="",t("update:searchText",""))},c=d=>{e.active&&(d.stopPropagation(),d.preventDefault())},s=d=>{d.preventDefault(),d.stopPropagation(),t("clear")};return n.watch(()=>e.active,d=>{var m;if(d)return(m=a.value)==null?void 0:m.focus();r()}),n.watch(()=>e.value,(d,m)=>{var h;!Array.isArray(d)||!Array.isArray(m)||d.length>m.length&&((h=a.value)==null||h.focus(),r())}),()=>{var d,m,h,f;return n.createVNode(n.Fragment,null,[n.createVNode("input",{type:"hidden",value:i.value},null),n.createVNode("i",{class:"dropdown icon",onClick:n.withModifiers(()=>t("dropdown"),["stop"])},null),e.clearable&&n.createVNode("i",{class:"remove icon",onClick:s},null),Array.isArray(e.value)&&n.createVNode(Xl,{items:e.value,onRemove:g=>t("remove",g)},null),e.search&&n.createVNode("input",{ref:a,class:"search",tabindex:0,onInput:g=>t("update:searchText",g.target.value),onClick:c},null),n.createVNode("div",{class:S(o.value&&"default",e.searchText&&"filtered","text")},[o.value&&e.placeholder,typeof e.value=="string"&&e.value,!Array.isArray(e.value)&&typeof e.value=="object"&&n.createVNode(n.Fragment,null,[((d=e.value)==null?void 0:d.icon)&&n.createVNode(z,{name:e.value.icon},null),((m=e.value)==null?void 0:m.flag)&&n.createVNode("i",{class:`${e.value.flag} flag`},null),((h=e.value)==null?void 0:h.image)&&n.createVNode(se,e.value.image,null),(f=e.value)==null?void 0:f.text])])])}}});function Ul(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const ql=n.defineComponent({props:{clearable:Boolean,fluid:Boolean,modelValue:[String,Object,Array],multiple:Boolean,options:{type:Array,default:()=>[]},placeholder:String,search:Boolean,disabled:Boolean},setup(e,{emit:t}){const a=n.ref(),i=n.ref(!1),o=n.ref(""),r=n.ref("down"),c=n.computed(()=>S("ui",i.value&&"active",r.value==="up"&&"upward",e.clearable&&"clearable",e.fluid&&"fluid",e.multiple&&"multiple",e.search&&"search",e.disabled&&"disabled","selection dropdown")),s=n.computed(()=>{let g=e.options;return e.multiple&&(g=g.filter(b=>Array.isArray(e.modelValue)?!e.modelValue.some(y=>JSON.stringify(y)===JSON.stringify(b)):JSON.stringify(b)!==JSON.stringify(e.modelValue))),e.search?g.filter(b=>typeof b=="string"?b.toLowerCase().includes(o.value.toLowerCase()):b.text.toLowerCase().includes(o.value.toLowerCase())):g}),d=()=>{e.multiple&&i.value||(i.value=!i.value)},m=()=>{i.value&&(i.value=!1),t("update:modelValue",void 0)},h=g=>{if(!Array.isArray(e.modelValue))return;const b=e.modelValue.filter(y=>JSON.stringify(y)!==JSON.stringify(g));t("update:modelValue",b)},f=g=>{if(e.search&&(o.value=""),e.multiple){const b=Array.isArray(e.modelValue)?[...e.modelValue,g]:[g];return t("update:modelValue",b)}t("update:modelValue",g)};return oe(a,()=>i.value=!1),()=>{let g;return n.createVNode("div",{ref:a,class:c.value,onClick:d},[n.createVNode(Wl,{active:i.value,clearable:e.clearable,placeholder:e.placeholder,search:e.search,value:e.modelValue,searchText:o.value,"onUpdate:searchText":b=>o.value=b,onClear:m,onRemove:h,onDropdown:()=>i.value=!i.value},null),s.value.length>0&&n.createVNode(Rl,{active:i.value,direction:r.value,"onUpdate:direction":b=>r.value=b},Ul(g=s.value.map((b,y)=>n.createVNode(Gl,{key:typeof b=="string"?b:b.text,active:JSON.stringify(e.modelValue)===JSON.stringify(b),option:b,onSelect:f},null)))?g:{default:()=>[g]})])}}}),yi=n.defineComponent({props:{active:Boolean,direction:{type:String,default:"down"}},setup(e,{slots:t}){const a=n.ref(),i=n.ref(!1),o=at(a),r=n.computed(()=>{var h;return!((h=o.value)!=null&&h.classList.contains("ui"))}),c=n.computed(()=>S(r.value&&e.direction==="up"&&"upward","menu")),s=n.computed(()=>({display:i.value?"block":"none",transformOrigin:e.direction==="up"?"bottom center":"top center"})),d=()=>{var h;(h=a.value)==null||h.animate([{transform:"scaleY(0)"},{transform:"scaleY(1)"}],150),i.value=!0},m=()=>{var f;const h=(f=a.value)==null?void 0:f.animate([{transform:"scaleY(1)"},{transform:"scaleY(0)"}],150);h&&(h.onfinish=()=>i.value=!1)};return n.watch(()=>e.active,h=>{h?d():m()}),()=>{var h,f;return n.createVNode("div",{ref:a,class:c.value,style:s.value},[t.inMenu&&((h=t.search)==null?void 0:h.call(t)),t.inMenu&&n.createVNode("div",{class:"scrolling menu",style:{display:i.value?"block":"none"}},[t.inMenu()]),(f=t.default)==null?void 0:f.call(t)])}}});function Kl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Si=n.defineComponent({props:{active:Boolean,item:[String,Object]},emits:["select"],setup(e,{emit:t}){const a=n.ref(),i=n.ref(!1),o=n.ref("down"),r=n.computed(()=>{var f;return typeof e.item=="string"?e.item:(f=e.item)==null?void 0:f.text}),c=n.computed(()=>typeof e.item=="object"&&e.item.divider),s=n.computed(()=>typeof e.item=="object"&&e.item.header),d=n.computed(()=>S(e.active&&"active","item")),m=f=>{typeof f=="object"&&f.action&&f.action(),t("select",f)},h=()=>{var v,V;if(!a.value||typeof e.item!="object"||!e.item.children)return;const{height:f}=It(),{top:g,height:b}=Ft(a),y=f.value-g.value,w=((V=(v=e.item)==null?void 0:v.children)==null?void 0:V.length)*b.value;o.value=y{var g,b,y;let f;return n.createVNode(n.Fragment,null,[c.value&&n.createVNode("div",{class:"divider"},null),s.value&&typeof e.item=="object"&&n.createVNode("div",{class:"header",onClick:n.withModifiers(()=>{},["stop"])},[((g=e.item)==null?void 0:g.icon)&&n.createVNode("i",{class:`${e.item.icon} icon`},null),(b=e.item)==null?void 0:b.header]),!c.value&&!s.value&&n.createVNode("div",{ref:a,class:d.value,onClick:()=>m(e.item),onMouseenter:h,onMouseleave:()=>i.value=!1},[typeof e.item=="object"&&e.item.icon&&n.createVNode("i",{class:`${e.item.icon} icon`},null),typeof e.item=="object"&&e.item.description&&n.createVNode("span",{class:"description"},[(y=e.item)==null?void 0:y.description]),typeof e.item=="object"&&e.item.label&&n.createVNode(re,e.item.label,null),typeof e.item=="object"&&e.item.image&&n.createVNode(se,e.item.image,null),r.value,typeof e.item=="object"&&e.item.children&&n.createVNode(yi,{active:i.value,direction:o.value},Kl(f=e.item.children.map(w=>n.createVNode(Si,{item:w},null)))?f:{default:()=>[f]})])])}}}),Ci=n.defineComponent({props:{modelValue:String,inMenu:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){return()=>e.inMenu?n.createVNode("div",{class:"ui icon search input"},[n.createVNode("i",{class:"search icon"},null),n.createVNode("input",{type:"text",value:e.modelValue,onClick:n.withModifiers(()=>{},["stop"]),onInput:a=>t("update:modelValue",a.target.value)},null)]):n.createVNode("input",{type:"text",class:"search",tabindex:0,value:e.modelValue,onInput:a=>t("update:modelValue",a.target.value)},null)}}),Jl=n.defineComponent({props:{filtered:Boolean,icon:{type:String,default:"dropdown"},label:Object,image:Object,selectable:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S("text",e.filtered&&"filtered"));return()=>{var i;return n.createVNode(n.Fragment,null,[n.createVNode("div",{class:a.value},[e.selectable&&e.label&&n.createVNode(re,e.label,null),e.selectable&&e.image&&n.createVNode(se,e.image,null),(i=t.default)==null?void 0:i.call(t)]),n.createVNode("i",{class:S(e.icon,"icon")},null)])}}}),rn=n.defineComponent({props:{button:Boolean,clearable:Boolean,floating:Boolean,fluid:Boolean,icon:String,inline:Boolean,item:Boolean,labeled:Boolean,modelValue:[Object,String,Array],multiple:Boolean,options:{type:Array,default:()=>[]},placeholder:String,pointing:[String,Boolean],search:Boolean,searchInMenu:Boolean,selection:Boolean,selectable:Boolean,disabled:Boolean,text:String},emits:["update:modelValue"],setup(e,{emit:t}){const a=n.ref(),i=n.ref(!1),o=n.ref(""),r=n.ref("down"),c=n.computed(()=>{const y=e.modelValue;return!y||!e.search&&!e.selectable&&!e.inline?e.text:typeof y=="string"?y:y.text}),s=n.computed(()=>!e.search&&!e.searchInMenu?e.options:e.options.filter(y=>{var w;return typeof y=="string"?y.toLowerCase().includes(o.value.toLowerCase()):(w=y.text)==null?void 0:w.toLowerCase().includes(o.value.toLowerCase())})),{height:d}=It(),{top:m,bottom:h}=Ft(a);n.watchEffect(()=>{const y=m.value,w=d.value-h.value;r.value=y>240&&w<240?"up":"down"});const f=n.computed(()=>S("ui",i.value&&"active",r.value==="up"&&"upward",e.button&&"button",e.floating&&"floating",e.labeled&&"labeled",e.icon&&"icon",e.inline&&"inline",e.item&&"item",e.pointing&&`${e.pointing} pointing`,e.search&&"search",e.disabled&&"disabled","dropdown")),g=()=>i.value=!i.value,b=y=>{(e.search||e.searchInMenu)&&(o.value=""),t("update:modelValue",y)};return oe(a,()=>i.value=!1),()=>n.createVNode(n.Fragment,null,[e.selection?n.createVNode(ql,n.mergeProps({modelValue:e.modelValue},{"onUpdate:modelValue":y=>t("update:modelValue",y)},{clearable:e.clearable,fluid:e.fluid,multiple:e.multiple,placeholder:e.placeholder,search:e.search,disabled:e.disabled,options:e.options}),null):n.createVNode("div",{ref:a,class:f.value,onClick:g},[e.search&&n.createVNode(Ci,{modelValue:o.value,"onUpdate:modelValue":y=>o.value=y},null),n.createVNode(Jl,{icon:e.icon,label:typeof e.modelValue=="object"?e.modelValue.label:void 0,image:typeof e.modelValue=="object"?e.modelValue.image:void 0,filtered:!e.searchInMenu&&o.value!=="",selectable:e.search||e.selectable||e.inline},{default:()=>[c.value]}),n.createVNode(yi,{active:i.value,direction:r.value},{search:()=>n.createVNode(Ci,{inMenu:e.searchInMenu,modelValue:o.value,"onUpdate:modelValue":y=>o.value=y},null),[e.searchInMenu?"inMenu":"default"]:()=>n.createVNode(n.Fragment,null,[s.value.map(y=>n.createVNode(Si,{active:JSON.stringify(y)===JSON.stringify(e.modelValue),item:y,onSelect:b},null))])})])])}}),Zl={install(e){e.component("SuiDropdown",rn)}},sn=n.defineComponent({props:{active:Boolean,aspectRatio:Boolean,autoplay:Boolean,id:String,placeholder:String,source:String,url:String},setup(e){const t=n.ref(e.active),a=()=>{t.value=!t.value},i=()=>e.source==="youtube"?[`//www.youtube.com/embed/${e.id}`,"?autohide=true",`&autoplay=${e.autoplay}`,"&jsapi=false"].join(""):e.url,o=n.computed(()=>S("ui",e.aspectRatio,l(t.value,"active"),"embed"));return{active:t,getSrc:i,clickHandler:a,computedClass:o}},render(){let e=[n.h("i",{class:"video play icon"}),n.h("img",{class:"placeholder",src:this.placeholder})];return this.active&&e.push(n.h("div",{class:"embed"},n.h("iframe",{src:this.getSrc()}))),n.h("div",{class:this.computedClass,onClick:this.clickHandler},e)}}),Ql={install(e){e.component("SuiEmbed",sn)}},dn=n.defineComponent({props:{disabled:Boolean,link:Boolean,loading:Boolean,name:String,size:String},setup(e){return{computedClass:n.computed(()=>S(e.size,l(e.disabled,"disabled"),l(e.link,"link"),l(e.loading,"loading")))}},render(){return this.computedClass?n.h("em",{class:this.computedClass,"data-emoji":this.$props.name}):n.h("em",{"data-emoji":this.$props.name})}}),ec={install(e){e.component("SuiEmoji",dn)}},un=n.defineComponent({props:{connected:Boolean,disabled:Boolean,inverted:Boolean,size:String},setup(e,{slots:t}){const a=n.computed(()=>S("ui",e.size,l(e.connected,"connected"),l(e.disabled,"disabled"),l(e.inverted,"inverted"),"feed"));return()=>{var i;return n.h("div",{class:a.value},(i=t.default)==null?void 0:i.call(t))}}}),mn=n.defineComponent({render(){var e,t;return n.h("div",{class:"content"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),fn=n.defineComponent({render(){var e,t;return n.h("div",{class:"date"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),hn=n.defineComponent({props:{disabled:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S(l(e.disabled,"disabled"),"event"));return()=>{var i;return n.createVNode("div",{class:a.value},[t.label&&n.createVNode("div",{class:"label"},[t.label()]),(t.summary||t.meta)&&n.createVNode("div",{class:"content"},[t.summary&&n.createVNode("div",{class:"summary"},[t.summary()]),t.extraText&&n.createVNode("div",{class:"extra text"},[t.extraText()]),t.extraImages&&n.createVNode("div",{class:"extra images"},[t.extraImages()]),t.meta&&n.createVNode("div",{class:"meta"},[t.meta()])]),(i=t.default)==null?void 0:i.call(t)])}}}),gn=n.defineComponent({props:{images:Boolean,text:Boolean},setup(e){const{images:t,text:a}=e;return{computedClass:n.computed(()=>S(l(t,"images"),l(a,"text"),"extra"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),bn=n.defineComponent({render(){var e,t;return n.h("div",{class:"label"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),yn=n.defineComponent({render(){var e,t;return n.h("a",{class:"like"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Sn=n.defineComponent({render(){var e,t;return n.h("div",{class:"meta"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Cn=n.defineComponent({render(){var e,t;return n.h("div",{class:"summary"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),vn=n.defineComponent({render(){var e,t;return n.h("a",{class:"user"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),tc={install(e){e.component("SuiFeed",un),e.component("SuiFeedContent",mn),e.component("SuiFeedDate",fn),e.component("SuiFeedEvent",hn),e.component("SuiFeedExtra",gn),e.component("SuiFeedLabel",bn),e.component("SuiFeedLike",yn),e.component("SuiFeedMeta",Sn),e.component("SuiFeedSummary",Cn),e.component("SuiFeedUser",vn)}},wn=n.defineComponent(e=>{const{sizeClass:t}=ce(e),a=n.computed(()=>S(t.value,e.name,"flag"));return()=>n.createVNode("i",{class:a.value},null)},{props:{name:String,...le()}}),nc={install(e){e.component("SuiFlag",wn)}},ac=n.defineComponent({props:{visible:Boolean},setup(e){const t=n.ref(e.visible?101:-1);return n.watch(()=>e.visible,a=>{a&&(t.value=a?101:-1)}),()=>n.createVNode("div",{style:{position:"fixed",top:0,left:0,width:"100%",minHeight:"100%",backgroundColor:e.visible?"rgba(0, 0, 0, 0.4)":"transparent",transition:"background-color 0.5s",zIndex:t.value},onTransitionend:()=>{e.visible||(t.value=-1)}},null)}}),vi=n.defineComponent({props:{fullscreen:{type:Boolean,default:!1},position:{type:String,default:"left"},showCloseIcon:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},width:String},emits:["update:visible"],setup(e,{emit:t,slots:a}){const i=n.ref(),o=n.computed(()=>S("ui",e.fullscreen&&"fullscreen",e.visible&&"visible",e.position,e.width,"flyout")),r=()=>t("update:visible",!1);return oe(i,r),()=>n.createVNode(n.Teleport,{to:"body"},{default:()=>{var c;return[n.createVNode("div",{ref:i,class:o.value,style:{transition:"all 0.5s ease"}},[e.showCloseIcon&&n.createVNode("i",{class:"close icon",onClick:r},null),(c=a.default)==null?void 0:c.call(a)]),n.createVNode(ac,{visible:e.visible},null)]}})}}),ic={install(e){e.component("SuiFlyout",vi)}},Vn=n.defineComponent({props:{error:Boolean,info:Boolean,inverted:Boolean,loading:Boolean,reply:Boolean,success:Boolean,unstackable:Boolean,warning:Boolean,size:String},setup(e){return{classes:n.computed(()=>S("ui",e.size,l(e.error,"error"),l(e.info,"info"),l(e.inverted,"inverted"),l(e.loading,"loading"),l(e.reply,"reply"),l(e.success,"success"),l(e.unstackable,"unstackable"),l(e.warning,"warning"),"form"))}},render(){var e,t;return n.createVNode("form",{class:this.classes},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),wi=["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen"];function oc(e){return{widthClass:n.computed(()=>Number(e.width)>0?`${wi[Number(e.width)-1]} wide`:typeof e.width=="string"||wi.includes(e.width)?`${e.width} wide`:null)}}const Bn=n.defineComponent({emits:["update:modelValue"],props:{disabled:Boolean,error:Boolean,inline:Boolean,label:String,modelValue:String,placeholder:String,required:Boolean,type:String,width:String||Number},setup(e,{emit:t}){const{widthClass:a}=oc(e),i=n.computed(()=>S(l(e.disabled,"disabled"),l(e.error,"error"),l(e.inline,"inline"),l(e.required,"required"),a.value,"field")),o=e.type||"text";return{computedClass:i,inputType:o,onInput:c=>t("update:modelValue",c.target.value)}},render(){var e,t;return this.label?n.createVNode("div",{class:this.computedClass},[n.createVNode("label",null,[this.label]),n.createVNode("input",{type:this.inputType,placeholder:this.placeholder,value:this.modelValue,onInput:this.onInput},null)]):n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Nn=n.defineComponent({props:{widths:String},setup(e){return{computedClass:n.computed(()=>S($(e.widths,"width"),"fields"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),xn=n.defineComponent({props:{label:String,placeholder:String,rows:[Number,String]},render(){return this.label?n.createVNode("div",{class:"field"},[n.createVNode("label",null,[this.label]),n.createVNode("textarea",{placeholder:this.placeholder,rows:this.rows},null)]):n.createVNode("div",{class:"field"},[n.createVNode("textarea",{placeholder:this.placeholder,rows:this.rows},null)])}}),lc={install(e){e.component("SuiForm",Vn),e.component("SuiFormField",Bn),e.component("SuiFormGroup",Nn),e.component("SuiFormTextarea",xn)}},An=n.defineComponent({props:{celled:[Boolean,String],centered:Boolean,columns:[Number,String],compact:Boolean,container:Boolean,divided:[Boolean,String],doubling:Boolean,inverted:Boolean,padded:[Boolean,String],relaxed:[Boolean,String],reversed:String,stackable:Boolean,textAlign:String,verticalAlign:String},setup(e){return{computedClass:n.computed(()=>S("ui",e.container&&"container",l(e.centered,"centered"),l(e.compact,"compact"),l(e.doubling,"doubling"),l(e.inverted,"inverted"),l(e.stackable,"stackable"),$(e.reversed,"reversed"),$(e.verticalAlign,"aligned"),T(e.celled,"celled"),T(e.divided,"divided"),T(e.padded,"padded"),T(e.relaxed,"relaxed"),de(e.textAlign),q(e.columns,"column"),"grid"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),kn=n.defineComponent({props:{color:String,computer:Number,floated:String,largeScreen:Number,mobile:Number,only:String,tablet:Number,textAlign:String,width:Number,widescreen:Number},setup(e){return{computedClass:n.computed(()=>S(e.color,$(e.floated,"floated"),$(e.only,"only"),de(e.textAlign),q(e.width,"wide"),Ne(e.mobile,"mobile"),Ne(e.tablet,"tablet"),Ne(e.computer,"computer"),Ne(e.largeScreen,"large screen"),Ne(e.widescreen,"widescreen"),"column"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Dn=n.defineComponent({props:{centered:Boolean,color:String,columns:Number,only:String,stretched:Boolean,textAlign:String},setup(e){return{computedClass:n.computed(()=>S(e.color,l(e.centered,"centered"),l(e.stretched,"stretched"),$(e.only,"only"),q(e.columns,"column"),de(e.textAlign),"row"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),cc={install(e){e.component("SuiGrid",An),e.component("SuiGridColumn",kn),e.component("SuiGridRow",Dn)}},Fe=n.defineComponent({props:{as:String},setup(e){return{elementType:e.as||"div"}},render(){var e,t;return n.h(this.elementType,{class:"sub header"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Tn=n.defineComponent({components:{HeaderSubheader:Fe},props:{as:String,attached:[Boolean,String],block:Boolean,color:String,content:String,disabled:Boolean,dividing:Boolean,floated:String,icon:Boolean,image:Boolean,inverted:Boolean,primary:Boolean,secondary:Boolean,size:String,sub:Boolean,subheader:String,textAlign:String},setup(e){const t=e.as||"div",a=n.computed(()=>S("ui",e.color,e.size,l(e.primary,"primary"),l(e.secondary,"secondary"),l(e.block,"block"),l(e.disabled,"disabled"),l(e.dividing,"dividing"),l(e.icon,"icon"),l(e.image,"image"),l(e.inverted,"inverted"),l(e.sub,"sub"),$(e.floated,"floated"),T(e.attached,"attached"),de(e.textAlign),"header"));return{elementType:t,computedClass:a}},render(){var t,a;let e=[];return this.content&&e.push(this.content),this.subheader&&e.push(n.h(Fe,{},this.subheader)),e.length>0?n.h(this.elementType,{class:this.computedClass},e):n.h(this.elementType,{class:this.computedClass},(a=(t=this.$slots).default)==null?void 0:a.call(t))}}),$n=n.defineComponent({render(){var e,t;return n.h("div",{class:"content"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),rc={install(e){e.component("SuiHeader",Tn),e.component("SuiHeaderContent",$n),e.component("SuiHeaderSubheader",Fe)}},On=n.defineComponent({props:{size:String},setup(e,{slots:t}){const a=n.computed(()=>S("ui",e.size,"images"));return()=>{var i;return n.h("div",{class:a.value},(i=t.default)==null?void 0:i.call(t))}}}),sc={install(e){e.component("SuiImage",se),e.component("SuiImageGroup",On)}},Fn=n.defineComponent({emits:["update:modelValue"],props:{action:String,disabled:Boolean,error:Boolean,fluid:Boolean,focus:Boolean,icon:String,iconPosition:String,inverted:Boolean,label:String,labeled:Boolean,loading:Boolean,modelValue:String,placeholder:String,size:String,transparent:Boolean,type:String},setup(e,{emit:t}){const a=n.computed(()=>typeof e.icon=="string"||e.loading),i=n.computed(()=>!!e.label||e.labeled),o=n.computed(()=>S("ui",e.size,e.action&&"action",l(e.disabled,"disabled"),l(e.error,"error"),l(e.fluid,"fluid"),l(e.focus,"focus"),e.iconPosition,l(a.value,"icon"),l(e.inverted,"inverted"),l(e.loading,"loading"),l(e.transparent,"transparent"),l(i.value,"labeled"),"input")),r=c=>t("update:modelValue",c.target.value);return()=>n.createVNode("div",{class:o.value},[e.label&&n.createVNode(re,null,{default:()=>[e.label]}),n.createVNode("input",{type:e.type||"text",placeholder:e.placeholder,value:e.modelValue,onInput:c=>r(c)},null),a.value&&n.createVNode(z,{name:e.icon||"spinner"},null),e.action&&n.createVNode(Xe,null,{default:()=>[e.action]})])}}),dc={install(e){e.component("SuiInput",Fn)}},In=n.defineComponent({props:{disabled:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S(e.disabled&&"disabled","item"));return()=>{var i;return n.createVNode("div",{class:a.value},[t.image&&n.createVNode("div",{class:"image"},[t.image()]),(t.header||t.metadata||t.description||t.extra)&&n.createVNode("div",{class:"content"},[t.header&&n.createVNode("div",{class:"header"},[t.header()]),t.metadata&&n.createVNode("div",{class:"meta"},[t.metadata()]),t.description&&n.createVNode("div",{class:"description"},[t.description()]),t.extra&&n.createVNode("div",{class:"extra"},[t.extra()])]),(i=t.default)==null?void 0:i.call(t)])}}}),Mn=n.defineComponent({props:{verticalAlign:String},setup(e,{slots:t}){const{verticalAlign:a}=e,i=n.computed(()=>S($(a,"aligned"),"content"));return()=>{var o;return n.createVNode("div",{class:i.value},[(o=t.default)==null?void 0:o.call(t),t.header&&n.createVNode("div",{class:"header"},[t.header()]),t.metadata&&n.createVNode("div",{class:"meta"},[t.metadata()]),t.description&&n.createVNode("div",{class:"description"},[t.description()]),t.extra&&n.createVNode("div",{class:"extra"},[t.extra()])])}}}),Ln=n.defineComponent({render(){var e,t;return n.h("div",{class:"description"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),En=n.defineComponent({render(){var e,t;return n.h("div",{class:"extra"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Rn=n.defineComponent({props:{divided:Boolean,inverted:Boolean,link:Boolean,relaxed:[Boolean,String],unstackable:Boolean},setup(e){return{computedClass:n.computed(()=>S("ui",l(e.divided,"divided"),l(e.inverted,"inverted"),l(e.link,"link"),l(e.unstackable,"unstackable"),T(e.relaxed,"relaxed"),"items"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Pn=n.defineComponent({props:{as:String},render(){var t,a;let e=this.$props.as||"div";return n.h(e,{class:"header"},(a=(t=this.$slots).default)==null?void 0:a.call(t))}}),zn=n.defineComponent({props:{size:String},setup(e){return{computedClass:n.computed(()=>S(e.size,"image"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),jn=n.defineComponent({render(){var e,t;return n.h("div",{class:"meta"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),uc={install(e){e.component("SuiItem",In),e.component("SuiItemContent",Mn),e.component("SuiItemDescription",Ln),e.component("SuiItemExtra",En),e.component("SuiItemGroup",Rn),e.component("SuiItemHeader",Pn),e.component("SuiItemImage",zn),e.component("SuiItemMeta",jn)}},lt=n.defineComponent({props:{as:{type:String,default:"div",validator:e=>["div","a"].includes(e)}},setup(e,{slots:t}){return()=>{var a;return n.h(e.as,{class:"header"},(a=t.default)==null?void 0:a.call(t))}}}),ge=n.defineComponent({props:{active:Boolean,as:String,children:Array,content:String,description:String,disabled:Boolean,header:String,icon:String,text:String},setup:(e,{slots:t})=>{const a=n.computed(()=>S(l(e.active,"active"),l(e.disabled,"disabled"),"item")),i=e.as||"div";return()=>n.createVNode(on,{is:i,class:a.value},{default:()=>{var o;return[t.prepend&&t.prepend(),e.icon&&n.createVNode(z,{name:e.icon},null),e.text&&e.text,(e.content||e.header||e.description||e.children||t.default||t.content)&&n.createVNode("div",{class:"content"},[e.header&&n.createVNode(lt,null,{default:()=>[e.header]}),e.description&&n.createVNode("div",{class:"description"},[e.description]),e.content,t.content&&t.content(),e.children&&n.createVNode("div",{class:"list"},[e.children.map((r,c)=>n.createVNode(ge,n.mergeProps({key:c},r),null))]),(o=t.default)==null?void 0:o.call(t)])]}})}});function mc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Yn=n.defineComponent({props:{animated:Boolean,as:String,bulleted:Boolean,celled:Boolean,divided:Boolean,floated:String,horizontal:Boolean,inverted:Boolean,items:Array,ordered:Boolean,relaxed:Boolean,link:Boolean,selection:Boolean,verticalAlign:String,...le()},setup:(e,{slots:t})=>{const{sizeClass:a}=ce(e),i=n.computed(()=>S("ui",l(e.animated,"animated"),l(e.bulleted,"bulleted"),l(e.celled,"celled"),l(e.divided,"divided"),l(e.horizontal,"horizontal"),l(e.inverted,"inverted"),l(e.link,"link"),l(e.ordered,"ordered"),l(e.relaxed,"relaxed"),l(e.selection,"selection"),$(e.verticalAlign,"aligned"),$(e.floated,"floated"),a.value,"list")),o=e.as||"div";return()=>n.createVNode(on,{is:o,class:i.value},{default:()=>{var r,c;return[(r=e.items)==null?void 0:r.map((s,d)=>typeof s=="string"?n.createVNode(ge,{key:d},mc(s)?s:{default:()=>[s]}):n.createVNode(ge,n.mergeProps({key:d},s),null)),(c=t.default)==null?void 0:c.call(t)]}})}}),pn=n.defineComponent({setup(e,{slots:t}){return()=>{var a;return n.h(z,{...e},(a=t.default)==null?void 0:a.call(t))}}}),Hn=n.defineComponent({props:{verticalAlign:String},setup(e){return{computedClass:n.computed(()=>S($(e.verticalAlign,"aligned"),"content"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Gn=n.defineComponent({props:{as:{type:String,default:"div",validator:e=>["div","a"].includes(e)}},setup(e,{slots:t}){return()=>{var a;return n.h(e.as,{class:"description"},(a=t.default)==null?void 0:a.call(t))}}}),_n=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"list"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),fc={install(e){e.component("SuiList",Yn),e.component("SuiListItem",ge),e.component("SuiListIcon",pn),e.component("SuiListContent",Hn),e.component("SuiListHeader",lt),e.component("SuiListDescription",Gn),e.component("SuiListList",_n)}},ct=n.defineComponent({props:{action:Boolean,active:Boolean,as:String,browse:Boolean,color:String,disabled:Boolean,fitted:[Boolean,String],header:Boolean,icon:Boolean,index:Number,link:Boolean,name:String,position:String,stackable:Boolean},emits:["selected"],setup(e,{slots:t,emit:a}){let i=e.as||"a";e.header&&(i="div"),e.as==="router-link"&&(i=n.resolveComponent(e.as));const o=n.computed(()=>S(e.color,e.position,l(e.action,"action"),l(e.active,"active"),l(e.browse,"browse"),l(e.disabled,"disabled"),l(e.header,"header"),l(e.icon,"icon"),l(e.link,"link"),T(e.fitted,"fitted"),"item")),r=n.computed(()=>!e.header&&!e.disabled&&e.as!=="div");return()=>n.createVNode(i,{class:o.value,onClick:()=>r.value&&a("selected",e.index)},{default:()=>{var c;return[e.name||((c=t.default)==null?void 0:c.call(t))]}})}}),rt=n.defineComponent({props:{activeIndex:Number,attached:[Boolean,String],borderless:Boolean,color:Boolean,compact:Boolean,fixed:Boolean,floated:[Boolean,String],fluid:Boolean,icon:[Boolean,String],inverted:Boolean,items:Array,pagination:Boolean,pointing:Boolean,secondary:Boolean,size:String,stackable:Boolean,tabular:[Boolean,String],text:Boolean,vertical:Boolean,widths:Number},emits:["selected","update:activeIndex","transitionend"],setup(e,{slots:t,emit:a}){const i=n.ref(typeof e.activeIndex=="number"?e.activeIndex:-1),o=n.computed(()=>S("ui",e.color,e.size,l(e.borderless,"borderless"),l(e.compact,"compact"),l(e.fixed,"fixed"),l(e.fluid,"fluid"),l(e.inverted,"inverted"),l(e.pagination,"pagination"),l(e.pointing,"pointing"),l(e.secondary,"secondary"),l(e.stackable,"stackable"),l(e.text,"text"),l(e.vertical,"vertical"),T(e.attached,"attached"),T(e.floated,"floated"),T(e.icon,"icon"),T(e.tabular,"tabular"),q(e.widths,"item"),"menu")),r=d=>typeof d=="string"?d:d.text,c=(d,m)=>{if(typeof d!="string")return d[m]},s=(d,m)=>{i.value=d,a("update:activeIndex",d),a("selected",m)};return()=>n.createVNode("div",{class:o.value,onTransitionend:d=>a("transitionend",d)},[t.default&&t.default(),e.items&&e.items.map((d,m)=>n.createVNode(ct,{index:m,active:m===i.value,as:typeof d!="string"?c(d,"as"):void 0,color:c(d,"color"),disabled:c(d,"disabled"),header:typeof d!="string"&&d.header,onSelected:h=>s(h,d)},{default:()=>[typeof d!="string"&&d.icon&&n.createVNode(z,{name:d.icon},null),r(d)]})),t.right&&n.createVNode("div",{class:"right menu"},[t.right()])])}}),Xn=n.defineComponent({props:{as:String,content:String},setup(e,{slots:t}){let a=e.as||"div";return()=>n.createVNode(a,{class:"header"},{default:()=>{var i;return[e.content||((i=t.default)==null?void 0:i.call(t))]}})}}),Wn=n.defineComponent({props:{position:String},setup(e){const{position:t}=e;return{computedClass:n.computed(()=>S(t,"menu"))}},render(){var e,t;return n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),hc={install(e){e.component("SuiMenu",rt),e.component("SuiMenuHeader",Xn),e.component("SuiMenuItem",ct),e.component("SuiMenuMenu",Wn)}},Un=n.defineComponent({props:{attached:[Boolean,String],aligned:String,color:String,closable:Boolean,compact:Boolean,content:String,header:String,error:Boolean,floating:Boolean,hidden:Boolean,icon:[Boolean,String],info:Boolean,list:Array,negative:Boolean,positive:Boolean,size:String,success:Boolean,visible:Boolean,warning:Boolean},emits:["close"],setup(e,{emit:t,slots:a}){const i=n.computed(()=>S("ui",e.color,e.size,l(e.compact,"compact"),l(e.error,"error"),l(e.floating,"floating"),l(e.hidden,"hidden"),l(!!e.icon,"icon"),l(e.info,"info"),l(e.negative,"negative"),l(e.positive,"positive"),l(e.success,"success"),l(e.visible,"visible"),l(e.warning,"warning"),$(e.aligned,"aligned"),T(e.attached,"attached"),"message")),o=n.ref(),r=()=>{var s;const c=(s=o.value)==null?void 0:s.animate([{opacity:1},{opacity:0}],200);c&&(c.onfinish=()=>{var d;return(d=o.value)==null?void 0:d.classList.add("hidden")},t("close"))};return()=>{var c,s;return n.createVNode("div",{ref:o,class:i.value},[e.closable&&n.createVNode("i",{class:"close icon",onClick:r},null),typeof e.icon=="string"&&n.createVNode(z,{name:e.icon},null),(c=a.default)==null?void 0:c.call(a),(e.content||a.content||e.header||e.list)&&n.createVNode("div",{class:"content"},[e.header&&n.createVNode("div",{class:"header"},[e.header]),e.content&&n.createVNode("p",null,[e.content]),(s=a.content)==null?void 0:s.call(a),Array.isArray(e.list)&&n.createVNode("ul",{class:"list"},[e.list.map((d,m)=>n.createVNode("li",{key:m},[d]))])])])}}}),qn=n.defineComponent({render(){var e,t;return n.h("div",{class:"content"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Kn=n.defineComponent({render(){var e,t;return n.h("div",{class:"header"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Jn=n.defineComponent({render(){var e,t;return n.h("li",{class:"content"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Zn=n.defineComponent({render(){var e,t;return n.h("ul",{class:"list"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),gc={install(e){e.component("SuiMessage",Un),e.component("SuiMessageContent",qn),e.component("SuiMessageHeader",Kn),e.component("SuiMessageItem",Jn),e.component("SuiMessageList",Zn)}};function Vi(e,t="scale"){const a=n.ref(e.modelValue?"open":"closed");return n.watch(()=>e.modelValue,o=>{a.value=o?"opening":"closing"}),{animationClasses:n.computed(()=>{switch(a.value){case"opening":return`animating ${t} in`;case"open":return"visible active";case"closing":return`visible active animating ${t} out`;case"closed":return"hidden"}}),isClosed:n.computed(()=>a.value==="closed"),onAnimationEnd:()=>a.value=e.modelValue?"open":"closed"}}const bc=n.defineComponent({props:{blurring:Boolean,inverted:Boolean,modelValue:Boolean},setup(e){const{animationClasses:t,isClosed:a,onAnimationEnd:i}=Vi(e,"fade"),o=n.computed(()=>S("ui","page modals dimmer transition",l(e.inverted,"inverted"),t.value)),r=n.computed(()=>({display:a.value?"none !important":"flex !important",animationDuration:"500ms"})),c=n.computed(()=>S("dimmable","dimmed",l(e.blurring,"blurring")));return n.watch(()=>e.modelValue,s=>{if(s){document.body.classList.add(...c.value.split(" "));return}document.body.classList.remove(...c.value.split(" "))}),{className:o,style:r,onAnimationEnd:i}},render(){var e,t;return n.createVNode("div",{class:this.className,style:this.style,onAnimationend:this.onAnimationEnd},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Qn=n.defineComponent({props:{basic:Boolean,closeIcon:Boolean,dimmer:String,modelValue:Boolean,size:String,closable:{type:Boolean,default:!0},overlay:Boolean,fullscreen:Boolean},setup(e,{emit:t,slots:a}){const i=n.ref(),{animationClasses:o,isClosed:r}=Vi(e),c=n.computed(()=>S("ui",e.size,l(e.basic,"basic"),l(e.overlay,"overlay"),l(e.fullscreen,"fullscreen"),"modal","transition",o.value)),s=n.computed(()=>({display:r.value?"none !important":"block !important",animationDuration:"500ms"})),d=()=>t("update:modelValue",!1);return oe(i,()=>e.closable&&t("update:modelValue",!1)),()=>n.createVNode(n.Teleport,{to:"body"},{default:()=>[n.createVNode(bc,{blurring:e.dimmer==="blurring",inverted:e.dimmer==="inverted",modelValue:e.modelValue},{default:()=>{var m,h,f,g;return[n.createVNode("div",{class:c.value,style:s.value,onClick:b=>b.stopPropagation(),ref:i},[e.closeIcon&&n.createVNode("i",{"aria-hidden":"true",class:"close icon",onClick:d},null),a.header&&n.createVNode("div",{class:"header"},[(m=a.header)==null?void 0:m.call(a)]),a.content&&n.createVNode("div",{class:"content"},[(h=a.content)==null?void 0:h.call(a)]),a.actions&&n.createVNode("div",{class:"actions"},[(f=a.actions)==null?void 0:f.call(a)]),(g=a.default)==null?void 0:g.call(a)])]}})]})}}),ea=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"actions"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),ta=n.defineComponent({props:{image:Boolean,scrolling:Boolean},setup(e){return{computedClass:n.computed(()=>S(l(e.image,"image"),l(e.scrolling,"scrolling"),"content"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),na=n.defineComponent({render(){var e,t;return n.h("div",{class:"description"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),aa=n.defineComponent({render(){var e,t;return n.h("div",{class:"header"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),yc={install(e){e.component("SuiModal",Qn),e.component("SuiModalActions",ea),e.component("SuiModalContent",ta),e.component("SuiModalDescription",na),e.component("SuiModalHeader",aa)}},Sc=e=>{const t=n.ref(!1),a=n.toRef(e,"position"),i=n.ref(null),o=n.toRef(e,"trigger"),r=()=>{t.value=!0,n.nextTick(()=>s())},c=()=>{t.value=!1},s=()=>{if(!i.value||!o.value)return;let d=0,m=0;const h=i.value,f=o.value.$el;h.style.transform=`translate(${d}px, ${m}px)`;const{top:g,left:b,width:y,height:w}=f.getBoundingClientRect(),v=h.getBoundingClientRect(),{pageXOffset:V,pageYOffset:N}=window;if(a.value.includes("top")?(d=V+b,m=N+g-h.offsetTop-h.offsetHeight):(d=b,m=g+w-v.top),a.value.includes("right")){const D=y-v.width;d=b+D}if(a.value.includes("center")){const D=y/2-v.width/2;d=b+D}a.value==="right center"&&(d=b+y,m=g+w/2-v.top-v.height/2),a.value==="left center"&&(d=b-v.width,m=g+w/2-v.top-v.height/2),h.style.display="flex",h.style.position="absolute",h.style.transform=`translate(${d}px, ${m}px)`};return{show:t,showPopup:r,hidePopup:c,placement:a,popupRef:i,triggerRef:o}},ia=n.defineComponent({props:{basic:Boolean,content:String,flowing:Boolean,header:String,inverted:Boolean,position:{type:String,default:"top left"},size:String,trigger:Object,wide:[Boolean,String]},setup(e,{slots:t}){const{show:a,showPopup:i,hidePopup:o,popupRef:r,triggerRef:c}=Sc(e);n.watchEffect(()=>{var g,b,y;(g=c.value)!=null&&g.$el&&((b=c.value)==null||b.$el.addEventListener("mouseenter",i),(y=c.value)==null||y.$el.addEventListener("mouseleave",o))});const s=n.ref(a.value?"open":"close");n.computed(()=>s.value!=="closed"),n.watch(()=>a.value,g=>{s.value=g?"opening":"closing"});const d=(g,b="scale")=>{switch(g){case"opening":return`animating ${b} in`;case"open":return"visible active";case"closing":return`visible active animating ${b} out`;case"closed":return"hidden"}},m=()=>s.value=a.value?"open":"closed";n.onMounted(()=>{var g;(g=r.value)==null||g.addEventListener("animationend",m,!0)}),n.onUnmounted(()=>{var g;(g=r.value)==null||g.removeEventListener("animationend",m)});const h={position:"initial",animationDuration:"200ms"},f=n.computed(()=>S("ignored ui",e.position,e.size,l(e.basic,"basic"),l(e.flowing,"flowing"),l(e.inverted,"inverted"),T(e.wide,"wide"),"popup transition",d(s.value,"scale")));return()=>n.createVNode(n.Teleport,{to:"body"},{default:()=>{var g;return[n.createVNode("div",{ref:r,style:"display: flex; position: absolute; transform: translate(0px, 0px);"},[n.createVNode("div",{class:f.value,style:h},[e.header&&n.createVNode("div",{class:"header"},[e.header]),n.createVNode("div",{class:"content"},[e.content?e.content:(g=t.default)==null?void 0:g.call(t)])])])]}})}}),Cc={install(e){e.component("SuiPopup",ia)}},vc=["top","bottom","left"],oa=()=>({attached:{type:String,validator:e=>vc.includes(e)}}),Bi=e=>({attachedClasses:n.computed(()=>S(e.attached,{attached:e.attached}))}),wc=["red","orange","yellow","olive","green","teal","blue","purple","violet","pink","brown","grey","black"],la=()=>({color:{type:String,validator:e=>wc.includes(e)}}),ca=e=>({colorClasses:n.computed(()=>S(e.inverted&&"inverted",e.color))}),Ie=n.defineComponent({props:{active:Boolean,disabled:Boolean,error:Boolean,indeterminate:[Boolean,String],indicating:Boolean,inverted:Boolean,label:String,percent:Number,progress:[Boolean,String],size:String,success:Boolean,warning:Boolean,...oa(),...la()},setup(e,{slots:t}){const{attachedClasses:a}=Bi(e),{colorClasses:i}=ca(e),o=n.computed(()=>S("ui",i.value,e.size,l(e.active||e.indicating,"active"),l(e.disabled,"disabled"),l(e.error,"error"),l(e.indicating,"indicating"),l(e.success,"success"),l(e.warning,"warning"),T(e.indeterminate,"indeterminate"),a.value,"progress")),r=n.computed(()=>S(T(e.progress,"progress"))),c=n.computed(()=>e.progress!=="centered"?{}:{right:0});return()=>{var s;return n.createVNode("div",{class:o.value,"data-percent":e.percent},[n.createVNode("div",{class:"bar",style:`width: ${e.percent}%; transition-duration: 300ms;`},[e.progress&&n.createVNode("div",{class:r.value,style:c.value},[((s=t.default)==null?void 0:s.call(t))||`${e.percent}%`])]),e.label&&n.createVNode("div",{class:"label"},[e.label])])}}}),Vc={install(e){e.component("SuiProgress",Ie)}},ra=n.defineComponent({props:{attached:Boolean,close:[Boolean,String],dividing:Boolean,internal:Boolean,position:String,size:String},setup(e){return{computedClass:n.computed(()=>S("ui",e.position,e.size,l(e.attached,"attached"),l(e.dividing,"dividing"),l(e.internal,"internal"),T(e.close,"close"),"rail"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Bc={install(e){e.component("SuiRail",ra)}},Nc=n.defineComponent({props:{icon:String,index:{type:Number,default:0}},setup(e){const t=n.inject("rating",n.ref(0)),a=n.inject("updateRating"),i=n.inject("selectedIndex",n.ref(0)),o=n.inject("updateSelectedIndex"),r=n.inject("clearable",!1),c=n.inject("disabled",!1),s=()=>{if(!c){if(r&&e.index===t.value){a(0),o(0);return}a(e.index)}},d=()=>{c||o(e.index)},m=n.computed(()=>e.index<=t.value),h=n.computed(()=>e.index<=i.value),f=n.computed(()=>S(e.icon,l(m.value,"active"),l(h.value,"selected"),"icon"));return()=>n.createVNode("i",{class:f.value,onClick:()=>s(),onMouseenter:()=>d()},null)}}),sa=n.defineComponent({props:{clearable:Boolean,color:String,defaultRating:{type:Number,default:0},disabled:Boolean,icon:{type:String,default:"star"},maxRating:{type:Number,default:1},modelValue:Number,size:String},setup(e,{emit:t}){const a=n.ref(e.modelValue||e.defaultRating),i=n.ref(!1),o=n.ref(0),r=h=>{a.value=h,t("update:modelValue",h),t("change",h)},c=h=>o.value=h,s=()=>{e.disabled||(i.value=!0)},d=()=>{e.disabled||(i.value=!1,c(0))},m=n.computed(()=>S("ui",e.color,e.icon,e.size,l(e.disabled,"disabled"),"rating",l(i.value,"selected")));return n.provide("rating",a),n.provide("updateRating",r),n.provide("selectedIndex",o),n.provide("updateSelectedIndex",c),n.provide("clearable",e.clearable),n.provide("disabled",e.disabled),()=>n.createVNode("div",{class:m.value,onMouseenter:()=>s(),onMouseleave:()=>d()},[[...Array(e.maxRating)].map((h,f)=>n.createVNode(Nc,{icon:e.icon,index:f+1},null))])}}),xc={install(e){e.component("SuiRating",sa)}},da=n.defineComponent({props:{active:Boolean,animated:String,disabled:Boolean,instant:Boolean},setup(e){return{computedClass:n.computed(()=>S("ui",e.animated,l(e.active,"active"),l(e.disabled,"disabled"),l(e.instant,"instant"),"reveal"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),ua=n.defineComponent({props:{visible:Boolean,hidden:Boolean},setup(e){return{computedClass:n.computed(()=>S("ui",l(e.visible,"visible"),l(e.hidden,"hidden"),"content"))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Ac={install(e){e.component("SuiReveal",da),e.component("SuiRevealContent",ua)}},kc=n.defineComponent({props:{icon:String,placeholder:String},setup(e){return()=>n.createVNode("div",{class:"ui search"},[n.createVNode("div",{class:"ui icon input"},[n.createVNode("input",{type:"text",class:"prompt",placeholder:e.placeholder},null),n.createVNode("i",{class:"search icon"},null)]),n.createVNode("div",{class:"results"},null)])}}),Dc={install(e){e.component("SuiSearch",kc)}},ma=n.defineComponent({props:{attached:[Boolean,String],basic:Boolean,circular:Boolean,clearing:Boolean,compact:Boolean,disabled:Boolean,fitted:[Boolean,String],floated:String,inverted:Boolean,loading:Boolean,padded:[Boolean,String],piled:Boolean,placeholder:Boolean,raised:Boolean,scrolling:[Boolean,String],secondary:Boolean,stacked:Boolean,tertiary:Boolean,textAlign:String,vertical:Boolean,...la(),...le()},setup:(e,{slots:t})=>{const{colorClasses:a}=ca(e),{sizeClass:i}=ce(e),o=n.computed(()=>S("ui",a.value,i.value,l(e.basic,"basic"),l(e.circular,"circular"),l(e.clearing,"clearing"),l(e.compact,"compact"),l(e.disabled,"disabled"),l(e.inverted,"inverted"),l(e.loading,"loading"),l(e.piled,"piled"),l(e.placeholder,"placeholder"),l(e.raised,"raised"),l(e.secondary,"secondary"),l(e.stacked,"stacked"),l(e.tertiary,"tertiary"),l(e.vertical,"vertical"),$(e.floated,"floated"),$(e.textAlign,"aligned"),T(e.attached,"attached"),T(e.fitted,"fitted"),T(e.padded,"padded"),T(e.scrolling,"scrolling"),"segment"));return()=>{var r;return n.createVNode("div",{class:o.value},[(r=t.default)==null?void 0:r.call(t)])}}}),fa=n.defineComponent((e,{slots:t})=>{const{sizeClass:a}=ce(e),i=n.computed(()=>S("ui",a.value,l(e.basic,"basic"),l(e.compact,"compact"),l(e.horizontal,"horizontal"),l(e.piled,"piled"),l(e.raised,"raised"),l(e.stacked,"stacked"),"segments"));return()=>{var o;return n.createVNode("div",{class:i.value},[(o=t.default)==null?void 0:o.call(t)])}},{props:{basic:Boolean,compact:Boolean,horizontal:Boolean,piled:Boolean,raised:Boolean,stacked:Boolean,...le()}}),ha=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"inline"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Tc={install(e){e.component("SuiSegment",ma),e.component("SuiSegmentGroup",fa),e.component("SuiSegmentInline",ha)}},$c=n.defineComponent({props:{show:Boolean,onClick:{type:Function,default:()=>{}}},setup(e){const t=n.ref(e.show?101:-1);return n.watch(()=>e.show,a=>{a&&(t.value=a?101:-1)}),()=>n.createVNode("div",{style:{position:"fixed",top:0,left:0,width:"100%",minHeight:"100%",backgroundColor:e.show?"rgba(0, 0, 0, 0.4)":"transparent",transition:"background-color 0.5s",zIndex:t.value},onClick:()=>e.onClick(),onTransitionend:()=>{e.show||(t.value=-1)}},null)}}),ga=n.defineComponent({props:{animation:{type:String,default:"overlay"},dimmed:{type:Boolean,default:!0},icon:[Boolean,String],items:{type:Array,default:()=>[]},mountOnBody:{type:Boolean,default:!0},direction:{type:String,default:"left"},visible:{type:Boolean,default:!1}},emits:["update:visible","show","hide"],setup(e,{emit:t,slots:a}){const i=n.ref(),o=at(),{width:r}=ol(i),c=n.ref(!1),s=n.computed(()=>S("ui","sidebar",c.value&&"animating",e.animation,e.direction,e.visible&&"visible")),d=()=>{t("update:visible",!1)};return oe(i,()=>e.mountOnBody&&d()),n.onMounted(()=>{if(e.mountOnBody||!o.value)return;o.value.style.overflowX="hidden",o.value.style.transform="translate3d(0, 0, 0)";const m=o.value.querySelector(".pusher");m&&(m.style.position="relative",m.style.transition="transform 0.5s ease",m.style.transform="translate3d(0, 0, 0)",m.style.backfaceVisibility="hidden",m.style.minHeight="100%",m.addEventListener("click",d))}),n.watch(()=>e.visible,m=>{if(t(m?"show":"hide"),e.mountOnBody||!o.value)return;const h=o.value.querySelector(".pusher");if(h){const f=e.direction==="right"?-r.value:r.value;h.style.transform=m?`translate3d(${f}px, 0, 0)`:"translate3d(0, 0, 0)"}}),()=>n.createVNode(n.Teleport,{to:"body",disabled:!e.mountOnBody},{default:()=>[n.createVNode(rt,{ref:i,class:s.value,icon:e.icon,items:e.items,inverted:!0,vertical:!0,onTransitionend:()=>c.value=e.visible},{default:()=>{var m;return[(m=a.default)==null?void 0:m.call(a)]}}),e.dimmed&&n.createVNode($c,{show:e.visible,onClick:()=>!e.mountOnBody&&d()},null)]})}}),Oc={install:e=>{e.component("SuiSidebar",ga)}};class ba{static getWindowScrollTop(){let{documentElement:t}=document;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let{documentElement:t}=document;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static hasClass(t,a){return t.classList.contains(a)}}const ya=n.defineComponent({emits:["change","slideend","update:modelValue"],props:{color:String,disabled:Boolean,inverted:Boolean,labeled:[Boolean,String],labels:Array,max:{type:Number,default:10},min:{type:Number,default:0},modelValue:{type:[Number,Array],default:0},range:Boolean,reversed:Boolean,size:String,step:{type:Number,default:1},vertical:Boolean,verticalHeight:{type:[Number,String],default:200}},setup(e,{emit:t}){const a=n.computed(()=>S("ui",e.color,e.size,l(e.disabled,"disabled"),l(e.inverted,"inverted"),l(e.reversed,"reversed"),l(e.vertical,"vertical"),T(e.labeled,"labeled"),"slider")),i=()=>100*(e.modelValue[0]-e.min)/(e.max-e.min),o=()=>100*(e.modelValue[1]-e.min)/(e.max-e.min),r=n.computed(()=>{if(e.range)return e.reversed&&!e.vertical?{right:i()+"%",width:o()-i()+"%"}:e.vertical?e.reversed?{bottom:i()+"%",height:o()-i()+"%"}:{top:i()+"%",height:o()-i()+"%"}:{left:i()+"%",width:o()-i()+"%"};let C=e.modelValue>e.max?e.max:e.modelValue;return e.reversed?e.vertical?{bottom:"0%",top:`${100-(C-e.min)/(e.max-e.min)*100}%`}:{right:"0%",left:`${100-(C-e.min)/(e.max-e.min)*100}%`}:e.vertical?{top:"0%",bottom:`${100-(C-e.min)/(e.max-e.min)*100}%`}:{left:"0%",right:`${100-(C-e.min)/(e.max-e.min)*100}%`}}),c=n.computed(()=>{let C=e.range?e.modelValue[0]:e.modelValue>e.max?e.max:e.modelValue;return!e.reversed&&e.vertical?{top:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`,bottom:"auto"}:e.reversed&&e.vertical?{top:"auto",bottom:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`}:e.reversed&&!e.vertical?{left:"auto",right:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`}:{left:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`,right:"auto"}}),s=n.computed(()=>{let C=e.modelValue[1]>e.max?e.max:e.modelValue[1];return e.reversed&&!e.vertical?{left:"auto",right:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`}:e.vertical?e.reversed?{top:"auto",bottom:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`}:{top:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`,bottom:"auto"}:{left:`calc(${(C-e.min)*100/(e.max-e.min)}% - 10.5px)`,right:"auto"}}),d=n.computed(()=>e.labels?e.labels:[...Array(e.max-e.min+1)].map((C,k)=>k*e.step+e.min)),m=()=>{var W,Ye;let C=1,k=h(),M=(e.vertical?(W=g.value)==null?void 0:W.clientHeight:(Ye=g.value)==null?void 0:Ye.clientWidth)||0,P=1;if(M>0)for(;M/k*P<100;)k%P||(C=P),P+=1;return C},h=()=>Math.round((e.max-e.min)/e.step),f=n.ref(null),g=n.ref(null),b=n.ref(0),y=n.ref(0),w=n.ref(0),v=n.ref(0),V=()=>{if(!f.value)return;let C=f.value.getBoundingClientRect();b.value=C.left+ba.getWindowScrollLeft(),y.value=C.top+ba.getWindowScrollTop(),w.value=f.value.offsetWidth,v.value=f.value.offsetHeight},N=n.ref(0),D=C=>{let{pageX:k,pageY:M}=C.touches?C.touches[0]:C,P,W;e.vertical?P=(y.value+v.value-M)*100/v.value:P=(k-b.value)*100/w.value,W=(e.max-e.min)*(P/100)+e.min;const Ye=e.range?e.modelValue[N.value]:e.modelValue||0;W=Ye+Math.round(W/e.step-Ye/e.step)*e.step,e.reversed&&(W=e.max-W+e.min),e.vertical&&(W=e.max-W+e.min),I(W)},I=C=>{let k=C,M;if(e.range)if(M=e.modelValue?[...e.modelValue]:[],N.value===0){let P=e.modelValue?e.modelValue[1]:e.max;kP&&(k=P),M[0]=k,M[1]=M[1]||e.max}else{let P=e.modelValue?e.modelValue[0]:e.min;k>e.max?k=e.max:ke.max&&(k=e.max),M=k;t("update:modelValue",M),t("change",M)},x=n.ref(!1),L=C=>x.value=C,A=(C,k=0)=>{L(!0),V(),N.value=k,C.preventDefault()},p=C=>{x.value&&(L(!1),document.removeEventListener("mousemove",O),t("slideend",{event:C,value:e.modelValue}))},O=C=>{x.value&&(D(C),C==null||C.preventDefault())},E=(C,k=0)=>{e.disabled||(A(C,k),document.addEventListener("mousemove",O),document.addEventListener("mouseup",p),C.preventDefault())},F=(C,k=0)=>{switch(N.value=k,C.code){case"ArrowUp":e.vertical&&(e.reversed?Y():R()),C.preventDefault();break;case"ArrowDown":e.vertical&&(e.reversed?R():Y()),C.preventDefault();break;case"ArrowRight":e.reversed?R():Y(),C.preventDefault();break;case"ArrowLeft":e.reversed?Y():R(),C.preventDefault();break}},Y=()=>{let C=0;e.range?C=e.modelValue[N.value]+e.step:C=e.modelValue+e.step,I(C)},R=()=>{let C=0;e.range?C=e.modelValue[N.value]-e.step:C=e.modelValue-e.step,I(C)},Be=C=>{if(!e.disabled&&!ba.hasClass(C.target,"thumb")){if(e.range){let k=(e.vertical?C.offsetY/C.target.clientHeight:C.offsetX/C.target.clientWidth)*100,M=(i()+o())/2;kn.createVNode("div",{ref:C=>f.value=C,class:a.value,style:e.vertical?`height: ${e.verticalHeight}px;`:""},[n.createVNode("div",{class:"inner",onClick:Be},[n.createVNode("div",{class:"track",ref:C=>g.value=C},null),n.createVNode("div",{class:"track-fill",style:r.value},null),n.createVNode("div",{class:"thumb",style:c.value,onMousedown:C=>E(C),onTouchstart:C=>A(C),onTouchmove:C=>O(C),onTouchend:C=>p(C),onKeydown:C=>F(C),tabindex:0},null),e.range&&n.createVNode("div",{class:"thumb second",style:s.value,onMousedown:C=>E(C,1),onTouchstart:C=>A(C,1),onTouchmove:C=>O(C),onTouchend:C=>p(C),onKeydown:C=>F(C,1),tabindex:0},null)]),e.labeled&&n.createVNode("ul",{class:"auto labels"},[[...Array(h()+1)].map((C,k)=>{let M=k/h();return k%m()?n.createVNode("li",{class:"halftick label",style:`${e.vertical?e.reversed?"bottom":"top":"left"}: calc(((100% - 7px) - 7px) * ${M} + 7px);`},null):n.createVNode("li",{class:"label",style:`${e.vertical?e.reversed?"bottom":"top":"left"}: calc(((100% - 7px) - 7px) * ${M} + 7px);`},[e.reversed&&!e.vertical?e.labels?e.labels[h()-k]:d.value[h()-k]:e.labels?e.labels[k]:d.value[k]])})])])}}),Fc={install(e){e.component("SuiSlider",ya)}},Me=n.defineComponent({props:{content:String},render(){var e,t;return this.$props.content?n.h("div",{class:"label"},this.$props.content):n.h("div",{class:"label"},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Le=n.defineComponent({props:{content:String,text:Boolean},setup(e){return{computedClass:n.computed(()=>S(l(e.text,"text"),"value"))}},render(){var e,t;return this.$props.content?n.h("div",{class:this.computedClass},this.$props.content):n.h("div",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Sa=n.defineComponent({components:{StatisticLabel:Me,StatisticValue:Le},props:{color:String,floated:[Boolean,String],fluid:Boolean,horizontal:Boolean,inverted:Boolean,label:String,size:String,text:Boolean,value:String},setup(e){const t=n.inject("ui",!0);return{computedClass:n.computed(()=>S(t&&"ui",e.color,e.size,l(e.fluid,"fluid"),l(e.horizontal,"horizontal"),l(e.inverted,"inverted"),l(e.text,"text"),T(e.floated,"floated"),"statistic"))}},render(){var t,a,i,o,r,c;let e=[];return this.$props.value&&e.push(n.h(Le,{content:this.$props.value},(a=(t=this.$slots).default)==null?void 0:a.call(t))),this.$props.label&&e.push(n.h(Me,{content:this.$props.label},(o=(i=this.$slots).default)==null?void 0:o.call(i))),n.h("div",{class:this.computedClass},e.length>0?e:(c=(r=this.$slots).default)==null?void 0:c.call(r))}}),Ca=n.defineComponent({props:{color:String,horizontal:Boolean,inverted:Boolean,size:String,stackable:Boolean,widths:Number},setup(e){return n.provide("ui",!1),{classes:n.computed(()=>S("ui",e.color,e.size,l(e.horizontal,"horizontal"),l(e.inverted,"inverted"),l(e.stackable,"stackable"),q(e.widths,""),"statistics"))}},render(){var e,t;return n.h("div",{class:this.classes},(t=(e=this.$slots).default)==null?void 0:t.call(e))}}),Ic={install(e){e.component("SuiStatistic",Sa),e.component("SuiStatisticGroup",Ca),e.component("SuiStatisticLabel",Me),e.component("SuiStatisticValue",Le)}},st=n.defineComponent({props:{active:Boolean,completed:Boolean,description:String,disabled:Boolean,fluid:Boolean,href:String,icon:String,link:Boolean,title:String,vertical:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S(l(e.active,"active"),l(e.completed,"completed"),l(e.disabled,"disabled"),l(e.fluid,"fluid"),l(e.link,"link"),l(e.vertical,"vertical"),"step"));return()=>{var i,o;return e.href?n.createVNode("a",{class:a.value,href:e.href},[(i=t.default)==null?void 0:i.call(t)]):n.createVNode("div",{class:a.value},[e.icon&&n.createVNode(z,{name:e.icon},null),(e.title||e.description)&&n.createVNode("div",{class:"content"},[e.title&&n.createVNode("div",{class:"title"},[e.title]),e.description&&n.createVNode("div",{class:"description"},[e.description])]),(o=t.default)==null?void 0:o.call(t)])}}}),Ni=["one","two","three","four","five","six","seven","eight"],va=n.defineComponent({props:{activeStep:{type:Number,default:0},attached:String,evenlyDivided:Boolean,fluid:Boolean,inverted:Boolean,noCompleted:Boolean,ordered:Boolean,size:String,stackable:String,steps:Array,unstackable:Boolean,vertical:Boolean,widths:Number},setup(e,{slots:t}){const{widths:a}=e,i=n.computed(()=>S("ui",a&&Ni[a-1],e.steps&&e.evenlyDivided&&Ni[e.steps.length-1],e.size,l(e.fluid,"fluid"),l(e.inverted,"inverted"),l(e.ordered,"ordered"),l(e.unstackable,"unstackable"),l(e.vertical,"vertical"),$(e.attached,"attached"),$(e.stackable,"stackable"),"steps"));return()=>{var o;return e.steps?n.createVNode("div",{class:i.value},[e.steps.map((r,c)=>n.createVNode(st,n.mergeProps({key:c,active:c===e.activeStep,completed:e.noCompleted?!1:ce.activeStep},r),null))]):n.createVNode("div",{class:i.value},[(o=t.default)==null?void 0:o.call(t)])}}}),wa=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"content"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Va=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"title"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Ba=n.defineComponent({render(){var e,t;return n.createVNode("div",{class:"description"},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Mc={install(e){e.component("SuiStep",st),e.component("SuiStepGroup",va),e.component("SuiStepContent",wa),e.component("SuiStepTitle",Va),e.component("SuiStepDescription",Ba)}},dt=n.defineComponent({props:{active:Boolean,attached:[Boolean,String],header:String},setup(e){return{computedClass:n.computed(()=>S("ui tab segment",l(e.active,"active"),T(e.attached,"attached")))}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Na=n.defineComponent({emits:["update:activeIndex","tab-change","tab-click"],props:{activeIndex:{type:Number,default:0},pointing:Boolean,secondary:Boolean,text:Boolean},setup(e,{emit:t,slots:a}){const i=n.ref(e.activeIndex);n.watch(()=>e.activeIndex,m=>{i.value=m});const o=(m,h)=>{i.value!==h&&(i.value=h,t("update:activeIndex",h),t("tab-change",{event:m,index:h})),t("tab-click",{event:m,index:h})},r=(m,h)=>{m.key==="Enter"&&o(m,h)},c=n.computed(()=>{var h,f;let m=[];return(h=a.default)!=null&&h.call(a)&&((f=a.default)==null||f.call(a).forEach(g=>{n.isVNode(g)&&m.push(g)})),m}),s=n.computed(()=>!e.secondary&&!e.pointing&&!e.text),d=n.computed(()=>S("ui menu",l(s.value,"tabular attached"),l(e.pointing,"pointing"),l(e.secondary,"secondary"),l(e.text,"text")));return{onClick:o,onKeyDown:r,tabIndex:i,tabs:c,tabMenuClass:d,isDefaultMenu:s}},render(){const e=()=>this.tabs.map((a,i)=>n.createVNode("a",{class:`item ${this.tabIndex===i&&"active"}`,onClick:o=>this.onClick(o,i),onKeydown:o=>this.onKeyDown(o,i),tabindex:0},[a.props.header])),t=()=>this.tabs.map((a,i)=>n.createVNode(dt,n.mergeProps(a.props,{active:this.tabIndex===i,attached:this.isDefaultMenu?"bottom":!1}),{default:()=>{var o,r;return[(r=(o=a.children).default)==null?void 0:r.call(o)]}}));return n.createVNode(n.Fragment,null,[n.createVNode("div",{class:this.tabMenuClass},[e()]),t()])}}),Lc={install(e){e.component("SuiTab",Na),e.component("SuiTabPanel",dt)}},Ec=["long","very long","short","very short"],Rc=({defaultValue:e}={})=>({scrolling:{type:String,validator:t=>Ec.includes(t),default:e}}),Pc=e=>({scrollingClasses:n.computed(()=>S(e.scrolling,!!e.scrolling&&"scrolling"))}),ut=n.defineComponent({props:{columns:Array,definition:Boolean,fullWidth:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S(l(e.fullWidth,"full-width")));return()=>{var i;return e.columns?n.createVNode("thead",{class:a.value},[t.default?t.default():n.createVNode("tr",null,[e.definition&&n.createVNode("th",null,null),e.columns.map(o=>{const{header:r,field:c}=o.props;return n.createVNode("th",{key:c},[r])})])]):n.createVNode("thead",{class:a.value},[(i=t.default)==null?void 0:i.call(t)])}}}),Ee=n.defineComponent({props:{active:Boolean,className:String,collapsing:Boolean,color:String,disabled:Boolean,error:Boolean,marked:String,negative:Boolean,positive:Boolean,rowspan:Number,selectable:Boolean,singleLine:Boolean,textAlign:String,verticalAlign:String,warning:Boolean},setup(e,{emit:t,slots:a}){const i=n.computed(()=>S(e.color,e.className,l(e.active,"active"),l(e.collapsing,"collapsing"),l(e.disabled,"disabled"),l(e.error,"error"),l(e.negative,"negative"),l(e.positive,"positive"),l(e.selectable,"selectable"),l(e.singleLine,"single line"),l(e.warning,"warning"),$(e.verticalAlign,"aligned"),$(e.marked,"marked"),de(e.textAlign))),o=()=>{e.selectable&&t("click-cell")};return()=>{var r,c;return n.createVNode("td",{class:i.value,rowspan:e.rowspan,onClick:o},[e.selectable?n.createVNode("a",null,[(r=a.default)==null?void 0:r.call(a)]):(c=a.default)==null?void 0:c.call(a)])}}}),mt=n.defineComponent({props:{columns:Array,definitionClass:String,rows:Array,rowsGroupBy:String,rowActive:Function,rowClass:[Boolean,Function],rowColor:Function,rowDisabled:Function,rowError:Function,rowNegative:Function,rowPositive:Function,rowWarning:Function},emits:["row-click","cell-click"],setup(e,{emit:t,slots:a}){const i=(r,c)=>{var m;if(!e.rows||!e.rowsGroupBy||e.rowsGroupBy!==r||c===0)return!0;const s=e.rows[c][r],d=(m=e.rows[c-1])==null?void 0:m[r];return s!==d},o=(r,c)=>{var h;if(!e.rows||!e.rowsGroupBy||e.rowsGroupBy!==r)return;const s=e.rows[c][r];let d=s,m=0;for(;s===d&&(m++,d=(h=e.rows[c+m])==null?void 0:h[r],!!d););return m>1?m:void 0};return()=>{var r,c;return!e.columns||e.columns.length===0?n.createVNode("tbody",null,[(r=a.default)==null?void 0:r.call(a)]):n.createVNode("tbody",null,[(c=e.rows)==null?void 0:c.map((s,d)=>{var m;return n.createVNode("tr",{key:s.id,class:typeof e.rowClass=="function"?e.rowClass({data:s,index:d}):e.rowClass,onClick:()=>t("row-click",{data:s})},[a.definition&&n.createVNode(Ee,{className:e.definitionClass},{default:()=>{var h;return[(h=a.definition)==null?void 0:h.call(a,{data:s})]}}),(m=e.columns)==null?void 0:m.map(h=>{var E,F,Y,R,Be,C,k;const{field:f,header:g,active:b,cellClass:y,collapsing:w,color:v,disabled:V,error:N,negative:D,positive:I,marked:x,selectable:L,warning:A}=h.props,p=i(f,d),O=o(f,d);return p&&n.createVNode(Ee,{"data-label":g,key:f,className:typeof y=="function"?y({data:s,value:s[f],index:d}):y,rowspan:O,active:((E=e.rowActive)==null?void 0:E.call(e,{data:s,index:d}))||(b==null?void 0:b({value:s[f],index:d})),collapsing:w,color:((F=e.rowColor)==null?void 0:F.call(e,{data:s,index:d}))||(v==null?void 0:v({value:s[f],index:d})),disabled:((Y=e.rowDisabled)==null?void 0:Y.call(e,{data:s,index:d}))||(V==null?void 0:V({value:s[f],index:d})),error:((R=e.rowError)==null?void 0:R.call(e,{data:s,index:d}))||(N==null?void 0:N({value:s[f],index:d})),negative:((Be=e.rowNegative)==null?void 0:Be.call(e,{data:s,index:d}))||(D==null?void 0:D({value:s[f],index:d})),positive:((C=e.rowPositive)==null?void 0:C.call(e,{data:s,index:d}))||(I==null?void 0:I({value:s[f],index:d})),marked:x==null?void 0:x({data:s,value:s[f],index:d}),selectable:typeof L=="function"?L==null?void 0:L({data:s,value:s[f],index:d}):L,warning:((k=e.rowWarning)==null?void 0:k.call(e,{data:s,index:d}))||(A==null?void 0:A({value:s[f],index:d})),"onClick-cell":()=>{t("cell-click",{data:s,value:s[f],index:d})}},{default:()=>{var M,P;return[h.children?(P=(M=h.children).body)==null?void 0:P.call(M,{data:s}):s[f]]}})})])})])}}}),ft=n.defineComponent({props:{fullWidth:Boolean},setup(e){const{fullWidth:t}=e;return{computedClass:n.computed(()=>S(l(t,"full-width")))}},render(){var e,t,a,i;return this.computedClass?n.h("tfoot",{class:this.computedClass},(t=(e=this.$slots).default)==null?void 0:t.call(e)):n.h("tfoot",{},(i=(a=this.$slots).default)==null?void 0:i.call(a))}}),xa=n.defineComponent({props:{attached:[Boolean,String],basic:[Boolean,String],celled:Boolean,collapsing:Boolean,color:String,columns:Number,compact:[Boolean,String],definition:Boolean,definitionClass:String,fixed:Boolean,hideHeader:Boolean,inverted:Boolean,items:Array,rowActive:Function,rowClass:[Boolean,Function],rowColor:Function,rowDisabled:Function,rowError:Function,rowNegative:Function,rowPositive:Function,rowWarning:Function,rowsGroupBy:String,padded:[Boolean,String],selectable:Boolean,singleLine:Boolean,size:String,stackable:Boolean,striped:Boolean,structured:Boolean,unstackable:Boolean,...Rc()},setup(e,{emit:t,slots:a}){const{scrollingClasses:i}=Pc(e),o=n.computed(()=>S("ui",e.color,e.size,l(e.celled,"celled"),l(e.collapsing,"collapsing"),l(e.definition,"definition"),l(e.fixed,"fixed"),l(e.inverted,"inverted"),l(e.selectable,"selectable"),l(e.singleLine,"single line"),l(e.stackable,"stackable"),l(e.striped,"striped"),l(e.structured,"structured"),l(e.unstackable,"unstackable"),T(e.attached,"attached"),T(e.basic,"basic"),T(e.compact,"compact"),T(e.padded,"padded"),q(e.columns,"column"),i.value,"table")),r=n.computed(()=>{var s;const c=(s=a.default)==null?void 0:s.call(a);return c==null?void 0:c.filter(d=>{var m;return((m=d.type)==null?void 0:m.name)==="Column"})});return()=>{var c;return!r.value||r.value.length===0?n.createVNode("table",{class:o.value},[(c=a.default)==null?void 0:c.call(a)]):n.createVNode("table",{class:o.value},[!e.hideHeader&&n.createVNode(ut,{columns:r.value,definition:!!a.definition},{default:a.header}),n.createVNode(mt,{columns:r.value,definitionClass:e.definitionClass,rows:e.items,rowsGroupBy:e.rowsGroupBy,rowActive:e.rowActive,rowClass:e.rowClass,rowColor:e.rowColor,rowDisabled:e.rowDisabled,rowError:e.rowError,rowNegative:e.rowNegative,rowPositive:e.rowPositive,rowWarning:e.rowWarning,"onRow-click":s=>e.selectable&&t("row:select",{data:s.data}),"onCell-click":s=>t("cell:select",{data:s.data,value:s.value})},{definition:a.definition}),n.createVNode(ft,null,a.footer)])}}}),Aa=n.defineComponent({props:{singleLine:Boolean,textAlign:String,width:Number},setup(e){return{computedClass:n.computed(()=>S(l(e.singleLine,"single line"),$(e.textAlign,"aligned"),q(e.width,"wide")))}},render(){var e,t,a,i;return this.computedClass?n.createVNode("th",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]):n.createVNode("th",null,[(i=(a=this.$slots).default)==null?void 0:i.call(a)])}}),ka=n.defineComponent({props:{active:Boolean,color:String,disabled:Boolean,error:Boolean,negative:Boolean,positive:Boolean,textAlign:String,verticalAlign:String,warning:Boolean},setup(e){return{computedClass:n.computed(()=>S(e.color,l(e.active,"active"),l(e.disabled,"disabled"),l(e.error,"error"),l(e.negative,"negative"),l(e.positive,"positive"),l(e.warning,"warning"),$(e.textAlign,"aligned"),$(e.verticalAlign,"aligned")))}},render(){var e,t,a,i;return this.computedClass?n.createVNode("tr",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]):n.createVNode("tr",null,[(i=(a=this.$slots).default)==null?void 0:i.call(a)])}}),xi=n.defineComponent({name:"Column",props:{active:Function,cellClass:[Boolean,Function],collapsing:Boolean,field:String,header:String,error:Function,color:Function,negative:Function,positive:Function,marked:Function,selectable:[Boolean,Function],warning:Function}}),zc={install(e){e.component("SuiTable",xa),e.component("SuiTableBody",mt),e.component("SuiTableCell",Ee),e.component("SuiTableFooter",ft),e.component("SuiTableHeader",ut),e.component("SuiTableHeaderCell",Aa),e.component("SuiTableRow",ka),e.component("SuiColumn",xi)}};function jc(e,t){e.indexOf(t)===-1&&e.push(t)}const Ai=(e,t,a)=>Math.min(Math.max(a,e),t),X={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ht=e=>typeof e=="number",be=e=>Array.isArray(e)&&!ht(e[0]),Yc=(e,t,a)=>{const i=t-e;return((a-e)%i+i)%i+e};function pc(e,t){return be(e)?e[Yc(0,e.length,t)]:e}const ki=(e,t,a)=>-a*e+a*t+e,Di=()=>{},ee=e=>e,Da=(e,t,a)=>t-e===0?1:(a-e)/(t-e);function Ti(e,t){const a=e[e.length-1];for(let i=1;i<=t;i++){const o=Da(0,t,i);e.push(ki(a,1,o))}}function Hc(e){const t=[0];return Ti(t,e-1),t}function Gc(e,t=Hc(e.length),a=ee){const i=e.length,o=i-t.length;return o>0&&Ti(t,o),r=>{let c=0;for(;cArray.isArray(e)&&ht(e[0]),Ta=e=>typeof e=="object"&&!!e.createAnimation,ye=e=>typeof e=="function",_c=e=>typeof e=="string",Re={ms:e=>e*1e3,s:e=>e/1e3},Oi=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,Xc=1e-7,Wc=12;function Uc(e,t,a,i,o){let r,c,s=0;do c=t+(a-t)/2,r=Oi(c,i,o)-e,r>0?a=c:t=c;while(Math.abs(r)>Xc&&++sUc(r,0,1,e,a);return r=>r===0||r===1?r:Oi(o(r),t,i)}const qc=(e,t="end")=>a=>{a=t==="end"?Math.min(a,.999):Math.max(a,.001);const i=a*e,o=t==="end"?Math.floor(i):Math.ceil(i);return Ai(0,1,o/e)},Fi={ease:Pe(.25,.1,.25,1),"ease-in":Pe(.42,0,1,1),"ease-in-out":Pe(.42,0,.58,1),"ease-out":Pe(0,0,.58,1)},Kc=/\((.*?)\)/;function Ii(e){if(ye(e))return e;if($i(e))return Pe(...e);if(Fi[e])return Fi[e];if(e.startsWith("steps")){const t=Kc.exec(e);if(t){const a=t[1].split(",");return qc(parseFloat(a[0]),a[1].trim())}}return ee}class Mi{constructor(t,a=[0,1],{easing:i,duration:o=X.duration,delay:r=X.delay,endDelay:c=X.endDelay,repeat:s=X.repeat,offset:d,direction:m="normal",autoplay:h=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=ee,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((g,b)=>{this.resolve=g,this.reject=b}),i=i||X.easing,Ta(i)){const g=i.createAnimation(a);i=g.easing,a=g.keyframes||a,o=g.duration||o}this.repeat=s,this.easing=be(i)?ee:Ii(i),this.updateDuration(o);const f=Gc(a,d,be(i)?i.map(Ii):ee);this.tick=g=>{var b;r=r;let y=0;this.pauseTime!==void 0?y=this.pauseTime:y=(g-this.startTime)*this.rate,this.t=y,y/=1e3,y=Math.max(y-r,0),this.playState==="finished"&&this.pauseTime===void 0&&(y=this.totalDuration);const w=y/this.duration;let v=Math.floor(w),V=w%1;!V&&w>=1&&(V=1),V===1&&v--;const N=v%2;(m==="reverse"||m==="alternate"&&N||m==="alternate-reverse"&&!N)&&(V=1-V);const D=y>=this.totalDuration?1:Math.min(V,1),I=f(this.easing(D));t(I),this.pauseTime===void 0&&(this.playState==="finished"||y>=this.totalDuration+c)?(this.playState="finished",(b=this.resolve)===null||b===void 0||b.call(this,I)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},h&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}var $a=function(){};process.env.NODE_ENV!=="production"&&($a=function(e,t){if(!e)throw new Error(t)});class Jc{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const Oa=new WeakMap;function Li(e){return Oa.has(e)||Oa.set(e,{transforms:[],values:new Map}),Oa.get(e)}function Zc(e,t){return e.has(t)||e.set(t,new Jc),e.get(t)}const Qc=["","X","Y","Z"],er=["translate","scale","rotate","skew"],gt={x:"translateX",y:"translateY",z:"translateZ"},Ei={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},tr={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Ei,scale:{syntax:"",initialValue:1,toDefaultUnit:ee},skew:Ei},ze=new Map,Fa=e=>`--motion-${e}`,bt=["x","y","z"];er.forEach(e=>{Qc.forEach(t=>{bt.push(e+t),ze.set(Fa(e+t),tr[e])})});const nr=(e,t)=>bt.indexOf(e)-bt.indexOf(t),ar=new Set(bt),Ri=e=>ar.has(e),ir=(e,t)=>{gt[t]&&(t=gt[t]);const{transforms:a}=Li(e);jc(a,t),e.style.transform=or(a)},or=e=>e.sort(nr).reduce(lr,"").trim(),lr=(e,t)=>`${e} ${t}(var(${Fa(t)}))`,Ia=e=>e.startsWith("--"),Pi=new Set;function cr(e){if(!Pi.has(e)){Pi.add(e);try{const{syntax:t,initialValue:a}=ze.has(e)?ze.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:a})}catch{}}}const Ma=(e,t)=>document.createElement("div").animate(e,t),zi={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Ma({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Ma({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Ma({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},La={},Se={};for(const e in zi)Se[e]=()=>(La[e]===void 0&&(La[e]=zi[e]()),La[e]);const rr=.015,sr=(e,t)=>{let a="";const i=Math.round(t/rr);for(let o=0;oye(e)?Se.linearEasing()?`linear(${sr(e,t)})`:X.easing:$i(e)?dr(e):e,dr=([e,t,a,i])=>`cubic-bezier(${e}, ${t}, ${a}, ${i})`;function ur(e,t){for(let a=0;aArray.isArray(e)?e:[e];function Ea(e){return gt[e]&&(e=gt[e]),Ri(e)?Fa(e):e}const yt={get:(e,t)=>{t=Ea(t);let a=Ia(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!a&&a!==0){const i=ze.get(t);i&&(a=i.initialValue)}return a},set:(e,t,a)=>{t=Ea(t),Ia(t)?e.style.setProperty(t,a):e.style[t]=a}};function Yi(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function fr(e,t){var a;let i=(t==null?void 0:t.toDefaultUnit)||ee;const o=e[e.length-1];if(_c(o)){const r=((a=o.match(/(-?[\d.]+)([a-z%]*)/))===null||a===void 0?void 0:a[2])||"";r&&(i=c=>c+r)}return i}function hr(){return window.__MOTION_DEV_TOOLS_RECORD}function gr(e,t,a,i={},o){const r=hr(),c=i.record!==!1&&r;let s,{duration:d=X.duration,delay:m=X.delay,endDelay:h=X.endDelay,repeat:f=X.repeat,easing:g=X.easing,persist:b=!1,direction:y,offset:w,allowWebkitAcceleration:v=!1,autoplay:V=!0}=i;const N=Li(e),D=Ri(t);let I=Se.waapi();D&&ir(e,t);const x=Ea(t),L=Zc(N.values,x),A=ze.get(x);return Yi(L.animation,!(Ta(g)&&L.generator)&&i.record!==!1),()=>{const p=()=>{var F,Y;return(Y=(F=yt.get(e,x))!==null&&F!==void 0?F:A==null?void 0:A.initialValue)!==null&&Y!==void 0?Y:0};let O=ur(mr(a),p);const E=fr(O,A);if(Ta(g)){const F=g.createAnimation(O,t!=="opacity",p,x,L);g=F.easing,O=F.keyframes||O,d=F.duration||d}if(Ia(x)&&(Se.cssRegisterProperty()?cr(x):I=!1),D&&!Se.linearEasing()&&(ye(g)||be(g)&&g.some(ye))&&(I=!1),I){A&&(O=O.map(R=>ht(R)?A.toDefaultUnit(R):R)),O.length===1&&(!Se.partialKeyframes()||c)&&O.unshift(p());const F={delay:Re.ms(m),duration:Re.ms(d),endDelay:Re.ms(h),easing:be(g)?void 0:ji(g,d),direction:y,iterations:f+1,fill:"both"};s=e.animate({[x]:O,offset:w,easing:be(g)?g.map(R=>ji(R,d)):void 0},F),s.finished||(s.finished=new Promise((R,Be)=>{s.onfinish=R,s.oncancel=Be}));const Y=O[O.length-1];s.finished.then(()=>{b||(yt.set(e,x,Y),s.cancel())}).catch(Di),v||(s.playbackRate=1.000001)}else if(o&&D)O=O.map(F=>typeof F=="string"?parseFloat(F):F),O.length===1&&O.unshift(parseFloat(p())),s=new o(F=>{yt.set(e,x,E?E(F):F)},O,Object.assign(Object.assign({},i),{duration:d,easing:g}));else{const F=O[O.length-1];yt.set(e,x,A&&ht(F)?A.toDefaultUnit(F):F)}return c&&r(e,t,O,{duration:d,delay:m,easing:g,repeat:f,offset:w},"motion-one"),L.setAnimation(s),s&&!V&&s.pause(),s}}const br=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function yr(e,t){return typeof e=="string"?e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const Sr=e=>e(),pi=(e,t,a=X.duration)=>new Proxy({animations:e.map(Sr).filter(Boolean),duration:a,options:t},vr),Cr=e=>e.animations[0],vr={get:(e,t)=>{const a=Cr(e);switch(t){case"duration":return e.duration;case"currentTime":return Re.s((a==null?void 0:a[t])||0);case"playbackRate":case"playState":return a==null?void 0:a[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(wr)).catch(Di)),e.finished;case"stop":return()=>{e.animations.forEach(i=>Yi(i))};case"forEachNative":return i=>{e.animations.forEach(o=>i(o,e))};default:return typeof(a==null?void 0:a[t])>"u"?void 0:()=>e.animations.forEach(i=>i[t]())}},set:(e,t,a)=>{switch(t){case"currentTime":a=Re.ms(a);case"playbackRate":for(let i=0;ie.finished;function Vr(e,t,a){return ye(e)?e(t,a):e}function Br(e){return function(a,i,o={}){a=yr(a);const r=a.length;$a(!!r,"No valid element provided."),$a(!!i,"No keyframes defined.");const c=[];for(let s=0;s{const a=new Mi(e,[0,1],t);return a.finished.catch(()=>{}),a}],t,t.duration)}function Ar(e,t,a){return(ye(e)?xr:Nr)(e,t,a)}const B=(e,t)=>(a,{duration:i,keyframesOverride:o={}})=>Ar(a,{...e,...o},{autoplay:!1,...t,duration:i}),Hi=B({transform:["scale(0.8) translateZ(0px)","scale(0.8) translateZ(0px)","scale(1.05) translateZ(0px)","scale(1) translateZ(0px)"],opacity:[null,.7,1,null],zIndex:[-1,-1,999,999]},{duration:.5,offset:[0,.1,.8,1]}),kr=B({transform:["translateX(0%) rotateY(0deg) rotateX(0deg)","translateX(-105%) rotateY(35deg) rotateX(10deg) translateZ(-10px)",null,"translateX(0%) rotateY(0deg) rotateX(0deg) translateZ(-10px)"],opacity:[null,null,1,0],zIndex:[999,-1,null,-1]},{duration:.5,offset:[0,.5,.8,1]}),Dr=B({transform:["translateX(0%) rotateY(0deg) rotateX(0deg)","translateX(105%) rotateY(35deg) rotateX(10deg) translateZ(-10px)",null,"translateX(0%) rotateY(0deg) rotateX(0deg) translateZ(-10px)"],opacity:[null,null,1,0],zIndex:[999,1,null,1]},{duration:.5,offset:[0,.5,.8,1]}),Tr=B({transformOrigin:"top center",animationTimingFunction:"cubic-bezier(0.34, 1.61, 0.7, 1)",transform:["scale(0)","scale(1)"],opacity:[0,1]},{duration:.4,offset:[0,1]}),$r=B({transformOrigin:"top center",animationTimingFunction:"cubic-bezier(0.34, 1.61, 0.7, 1)",transform:["scale(1)","scale(0)"],opacity:[1,0]},{duration:.4,offset:[0,1]}),Or=B({opacity:[0,1]},{duration:.5,offset:[0,1]}),Fr=B({opacity:[0,1],transform:["translateY(10%)","export translateY(0%)"]},{duration:.5,offset:[0,1]}),Ir=B({opacity:[0,1],transform:["translateY(-10%)","translateY(0%)"]},{duration:.5,offset:[0,1]}),Mr=B({opacity:[0,1],transform:["translateX(10%)","translateX(0%)"]},{duration:.5,offset:[0,1]}),Lr=B({opacity:[0,1],transform:["translateX(-10%)","translateX(0%)"]},{duration:.5,offset:[0,1]}),Er=B({opacity:[1,0]},{duration:.5,offset:[0,1]}),Rr=B({opacity:[1,0],transform:["translateY(0%)","texport ranslateY(5%)"]},{duration:.5,offset:[0,1]}),Pr=B({opacity:[1,0],transform:["translateY(0%)","translateY(-5%)"]},{duration:.5,offset:[0,1]}),zr=B({opacity:[1,0],transform:["translateX(0%)","translateX(5%)"]},{duration:.5,offset:[0,1]}),jr=B({opacity:[1,0],transform:["translateX(0%)","translateX(-5%)"]},{duration:.5,offset:[0,1]}),Yr=B({transitionTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:["scale3d(.3, .3, .3)","scale3d(1.1, 1.1, 1.1)","scale3d(.9, .9, .9)","scale3d(1.03, 1.03, 1.03)","scale3d(.97, .97, .97)","scale3d(1, 1, 1)"],opacity:[0,null,null,1,null,1]},{duration:.6,offset:[0,.2,.4,.6,.8,1]}),pr=B({transitionTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:["translate3d(0, 1500px, 0","translate3d(0, -20px, 0)","translate3d(0, 10px, 0)","translate3d(0, -5px, 0)","translate3d(0, 0, 0)"],opacity:[0,1,null,null,null]},{duration:.6,offset:[0,.6,.75,.9,1]}),Hr=B({transitionTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:["translate3d(0, -1500px, 0","translate3d(0, 25px, 0)","translate3d(0, -10px, 0)","translate3d(0, 5px, 0)","none"],opacity:[0,1,null,null,null]},{duration:.6,offset:[0,.6,.75,.9,1]}),Gr=B({transitionTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:["translate3d(1500px, 0, 0","translate3d(-25px, 0, 0)","translate3d(10px, 0, 0)","translate3d(-5px, 0, 0)","none"],opacity:[0,1,null,null,null]},{duration:.6,offset:[0,.6,.75,.9,1]}),_r=B({transitionTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:["translate3d(-1500px, 0, 0","translate3d(25px, 0, 0)","translate3d(-10px, 0, 0)","translate3d(5px, 0, 0)","none"],opacity:[0,1,null,null,null]},{duration:.6,offset:[0,.6,.75,.9,1]}),Xr=B({transform:["scale3d(.9, .9, .9)","scale3d(1.1, 1.1, 1.1)","scale3d(1.1, 1.1, 1.1)","scale3d(.3, .3, .3)"],opacity:[null,1,1,0]},{duration:.6,offset:[.2,.5,.55,1]}),Wr=B({transform:["translate3d(0, 10px, 0)","translate3d(0, -20px, 0)","translate3d(0, -20px, 0)","translate3d(0, 2000px, 0)"],opacity:[null,1,1,0]},{duration:.6,offset:[.2,.4,.45,1]}),Ur=B({transform:["translate3d(0, -10px, 0)","translate3d(0, 20px, 0)","translate3d(0, 20px, 0)","translate3d(0, -2000px, 0)"],opacity:[null,1,1,0]},{duration:.6,offset:[.2,.4,.45,1]}),qr=B({transform:["translate3d(-20px, 0, 0)","translate3d(2000px, 0, 0)"],opacity:[1,0]},{duration:.6,offset:[.2,1]}),Kr=B({transform:["translate3d(20px, 0, 0)","translate3d(-2000px, 0, 0)"],opacity:[1,0]},{duration:.6,offset:[.2,1]}),Jr=B({transform:["perspective(2000px) rotateY(-90deg)","perspective(2000px) rotateY(0deg)"],opacity:[0,1]},{duration:.6,offset:[0,1]}),Zr=B({transform:["perspective(2000px) rotateY(0deg)","perspective(2000px) rotateY(90deg)"],opacity:[1,0]},{duration:.6,offset:[0,1]}),Qr=B({transform:["perspective(2000px) rotateX(-90deg)","perspective(2000px) rotateX(0deg)"],opacity:[0,1]},{duration:.6,offset:[0,1]}),es=B({transform:["perspective(2000px) rotateX(0deg)","perspective(2000px) rotateX(-90deg)"],opacity:[1,0]},{duration:.6,offset:[0,1]}),ts=B({transform:["scale(0.8)","scale(1)"],opacity:[0,1]},{duration:.5,offset:[0,1]}),ns=B({transform:["scale(1)","scale(0.9)"],opacity:[1,0]},{duration:.5,offset:[0,1]}),Gi={transform:["scaleY(0)","scaleY(1)"],opacity:[0,1]},_i={transform:["scaleX(0)","scaleX(1)"],opacity:[0,1]},Xi={transform:["scaleY(1)","scaleY(0)"],opacity:[1,0]},as={transform:["scaleX(1)","scaleX(0)"],opacity:[1,0]},is=B({transformOrigin:"top center",...Gi},{offset:[0,1]}),os=B({transformOrigin:"bottom center",...Gi},{offset:[0,1]}),ls=B({transformOrigin:"center right",..._i},{offset:[0,1]}),cs=B({transformOrigin:"center left",..._i},{offset:[0,1]}),rs=B({transformOrigin:"top center",...Xi},{offset:[0,1]}),ss=B({transformOrigin:"bottom center",...Xi},{offset:[0,1]}),Wi=B({transformOrigin:"center left",...as},{offset:[0,1]}),te=.8,Ce={transform:["perspective(1000px) rotateX(90deg)","perspective(1000px) rotateX(-30deg)","perspective(1000px) rotateX(15deg)","perspective(1000px) rotateX(-7.5deg)","perspective(1000px) rotateX(0deg)"],opacity:[0,1,null,null,null],offset:[0,.4,.6,.8,1]},ve={transform:["perspective(1000px) rotateY(-90deg)","perspective(1000px) rotateY(30deg)","perspective(1000px) rotateY(-17.5deg)","perspective(1000px) rotateY(7.5deg)","perspective(1000px) rotateY(0deg)"],opacity:[0,1,null,null,null],offset:[0,.4,.6,.8,1]},we={transform:["perspective(1000px) rotateX(0deg)","perspective(1000px) rotateX(-7.5deg)","perspective(1000px) rotateX(17.5deg)","perspective(1000px) rotateX(-30deg)","perspective(1000px) rotateX(90deg)"],opacity:[null,null,null,1,0],offset:[0,.4,.6,.8,1]},Ve={transform:["perspective(1000px) rotateY(0deg)","perspective(1000px) rotateY(7.5deg)","perspective(1000px) rotateY(-10deg)","perspective(1000px) rotateY(30deg)","perspective(1000px) rotateY(-90deg)"],opacity:[null,null,null,1,0],offset:[0,.4,.6,.8,1]},ds=B({transformOrigin:"top center",transform:Ce.transform,opacity:Ce.opacity},{duration:te,offset:Ce.offset}),us=B({transformOrigin:"bottom center",transform:Ce.transform,opacity:Ce.opacity},{duration:te,offset:Ce.offset}),ms=B({transformOrigin:"center right",transform:ve.transform,opacity:ve.opacity},{duration:te,offset:ve.offset}),fs=B({transformOrigin:"center left",transform:ve.transform,opacity:ve.opacity},{duration:te,offset:ve.offset}),hs=B({transformOrigin:"top center",transform:we.transform,opacity:we.opacity},{duration:te,offset:we.offset}),gs=B({transformOrigin:"bottom center",transform:we.transform,opacity:we.opacity},{duration:te,offset:we.offset}),bs=B({transformOrigin:"center right",transform:Ve.transform,opacity:Ve.opacity},{duration:te,offset:Ve.offset}),ys=B({transformOrigin:"center left",transform:Ve.transform,opacity:Ve.opacity},{duration:te,offset:Ve.offset}),Ss=B({transform:["scale(0)","scale(1)"],opacity:[1,1]},{offset:[0,1]}),Cs=B({transform:["scale(1)","scale(0)"],opacity:[1,1]},{offset:[0,1]}),vs=B({transform:["translateY(0)","translateY(0)","translateY(-30px)","translateY(0)","translateY(-15px)","translateY(0)","translateY(0)"]},{offset:[0,.2,.4,.5,.6,.8,1]}),ws=B({opacity:[1,0,1,0,1]},{offset:[0,.25,.5,.75,1]}),Vs=B({animationTimingFunction:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",backgroundColor:["#FCFCFD","#FFF6CD","FCFCFD"]},{duration:2,offset:[0,.3,1]}),Bs=B({transform:["scale3d(1, 1, 1)","scale3d(1.25, 0.75, 1)","scale3d(0.75, 1.25, 1)","scale3d(1.15, 0.85, 1)","scale3d(0.95, 1.05, 1)","scale3d(1.05, 0.95, 1)","scale3d(1, 1, 1)"]},{duration:.75,offset:[0,.3,.4,.5,.6,.75,1]}),Ns=B({transform:["scale(1)","scale(0.9)","scale(1)"],opacity:[1,.7,1]},{offset:[0,.5,1]}),xs=B({transform:["translateX(0)","translateX(-10px)","translateX(10px)","translateX(-10px)","translateX(10px)","translateX(-10px)","translateX(10px)","translateX(-10px)","translateX(10px)","translateX(-10px)","translateX(0)"]}),As=B({transform:["scale(1)","scale(0.9) rotate(-3deg)","scale(0.9) rotate(-3deg)","scale(1.1) rotate(3deg)","scale(1.1) rotate(-3deg)","scale(1.1) rotate(3deg)","scale(1.1) rotate(-3deg)","scale(1.1) rotate(3deg)","scale(1.1) rotate(-3deg)","scale(1.1) rotate(3deg)","scale(1) rotate(0)"]},{offset:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}),ks={browse:[Hi,kr],"browse right":[Hi,Dr],drop:[Tr,$r],fade:[Or,Er],"fade up":[Fr,Rr],"fade down":[Ir,Pr],"fade left":[Mr,zr],"fade right":[Lr,jr],fly:[Yr,Xr],"fly up":[pr,Wr],"fly down":[Hr,Ur],"fly left":[Gr,qr],"fly right":[_r,Kr],"horizontal flip":[Jr,Zr],"vertical flip":[Qr,es],scale:[ts,ns],"slide up":[os,ss],"slide down":[is,rs],"slide left":[ls,Wi],"slide right":[cs,Wi],"swing up":[us,gs],"swing down":[ds,hs],"swing left":[ms,bs],"swing right":[fs,ys],zoom:[Ss,Cs]},Ds={bounce:[vs,void 0],flash:[ws,void 0],glow:[Vs,void 0],jiggle:[Bs,void 0],pulse:[Ns,void 0],shake:[xs,void 0],tada:[As,void 0]},Ui=e=>({...ks,...Ds})[e],Ts=e=>{const[t,a]=Ui(e.animation),i=n.computed(()=>e.duration?e.duration/1e3:.5),o=n.computed(()=>(c,s)=>{if(!t)return s();const d=t(c,{duration:i.value});d.play(),d.finished.then(s)}),r=n.computed(()=>(c,s)=>{if(!a)return s();const d=a(c,{duration:i.value});d.play(),d.finished.then(s)});return{onEnter:o,onLeave:r}},Ra=n.defineComponent({props:{animation:{type:String,default:"fade"},duration:{type:Number,default:500}},setup(e){const{onEnter:t,onLeave:a}=Ts(e);return{onEnter:t,onLeave:a}},render(){return n.createVNode(n.Transition,{onEnter:this.onEnter,onLeave:this.onLeave,css:!1},{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})}}),qi=n.defineComponent({props:{tag:String,animation:{type:String,default:"fade"},enterKeyframes:{type:Function,default:()=>({})},leaveKeyframes:{type:Function,default:()=>({})}},setup(e){const[t,a]=Ui(e.animation),i=n.computed(()=>(r,c)=>{if(!t)return c();const d=t(r,{duration:.5,keyframesOverride:e.enterKeyframes(r)});d.play(),d.finished.then(c)}),o=n.computed(()=>(r,c)=>{if(!a)return c();const d=a(r,{duration:.5,keyframesOverride:e.leaveKeyframes(r)});d.play(),d.finished.then(c)});return{onEnter:i,onLeave:o}},render(){return n.createVNode(n.TransitionGroup,{tag:this.tag,onEnter:this.onEnter,onLeave:this.onLeave,css:!1},{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})}}),$s=Object.freeze(Object.defineProperty({__proto__:null,Accordion:to,Advertisement:no,Breadcrumb:ao,Button:mo,Calendar:Tl,Card:$l,Checkbox:Ol,Comment:Il,Container:Ml,Dimmer:Ll,Divider:El,Dropdown:Zl,Embed:Ql,Emoji:ec,Feed:tc,Flag:nc,Flyout:ic,Form:lc,Grid:cc,Header:rc,Icon:io,Image:sc,Input:dc,Item:uc,Label:Hl,List:fc,Menu:hc,Message:gc,Modal:yc,Popup:Cc,Progress:Vc,Rail:Bc,Rating:xc,Reveal:Ac,Search:Dc,Segment:Tc,Sidebar:Oc,Slider:Fc,Statistic:Ic,Step:Mc,Tab:Lc,Table:zc,Transition:{install(e){e.component("SuiTransition",Ra),e.component("SuiTransitionGroup",qi)}}},Symbol.toStringTag,{value:"Module"})),Ki=n.defineComponent({props:{active:Boolean,color:String,disabled:Boolean,fast:Boolean,indeterminate:Boolean,inline:[Boolean,String],inverted:Boolean,size:String,slow:Boolean,text:Boolean},setup(e,{slots:t}){return{computedClass:n.computed(()=>{var i;return S("ui",e.color,e.size,l(e.active,"active"),l(e.disabled,"disabled"),l(e.fast,"fast"),l(e.indeterminate,"indeterminate"),l(e.inverted,"inverted"),l(e.slow,"slow"),l(e.text||!!((i=t.default)!=null&&i.call(t)),"text"),T(e.inline,"inline"),"loader")})}},render(){var e,t;return n.createVNode("div",{class:this.computedClass},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}),Pa=n.defineComponent({name:"SuiToastActions",props:{aligned:String,basic:Boolean,vertical:Boolean,...oa()},setup(e,{slots:t}){const a=n.computed(()=>S("actions",e.basic&&"basic",e.aligned,e.vertical&&"vertical"));return()=>{var i;return e.attached?n.createVNode(We,{attached:e.attached,vertical:e.vertical},{default:()=>{var o;return[(o=t.default)==null?void 0:o.call(t)]}}):n.createVNode("div",{class:a.value},[(i=t.default)==null?void 0:i.call(t)])}}}),Os=n.defineComponent({name:"SuiToastBox",props:{unclickable:Boolean,verticalAttached:Boolean},setup(e,{slots:t}){const a=n.computed(()=>S("floating toast-box compact",e.unclickable&&"unclickable"));return()=>{var i,o;return e.verticalAttached?n.createVNode("div",{class:a.value,style:"display: block !important;"},[n.createVNode("div",{class:"vertical attached compact right"},[(i=t.default)==null?void 0:i.call(t)])]):n.createVNode("div",{class:a.value,style:"display: block !important;"},[(o=t.default)==null?void 0:o.call(t)])}}});function za(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Fs=n.defineComponent({name:"SuiToast",emits:["click","close"],props:{id:Number,displayTime:{type:Number,default:3e3},type:String,title:String,message:{type:String,required:!0},centered:Boolean,messageStyle:Boolean,actions:Function,actionsProps:Object,showProgress:{type:String},showProgressColor:String,showProgressUp:Boolean,inverted:Boolean,...la()},setup(e,{emit:t}){const{colorClasses:a}=ca(e),i=n.computed(()=>{var c,s,d,m,h;return S(e.centered&&"center aligned",e.type||"neutral",a.value,"ui",e.messageStyle?"message":"toast",e.actions&&!((c=e.actionsProps)!=null&&c.vertical)&&"actions",((s=e.actionsProps)==null?void 0:s.attached)==="top"&&"bottom attached",((d=e.actionsProps)==null?void 0:d.attached)==="bottom"&&"top attached",((m=e.actionsProps)==null?void 0:m.attached)==="left"&&"left attached",((h=e.actionsProps)==null?void 0:h.vertical)&&"vertical","compact")}),o=n.ref(e.showProgressUp?0:100),r=()=>{const c=e.displayTime/100;setTimeout(()=>{const s=setInterval(()=>{if(e.showProgressUp){o.value>=100&&clearInterval(s),o.value+=1;return}o.value<=0&&clearInterval(s),o.value-=1},c)},500)};return n.onMounted(()=>e.showProgress&&r()),setTimeout(()=>e.displayTime>0&&t("close"),e.displayTime+750),{classes:i,progress:o}},render(){var i;let e,t,a;return n.createVNode(Os,{unclickable:!!this.actions,verticalAttached:((i=this.actionsProps)==null?void 0:i.attached)==="left"},{default:()=>{var o,r,c,s;return[this.showProgress==="top"&&n.createVNode(Ie,{inverted:!this.inverted,color:this.showProgressColor||this.color,attached:this.showProgress,percent:this.progress},null),this.actions&&(((o=this.actionsProps)==null?void 0:o.attached)==="top"||((r=this.actionsProps)==null?void 0:r.attached)==="left")&&n.createVNode(Pa,this.actionsProps,za(e=this.actions({close:()=>this.$emit("close")}))?e:{default:()=>[e]}),n.createVNode("div",{role:"alert",class:this.classes,onClick:()=>!this.actions&&this.$emit("click")},[n.createVNode("div",{class:"content"},[this.title&&n.createVNode("div",{class:"ui header"},[this.title]),n.createVNode("div",{class:"message"},[this.message])]),this.actions&&!((c=this.actionsProps)!=null&&c.attached)&&n.createVNode(Pa,this.actionsProps,za(t=this.actions({close:()=>this.$emit("close")}))?t:{default:()=>[t]})]),this.actions&&((s=this.actionsProps)==null?void 0:s.attached)==="bottom"&&n.createVNode(Pa,this.actionsProps,za(a=this.actions({close:()=>this.$emit("close")}))?a:{default:()=>[a]}),this.showProgress==="bottom"&&n.createVNode(Ie,{inverted:!this.inverted,color:this.showProgressColor||this.color,attached:this.showProgress,percent:this.progress},null)]}})}}),Is=["top right","top center","top left","bottom right","bottom center","bottom left","centered"],Ms=({defaultValue:e}={})=>({position:{type:String,validator:t=>Is.includes(t),default:e}}),Ls=e=>({positionClasses:n.computed(()=>e.position||"")});function Es(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Rs=n.defineComponent({name:"SuiToastContainer",props:{horizontal:Boolean,...oa(),...Ms({defaultValue:"top right"})},setup(e){const{items:t,remove:a}=Ji(),{attachedClasses:i}=Bi(e),{positionClasses:o}=Ls(e);return{classes:n.computed(()=>S(i.value||o.value,"ui toast-container",e.horizontal&&"horizontal")),items:t,remove:a,enterKeyframes:d=>{if(!(d instanceof HTMLElement))return{};const m=[0,`${d.offsetHeight}px`],h=[0,`${parseInt(getComputedStyle(d).marginBottom,10)}px`];return{height:m,marginBottom:h}},leaveKeyframes:d=>{if(!(d instanceof HTMLElement))return{};const m=[`${d.offsetWidth}px`,0],h=[`${d.offsetHeight}px`,0],f=e.horizontal?{width:m}:{height:h},g=[`${parseInt(getComputedStyle(d).marginBottom,10)}px`,0];return{...f,marginBottom:g}}}},render(){let e;return n.createVNode(n.Teleport,{to:"body"},{default:()=>[n.createVNode("div",{class:this.classes},[n.createVNode(qi,{animation:"scale",enterKeyframes:this.enterKeyframes,leaveKeyframes:this.leaveKeyframes},Es(e=this.items.filter(({position:t,attached:a})=>this.attached?a===this.attached:t===this.position).filter(({horizontal:t})=>this.horizontal===!!t).map(({id:t,...a})=>n.createVNode(Fs,n.mergeProps({key:t},a,{onClick:()=>this.remove(t),onClose:()=>this.remove(t)}),null)))?e:{default:()=>[e]})])]})}}),Ps=n.ref(1),je=n.ref([]),Ji=()=>({items:je,add:a=>{a.position=a.position||"top right",je.value=[...je.value,{id:Ps.value++,...a}]},remove:a=>{je.value=je.value.filter(i=>i.id!==a)}}),zs=()=>{var i;const e=(i=n.getCurrentInstance())==null?void 0:i.appContext,{add:t}=Ji();return{toast:o=>{const{position:r,attached:c,horizontal:s}=o;ps({position:r,attached:c,horizontal:s})||Ys(e,{position:r,attached:c,horizontal:s}),t(o)}}},js=(e,{appContext:t,element:a}={})=>{const i=a||document.createElement("div");return t&&(e.appContext=t),n.render(e,i),{vNode:e,el:i}},Ys=(e,{position:t="top right",attached:a,horizontal:i=!1}={})=>{const o=n.h(Rs,{position:t,attached:a,horizontal:i}),{el:r}=js(o,{appContext:e});return{vNode:o,el:r}},ps=({position:e="top right",attached:t,horizontal:a})=>{const i=t?`.ui.toast-container.${t}.attached`:`.ui.toast-container.${e.split(" ").join(".")}${a?".horizontal":":not(.horizontal)"}`;return document.querySelector(i)};function Hs(e){Object.values({...$s}).map(t=>e.use(t))}const Gs={install:Hs};u.Accordion=Ct,u.AccordionAccordion=vt,u.AccordionContent=pe,u.AccordionTab=He,u.AccordionTitle=wt,u.Advertisement=Vt,u.Breadcrumb=Bt,u.BreadcrumbDivider=Ge,u.BreadcrumbSection=_e,u.Button=Xe,u.ButtonContent=xt,u.ButtonGroup=We,u.Calendar=Pt,u.Card=zt,u.CardContent=jt,u.CardDescription=Yt,u.CardGroup=pt,u.CardHeader=Ht,u.CardMeta=Gt,u.Checkbox=_t,u.Column=xi,u.Comment=Xt,u.CommentAction=Wt,u.CommentActions=Ut,u.CommentAuthor=qt,u.CommentAvatar=ot,u.CommentContent=Kt,u.CommentGroup=Jt,u.CommentMetadata=Zt,u.CommentText=Qt,u.Container=en,u.Dimmer=tn,u.DimmerDimmable=nn,u.Divider=an,u.Dropdown=rn,u.Embed=sn,u.Emoji=dn,u.Feed=un,u.FeedContent=mn,u.FeedDate=fn,u.FeedEvent=hn,u.FeedExtra=gn,u.FeedLabel=bn,u.FeedLike=yn,u.FeedMeta=Sn,u.FeedSummary=Cn,u.FeedUser=vn,u.Flag=wn,u.Flyout=vi,u.Form=Vn,u.FormField=Bn,u.FormGroup=Nn,u.FormTextarea=xn,u.Grid=An,u.GridColumn=kn,u.GridRow=Dn,u.Header=Tn,u.HeaderContent=$n,u.HeaderSubheader=Fe,u.Icon=z,u.IconGroup=Nt,u.Image=se,u.ImageGroup=On,u.Input=Fn,u.Item=In,u.ItemContent=Mn,u.ItemDescription=Ln,u.ItemExtra=En,u.ItemGroup=Rn,u.ItemHeader=Pn,u.ItemImage=zn,u.ItemMeta=jn,u.Label=re,u.LabelDetail=ln,u.LabelGroup=cn,u.List=Yn,u.ListContent=Hn,u.ListDescription=Gn,u.ListHeader=lt,u.ListIcon=pn,u.ListItem=ge,u.ListList=_n,u.Loader=Ki,u.Menu=rt,u.MenuHeader=Xn,u.MenuItem=ct,u.MenuMenu=Wn,u.Message=Un,u.MessageContent=qn,u.MessageHeader=Kn,u.MessageItem=Jn,u.MessageList=Zn,u.Modal=Qn,u.ModalActions=ea,u.ModalContent=ta,u.ModalDescription=na,u.ModalHeader=aa,u.Popup=ia,u.Progress=Ie,u.Rail=ra,u.Rating=sa,u.Reveal=da,u.RevealContent=ua,u.Segment=ma,u.SegmentGroup=fa,u.SegmentInline=ha,u.Sidebar=ga,u.Slider=ya,u.Statistic=Sa,u.StatisticGroup=Ca,u.StatisticLabel=Me,u.StatisticValue=Le,u.Step=st,u.StepContent=wa,u.StepDescription=Ba,u.StepGroup=va,u.StepTitle=Va,u.SuiAccordion=Ct,u.SuiAccordionAccordion=vt,u.SuiAccordionContent=pe,u.SuiAccordionTab=He,u.SuiAccordionTitle=wt,u.SuiAdvertisement=Vt,u.SuiBreadcrumb=Bt,u.SuiBreadcrumbDivider=Ge,u.SuiBreadcrumbSection=_e,u.SuiButton=Xe,u.SuiButtonContent=xt,u.SuiButtonGroup=We,u.SuiCalendar=Pt,u.SuiCard=zt,u.SuiCardContent=jt,u.SuiCardDescription=Yt,u.SuiCardGroup=pt,u.SuiCardHeader=Ht,u.SuiCardMeta=Gt,u.SuiCheckbox=_t,u.SuiComment=Xt,u.SuiCommentAction=Wt,u.SuiCommentActions=Ut,u.SuiCommentAuthor=qt,u.SuiCommentAvatar=ot,u.SuiCommentContent=Kt,u.SuiCommentGroup=Jt,u.SuiCommentMetadata=Zt,u.SuiCommentText=Qt,u.SuiContainer=en,u.SuiDimmer=tn,u.SuiDimmerDimmable=nn,u.SuiDivider=an,u.SuiDropdown=rn,u.SuiEmbed=sn,u.SuiEmoji=dn,u.SuiFeed=un,u.SuiFeedContent=mn,u.SuiFeedDate=fn,u.SuiFeedEvent=hn,u.SuiFeedExtra=gn,u.SuiFeedLabel=bn,u.SuiFeedLike=yn,u.SuiFeedMeta=Sn,u.SuiFeedSummary=Cn,u.SuiFeedUser=vn,u.SuiFlag=wn,u.SuiForm=Vn,u.SuiFormField=Bn,u.SuiFormGroup=Nn,u.SuiFormTextarea=xn,u.SuiGrid=An,u.SuiGridColumn=kn,u.SuiGridRow=Dn,u.SuiHeader=Tn,u.SuiHeaderContent=$n,u.SuiHeaderSubheader=Fe,u.SuiIcon=z,u.SuiIconGroup=Nt,u.SuiImage=se,u.SuiImageGroup=On,u.SuiInput=Fn,u.SuiItem=In,u.SuiItemContent=Mn,u.SuiItemDescription=Ln,u.SuiItemExtra=En,u.SuiItemGroup=Rn,u.SuiItemHeader=Pn,u.SuiItemImage=zn,u.SuiItemMeta=jn,u.SuiLabel=re,u.SuiLabelDetail=ln,u.SuiLabelGroup=cn,u.SuiList=Yn,u.SuiListContent=Hn,u.SuiListDescription=Gn,u.SuiListHeader=lt,u.SuiListIcon=pn,u.SuiListItem=ge,u.SuiListList=_n,u.SuiLoader=Ki,u.SuiMenu=rt,u.SuiMenuHeader=Xn,u.SuiMenuItem=ct,u.SuiMenuMenu=Wn,u.SuiMessage=Un,u.SuiMessageContent=qn,u.SuiMessageHeader=Kn,u.SuiMessageItem=Jn,u.SuiMessageList=Zn,u.SuiModal=Qn,u.SuiModalActions=ea,u.SuiModalContent=ta,u.SuiModalDescription=na,u.SuiModalHeader=aa,u.SuiPopup=ia,u.SuiProgress=Ie,u.SuiRail=ra,u.SuiRating=sa,u.SuiReveal=da,u.SuiRevealContent=ua,u.SuiSegment=ma,u.SuiSegmentGroup=fa,u.SuiSegmentInline=ha,u.SuiSidebar=ga,u.SuiSlider=ya,u.SuiStatistic=Sa,u.SuiStatisticGroup=Ca,u.SuiStatisticLabel=Me,u.SuiStatisticValue=Le,u.SuiStep=st,u.SuiStepContent=wa,u.SuiStepDescription=Ba,u.SuiStepGroup=va,u.SuiStepTitle=Va,u.SuiTab=Na,u.SuiTabPanel=dt,u.SuiTable=xa,u.SuiTableBody=mt,u.SuiTableCell=Ee,u.SuiTableFooter=ft,u.SuiTableHeader=ut,u.SuiTableHeaderCell=Aa,u.SuiTableRow=ka,u.SuiTransition=Ra,u.Tab=Na,u.TabPanel=dt,u.Table=xa,u.TableBody=mt,u.TableCell=Ee,u.TableFooter=ft,u.TableHeader=ut,u.TableHeaderCell=Aa,u.TableRow=ka,u.Transition=Ra,u.default=Gs,u.useToast=zs,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});