PageSourceSearch

https://www.inclusion.eu/_nuxt/nwRbv6Uy.js

js inclusion.eu collected 2026-10-02 14:40:33 UTC 126,837 bytes, 4 lines download raw bytes

1import{g as b,i as J,ad as Jn,k as me,ak as In,al as Xo,am as Te,an as pe,r as I,R as we,T as Ce,O as te,aa as Zn,D as ce,Y as se,F as Ve,a4 as be,ac as Qo,ao as ie,ae as Jo,ap as Zo,E as q,M as qe,N as fe,_ as ut,Z as jt,P as at,Q as Ie,a0 as zt,a1 as Re,o as D,c as ee,m as ne,W as Oe,aq as ot,t as ae,n as de,U as ge,ar as Pn,as as _o,at as ea,a3 as ta,au as na,$ as oa,av as aa,aw as la,ax as $n,x as yt,w as z,a as V,b as Q,ay as ra,l as _n,az as ia,d as _,aA as Mn,S as eo,aB as to,aC as sa,aD as ua,ah as Nt,C as da,s as vt,ai as pt,p as ca,f as Rn,J as Ln,aj as fa}from"./BQTrDalH.js";import{o as $,c as le,d as no,e as oo,f as St,E as ao,u as Ct,A as he,T as kt,i as Be,s as lo,N as je,a as X,S as Je,b as ro,_ as va}from"./CqRdflN9.js";import{a as io,b as pa,_ as ma,r as ha}from"./D7d1tVPc.js";const ga={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},ba={wrapper:{horizontal:"inline-flex -space-x-px",vertical:"inline-flex flex-col -space-y-px"},rounded:"rounded-md",shadow:"shadow-sm",orientation:{"rounded-none":{horizontal:{start:"rounded-s-none",end:"rounded-e-none"},vertical:{start:"rounded-t-none",end:"rounded-b-none"}},"rounded-sm":{horizontal:{start:"rounded-s-sm",end:"rounded-e-sm"},vertical:{start:"rounded-t-sm",end:"rounded-b-sm"}},rounded:{horizontal:{start:"rounded-s",end:"rounded-e"},vertical:{start:"rounded-t",end:"rounded-b"}},"rounded-md":{horizontal:{start:"rounded-s-md",end:"rounded-e-md"},vertical:{start:"rounded-t-md",end:"rounded-b-md"}},"rounded-lg":{horizontal:{start:"rounded-s-lg",end:"rounded-e-lg"},vertical:{start:"rounded-t-lg",end:"rounded-b-lg"}},"rounded-xl":{horizontal:{start:"rounded-s-xl",end:"rounded-e-xl"},vertical:{start:"rounded-t-xl",end:"rounded-b-xl"}},"rounded-2xl":{horizontal:{start:"rounded-s-2xl",end:"rounded-e-2xl"},vertical:{start:"rounded-t-2xl",end:"rounded-b-2xl"}},"rounded-3xl":{horizontal:{start:"rounded-s-3xl",end:"rounded-e-3xl"},vertical:{start:"rounded-t-3xl",end:"rounded-b-3xl"}},"rounded-full":{horizontal:{start:"rounded-s-full",end:"rounded-e-full"},vertical:{start:"rounded-t-full",end:"rounded-b-full"}}}},ya={wrapper:"flex items-center -space-x-px",base:"",rounded:"first:rounded-s-md last:rounded-e-md",default:{size:"sm",activeButton:{color:"primary"},inactiveButton:{color:"white"},firstButton:{color:"white",class:"rtl:[&_span:first-child]:rotate-180",icon:"i-heroicons-chevron-double-left-20-solid"},lastButton:{color:"white",class:"rtl:[&_span:last-child]:rotate-180",icon:"i-heroicons-chevron-double-right-20-solid"},prevButton:{color:"white",class:"rtl:[&_span:first-child]:rotate-180",icon:"i-heroicons-chevron-left-20-solid"},nextButton:{color:"white",class:"rtl:[&_span:last-child]:rotate-180",icon:"i-heroicons-chevron-right-20-solid"}}},wa={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",margin:"sm:my-8",base:"relative text-left rtl:text-right flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"w-full sm:max-w-lg",height:"",fullscreen:"w-screen h-screen",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}};function nt(e,t,n){let a=n.initialDeps??[],o;return()=>{var i,r,l,s;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const u=e();if(!(u.length!==a.length||u.some((p,m)=>a[m]!==p)))return o;a=u;let f;
vendor: 4,801 bytes, lines 1-4
1if(n.key&&((r=n.debug)!=null&&r.call(n))&&(f=Date.now()),o=t(...u),n.key&&((l=n.debug)!=null&&l.call(n))){const p=Math.round((Date.now()-d)*100)/100,m=Math.round((Date.now()-f)*100)/100,O=m/16,C=(A,x)=>{for(A=String(A);A.length<x;)A=" "+A;return A};console.info(`%c⏱ ${C(m,5)} /${C(p,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*O,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(s=n==null?void 0:n.onChange)==null||s.call(n,o),o}}function Gt(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Oa=(e,t)=>Math.abs(e-t)<1,xa=(e,t,n)=>{let a;return function(...o){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,o),n)}},Sa=e=>e,Ca=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let o=t;o<=n;o++)a.push(o);return a},Ea=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const o=r=>{const{width:l,height:s}=r;t({width:Math.round(l),height:Math.round(s)})};if(o(n.getBoundingClientRect()),!a.ResizeObserver)return()=>{};const i=new a.ResizeObserver(r=>{const l=r[0];if(l!=null&&l.borderBoxSize){const s=l.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Dn={passive:!0},ka=typeof window>"u"?!0:"onscrollend"in window,Ta=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let o=0;const i=e.options.useScrollendEvent&&ka?()=>{}:xa(a,()=>{t(o,!1)},e.options.isScrollingResetDelay),r=d=>()=>{const{horizontal:u,isRtl:c}=e.options;o=u?n.scrollLeft*(c&&-1||1):n.scrollTop,i(),t(o,d)},l=r(!0),s=r(!1);return s(),n.addEventListener("scroll",l,Dn),n.addEventListener("scrollend",s,Dn),()=>{n.removeEventListener("scroll",l),n.removeEventListener("scrollend",s)}},Aa=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Ia=(e,{adjustments:t=0,behavior:n},a)=>{var o,i;const r=e+t;(i=(o=a.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[a.options.horizontal?"left":"top"]:r,behavior:n})};class Pa{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=a())==null||o.disconnect(),n=null},observe:o=>{var i;return(i=a())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=a())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,o])=>{typeof o>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Sa,rangeExtractor:Ca,onChange:()=>{},measureElement:Aa,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var a,o;(o=(a=this.options).onChange)==null||o.call(a,this,n)},this.maybeNotify=nt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>
vendor: 6,273 bytes, line 4
4{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,a)=>{const o=new Map,i=new Map;for(let r=a-1;r>=0;r--){const l=n[r];if(o.has(l.lane))continue;const s=i.get(l.lane);if(s==null||l.end>s.end?i.set(l.lane,l):l.end<s.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((r,l)=>r.end===l.end?r.index-l.index:r.end-l.end)[0]:void 0},this.getMeasurementOptions=nt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,a,o,i,r)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:o,getItemKey:i,enabled:r}),{key:!1}),this.getMeasurements=nt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:o,getItemKey:i,enabled:r},l)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,s);for(let u=s;u<n;u++){const c=i(u),f=this.options.lanes===1?d[u-1]:this.getFurthestMeasurement(d,u),p=f?f.end+this.options.gap:a+o,m=l.get(c),O=typeof m=="number"?m:this.options.estimateSize(u),C=p+O,A=f?f.lane:u%this.options.lanes;d[u]={index:u,start:p,size:O,end:C,key:c,lane:A}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=nt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,a,o)=>this.range=n.length>0&&a>0?$a({measurements:n,outerSize:a,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=nt(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,a,o,i)=>a===null?[]:n({startIndex:a.startIndex,endIndex:a.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,o=n.getAttribute(a);return o?parseInt(o,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const o=this.indexFromElement(n),i=this.measurementsCache[o];if(!i)return;const r=i.key,l=this.elementsCache.get(r);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(r,n)),n.isConnected&&this.resizeItem(o,this.options.measureElement(n,a,this))},this.resizeItem=(n,a)=>{const o=this.measurementsCache[n];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,r=a-i;r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,r,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,a)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,o)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(o))});return}this._measureElement(n,void 0)},this.getVirtualItems=nt(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const o=[];for(let i=0,r=n.length;i<r;i++){const l=n[i],s=a[l];o.push(s)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();if(a.length!==0)return Gt(a[so(0,a.length-1,o=>Gt(a[o]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const o=this.getSize(),i=this.getScrollOffset();a==="auto"&&n>=i+o&&(a="end"),a==="end"&&(n-=o);const r=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[r]:this.scrollElement[r]:0)-o;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.measurementsCache[n];if(!o)return;const i=this.getSize(),r=this.getScrollOffset();if(a==="auto")if(o.end>=r+i-this.options.scrollPaddingEnd)a="end";else if(o.start<=r+this.options.scrollPaddingStart)a="start";else return[r,a];const l=o.start-this.options.scrollPaddingStart+(o.size-i)/2;switch(a){case"center":return[this.getOffsetForAlignment(l,a),a];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,a),a];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,a),a]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:a="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(n,a);if(!i)return;const[r,l]=i;this._scrollToOffset(r,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[d]=Gt(this.getOffsetForIndex(n,l));
4Oa(d,this.getScrollOffset())||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let o;return a.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:a,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const so=(e,t,n,a)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<a)e=o+1;else if(i>a)t=o-1;else return o}return e>0?e-1:0};function $a({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,i=so(0,a,l=>e[l].start,n);let r=i;for(;r<a&&e[r].end<n+t;)r++;return{startIndex:i,endIndex:r}}function Ma(e){const t=new Pa(J(e)),n=Jn(t),a=t._didMount();return me(()=>J(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),me(()=>J(e),o=>{t.setOptions({...o,onChange:(i,r)=>{var l;In(n),(l=o.onChange)==null||l.call(o,i,r)}}),t._willUpdate(),In(n)},{immediate:!0}),Xo(a),n}function Ra(e){return Ma(b(()=>({observeElementRect:Ea,observeElementOffset:Ta,scrollToFn:Ia,...J(e)})))}function ln(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ue(){let e=[],t={addEventListener(n,a,o,i){return n.addEventListener(a,o,i),t.add(()=>n.removeEventListener(a,o,i))},requestAnimationFrame(...n){let a=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(a))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let a=setTimeout(...n);t.add(()=>clearTimeout(a))},microTask(...n){let a={current:!0};return ln(()=>{a.current&&n[0]()}),t.add(()=>{a.current=!1})},style(n,a,o){let i=n.style.getPropertyValue(a);return Object.assign(n.style,{[a]:o}),this.add(()=>{Object.assign(n.style,{[a]:i})})},group(n){let a=Ue();return n(a),this.add(()=>a.dispose())},add(n){return e.push(n),()=>{let a=e.indexOf(n);if(a>=0)for(let o of e.splice(a,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function La(){let e=Ue();return Te(()=>e.dispose()),e}function Da(){let e=La();return t=>{e.dispose(),e.nextFrame(t)}}var Ba=Object.defineProperty,Fa=(e,t,n)=>t in e?Ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t,n)=>(Fa(e,typeof t!="symbol"?t+"":t,n),n);let za=class{constructor(){Bn(this,"current",this.detect()),Bn(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Tt=new za;function Ge(e){if(Tt.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=$(e);if(t)return t.ownerDocument}return document}let Qt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var We=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(We||{}),uo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(uo||{}),Va=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Va||{});function ja(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Qt)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var rn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(rn||{});function co(e,t=0){var n;return e===((n=Ge(e))==null?void 0:n.body)?!1:le(t,{0(){return e.matches(Qt)},1(){let a=e;for(;a!==null;){if(a.matches(Qt))return!0;a=a.parentElement}return!1}})}var Na=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Na||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function _e(e){e==null||e.focus({preventScroll:!0})}let Ha=["textarea","input"].join(",");function Wa(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Ha))!=null?n:!1}function sn(e,t=n=>n){return e.slice().sort((n,a)=>{let o=t(n),i=t(a);if(o===null||i===null)return 0;let r=o.compareDocumentPosition(i);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Bt(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:o=[]}={}){var i;let r=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,l=Array.isArray(e)?n?sn(e):e:ja(e);o.length>0&&l.length>1&&(l=l.filter(m=>!o.includes(m))),a=a??r.activeElement;let s=(()=>
4{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(a))-1;if(t&4)return Math.max(0,l.indexOf(a))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=l.length,p;do{if(c>=f||c+f<=0)return 0;let m=d+c;if(t&16)m=(m+f)%f;else{if(m<0)return 3;if(m>=f)return 1}p=l[m],p==null||p.focus(u),c+=s}while(p!==r.activeElement);return t&6&&Wa(p)&&p.select(),2}function fo(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ua(){return/Android/gi.test(window.navigator.userAgent)}function vo(){return fo()||Ua()}function Mt(e,t,n){Tt.isServer||pe(a=>{document.addEventListener(e,t,n),a(()=>document.removeEventListener(e,t,n))})}function po(e,t,n){Tt.isServer||pe(a=>{window.addEventListener(e,t,n),a(()=>window.removeEventListener(e,t,n))})}function un(e,t,n=b(()=>!0)){function a(i,r){if(!n.value||i.defaultPrevented)return;let l=r(i);if(l===null||!l.getRootNode().contains(l))return;let s=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let d of s){if(d===null)continue;let u=d instanceof HTMLElement?d:$(d);if(u!=null&&u.contains(l)||i.composed&&i.composedPath().includes(u))return}return!co(l,rn.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let o=I(null);Mt("pointerdown",i=>{var r,l;n.value&&(o.value=((l=(r=i.composedPath)==null?void 0:r.call(i))==null?void 0:l[0])||i.target)},!0),Mt("mousedown",i=>{var r,l;n.value&&(o.value=((l=(r=i.composedPath)==null?void 0:r.call(i))==null?void 0:l[0])||i.target)},!0),Mt("click",i=>{vo()||o.value&&(a(i,()=>o.value),o.value=null)},!0),Mt("touchend",i=>a(i,()=>i.target instanceof HTMLElement?i.target:null),!0),po("blur",i=>a(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Fn(e){return[e.screenX,e.screenY]}function mo(){let e=I([-1,-1]);return{wasMoved(t){let n=Fn(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=Fn(t)}}}function qa({container:e,accept:t,walk:n,enabled:a}){pe(()=>{let o=e.value;if(!o||a!==void 0&&!a.value)return;let i=Ge(e);if(!i)return;let r=Object.assign(s=>t(s),{acceptNode:t}),l=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,r,!1);for(;l.nextNode();)n(l.currentNode)})}let ho=Symbol("Context");var ue=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ue||{});function Ga(){return At()!==null}function At(){return we(ho,null)}function dn(e){Ce(ho,e)}var go=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(go||{});function Ya(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let ze=[];Ya(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&ze[0]!==t.target&&(ze.unshift(t.target),ze=ze.filter(n=>n!=null&&n.isConnected),ze.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ka(e){throw new Error("Unexpected object: "+e)}var K=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(K||{});function Jt(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),o=a??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 3:{for(let i=n.length-1;i>=0;
4--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return a}case 5:return null;default:Ka(e)}}var Xa={};function Qa(e,t){return e===t}var Ja=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ja||{}),Za=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Za||{}),_a=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(_a||{});let bo=Symbol("ComboboxContext");function dt(e){let t=we(bo,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dt),n}return t}let yo=Symbol("VirtualContext"),el=te({name:"VirtualProvider",setup(e,{slots:t}){let n=dt("VirtualProvider"),a=b(()=>{let l=$(n.optionsRef);if(!l)return{start:0,end:0};let s=window.getComputedStyle(l);return{start:parseFloat(s.paddingBlockStart||s.paddingTop),end:parseFloat(s.paddingBlockEnd||s.paddingBottom)}}),o=Ra(b(()=>({scrollPaddingStart:a.value.start,scrollPaddingEnd:a.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return $(n.optionsRef)},overscan:12}))),i=b(()=>{var l;return(l=n.virtual.value)==null?void 0:l.options}),r=I(0);return me([i],()=>{r.value+=1}),Ce(yo,n.virtual.value?o:null),()=>[se("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:l=>
4{if(l){if(typeof process<"u"&&Xa.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(l=>Qo(t.default({option:n.virtual.value.options[l.index],open:n.comboboxState.value===0})[0],{key:`${r.value}-${l.index}`,"data-index":l.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),tl=te({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let o=I(1),i=I(null),r=I(null),l=I(null),s=I(null),d=I({static:!1,hold:!1}),u=I([]),c=I(null),f=I(2),p=I(!1);function m(S=k=>k){let k=c.value!==null?u.value[c.value]:null,M=S(u.value.slice()),P=M.length>0&&M[0].dataRef.order.value!==null?M.sort((B,N)=>B.dataRef.order.value-N.dataRef.order.value):sn(M,B=>$(B.dataRef.domRef)),j=k?P.indexOf(k):null;return j===-1&&(j=null),{options:P,activeOptionIndex:j}}let O=b(()=>e.multiple?1:0),C=b(()=>e.nullable),[A,x]=no(b(()=>e.modelValue),S=>a("update:modelValue",S),b(()=>e.defaultValue)),h=b(()=>A.value===void 0?le(O.value,{1:[],0:void 0}):A.value),y=null,v=null;function g(S){return le(O.value,{0(){return x==null?void 0:x(S)},1:()=>{let k=ie(w.value.value).slice(),M=ie(S),P=k.findIndex(j=>w.compare(M,ie(j)));return P===-1?k.push(M):k.splice(P,1),x==null?void 0:x(k)}})}let E=b(()=>{});me([E],([S],[k])=>{if(w.virtual.value&&S&&k&&c.value!==null){let M=S.indexOf(k[c.value]);M!==-1?c.value=M:c.value=null}});let w={comboboxState:o,value:h,mode:O,compare(S,k){if(typeof e.by=="string"){let M=e.by;return(S==null?void 0:S[M])===(k==null?void 0:k[M])}return e.by===null?Qa(S,k):e.by(S,k)},calculateIndex(S){return w.virtual.value?e.by===null?w.virtual.value.options.indexOf(S):w.virtual.value.options.findIndex(k=>w.compare(k,S)):u.value.findIndex(k=>w.compare(k.dataRef.value,S))},defaultValue:b(()=>e.defaultValue),nullable:C,immediate:b(()=>!1),virtual:b(()=>null),inputRef:r,labelRef:i,buttonRef:l,optionsRef:s,disabled:b(()=>e.disabled),options:u,change(S){x(S)},activeOptionIndex:b(()=>{if(p.value&&c.value===null&&(w.virtual.value?w.virtual.value.options.length>0:u.value.length>0)){if(w.virtual.value){let k=w.virtual.value.options.findIndex(M=>{var P;return!((P=w.virtual.value)!=null&&P.disabled(M))});if(k!==-1)return k}let S=u.value.findIndex(k=>!k.dataRef.disabled);if(S!==-1)return S}return c.value}),activationTrigger:f,optionsPropsRef:d,closeCombobox(){p.value=!1,!e.disabled&&o.value!==1&&(o.value=1,c.value=null)},openCombobox(){if(p.value=!0,!e.disabled&&o.value!==0){if(w.value.value){let S=w.calculateIndex(w.value.value);S!==-1&&(c.value=S)}o.value=0}},setActivationTrigger(S){f.value=S},goToOption(S,k,M){p.value=!1,y!==null&&cancelAnimationFrame(y),y=requestAnimationFrame(()=>{if(e.disabled||s.value&&!d.value.static&&o.value===1)return;if(w.virtual.value){c.value=S===K.Specific?k:Jt({focus:S},{resolveItems:()=>w.virtual.value.options,resolveActiveIndex:()=>{var B,N;return(N=(B=w.activeOptionIndex.value)!=null?B:w.virtual.value.options.findIndex(G=>{var ve;return!((ve=w.virtual.value)!=null&&ve.disabled(G))}))!=null?N:null},resolveDisabled:B=>w.virtual.value.disabled(B),resolveId(){throw new Error("Function not implemented.")}}),f.value=M??2;return}let P=m();if(P.activeOptionIndex===null){let B=P.options.findIndex(N=>!N.dataRef.disabled);B!==-1&&(P.activeOptionIndex=B)}let j=S===K.Specific?k:Jt({focus:S},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:B=>B.id,resolveDisabled:B=>B.dataRef.disabled});c.value=j,f.value=M??2,u.value=P.options})},selectOption(S){let k=u.value.find(P=>P.id===S);if(!k)return;let{dataRef:M}=k;g(M.value)},selectActiveOption(){if(w.activeOptionIndex.value!==null){if(w.virtual.value)g(w.virtual.value.options[w.activeOptionIndex.value]);else{let{dataRef:S}=u.value[w.activeOptionIndex.value];g(S.value)}w.goToOption(K.Specific,w.activeOptionIndex.value)}},registerOption(S,k){let M=Zn({id:S,dataRef:k});if(w.virtual.value){u.value.push(M);return}v&&cancelAnimationFrame(v);let P=m(j=>(j.push(M),j));c.value===null&&w.isSelected(k.value.value)&&(P.activeOptionIndex=P.options.indexOf(M)),u.value=P.options,c.value=P.activeOptionIndex,f.value=2,P.options.some(j=>!$(j.dataRef.domRef))&&(v=requestAnimationFrame(()=>{let j=m();u.value=j.options,c.value=j.activeOptionIndex}))},unregisterOption(S,k){if(y!==null&&cancelAnimationFrame(y),k&&(p.value=!0),w.virtual.value){u.value=u.value.filter(P=>P.id!==S);return}let M=m(P=>{let j=P.findIndex(B=>B.id===S);return j!==-1&&P.splice(j,1),P});u.value=M.options,c.value=M.activeOptionIndex,f.value=2},isSelected(S){return le(O.value,{0:()=>w.compare(ie(w.value.value),ie(S)),1:()=>ie(w.value.value).some(k=>w.compare(ie(k),ie(S)))})},isActive(S){return c.value===w.calculateIndex(S)}};un([r,l,s],()=>w.closeCombobox(),b(()=>o.value===0)),Ce(bo,w),dn(b(()=>le(o.value,{0:ue.Open,1:ue.Closed})));let R=b(()=>{var S;return(S=$(r))==null?void 0:S.closest("form")});return ce(()=>{me([R],()=>{if(!R.value||e.defaultValue===void 0)return;function S(){w.change(e.defaultValue)}return R.value.addEventListener("reset",S),()=>{var k;(k=R.value)==null||k.removeEventListener("reset",S)}},{immediate:!0})}),()=>{var S,k,M;let{name:P,disabled:j,form:B,...N}=e,G={open:o.value===0,disabled:j,activeIndex:w.activeOptionIndex.value,activeOption:w.activeOptionIndex.value===null?null:w.virtual.value?w.virtual.value.options[(S=w.activeOptionIndex.value)!=null?S:0]:(M=(k=w.options.value[w.activeOptionIndex.value])==null?void 0:k.dataRef.value)!=null?M:null,value:h.value};return se(Ve,[...P!=null&&h.value!=null?oo({[P]:h.value}).map(([ve,oe])=>se(St,ao({features:Ct.Hidden,key:ve,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:B,disabled:j,name:ve,value:oe}))):[],he({theirProps:{...n,...kt(N,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:G,slots:t,attrs:n,name:"Combobox"})])}}}),nl=te({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-combobox-button-${Be()}`,r=dt("ComboboxButton");a({el:r.buttonRef,$el:r.buttonRef});function l(u){r.disabled.value||(r.comboboxState.value===0?r.closeCombobox():(u.preventDefault(),r.openCombobox()),be(()=>{var c;return(c=$(r.inputRef))==null?void 0:c.focus({preventScroll:!0})}
4))}function s(u){switch(u.key){case X.ArrowDown:u.preventDefault(),u.stopPropagation(),r.comboboxState.value===1&&r.openCombobox(),be(()=>{var c;return(c=r.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case X.ArrowUp:u.preventDefault(),u.stopPropagation(),r.comboboxState.value===1&&(r.openCombobox(),be(()=>{r.value.value||r.goToOption(K.Last)})),be(()=>{var c;return(c=r.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return;case X.Escape:if(r.comboboxState.value!==0)return;u.preventDefault(),r.optionsRef.value&&!r.optionsPropsRef.value.static&&u.stopPropagation(),r.closeCombobox(),be(()=>{var c;return(c=r.inputRef.value)==null?void 0:c.focus({preventScroll:!0})});return}}let d=lo(b(()=>({as:e.as,type:t.type})),r.buttonRef);return()=>{var u,c;let f={open:r.comboboxState.value===0,disabled:r.disabled.value,value:r.value.value},{...p}=e,m={ref:r.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=$(r.optionsRef))==null?void 0:u.id,"aria-expanded":r.comboboxState.value===0,"aria-labelledby":r.labelRef.value?[(c=$(r.labelRef))==null?void 0:c.id,i].join(" "):void 0,disabled:r.disabled.value===!0?!0:void 0,onKeydown:s,onClick:l};return he({ourProps:m,theirProps:p,slot:f,attrs:t,slots:n,name:"ComboboxButton"})}}}),ol=te({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:o}){var i;let r=(i=e.id)!=null?i:`headlessui-combobox-input-${Be()}`,l=dt("ComboboxInput"),s=b(()=>Ge($(l.inputRef))),d={value:!1};o({el:l.inputRef,$el:l.inputRef});function u(){l.change(null);let v=$(l.optionsRef);v&&(v.scrollTop=0),l.goToOption(K.Nothing)}let c=b(()=>{var v;let g=l.value.value;return $(l.inputRef)?typeof e.displayValue<"u"&&g!==void 0?(v=e.displayValue(g))!=null?v:"":typeof g=="string"?g:"":""});ce(()=>{me([c,l.comboboxState,s],([v,g],[E,w])=>{if(d.value)return;let R=$(l.inputRef);R&&((w===0&&g===1||v!==E)&&(R.value=v),requestAnimationFrame(()=>{var S;if(d.value||!R||((S=s.value)==null?void 0:S.activeElement)!==R)return;let{selectionStart:k,selectionEnd:M}=R;Math.abs((M??0)-(k??0))===0&&k===0&&R.setSelectionRange(R.value.length,R.value.length)}))},{immediate:!0}),me([l.comboboxState],([v],[g])=>{if(v===0&&g===1){if(d.value)return;let E=$(l.inputRef);if(!E)return;let w=E.value,{selectionStart:R,selectionEnd:S,selectionDirection:k}=E;E.value="",E.value=w,k!==null?E.setSelectionRange(R,S,k):E.setSelectionRange(R,S)}})});let f=I(!1);function p(){f.value=!0}function m(){Ue().nextFrame(()=>{f.value=!1})}let O=Da();function C(v){switch(d.value=!0,O(()=>{d.value=!1}),v.key){case X.Enter:if(d.value=!1,l.comboboxState.value!==0||f.value)return;if(v.preventDefault(),v.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case X.ArrowDown:return d.value=!1,v.preventDefault(),v.stopPropagation(),le(l.comboboxState.value,{0:()=>l.goToOption(K.Next),1:()=>l.openCombobox()});case X.ArrowUp:return d.value=!1,v.preventDefault(),v.stopPropagation(),le(l.comboboxState.value,{0:()=>l.goToOption(K.Previous),1:()=>{l.openCombobox(),be(()=>{l.value.value||l.goToOption(K.Last)})}});case X.Home:if(v.shiftKey)break;return d.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(K.First);case X.PageUp:return d.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(K.First);case X.End:if(v.shiftKey)break;return d.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(K.Last);case X.PageDown:return d.value=!1,v.preventDefault(),v.stopPropagation(),l.goToOption(K.Last);case X.Escape:if(d.value=!1,l.comboboxState.value!==0)return;v.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&v.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&u(),l.closeCombobox();break;case X.Tab:if(d.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function A(v){t("change",v),l.nullable.value&&l.mode.value===0&&v.target.value===""&&u(),l.openCombobox()}function x(v){var g,E,w;let R=(g=v.relatedTarget)!=null?g:ze.find(S=>S!==v.currentTarget);if(d.value=!1,!((E=$(l.optionsRef))!=null&&E.contains(R))&&!((w=$(l.buttonRef))!=null&&w.contains(R))&&l.comboboxState.value===0)return v.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?u():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function h(v){var g,E,w;let R=(g=v.relatedTarget)!=null?g:ze.find(S=>S!==v.currentTarget);(E=$(l.buttonRef))!=null&&E.contains(R)||(w=$(l.optionsRef))!=null&&w.contains(R)||l.disabled.value||l.
4immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),Ue().nextFrame(()=>{l.setActivationTrigger(1)}))}let y=b(()=>{var v,g,E,w;return(w=(E=(g=e.defaultValue)!=null?g:l.defaultValue.value!==void 0?(v=e.displayValue)==null?void 0:v.call(e,l.defaultValue.value):null)!=null?E:l.defaultValue.value)!=null?w:""});return()=>{var v,g,E,w,R,S,k;let M={open:l.comboboxState.value===0},{displayValue:P,onChange:j,...B}=e,N={"aria-controls":(v=l.optionsRef.value)==null?void 0:v.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(g=l.options.value.find(G=>!l.virtual.value.disabled(G.dataRef.value)&&l.compare(G.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:g.id:(E=l.options.value[l.activeOptionIndex.value])==null?void 0:E.id,"aria-labelledby":(S=(w=$(l.labelRef))==null?void 0:w.id)!=null?S:(R=$(l.buttonRef))==null?void 0:R.id,"aria-autocomplete":"list",id:r,onCompositionstart:p,onCompositionend:m,onKeydown:C,onInput:A,onFocus:h,onBlur:x,role:"combobox",type:(k=n.type)!=null?k:"text",tabIndex:0,ref:l.inputRef,defaultValue:y.value,disabled:l.disabled.value===!0?!0:void 0};return he({ourProps:N,theirProps:B,slot:M,attrs:n,slots:a,features:je.RenderStrategy|je.Static,name:"ComboboxInput"})}}}),al=te({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:a}){let o=dt("ComboboxOptions"),i=`headlessui-combobox-options-${Be()}`;a({el:o.optionsRef,$el:o.optionsRef}),pe(()=>{o.optionsPropsRef.value.static=e.static}),pe(()=>{o.optionsPropsRef.value.hold=e.hold});let r=At(),l=b(()=>r!==null?(r.value&ue.Open)===ue.Open:o.comboboxState.value===0);qa({container:b(()=>$(o.optionsRef)),enabled:b(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function s(d){d.preventDefault()}return()=>{var d,u,c;let f={open:o.comboboxState.value===0},p={"aria-labelledby":(c=(d=$(o.labelRef))==null?void 0:d.id)!=null?c:(u=$(o.buttonRef))==null?void 0:u.id,id:i,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:s},m=kt(e,["hold"]);return he({ourProps:p,theirProps:m,slot:f,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[se(el,{},n.default)]}:n,features:je.RenderStrategy|je.Static,visible:l.value,name:"ComboboxOptions"})}}}),ll=te({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:a}){let o=dt("ComboboxOption"),i=`headlessui-combobox-option-${Be()}`,r=I(null),l=b(()=>e.disabled);a({el:r,$el:r});let s=b(()=>{var x;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((x=o.options.value[o.activeOptionIndex.value])==null?void 0:x.id)===i}),d=b(()=>o.isSelected(e.value)),u=we(yo,null),c=b(()=>({disabled:e.disabled,value:e.value,domRef:r,order:b(()=>e.order)}));ce(()=>o.registerOption(i,c)),Te(()=>o.unregisterOption(i,s.value)),pe(()=>{let x=$(r);x&&(u==null||u.value.measureElement(x))}),pe(()=>{o.comboboxState.value===0&&s.value&&(o.virtual.value||o.activationTrigger.value!==0&&be(()=>{var x,h;return(h=(x=$(r))==null?void 0:x.scrollIntoView)==null?void 0:h.call(x,{block:"nearest"})}))});function f(x){x.preventDefault(),x.button===go.Left&&(l.value||(o.selectOption(i),vo()||requestAnimationFrame(()=>{var h;return(h=$(o.inputRef))==null?void 0:h.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function p(){var x;if(e.disabled||(x=o.virtual.value)!=null&&x.disabled(e.value))return o.goToOption(K.Nothing);let h=o.calculateIndex(e.value);o.goToOption(K.Specific,h)}let m=mo();function O(x){m.update(x)}function C(x){var h;if(!m.wasMoved(x)||e.disabled||(h=o.virtual.value)!=null&&h.disabled(e.value)||s.value)return;let y=o.calculateIndex(e.value);o.goToOption(K.Specific,y,0)}function A(x){var h;m.wasMoved(x)&&(e.disabled||(h=o.virtual.value)!=null&&h.disabled(e.value)||s.value&&(o.optionsPropsRef.value.hold||o.goToOption(K.Nothing)))}return()=>{let{disabled:x}=e,h={active:s.value,selected:d.value,disabled:x},y={id:i,ref:r,role:"option",tabIndex:x===!0?void 0:-1,"aria-disabled":x===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:f,onFocus:p,onPointerenter:O,onMouseenter:O,onPointermove:C,onMousemove:C,onPointerleave:A,onMouseleave:A},v=kt(e,["order","value"]);
4return he({ourProps:y,theirProps:v,slot:h,attrs:n,slots:t,name:"ComboboxOption"})}}});function wo(e,t,n,a){Tt.isServer||pe(o=>{e=e??window,e.addEventListener(t,n,a),o(()=>e.removeEventListener(t,n,a))})}var wt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wt||{});function rl(){let e=I(0);return po("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Oo(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let a=$(n);a instanceof HTMLElement&&t.add(a)}return t}var xo=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(xo||{});let mt=Object.assign(te({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:I(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){let o=I(null);a({el:o,$el:o});let i=b(()=>Ge(o)),r=I(!1);ce(()=>r.value=!0),Te(()=>r.value=!1),sl({ownerDocument:i},b(()=>r.value&&!!(e.features&16)));let l=ul({ownerDocument:i,container:o,initialFocus:b(()=>e.initialFocus)},b(()=>r.value&&!!(e.features&2)));dl({ownerDocument:i,container:o,containers:e.containers,previousActiveElement:l},b(()=>r.value&&!!(e.features&8)));let s=rl();function d(p){let m=$(o);m&&(O=>O())(()=>{le(s.value,{[wt.Forwards]:()=>{Bt(m,We.First,{skipElements:[p.relatedTarget]})},[wt.Backwards]:()=>{Bt(m,We.Last,{skipElements:[p.relatedTarget]})}})})}let u=I(!1);function c(p){p.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function f(p){if(!r.value)return;let m=Oo(e.containers);$(o)instanceof HTMLElement&&m.add($(o));let O=p.relatedTarget;O instanceof HTMLElement&&O.dataset.headlessuiFocusGuard!=="true"&&(So(m,O)||(u.value?Bt($(o),le(s.value,{[wt.Forwards]:()=>We.Next,[wt.Backwards]:()=>We.Previous})|We.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&_e(p.target)))}return()=>{let p={},m={ref:o,onKeydown:c,onFocusout:f},{features:O,initialFocus:C,containers:A,...x}=e;return se(Ve,[!!(O&4)&&se(St,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Ct.Focusable}),he({ourProps:m,theirProps:{...t,...x},slot:p,attrs:t,slots:n,name:"FocusTrap"}),!!(O&4)&&se(St,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Ct.Focusable})])}}}),{features:xo});function il(e){let t=I(ze.slice());return me([e],([n],[a])=>{a===!0&&n===!1?ln(()=>{t.value.splice(0)}):a===!1&&n===!0&&(t.value=ze.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(a=>a!=null&&a.isConnected))!=null?n:null}}function sl({ownerDocument:e},t){let n=il(t);ce(()=>{pe(()=>{var a,o;t.value||((a=e.value)==null?void 0:a.activeElement)===((o=e.value)==null?void 0:o.body)&&_e(n())},{flush:"post"})}),Te(()=>{t.value&&_e(n())})}function ul({ownerDocument:e,container:t,initialFocus:n},a){let o=I(null),i=I(!1);return ce(()=>i.value=!0),Te(()=>i.value=!1),ce(()=>{me([t,n,a],(r,l)=>{if(r.every((d,u)=>(l==null?void 0:l[u])===d)||!a.value)return;let s=$(t);s&&ln(()=>{var d,u;if(!i.value)return;let c=$(n),f=(d=e.value)==null?void 0:d.activeElement;if(c){if(c===f){o.value=f;return}}else if(s.contains(f)){o.value=f;return}c?_e(c):Bt(s,We.First|We.NoScroll)===uo.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),o}function dl({ownerDocument:e,container:t,containers:n,previousActiveElement:a},o){var i;wo((i=e.value)==null?void 0:i.defaultView,"focus",r=>{if(!o.value)return;let l=Oo(n);$(t)instanceof HTMLElement&&l.add($(t));let s=a.value;if(!s)return;let d=r.target;d&&d instanceof HTMLElement?So(l,d)?(a.value=d,_e(d)):(r.preventDefault(),r.stopPropagation(),_e(s)):_e(a.value)},!0)}function So(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function cl(e){let t=Jn(e.getSnapshot());return Te(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function fl(e,t){let n=e(),a=new Set;return{getSnapshot(){return n},subscribe(o){return a.add(o),()=>a.delete(o)},dispatch(o,...i){let r=t[o].call(n,...i);r&&(n=r,a.forEach(l=>l()))}}}function vl(){let e;return{before({doc:t}){var n;let a=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-a.clientWidth},after({doc:t,d:n}){let a=t.documentElement,o=a.clientWidth-a.offsetWidth,i=e-o;n.style(a,"paddingRight",`${i}px`)}}}function pl(){return fo()?{before({doc:e,d:t,meta:n}){function a(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Ue();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>
4l.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,r=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:d}=new URL(s.href),u=e.querySelector(d);u&&!a(u)&&(r=u)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(a(l.target)){let s=l.target;for(;s.parentElement&&a(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(a(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;i!==s&&window.scrollTo(0,i),r&&r.isConnected&&(r.scrollIntoView({block:"nearest"}),r=null)})})}}:{}}function ml(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function hl(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ze=fl(()=>new Map,{PUSH(e,t){var n;let a=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ue(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let a={doc:e,d:t,meta:hl(n)},o=[pl(),vl(),ml()];o.forEach(({before:i})=>i==null?void 0:i(a)),o.forEach(({after:i})=>i==null?void 0:i(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ze.subscribe(()=>{let e=Ze.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let a=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!a||!o&&a)&&Ze.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ze.dispatch("TEARDOWN",n)}});function gl(e,t,n){let a=cl(Ze),o=b(()=>{let i=e.value?a.value.get(e.value):void 0;return i?i.count>0:!1});return me([e,t],([i,r],[l],s)=>{if(!i||!r)return;Ze.dispatch("PUSH",i,n);let d=!1;s(()=>{d||(Ze.dispatch("POP",l??i,n),d=!0)})},{immediate:!0}),o}let Yt=new Map,ht=new Map;function zn(e,t=I(!0)){pe(n=>{var a;if(!t.value)return;let o=$(e);if(!o)return;n(function(){var r;if(!o)return;let l=(r=ht.get(o))!=null?r:1;if(l===1?ht.delete(o):ht.set(o,l-1),l!==1)return;let s=Yt.get(o);s&&(s["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",s["aria-hidden"]),o.inert=s.inert,Yt.delete(o))});let i=(a=ht.get(o))!=null?a:0;ht.set(o,i+1),i===0&&(Yt.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function bl({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let a=I(null),o=Ge(a);function i(){var r,l,s;let d=[];for(let u of e)u!==null&&(u instanceof HTMLElement?d.push(u):"value"in u&&u.value instanceof HTMLElement&&d.push(u.value));if(t!=null&&t.value)for(let u of t.value)d.push(u);for(let u of(r=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?r:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains($(a))||u.contains((s=(l=$(a))==null?void 0:l.getRootNode())==null?void 0:s.host)||d.some(c=>u.contains(c))||d.push(u));return d}
4return{resolveContainers:i,contains(r){return i().some(l=>l.contains(r))},mainTreeNodeRef:a,MainTreeNode(){return n!=null?null:se(St,{features:Ct.Hidden,ref:a})}}}let Co=Symbol("ForcePortalRootContext");function yl(){return we(Co,!1)}let Vn=te({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Ce(Co,e.force),()=>{let{force:a,...o}=e;return he({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Eo=Symbol("StackContext");var Zt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Zt||{});function wl(){return we(Eo,()=>{})}function Ol({type:e,enabled:t,element:n,onUpdate:a}){let o=wl();function i(...r){a==null||a(...r),o(...r)}ce(()=>{me(t,(r,l)=>{r?i(0,e,n):l===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),Te(()=>{t.value&&i(1,e,n)}),Ce(Eo,i)}let xl=Symbol("DescriptionContext");function Sl({slot:e=I({}),name:t="Description",props:n={}}={}){let a=I([]);function o(i){return a.value.push(i),()=>{let r=a.value.indexOf(i);r!==-1&&a.value.splice(r,1)}}return Ce(xl,{register:o,slot:e,name:t,props:n}),b(()=>a.value.length>0?a.value.join(" "):void 0)}function Cl(e){let t=Ge(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}const _t=new WeakMap;function El(e){var t;return(t=_t.get(e))!=null?t:0}function jn(e,t){let n=t(El(e));return n<=0?_t.delete(e):_t.set(e,n),n}let kl=te({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let a=I(null),o=b(()=>Ge(a)),i=yl(),r=we(ko,null),l=I(i===!0||r==null?Cl(a.value):r.resolveTarget());l.value&&jn(l.value,f=>f+1);let s=I(!1);ce(()=>{s.value=!0}),pe(()=>{i||r!=null&&(l.value=r.resolveTarget())});let d=we(en,null),u=!1,c=Zo();return me(a,()=>{if(u||!d)return;let f=$(a);f&&(Te(d.register(f),c),u=!0)}),Te(()=>{var f,p;let m=(f=o.value)==null?void 0:f.getElementById("headlessui-portal-root");!m||l.value!==m||jn(l.value,O=>O-1)||l.value.children.length>0||(p=l.value.parentElement)==null||p.removeChild(l.value)}),()=>{if(!s.value||l.value===null)return null;let f={ref:a,"data-headlessui-portal":""};return se(Jo,{to:l.value},he({ourProps:f,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),en=Symbol("PortalParentContext");function Tl(){let e=we(en,null),t=I([]);function n(i){return t.value.push(i),e&&e.register(i),()=>a(i)}function a(i){let r=t.value.indexOf(i);r!==-1&&t.value.splice(r,1),e&&e.unregister(i)}let o={register:n,unregister:a,portals:t};return[t,te({name:"PortalWrapper",setup(i,{slots:r}){return Ce(en,o),()=>{var l;return(l=r.default)==null?void 0:l.call(r)}}})]}let ko=Symbol("PortalGroupContext"),Al=te({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let a=Zn({resolveTarget(){return e.target}});return Ce(ko,a),()=>{let{target:o,...i}=e;return he({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var Il=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Il||{});let tn=Symbol("DialogContext");function To(e){let t=we(tn,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,To),n}return t}let Rt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Pl=te({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Rt},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:o}){var i,r;let l=(i=e.id)!=null?i:`headlessui-dialog-${Be()}`,s=I(!1);ce(()=>{s.value=!0});let d=!1,u=b(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=I(0),f=At(),p=b(()=>e.open===Rt&&f!==null?(f.value&ue.Open)===ue.Open:e.open),m=I(null),O=b(()=>Ge(m));if(o({el:m,$el:m}),!(e.open!==Rt||f!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof p.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value===Rt?void 0:e.open}`);let C=b(()=>s.value&&p.value?0:1),A=b(()=>C.value===0),x=b(()=>c.value>1),h=we(tn,null)!==null,[y,v]=Tl(),{resolveContainers:g,mainTreeNodeRef:E,MainTreeNode:w}=bl({portals:y,defaultContainers:[b(()=>{var U;return(U=G.panelRef.value)!=null?U:m.value})]}),R=b(()=>x.value?"parent":"leaf"),S=b(()=>f!==null?(f.value&ue.Closing)===ue.Closing:!1),k=b(()=>h||S.value?!1:A.value),M=b(()=>{var U,L,T;return(T=Array.from((L=(U=O.value)==null?void 0:U.querySelectorAll("body > *"))!=null?L:[]).find(H=>H.id==="headlessui-portal-root"?!1:H.contains($(E))&&H instanceof HTMLElement))!=null?T:null});zn(M,k);let P=b(()=>x.value?!0:A.value),j=b(()=>{var U,L,T;return(T=Array.from((L=(U=O.value)==null?void 0:U.querySelectorAll("[data-headlessui-portal]"))!=null?L:[]).find(H=>H.contains($(E))&&H instanceof HTMLElement))!=null?T:null});zn(j,P),Ol({type:"Dialog",enabled:b(()=>C.value===0),element:m,onUpdate:(U,L)=>{if(L==="Dialog")return le(U,{[Zt.Add]:()=>c.value+=1,[Zt.Remove]:()=>c.value-=1})}});let B=Sl({name:"DialogDescription",slot:b(()=>({open:p.value}))}),N=I(null),G={titleId:N,panelRef:I(null),dialogState:C,setTitleId(U){N.value!==U&&(N.value=U)},close(){t("close",!1)}};Ce(tn,G);let ve=b(()=>!(!A.value||x.value));un(g,(U,L)=>{U.preventDefault(),G.close(),be(()=>L==null?void 0:L.focus())},ve);
4let oe=b(()=>!(x.value||C.value!==0));wo((r=O.value)==null?void 0:r.defaultView,"keydown",U=>{oe.value&&(U.defaultPrevented||U.key===X.Escape&&(U.preventDefault(),U.stopPropagation(),G.close()))});let ye=b(()=>!(S.value||C.value!==0||h));return gl(O,ye,U=>{var L;return{containers:[...(L=U.containers)!=null?L:[],g]}}),pe(U=>{if(C.value!==0)return;let L=$(m);if(!L)return;let T=new ResizeObserver(H=>{for(let F of H){let Y=F.target.getBoundingClientRect();Y.x===0&&Y.y===0&&Y.width===0&&Y.height===0&&G.close()}});T.observe(L),U(()=>T.disconnect())}),()=>{let{open:U,initialFocus:L,...T}=e,H={...n,ref:m,id:l,role:u.value,"aria-modal":C.value===0?!0:void 0,"aria-labelledby":N.value,"aria-describedby":B.value},F={open:C.value===0};return se(Vn,{force:!0},()=>[se(kl,()=>se(Al,{target:m.value},()=>se(Vn,{force:!1},()=>se(mt,{initialFocus:L,containers:g,features:A.value?le(R.value,{parent:mt.features.RestoreFocus,leaf:mt.features.All&~mt.features.FocusLock}):mt.features.None},()=>se(v,{},()=>he({ourProps:H,theirProps:{...T,...n},slot:F,attrs:n,slots:a,visible:C.value===0,features:je.RenderStrategy|je.Static,name:"Dialog"})))))),se(w)])}}}),$l=te({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-dialog-panel-${Be()}`,r=To("DialogPanel");a({el:r.panelRef,$el:r.panelRef});function l(s){s.stopPropagation()}return()=>{let{...s}=e,d={id:i,ref:r.panelRef,onClick:l};return he({ourProps:d,theirProps:s,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),Nn=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Hn(e){var t,n;let a=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return a;let i=!1;for(let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let r=i?(n=o.innerText)!=null?n:"":a;return Nn.test(r)&&(r=r.replace(Nn,"")),r}function Ml(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let a=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let r=i.getAttribute("aria-label");return typeof r=="string"?r.trim():Hn(i).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return Hn(e).trim()}function Rl(e){let t=I(""),n=I("");return()=>{let a=$(e);if(!a)return"";let o=a.innerText;if(t.value===o)return n.value;let i=Ml(a).trim().toLowerCase();return t.value=o,n.value=i,i}}function Ll(e,t){return e===t}var Dl=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Dl||{}),Bl=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Bl||{}),Fl=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Fl||{});function zl(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Ao=Symbol("ListboxContext");function Ht(e){let t=we(Ao,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ht),n}return t}let Vl=te({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Ll},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let o=I(1),i=I(null),r=I(null),l=I(null),s=I([]),d=I(""),u=I(null),c=I(1);function f(h=y=>y){let y=u.value!==null?s.value[u.value]:null,v=sn(h(s.value.slice()),E=>$(E.dataRef.domRef)),g=y?v.indexOf(y):null;return g===-1&&(g=null),{options:v,activeOptionIndex:g}}let p=b(()=>e.multiple?1:0),[m,O]=no(b(()=>e.modelValue),h=>a("update:modelValue",h),b(()=>e.defaultValue)),C=b(()=>m.value===void 0?le(p.value,{1:[],0:void 0}):m.value),A={listboxState:o,value:C,mode:p,compare(h,y){if(typeof e.by=="string"){let v=e.by;
4return(h==null?void 0:h[v])===(y==null?void 0:y[v])}return e.by(h,y)},orientation:b(()=>e.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:r,optionsRef:l,disabled:b(()=>e.disabled),options:s,searchQuery:d,activeOptionIndex:u,activationTrigger:c,closeListbox(){e.disabled||o.value!==1&&(o.value=1,u.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(h,y,v){if(e.disabled||o.value===1)return;let g=f(),E=Jt(h===K.Specific?{focus:K.Specific,id:y}:{focus:h},{resolveItems:()=>g.options,resolveActiveIndex:()=>g.activeOptionIndex,resolveId:w=>w.id,resolveDisabled:w=>w.dataRef.disabled});d.value="",u.value=E,c.value=v??1,s.value=g.options},search(h){if(e.disabled||o.value===1)return;let y=d.value!==""?0:1;d.value+=h.toLowerCase();let v=(u.value!==null?s.value.slice(u.value+y).concat(s.value.slice(0,u.value+y)):s.value).find(E=>E.dataRef.textValue.startsWith(d.value)&&!E.dataRef.disabled),g=v?s.value.indexOf(v):-1;g===-1||g===u.value||(u.value=g,c.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(h,y){let v=f(g=>[...g,{id:h,dataRef:y}]);s.value=v.options,u.value=v.activeOptionIndex},unregisterOption(h){let y=f(v=>{let g=v.findIndex(E=>E.id===h);return g!==-1&&v.splice(g,1),v});s.value=y.options,u.value=y.activeOptionIndex,c.value=1},theirOnChange(h){e.disabled||O(h)},select(h){e.disabled||O(le(p.value,{0:()=>h,1:()=>{let y=ie(A.value.value).slice(),v=ie(h),g=y.findIndex(E=>A.compare(v,ie(E)));return g===-1?y.push(v):y.splice(g,1),y}}))}};un([r,l],(h,y)=>{var v;A.closeListbox(),co(y,rn.Loose)||(h.preventDefault(),(v=$(r))==null||v.focus())},b(()=>o.value===0)),Ce(Ao,A),dn(b(()=>le(o.value,{0:ue.Open,1:ue.Closed})));let x=b(()=>{var h;return(h=$(r))==null?void 0:h.closest("form")});return ce(()=>{me([x],()=>{if(!x.value||e.defaultValue===void 0)return;function h(){A.theirOnChange(e.defaultValue)}return x.value.addEventListener("reset",h),()=>{var y;(y=x.value)==null||y.removeEventListener("reset",h)}},{immediate:!0})}),()=>{let{name:h,modelValue:y,disabled:v,form:g,...E}=e,w={open:o.value===0,disabled:v,value:C.value};return se(Ve,[...h!=null&&C.value!=null?oo({[h]:C.value}).map(([R,S])=>se(St,ao({features:Ct.Hidden,key:R,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:g,disabled:v,name:R,value:S}))):[],he({ourProps:{},theirProps:{...n,...kt(E,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:w,slots:t,attrs:n,name:"Listbox"})])}}}),jl=te({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-button-${Be()}`,r=Ht("ListboxButton");a({el:r.buttonRef,$el:r.buttonRef});function l(c){switch(c.key){case X.Space:case X.Enter:case X.ArrowDown:c.preventDefault(),r.openListbox(),be(()=>{var f;(f=$(r.optionsRef))==null||f.focus({preventScroll:!0}),r.value.value||r.goToOption(K.First)});break;case X.ArrowUp:c.preventDefault(),r.openListbox(),be(()=>{var f;(f=$(r.optionsRef))==null||f.focus({preventScroll:!0}),r.value.value||r.goToOption(K.Last)});break}}function s(c){switch(c.key){case X.Space:c.preventDefault();break}}function d(c){r.disabled.value||(r.listboxState.value===0?(r.closeListbox(),be(()=>{var f;return(f=$(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})}
4)):(c.preventDefault(),r.openListbox(),zl(()=>{var f;return(f=$(r.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=lo(b(()=>({as:e.as,type:t.type})),r.buttonRef);return()=>{var c,f;let p={open:r.listboxState.value===0,disabled:r.disabled.value,value:r.value.value},{...m}=e,O={ref:r.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox","aria-controls":(c=$(r.optionsRef))==null?void 0:c.id,"aria-expanded":r.listboxState.value===0,"aria-labelledby":r.labelRef.value?[(f=$(r.labelRef))==null?void 0:f.id,i].join(" "):void 0,disabled:r.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:s,onClick:d};return he({ourProps:O,theirProps:m,slot:p,attrs:t,slots:n,name:"ListboxButton"})}}}),Nl=te({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-options-${Be()}`,r=Ht("ListboxOptions"),l=I(null);a({el:r.optionsRef,$el:r.optionsRef});function s(c){switch(l.value&&clearTimeout(l.value),c.key){case X.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case X.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeOptionIndex.value!==null){let f=r.options.value[r.activeOptionIndex.value];r.select(f.dataRef.value)}r.mode.value===0&&(r.closeListbox(),be(()=>{var f;return(f=$(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})}
4));break;case le(r.orientation.value,{vertical:X.ArrowDown,horizontal:X.ArrowRight}):return c.preventDefault(),c.stopPropagation(),r.goToOption(K.Next);case le(r.orientation.value,{vertical:X.ArrowUp,horizontal:X.ArrowLeft}):return c.preventDefault(),c.stopPropagation(),r.goToOption(K.Previous);case X.Home:case X.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToOption(K.First);case X.End:case X.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToOption(K.Last);case X.Escape:c.preventDefault(),c.stopPropagation(),r.closeListbox(),be(()=>{var f;return(f=$(r.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case X.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),l.value=setTimeout(()=>r.clearSearch(),350));break}}let d=At(),u=b(()=>d!==null?(d.value&ue.Open)===ue.Open:r.listboxState.value===0);return()=>{var c,f;let p={open:r.listboxState.value===0},{...m}=e,O={"aria-activedescendant":r.activeOptionIndex.value===null||(c=r.options.value[r.activeOptionIndex.value])==null?void 0:c.id,"aria-multiselectable":r.mode.value===1?!0:void 0,"aria-labelledby":(f=$(r.buttonRef))==null?void 0:f.id,"aria-orientation":r.orientation.value,id:i,onKeydown:s,role:"listbox",tabIndex:0,ref:r.optionsRef};return he({ourProps:O,theirProps:m,slot:p,attrs:t,slots:n,features:je.RenderStrategy|je.Static,visible:u.value,name:"ListboxOptions"})}}}),Hl=te({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:a}){var o;let i=(o=e.id)!=null?o:`headlessui-listbox-option-${Be()}`,r=Ht("ListboxOption"),l=I(null);a({el:l,$el:l});let s=b(()=>r.activeOptionIndex.value!==null?r.options.value[r.activeOptionIndex.value].id===i:!1),d=b(()=>le(r.mode.value,{0:()=>r.compare(ie(r.value.value),ie(e.value)),1:()=>ie(r.value.value).some(h=>r.compare(ie(h),ie(e.value)))})),u=b(()=>le(r.mode.value,{1:()=>{var h;let y=ie(r.value.value);return((h=r.options.value.find(v=>y.some(g=>r.compare(ie(g),ie(v.dataRef.value)))))==null?void 0:h.id)===i},0:()=>d.value})),c=Rl(l),f=b(()=>({disabled:e.disabled,value:e.value,get textValue(){return c()},domRef:l}));ce(()=>r.registerOption(i,f)),Te(()=>r.unregisterOption(i)),ce(()=>{me([r.listboxState,d],()=>{r.listboxState.value===0&&d.value&&le(r.mode.value,{1:()=>{u.value&&r.goToOption(K.Specific,i)},0:()=>{r.goToOption(K.Specific,i)}})},{immediate:!0})}),pe(()=>{r.listboxState.value===0&&s.value&&r.activationTrigger.value!==0&&be(()=>{var h,y;return(y=(h=$(l))==null?void 0:h.scrollIntoView)==null?void 0:y.call(h,{block:"nearest"})})});function p(h){if(e.disabled)return h.preventDefault();r.select(e.value),r.mode.value===0&&(r.closeListbox(),be(()=>{var y;return(y=$(r.buttonRef))==null?void 0:y.focus({preventScroll:!0})}
4))}function m(){if(e.disabled)return r.goToOption(K.Nothing);r.goToOption(K.Specific,i)}let O=mo();function C(h){O.update(h)}function A(h){O.wasMoved(h)&&(e.disabled||s.value||r.goToOption(K.Specific,i,0))}function x(h){O.wasMoved(h)&&(e.disabled||s.value&&r.goToOption(K.Nothing))}return()=>{let{disabled:h}=e,y={active:s.value,selected:d.value,disabled:h},{value:v,disabled:g,...E}=e,w={id:i,ref:l,role:"option",tabIndex:h===!0?void 0:-1,"aria-disabled":h===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:p,onFocus:m,onPointerenter:C,onMouseenter:C,onPointermove:A,onMousemove:A,onPointerleave:x,onMouseleave:x};return he({ourProps:w,theirProps:E,slot:y,attrs:n,slots:t,name:"ListboxOption"})}}});function Wl(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Kt(e,...t){e&&t.length>0&&e.classList.add(...t)}function Lt(e,...t){e&&t.length>0&&e.classList.remove(...t)}var nn=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(nn||{});function Ul(e,t){let n=Ue();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:o}=getComputedStyle(e),[i,r]=[a,o].map(l=>{let[s=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,u)=>u-d);return s});return i!==0?n.setTimeout(()=>t("finished"),i+r):t("finished"),n.add(()=>t("cancelled")),n.dispose}function Wn(e,t,n,a,o,i){let r=Ue(),l=i!==void 0?Wl(i):()=>{};return Lt(e,...o),Kt(e,...t,...n),r.nextFrame(()=>{Lt(e,...n),Kt(e,...a),r.add(Ul(e,s=>(Lt(e,...a,...t),Kt(e,...o),l(s))))}),r.add(()=>Lt(e,...t,...n,...a,...o)),r.add(()=>l("cancelled")),r.dispose}function Xe(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let cn=Symbol("TransitionContext");var ql=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ql||{});function Gl(){return we(cn,null)!==null}function Yl(){let e=we(cn,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Kl(){let e=we(fn,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let fn=Symbol("NestingContext");function Wt(e){return"children"in e?Wt(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function Io(e){let t=I([]),n=I(!1);ce(()=>n.value=!0),Te(()=>n.value=!1);function a(i,r=Je.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(le(r,{[Je.Unmount](){t.value.splice(l,1)},[Je.Hidden](){t.value[l].state="hidden"}}),!Wt(t)&&n.value&&(e==null||e()))}function o(i){let r=t.value.find(({id:l})=>l===i);return r?r.state!=="visible"&&(r.state="visible"):t.value.push({id:i,state:"visible"}),()=>a(i,Je.Unmount)}return{children:t,register:o,unregister:a}}let Po=je.RenderStrategy,$o=te({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:o}){let i=I(0);function r(){i.value|=ue.Opening,t("beforeEnter")}function l(){i.value&=~ue.Opening,t("afterEnter")}function s(){i.value|=ue.Closing,t("beforeLeave")}function d(){i.value&=~ue.Closing,t("afterLeave")}if(!Gl()&&Ga())return()=>se(Mo,{...e,onBeforeEnter:r,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:d},a);let u=I(null),c=b(()=>e.unmount?Je.Unmount:Je.Hidden);o({el:u,$el:u});let{show:f,appear:p}=Yl(),{register:m,unregister:O}=Kl(),C=I(f.value?"visible":"hidden"),A={value:!0},x=Be(),h={value:!1},y=Io(()=>{!h.value&&C.value!=="hidden"&&(C.value="hidden",O(x),d())});ce(()=>{let P=m(x);Te(P)}),pe(()=>{if(c.value===Je.Hidden&&x){if(f.value&&C.value!=="visible"){C.value="visible";return}le(C.value,{hidden:()=>O(x),visible:()=>m(x)})}});let v=Xe(e.enter),g=Xe(e.enterFrom),E=Xe(e.enterTo),w=Xe(e.entered),R=Xe(e.leave),S=Xe(e.leaveFrom),k=Xe(e.leaveTo);ce(()=>{pe(()=>{if(C.value==="visible"){let P=$(u);if(P instanceof Comment&&P.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function M(P){let j=A.value&&!p.value,B=$(u);!B||!(B instanceof HTMLElement)||j||(h.value=!0,f.value&&r(),f.value||s(),P(f.value?Wn(B,v,g,E,w,N=>{h.value=!1,N===nn.Finished&&l()}):Wn(B,R,S,k,w,N=>{h.value=!1,N===nn.Finished&&(Wt(y)||(C.value="hidden",O(x),d()))})))}return ce(()=>{me([f],(P,j,B)=>{M(B),A.value=!1},{immediate:!0})}),Ce(fn,y),dn(b(()=>le(C.value,{visible:ue.Open,hidden:ue.Closed})|i.value)),()=>{let{appear:P,show:j,enter:B,enterFrom:N,enterTo:G,entered:ve,leave:oe,leaveFrom:ye,leaveTo:U,...L}=e,T={ref:u},H={...L,...p.value&&f.value&&Tt.isServer?{class:q([n.class,L.class,...v,...g])}:{}}
4;return he({theirProps:H,ourProps:T,slot:{},slots:a,attrs:n,features:Po,visible:C.value==="visible",name:"TransitionChild"})}}}),Xl=$o,Mo=te({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a}){let o=At(),i=b(()=>e.show===null&&o!==null?(o.value&ue.Open)===ue.Open:e.show);pe(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let r=I(i.value?"visible":"hidden"),l=Io(()=>{r.value="hidden"}),s=I(!0),d={show:i,appear:b(()=>e.appear||!s.value)};return ce(()=>{pe(()=>{s.value=!1,i.value?r.value="visible":Wt(l)||(r.value="hidden")})}),Ce(fn,l),Ce(cn,d),()=>{let u=kt(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return he({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[se(Xl,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...c,...u},a.default)]},attrs:{},features:Po,visible:r.value==="visible",name:"Transition"})}}});const Qe=qe(fe.ui.strategy,fe.ui.avatar,ga),Ql=te({components:{UIcon:jt},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>Qe.default.icon},size:{type:String,default:()=>Qe.default.size,validator(e){return Object.keys(Qe.size).includes(e)}},chipColor:{type:String,default:()=>Qe.default.chipColor,validator(e){return["gray",...fe.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>Qe.default.chipPosition,validator(e){return Object.keys(Qe.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=at("avatar",Ie(e,"ui"),Qe),a=b(()=>typeof e.src=="boolean"?null:e.src),o=b(()=>(e.alt||"").split(" ").map(c=>c.charAt(0)).join("").substring(0,2)),i=b(()=>zt(Re(t.value.wrapper,(d.value||!a.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),r=b(()=>zt(Re(t.value.rounded,t.value.size[e.size]),e.imgClass)),l=b(()=>Re(t.value.icon.base,t.value.icon.size[e.size])),s=b(()=>Re(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),d=I(!1);me(()=>e.src,()=>{d.value&&(d.value=!1)});function u(){d.value=!0}return{ui:t,attrs:n,wrapperClass:i,imgClass:r,iconClass:l,chipClass:s,url:a,placeholder:o,error:d,onError:u}}});function Jl(e,t,n,a,o,i){const r=jt;return D(),ee("span",{class:q(e.wrapperClass)},[e.url&&!e.error?(D(),ne(ot(e.as),Oe({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(D(),ee("span",{key:1,class:q(e.ui.text)},ae(e.text),3)):e.icon?(D(),ne(r,{key:2,name:e.icon,class:q(e.iconClass)},null,8,["name","class"])):e.placeholder?(D(),ee("span",{key:3,class:q(e.ui.placeholder)},ae(e.placeholder),3)):de("",!0),e.chipColor?(D(),ee("span",{key:4,class:q(e.chipClass)},ae(e.chipText),3)):de("",!0),ge(e.$slots,"default")],2)}const Ro=ut(Ql,[["render",Jl]]);function Ee(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tt(e){var t=Ee(e).Element;return e instanceof t||e instanceof Element}function ke(e){var t=Ee(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vn(e){if(typeof ShadowRoot>"u")return!1;var t=Ee(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var et=Math.max,Vt=Math.min,lt=Math.round;function on(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Lo(){return!/^((?!chrome|android).)*safari/i.test(on())}function rt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,i=1;t&&ke(e)&&(o=e.offsetWidth>0&&lt(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lt(a.height)/e.offsetHeight||1);
vendor: 8,830 bytes, line 4
4var r=tt(e)?Ee(e):window,l=r.visualViewport,s=!Lo()&&n,d=(a.left+(s&&l?l.offsetLeft:0))/o,u=(a.top+(s&&l?l.offsetTop:0))/i,c=a.width/o,f=a.height/i;return{width:c,height:f,top:u,right:d+c,bottom:u+f,left:d,x:d,y:u}}function pn(e){var t=Ee(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Zl(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _l(e){return e===Ee(e)||!ke(e)?pn(e):Zl(e)}function De(e){return e?(e.nodeName||"").toLowerCase():null}function Ye(e){return((tt(e)?e.ownerDocument:e.document)||window.document).documentElement}function mn(e){return rt(Ye(e)).left+pn(e).scrollLeft}function Ne(e){return Ee(e).getComputedStyle(e)}function hn(e){var t=Ne(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function er(e){var t=e.getBoundingClientRect(),n=lt(t.width)/e.offsetWidth||1,a=lt(t.height)/e.offsetHeight||1;return n!==1||a!==1}function tr(e,t,n){n===void 0&&(n=!1);var a=ke(t),o=ke(t)&&er(t),i=Ye(t),r=rt(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!n)&&((De(t)!=="body"||hn(i))&&(l=_l(t)),ke(t)?(s=rt(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=mn(i))),{x:r.left+l.scrollLeft-s.x,y:r.top+l.scrollTop-s.y,width:r.width,height:r.height}}function gn(e){var t=rt(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function Ut(e){return De(e)==="html"?e:e.assignedSlot||e.parentNode||(vn(e)?e.host:null)||Ye(e)}function Do(e){return["html","body","#document"].indexOf(De(e))>=0?e.ownerDocument.body:ke(e)&&hn(e)?e:Do(Ut(e))}function Ot(e,t){var n;t===void 0&&(t=[]);var a=Do(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=Ee(a),r=o?[i].concat(i.visualViewport||[],hn(a)?a:[]):a,l=t.concat(r);return o?l:l.concat(Ot(Ut(r)))}function nr(e){return["table","td","th"].indexOf(De(e))>=0}function Un(e){return!ke(e)||Ne(e).position==="fixed"?null:e.offsetParent}function or(e){var t=/firefox/i.test(on()),n=/Trident/i.test(on());if(n&&ke(e)){var a=Ne(e);if(a.position==="fixed")return null}var o=Ut(e);for(vn(o)&&(o=o.host);ke(o)&&["html","body"].indexOf(De(o))<0;){var i=Ne(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function It(e){for(var t=Ee(e),n=Un(e);n&&nr(n)&&Ne(n).position==="static";)n=Un(n);return n&&(De(n)==="html"||De(n)==="body"&&Ne(n).position==="static")?t:n||or(e)||t}var xe="top",Pe="bottom",$e="right",Se="left",bn="auto",Pt=[xe,Pe,$e,Se],it="start",Et="end",ar="clippingParents",Bo="viewport",gt="popper",lr="reference",qn=Pt.reduce(function(e,t){return e.concat([t+"-"+it,t+"-"+Et])},[]),Fo=[].concat(Pt,[bn]).reduce(function(e,t){return e.concat([t,t+"-"+it,t+"-"+Et])},[]),rr="beforeRead",ir="read",sr="afterRead",ur="beforeMain",dr="main",cr="afterMain",fr="beforeWrite",vr="write",pr="afterWrite",mr=[rr,ir,sr,ur,dr,cr,fr,vr,pr];function hr(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var r=[].concat(i.requires||[],i.requiresIfExists||[]);r.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&o(s)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function gr(e){var t=hr(e);return mr.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function br(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yr(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}function wr(e,t){var n=Ee(e),a=Ye(e),o=n.visualViewport,i=a.clientWidth,r=a.clientHeight,l=0,s=0;if(o){i=o.width,r=o.height;var d=Lo();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:r,x:l+mn(e),y:s}}function Or(e){var t,n=Ye(e),a=pn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=et(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=et(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+mn(e),s=-a.scrollTop;return Ne(o||n).direction==="rtl"&&(l+=et(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:r,x:l,y:s}}function zo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vn(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function an(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xr(e,t){var n=rt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Gn(e,t,n){return t===Bo?an(wr(e,n)):tt(t)?xr(t,n):an(Or(Ye(e)))}function Sr(e){var t=Ot(Ut(e)),n=["absolute","fixed"].indexOf(Ne(e).position)>=0,a=n&&ke(e)?It(e):e;return tt(a)?t.filter(function(o){return tt(o)&&zo(o,a)&&De(o)!=="body"}):[]}function Cr(e,t,n,a){var o=t==="clippingParents"?Sr(e):[].concat(t),i=[].concat(o,[n]),r=i[0],l=i.reduce(function(s,d){var u=Gn(e,d,a);return s.top=et(u.top,s.top),s.right=Vt(u.right,s.right),s.bottom=Vt(u.bottom,s.bottom),s.left=et(u.left,s.left),s},Gn(e,r,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Le(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function yn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vo(e){var t=e.reference,n=e.element,a=e.placement,o=a?Le(a):null,i=a?st(a):null,r=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(o){case xe:s={x:r,y:t.y-n.height};break;case Pe:s={x:r,y:t.y+t.height};break;case $e:s={x:t.x+t.width,y:l};break;case Se:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?yn(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case it:s[d]=s[d]-(t[u]/2-n[u]/2);break;case Et:s[d]=s[d]+(t[u]/2-n[u]/2);break}}return s}function jo(){return{top:0,right:0,bottom:0,left:0}}function No(e){return Object.assign({},jo(),e)}function Ho(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function wn(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.strategy,r=i===void 0?e.strategy:i,l=n.boundary,s=l===void 0?ar:l,d=n.rootBoundary,u=d===void 0?Bo:d,c=n.elementContext,f=c===void 0?gt:c,p=n.altBoundary,m=p===void 0?!1:p,O=n.padding,C=O===void 0?0:O,A=No(typeof C!="number"?C:Ho(C,Pt)),x=f===gt?lr:gt,h=e.rects.popper,y=e.elements[m?x:f],v=Cr(tt(y)?y:y.contextElement||Ye(e.elements.popper),s,u,r),g=rt(e.elements.reference),E=Vo({reference:g,element:h,strategy:"absolute",placement:o}),w=an(Object.assign({},h,E)),R=f===gt?w:g,S={top:v.top-R.top+A.top,bottom:R.bottom-v.bottom+A.bottom,left:v.left-R.left+A.left,right:R.right-v.right+A.right},k=e.modifiersData.offset;if(f===gt&&k){var M=k[o];Object.keys(S).forEach(function(P){var j=[$e,Pe].indexOf(P)>=0?1:-1,B=[xe,Pe].indexOf(P)>=0?"y":"x";S[P]+=M[B]*j})}return S}var Yn={placement:"bottom",modifiers:[],strategy:"absolute"};function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Er(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Yn:o;return function(l,s,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yn,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},c=[],f=!1,p={state:u,setOptions:function(A){var x=typeof A=="function"?A(u.options):A;O(),u.options=Object.assign({},i,u.options,x),u.scrollParents={reference:tt(l)?Ot(l):l.contextElement?Ot(l.contextElement):[],popper:Ot(s)};var h=gr(yr([].concat(a,u.options.modifiers)));return u.orderedModifiers=h.filter(function(y){return y.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var A=u.elements,x=A.reference,h=A.popper;if(Kn(x,h)){u.rects={reference:tr(x,It(h),u.options.strategy==="fixed"),popper:gn(h)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(S){return u.modifiersData[S.name]=Object.assign({},S.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var v=u.orderedModifiers[y],g=v.fn,E=v.options,w=E===void 0?{}:E,R=v.name;typeof g=="function"&&(u=g({state:u,options:w,name:R,instance:p})||u)}}}},update:br(function(){return new Promise(function(C){p.forceUpdate(),C(u)})}),destroy:function(){O(),f=!0}};if(!Kn(l,s))return p;p.setOptions(d).then(function(C){!f&&d.onFirstUpdate&&d.onFirstUpdate(C)});
vendor: 9,432 bytes, line 4
4function m(){u.orderedModifiers.forEach(function(C){var A=C.name,x=C.options,h=x===void 0?{}:x,y=C.effect;if(typeof y=="function"){var v=y({state:u,name:A,instance:p,options:h}),g=function(){};c.push(v||g)}})}function O(){c.forEach(function(C){return C()}),c=[]}return p}}var Dt={passive:!0};function kr(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,r=a.resize,l=r===void 0?!0:r,s=Ee(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,Dt)}),l&&s.addEventListener("resize",n.update,Dt),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Dt)}),l&&s.removeEventListener("resize",n.update,Dt)}}const Wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kr,data:{}};function Tr(e){var t=e.state,n=e.name;t.modifiersData[n]=Vo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ar={name:"popperOffsets",enabled:!0,phase:"read",fn:Tr,data:{}};var Ir={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pr(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:lt(n*o)/o||0,y:lt(a*o)/o||0}}function Xn(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,r=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,c=e.isFixed,f=r.x,p=f===void 0?0:f,m=r.y,O=m===void 0?0:m,C=typeof u=="function"?u({x:p,y:O}):{x:p,y:O};p=C.x,O=C.y;var A=r.hasOwnProperty("x"),x=r.hasOwnProperty("y"),h=Se,y=xe,v=window;if(d){var g=It(n),E="clientHeight",w="clientWidth";if(g===Ee(n)&&(g=Ye(n),Ne(g).position!=="static"&&l==="absolute"&&(E="scrollHeight",w="scrollWidth")),g=g,o===xe||(o===Se||o===$e)&&i===Et){y=Pe;var R=c&&g===v&&v.visualViewport?v.visualViewport.height:g[E];O-=R-a.height,O*=s?1:-1}if(o===Se||(o===xe||o===Pe)&&i===Et){h=$e;var S=c&&g===v&&v.visualViewport?v.visualViewport.width:g[w];p-=S-a.width,p*=s?1:-1}}var k=Object.assign({position:l},d&&Ir),M=u===!0?Pr({x:p,y:O},Ee(n)):{x:p,y:O};if(p=M.x,O=M.y,s){var P;return Object.assign({},k,(P={},P[y]=x?"0":"",P[h]=A?"0":"",P.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+O+"px)":"translate3d("+p+"px, "+O+"px, 0)",P))}return Object.assign({},k,(t={},t[y]=x?O+"px":"",t[h]=A?p+"px":"",t.transform="",t))}function $r(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,r=i===void 0?!0:i,l=n.roundOffsets,s=l===void 0?!0:l,d={placement:Le(t.placement),variation:st(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Xn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Uo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$r,data:{}};function Mr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!ke(i)||!De(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(r){var l=o[r];l===!1?i.removeAttribute(r):i.setAttribute(r,l===!0?"":l)}))})}function Rr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],i=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=r.reduce(function(s,d){return s[d]="",s},{});!ke(o)||!De(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const Lr={name:"applyStyles",enabled:!0,phase:"write",fn:Mr,effect:Rr,requires:["computeStyles"]};var Dr=[Wo,Ar,Uo,Lr],Br={left:"right",right:"left",bottom:"top",top:"bottom"};function Ft(e){return e.replace(/left|right|bottom|top/g,function(t){return Br[t]})}var Fr={start:"end",end:"start"};function Qn(e){return e.replace(/start|end/g,function(t){return Fr[t]})}function zr(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,r=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,d=s===void 0?Fo:s,u=st(a),c=u?l?qn:qn.filter(function(m){return st(m)===u}):Pt,f=c.filter(function(m){return d.indexOf(m)>=0});f.length===0&&(f=c);var p=f.reduce(function(m,O){return m[O]=wn(e,{placement:O,boundary:o,rootBoundary:i,padding:r})[Le(O)],m},{});return Object.keys(p).sort(function(m,O){return p[m]-p[O]})}function Vr(e){if(Le(e)===bn)return[];var t=Ft(e);return[Qn(e),t,Qn(t)]}function jr(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,r=n.altAxis,l=r===void 0?!0:r,s=n.fallbackPlacements,d=n.padding,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,O=n.allowedAutoPlacements,C=t.options.placement,A=Le(C),x=A===C,h=s||(x||!m?[Ft(C)]:Vr(C)),y=[C].concat(h).reduce(function(H,F){return H.concat(Le(F)===bn?zr(t,{placement:F,boundary:u,rootBoundary:c,padding:d,flipVariations:m,allowedAutoPlacements:O}):F)},[]),v=t.rects.reference,g=t.rects.popper,E=new Map,w=!0,R=y[0],S=0;S<y.length;S++){var k=y[S],M=Le(k),P=st(k)===it,j=[xe,Pe].indexOf(M)>=0,B=j?"width":"height",N=wn(t,{placement:k,boundary:u,rootBoundary:c,altBoundary:f,padding:d}),G=j?P?$e:Se:P?Pe:xe;v[B]>g[B]&&(G=Ft(G));var ve=Ft(G),oe=[];if(i&&oe.push(N[M]<=0),l&&oe.push(N[G]<=0,N[ve]<=0),oe.every(function(H){return H})){R=k,w=!1;break}E.set(k,oe)}if(w)for(var ye=m?3:1,U=function(F){var Y=y.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,F).every(function(Ae){return Ae})});if(Y)return R=Y,"break"},L=ye;L>0;L--){var T=U(L);if(T==="break")break}t.placement!==R&&(t.modifiersData[a]._skip=!0,t.placement=R,t.reset=!0)}}const Nr={name:"flip",enabled:!0,phase:"main",fn:jr,requiresIfExists:["offset"],data:{_skip:!1}};function Hr(e,t,n){var a=Le(e),o=[Se,xe].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=i[0],l=i[1];return r=r||0,l=(l||0)*o,[Se,$e].indexOf(a)>=0?{x:l,y:r}:{x:r,y:l}}function Wr(e){var t=e.state,n=e.options,a=e.name,o=n.offset,i=o===void 0?[0,0]:o,r=Fo.reduce(function(u,c){return u[c]=Hr(c,t.rects,i),u},{}),l=r[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[a]=r}const Ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wr};function qr(e){return e==="x"?"y":"x"}function xt(e,t,n){return et(e,Vt(t,n))}function Gr(e,t,n){var a=xt(e,t,n);return a>n?n:a}function Yr(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,r=n.altAxis,l=r===void 0?!1:r,s=n.boundary,d=n.rootBoundary,u=n.altBoundary,c=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,O=m===void 0?0:m,C=wn(t,{boundary:s,rootBoundary:d,padding:c,altBoundary:u}),A=Le(t.placement),x=st(t.placement),h=!x,y=yn(A),v=qr(y),g=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,R=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,S=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(g){if(i){var P,j=y==="y"?xe:Se,B=y==="y"?Pe:$e,N=y==="y"?"height":"width",G=g[y],ve=G+C[j],oe=G-C[B],ye=p?-w[N]/2:0,U=x===it?E[N]:w[N],L=x===it?-w[N]:-E[N],T=t.elements.arrow,H=p&&T?gn(T):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jo(),Y=F[j],Z=F[B],re=xt(0,E[N],H[N]),Ae=h?E[N]/2-ye-re-Y-S.mainAxis:U-re-Y-S.mainAxis,ct=h?-E[N]/2+ye+re+Z+S.mainAxis:L+re+Z+S.mainAxis,ft=t.elements.arrow&&It(t.elements.arrow),W=ft?y==="y"?ft.clientTop||0:ft.clientLeft||0:0,Fe=(P=k==null?void 0:k[y])!=null?P:0,qo=G+Ae-Fe-W,Go=G+ct-Fe,On=xt(p?Vt(ve,qo):ve,G,p?et(oe,Go):oe);g[y]=On,M[y]=On-G}if(l){var xn,Yo=y==="x"?xe:Se,Ko=y==="x"?Pe:$e,Ke=g[v],$t=v==="y"?"height":"width",Sn=Ke+C[Yo],Cn=Ke-C[Ko],qt=[xe,Se].indexOf(A)!==-1,En=(xn=k==null?void 0:k[v])!=null?xn:0,kn=qt?Sn:Ke-E[$t]-w[$t]-En+S.altAxis,Tn=qt?Ke+E[$t]+w[$t]-En-S.altAxis:Cn,An=p&&qt?Gr(kn,Ke,Tn):xt(p?kn:Sn,Ke,p?Tn:Cn);g[v]=An,M[v]=An-Ke}t.modifiersData[a]=M}}const Kr={name:"preventOverflow",enabled:!0,phase:"main",fn:Yr,requiresIfExists:["offset"]};var Xr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,No(typeof t!="number"?t:Ho(t,Pt))};function Qr(e){var t,n=e.state,a=e.name,o=e.options,i=n.elements.arrow,r=n.modifiersData.popperOffsets,l=Le(n.placement),s=yn(l),d=[Se,$e].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!r)){var c=Xr(o.padding,n),f=gn(i),p=s==="y"?xe:Se,m=s==="y"?Pe:$e,O=n.rects.reference[u]+n.rects.reference[s]-r[s]-n.rects.popper[u],C=r[s]-n.rects.reference[s],A=It(i),x=A?s==="y"?A.clientHeight||0:A.clientWidth||0:0,h=O/2-C/2,y=c[p],v=x-f[u]-c[m],g=x/2-f[u]/2+h,E=xt(y,g,v),w=s;n.modifiersData[a]=(t={},t[w]=E,t.centerOffset=E-g,t)}}function Jr(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;
4o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zo(t.elements.popper,o)&&(t.elements.arrow=o))}const Zr={name:"arrow",enabled:!0,phase:"main",fn:Qr,effect:Jr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},_r=Er({defaultModifiers:[...Dr,Ur,Nr,Kr,Uo,Wo,Zr]});function ei({locked:e=!1,overflowPadding:t=8,offsetDistance:n=8,offsetSkid:a=0,gpuAcceleration:o=!0,adaptive:i=!0,scroll:r=!0,resize:l=!0,arrow:s=!1,placement:d,strategy:u},c){const f=I(null),p=I(null),m=I(null);return ce(()=>{pe(O=>{if(!p.value||!f.value&&!(c!=null&&c.value))return;const C=Pn(p),A=Pn(f);if(!(C instanceof HTMLElement)||!A)return;const x={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[a,n]}},{name:"computeStyles",options:{adaptive:i,gpuAcceleration:o}},{name:"eventListeners",options:{scroll:r,resize:l}},{name:"arrow",enabled:s}]};d&&(x.placement=d),u&&(x.strategy=u),m.value=_r(A,C,x),O(m.value.destroy)})}),[f,p,m]}const Me=qe(fe.ui.strategy,fe.ui.select,_o),bt=qe(fe.ui.strategy,fe.ui.selectMenu,ea),ti=te({components:{HCombobox:tl,HComboboxButton:nl,HComboboxOptions:al,HComboboxOption:ll,HComboboxInput:ol,HListbox:Vl,HListboxButton:jl,HListboxOptions:Nl,HListboxOption:Hl,UIcon:jt,UAvatar:Ro},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array,Boolean],default:""},query:{type:String,default:null},by:{type:String,default:void 0},options:{type:Array,default:()=>[]},id:{type:String,default:null},name:{type:String,default:null},required:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Me.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:()=>Me.default.trailingIcon},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},selectedIcon:{type:String,default:()=>bt.default.selectedIcon},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},searchable:{type:[Boolean,Function],default:!1},searchablePlaceholder:{type:String,default:()=>bt.default.searchablePlaceholder.label},searchableLazy:{type:Boolean,default:!1},clearSearchOnClose:{type:Boolean,default:()=>bt.default.clearSearchOnClose},debounce:{type:Number,default:200},creatable:{type:Boolean,default:!1},showCreateOptionWhen:{type:[String,Function],default:()=>bt.default.showCreateOptionWhen},placeholder:{type:String,default:null},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(Me.size).includes(e)}},color:{type:String,default:()=>Me.default.color,validator(e){return[...fe.ui.colors,...Object.keys(Me.color)].includes(e)}},variant:{type:String,default:()=>Me.default.variant,validator(e){return[...Object.keys(Me.variant),...Object.values(Me.color).flatMap(t=>Object.keys(t))].includes(e)}},optionAttribute:{type:String,default:"label"},valueAttribute:{type:String,default:null},searchAttributes:{type:Array,default:null},popper:{type:Object,default:()=>({})},selectClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},uiMenu:{type:Object,default:()=>({})}},emits:["update:modelValue","update:query","open","close","change"],setup(e,{emit:t,slots:n}){const{ui:a,attrs:o}=at("select",Ie(e,"ui"),Me,Ie(e,"class")),{ui:i}=at("selectMenu",Ie(e,"uiMenu"),bt),r=b(()=>ta({},e.popper,i.value.popper)),[l,s]=ei(r.value),d=b(()=>{if(!e.by)return;if(typeof e.by=="function")return e.by;const F=e.by;return F.indexOf(".")>0?(Z,re)=>oe(Z,F)===oe(re,F):F}),{size:u,rounded:c}=na({ui:a,props:e}),{emitFormBlur:f,emitFormChange:p,inputId:m,color:O,size:C,name:A}=oa(e,Me),x=b(()=>u.value??C.value),h=I(""),y=b({get(){return e.query??h.value},set(F){h.value=F,t("update:query",F)}}),v=b(()=>{function F(Z,re){return d.value&&typeof d.value!="function"&&typeof Z=="object"&&typeof re=="object"?Mn(Z[d.value],re[d.value]):Mn(Z,re)}function Y(Z){return e.valueAttribute?oe(Z,e.valueAttribute):Z}if(e.multiple){const Z=e.modelValue;return!Array.isArray(Z)||!Z.length?[]:G.value.filter(re=>{const Ae=Y(re);return Z.some(ct=>F(ct,Ae))})}return G.value.find(Z=>{const re=Y(Z);return F(re,ie(e.modelValue))})??e.modelValue}),g=b(()=>e.modelValue?Array.isArray(e.modelValue)&&e.modelValue.length?`${e.modelValue.length} selected`:["string","number"].includes(typeof e.modelValue)?e.valueAttribute?oe(v.value,e.optionAttribute):e.modelValue:oe(e.modelValue,e.optionAttribute):null),E=b(()=>{var Y,Z;const F=((Z=(Y=a.value.color)==null?void 0:Y[O.value])==null?void 0:Z[e.variant])||a.value.variant[e.variant];return zt(Re(a.value.base,i.value.select,c.value,a.value.size[x.value],a.value.gap[x.value],e.padded?a.value.padding[x.value]:"p-0",F==null?void 0:F.replaceAll("{color}",O.value),(w.value||n.leading)&&a.value.leading.padding[x.value],(R.value||n.trailing)&&a.value.trailing.padding[x.value]),e.placeholder&&(!e.modelValue||Array.isArray(e.modelValue)&&!e.modelValue.length)&&a.value.placeholder,e.selectClass)}),w=b(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),R=b(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),S=b(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),k=b(()=>e.loading&&!w.value?e.loadingIcon:e.trailingIcon||e.icon),M=b(()=>Re(a.value.icon.leading.wrapper,a.value.icon.leading.pointer,a.value.icon.leading.padding[x.value])),P=b(()=>Re(a.value.icon.base,O.value&&fe.ui.colors.includes(O.value)&&a.value.icon.color.replaceAll("{color}",O.value),a.value.icon.size[x.value],e.loading&&a.value.icon.loading)),j=b(()=>Re(a.value.icon.trailing.wrapper,a.value.icon.trailing.pointer,a.value.icon.trailing.padding[x.value])),B=b(()=>Re(a.value.icon.base,O.value&&fe.ui.colors.includes(O.value)&&a.value.icon.color.replaceAll("{color}",O.value),a.value.icon.size[x.value],e.loading&&!w.value&&a.value.icon.loading)),N=e.searchable&&typeof e.searchable=="function"?aa(e.searchable,e.debounce):void 0,G=la(async()=>N?await N(y.value):e.options||[],[],{lazy:e.searchableLazy});function ve(F){return F.replace(/[.*+?^${}()|[\]\\]/g,Y=>`\\${Y}`)}function oe(F,Y){return $n(F,Y)}const ye=b(()=>{if(!y.value||N)return G.value;const F=ve(y.value);return G.value.filter(Y=>{var Z;return((Z=e.searchAttributes)!=null&&Z.length?e.searchAttributes:[e.optionAttribute]).some(re=>{if(["string","number"].includes(typeof Y))return String(Y).search(new RegExp(F,"i"))!==-1;const Ae=$n(Y,re);return Ae!=null&&String(Ae).search(new RegExp(F,"i"))!==-1})})}),U=b(()=>y.value===""||e.showCreateOptionWhen==="empty"&&ye.value.length||e.showCreateOptionWhen==="always"&&ye.value.find(Y=>["string","number"].includes(typeof Y)?Y===y.value:oe(Y,e.optionAttribute)===y.value)||typeof e.showCreateOptionWhen=="function"&&!e.showCreateOptionWhen(y.value,ye.value)?null:["string","number"].includes(typeof e.modelValue)?y.value:{[e.optionAttribute]:y.value});function L(){e.clearSearchOnClose&&(y.value="")}me(s,F=>{F?t("open"):(L(),t("close"),f())});function T(F){ie(e.modelValue)!==F&&(t("update:modelValue",F),t("change",F),p())}function H(F){y.value=F.target.value}return ro(()=>eo()),{ui:a,uiMenu:i,attrs:o,name:A,inputId:m,popper:r,trigger:l,container:s,selected:v,label:g,accessor:oe,isLeading:w,isTrailing:R,selectClass:E,leadingIconName:S,leadingIconClass:P,leadingWrapperIconClass:M,trailingIconName:k,trailingIconClass:B,trailingWrapperIconClass:j,filteredOptions:ye,createOption:U,query:y,onUpdate:T,onQueryChange:H,by:d}}}),ni=["value","required"],oi=["id","disabled"],ai={class:"truncate"};function li(e,t,n,a,o,i){const r=jt,l=yt("HComboboxInput"),s=Ro;return D(),ne(ot(e.searchable?"HCombobox":"HListbox"),{by:e.by,name:e.name,"model-value":e.multiple?Array.isArray(e.modelValue)?e.modelValue:[]:e.modelValue,multiple:e.multiple,disabled:e.disabled,as:"div",class:q(e.ui.wrapper),"onUpdate:modelValue":e.onUpdate},{default:z(({open:d})=>[e.required?(D(),ee("input",{key:0,value:e.modelValue,required:e.required,
4class:q(e.uiMenu.required),tabindex:"-1","aria-hidden":"true"},null,10,ni)):de("",!0),(D(),ne(ot(e.searchable?"HComboboxButton":"HListboxButton"),{ref:"trigger",as:"div",role:"button",class:q(e.uiMenu.trigger)},{default:z(()=>[ge(e.$slots,"default",{open:d,disabled:e.disabled,loading:e.loading},()=>[V("button",Oe({id:e.inputId,class:e.selectClass,disabled:e.disabled,type:"button"},e.attrs),[e.isLeading&&e.leadingIconName||e.$slots.leading?(D(),ee("span",{key:0,class:q(e.leadingWrapperIconClass)},[ge(e.$slots,"leading",{selected:e.selected,disabled:e.disabled,loading:e.loading},()=>[Q(r,{name:e.leadingIconName,class:q(e.leadingIconClass)},null,8,["name","class"])])],2)):de("",!0),ge(e.$slots,"label",{selected:e.selected},()=>[e.label?(D(),ee("span",{key:0,class:q(e.uiMenu.label)},ae(e.label),3)):(D(),ee("span",{key:1,class:q(e.uiMenu.label)},ae(e.placeholder||" "),3))]),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(D(),ee("span",{key:1,class:q(e.trailingWrapperIconClass)},[ge(e.$slots,"trailing",{selected:e.selected,disabled:e.disabled,loading:e.loading},()=>[Q(r,{name:e.trailingIconName,class:q(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])])],2)):de("",!0)],16,oi)])]),_:2},1032,["class"])),d?(D(),ee("div",{key:1,ref:"container",class:q([e.uiMenu.container,e.uiMenu.width])},[Q(ra,Oe({appear:""},e.uiMenu.transition),{default:z(()=>[V("div",null,[e.popper.arrow?(D(),ee("div",{key:0,"data-popper-arrow":"",class:q(Object.values(e.uiMenu.arrow))},null,2)):de("",!0),(D(),ne(ot(e.searchable?"HComboboxOptions":"HListboxOptions"),{static:"",class:q([e.uiMenu.base,e.uiMenu.ring,e.uiMenu.rounded,e.uiMenu.shadow,e.uiMenu.background,e.uiMenu.padding,e.uiMenu.height])},{default:z(()=>{var u,c;return[e.searchable?(D(),ne(l,{key:0,"display-value":()=>e.query,name:"q",placeholder:e.searchablePlaceholder,autofocus:"",autocomplete:"off",class:q(e.uiMenu.input),onChange:e.onQueryChange},null,8,["display-value","placeholder","class","onChange"])):de("",!0),(D(!0),ee(Ve,null,_n(e.filteredOptions,(f,p)=>(D(),ne(ot(e.searchable?"HComboboxOption":"HListboxOption"),{key:p,as:"template",value:e.valueAttribute?e.accessor(f,e.valueAttribute):f,disabled:f.disabled},{default:z(({active:m,selected:O,disabled:C})=>[V("li",{class:q([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,m?e.uiMenu.option.active:e.uiMenu.option.inactive,O&&e.uiMenu.option.selected,C&&e.uiMenu.option.disabled])},[V("div",{class:q(e.uiMenu.option.container)},[ge(e.$slots,"option",{option:f,active:m,selected:O},()=>[f.icon?(D(),ne(r,{key:0,name:f.icon,class:q([e.uiMenu.option.icon.base,m?e.uiMenu.option.icon.active:e.uiMenu.option.icon.inactive,f.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):f.avatar?(D(),ne(s,Oe({key:1,ref_for:!0},{size:e.uiMenu.option.avatar.size,...f.avatar},{class:e.uiMenu.option.avatar.base,"aria-hidden":"true"}),null,16,["class"])):f.chip?(D(),ee("span",{key:2,class:q(e.uiMenu.option.chip.base),style:ia({background:`#${f.chip}`})},null,6)):de("",!0),V("span",ai,ae(["string","number"].includes(typeof f)?f:e.accessor(f,e.optionAttribute)),1)])],2),O?(D(),ee("span",{key:0,class:q([e.uiMenu.option.selectedIcon.wrapper,e.uiMenu.option.selectedIcon.padding])},[Q(r,{name:e.selectedIcon,class:q(e.uiMenu.option.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])],2)):de("",!0)],2)]),_:2},1032,["value","disabled"]))),128)),e.creatable&&e.createOption?(D(),ne(ot(e.searchable?"HComboboxOption":"HListboxOption"),{key:1,value:e.createOption,as:"template"},{default:z(({active:f,selected:p})=>[V("li",{class:q([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,f?e.uiMenu.option.active:e.uiMenu.option.inactive])},[V("div",{class:q(e.uiMenu.option.container)},[ge(e.$slots,"option-create",{option:e.createOption,active:f,selected:p},()=>[V("span",{class:q(e.uiMenu.option.create)},'Create "'+ae(typeof e.createOption=="string"?e.createOption:e.accessor(e.createOption,e.optionAttribute))+'"',3)])],2)],2)
4]),_:3},8,["value"])):e.searchable&&e.query&&!((u=e.filteredOptions)!=null&&u.length)?(D(),ee("p",{key:2,class:q(e.uiMenu.option.empty)},[ge(e.$slots,"option-empty",{query:e.query},()=>[_(ae(e.uiMenu.default.optionEmpty.label.replace("{query}",e.query)),1)])],2)):(c=e.filteredOptions)!=null&&c.length?de("",!0):(D(),ee("p",{key:3,class:q(e.uiMenu.empty)},[ge(e.$slots,"empty",{query:e.query},()=>[_(ae(e.uiMenu.default.empty.label),1)])],2))]}),_:3},8,["class"]))])]),_:3},16)],2)):de("",!0)]),_:3},8,["by","name","model-value","multiple","disabled","class","onUpdate:modelValue"])}const ri=ut(ti,[["render",li]]),ii=qe(fe.ui.strategy,fe.ui.button,to),si=qe(fe.ui.strategy,fe.ui.buttonGroup,ba),ui=te({name:"ButtonGroup",inheritAttrs:!1,props:{size:{type:String,default:null,validator(e){return Object.keys(ii.size).includes(e)}},orientation:{type:String,default:"horizontal",validator(e){return["horizontal","vertical"].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:n,attrs:a}=at("buttonGroup",Ie(e,"ui"),si),o=b(()=>sa(t)),i=b(()=>zt(Re(n.value.wrapper[e.orientation],n.value.rounded,n.value.shadow),e.class)),r=b(()=>n.value.orientation[n.value.rounded][e.orientation]);return ua({orientation:Ie(e,"orientation"),size:Ie(e,"size"),ui:n,rounded:r}),()=>se("div",{class:i.value,...a.value},o.value)}}),He=qe(fe.ui.strategy,fe.ui.pagination,ya),di=qe(fe.ui.strategy,fe.ui.button,to),ci=te({components:{UButton:Nt},inheritAttrs:!1,props:{modelValue:{type:Number,required:!0},pageCount:{type:Number,default:10},total:{type:Number,required:!0},max:{type:Number,default:7,validate(e){return e>=5&&e<Number.MAX_VALUE}},disabled:{type:Boolean,default:!1},size:{type:String,default:()=>He.default.size,validator(e){return Object.keys(di.size).includes(e)}},to:{type:Function,default:null},activeButton:{type:Object,default:()=>He.default.activeButton},inactiveButton:{type:Object,default:()=>He.default.inactiveButton},showFirst:{type:Boolean,default:!1},showLast:{type:Boolean,default:!1},firstButton:{type:Object,default:()=>He.default.firstButton},lastButton:{type:Object,default:()=>He.default.lastButton},prevButton:{type:Object,default:()=>He.default.prevButton},nextButton:{type:Object,default:()=>He.default.nextButton},divider:{type:String,default:"…"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:t}){const{ui:n,attrs:a}=at("pagination",Ie(e,"ui"),He,Ie(e,"class")),o=b({get(){return e.modelValue},set(m){t("update:modelValue",m)}}),i=b(()=>Array.from({length:Math.ceil(e.total/e.pageCount)},(m,O)=>O+1)),r=b(()=>{const m=i.value.length,O=o.value,C=Math.max(e.max,5),A=Math.floor((Math.min(C,m)-5)/2),x=O-A,h=O+A,y=x-1>1,v=h+1<m,g=[];if(m<=C){for(let E=1;E<=m;E++)g.push(E);return g}if(g.push(1),y&&g.push(e.divider),!v){const E=O+A+2-m;for(let w=O-A-E;w<=O-A-1;w++)g.push(w)}for(let E=Math.max(2,x);E<=Math.min(m,h);E++)g.push(E);if(!y){const E=1-(O-A-2);for(let w=O+A+1;w<=O+A+E;w++)g.push(w)}return v&&g.push(e.divider),h<m&&g.push(m),g.length>=3&&g[1]===e.divider&&g[2]===3&&(g[1]=2),g.length>=3&&g[g.length-2]===e.divider&&g[g.length-1]===g.length&&(g[g.length-2]=g.length-1),g}),l=b(()=>o.value>1),s=b(()=>o.value<i.value.length);function d(){l.value&&(o.value=1)}function u(){s.value&&(o.value=i.value.length)}function c(m){typeof m!="string"&&(o.value=m)}function f(){l.value&&o.value--}function p(){s.value&&o.value++}return{ui:n,attrs:a,currentPage:o,pages:i,displayedPages:r,canGoLastOrNext:s,canGoFirstOrPrev:l,onClickPrev:f,onClickNext:p,onClickPage:c,onClickFirst:d,onClickLast:u}}});function fi(e,t,n,a,o,i){const r=Nt;return D(),ee("div",Oe({class:e.ui.wrapper},e.attrs),[ge(e.$slots,"first",{onClick:e.onClickFirst,canGoFirst:e.canGoFirstOrPrev},()=>{var l;return[e.firstButton&&e.showFirst?(D(),ne(r,Oe({key:0,size:e.size,to:(l=e.to)==null?void 0:l.call(e,1),disabled:!e.canGoFirstOrPrev||e.disabled,class:[e.ui.base,e.ui.rounded]},{...e.ui.default.firstButton||{},...e.firstButton},{ui:{rounded:""},"aria-label":"First",onClick:e.onClickFirst}),null,16,["size","to","disabled","class","onClick"])):de("",!0)]}),ge(e.$slots,"prev",{onClick:e.onClickPrev,canGoPrev:e.canGoFirstOrPrev},()=>{var l;return[e.prevButton?(D(),ne(r,Oe({key:0,size:e.size,to:(l=e.to)==null?void 0:l.call(e,e.currentPage-1),disabled:!e.canGoFirstOrPrev||e.disabled,class:[e.ui.base,e.ui.roun
4ded]},{...e.ui.default.prevButton||{},...e.prevButton},{ui:{rounded:""},"aria-label":"Prev",onClick:e.onClickPrev}),null,16,["size","to","disabled","class","onClick"])):de("",!0)]}),(D(!0),ee(Ve,null,_n(e.displayedPages,(l,s)=>{var d;return D(),ne(r,Oe({key:`${l}-${s}`,to:typeof l=="number"?(d=e.to)==null?void 0:d.call(e,l):null,size:e.size,disabled:e.disabled,label:`${l}`,ref_for:!0},l===e.currentPage?{...e.ui.default.activeButton||{},...e.activeButton}:{...e.ui.default.inactiveButton||{},...e.inactiveButton},{class:[{"pointer-events-none":typeof l=="string","z-[1]":l===e.currentPage},e.ui.base,e.ui.rounded],ui:{rounded:""},onClick:()=>e.onClickPage(l)}),null,16,["to","size","disabled","label","class","onClick"])}),128)),ge(e.$slots,"next",{onClick:e.onClickNext,canGoNext:e.canGoLastOrNext},()=>{var l;return[e.nextButton?(D(),ne(r,Oe({key:0,size:e.size,to:(l=e.to)==null?void 0:l.call(e,e.currentPage+1),disabled:!e.canGoLastOrNext||e.disabled,class:[e.ui.base,e.ui.rounded]},{...e.ui.default.nextButton||{},...e.nextButton},{ui:{rounded:""},"aria-label":"Next",onClick:e.onClickNext}),null,16,["size","to","disabled","class","onClick"])):de("",!0)]}),ge(e.$slots,"last",{onClick:e.onClickLast,canGoLast:e.canGoLastOrNext},()=>{var l;return[e.lastButton&&e.showLast?(D(),ne(r,Oe({key:0,size:e.size,to:(l=e.to)==null?void 0:l.call(e,e.pages.length),disabled:!e.canGoLastOrNext||e.disabled,class:[e.ui.base,e.ui.rounded]},{...e.ui.default.lastButton||{},...e.lastButton},{ui:{rounded:""},"aria-label":"Last",onClick:e.onClickLast}),null,16,["size","to","disabled","class","onClick"])):de("",!0)]})],16)}const vi=ut(ci,[["render",fi]]),pi=qe(fe.ui.strategy,fe.ui.modal,wa),mi=te({components:{HDialog:Pl,HDialogPanel:$l,TransitionRoot:Mo,TransitionChild:$o},inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},transition:{type:Boolean,default:!0},preventClose:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","close","close-prevented","after-leave"],setup(e,{emit:t}){const{ui:n,attrs:a}=at("modal",Ie(e,"ui"),pi,Ie(e,"class")),o=b({get(){return e.modelValue},set(s){t("update:modelValue",s)}}),i=b(()=>e.transition?{...n.value.transition}:{});function r(s){if(e.preventClose){t("close-prevented");return}o.value=s,t("close")}const l=()=>{t("after-leave")};return ro(()=>eo()),{ui:n,attrs:a,isOpen:o,transitionClass:i,onAfterLeave:l,close:r}}});function hi(e,t,n,a,o,i){const r=yt("TransitionChild"),l=yt("HDialogPanel"),s=yt("HDialog"),d=yt("TransitionRoot");return D(),ne(d,{appear:e.appear,show:e.isOpen,as:"template",onAfterLeave:e.onAfterLeave},{default:z(()=>[Q(s,Oe({class:e.ui.wrapper},e.attrs,{onClose:e.close}),{default:z(()=>[e.overlay?(D(),ne(r,Oe({key:0,as:"template",appear:e.appear},e.ui.overlay.transition,{class:e.ui.overlay.transition.enterFrom}),{default:z(()=>[V("div",{class:q([e.ui.overlay.base,e.ui.overlay.background])},null,2)]),_:1},16,["appear","class"])):de("",!0),V("div",{class:q(e.ui.inner)},[V("div",{class:q([e.ui.container,!e.fullscreen&&e.ui.padding])},[Q(r,Oe({as:"template",appear:e.appear},e.transitionClass,{class:e.transitionClass.enterFrom}),{default:z(()=>[Q(l,{class:q([e.ui.base,e.ui.background,e.ui.ring,e.ui.shadow,e.fullscreen?e.ui.fullscreen:[e.ui.width,e.ui.height,e.ui.rounded,e.ui.margin]])},{default:z(()=>[ge(e.$slots,"default")]),_:3},8,["class"])]),_:3},16,["appear","class"])],2)],2)]),_:3},16,["class","onClose"])]),_:3},8,["appear","show","onAfterLeave"])}const gi=ut(mi,[["render",hi]]);function bi(e,t){return D(),ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[V("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})])}const yi={name:"IeModal",components:{XMarkIcon:bi},props:{active:{type:Boolean,default:!1},title:{type:String,default:null}},watch:{active:{immediate:!0,handler(e){e?document.getElementsByTagName("body")[0].style.overflow="hidden":document.getElementsByTagName("body")[0].style.overflow="auto"}}}},wi={class:"flex items-center justify-between"},Oi={key:0},xi={class:"modal-content"};function Si(e,t,n,a,o,i){const r=Nt,l=io,s=gi;return D(),ne(s,{"model-value":n.active},{default:z(()=>[Q(l,{class:"modal"},{header:z(()=>[V("div",wi,[n.title?(D(),ee("h3",Oi,ae(n.title),1)):de("",!0),Q(r,{color:"gray",variant:"ghost",icon:"i-heroicons-x-mark-20-solid",class:"-my-1",onClick:t[0]||(t[0]=d=>e.$emit("close"))})])]),default:z(()=>[V("div",xi,[ge(e.$slots,"default")])]),_:3})]),_:3},8,["model-value"])}const Xt=ut(yi,[["render",Si]]),Ci={class:"posts"},Ei={class:"section-title flex items-center justify-between"},ki={class:"flex items-center justify-between"},Ti={class:"flex items-center justify-start-gap-0"},Ai={class:"flex items-center gap-4"},Ii={class:"flex items-center gap-4"},Pi={class:"flex items-center justify-center"},$i={class:"post-title"},Mi={class:"post-author"},Ri={class:"post-date"},Li={class:"post-date"},Di={class:"post-content"},Bi={class:"post-content-e2r"},Fi={class:"post-default-type"},zi={class:"post-published"},Vi={class:"flex flex-wrap justify-between items-center"},ji={class:"text-sm leading-5"},Ni={class:"font-medium"},Hi={class:"font-medium"},Wi={class:"font-medium"},Ui={class:"confirm_modal"},qi={class:"confirm_modal-actions"},Gi={class:"confirm_modal"},Yi={class:"confirm_modal-actions"},Ki={class:"confirm_modal"},Xi={class:"confirm_modal-actions"},Qi={__name:"Posts",async setup(e){let t,n;const a=I([]),o=I(-1);I(-1);const i=I(-1),r=I(-1),l=I(!1),s=I(""),d=I(1),u=I(10),c=I({column:"created_at",direction:"desc"}),f=[{key:"title",label:"Title",class:"post-title",sortable:!0,selectable:!1,
4colIndex:0},{key:"author",label:"Author",sortable:!0,selectable:!0,colIndex:1},{key:"created_at",label:"Created",sortable:!0,selectable:!0,colIndex:2},{key:"modified_at",label:"Last modified",sortable:!0,selectable:!0,colIndex:3},{key:"content_e2r",label:"E2R?",sortable:!1,selectable:!0,colIndex:4},{key:"content",label:"Plain text?",sortable:!1,selectable:!0,colIndex:5},{key:"default_type",label:"Default content type",sortable:!0,selectable:!0,colIndex:6},{key:"published",label:"Published?",sortable:!0,selectable:!0,colIndex:7}],p=I([...f]),m=b(()=>[...p.value.sort((L,T)=>L.colIndex-T.colIndex),{key:"actions",label:""}]),O=()=>{let L={sort:c.value.column,direction:c.value.direction,archive:l.value?1:0,offset:(d.value-1)*u.value,limit:u.value};return s.value.length&&(L.search=s.value),vt("posts/admin",{query:L})},{data:C,status:A}=([t,n]=da(()=>pa("posts",O,{default:()=>[],watch:[d,s,u,c,l]})),t=await t,n(),t),x=()=>ha("posts"),h=b(()=>(d.value-1)*u.value+1),y=b(()=>Math.min(d.value*u.value,C.value.count)),v=b(()=>C.value.posts),g=()=>vt("admin/users").then(L=>{a.value=L}),E=()=>{l.value=!0},w=()=>{l.value=!1},R=L=>{const T=a.value.find(H=>H.email===L);return T?T.first_name+" "+T.last_name:L};ce(()=>{g()});const S=()=>{s.value=""},k=()=>{Ln({path:"/admin/editor"})},M=L=>{Ln({path:"/admin/editor",query:{postId:L}})},P=L=>{o.value=L},j=()=>{vt(`post/${o.value}`,{method:"DELETE"}).then(()=>{B(),x()})},B=()=>{o.value=-1},N=L=>{i.value=L},G=()=>{vt(`archive/${i.value}`,{method:"PATCH"}).then(()=>{ve(),x()})},ve=()=>{i.value=-1},oe=L=>{r.value=L},ye=()=>{vt(`restore/${r.value}`,{method:"PATCH"}).then(()=>{U(),x()})},U=()=>{r.value=-1};return(L,T)=>{const H=Nt,F=fa,Y=ri,Z=va,re=ui,Ae=ma,ct=vi,ft=io;return D(),ee("div",Ci,[V("h1",Ei,[V("span",null,ae(J(l)?"Archive":"Posts"),1),J(l)?(D(),ne(H,{key:1,boxed:"",onClick:w},{default:z(()=>T[6]||(T[6]=[_(" Back to Posts ")])),_:1})):(D(),ee(Ve,{key:0},[J(l)?de("",!0):(D(),ne(H,{key:0,color:"black",onClick:E},{default:z(()=>T[5]||(T[5]=[_(" Archives ")])),_:1}))],64))]),Q(ft,{class:"w-full",ui:{body:{padding:""}}},{header:z(()=>[V("div",ki,[V("div",Ti,[Q(F,{icon:"i-heroicons-magnifying-glass-20-solid",modelValue:J(s),"onUpdate:modelValue":T[0]||(T[0]=W=>pt(s)?s.value=W:null),placeholder:"Search posts"},null,8,["modelValue"]),J(s)!==""?(D(),ne(H,{key:0,icon:"i-heroicons-x-mark-20-solid",onClick:S,color:"gray"})):de("",!0)]),V("div",Ai,[Q(Y,{modelValue:J(p),"onUpdate:modelValue":T[1]||(T[1]=W=>pt(p)?p.value=W:null),options:f.filter(W=>W.selectable),multiple:"",placeholder:"Columns"},null,8,["modelValue","options"])]),V("div",Ii,[T[7]||(T[7]=V("h5",{class:"text-sm leading-5"},"Items per page:",-1)),Q(Z,{modelValue:J(u),"onUpdate:modelValue":T[2]||(T[2]=W=>pt(u)?u.value=W:null),options:[10,25,50,100],class:"w-24"},null,8,["modelValue"])])])]),footer:z(()=>[V("div",Vi,[V("div",null,[V("span",ji,[T[14]||(T[14]=_(" Showing ")),V("span",Ni,ae(J(h)),1),T[15]||(T[15]=_(" to ")),V("span",Hi,ae(J(y)),1),T[16]||(T[16]=_(" of ")),V("span",Wi,ae(J(C).count),1),T[17]||(T[17]=_(" results "))])]),Q(ct,{modelValue:J(d),"onUpdate:modelValue":T[4]||(T[4]=W=>pt(d)?d.value=W:null),"page-count":J(u),total:J(C).count},null,8,["modelValue","page-count","total"])])]),default:z(()=>[Q(Ae,{sort:J(c),"onUpdate:sort":T[3]||(T[3]=W=>pt(c)?c.value=W:null),rows:J(v),columns:J(m),loading:J(A)==="pending",class:"w-full","sort-asc-icon":"i-heroicons-arrow-up","sort-desc-icon":"i-heroicons-arrow-down","sort-mode":"manual",ui:{default:{checkbox:{color:"gray"}}}},ca({"title-data":z(({row:W})=>[V("span",$i,ae(W.title),1)]),"author-data":z(({row:W})=>[V("span",Mi,[W.author?(D(),ee(Ve,{key:0},[_(ae(R(W.author)),1)],64)):(D(),ee(Ve,{key:1},[_(" - ")],64))])]),"created_at-data":z(({row:W})=>[V("span",Ri,ae(J(Rn).formatDate(W.created_at)),1)]),"modified_at-data":z(({row:W})=>[V("span",Li,ae(W.modified_at!==W.created_at?J(Rn).formatDate(W.modified_at):"-"),1)]),"content-data":z(({row:W})=>{var Fe;return[V("span",Di,ae(((Fe=W.content)==null?void 0:Fe.length)>0?"✅":"❌"),1)]}),"content_e2r-data":z(({row:W})=>
4[V("span",Bi,ae(W.content_e2r?"✅":"❌"),1)]),"default_type-data":z(({row:W})=>[V("span",Fi,ae(W.default_type==="e2r"?"E2R":"Plain text"),1)]),"published-data":z(({row:W})=>[V("span",zi,[_(ae(W.published?"✅":"❌")+" ",1),W.published?(D(),ne(H,{key:0,size:"xs",to:W.url,target:"_blank",color:"ie-pink"},{default:z(()=>T[9]||(T[9]=[_(" Preview ")])),_:2},1032,["to"])):de("",!0)])]),"actions-data":z(({row:W})=>[Q(re,{size:"xs"},{default:z(()=>[J(l)?(D(),ne(H,{key:1,size:"xs",onClick:Fe=>oe(W.idx)},{default:z(()=>T[12]||(T[12]=[_(" Restore ")])),_:2},1032,["onClick"])):(D(),ee(Ve,{key:0},[Q(H,{size:"xs",onClick:Fe=>M(W.idx)},{default:z(()=>T[10]||(T[10]=[_("Edit")])),_:2},1032,["onClick"]),Q(H,{size:"xs",color:"ie-pink",onClick:Fe=>N(W.idx)},{default:z(()=>T[11]||(T[11]=[_(" Archive ")])),_:2},1032,["onClick"])],64)),Q(H,{size:"xs",color:"black",onClick:Fe=>P(W.idx)},{default:z(()=>T[13]||(T[13]=[_(" Delete ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},[J(l)?void 0:{name:"actions-header",fn:z(()=>[V("div",Pi,[Q(H,{boxed:"",color:"ie-pink",onClick:k,icon:"i-heroicons-plus-20-solid"},{default:z(()=>T[8]||(T[8]=[_(" Add a post ")])),_:1})])]),key:"0"}]),1032,["sort","rows","columns","loading"])]),_:1}),Q(Xt,{title:"Confirm Delete",active:J(o)>-1,onClose:B},{default:z(()=>[V("div",Ui,[T[20]||(T[20]=_(" Are you sure you want to delete this post? ")),V("div",qi,[Q(H,{size:"sm",color:"ie-pink",onClick:j},{default:z(()=>T[18]||(T[18]=[_(" Yes ")])),_:1}),Q(H,{size:"sm",color:"black",onClick:B},{default:z(()=>T[19]||(T[19]=[_(" Cancel ")])),_:1})])])]),_:1},8,["active"]),Q(Xt,{title:"Modal",active:J(i)>-1,onClose:ve},{default:z(()=>[V("div",Gi,[T[23]||(T[23]=_(" Are you sure you want to archive this post? ")),V("div",Yi,[Q(H,{size:"sm",color:"ie-pink",onClick:G},{default:z(()=>T[21]||(T[21]=[_(" Yes ")])),_:1}),Q(H,{size:"sm",color:"black",onClick:ve},{default:z(()=>T[22]||(T[22]=[_(" Cancel ")])),_:1})])])]),_:1},8,["active"]),Q(Xt,{title:"Modal",active:J(r)>-1,onClose:U},{default:z(()=>[V("div",Ki,[T[26]||(T[26]=_(" Are you sure you want to restore this post? ")),V("div",Xi,[Q(H,{size:"sm",onClick:ye},{default:z(()=>T[24]||(T[24]=[_(" Yes ")])),_:1}),Q(H,{size:"sm",color:"black",onClick:U},{default:z(()=>T[25]||(T[25]=[_(" Cancel ")])),_:1})])])]),_:1},8,["active"])])}}},ts=ut(Qi,[["__scopeId","data-v-7d635306"]]);export{ts as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.