1import{aw as A,aj as $,ag as k,aD as S,T as P,F as T}from"./entry.39d277c8c87683cc999b10309be9cede627536c8.js";var b;let w=Symbol("headlessui.useid"),D=0;const F=(b=A)!=null?b:function(){return $(w,()=>`${++D}`)()};function L(e){k(w,e)}function W(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function j(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,j),a}var U=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(U||{}),H=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(H||{});function C({visible:e=!0,features:t=0,ourProps:n,theirProps:a,...r}){var i;let s=O(a,n),u=Object.assign(r,{props:s});if(e||t&2&&s.static)return y(u);if(t&1){let f=(i=s.unmount)==null||i?0:1;return j(f,{0(){return null},1(){return y({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return y(u)}function y({props:e,attrs:t,slots:n,slot:a,name:r}){var i,s;let{as:u,...f}=N(e,["unmount","static"]),l=(i=n.default)==null?void 0:i.call(n,a),g={};if(a){let c=!1,h=[];for(let[d,p]of Object.entries(a))typeof p=="boolean"&&(c=!0),p===!0&&h.push(d);c&&(g["data-headlessui-state"]=h.join(" "))}if(u==="template"){if(l=v(l??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[c,...h]=l??[];if(!R(c)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(t)).map(o=>o.trim()).filter((o,m,E)=>E.indexOf(o)===m).sort((o,m)=>o.localeCompare(m)).map(o=>` - ${o}`).join(` 2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(o=>` - ${o}`).join(` 3`)].join(` 4`));let d=O((s=c.props)!=null?s:{},f,g),p=S(c,d,!0);for(let o in d)o.startsWith("on")&&(p.props||(p.props={}),p.props[o]=d[o]);return p}return Array.isArray(l)&&l.length===1?l[0]:l}return P(u,Object.assign({},f,g),{default:()=>l})}function v(e){return e.flatMap(t=>t.type===T?v(t.children):[t])}function O(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...i){let s=n[a];for(let u of s){if(r instanceof Event&&r.defaultPrevented)return;u(r,...i)}}});return t}function I(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function N(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}function R(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var x=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(x||{});export{C as A,I as E,U as N,H as S,N as T,x as a,F as i,W as o,L as s,j as u};
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.