1import{b_ as I,ad as S,aN as k,S as E,F as N}from"./BgOPsrZ5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="56ad5db9-0012-4897-a446-5a64041b7698",e._sentryDebugIdIdentifier="sentry-dbid-56ad5db9-0012-4897-a446-5a64041b7698")}catch{}})();var m;let P=Symbol("headlessui.useid"),T=0;const U=(m=I)!=null?m:function(){return S(P,()=>`${++T}`)()};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 i=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(i,j),i}var _=Object.defineProperty,A=(e,t,n)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t,n)=>(A(e,typeof t!="symbol"?t+"":t,n),n);class D{constructor(){v(this,"current",this.detect()),v(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"}}let M=new D;var x=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(x||{}),H=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(H||{});function V({visible:e=!0,features:t=0,ourProps:n,theirProps:i,...r}){var s;let a=O(i,n),u=Object.assign(r,{props:a});if(e||t&2&&a.static)return g(u);
1if(t&1){let c=(s=a.unmount)==null||s?0:1;return j(c,{0(){return null},1(){return g({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return g(u)}function g({props:e,attrs:t,slots:n,slot:i,name:r}){var s,a;let{as:u,...c}=R(e,["unmount","static"]),o=(s=n.default)==null?void 0:s.call(n,i),y={};if(i){let f=!1,h=[];for(let[p,d]of Object.entries(i))typeof d=="boolean"&&(f=!0),d===!0&&h.push(p);f&&(y["data-headlessui-state"]=h.join(" "))}if(u==="template"){if(o=w(o??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[f,...h]=o??[];if(!C(f)||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(c).concat(Object.keys(t)).map(l=>l.trim()).filter((l,b,$)=>$.indexOf(l)===b).sort((l,b)=>l.localeCompare(b)).map(l=>` - ${l}`).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(l=>` - ${l}`).join(` 3`)].join(` 4`));let p=O((a=f.props)!=null?a:{},c,y),d=k(f,p,!0);for(let l in p)l.startsWith("on")&&(d.props||(d.props={}),d.props[l]=p[l]);return d}return Array.isArray(o)&&o.length===1?o[0]:o}return E(u,Object.assign({},c,y),{default:()=>o})}function w(e){return e.flatMap(t=>t.type===N?w(t.children):[t])}function O(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(i=>[i,void 0])));for(let i in n)Object.assign(t,{[i](r,...s){let a=n[i];for(let u of a){if(r instanceof Event&&r.defaultPrevented)return;u(r,...s)}}});return t}function Y(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function R(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function C(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}export{V as A,Y as E,x as N,H as S,R as T,M as c,U as i,W as o,j as u}; 5//# sourceMappingURL=CLK_1Oet.js.map
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.