PageSourceSearch

https://www.olis.is/_next/static/chunks/350-7cdc962dc04ac3d0.js

js olis.is collected 2026-10-02 10:40:13 UTC 90,514 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[350],{8143:function(e,t,n){n.d(t,{x7:function(){return A},Me:function(){return L},oo:function(){return M},US:function(){return R},RR:function(){return C},cv:function(){return P},uY:function(){return F},dp:function(){return k}});var r=n(47848);function o(e,t,n){let o,{reference:i,floating:l}=e,u=(0,r.Qq)(t),a=(0,r.Wh)(t),s=(0,r.I4)(a),c=(0,r.k3)(t),f="y"===u,d=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,v=i[s]/2-l[s]/2;switch(c){case"top":o={x:d,y:i.y-l.height};break;case"bottom":o={x:d,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[a]-=v*(n&&f?-1:1);break;case"end":o[a]+=v*(n&&f?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,a=l.filter(Boolean),s=await (null==u.isRTL?void 0:u.isRTL(t)),c=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=o(c,r,s),p=r,v={},m=0;for(let n=0;n<a.length;n++){let{name:l,fn:h}=a[n],{x:g,y:b,data:y,reset:E}=await h({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:c,platform:u,elements:{reference:e,floating:t}});f=null!=g?g:f,d=null!=b?b:d,v={...v,[l]:{...v[l],...y}},E&&m<=50&&(m++,"object"==typeof E&&(E.placement&&(p=E.placement),E.rects&&(c=!0===E.rects?await u.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:d}=o(c,p,s)),n=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:v}};async function l(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:u,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=(0,r.ku)(t,e),m=(0,r.yd)(v),h=a[p?"floating"===d?"reference":"floating":d],g=(0,r.JB)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(h)))||n?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),b="floating"===d?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),E=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},x=(0,r.JB)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:s}):b);return{top:(g.top-x.top+m.top)/E.y,bottom:(x.bottom-g.bottom+m.bottom)/E.y,left:(g.left-x.left+m.left)/E.x,right:(x.right-g.right+m.right)/E.x}}let u=new Set(["left","top"]);async function a(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),a=(0,r.k3)(n),s=(0,r.hp)(n),c="y"===(0,r.Qq)(n),f=u.has(a)?-1:1,d=l&&c?-1:1,p=(0,r.ku)(t,e),{mainAxis:v,crossAxis:m,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof h&&(m="end"===s?-1*h:h),c?{x:m*d,y:v*f}:{x:v*f,y:m*d}}var s=n(75224);function c(e){let t=(0,s.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,s.Re)(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:o,a=(0,r.NM)(n)!==l||(0,r.NM)(o)!==u;return a&&(n=l,o=u),{width:n,height:o,$:a}}function f(e){return(0,s.kK)(e)?e:e.contextElement}function d(e){let t=f(e);
1if(!(0,s.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=c(t),u=(l?(0,r.NM)(n.width):n.width)/o,a=(l?(0,r.NM)(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}let p=(0,r.ze)(0);function v(e){let t=(0,s.Jj)(e);return(0,s.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function m(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),u=f(e),a=(0,r.ze)(1);t&&(o?(0,s.kK)(o)&&(a=d(o)):a=d(e));let c=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,s.Jj)(u))&&i)?v(u):(0,r.ze)(0),p=(l.left+c.x)/a.x,m=(l.top+c.y)/a.y,h=l.width/a.x,g=l.height/a.y;if(u){let e=(0,s.Jj)(u),t=o&&(0,s.kK)(o)?(0,s.Jj)(o):o,n=e,r=(0,s.wK)(n);for(;r&&o&&t!==n;){let e=d(r),t=r.getBoundingClientRect(),o=(0,s.Dx)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;p*=e.x,m*=e.y,h*=e.x,g*=e.y,p+=i,m+=l,n=(0,s.Jj)(r),r=(0,s.wK)(n)}}return(0,r.JB)({width:h,height:g,x:p,y:m})}function h(e,t){let n=(0,s.Lw)(e).scrollLeft;return t?t.left+n:m((0,s.tF)(e)).left+n}function g(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:h(e,r)),y:r.top+t.scrollTop}}let b=new Set(["absolute","fixed"]);function y(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,s.Jj)(e),r=(0,s.tF)(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,u=0,a=0;if(o){i=o.width,l=o.height;let e=(0,s.Pf)();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:u,y:a}}(e,n);else if("document"===t)o=function(e){let t=(0,s.tF)(e),n=(0,s.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+h(e),a=-n.scrollTop;return"rtl"===(0,s.Dx)(o).direction&&(u+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:u,y:a}}((0,s.tF)(e));else if((0,s.kK)(t))o=function(e,t){let n=m(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,s.Re)(e)?d(e):(0,r.ze)(1),u=e.clientWidth*l.x;return{width:u,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=v(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.JB)(o)}function E(e){return"static"===(0,s.Dx)(e).position}function x(e,t){if(!(0,s.Re)(e)||"fixed"===(0,s.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,s.tF)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){let n=(0,s.Jj)(e);if((0,s.tR)(e))return n;if(!(0,s.Re)(e)){let t=(0,s.Ow)(e);for(;t&&!(0,s.Py)(t);){if((0,s.kK)(t)&&!E(t))return t;t=(0,s.Ow)(t)}return n}let r=x(e,t);for(;r&&(0,s.Ze)(r)&&E(r);)r=x(r,t);return r&&(0,s.Py)(r)&&E(r)&&!(0,s.hT)(r)?n:r||(0,s.gQ)(e)||n}let S=async function(e){let t=this.getOffsetParent||w,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,s.Re)(t),i=(0,s.tF)(t),l="fixed"===n,u=m(e,!0,l,t),a={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,s.wk)(t)||(0,s.ao)(i))&&(a=(0,s.Lw)(t)),o){let e=m(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=h(i))}l&&!o&&i&&(c.x=h(i));let f=!i||o||l?(0,r.ze)(0):g(i,a);return{x:u.left+a.scrollLeft-c.x-f.x,y:u.top+a.scrollTop-c.y-f.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},T={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,u=(0,s.tF)(o),a=!!t&&(0,s.tR)(t.floating);if(o===u||a&&l)return n;let c={scrollLeft:0,scrollTop:0},f=(0,r.ze)(1),p=(0,r.ze)(0),v=(0,s.Re)(o);if((v||!v&&!l)&&(("body"!==(0,s.wk)(o)||(0,s.ao)(u))&&(c=(0,s.Lw)(o)),(0,s.Re)(o))){let e=m(o);f=d(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}let h=!u||v||l?(0,r.ze)(0):g(u,c,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+p.x+h.x,y:n.y*f.y-c.scrollTop*f.y+p.y+h.y}},getDocumentElement:s.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,s.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,s.Kx)(e,[],!1).filter(e=>(0,s.kK)(e)&&"body"!==(0,s.wk)(e)),o=null,i="fixed"===(0,s.Dx)(e).position,l=i?(0,s.Ow)(e):e;for(;(0,s.kK)(l)&&!(0,s.Py)(l);){let t=(0,s.Dx)(l),n=(0,s.hT)(l);
1n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&b.has(o.position)||(0,s.ao)(l)&&!n&&function e(t,n){let r=(0,s.Ow)(t);return!(r===n||!(0,s.kK)(r)||(0,s.Py)(r))&&("fixed"===(0,s.Dx)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,s.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=l[0],a=l.reduce((e,n)=>{let o=y(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},y(t,u,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:w,getElementRects:S,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:d,isElement:s.kK,isRTL:function(e){return"rtl"===(0,s.Dx)(e).direction}};function O(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function L(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=f(e),v=l||u?[...p?(0,s.Kx)(p):[],...(0,s.Kx)(t)]:[];v.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h=p&&c?function(e,t){let n,o=null,i=(0,s.tF)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),l();let c=e.getBoundingClientRect(),{left:f,top:d,width:p,height:v}=c;if(a||t(),!p||!v)return;let m=(0,r.GW)(d),h=(0,r.GW)(i.clientWidth-(f+p)),g={rootMargin:-m+"px "+-h+"px "+-(0,r.GW)(i.clientHeight-(d+v))+"px "+-(0,r.GW)(f)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,s))||1},b=!0;function y(t){let r=t[0].intersectionRatio;if(r!==s){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||O(c,e.getBoundingClientRect())||u(),b=!1}try{o=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,g)}o.observe(e)}(!0),l}(p,n):null,g=-1,b=null;a&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!d&&b.observe(p),b.observe(t));let y=d?m(e):null;return d&&function t(){let r=m(e);y&&!O(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;v.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=b)||e.disconnect(),b=null,d&&cancelAnimationFrame(i)}}let R=l,P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=t,s=await a(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},F=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),f={x:n,y:o},d=await l(t,c),p=(0,r.Qq)((0,r.k3)(i)),v=(0,r.Rn)(p),m=f[v],h=f[p];if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=m+d[e],o=m-d[t];m=(0,r.uZ)(n,m,o)}
1if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+d[e],o=h-d[t];h=(0,r.uZ)(n,h,o)}let g=s.fn({...t,[v]:m,[p]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[v]:u,[p]:a}}}}}},C=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,u,a;let{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:p,elements:v}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:E=!0,...x}=(0,r.ku)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let w=(0,r.k3)(s),S=(0,r.Qq)(d),T=(0,r.k3)(d)===d,O=await (null==p.isRTL?void 0:p.isRTL(v.floating)),L=g||(T||!E?[(0,r.pw)(d)]:(0,r.gy)(d)),R="none"!==y;!g&&R&&L.push(...(0,r.KX)(d,E,y,O));let P=[d,...L],F=await l(t,x),C=[],k=(null==(o=c.flip)?void 0:o.overflows)||[];if(m&&C.push(F[w]),h){let e=(0,r.i8)(s,f,O);C.push(F[e[0]],F[e[1]])}if(k=[...k,{placement:s,overflows:C}],!C.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=P[e];if(t&&(!("alignment"===h&&S!==(0,r.Qq)(t))||k.every(e=>e.overflows[0]>0&&(0,r.Qq)(e.placement)===S)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(u=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:u.placement;if(!n)switch(b){case"bestFit":{let e=null==(a=k.filter(e=>{if(R){let t=(0,r.Qq)(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=d}if(s!==n)return{reset:{placement:n}}}return{}}}},k=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,u;let{placement:a,rects:s,platform:c,elements:f}=t,{apply:d=()=>{},...p}=(0,r.ku)(e,t),v=await l(t,p),m=(0,r.k3)(a),h=(0,r.hp)(a),g="y"===(0,r.Qq)(a),{width:b,height:y}=s.floating;"top"===m||"bottom"===m?(i=m,u=h===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(u=m,i="end"===h?"top":"bottom");let E=y-v.top-v.bottom,x=b-v.left-v.right,w=(0,r.VV)(y-v[i],E),S=(0,r.VV)(b-v[u],x),T=!t.middlewareData.shift,O=w,L=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(L=x),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(O=E),T&&!h){let e=(0,r.Fp)(v.left,0),t=(0,r.Fp)(v.right,0),n=(0,r.Fp)(v.top,0),o=(0,r.Fp)(v.bottom,0);g?L=b-2*(0!==e||0!==t?e+t:(0,r.Fp)(v.left,v.right)):O=y-2*(0!==n||0!==o?n+o:(0,r.Fp)(v.top,v.bottom))}await d({...t,availableWidth:L,availableHeight:O});let R=await c.getDimensions(f.floating);return b!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}},A=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:l,platform:u,elements:a,middlewareData:s}=t,{element:c,padding:f=0}=(0,r.ku)(e,t)||{};if(null==c)return{};let d=(0,r.yd)(f),p={x:n,y:o},v=(0,r.Wh)(i),m=(0,r.I4)(v),h=await u.getDimensions(c),g="y"===v,b=g?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[v]-p[v]-l.floating[m],E=p[v]-l.reference[v],x=await (null==u.getOffsetParent?void 0:u.getOffsetParent(c)),w=x?x[b]:0;w&&await (null==u.isElement?void 0:u.isElement(x))||(w=a.floating[b]||l.floating[m]);let S=w/2-h[m]/2-1,T=(0,r.VV)(d[g?"top":"left"],S),O=(0,r.VV)(d[g?"bottom":"right"],S),L=w-h[m]-O,R=w/2-h[m]/2+(y/2-E/2),P=(0,r.uZ)(T,R,L),F=!s.arrow&&null!=(0,r.hp)(i)&&R!==P&&l.reference[m]/2-(R<T?T:O)-h[m]/2<0,C=F?R<T?R-T:R-L:0;return{[v]:p[v]+C,data:{[v]:P,centerOffset:R-P-C,...F&&{alignmentOffset:C}},reset:F}}}),M=(e,t,n)=>{let r=new Map,o={platform:T,...n},l={...o.platform,_c:r};return i(e,t,{...o,platform:l})}},94674:function(e,t,n){n.d(t,{RR:function(){return m},YF:function(){return f},cv:function(){return p},dp:function(){return h},uY:function(){return v},x7:function(){return g}});var r=n(8143),o=n(2265),i=n(54887),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function u(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function a(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=a(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:v}={},transform:m=!0,whileElementsMounted:h,open:g}=e,[b,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}
1),[E,x]=o.useState(f);u(E,f)||x(f);let[w,S]=o.useState(null),[T,O]=o.useState(null),L=o.useCallback(e=>{e!==C.current&&(C.current=e,S(e))},[]),R=o.useCallback(e=>{e!==k.current&&(k.current=e,O(e))},[]),P=p||w,F=v||T,C=o.useRef(null),k=o.useRef(null),A=o.useRef(b),M=null!=h,D=c(h),I=c(d),N=c(g),H=o.useCallback(()=>{if(!C.current||!k.current)return;let e={placement:t,strategy:n,middleware:E};I.current&&(e.platform=I.current),(0,r.oo)(C.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==N.current};V.current&&!u(A.current,t)&&(A.current=t,i.flushSync(()=>{y(t)}))})},[E,t,n,I,N]);l(()=>{!1===g&&A.current.isPositioned&&(A.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let V=o.useRef(!1);l(()=>(V.current=!0,()=>{V.current=!1}),[]),l(()=>{if(P&&(C.current=P),F&&(k.current=F),P&&F){if(D.current)return D.current(P,F,H);H()}},[P,F,H,D,M]);let z=o.useMemo(()=>({reference:C,floating:k,setReference:L,setFloating:R}),[L,R]),j=o.useMemo(()=>({reference:P,floating:F}),[P,F]),B=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=s(j.floating,b.x),r=s(j.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...a(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,j.floating,b.x,b.y]);return o.useMemo(()=>({...b,update:H,refs:z,elements:j,floatingStyles:B}),[b,H,z,j,B])}let d=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),v=(e,t)=>
1({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),h=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),g=(e,t)=>({...d(e),options:[e,t]})},40600:function(e,t,n){n.d(t,{ij:function(){return r}});function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}},75224:function(e,t,n){function r(){return"undefined"!=typeof window}function o(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function a(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function c(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{Dx:function(){return O},Jj:function(){return i},Kx:function(){return function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=R(t);return T(n)?t.ownerDocument?t.ownerDocument.body:t.body:s(n)&&d(n)?n:e(n)}(t),u=l===(null==(o=t.ownerDocument)?void 0:o.body),a=i(l);if(u){let t=P(a);return n.concat(a,a.visualViewport||[],d(l)?l:[],t&&r?e(t):[])}return n.concat(l,e(l,[],r))}},Lw:function(){return L},Ow:function(){return R},Pf:function(){return w},Py:function(){return T},Re:function(){return s},Ze:function(){return v},ao:function(){return d},gQ:function(){return x},hT:function(){return E}
1,kK:function(){return a},tF:function(){return l},tR:function(){return h},wK:function(){return P},wk:function(){return o}});let f=new Set(["inline","contents"]);function d(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!f.has(o)}let p=new Set(["table","td","th"]);function v(e){return p.has(o(e))}let m=[":popover-open",":modal"];function h(e){return m.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let g=["transform","translate","scale","rotate","perspective"],b=["transform","translate","scale","rotate","perspective","filter"],y=["paint","layout","strict","content"];function E(e){let t=w(),n=a(e)?O(e):e;return g.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||b.some(e=>(n.willChange||"").includes(e))||y.some(e=>(n.contain||"").includes(e))}function x(e){let t=R(e);for(;s(t)&&!T(t);){if(E(t))return t;if(h(t))break;t=R(t)}return null}function w(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let S=new Set(["html","body","#document"]);function T(e){return S.has(o(e))}function O(e){return i(e).getComputedStyle(e)}function L(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||l(e);return c(t)?t.host:t}function P(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},47848:function(e,t,n){n.d(t,{Fp:function(){return o},GW:function(){return l},I4:function(){return m},JB:function(){return F},KX:function(){return L},NM:function(){return i},Qq:function(){return g},Rn:function(){return v},VV:function(){return r},Wh:function(){return b},gy:function(){return E},hp:function(){return p},i8:function(){return y},k3:function(){return d},ku:function(){return f},pw:function(){return R},uZ:function(){return c},yd:function(){return P},ze:function(){return u}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,u=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}let h=new Set(["top","bottom"]);function g(e){return h.has(d(e))?"y":"x"}function b(e){return v(g(e))}function y(e,t,n){void 0===n&&(n=!1);let r=p(e),o=b(e),i=m(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=R(l)),[l,R(l)]}function E(e){let t=R(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,e=>s[e])}let w=["left","right"],S=["right","left"],T=["top","bottom"],O=["bottom","top"];function L(e,t,n,r){let o=p(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:w;return t?w:S;case"left":case"right":return t?T:O;default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(x)))),i}function R(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function P(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function F(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},83184:function(e,t,n){n.d(t,{dk:function(){return d},fw:function(){return f},zH:function(){return c}});var r=n(2265),o=n(6584),i=n(61463),l=n(41469),u=n(83040),a=n(3600);let s=(0,r.createContext)(null);function c(){var e,t;return null!=(t=null==(e=(0,r.useContext)(s))?void 0:e.value)?t:void 0}function f(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),i=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(s.Provider,{value:i},e.children)},[t])]}s.displayName="DescriptionContext";let d=Object.assign((0,a.yV)(function(e,t){let n=(0,r.useId)(),o=(0,u.B)(),{id:c="headlessui-description-".concat(n),...f}=e,d=function e(){let t=(0,r.useContext)(s);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,l.T)(t);(0,i.e)(()=>d.register(c),[c,d.register]);let v=o||!1,m=(0,r.useMemo)(()=>({...d.slot,disabled:v}),[d.slot,v]),h={ref:p,...d.props,id:c};return(0,a.L6)()({ourProps:h,theirProps:f,slot:m,defaultTag:"p",name:d.name||"Description"})}),{})},7551:function(e,t,n){let r;n.d(t,{R:function(){return o}});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},43003:function(e,t,n){n.d(t,{__:function(){return p},bE:function(){return d},wp:function(){return f}});var r=n(2265),o=n(6584),i=n(61463),l=n(41469),u=n(83040),a=n(21495),s=n(3600);let c=(0,r.createContext)(null);function f(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(c))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>
10?[i,...e].filter(Boolean).join(" "):i}function d(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f(),[n,i]=(0,r.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o.z)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:n},e.children)},[i])]}c.displayName="LabelContext";let p=Object.assign((0,s.yV)(function(e,t){var n;let f=(0,r.useId)(),d=function e(){let t=(0,r.useContext)(c);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,a.Q)(),v=(0,u.B)(),{id:m="headlessui-label-".concat(f),htmlFor:h=null!=p?p:null==(n=d.props)?void 0:n.htmlFor,passive:g=!1,...b}=e,y=(0,l.T)(t);(0,i.e)(()=>d.register(m),[m,d.register]);let E=(0,o.z)(e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),d.props&&"onClick"in d.props&&"function"==typeof d.props.onClick&&d.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),x=v||!1,w=(0,r.useMemo)(()=>({...d.slot,disabled:x}),[d.slot,x]),S={ref:y,...d.props,id:m,htmlFor:h,onClick:E};return g&&("onClick"in S&&(delete S.htmlFor,delete S.onClick),"onClick"in b&&delete b.onClick),(0,s.L6)()({ourProps:S,theirProps:b,slot:w,defaultTag:h?"label":"div",name:d.name||"Label"})}),{})},55956:function(e,t,n){let r,o,i,l,u;n.d(t,{Ri:function(){return eS},Y4:function(){return ey},wt:function(){return ew},O_:function(){return ex}});var a=n(96117),s=n(83892),c=n(2265),f=n(54887),d=n(54079);function p(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}var v=n(6584),m=n(61463),h=n(99299),g=n(64524),b=n(88703),y=n(58371),E=n(39110),x=n(62707),w=n(75180),S=n(74515),T=n(41469);let O=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function L(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let l=i?null!=(n=o.innerText)?n:"":r;return O.test(l)&&(l=l.replace(O,"")),l}function R(e){return[e.screenX,e.screenY]}var P=n(79072),F=n(83040),C=n(50913),k=n(94674),A=n(8143);let M=(0,c.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});M.displayName="FloatingContext";let D=(0,c.createContext)(null);function I(e){var t,n,r;let o,i,l,{children:u,enabled:a=!0}=e,[s,f]=(0,c.useState)(null),[d,p]=(0,c.useState)(0),h=(0,c.useRef)(null),[g,b]=(0,c.useState)(null);(0,m.e)(()=>{if(!g)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(g).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(g.style.maxHeight="".concat(Math.ceil(t),"px"))});return e.observe(g,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[g]);let y=a&&null!==s&&null!==g,{to:E="bottom",gap:x=0,offset:w=0,padding:S=0,inner:T}=(o=N(null!=(t=null==s?void 0:s.gap)?t:"var(--anchor-gap, 0)",g),i=N(null!=(n=null==s?void 0:s.offset)?n:"var(--anchor-offset, 0)",g),l=N(null!=(r=null==s?void 0:s.padding)?r:"var(--anchor-padding, 0)",g),{...s,gap:o,offset:i,padding:l}),[O,L="center"]=E.split(" ");(0,m.e)(()=>{y&&p(0)},[y]);let{refs:R,floatingStyles:P,context:F}=(0,C.YF)({open:y,placement:"selection"===O?"center"===L?"bottom":"bottom-".concat(L):"center"===L?"".concat(O):"".concat(O,"-").concat(L),strategy:"absolute",transform:!1,middleware:[(0,k.cv)({mainAxis:"selection"===O?0:x,crossAxis:w}),(0,k.uY)({padding:S}),"selection"!==O&&(0,k.RR)({padding:S}),"selection"===O&&T?(0,C.aN)({...T,padding:S,overflowRef:h,offset:d,minItemsVisible:4,referenceOverflowThreshold:S,onFallbackChange(e){var t,n;if(!e)return;let r=F.elements.floating;if(!r)return;
1let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,u=0;for(let e of null!=(n=null==(t=F.elements.floating)?void 0:t.childNodes)?n:[])if(e instanceof HTMLElement){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,s=a+r.clientHeight;if(t>=a&&n<=s)i--;else{u=Math.max(0,Math.min(n,s)-Math.max(t,a)),l=e.clientHeight;break}}i>=1&&p(e=>{let t=l*i-u+o;return e>=t?e:t})}}):null,(0,k.dp)({padding:S,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:A.Me}),[I=O,H=L]=F.placement.split("-");"selection"===O&&(I="selection");let V=(0,c.useMemo)(()=>({anchor:[I,H].filter(Boolean).join(" ")}),[I,H]),z=(0,C.Rz)(F,{overflowRef:h,onChange:p}),{getReferenceProps:j,getFloatingProps:B}=(0,C.NI)([z]),_=(0,v.z)(e=>{b(e),R.setFloating(e)});return c.createElement(D.Provider,{value:f},c.createElement(M.Provider,{value:{setFloating:_,setReference:R.setReference,styles:P,getReferenceProps:j,getFloatingProps:B,slot:V}},u))}function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,h.G)(),o=(0,v.z)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=H(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function u(){r.nextFrame(u);let a=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,a=!0;break}}if(!a)return;let s=H(e,t);o!==s&&(n(s),o=s)})}return r.dispose}]}return[n,null]}),i=(0,c.useMemo)(()=>o(e,t)[0],[e,t]),[l=i,u]=(0,c.useState)();return(0,m.e)(()=>{let[n,r]=o(e,t);if(u(n),r)return r(u)},[e,t]),l}function H(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function V(e,t){return e?e+"["+t+"]":t}D.displayName="PlacementContext";var z=n(3600),j=n(89080);let B=(0,c.createContext)(null);function _(e){let{children:t}=e,n=(0,c.useContext)(B);if(!n)return c.createElement(c.Fragment,null,t);let{target:r}=n;return r?(0,f.createPortal)(c.createElement(c.Fragment,null,t),r):null}function W(e){let{data:t,form:n,disabled:r,onReset:o,overrides:i}=e,[l,u]=(0,c.useState)(null),a=(0,h.G)();return(0,c.useEffect)(()=>{if(o&&l)return a.addEventListener(l,"reset",o)},[l,n,o]),c.createElement(_,null,c.createElement(K,{setForm:u,formId:n}),(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,i]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,i]of o.entries())t(n,V(r,e.toString()),i);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):e(o,r,n)}(r,V(n,o),i);return r})(t).map(e=>{let[t,o]=e;return c.createElement(j._,{features:j.x.Hidden,...(0,z.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:o,...i})})}))}function K(e){let{setForm:t,formId:n}=e;return(0,c.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}}
vendor: 4,756 bytes, line 1
1,[t,n]),n?null:c.createElement(j._,{features:j.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}var U=n(21495),q=n(53509),G=((r=G||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function Y(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}var Q=n(70777),J=n(19309),X=n(5583),Z=n(91498),$=n(83184),ee=n(7551),et=n(43003),en=n(22934),er=((o=er||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),eo=((i=eo||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),ei=((l=ei||{})[l.Pointer=0]="Pointer",l[l.Other=1]="Other",l),el=((u=el||{})[u.OpenListbox=0]="OpenListbox",u[u.CloseListbox=1]="CloseListbox",u[u.GoToOption=2]="GoToOption",u[u.Search=3]="Search",u[u.ClearSearch=4]="ClearSearch",u[u.RegisterOption=5]="RegisterOption",u[u.UnregisterOption=6]="UnregisterOption",u[u.SetButtonElement=7]="SetButtonElement",u[u.SetOptionsElement=8]="SetOptionsElement",u);function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,J.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let ea={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let u={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===G.Nothing)return{...u,activeOptionIndex:null};if(t.focus===G.Specific)return{...u,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===G.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=Y(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...u,activeOptionIndex:l}}}}else if(t.focus===G.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=Y(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...u,activeOptionIndex:o}}}}let a=eu(e),s=Y(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...u,...a,activeOptionIndex:s}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=eu(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=eu(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>
1e.optionsElement===t.element?e:{...e,optionsElement:t.element}},es=(0,c.createContext)(null);function ec(e){let t=(0,c.useContext)(es);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ec),t}return t}es.displayName="ListboxActionsContext";let ef=(0,c.createContext)(null);function ed(e){let t=(0,c.useContext)(ef);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ed),t}return t}function ep(e,t){return(0,X.E)(t.type,ea,e,t)}ef.displayName="ListboxDataContext";let ev=c.Fragment,em=(0,c.createContext)(!1),eh=z.VN.RenderStrategy|z.VN.Static,eg=c.Fragment,eb=(0,z.yV)(function(e,t){var n;let r=(0,F.B)(),{value:o,defaultValue:i,form:l,name:u,onChange:a,by:s,invalid:f=!1,disabled:d=r||!1,horizontal:g=!1,multiple:b=!1,__demoMode:y=!1,...x}=e,w=g?"horizontal":"vertical",S=(0,T.T)(t),O=function(e){let[t]=(0,c.useState)(e);return t}(i),[L=b?[]:void 0,R]=function(e,t,n){let[r,o]=(0,c.useState)(n),i=void 0!==e,l=(0,c.useRef)(i),u=(0,c.useRef)(!1),a=(0,c.useRef)(!1);return!i||l.current||u.current?i||!l.current||a.current||(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(u.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,(0,v.z)(e=>(i||o(e),null==t?void 0:t(e)))]}(o,a,O),[P,C]=(0,c.useReducer)(ep,{dataRef:(0,c.createRef)(),listboxState:y?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:y}),k=(0,c.useRef)({static:!1,hold:!1}),A=(0,c.useRef)(new Map),M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return(0,c.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(s),D=(0,c.useCallback)(e=>(0,X.E)(N.mode,{1:()=>L.some(t=>M(t,e)),0:()=>M(L,e)}),[L]),N=(0,c.useMemo)(()=>({...P,value:L,disabled:d,invalid:f,mode:b?1:0,orientation:w,compare:M,isSelected:D,optionsPropsRef:k,listRef:A}),[L,d,f,b,P,A]);(0,m.e)(()=>{P.dataRef.current=N},[N]);let H=0===N.listboxState;(0,E.O)(H,[N.buttonElement,N.optionsElement],(e,t)=>{var n;C({type:1}),(0,J.sP)(t,J.tJ.Loose)||(e.preventDefault(),null==(n=N.buttonElement)||n.focus())});let V=(0,c.useMemo)(()=>({open:0===N.listboxState,disabled:d,invalid:f,value:L}),[N,d,L,f]),j=(0,v.z)(e=>{let t=N.options.find(t=>t.id===e);t&&Z(t.dataRef.current.value)}),B=(0,v.z)(()=>{if(null!==N.activeOptionIndex){let{dataRef:e,id:t}=N.options[N.activeOptionIndex];Z(e.current.value),C({type:2,focus:G.Specific,id:t})}}),_=(0,v.z)(()=>C({type:0})),K=(0,v.z)(()=>C({type:1})),U=(0,h.G)(),Y=(0,v.z)((e,t,n)=>{U.dispose(),U.microTask(()=>e===G.Specific?C({type:2,focus:G.Specific,id:t,trigger:n}):C({type:2,focus:e,trigger:n}))}),Q=(0,v.z)((e,t)=>(C({type:5,id:e,dataRef:t}),()=>C({type:6,id:e}))),Z=(0,v.z)(e=>(0,X.E)(N.mode,{0:()=>null==R?void 0:R(e),1(){let t=N.value.slice(),n=t.findIndex(t=>M(t,e));return -1===n?t.push(e):t.splice(n,1),null==R?void 0:R(t)}})),$=(0,v.z)(e=>C({type:3,value:e})),ee=(0,v.z)(()=>C({type:4})),en=(0,v.z)(e=>{C({type:7,element:e})}),er=(0,v.z)(e=>{C({type:8,element:e})}),eo=(0,c.useMemo)(()=>({onChange:Z,registerOption:Q,goToOption:Y,closeListbox:K,openListbox:_,selectActiveOption:B,selectOption:j,search:$,clearSearch:ee,setButtonElement:en,setOptionsElement:er}),[]),[ei,el]=(0,et.bE)({inherit:!0}),eu=(0,c.useCallback)(()=>{if(void 0!==O)return null==R?void 0:R(O)},[R,O]),ea=(0,z.L6)();return c.createElement(el,{value:ei,props:{htmlFor:null==(n=N.buttonElement)?void 0:n.id},slot:{open:0===N.listboxState,disabled:d}},c.createElement(I,null,c.createElement(es.Provider,{value:eo},c.createElement(ef.Provider,{value:N},c.createElement(q.up,{value:(0,X.E)(N.listboxState,{0:q.ZM.Open,1:q.ZM.
1Closed})},null!=u&&null!=L&&c.createElement(W,{disabled:d,data:{[u]:L},form:l,onReset:eu}),ea({ourProps:{ref:S},theirProps:x,slot:V,defaultTag:ev,name:"Listbox"}))))))}),ey=(0,z.yV)(function(e,t){var n;let r=ed("Listbox.Button"),o=ec("Listbox.Button"),i=(0,c.useId)(),l=(0,U.Q)(),{id:u=l||"headlessui-listbox-button-".concat(i),disabled:p=r.disabled||!1,autoFocus:m=!1,...h}=e,g=(0,T.T)(t,(0,c.useContext)(M).setReference,o.setButtonElement),b=(0,c.useContext)(M).getReferenceProps,y=(0,v.z)(e=>{switch(e.key){case ee.R.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case ee.R.Space:case ee.R.ArrowDown:e.preventDefault(),(0,f.flushSync)(()=>o.openListbox()),r.value||o.goToOption(G.First);break;case ee.R.ArrowUp:e.preventDefault(),(0,f.flushSync)(()=>o.openListbox()),r.value||o.goToOption(G.Last)}}),E=(0,v.z)(e=>{e.key===ee.R.Space&&e.preventDefault()}),x=(0,v.z)(e=>{var t;if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.listboxState?((0,f.flushSync)(()=>o.closeListbox()),null==(t=r.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),o.openListbox())}),S=(0,v.z)(e=>e.preventDefault()),O=(0,et.wp)([u]),L=(0,$.zH)(),{isFocusVisible:R,focusProps:P}=(0,a.F)({autoFocus:m}),{isHovered:F,hoverProps:C}=(0,s.X)({isDisabled:p}),{pressed:k,pressProps:A}=(0,d.x)({disabled:p}),D=(0,c.useMemo)(()=>({open:0===r.listboxState,active:k||0===r.listboxState,disabled:p,invalid:r.invalid,value:r.value,hover:F,focus:R,autofocus:m}),[r.listboxState,r.value,p,F,R,k,r.invalid,m]),I=(0,z.dG)(b(),{ref:g,id:u,type:(0,w.f)(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.listboxState,"aria-labelledby":O,"aria-describedby":L,disabled:p||void 0,autoFocus:m,onKeyDown:y,onKeyUp:E,onKeyPress:S,onClick:x},P,C,A);return(0,z.L6)()({ourProps:I,theirProps:h,slot:D,defaultTag:"button",name:"Listbox.Button"})}),eE=et.__,ex=(0,z.yV)(function(e,t){var n,r;let o=(0,c.useId)(),{id:i="headlessui-listbox-options-".concat(o),anchor:l,portal:u=!1,modal:a=!0,transition:s=!1,...d}=e,p=(0,c.useMemo)(()=>l?"string"==typeof l?{to:l}:l:null,[l]),[b,E]=(0,c.useState)(null);p&&(u=!0);let w=ed("Listbox.Options"),O=ec("Listbox.Options"),L=(0,x.i)(w.optionsElement),R=(0,q.oJ)(),[F,C]=(0,P.Y)(s,b,null!==R?(R&q.ZM.Open)===q.ZM.Open:0===w.listboxState);(0,y.m)(F,w.buttonElement,O.closeListbox);let k=!w.__demoMode&&a&&0===w.listboxState;(0,S.P)(k,L);let A=!w.__demoMode&&a&&0===w.listboxState;(0,g.s)(A,{allowed:(0,c.useCallback)(()=>[w.buttonElement,w.optionsElement],[w.buttonElement,w.optionsElement])});let I=!function(e,t){let n=(0,c.useRef)({left:0,top:0});if((0,m.e)(()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)},[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==w.listboxState,w.buttonElement)&&F,N=function(e,t){let[n,r]=(0,c.useState)(t);return e||n===t||r(t),e?n:t}(F&&1===w.listboxState,w.value),H=(0,v.z)(e=>w.compare(N,e)),V=(0,c.useMemo)(()=>{var e;if(null==p||!(null!=(e=null==p?void 0:p.to)&&e.includes("selection")))return null;let t=w.options.findIndex(e=>H(e.dataRef.current.value));return -1===t&&(t=0),t},[p,w.options]),[j,B]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,c.useContext)(D),n=(0,c.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,m.e)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,c.useContext)(M);return(0,c.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}((()=>
1{if(null==p)return;if(null===V)return{...p,inner:void 0};let e=Array.from(w.listRef.current.values());return{...p,inner:{listRef:{current:e},index:V}}})()),_=function(){let{getFloatingProps:e,slot:t}=(0,c.useContext)(M);return(0,c.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object.assign({},e(...r),{"data-anchor":t.anchor})},[e,t])}(),W=(0,T.T)(t,p?j:null,O.setOptionsElement,E),K=(0,h.G)();(0,c.useEffect)(()=>{var e;let t=w.optionsElement;t&&0===w.listboxState&&t!==(null==(e=(0,Z.r)(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))},[w.listboxState,w.optionsElement]);let U=(0,v.z)(e=>{var t,n;switch(K.dispose(),e.key){case ee.R.Space:if(""!==w.searchQuery)return e.preventDefault(),e.stopPropagation(),O.search(e.key);case ee.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==w.activeOptionIndex){let{dataRef:e}=w.options[w.activeOptionIndex];O.onChange(e.current.value)}0===w.mode&&((0,f.flushSync)(()=>O.closeListbox()),null==(t=w.buttonElement)||t.focus({preventScroll:!0}));break;case(0,X.E)(w.orientation,{vertical:ee.R.ArrowDown,horizontal:ee.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),O.goToOption(G.Next);case(0,X.E)(w.orientation,{vertical:ee.R.ArrowUp,horizontal:ee.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),O.goToOption(G.Previous);case ee.R.Home:case ee.R.PageUp:return e.preventDefault(),e.stopPropagation(),O.goToOption(G.First);case ee.R.End:case ee.R.PageDown:return e.preventDefault(),e.stopPropagation(),O.goToOption(G.Last);case ee.R.Escape:e.preventDefault(),e.stopPropagation(),(0,f.flushSync)(()=>O.closeListbox()),null==(n=w.buttonElement)||n.focus({preventScroll:!0});return;case ee.R.Tab:e.preventDefault(),e.stopPropagation(),(0,f.flushSync)(()=>O.closeListbox()),(0,J.EO)(w.buttonElement,e.shiftKey?J.TO.Previous:J.TO.Next);break;default:1===e.key.length&&(O.search(e.key),K.setTimeout(()=>O.clearSearch(),350))}}),Y=null==(n=w.buttonElement)?void 0:n.id,Q=(0,c.useMemo)(()=>({open:0===w.listboxState}),[w.listboxState]),$=(0,z.dG)(p?_():{},{id:i,ref:W,"aria-activedescendant":null===w.activeOptionIndex||null==(r=w.options[w.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===w.mode||void 0,"aria-labelledby":Y,"aria-orientation":w.orientation,onKeyDown:U,role:"listbox",tabIndex:0===w.listboxState?0:void 0,style:{...d.style,...B,"--button-width":function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,r]=(0,c.useReducer)(()=>({}),{}),o=(0,c.useMemo)(()=>(function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}})(e),[e,n]);return(0,m.e)(()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}},[e]),t?{width:"".concat(o.width,"px"),height:"".concat(o.height,"px")}:o}(w.buttonElement,!0).width},...(0,P.X)(C)}),et=(0,z.L6)();return c.createElement(en.h_,{enabled:!!u&&(e.static||F)},c.createElement(ef.Provider,{value:1===w.mode?w:{...w,isSelected:H}},et({ourProps:$,theirProps:d,slot:Q,defaultTag:"div",features:eh,visible:I,name:"Listbox.Options"}
1)))}),ew=(0,z.yV)(function(e,t){let n,r,o;let i=(0,c.useId)(),{id:l="headlessui-listbox-option-".concat(i),disabled:u=!1,value:a,...s}=e,d=!0===(0,c.useContext)(em),p=ed("Listbox.Option"),h=ec("Listbox.Option"),g=null!==p.activeOptionIndex&&p.options[p.activeOptionIndex].id===l,y=p.isSelected(a),E=(0,c.useRef)(null),x=(n=(0,c.useRef)(""),r=(0,c.useRef)(""),(0,v.z)(()=>{let e=E.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():L(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return L(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),w=(0,b.E)({disabled:u,value:a,domRef:E,get textValue(){return x()}}),S=(0,T.T)(t,E,e=>{e?p.listRef.current.set(l,e):p.listRef.current.delete(l)});(0,m.e)(()=>{if(!p.__demoMode&&0===p.listboxState&&g&&0!==p.activationTrigger)return(0,Q.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=E.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[E,g,p.__demoMode,p.listboxState,p.activationTrigger,p.activeOptionIndex]),(0,m.e)(()=>{if(!d)return h.registerOption(l,w)},[w,l,d]);let O=(0,v.z)(e=>{var t;if(u)return e.preventDefault();h.onChange(a),0===p.mode&&((0,f.flushSync)(()=>h.closeListbox()),null==(t=p.buttonElement)||t.focus({preventScroll:!0}))}),P=(0,v.z)(()=>{if(u)return h.goToOption(G.Nothing);h.goToOption(G.Specific,l)}),F=(o=(0,c.useRef)([-1,-1]),{wasMoved(e){let t=R(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=R(e)}}),C=(0,v.z)(e=>{F.update(e),!u&&(g||h.goToOption(G.Specific,l,0))}),k=(0,v.z)(e=>{F.wasMoved(e)&&(u||g||h.goToOption(G.Specific,l,0))}),A=(0,v.z)(e=>{F.wasMoved(e)&&(u||g&&h.goToOption(G.Nothing))}),M=(0,c.useMemo)(()=>({active:g,focus:g,selected:y,disabled:u,selectedOption:y&&d}),[g,y,u,d]),D=d?{}:{id:l,ref:S,role:"option",tabIndex:!0===u?void 0:-1,"aria-disabled":!0===u||void 0,"aria-selected":y,disabled:void 0,onClick:O,onFocus:P,onPointerEnter:C,onMouseEnter:C,onPointerMove:k,onMouseMove:k,onPointerLeave:A,onMouseLeave:A},I=(0,z.L6)();return!y&&d?null:I({ourProps:D,theirProps:s,slot:M,defaultTag:"div",name:"Listbox.Option"})}),eS=Object.assign(eb,{Button:ey,Label:eE,Options:ex,Option:ew,SelectedOption:(0,z.yV)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,T.T)(t)},l=ed("ListboxSelectedOption"),u=(0,c.useMemo)(()=>({}),[]),a=void 0===l.value||null===l.value||1===l.mode&&Array.isArray(l.value)&&0===l.value.length,s=(0,z.L6)();return c.createElement(em.Provider,{value:!0},s({ourProps:i,theirProps:{...o,children:c.createElement(c.Fragment,null,r&&a?r:n)},slot:u,defaultTag:eg,name:"ListboxSelectedOption"}))})})},22934:function(e,t,n){n.d(t,{h_:function(){return w},kF:function(){return y},wA:function(){return x}});var r=n(2265),o=n(54887),i=n(6584),l=n(61463),u=n(15537),a=n(62707),s=n(33856),c=n(41469),f=n(37593),d=n(54462),p=n(3600);let v=r.Fragment,m=(0,p.yV)(function(e,t){let n=(0,r.useRef)(null),i=(0,c.T)((0,c.h)(e=>{n.current=e}),t),m=(0,a.i)(n),h=function(e){let t=(0,f.n)(),n=(0,r.useContext)(g),o=(0,a.i)(e),[i,l]=(0,r.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(d.O.isServer)return null;let r=null==o?void 0:o.getElementById("headlessui-portal-root");if(r)return r;if(null===o)return null;let i=o.createElement("div");return i.setAttribute("id","headlessui-portal-root"),o.body.appendChild(i)});return(0,r.useEffect)(()=>{null!==i&&(null!=o&&o.body.contains(i)||null==o||o.body.appendChild(i))},[i,o]),(0,r.useEffect)(()=>{t||null!==n&&l(n.current)},[n,l,t]),i}(n),[y]=(0,r.useState)(()=>{var e;return d.O.isServer?null:null!=(e=null==m?void 0:m.createElement("div"))?e:null}),E=(0,r.useContext)(b),x=(0,s.H)();(0,l.e)(()=>{!h||!y||h.contains(y)||(y.setAttribute("data-headlessui-portal",""),h.appendChild(y))},[h,y]),(0,l.e)(()=>{if(y&&E)return E.register(y)},[E,y]),(0,u.L)(()=>{var e;h&&y&&(y instanceof Node&&h.contains(y)&&h.removeChild(y),h.childNodes.length<=0&&(null==(e=h.parentElement)||e.removeChild(h)))});let w=(0,p.L6)();return x&&h&&y?(0,o.createPortal)(w({ourProps:{ref:i},theirProps:e,slot:{},defaultTag:v,name:"Portal"}),y):null}),h=r.Fragment,g=(0,r.createContext)(null),b=(0,r.createContext)(null);function y(){let e=(0,r.useContext)(b),t=(0,r.useRef)([]),n=(0,i.z)(n=>(t.current.push(n),e&&e.register(n),()=>o(n))),o=(0,i.z)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),l=(0,r.useMemo)(()=>({register:n,unregister:o,portals:t}),[n,o,t]);return[t,(0,r.useMemo)(()=>function(e){let{children:t}=e;return r.createElement(b.Provider,{value:l},t)},[l])]}let E=(0,p.yV)(function(e,t){let n=(0,c.T)(t),{enabled:o=!0,...i}=e,l=(0,p.L6)();return o?r.createElement(m,{...i,ref:n}):l({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:v,name:"Portal"})}),x=(0,p.yV)(function(e,t){let{target:n,...o}=e,i={ref:(0,c.T)(t)},l=(0,p.L6)();return r.createElement(g.Provider,{value:n},l({ourProps:i,theirProps:o,defaultTag:h,name:"Popover.Group"}))}),w=Object.assign(E,{Group:x})},54079:function(e,t,n){n.d(t,{x:function(){return u}});var r=n(2265),o=n(91498),i=n(99299),l=n(6584);function u(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.useRef)(null),[n,u]=(0,r.useState)(!1),a=(0,i.G)(),s=(0,l.z)(()=>{t.current=null,u(!1),a.dispose()}),c=(0,l.z)(e=>{if(a.dispose(),null===t.current){t.current=e.currentTarget,u(!0);{let n=(0,o.r)(e.currentTarget);a.addEventListener(n,"pointerup",s,!1),a.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let o,i;u((o=e.width/2,i=e.height/2,n={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},r=t.current.getBoundingClientRect(),!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)))}},!1),a.addEventListener(n,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:s,onClick:s}}}},99299:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(2265),o=n(70777);function i(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>
1e.dispose(),[e]),e}},6584:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(2265),o=n(88703);let i=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current(...n)},[t])}},64524:function(e,t,n){n.d(t,{s:function(){return c}});var r=n(70777),o=n(91498),i=n(83746),l=n(61463);let u=new Map,a=new Map;function s(e){var t;let n=null!=(t=a.get(e))?t:0;return a.set(e,n+1),0!==n||(u.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=a.get(e))?t:1;if(1===n?a.delete(e):a.set(e,n-1),1!==n)return;let r=u.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,u.delete(e))})(e)}function c(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,i.g)(e,"inert-others");(0,l.e)(()=>{var e,i;if(!u)return;let l=(0,r.k)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&l.add(s(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let e of a){if(!e)continue;let t=(0,o.r)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some(t=>e.contains(t))||l.add(s(e));n=n.parentElement}}return l.dispose},[u,t,n])}},83746:function(e,t,n){n.d(t,{g:function(){return s}});var r=n(2265);class o extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}var i=n(68528),l=n(61463),u=n(19258);let a=new o(()=>(0,i.M)(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function s(e,t){let n=a.get(t),o=(0,r.useId)(),i=(0,u.o)(n);if((0,l.e)(()=>{if(e)return n.dispatch("ADD",o),()=>n.dispatch("REMOVE",o)},[n,e]),!e)return!1;let s=i.indexOf(o),c=i.length;return -1===s&&(s=c,c+=1),s===c-1}},61463:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(2265),o=n(54462);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},88703:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(2265),o=n(61463);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},58371:function(e,t,n){n.d(t,{m:function(){return l}});var r=n(2265),o=n(70777),i=n(88703);function l(e,t,n){let l=(0,i.E)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let r=(0,o.k)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>l.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>l.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,l,e])}},15537:function(e,t,n){n.d(t,{L:function(){return l}});var r=n(2265),o=n(28043),i=n(6584);function l(e){let t=(0,i.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&t()})}),[t])}},39110:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(2265),o=n(19309),i=n(31555),l=n(88703);function u(e,t,n,o){let i=(0,l.E)(n);(0,r.useEffect)(()=>{if(e)return document.addEventListener(t,n,o),()=>document.removeEventListener(t,n,o);function n(e){i.current(e)}},[e,t,o])}var a=n(83746),s=n(85149);function c(e,t,n){let c=(0,a.g)(e,"outside-click"),f=(0,l.E)(n),d=(0,r.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return(0,o.sP)(r,o.tJ.Loose)||-1===r.tabIndex||e.preventDefault(),f.current(e,r)}},[f,t]),p=(0,r.useRef)(null);u(c,"pointerdown",e=>{var t,n;p.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),u(c,"mousedown",e=>{var t,n;p.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),u(c,"click",e=>{(0,i.tq)()||p.current&&(d(e,()=>p.current),p.current=null)},!0);let v=(0,r.useRef)({x:0,y:0});u(c,"touchstart",e=>{v.current.x=e.touches[0].clientX,v.current.y=e.touches[0].clientY},!0),u(c,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-v.current.x)>=30||Math.abs(t.y-v.current.y)>=30))return d(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),(0,s.s)(c,"blur",e=>d(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},62707:function(e,t,n){n.d(t,{i:function(){return i}});var r=n(2265),o=n(91498);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>(0,o.r)(...t),[...t])}},75180:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(2265);function o(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},74515:function(e,t,n){n.d(t,{P:function(){return c}});
1var r=n(19258),o=n(61463),i=n(70777),l=n(68528),u=n(31555);let a=(0,l.M)(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,i.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,l={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},a=[(0,u.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,i.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,l=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=t.querySelector(r);i&&!o(i)&&(l=i)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=Math.max(0,o.clientWidth-o.offsetWidth),l=Math.max(0,t-i);r.style(o,"paddingRight","".concat(l,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(l)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(l)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});a.subscribe(()=>{let e=a.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&a.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&a.dispatch("TEARDOWN",n)}});var s=n(83746);function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),i=(0,r.o)(a),l=t?i.get(t):void 0;l&&l.count,(0,o.e)(()=>{if(!(!t||!e))return a.dispatch("PUSH",t,n),()=>a.dispatch("POP",t,n)},[e,t])}((0,s.g)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}},33856:function(e,t,n){n.d(t,{H:function(){return l}});var r,o=n(2265),i=n(54462);function l(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[l,u]=o.useState(i.O.isHandoffComplete);return l&&!1===i.O.isHandoffComplete&&u(!1),o.useEffect(()=>{!0!==l&&u(!0)},[l]),o.useEffect(()=>i.O.handoff(),[]),!t&&l}},19258:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(2265);function o(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}},41469:function(e,t,n){n.d(t,{T:function(){return u},h:function(){return l}});var r=n(2265),o=n(6584);let i=Symbol();function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let l=(0,r.useRef)(t);(0,r.useEffect)(()=>{l.current=t},[t]);let u=(0,o.z)(e=>{for(let t of l.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:u}},79072:function(e,t,n){let r;n.d(t,{X:function(){return d},Y:function(){return p}});var o,i,l=n(2265),u=n(70777),a=n(99299),s=n(61463),c=n(25566);void 0!==c&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(o=null==c?void 0:c.env)?void 0:o.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var f=((r=f||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);function d(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function p(e,t,n,r){let[o,i]=(0,l.useState)(n),{hasFlag:c,addFlag:f,removeFlag:d}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,l.useState)(e),r=(0,l.useCallback)(e=>n(e),[t]),o=(0,l.useCallback)(e=>n(t=>t|e),[t]),i=(0,l.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:(0,l.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,l.useCallback)(e=>n(t=>t^e),[n])}}(e&&o?3:0),p=(0,l.useRef)(!1),v=(0,l.useRef)(!1),m=(0,a.G)();return(0,s.e)(()=>{var o;if(e){if(n&&i(!0),!t){n&&f(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,t){let{prepare:n,run:r,done:o,inFlight:i}=t,l=(0,u.k)();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current){r();return}let o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(e,{prepare:n,inFlight:i}),l.nextFrame(()=>{r(),l.requestAnimationFrame(()=>{l.add(function(e,t){var n,r;let o=(0,u.k)();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===l.length?t():Promise.allSettled(l.map(e=>e.finished)).then(()=>{i||t()}),o.dispose}(e,o))})}),l.dispose}(t,{inFlight:p,prepare(){v.current?v.current=!1:v.current=p.current,p.current=!0,v.current||(n?(f(3),d(4)):(f(4),d(2)))},run(){v.current?n?(d(3),f(4)):(d(4),f(3)):n?d(1):f(1)},done(){var e;v.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(p.current=!1,d(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,m]),e?[o,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},85149:function(e,t,n){n.d(t,{s:function(){return i}});var r=n(2265),o=n(88703);function i(e,t,n,i){let l=(0,o.E)(n);(0,r.useEffect)(()=>
1{if(e)return window.addEventListener(t,n,i),()=>window.removeEventListener(t,n,i);function n(e){l.current(e)}},[e,t,i])}},83040:function(e,t,n){n.d(t,{B:function(){return i}});var r=n(2265);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},89080:function(e,t,n){let r;n.d(t,{_:function(){return l},x:function(){return i}});var o=n(3600),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let l=(0,o.yV)(function(e,t){var n;let{features:r=1,...i}=e,l={ref:t,"aria-hidden":(2&r)==2||(null!=(n=i["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.L6)()({ourProps:l,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})},21495:function(e,t,n){n.d(t,{Q:function(){return i}});var r=n(2265);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},53509:function(e,t,n){let r;n.d(t,{ZM:function(){return l},oJ:function(){return u},up:function(){return a},uu:function(){return s}});var o=n(2265);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var l=((r=l||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function u(){return(0,o.useContext)(i)}function a(e){let{value:t,children:n}=e;return o.createElement(i.Provider,{value:t},n)}function s(e){let{children:t}=e;return o.createElement(i.Provider,{value:null},t)}},37593:function(e,t,n){n.d(t,{O:function(){return l},n:function(){return i}});var r=n(2265);let o=(0,r.createContext)(!1);function i(){return(0,r.useContext)(o)}function l(e){return r.createElement(o.Provider,{value:e.force},e.children)}},12585:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},70777:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=setTimeout(...t);return n.add(()=>clearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];let i={current:!0};return(0,r.Y)(()=>{i.current&&t[0]()}),n.add(()=>{i.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(28043)},54462:function(e,t,n){n.d(t,{O:function(){return u}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class l{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let u=new l},19309:function(e,t,n){let r,o,i,l,u;n.d(t,{C5:function(){return y},EO:function(){return x},TO:function(){return d},fE:function(){return p},jA:function(){return w},sP:function(){return g},tJ:function(){return h},y:function(){return c},z2:function(){return E}});var a=n(5583),s=n(91498);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),f=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r[r.AutoFocus=64]="AutoFocus",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),v=((i=v||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>
1Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=((l=h||{})[l.Strict=0]="Strict",l[l.Loose=1]="Loose",l);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,s.r)(e))?void 0:t.body)&&(0,a.E)(n,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var b=((u=b||{})[u.Keyboard=0]="Keyboard",u[u.Mouse=1]="Mouse",u);function y(e){null==e||e.focus({preventScroll:!0})}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function x(e,t){return w(m(),t,{relativeTo:e})}function w(e,t){var n,r,o;let{sorted:i=!0,relativeTo:l=null,skipElements:u=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?i?E(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(f)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):m(e);u.length>0&&s.length>1&&(s=s.filter(e=>!u.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),l=null!=l?l:a.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(l))-1;if(4&t)return Math.max(0,s.indexOf(l))+1;if(8&t)return s.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},v=0,h=s.length,g;do{if(v>=h||v+h<=0)return 0;let e=d+v;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(g=s[e])||g.focus(p),v+=c}while(g!==a.activeElement);return 6&t&&null!=(o=null==(r=null==(n=g)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&g.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},5583:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(e in t){let n=t[e];return"function"==typeof n?n(...o):n}let l=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(l,r),l}},28043:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},91498:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(54462);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},31555:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},3600:function(e,t,n){let r,o;n.d(t,{L6:function(){return c},VN:function(){return a},dG:function(){return v},l4:function(){return s},oA:function(){return h},yV:function(){return m}});var i=n(2265),l=n(12585),u=n(5583),a=((r=a||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),s=((o=s||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c(){let e,t;let n=(e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(e=>null==e))return e.current=r,t});return(0,i.useCallback)(e=>(function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:l=!0,name:a,mergeRefs:s}=e;s=null!=s?s:d;let c=p(n,t);if(l)return f(c,r,o,a,s);let v=null!=i?i:0;if(2&v){let{static:e=!1,...t}=c;if(e)return f(t,r,o,a,s)}if(1&v){let{unmount:e=!0,...t}=c;return(0,u.E)(e?0:1,{0:()=>null,1:()=>f({...t,hidden:!0,style:{display:"none"}},r,o,a,s)})}return f(c,r,o,a,s)})({mergeRefs:n,...e}),[n])}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:u=n,children:a,refName:s="ref",...c}=g(e,["unmount","static"]),f=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let v={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(v["data-headlessui-state"]=n.join(" "),n))v["data-".concat(e)
1]=""}if(u===i.Fragment&&(Object.keys(h(c)).length>0||Object.keys(h(v)).length>0)){if(!(0,i.isValidElement)(d)||Array.isArray(d)&&d.length>1){if(Object.keys(h(c)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(h(c)).concat(Object.keys(h(v))).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"))}else{let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,l.A)(t(...n),c.className)}:(0,l.A)(t,c.className),r=p(d.props,h(g(c,["ref"])));for(let e in v)e in r&&delete v[e];return(0,i.cloneElement)(d,Object.assign({},r,v,f,{ref:o(i.version.split(".")[0]>="19"?d.props.ref:d.ref,f.ref)},n?{className:n}:{}))}}return(0,i.createElement)(u,Object.assign({},g(c,["ref"]),u!==i.Fragment&&f,u!==i.Fragment&&v),d)}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(e=>null==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];if(r.disabled||r["aria-disabled"])for(let e in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(o[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return r}function v(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];for(let e in o)Object.assign(r,{[e](){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(let t of o[e])null==t||t(...n)}});return r}function m(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},68528:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var o=arguments.length,i=Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];let u=t[e].call(n,...i);u&&(n=u,r.forEach(e=>e()))}}}},96117:function(e,t,n){function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{F:function(){return D}});let l=i(function(){return o(/^Mac/i)}),u=i(function(){return o(/^iPhone/i)}),a=i(function(){return o(/^iPad/i)||l()&&navigator.maxTouchPoints>1}),s=i(function(){return u()||a()});i(function(){return l()||s()}),i(function(){return r(/AppleWebKit/i)&&!c()});let c=i(function(){return r(/Chrome/i)}),f=i(function(){return r(/Android/i)});i(function(){return r(/Firefox/i)});let d=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},p=e=>e&&"window"in e&&e.window===e?e:d(e).defaultView||window;var v=n(2265);let m=null,h=new Set,g=new Map,b=!1,y=!1,E={Tab:!0,Escape:!0};function x(e,t){for(let n of h)n(e,t)}function w(e){b=!0,e.metaKey||!l()&&e.altKey||e.ctrlKey||"Control"
1===e.key||"Shift"===e.key||"Meta"===e.key||(m="keyboard",x("keyboard",e))}function S(e){m="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(b=!0,x("pointer",e))}function T(e){(0===e.mozInputSource&&e.isTrusted||(f()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(b=!0,m="virtual")}function O(e){e.target!==window&&e.target!==document&&(b||y||(m="virtual",x("virtual",e)),b=!1,y=!1)}function L(){b=!1,y=!0}function R(e){if("undefined"==typeof window||g.get(p(e)))return;let t=p(e),n=d(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){b=!0,r.apply(this,arguments)},n.addEventListener("keydown",w,!0),n.addEventListener("keyup",w,!0),n.addEventListener("click",T,!0),t.addEventListener("focus",O,!0),t.addEventListener("blur",L,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",S,!0),n.addEventListener("pointermove",S,!0),n.addEventListener("pointerup",S,!0)):(n.addEventListener("mousedown",S,!0),n.addEventListener("mousemove",S,!0),n.addEventListener("mouseup",S,!0)),t.addEventListener("beforeunload",()=>{P(e)},{once:!0}),g.set(t,{focus:r})}let P=(e,t)=>{let n=p(e),r=d(e);t&&r.removeEventListener("DOMContentLoaded",t),g.has(n)&&(n.HTMLElement.prototype.focus=g.get(n).focus,r.removeEventListener("keydown",w,!0),r.removeEventListener("keyup",w,!0),r.removeEventListener("click",T,!0),n.removeEventListener("focus",O,!0),n.removeEventListener("blur",L,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",S,!0),r.removeEventListener("pointermove",S,!0),r.removeEventListener("pointerup",S,!0)):(r.removeEventListener("mousedown",S,!0),r.removeEventListener("mousemove",S,!0),r.removeEventListener("mouseup",S,!0)),g.delete(n))};function F(){return"pointer"!==m}"undefined"!=typeof document&&function(e){let t;let n=d(void 0);"loading"!==n.readyState?R(void 0):(t=()=>{R(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>P(e,t)}();let C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),k="undefined"!=typeof document?v.useLayoutEffect:()=>{};class A{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function M(e){let t=(0,v.useRef)({isFocused:!1,observer:null});k(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,v.useRef)(null);return k(()=>{t.current=e},[e]),(0,v.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,v.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new A("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function D(e={}){var t,n,r;let{autoFocus:o=!1,isTextInput:i,within:l}=e,u=(0,v.useRef)({isFocused:!1,isFocusVisible:o||F()}),[a,s]=(0,v.useState)(!1),[c,f]=(0,v.useState)(()=>u.current.isFocused&&u.current.isFocusVisible),m=(0,v.useCallback)(()=>f(u.current.isFocused&&u.current.isFocusVisible),[]),g=(0,v.useCallback)(e=>{u.current.isFocused=e,s(e),m()},[m]);t=e=>{u.current.isFocusVisible=e,m()},n=[],r={isTextInput:i},R(),(0,v.useEffect)(()=>
1{let e=(e,n)=>{(function(e,t,n){var r;let o="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLElement:HTMLElement,u="undefined"!=typeof window?p(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!C.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof l&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof u&&!E[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(F())};return h.add(e),()=>{h.delete(e)}},n);let{focusProps:b}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,v.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),l=M(i),u=(0,v.useCallback)(e=>{let t=d(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),l(e))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?u:void 0,onBlur:!t&&(r||o)?i:void 0}}}({isDisabled:l,onFocusChange:g}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,v.useRef)({isFocusWithin:!1}),l=(0,v.useCallback)(e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))},[n,o,i]),u=M(l),a=(0,v.useCallback)(e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,u(e))},[r,o,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}({isDisabled:!l,onFocusWithinChange:g});return{isFocused:a,isFocusVisible:c,focusProps:l?y:b}}},83892:function(e,t,n){n.d(t,{X:function(){return s}});var r=n(2265);let o=!1,i=0;function l(){o=!0,setTimeout(()=>{o=!1},50)}function u(e){"touch"===e.pointerType&&l()}function a(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",u):document.addEventListener("touchend",l),i++,()=>{--i>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",u):document.removeEventListener("touchend",l))}}function s(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:l}=e,[u,s]=(0,r.useState)(!1),c=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(a,[]);let{hoverProps:f,triggerHoverEnd:d}=(0,r.useMemo)(()=>{let e=(e,r)=>{if(c.pointerType=r,l||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),s(!0)},r=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),s(!1)},u={};return"undefined"!=typeof PointerEvent?(u.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},u.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(u.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},u.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||o||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},u.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:u,triggerHoverEnd:r}},[t,n,i,l,c]);return(0,r.useEffect)(()=>{l&&d({currentTarget:c.target},c.pointerType)},[l]),{hoverProps:f,isHovered: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.