1var Xr=Object.defineProperty;var Yr=Object.getPrototypeOf;var Gr=Reflect.get;var Gn=e=>{throw TypeError(e)};var qr=(e,t,n)=>t in e?Xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>qr(e,typeof t!="symbol"?t+"":t,n),Tn=(e,t,n)=>t.has(e)||Gn("Cannot "+n);var a=(e,t,n)=>(Tn(e,t,"read from private field"),n?n.call(e):t.get(e)),v=(e,t,n)=>t.has(e)?Gn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),T=(e,t,n,r)=>(Tn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),G=(e,t,n)=>(Tn(e,t,"access private method"),n);var Cn=(e,t,n,r)=>({set _(i){T(e,t,i,n)},get _(){return a(e,t,r)}}),qn=(e,t,n)=>Gr(Yr(e),n,t);import{c as X,a as W,t as pr}from"./disclose-version.CtdTVmsE.js";import{h as C,e as _,g,d as F,u as D,A as j,Z as br,a_ as Zr,a$ as Jr,aW as Qr,b0 as $r,p as J,f as H,a as Q,b as ct,ad as _t,b1 as ti,c as ei,r as ni,t as ri,s as ii,_ as oi}from"./runtime.Dneb9BA2.js";import{s as at}from"./snippet.CZxIJCel.js";import{a as R,i as Ve,p as S,b as Ke,r as xn}from"./props.B7X6Dyn6.js";import{j as si,f as ci}from"./Icon.sd2jk39_.js";import{o as ai}from"./index-client.CIW1dRlh.js";function Qt(e){C(e,e.v+1)}function ui(e){return typeof e=="function"}function li(e){return e!==null&&typeof e=="object"}const ee=Symbol("box"),Nn=Symbol("is-writable");function fi(e){return li(e)&&ee in e}function di(e){return b.isBox(e)&&Nn in e}function b(e){let t=_(R(e));return{[ee]:!0,[Nn]:!0,get current(){return g(t)},set current(n){C(t,R(n))}}}function hi(e,t){const n=F(e);return t?{[ee]:!0,[Nn]:!0,get current(){return g(n)},set current(r){t(r)}}:{[ee]:!0,get current(){return e()}}}function gi(e){return b.isBox(e)?e:ui(e)?b.with(e):b(e)}function mi(e){return Object.entries(e).reduce((t,[n,r])=>b.isBox(r)?(b.isWritableBox(r)?Object.defineProperty(t,n,{get(){return r.current},set(i){r.current=i}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function wi(e){return b.isWritableBox(e)?{[ee]:!0,get current(){return e.current}}:e}b.from=gi;b.with=hi;b.flatten=mi;b.readonly=wi;b.isBox=fi;b.isWritableBox=di;function xr(...e){return function(t){var n;for(const r of e)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(n=r.current)==null||n.call(this,t)}}}var Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Er={},Jn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yi=/\n/g,vi=/^\s*/,pi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,bi=/^:\s*/,xi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ei=/^[;\s]*/,Oi=/^\s+|\s+$/g,Si=` 2`,Qn="/",$n="*",Ct="",Ai="comment",Pi="declaration",Ti=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(u){var d=u.match(yi);d&&(n+=d.length);var p=u.lastIndexOf(Si);r=~p?u.length-p:r+u.length}function o(){var u={line:n,column:r};return function(d){return d.position=new s(u),f(),d}}function s(u){this.start=u,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function c(u){var d=new Error(t.source+":"+n+":"+r+": "+u);if(d.reason=u,d.filename=t.source,d.line=n,d.column=r,d.source=e,!t.silent)throw d}function l(u){var d=u.exec(e);if(d){var p=d[0];return i(p),e=e.slice(p.length),d}}function f(){l(vi)}function h(u){var d;for(u=u||[];d=m();)d!==!1&&u.push(d);return u}function m(){var u=o();if(!(Qn!=e.charAt(0)||$n!=e.charAt(1))){for(var d=2;Ct!=e.charAt(d)&&($n!=e.charAt(d)||Qn!=e.charAt(d+1));)++d;if(d+=2,Ct===e.charAt(d-1))return c("End of comment missing");var p=e.slice(2,d-2);return r+=2,i(p),e=e.slice(d),r+=2,u({type:Ai,comment:p})}}function y(){var u=o(),d=l(pi);if(d){if(m(),!l(bi))return c("property missing ':'");var p=l(xi),x=u({type:Pi,property:tr(d[0].replace(Jn,Ct)),value:p?tr(p[0].replace(Jn,Ct)):Ct});return l(Ei),x}}function w(){var u=[];h(u);for(var d;d=y();)d!==!1&&(u.push(d),h(u));return u}return f(),w()};function tr(e){return e?e.replace(Oi,Ct):Ct}var Ci=Zn&&Zn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
2Object.defineProperty(Er,"__esModule",{value:!0});var er=Er.default=Fi,Ri=Ci(Ti);function Fi(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Ri.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,c=o.value;i?t(s,c,o):c&&(n=n||{},n[s]=c)}}),n}const Di=er.default||er,Li=/\d/,_i=["-","_","/","."];function Ii(e=""){if(!Li.test(e))return e!==e.toLowerCase()}function Bi(e){const t=[];let n="",r,i;for(const o of e){const s=_i.includes(o);if(s===!0){t.push(n),n="",r=void 0;continue}const c=Ii(o);if(i===!1){if(r===!1&&c===!0){t.push(n),n=o,r=c;continue}if(r===!0&&c===!1&&n.length>1){const l=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=l+o,r=c;continue}}n+=o,r=c,i=s}return t.push(n),t}function Or(e){return e?Bi(e).map(t=>Mi(t)).join(""):""}function Ni(e){return Wi(Or(e||""))}function Mi(e){return e?e[0].toUpperCase()+e.slice(1):""}function Wi(e){return e?e[0].toLowerCase()+e.slice(1):""}function te(e){if(!e)return{};const t={};function n(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[Or(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Ni(r)]=i}return Di(e,n),t}function It(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function ki(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const Hi=ki(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Ui(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Hi(t)}: ${e[t]};`).join(` 3`)}function Mn(e={}){return Ui(e).replace(` 4`," ")}const Vi={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};Mn(Vi);function Ki(e){var t;return e.length>2&&e.startsWith("on")&&e[2]===((t=e[2])==null?void 0:t.toLowerCase())}function Sr(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];for(const i in r){const o=t[i],s=r[i],c=typeof o=="function",l=typeof s=="function";if(c&&Ki(i)){const f=o,h=s;t[i]=xr(f,h)}else if(c&&l)t[i]=It(o,s);else if(i==="class"&&typeof o=="string"&&typeof s=="string")t[i]=si(o,s);else if(i==="style"){const f=typeof o=="object",h=typeof s=="object",m=typeof o=="string",y=typeof s=="string";if(f&&h)t[i]={...o,...s};else if(f&&y){const w=te(s);t[i]={...o,...w}}else if(m&&h){const w=te(o);t[i]={...w,...s}}else if(m&&y){const w=te(o),u=te(s);t[i]={...w,...u}}else f?t[i]=o:h&&(t[i]=s)}else t[i]=s!==void 0?s:o}}return typeof t.style=="object"&&(t.style=Mn(t.style).replaceAll(` 5`," ")),t.hidden!==!0&&(t.hidden=void 0),t.disabled!==!0&&(t.disabled=void 0),t}function Yt({id:e,ref:t,deps:n=()=>!0,onRefChange:r=()=>{},getRootNode:i=()=>typeof document<"u"?document:void 0}){const o=F(()=>n()),s=F(()=>i());D(()=>(e.current,g(o),g(s),j(()=>{var l;const c=(l=g(s))==null?void 0:l.getElementById(e.current);c?t.current=c:t.current=null,r(t.current)}))),D(()=>()=>{t.current=null,r(null)})}function zi(e){D(()=>()=>{e()})}function Ar(e,t){setTimeout(t,e)}function En(e){br().then(e)}function Qs(e){return e?"open":"closed"}function $s(e){return e?"true":"false"}function tc(e){return e?"true":"false"}function ec(e){return e?"":void 0}function nc(e){return e?"true":"false"}function rc(e){return e?"true":"false"}function ic(e,t){return t?"mixed":e?"true":"false"}function oc(e){return e}function sc(e){return e?"true":void 0}function cc(e){return e?"":void 0}function ac(e){return e?!0:void 0}function uc(e){return e?!0:void 0}const lc="ArrowDown",fc="ArrowLeft",dc="ArrowRight",hc="ArrowUp",gc="End",mc="Enter",ji="Escape",wc="Home",yc="PageDown",vc="PageUp",pc=" ",Xi="Tab",bc="p",xc="n",Ec="j",Oc="k",Pr=typeof document<"u",nr=Yi();function Yi(){var e,t;return Pr&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ze(e){return e instanceof HTMLElement}function Gi(e){return e instanceof Element}function Sc(e){return e instanceof Element||e instanceof SVGElement}function Ac(e){return e.matches(":focus-visible")}function qi(e){return e!==null}function Zi(e){return e instanceof HTMLInputElement&&"select"in e}function Ji(e,t){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rr(e,t){return Zr(e,t)}function Qi(e,t){const n=e,r=typeof e=="symbol"?e.description:e;if(!Jr(n)){if(t===void 0)throw new Error(`Missing context dependency: ${r} and no fallback was provided.`);return t}return Qr(e)}function $i(e,t){return t!==void 0?t:typeof e=="string"&&t===void 0?`${e}Context`:Array.isArray(e)&&t===void 0?`${e[0]}Context`:t!==void 0?t:`${e}Context`}function Tr(e,t,n=!0){const r=$i(e,t),i=Symbol.for(`bits-ui.${r}`),o=r;function s(l){const f=Qi(n?i:o,l);if(f===void 0)throw new Error(`Context \`${r}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`);return f}function c(l){return rr(n?i:o,l)}return[c,s]}let ir=0;function On(e="bits"){return ir++,`${e}-${ir}`}function U(){}var Nt,ie,pt,Rt,Tt,Fn,Dn;class to{constructor(t,n){v(this,Tt);v(this,Nt,_());v(this,ie);v(this,pt,0);v(this,Rt,null);a(this,Nt).v=R(t),T(this,ie,n)}get current(){return $r()?D(()=>(Cn(this,pt)._++,a(this,pt)===1&&G(this,Tt,Fn).call(this,!0),()=>{br().then(()=>{Cn(this,pt)._--,a(this,pt)===0&&G(this,Tt,Dn).call(this)})})):a(this,pt)===0&&(G(this,Tt,Fn).call(this,!1),G(this,Tt,Dn).call(this)),g(a(this,Nt))}}Nt=new WeakMap,ie=new WeakMap,pt=new WeakMap,Rt=new WeakMap,Tt=new WeakSet,Fn=function(t){T(this,Rt,a(this,ie).
5call(this,n=>{C(a(this,Nt),R(n))},t)??null)},Dn=function(){a(this,Rt)!==null&&(a(this,Rt).call(this),T(this,Rt,null))};const Pc=new to(null,(e,t)=>{function n(){e(document.activeElement)}if(n(),!!t)return document.addEventListener("focusin",n),document.addEventListener("focusout",n),()=>{document.removeEventListener("focusin",n),document.removeEventListener("focusout",n)}});function eo(e){return typeof e=="function"}function no(e){return eo(e)?e():e}var bt;class ro{constructor(t,n={box:"border-box"}){v(this,bt,_(R({width:0,height:0})));var r,i;a(this,bt).v=R({width:((r=n.initialSize)==null?void 0:r.width)??0,height:((i=n.initialSize)==null?void 0:i.height)??0}),D(()=>{const o=no(t);if(!o)return;const s=new ResizeObserver(c=>{for(const l of c){const f=n.box==="content-box"?l.contentBoxSize:l.borderBoxSize,h=Array.isArray(f)?f:[f];g(a(this,bt)).width=h.reduce((m,y)=>Math.max(m,y.inlineSize),0),g(a(this,bt)).height=h.reduce((m,y)=>Math.max(m,y.blockSize),0)}});return s.observe(o),()=>{s.disconnect()}})}get width(){return g(a(this,bt)).width}get height(){return g(a(this,bt)).height}}bt=new WeakMap;var oe,se;class io{constructor(t){v(this,oe,_());v(this,se);D(()=>{C(a(this,oe),R(a(this,se))),T(this,se,t())})}get current(){return g(a(this,oe))}}oe=new WeakMap,se=new WeakMap;function oo(e,t){const n=b(e);function r(o){return t[n.current][o]??n.current}return{state:n,dispatch:o=>{n.current=r(o)}}}function so(e,t){let n=_(R({})),r=_("none");const i=e.current?"mounted":"unmounted";let o=_(null);const s=new io(()=>e.current);D(()=>{t.current&&e.current&&En(()=>{C(o,R(document.getElementById(t.current)))})});const{state:c,dispatch:l}=oo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});D(()=>{const y=e.current;j(()=>{if(g(o)||C(o,R(document.getElementById(t.current))),!g(o)||!(y!==s.current))return;const u=g(r),d=We(g(o));y?l("MOUNT"):d==="none"||g(n).display==="none"?l("UNMOUNT"):l(s&&u!==d?"ANIMATION_OUT":"UNMOUNT")})});function f(y){if(g(o)||C(o,R(document.getElementById(t.current))),!g(o))return;const w=We(g(o)),u=w.includes(y.animationName)||w==="none";y.target===g(o)&&u&&l("ANIMATION_END")}function h(y){g(o)||C(o,R(document.getElementById(t.current))),g(o)&&y.target===g(o)&&C(r,R(We(g(o))))}D(()=>{c.current,j(()=>{if(g(o)||C(o,R(document.getElementById(t.current))),!g(o))return;const y=We(g(o));C(r,R(c.current==="mounted"?y:"none"))})}),D(()=>{if(g(o))return C(n,R(getComputedStyle(g(o)))),g(o).addEventListener("animationstart",h),g(o).addEventListener("animationcancel",f),g(o).addEventListener("animationend",f),()=>{var y,w,u;(y=g(o))==null||y.removeEventListener("animationstart",h),(w=g(o))==null||w.removeEventListener("animationcancel",f),(u=g(o))==null||u.removeEventListener("animationend",f)}});const m=F(()=>["mounted","unmountSuspended"].includes(c.current));return{get current(){return g(m)}}}function We(e){return e&&getComputedStyle(e).animationName||"none"}function co(e,t){J(t,!0);const n=so(b.with(()=>t.present),b.with(()=>t.id));var r=X(),i=H(r);{var o=s=>{var c=X(),l=H(c);at(l,()=>t.presence??ct,()=>({present:n})),W(s,c)};Ve(i,s=>{(t.forceMount||t.present||n.current)&&s(o)})}W(e,r),Q()}function it(e,t,n,r){const i=Array.isArray(t)?t:[t];return i.forEach(o=>e.addEventListener(o,n,r)),()=>{i.forEach(o=>e.removeEventListener(o,n,r))}}function or(e,t=500){let n=null;const r=(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...i)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Wn(e,t){return e===t||e.contains(t)}function Cr(e){return(e==null?void 0:e.ownerDocument)??document}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var Mt,Ft,xt,Wt,Et,kt,Ht,ce,ae,ue,ft,Ge,qt,Rr,qe,Ut,Ze,Je,Qe,$e,le,Fr,tn,en;class ao{constructor(t){v(this,qt);v(this,Mt);v(this,Ft);v(this,xt,{pointerdown:!1});v(this,Wt,!1);N(this,"node",b(null));v(this,Et);v(this,kt);v(this,Ht,_(!1));v(this,ce);v(this,ae,_(null));v(this,ue);v(this,ft,U);v(this,Ge,t=>{t.defaultPrevented||this.currNode&&En(()=>{var n,r;!this.currNode||a(this,$e).call(this,t.target)||t.target&&!g(a(this,Ht))&&((r=(n=a(this,ce)).current)==null||r.call(n,t))})});v(this,qe,t=>{let n=t;n.defaultPrevented&&(n=sr(t)),a(this,Mt).current(t)});v(this,Ut,or(t=>{if(!this.currNode){a(this,ft).call(this);return}const n=a(this,ue).current(t,this.currNode)||ho(t,this.currNode);
5if(!a(this,Wt)||G(this,qt,Fr).call(this)||!n){a(this,ft).call(this);return}let r=t;if(r.defaultPrevented&&(r=sr(r)),a(this,Ft).current!=="close"&&a(this,Ft).current!=="defer-otherwise-close"){a(this,ft).call(this);return}t.pointerType==="touch"?(a(this,ft).call(this),T(this,ft,it(a(this,Et),"click",a(this,qe),{once:!0}))):a(this,Mt).current(r)},10));v(this,Ze,t=>{a(this,xt)[t.type]=!0});v(this,Je,t=>{a(this,xt)[t.type]=!1});v(this,Qe,()=>{this.node.current&&T(this,Wt,fo(this.node.current))});v(this,$e,t=>this.node.current?Wn(this.node.current,t):!1);v(this,le,or(()=>{for(const t in a(this,xt))a(this,xt)[t]=!1;T(this,Wt,!1)},20));v(this,tn,()=>{C(a(this,Ht),!0)});v(this,en,()=>{C(a(this,Ht),!1)});N(this,"props",{onfocuscapture:a(this,tn),onblurcapture:a(this,en)});T(this,kt,t.enabled),T(this,ue,t.isValidEvent),Yt({id:t.id,ref:this.node,deps:()=>a(this,kt).current,onRefChange:i=>{this.currNode=i}}),T(this,Ft,t.interactOutsideBehavior),T(this,Mt,t.onInteractOutside),T(this,ce,t.onFocusOutside),D(()=>{T(this,Et,Cr(this.currNode))});let n=U;const r=()=>{a(this,le).call(this),globalThis.bitsDismissableLayers.delete(this),a(this,Ut).destroy(),n()};D(()=>
5(a(this,kt).current&&this.currNode&&Ar(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,j(()=>a(this,Ft))),n(),n=G(this,qt,Rr).call(this))}),()=>{r()})),zi(()=>{a(this,le).destroy(),globalThis.bitsDismissableLayers.delete(this),a(this,Ut).destroy(),a(this,ft).call(this),n()})}get currNode(){return g(a(this,ae))}set currNode(t){C(a(this,ae),R(t))}}Mt=new WeakMap,Ft=new WeakMap,xt=new WeakMap,Wt=new WeakMap,Et=new WeakMap,kt=new WeakMap,Ht=new WeakMap,ce=new WeakMap,ae=new WeakMap,ue=new WeakMap,ft=new WeakMap,Ge=new WeakMap,qt=new WeakSet,Rr=function(){return It(it(a(this,Et),"pointerdown",It(a(this,Ze),a(this,Qe)),!0),it(a(this,Et),"pointerdown",It(a(this,Je),a(this,Ut))),it(a(this,Et),"focusin",a(this,Ge)))},qe=new WeakMap,Ut=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,$e=new WeakMap,le=new WeakMap,Fr=function(){return Object.values(a(this,xt)).some(Boolean)},tn=new WeakMap,en=new WeakMap;function uo(e){return new ao(e)}function lo(e){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function fo(e){const t=[...globalThis.bitsDismissableLayers],n=lo(t);if(n)return n[0].node.current===e;const[r]=t[0];return r.node.current===e}function ho(e,t){if("button"in e&&e.button>0)return!1;const n=e.target;return Gi(n)?Cr(n).documentElement.contains(n)&&!Wn(t,n):!1}function sr(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let i=!1;return new Proxy(r,{get:(s,c)=>c==="currentTarget"?t:c==="target"?n:c==="preventDefault"?()=>{i=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:c==="defaultPrevented"?i:c in s?s[c]:e[c]})}function go(e,t){J(t,!0);let n=S(t,"interactOutsideBehavior",3,"close"),r=S(t,"onInteractOutside",3,U),i=S(t,"onFocusOutside",3,U),o=S(t,"isValidEvent",3,()=>!1);const s=uo({id:b.with(()=>t.id),interactOutsideBehavior:b.with(()=>n()),onInteractOutside:b.with(()=>r()),enabled:b.with(()=>t.enabled),onFocusOutside:b.with(()=>i()),isValidEvent:b.with(()=>o())});var c=X(),l=H(c);at(l,()=>t.children??ct,()=>({props:s.props})),W(e,c),Q()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var fe,Vt,de,nn,rn;class mo{constructor(t){v(this,fe);v(this,Vt);v(this,de);v(this,nn,()=>it(document,"keydown",a(this,rn),{passive:!1}));v(this,rn,t=>{if(t.key!==ji||!yo(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=a(this,Vt).current;r!=="close"&&r!=="defer-otherwise-close"||a(this,fe).current(n)});T(this,Vt,t.escapeKeydownBehavior),T(this,fe,t.onEscapeKeydown),T(this,de,t.enabled);let n=U;D(()=>(a(this,de).current&&(globalThis.bitsEscapeLayers.set(this,j(()=>a(this,Vt))),n=a(this,nn).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}}fe=new WeakMap,Vt=new WeakMap,de=new WeakMap,nn=new WeakMap,rn=new WeakMap;function wo(e){return new mo(e)}function yo(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([i,{current:o}])=>o==="close"||o==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function vo(e,t){J(t,!0);let n=S(t,"escapeKeydownBehavior",3,"close"),r=S(t,"onEscapeKeydown",3,U);wo({escapeKeydownBehavior:b.with(()=>n()),onEscapeKeydown:b.with(()=>r()),enabled:b.with(()=>t.enabled)});var i=X(),o=H(i);at(o,()=>t.children??ct),W(e,i),Q()}const po=b([]);function bo(){const e=po;return{add(t){const n=e.current[0];t.id!==(n==null?void 0:n.id)&&(n==null||n.pause()),e.current=cr(e.current,t),e.current.unshift(t)},remove(t){var n;e.current=cr(e.current,t),(n=e.current[0])==null||n.resume()}}}function xo(){let e=_(!1);return{id:On(),get paused(){return g(e)},pause(){C(e,!0)},resume(){C(e,!1)}}}function cr(e,t){return[...e].filter(n=>n.id!==t.id)}function Eo(e){return e.filter(t=>t.tagName!=="A")}function vt(e,{select:t=!1}={}){if(!(e&&e.focus))return;const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zi(e)&&t&&e.select()}function Oo(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(vt(r,{select:t}),document.activeElement!==n)return!0}function ar(e,t){for(const n of e)if(!Ji(n,t))return n}function Dr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function So(e){const t=Dr(e),n=ar(t,e),r=ar(t.reverse(),e);return[n,r]}const Ao="focusScope.autoFocusOnMount",Po="focusScope.autoFocusOnDestroy",ur={bubbles:!1,cancelable:!0};function To({id:e,loop:t,enabled:n,onOpenAutoFocus:r,onCloseAutoFocus:i,forceMount:o}){const s=bo(),c=xo(),l=b(null);Yt({id:e,ref:l,deps:()=>n.current});let f=_(null);D(()=>{const u=l.current;if(!u||!n.current)return;function d(E){if(c.paused||!u)return;const O=E.target;ze(O)&&(u.contains(O)?C(f,R(O)):vt(g(f),{select:!0}))}function p(E){if(c.paused||!u)return;const O=E.relatedTarget;ze(O)&&O!==null&&(u.contains(O)||vt(g(f),{select:!0}))}function x(E){(u==null?void 0:u.contains(g(f)))||vt(u)}return j(()=>{const E=It(it(document,"focusin",d),it(document,"focusout",p)),O=new MutationObserver(x);return O.observe(u,{childList:!0,subtree:!0}),()=>{E(),O.disconnect()}})}),D(()=>
5{if(o.current)return;let u=l.current;const d=document.activeElement;return j(()=>{h(u,d)}),()=>{u&&m(d)}}),D(()=>{if(!o.current)return;n.current;const u=l.current,d=document.activeElement;return j(()=>{h(u,d)}),()=>{u&&m(d)}});function h(u,d){if(u||(u=document.getElementById(e.current)),!u)return;if(s.add(c),!u.contains(d)){const x=new CustomEvent(Ao,ur);r.current(x),x.defaultPrevented||En(()=>{u&&(Oo(Eo(Dr(u)),{select:!0}),document.activeElement===d&&vt(u))})}}function m(u){const d=new CustomEvent(Po,ur);i.current(d),setTimeout(()=>{!d.defaultPrevented&&u&&vt(u??document.body,{select:!0}),s.remove(c)},0)}function y(u){if(!n.current||!t.current&&!n.current||c.paused)return;const d=u.key===Xi&&!u.ctrlKey&&!u.altKey&&!u.metaKey,p=document.activeElement;if(!(d&&p))return;const x=l.current;if(!x)return;const[E,O]=So(x);E&&O?!u.shiftKey&&p===O?(u.preventDefault(),t.current&&vt(E,{select:!0})):u.shiftKey&&p===E&&(u.preventDefault(),t.current&&vt(O,{select:!0})):p===x&&u.preventDefault()}const w=F(()=>({id:e.current,tabindex:-1,onkeydown:y}));return{get props(){return g(w)}}}function Co(e,t){J(t,!0);let n=S(t,"trapFocus",3,!1),r=S(t,"loop",3,!1),i=S(t,"onCloseAutoFocus",3,U),o=S(t,"onOpenAutoFocus",3,U),s=S(t,"forceMount",3,!1);const c=To({enabled:b.with(()=>n()),loop:b.with(()=>r()),onCloseAutoFocus:b.with(()=>i()),onOpenAutoFocus:b.with(()=>o()),id:b.with(()=>t.id),forceMount:b.with(()=>s())});var l=X(),f=H(l);at(f,()=>t.focusScope??ct,()=>({props:c.props})),W(e,l),Q()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var he,ge,me,Ot,Kt,we,on,Lr,sn,ye;class Ro{constructor(t){v(this,on);v(this,he);v(this,ge);v(this,me);v(this,Ot);v(this,Kt,U);v(this,we,b(null));v(this,sn,t=>{const n=a(this,we).current,r=t.target;!ze(n)||!ze(r)||!a(this,Ot).current||!Lo(this)||!Wn(n,r)||(a(this,ge).current(t),!t.defaultPrevented&&T(this,Kt,Do(n)))});v(this,ye,()=>{a(this,Kt).call(this),T(this,Kt,U)});T(this,he,t.id),T(this,Ot,t.preventOverflowTextSelection),T(this,ge,t.onPointerDown),T(this,me,t.onPointerUp),Yt({id:a(this,he),ref:a(this,we),deps:()=>a(this,Ot).current});let n=U;D(()=>(a(this,Ot).current&&(globalThis.bitsTextSelectionLayers.set(this,j(()=>a(this,Ot))),n=G(this,on,Lr).call(this)),()=>{n(),a(this,ye).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}he=new WeakMap,ge=new WeakMap,me=new WeakMap,Ot=new WeakMap,Kt=new WeakMap,we=new WeakMap,on=new WeakSet,Lr=function(){return It(it(document,"pointerdown",a(this,sn)),it(document,"pointerup",xr(a(this,ye),a(this,me))))},sn=new WeakMap,ye=new WeakMap;function Fo(e){return new Ro(e)}const lr=e=>e.style.userSelect||e.style.webkitUserSelect;function Do(e){const t=document.body,n=lr(t),r=lr(e);return ke(t,"none"),ke(e,"text"),()=>{ke(t,n),ke(e,r)}}function ke(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Lo(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function _o(e,t){J(t,!0);let n=S(t,"preventOverflowTextSelection",3,!0),r=S(t,"onPointerDown",3,U),i=S(t,"onPointerUp",3,U);Fo({id:b.with(()=>t.id),preventOverflowTextSelection:b.with(()=>n()),onPointerDown:b.with(()=>r()),onPointerUp:b.with(()=>i()),enabled:b.with(()=>t.enabled)});var o=X(),s=H(o);at(s,()=>t.children??ct),W(e,o),Q()}var nt,rt,dt,zt,Ue;const Yn=class Yn extends Map{constructor(n){super();v(this,zt);v(this,nt,new Map);v(this,rt,_t(0));v(this,dt,_t(0));if(n){for(var[r,i]of n)super.set(r,i);a(this,dt).v=super.size}}has(n){var r=a(this,nt),i=r.get(n);if(i===void 0){var o=super.get(n);if(o!==void 0)i=_t(0),r.set(n,i);else return g(a(this,rt)),!1}return g(i),!0}forEach(n,r){G(this,zt,Ue).call(this),super.forEach(n,r)}get(n){var r=a(this,nt),i=r.get(n);if(i===void 0){var o=super.get(n);if(o!==void 0)i=_t(0),r.set(n,i);else{g(a(this,rt));return}}return g(i),super.get(n)}set(n,r){var m;var i=a(this,nt),o=i.get(n),s=super.get(n),c=super.set(n,r),l=a(this,rt);if(o===void 0)i.set(n,_t(0)),C(a(this,dt),super.size),Qt(l);else if(s!==r){Qt(o);var f=l.reactions===null?null:new Set(l.reactions),h=f===null||!((m=o.reactions)!=null&&m.every(y=>f.has(y)));h&&Qt(l)}return c}delete(n){var r=a(this,nt),i=r.get(n),o=super.delete(n);return i!==void 0&&(r.delete(n),C(a(this,dt),super.size),C(i,-1),Qt(a(this,rt))),o}clear(){if(super.size!==0){super.clear();var n=a(this,nt);C(a(this,dt),0);for(var r of n.values())C(r,-1);Qt(a(this,rt)),n.clear()}}keys(){return g(a(this,rt)),super.keys()}values(){return G(this,zt,Ue).call(this),super.values()}entries(){return G(this,zt,Ue).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return g(a(this,dt)),super.size}};nt=new WeakMap,rt=new WeakMap,dt=new WeakMap,zt=new WeakSet,Ue=function(){g(a(this,rt));var n=a(this,nt);if(a(this,dt).v!==n.size)for(var r of qn(Yn.prototype,this,"keys").call(this))n.has(r)||n.set(r,_t(0));for(var[,i]of a(this,nt))g(i)};let Ln=Yn;function Io(e){let t=0,n=_(void 0),r;function i(){t-=1,r&&t<=0&&(r(),C(n,void 0),r=void 0)}return(...o)=>(t+=1,g(n)===void 0&&(r=ti(()=>{C(n,R(e(...o)))})),D(()=>()=>{i()}),g(n))}const Bo=Io(()=>{const e=new Ln,t=F(()=>{for(const o of e.values())if(o)return!0;return!1});let n=R({}),r=null;function i(){Pr&&(document.body.style.paddingRight=n.paddingRight??"",document.body.style.marginRight=n.marginRight??"",document.body.style.pointerEvents=n.pointerEvents??"",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.overflow??"",nr&&(r==null||r()))}return D(()=>{const o=g(t);return j(()=>
5{if(!o)return;const s=getComputedStyle(document.body);n.overflow=s.overflow,n.paddingRight=s.paddingRight,n.marginRight=s.marginRight,n.pointerEvents=s.pointerEvents;const c=window.innerWidth-document.documentElement.clientWidth,f={padding:Number.parseInt(n.paddingRight??"0",10)+c,margin:Number.parseInt(n.marginRight??"0",10)};c>0&&(document.body.style.paddingRight=`${f.padding}px`,document.body.style.marginRight=`${f.margin}px`,document.body.style.setProperty("--scrollbar-width",`${c}px`),document.body.style.overflow="hidden"),nr&&(r=it(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),En(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),D(()=>()=>{r==null||r()}),{get map(){return e},resetBodyStyle:i}});function No(e,t=()=>null){const n=On(),r=Bo(),i=F(t);r.map.set(n,e??!1);const o=b.with(()=>r.map.get(n)??!1,s=>r.map.set(n,s));return D(()=>()=>{r.map.delete(n),!Mo(r.map)&&(g(i)===null?requestAnimationFrame(()=>r.resetBodyStyle()):Ar(g(i),()=>r.resetBodyStyle()))}),o}function Mo(e){for(const[t,n]of e)if(n)return!0;return!1}function fr(e,t){J(t,!0);let n=S(t,"preventScroll",3,!0),r=S(t,"restoreScrollDelay",3,null);No(n(),()=>r()),Q()}const Wo=["top","right","bottom","left"],St=Math.min,k=Math.max,je=Math.round,He=Math.floor,ot=e=>({x:e,y:e}),ko={left:"right",right:"left",bottom:"top",top:"bottom"},Ho={start:"end",end:"start"};function _n(e,t,n){return k(e,St(t,n))}function ht(e,t){return typeof e=="function"?e(t):e}function gt(e){return e.split("-")[0]}function Zt(e){return e.split("-")[1]}function kn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}function At(e){return["top","bottom"].includes(gt(e))?"y":"x"}function Un(e){return kn(At(e))}function Uo(e,t,n){n===void 0&&(n=!1);const r=Zt(e),i=Un(e),o=Hn(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Xe(s)),[s,Xe(s)]}function Vo(e){const t=Xe(e);return[In(e),t,In(t)]}function In(e){return e.replace(/start|end/g,t=>Ho[t])}function Ko(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function zo(e,t,n,r){const i=Zt(e);let o=Ko(gt(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(In)))),o}function Xe(e){return e.replace(/left|right|bottom|top/g,t=>ko[t])}function jo(e){return{top:0,right:0,bottom:0,left:0,...e}}function _r(e){return typeof e!="number"?jo(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function dr(e,t,n){let{reference:r,floating:i}=e;const o=At(t),s=Un(t),c=Hn(s),l=gt(t),f=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,y=r[c]/2-i[c]/2;let w;switch(l){case"top":w={x:h,y:r.y-i.height};break;case"bottom":w={x:h,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:m};break;case"left":w={x:r.x-i.width,y:m};break;default:w={x:r.x,y:r.y}}switch(Zt(t)){case"start":w[s]-=y*(n&&f?-1:1);break;case"end":w[s]+=y*(n&&f?-1:1);break}return w}const Xo=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,c=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=dr(f,r,l),y=r,w={},u=0;for(let d=0;d<c.length;d++){const{name:p,fn:x}=c[d],{x:E,y:O,data:P,reset:A}=await x({x:h,y:m,initialPlacement:r,placement:y,strategy:i,middlewareData:w,rects:f,platform:s,elements:{reference:e,floating:t}});h=E??h,m=O??m,w={...w,[p]:{...w[p],...P}},A&&u<=50&&(u++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(f=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=dr(f,y,l)),d=-1)}return{x:h,y:m,placement:y,strategy:i,middlewareData:w}};async function ne(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:w=0}=ht(t,e),u=_r(w),p=c[y?m==="floating"?"reference":"floating":m],x=Ye(await o.getClippingRect
vendor: 8,826 bytes, line 5
5({element:(n=await(o.isElement==null?void 0:o.isElement(p)))==null||n?p:p.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:l})),E=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),P=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},A=Ye(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:O,strategy:l}):E);return{top:(x.top-A.top+u.top)/P.y,bottom:(A.bottom-x.bottom+u.bottom)/P.y,left:(x.left-A.left+u.left)/P.x,right:(A.right-x.right+u.right)/P.x}}const Yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:c,middlewareData:l}=t,{element:f,padding:h=0}=ht(e,t)||{};if(f==null)return{};const m=_r(h),y={x:n,y:r},w=Un(i),u=Hn(w),d=await s.getDimensions(f),p=w==="y",x=p?"top":"left",E=p?"bottom":"right",O=p?"clientHeight":"clientWidth",P=o.reference[u]+o.reference[w]-y[w]-o.floating[u],A=y[w]-o.reference[w],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let I=L?L[O]:0;(!I||!await(s.isElement==null?void 0:s.isElement(L)))&&(I=c.floating[O]||o.floating[u]);const $=P/2-A/2,K=I/2-d[u]/2-1,M=St(m[x],K),tt=St(m[E],K),z=M,lt=I-d[u]-tt,B=I/2-d[u]/2+$,mt=_n(z,B,lt),Y=!l.arrow&&Zt(i)!=null&&B!==mt&&o.reference[u]/2-(B<z?M:tt)-d[u]/2<0,et=Y?B<z?B-z:B-lt:0;return{[w]:y[w]+et,data:{[w]:mt,centerOffset:B-mt-et,...Y&&{alignmentOffset:et}},reset:Y}}}),Go=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:d=!0,...p}=ht(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=gt(i),E=At(c),O=gt(c)===c,P=await(l.isRTL==null?void 0:l.isRTL(f.floating)),A=y||(O||!d?[Xe(c)]:Vo(c)),L=u!=="none";!y&&L&&A.push(...zo(c,d,u,P));const I=[c,...A],$=await ne(t,p),K=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&K.push($[x]),m){const B=Uo(i,s,P);K.push($[B[0]],$[B[1]])}if(M=[...M,{placement:i,overflows:K}],!K.every(B=>B<=0)){var tt,z;const B=(((tt=o.flip)==null?void 0:tt.index)||0)+1,mt=I[B];if(mt)return{data:{index:B,overflows:M},reset:{placement:mt}};let Y=(z=M.filter(et=>et.overflows[0]<=0).sort((et,wt)=>et.overflows[1]-wt.overflows[1])[0])==null?void 0:z.placement;if(!Y)switch(w){case"bestFit":{var lt;const et=(lt=M.filter(wt=>{if(L){const yt=At(wt.placement);return yt===E||yt==="y"}return!0}).map(wt=>[wt.placement,wt.overflows.filter(yt=>yt>0).reduce((yt,jr)=>yt+jr,0)]).sort((wt,yt)=>wt[1]-yt[1])[0])==null?void 0:lt[0];et&&(Y=et);break}case"initialPlacement":Y=c;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};function hr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gr(e){return Wo.some(t=>e[t]>=0)}const qo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=ht(e,t);switch(r){case"referenceHidden":{const o=await ne(t,{...i,elementContext:"reference"}),s=hr(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:gr(s)}}}case"escaped":{const o=await ne(t,{...i,altBoundary:!0}),s=hr(o,n.floating);return{data:{escapedOffsets:s,escaped:gr(s)}}}default:return{}}}}};async function Zo(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=gt(n),c=Zt(n),l=At(n)==="y",f=["left","top"].includes(s)?-1:1,h=o&&l?-1:1,m=ht(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:u}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof u=="number"&&(w=c==="end"?u*-1:u),l?{x:w*h,y:y*f}:{x:y*f,y:w*h}}const Jo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:c}=t,l=await Zo(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Qo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:p=>{let{x,y:E}=p;return{x,y:E}}},...l}=ht(e,t),f={x:n,y:r},h=await ne(t,l),m=At(gt(i)),y=kn(m);let w=f[y],u=f[m];if(o){const p=y==="y"?"top":"left",x=y==="y"?"bottom":"right",E=w+h[p],O=w-h[x];w=_n(E,w,O)}if(s){const p=m==="y"?"top":"left",x=m==="y"?"bottom":"right",E=u+h[p],O=u-h[x];u=_n(E,u,O)}const d=c.fn({...t,[y]:w,[m]:u});return{...d,data:{x:d.x-n,y:d.y-r,enabled:{[y]:o,[m]:s}}}}}},$o=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=ht(e,t),h={x:n,y:r},m=At(i),y=kn(m);let w=h[y],u=h[m];const d=ht(c,t),p=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(l){const O=y==="y"?"height":"width",P=o.reference[y]-o.floating[O]+p.mainAxis,A=o.reference[y]+o.reference[O]-p.mainAxis;w<P?w=P:w>A&&(w=A)}if(f){var x,E;const O=y==="y"?"width":"height",P=["top","left"].includes(gt(i)),A=o.reference[m]-o.floating[O]+(P&&((x=s.offset)==null?void 0:x[m])||0)+(P?0:p.crossAxis),L=o.reference[m]+o.reference[O]+(P?0:((E=s.offset)==null?void 0:E[m])||0)-(P?p.crossAxis:0);u<A?u=A:u>L&&(u=L)}return{[y]:w,[m]:u}}}},ts=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:c}=t,{apply:l=()=>{},...f}=ht(e,t),h=await ne(t,f),m=gt(i),y=Zt(i),w=At(i)==="y",{width:u,height:d}=o.floating;let p,x;m==="top"||m==="bottom"?(p=m,x=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,p=y==="end"?"top":"bottom");const E=d-h.top-h.bottom,O=u-h.left-h.right,P=St(d-h[p],E),A=St(u-h[x],O),L=!t.middlewareData.shift;let I=P,$=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=E),L&&!y){const M=k(h.left,0),tt=k(h.right,0),z=k(h.top,0),lt=k(h.bottom,0);w?$=u-2*(M!==0||tt!==0?M+tt:k(h.left,h.right)):I=d-2*(z!==0||lt!==0?z+lt:k(h.top,h.bottom))}await l({...t,availableWidth:$,availableHeight:I});const K=await s.getDimensions(c.floating);return u!==K.width||d!==K.height?{reset:{rects:!0}}:{}}}};function Sn(){return typeof window<"u"}function Jt(e){return Ir(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Ir(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ir(e){return Sn()?e instanceof Node||e instanceof V(e).Node:!1}function q(e){return Sn()?e instanceof Element||e instanceof V(e).Element:!1}function st(e){return Sn()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function mr(e){return!Sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Me(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function es(e){return["table","td","th"].includes(Jt(e))}function An(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Vn(e){const t=Kn(),n=q(e)?Z(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ns(e){let t=Pt(e);for(;st(t)&&!Gt(t);){if(Vn(t))return t;if(An(t))return null;t=Pt(t)}return null}function Kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gt(e){return["html","body","#document"].includes(Jt(e))}function Z(e){return V(e).getComputedStyle(e)}function Pn(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(Jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mr(e)&&e.host||ut(e);return mr(t)?t.host:t}function Br(e){const t=Pt(e);return Gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&Me(t)?t:Br(t)}function re(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Br(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=V(i);if(o){const c=Bn(s);
vendor: 4,340 bytes, line 5
5return t.concat(s,s.visualViewport||[],Me(i)?i:[],c&&n?re(c):[])}return t.concat(i,re(i,[],n))}function Bn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nr(e){const t=Z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=st(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=je(n)!==o||je(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function zn(e){return q(e)?e:e.contextElement}function Bt(e){const t=zn(e);if(!st(t))return ot(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Nr(t);let s=(o?je(n.width):n.width)/r,c=(o?je(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const rs=ot(0);function Mr(e){const t=V(e);return!Kn()||!t.visualViewport?rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function is(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function Lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=zn(e);let s=ot(1);t&&(r?q(r)&&(s=Bt(r)):s=Bt(e));const c=is(o,n,r)?Mr(o):ot(0);let l=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,h=i.width/s.x,m=i.height/s.y;if(o){const y=V(o),w=r&&q(r)?V(r):r;let u=y,d=Bn(u);for(;d&&r&&w!==u;){const p=Bt(d),x=d.getBoundingClientRect(),E=Z(d),O=x.left+(d.clientLeft+parseFloat(E.paddingLeft))*p.x,P=x.top+(d.clientTop+parseFloat(E.paddingTop))*p.y;l*=p.x,f*=p.y,h*=p.x,m*=p.y,l+=O,f+=P,u=V(d),d=Bn(u)}}return Ye({width:h,height:m,x:l,y:f})}function jn(e,t){const n=Pn(e).scrollLeft;return t?t.left+n:Lt(ut(e)).left+n}function Wr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:jn(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function os(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ut(r),c=t?An(t.floating):!1;if(r===s||c&&o)return n;let l={scrollLeft:0,scrollTop:0},f=ot(1);const h=ot(0),m=st(r);if((m||!m&&!o)&&((Jt(r)!=="body"||Me(s))&&(l=Pn(r)),st(r))){const w=Lt(r);f=Bt(r),h.x=w.x+r.clientLeft,h.y=w.y+r.clientTop}const y=s&&!m&&!o?Wr(s,l,!0):ot(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+h.x+y.x,y:n.y*f.y-l.scrollTop*f.y+h.y+y.y}}function ss(e){return Array.from(e.getClientRects())}function cs(e){const t=ut(e),n=Pn(e),r=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jn(e);const c=-n.scrollTop;return Z(r).direction==="rtl"&&(s+=k(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:c}}function as(e,t){const n=V(e),r=ut(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,c=0,l=0;if(i){o=i.width,s=i.height;const f=Kn();(!f||f&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:c,y:l}}function us(e,t){const n=Lt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=st(e)?Bt(e):ot(1),s=e.clientWidth*o.x,c=e.clientHeight*o.y,l=i*o.x,f=r*o.y;return{width:s,height:c,x:l,y:f}}function wr(e,t,n){let r;if(t==="viewport")r=as(e,n);else if(t==="document")r=cs(ut(e));else if(q(t))r=us(t,n);else{const i=Mr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ye(r)}function kr(e,t){const n=Pt(e);return n===t||!q(n)||Gt(n)?!1:Z(n).position==="fixed"||kr(n,t)}function ls(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(c=>q(c)&&Jt(c)!=="body"),i=null;const o=Z(e).position==="fixed";let s=o?Pt(e):e;for(;q(s)&&!Gt(s);){const c=Z(s),l=Vn(s);!l&&c.position==="fixed"&&(i=null),(o?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Me(s)&&!l&&kr(e,s))?r=r.filter(h=>h!==s):i=c,s=Pt(s)}return t.set(e,r),r}function fs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?An(t)?[]:ls(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((f,h)=>{const m=wr(t,h,i);return f.top=k(m.top,f.top),f.right=St(m.right,f.right),f.bottom=St(m.bottom,f.bottom),f.left=k(m.left,f.left),f},wr(t,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ds(e){const{width:t,height:n}=Nr(e);return{width:t,height:n}}function hs(e,t,n){const r=st(t),i=ut(t),o=n==="fixed",s=Lt(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const l=ot(0);if(r||!r&&!o)if((Jt(t)!=="body"||Me(i))&&(c=Pn(t)),r){const y=Lt(t,!0,o,t);l.x=y.x+t.clientLeft,l.y=y.y+t.clientTop}else i&&(l.x=jn(i));
5const f=i&&!r&&!o?Wr(i,c):ot(0),h=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:h,y:m,width:s.width,height:s.height}}function Rn(e){return Z(e).position==="static"}function yr(e,t){if(!st(e)||Z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Hr(e,t){const n=V(e);if(An(e))return n;if(!st(e)){let i=Pt(e);for(;i&&!Gt(i);){if(q(i)&&!Rn(i))return i;i=Pt(i)}return n}let r=yr(e,t);for(;r&&es(r)&&Rn(r);)r=yr(r,t);return r&&Gt(r)&&Rn(r)&&!Vn(r)?n:r||ns(e)||n}const gs=async function(e){const t=this.getOffsetParent||Hr,n=this.getDimensions,r=await n(e.floating);return{reference:hs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ms(e){return Z(e).direction==="rtl"}const ws={convertOffsetParentRelativeRectToViewportRelativeRect:os,getDocumentElement:ut,getClippingRect:fs,getOffsetParent:Hr,getElementRects:gs,getClientRects:ss,getDimensions:ds,getScale:Bt,isElement:q,isRTL:ms};function Ur(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ys(e,t){let n=null,r;const i=ut(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),o();const f=e.getBoundingClientRect(),{left:h,top:m,width:y,height:w}=f;if(c||t(),!y||!w)return;const u=He(m),d=He(i.clientWidth-(h+y)),p=He(i.clientHeight-(m+w)),x=He(h),O={rootMargin:-u+"px "+-d+"px "+-p+"px "+-x+"px",threshold:k(0,St(1,l))||1};let P=!0;function A(L){const I=L[0].intersectionRatio;if(I!==l){if(!P)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Ur(f,e.getBoundingClientRect())&&s(),P=!1}try{n=new IntersectionObserver(A,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,O)}n.observe(e)}return s(!0),o}function vs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=zn(e),h=i||o?[...f?re(f):[],...re(t)]:[];h.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const m=f&&c?ys(f,n):null;let y=-1,w=null;s&&(w=new ResizeObserver(x=>{let[E]=x;E&&E.target===f&&w&&(w.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var O;(O=w)==null||O.observe(t)})),n()}),f&&!l&&w.observe(f),w.observe(t));let u,d=l?Lt(e):null;l&&p();function p(){const x=Lt(e);d&&!Ur(d,x)&&n(),d=x,u=requestAnimationFrame(p)}return n(),()=>{var x;h.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),m==null||m(),(x=w)==null||x.disconnect(),w=null,l&&cancelAnimationFrame(u)}}const ps=Jo,bs=Qo,xs=Go,Es=ts,Os=qo,Ss=Yo,As=$o,Ps=(e,t,n)=>{const r=new Map,i={platform:ws,...n},o={...i.platform,_c:r};return Xo(e,t,{...i,platform:o})};function $t(e){return typeof e=="function"?e():e}function Vr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vr(e,t){const n=Vr(e);return Math.round(t*n)/n}function Tc(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ts(e){const t=e.whileElementsMounted,n=F(()=>$t(e.open)??!0),r=F(()=>$t(e.middleware)),i=F(()=>$t(e.transform)??!0),o=F(()=>$t(e.placement)??"bottom"),s=F(()=>$t(e.strategy)??"absolute"),c=e.reference;let l=_(0),f=_(0);const h=b(null);let m=_(R(g(s))),y=_(R(g(o))),w=_(R({})),u=_(!1);const d=F(()=>{const A={position:g(m),left:"0",top:"0"};if(!h.current)return A;const L=vr(h.current,g(l)),I=vr(h.current,g(f));return g(i)?{...A,transform:`translate(${L}px, ${I}px)`,...Vr(h.current)>=1.5&&{willChange:"transform"}}:{position:g(m),left:`${L}px`,top:`${I}px`}});let p;function x(){c.current===null||h.current===null||Ps(c.current,h.current,{middleware:g(r),placement:g(o),strategy:g(s)}).then(A=>{C(l,R(A.x)),C(f,R(A.y)),C(m,R(A.strategy)),C(y,R(A.placement)),C(w,R(A.middlewareData)),C(u,!0)})}function E(){typeof p=="function"&&(p(),p=void 0)}function O(){if(E(),t===void 0){x();return}c.current===null||h.current===null||(p=t(c.current,h.current,x))}function P(){g(n)||C(u,!1)}return D(x),D(O),D(P),D(()=>E),{floating:h,reference:c,get strategy(){return g(m)},get placement(){return g(y)},get middlewareData(){return g(w)},get isPositioned(){return g(u)},get floatingStyles(){return g(d)},get update(){return x}}}
5const Cs={top:"bottom",right:"left",bottom:"top",left:"right"};class Rs{constructor(){N(this,"anchorNode",b(null));N(this,"customAnchorNode",b(null));N(this,"triggerNode",b(null));D(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}var ve,pe,be,xe,jt,Ee,Oe,Xt,Dt,Se,Ae,Pe,Te,Ce,Re,cn,Fe,an,De,un,ln,Le,_e,Ie,Be,fn,dn,hn,gn,mn,wn,Ne,yn,vn,pn,bn;class Fs{constructor(t,n){N(this,"root");N(this,"contentRef",b(null));N(this,"wrapperRef",b(null));N(this,"arrowRef",b(null));N(this,"arrowId",b(On()));N(this,"id");N(this,"wrapperId");N(this,"style");v(this,ve,F(()=>{if(typeof this.style=="string")return te(this.style);if(!this.style)return{}}));v(this,pe);v(this,be);v(this,xe);v(this,jt);v(this,Ee);v(this,Oe);v(this,Xt);v(this,Dt);v(this,Se);v(this,Ae);v(this,Pe);v(this,Te);v(this,Ce);N(this,"onPlaced");N(this,"enabled");v(this,Re,new ro(()=>this.arrowRef.current??void 0));v(this,cn,F(()=>{var t;return((t=a(this,Re))==null?void 0:t.width)??0}));v(this,Fe,F(()=>{var t;return((t=a(this,Re))==null?void 0:t.height)??0}));v(this,an,F(()=>{var t;return((t=a(this,be))==null?void 0:t.current)+(a(this,jt).current!=="center"?`-${a(this,jt).current}`:"")}));v(this,De,F(()=>Array.isArray(a(this,Dt).current)?a(this,Dt).current:[a(this,Dt).current]));v(this,un,F(()=>g(a(this,De)).length>0));v(this,ln,F(()=>({padding:a(this,Se).current,boundary:g(a(this,De)).filter(qi),altBoundary:this.hasExplicitBoundaries})));v(this,Le,_(void 0));v(this,_e,_(void 0));v(this,Ie,_(void 0));v(this,Be,_(void 0));v(this,fn,F(()=>[ps({mainAxis:a(this,xe).current+g(a(this,Fe)),alignmentAxis:a(this,Ee).current}),a(this,Xt)&&bs({mainAxis:!0,crossAxis:!1,limiter:a(this,Ae).current==="partial"?As():void 0,...this.detectOverflowOptions}),a(this,Xt)&&xs({...this.detectOverflowOptions}),Es({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference;C(a(this,Le),R(n)),C(a(this,_e),R(r)),C(a(this,Ie),R(i)),C(a(this,Be),R(o))}}),this.arrowRef.current&&Ss({element:this.arrowRef.current,padding:a(this,Oe).current}),Ms({arrowWidth:g(a(this,cn)),arrowHeight:g(a(this,Fe))}),a(this,Pe).current&&Os({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));N(this,"floating");v(this,dn,F(()=>Ws(this.floating.placement)));v(this,hn,F(()=>ks(this.floating.placement)));v(this,gn,F(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));v(this,mn,F(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));v(this,wn,F(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));v(this,Ne,_());v(this,yn,F(()=>Cs[this.placedSide]));v(this,vn,F(()=>{var t,n,r;return{id:this.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${g(a(this,Le))}px`,"--bits-floating-available-height":`${g(a(this,_e))}px`,"--bits-floating-anchor-width":`${g(a(this,Ie))}px`,"--bits-floating-anchor-height":`${g(a(this,Be))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...g(a(this,ve))},dir:a(this,pe).current}}));v(this,pn,F(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...g(a(this,ve))})})));v(this,bn,F(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.id=t.id,T(this,be,t.side),T(this,xe,t.sideOffset),T(this,jt,t.align),T(this,Ee,t.alignOffset),T(this,Oe,t.arrowPadding),T(this,Xt,t.avoidCollisions),T(this,Dt,t.collisionBoundary),T(this,Se,t.collisionPadding),T(this,Ae,t.sticky),T(this,Pe,t.hideWhenDetached),T(this,Ce,t.updatePositionStrategy),this.onPlaced=t.onPlaced,T(this,Te,t.strategy),T(this,pe,t.dir),this.style=t.style,this.root=n,this.enabled=t.enabled,this.wrapperId=t.wrapperId,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),D(()=>{t.customAnchor.current,j(()=>{this.root.customAnchorNode.current=t.customAnchor.current})}),Yt({id:this.wrapperId,ref:this.wrapperRef,deps:()=>this.enabled.current}),Yt({id:this.id,ref:this.contentRef,deps:()=>this.enabled.current}),this.floating=Ts({strategy:()=>a(this,Te).current,placement:()=>g(a(this,an)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var o;return vs(...r,{animationFrame:((o=a(this,Ce))==null?void 0:o.current)==="always"})},open:()=>this.enabled.current}),D(()=>{var r;this.floating.isPositioned&&((r=this.onPlaced)==null||r.current())}),D(()=>{const r=this.contentRef.current;r&&j(()=>{this.contentZIndex=window.getComputedStyle(r).zIndex})}),D(()=>{this.floating.floating.current=this.wrapperRef.current})}get hasExplicitBoundaries(){return g(a(this,un))}get detectOverflowOptions(){return g(a(this,ln))}get middleware(){return g(a(this,fn))}get placedSide(){return g(a(this,dn))}get placedAlign(){return g(a(this,hn))}get arrowX(){return g(a(this,gn))}get arrowY(){return g(a(this,mn))}get cannotCenterArrow(){return g(a(this,wn))}get contentZIndex(){return g(a(this,Ne))}set contentZIndex(t){C(a(this,Ne),R(t))}get arrowBaseSide(){return g(a(this,yn))}get wrapperProps(){return g(a(this,vn))}get props(){return g(a(this,pn))}get arrowStyle(){return g(a(this,bn))}}ve=new WeakMap,pe=new WeakMap,be=new WeakMap,xe=new WeakMap,jt=new WeakMap,Ee=new WeakMap,Oe=new WeakMap,Xt=new WeakMap,Dt=new WeakMap,Se=new WeakMap,Ae=new WeakMap,Pe=new WeakMap,Te=new WeakMap,Ce=new WeakMap,Re=new WeakMap,cn=new WeakMap,Fe=new WeakMap,an=new WeakMap,De=new WeakMap,un=new WeakMap,ln=new WeakMap,Le=new WeakMap,_e=new WeakMap,Ie=new WeakMap,Be=new WeakMap,fn=new WeakMap,dn=new WeakMap,hn=new WeakMap,gn=new WeakMap,mn=new WeakMap,wn=new WeakMap,Ne=new WeakMap,yn=new WeakMap,vn=new WeakMap,pn=new WeakMap,bn=new WeakMap;class Ds{constructor(t,n){N(this,"ref",b(null));t.virtualEl&&t.virtualEl.current?n.triggerNode=b.from(t.virtualEl.current):Yt({id:t.
5id,ref:this.ref,onRefChange:r=>{n.triggerNode.current=r}})}}const[Ls,Kr]=Tr("Floating.Root"),[_s]=Tr("Floating.Content");function Is(){return Ls(new Rs)}function Bs(e){return _s(new Fs(e,Kr()))}function Ns(e){return new Ds(e,Kr())}function Ms(e){return{name:"transformOrigin",options:e,fn(t){var p,x,E;const{placement:n,rects:r,middlewareData:i}=t,s=((p=i.arrow)==null?void 0:p.centerOffset)!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,h]=Xn(n),m={start:"0%",center:"50%",end:"100%"}[h],y=(((x=i.arrow)==null?void 0:x.x)??0)+c/2,w=(((E=i.arrow)==null?void 0:E.y)??0)+l/2;let u="",d="";return f==="bottom"?(u=s?m:`${y}px`,d=`${-l}px`):f==="top"?(u=s?m:`${y}px`,d=`${r.floating.height+l}px`):f==="right"?(u=`${-l}px`,d=s?m:`${w}px`):f==="left"&&(u=`${r.floating.width+l}px`,d=s?m:`${w}px`),{data:{x:u,y:d}}}}}function Xn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ws(e){return Xn(e)[0]}function ks(e){return Xn(e)[1]}function Cc(e,t){J(t,!0),Is();var n=X(),r=H(n);at(r,()=>t.children??ct),W(e,n),Q()}function Rc(e,t){J(t,!0),Ns({id:b.with(()=>t.id),virtualEl:b.with(()=>t.virtualEl)});var n=X(),r=H(n);at(r,()=>t.children??ct),W(e,n),Q()}var Hs=pr("<div><!></div>");function Us(e,t){J(t,!0);let n=S(t,"side",3,"bottom"),r=S(t,"sideOffset",3,0),i=S(t,"align",3,"center"),o=S(t,"alignOffset",3,0),s=S(t,"arrowPadding",3,0),c=S(t,"avoidCollisions",3,!0),l=S(t,"collisionBoundary",19,()=>[]),f=S(t,"collisionPadding",3,0),h=S(t,"hideWhenDetached",3,!1),m=S(t,"onPlaced",3,()=>{}),y=S(t,"sticky",3,"partial"),w=S(t,"updatePositionStrategy",3,"optimized"),u=S(t,"strategy",3,"fixed"),d=S(t,"dir",3,"ltr"),p=S(t,"style",19,()=>({})),x=S(t,"wrapperId",19,On),E=S(t,"customAnchor",3,null);const O=Bs({side:b.with(()=>n()),sideOffset:b.with(()=>r()),align:b.with(()=>i()),alignOffset:b.with(()=>o()),id:b.with(()=>t.id),arrowPadding:b.with(()=>s()),avoidCollisions:b.with(()=>c()),collisionBoundary:b.with(()=>l()),collisionPadding:b.with(()=>f()),hideWhenDetached:b.with(()=>h()),onPlaced:b.with(()=>m()),sticky:b.with(()=>y()),updatePositionStrategy:b.with(()=>w()),strategy:b.with(()=>u()),dir:b.with(()=>d()),style:b.with(()=>p()),enabled:b.with(()=>!1),wrapperId:b.with(()=>x()),customAnchor:b.with(()=>E())}),P=F(()=>Sr(O.wrapperProps,{style:{pointerEvents:"auto"}}));var A=Hs();let L;var I=ei(A);at(I,()=>t.content??ct,()=>({props:O.props})),ni(A),ri(()=>L=ci(A,L,{...g(P)})),W(e,A),Q()}function Vs(e,t){J(t,!0),ai(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=X(),r=H(n);at(r,()=>t.content??ct,()=>({props:{}})),W(e,n),Q()}function Ks(e,t){let n=S(t,"isStatic",3,!1),r=xn(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=X(),o=H(i);{var s=l=>{Vs(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},c=l=>{Us(l,Ke({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};Ve(o,l=>{n()?l(s):l(c,!1)})}W(e,i)}var zs=pr("<!> <!>",1);function zr(e,t){J(t,!0);let n=S(t,"interactOutsideBehavior",3,"close"),r=S(t,"trapFocus",3,!0),i=S(t,"isValidEvent",3,()=>!1),o=S(t,"customAnchor",3,null),s=S(t,"isStatic",3,!1),c=xn(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Ks(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},content:(f,h)=>{let m=()=>h==null?void 0:h().props;var y=zs(),w=H(y);{var u=E=>{fr(E,{get preventScroll(){return t.preventScroll}})},d=E=>{var O=X(),P=H(O);{var A=L=>{fr(L,{get preventScroll(){return t.preventScroll}})};Ve(P,L=>{t.forceMount||L(A)},!0)}W(E,O)};Ve(w,E=>{t.forceMount&&t.enabled?E(u):E(d,!1)})}var p=ii(w,2),x=F(()=>t.enabled&&r());Co(p,{get id(){return t.id},get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get trapFocus(){return g(x)},get forceMount(){return t.forceMount},focusScope:(O,P)=>{let A=()=>P==null?void 0:P().props;
5vo(O,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},children:(L,I)=>{go(L,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},children:(K,M)=>{let tt=()=>M==null?void 0:M().props;_o(K,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},children:(z,lt)=>{var B=X(),mt=H(B),Y=oi(()=>({props:Sr(c,m(),tt(),A(),{style:{pointerEvents:"auto"}})}));at(mt,()=>t.popper??ct,()=>g(Y)),W(z,B)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(f,y)},$$slots:{content:!0}}),Q()}function Fc(e,t){let n=S(t,"interactOutsideBehavior",3,"close"),r=S(t,"trapFocus",3,!0),i=S(t,"isValidEvent",3,()=>!1),o=S(t,"customAnchor",3,null),s=S(t,"isStatic",3,!1),c=xn(t,["$$slots","$$events","$$legacy","popper","present","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic"]);co(e,Ke({get id(){return t.id},get present(){return t.present}},()=>c,{presence:(f,h)=>{let m=()=>h==null?void 0:h().present;zr(f,Ke({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get isStatic(){return s()},get enabled(){return m().current},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1},()=>c))},$$slots:{presence:!0}}))}function Dc(e,t){let n=S(t,"interactOutsideBehavior",3,"close"),r=S(t,"trapFocus",3,!0),i=S(t,"isValidEvent",3,()=>!1),o=S(t,"customAnchor",3,null),s=S(t,"isStatic",3,!1),c=xn(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);zr(e,Ke({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}}
5,()=>c,{forceMount:!0}))}export{Ar as $,hc as A,vc as B,yc as C,Oo as D,mc as E,Rc as F,En as G,wc as H,Sc as I,oc as J,$s as K,Co as L,vo as M,go as N,_o as O,Dc as P,fr as Q,nc as R,pc as S,Xi as T,ic as U,Mn as V,Vi as W,sc as X,io as Y,uc as Z,ac as _,Pr as a,Oc as a0,bc as a1,Ec as a2,xc as a3,cc as a4,rc as a5,b,Tr as c,tc as d,On as e,Fc as f,Qs as g,Tc as h,eo as i,Cc as j,It as k,it as l,Sr as m,U as n,Gi as o,ze as p,zi as q,Ac as r,ec as s,dc as t,Yt as u,fc as v,lc as w,gc as x,Pc as y,co as z};
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.