PageSourceSearch

https://www.imajine.com/_next/static/chunks/65d82d0fa9af5d77.js

js imajine.com collected 2026-10-08 08:57:33 UTC 64,842 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2893,e=>{"use strict";let t,n;var r,o,i,a,l,s,u,c,d=e.i(43476),f=e.i(71645),p=e.i(22016),m=e.i(57688),h=e.i(63780),g=e.i(76841),v=e.i(67881);function x(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var y=e.i(20783);function b(e,t=[]){let n=[],r=()=>{let t=n.map(e=>f.createContext(e));return function(n){let r=n?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=f.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,l=n?.[e]?.[i]||o,s=f.useMemo(()=>a,Object.values(a));return(0,d.jsx)(l.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let l=a?.[e]?.[i]||o,s=f.useContext(l);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var w=e.i(74080),E=e.i(91918),N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=f.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?E.Slot:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function C(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}var j="dismissableLayer.update",R=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=f.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=f.useContext(R),[p,m]=f.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=f.useState({}),v=(0,y.useComposedRefs)(t,e=>m(e)),b=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),E=b.indexOf(w),S=p?b.indexOf(p):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,T=S>=E,L=function(e,t=globalThis?.document){let n=C(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){O("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...c.branches].some(e=>e.contains(t));T&&!n&&(o?.(e),a?.(e),e.defaultPrevented||l?.())},h),k=function(e,t=globalThis?.document){let n=C(e),r=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!r.current&&O("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...c.branches].some(e=>e.contains(t))&&(i?.(e),a?.(e),e.defaultPrevented||l?.())},h);return!function(e,t=globalThis?.document){let n=C(e);f.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),f.useEffect(()=>{if(p)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(u=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),A(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=u)}},[p,h,n,c]),f.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),A())},[p,c]),f.useEffect(()=>{let e=()=>g({});return document.addEventListener(j,e),()=>document.removeEventListener(j,e)},[]),(0,d.jsx)(N.div,{...s,ref:v,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:x(e.onFocusCapture,k.onFocusCapture),onBlurCapture:x(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:x(e.onPointerDownCapture,L.onPointerDownCapture)})});function A(){let e=new CustomEvent(j);document.dispatchEvent(e)}function O(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),r)o&&w.flushSync(()=>o.dispatchEvent(i));else o.dispatchEvent(i)}S.displayName="DismissableLayer",f.forwardRef((e,t)=>
1{let n=f.useContext(R),r=f.useRef(null),o=(0,y.useComposedRefs)(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(N.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var P=0;function T(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var L="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",M={bubbles:!1,cancelable:!0},D=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=f.useState(null),u=C(o),c=C(i),p=f.useRef(null),m=(0,y.useComposedRefs)(t,e=>s(e)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:_(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||_(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,h.paused]),f.useEffect(()=>{if(l){I.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(L,M);l.addEventListener(L,u),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(_(r,{select:t}),document.activeElement!==n)return}(F(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&_(l))}return()=>{l.removeEventListener(L,u),setTimeout(()=>{let t=new CustomEvent(k,M);l.addEventListener(k,c),l.dispatchEvent(t),t.defaultPrevented||_(e??document.body,{select:!0}),l.removeEventListener(k,c),I.remove(h)},0)}}},[l,u,c,h]);let g=f.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var i;let t,r=e.currentTarget,[a,l]=[W(t=F(i=r),i),W(t.reverse(),i)];a&&l?e.shiftKey||o!==l?e.shiftKey&&o===a&&(e.preventDefault(),n&&_(l,{select:!0})):(e.preventDefault(),n&&_(a,{select:!0})):o===r&&e.preventDefault()}},[n,r,h.paused]);return(0,d.jsx)(N.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});function F(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function W(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function _(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}D.displayName="FocusScope";var I=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=$(n,e)).unshift(e)},remove(e){n=$(n,e),n[0]?.resume()}});function $(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var B=globalThis?.document?f.useLayoutEffect:()=>{},z=f["useId".toString()]||(()=>void 0),H=0;let U=["top","right","bottom","left"],X=Math.min,V=Math.max,K=Math.round,Y=Math.floor,q=e=>({x:e,y:e}),Z={left:"right",right:"left",bottom:"top",top:"bottom"};function G(e,t){return"function"==typeof e?e(t):e}function J(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function ee(e){return"x"===e?"y":"x"}function et(e){return"y"===e?"height":"width"}function en(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function er(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let eo=["left","right"],ei=["right","left"],ea=["top","bottom"],el=["bottom","top"];function es(e){let t=J(e);return Z[t]+e.slice(t.length)}function eu(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function ec(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}}function ed(e,t,n){let r,{reference:o,floating:i}
1=e,a=en(t),l=ee(en(t)),s=et(l),u=J(t),c=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;switch(u){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}let p=Q(t);return p&&(r[l]+=f*("end"===p?1:-1)*(n&&"y"===a?-1:1)),r}async function ef(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=G(t,e),m=eu(p),h=l[f?"floating"===d?"reference":"floating":d],g=ec(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=ec(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:x,strategy:s}):v);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}let ep=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ef},s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ed(u,r,s),f=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:g,fn:v}=h,{x:x,y:y,data:b,reset:w}=await v({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=x?x:c,d=null!=y?y:d,m[g]={...m[g],...b},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=ed(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:m}};function em(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eh(e){return U.some(t=>e[t]>=0)}let eg=new Set(["left","top"]);async function ev(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=J(n),l=Q(n),s="y"===en(n),u=eg.has(a)?-1:1,c=i&&s?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function ex(){return"undefined"!=typeof window}function ey(e){return eE(e)?(e.nodeName||"").toLowerCase():"#document"}function eb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ew(e){var t;return null==(t=(eE(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eE(e){return!!ex()&&(e instanceof Node||e instanceof eb(e).Node)}function eN(e){return!!ex()&&(e instanceof Element||e instanceof eb(e).Element)}function eC(e){return!!ex()&&(e instanceof HTMLElement||e instanceof eb(e).HTMLElement)}function ej(e){return!!ex()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eb(e).ShadowRoot)}function eR(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eM(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function eS(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eA=/transform|translate|scale|rotate|perspective|filter/,eO=/paint|layout|strict|content/,eP=e=>!!e&&"none"!==e;function eT(e){let t=eN(e)?eM(e):e;return eP(t.transform)||eP(t.translate)||eP(t.scale)||eP(t.rotate)||eP(t.perspective)||!eL()&&(eP(t.backdropFilter)||eP(t.filter))||eA.test(t.willChange||"")||eO.test(t.contain||"")}function eL(){return null==t&&(t="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ek(e){return/^(html|body|#document)$/.test(ey(e))}function eM(e){return eb(e).getComputedStyle(e)}function eD(e){return eN(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eF(e){if("html"===ey(e))return e;let t=e.assignedSlot||e.parentNode||ej(e)&&e.host||ew(e);return ej(t)?t.host:t}function eW(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eF(t);return ek(n)?(t.ownerDocument||t).body:eC(n)&&eR(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=eb(o);if(!i)return t.concat(o,eW(o,[],n));{let e=e_(a);
1return t.concat(a,a.visualViewport||[],eR(o)?o:[],e&&n?eW(e):[])}}function e_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eI(e){let t=eM(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eC(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=K(n)!==i||K(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function e$(e){return eN(e)?e:e.contextElement}function eB(e){let t=e$(e);if(!eC(t))return q(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eI(t),a=(i?K(n.width):n.width)/r,l=(i?K(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let ez=q(0);function eH(e){let t=eb(e);return eL()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ez}function eU(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=e$(e),l=q(1);t&&(r?eN(r)&&(l=eB(r)):l=eB(e));let s=(void 0===(o=n)&&(o=!1),r&&o&&r===eb(a))?eH(a):q(0),u=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a&&r){let e=eb(a),t=eN(r)?eb(r):r,n=e,o=e_(n);for(;o&&t!==n;){let e=eB(o),t=o.getBoundingClientRect(),r=eM(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=a,o=e_(n=eb(o))}}return ec({width:d,height:f,x:u,y:c})}function eX(e,t){let n=eD(e).scrollLeft;return t?t.left+n:eU(ew(e)).left+n}function eV(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eX(e,n),y:n.top+t.scrollTop}}function eK(e,t,n){var r;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=eb(e),i=ew(e),a=o.visualViewport,l=i.clientWidth,s=i.clientHeight,u=0,c=0;if(a){let e=!eL()||"fixed"===t;r?e||(u=-a.offsetLeft,c=-a.offsetTop):(l=a.width,s=a.height,e&&(u=a.offsetLeft,c=a.offsetTop))}if(0>=eX(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),a="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;a<=25&&(l-=a)}return{width:l,height:s,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,i,a,l,s;t=eD(r=ew(e)),n=r.ownerDocument.body,i=V(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=V(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),l=-t.scrollLeft+eX(r),s=-t.scrollTop,"rtl"===eM(n).direction&&(l+=V(r.clientWidth,n.clientWidth)-i),o={width:i,height:a,x:l,y:s}}else if(eN(t)){let e,r,i,a,l,s;r=(e=eU(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,a=eB(t),l=t.clientWidth*a.x,s=t.clientHeight*a.y,o={width:l,height:s,x:i*a.x,y:r*a.y}}else{let n=eH(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ec(o)}function eY(e){return"static"===eM(e).position}function eq(e,t){if(!eC(e)||"fixed"===eM(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ew(e)===n&&(n=n.ownerDocument.body),n}function eZ(e,t){var n;let r=eb(e);if(eS(e))return r;if(!eC(e)){let t=eF(e);for(;t&&!ek(t);){if(eN(t)&&!eY(t))return t;t=eF(t)}return r}let o=eq(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(ey(n)))&&eY(o);)o=eq(o,t);return o&&ek(o)&&eY(o)&&!eT(o)?r:o||function(e){let t=eF(e);for(;eC(t)&&!ek(t);){if(eT(t))return t;if(eS(t))break;t=eF(t)}return null}(e)||r}let eG=async function(e){let t=this.getOffsetParent||eZ,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eC(t),o=ew(t),i="fixed"===n,a=eU(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=q(0);if((r||!i)&&(("body"!==ey(t)||eR(o))&&(l=eD(t)),r)){let e=eU(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&o&&(s.x=eX(o));let u=!o||r||i?q(0):eV(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eJ={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=ew(r),l=!!t&&eS(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=q(1),c=q(0),d=eC(r);
1if((d||!i)&&(("body"!==ey(r)||eR(a))&&(s=eD(r)),d)){let e=eU(r);u=eB(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?q(0):eV(a,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:ew,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eS(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eW(e,[],!1).filter(e=>eN(e)&&"body"!==ey(e)),o=null,i="fixed"===eM(e).position,a=i?eF(e):e;for(;eN(a)&&!ek(a);){let e=eM(a),t=eT(a),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==a),a=eF(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=eK(t,i[0],o),l=a.top,s=a.right,u=a.bottom,c=a.left;for(let e=1;e<i.length;e++){let n=eK(t,i[e],o);l=V(n.top,l),s=X(n.right,s),u=X(n.bottom,u),c=V(n.left,c)}return{width:s-c,height:u-l,x:c,y:l}},getOffsetParent:eZ,getElementRects:eG,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eI(e);return{width:t,height:n}},getScale:eB,isElement:eN,isRTL:function(e){return"rtl"===eM(e).direction}};function eQ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e0=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=G(e,t)||{};if(null==u)return{};let d=eu(c),f={x:n,y:r},p=ee(en(o)),m=et(p),h=await a.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[p]-f[p]-i.floating[m],y=f[p]-i.reference[p],b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),w=b?b[v]:0;w&&await (null==a.isElement?void 0:a.isElement(b))||(w=l.floating[v]||i.floating[m]);let E=w/2-h[m]/2-1,N=X(d[g?"top":"left"],E),C=X(d[g?"bottom":"right"],E),j=w-h[m]-C,R=w/2-h[m]/2+(x/2-y/2),S=V(N,X(R,j)),A=!s.arrow&&null!=Q(o)&&R!==S&&i.reference[m]/2-(R<N?N:C)-h[m]/2<0,O=A?R<N?R-N:R-j:0;return{[p]:f[p]+O,data:{[p]:S,centerOffset:R-S-O,...A&&{alignmentOffset:O}},reset:A}}});var e1="undefined"!=typeof document?f.useLayoutEffect:function(){};function e2(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(!e2(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)&&!e2(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e5(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e3(e,t){let n=e5(e);return Math.round(t*n)/n}function e4(e){let t=f.useRef(e);return e1(()=>{t.current=e}),t}var e6=f.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,d.jsx)(N.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e6.displayName="Arrow";var e7="Popper",[e8,e9]=b(e7),[te,tt]=e8(e7),tn=e=>{let{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return(0,d.jsx)(te,{scope:t,anchor:r,onAnchorChange:o,children:n})};tn.displayName=e7;var tr="PopperAnchor",to=f.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=tt(tr,n),a=f.useRef(null),l=(0,y.useComposedRefs)(t,a);return f.useEffect(()=>{i.onAnchorChange(r?.current||a.current)}),r?null:(0,d.jsx)(N.div,{...o,ref:l})});to.displayName=tr;var ti="PopperContent",[ta,tl]=e8(ti),ts=f.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u,c,p,m,h,g,v,x,b,E,j,R,S,A;let O,P,T,L,k,M,{__scopePopper:D,side:F="bottom",sideOffset:W=0,align:_="center",alignOffset:I=0,arrowPadding:$=0,avoidCollisions:z=!0,collisionBoundary:H=[],collisionPadding:U=0,sticky:K="partial",hideWhenDetached:q=!1,updatePositionStrategy:Z="optimized",onPlaced:eu,...ec}=e,ed=tt(ti,D),[ef,ex]=f.useState(null),ey=(0,y.useComposedRefs)(t,e=>ex(e)),[eE,eN]=f.useState(null),eC=function(e){let[t,n]=f.useState(void 0);return B(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(eE),ej=eC?.width??0,eR=eC?.height??0,eS="number"==typeof U?U:{top:0,right:0,bottom:0,left:0,...U},eA=Array.isArray(H)?H:[H],eO=eA.length>0,eP={padding:eS,boundary:eA.filter(tf),altBoundary:eO},{refs:eT,floatingStyles:eL,placement:ek,isPositioned:eM,middlewareData:eD}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=f.useState(r);e2(p,r)||m(r);let[h,g]=f.useState(null),[v,x]=f.useState(null),y=f.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=f.useCallback(e=>{e!==j.current&&(j.current=e,x(e))},[]),E=i||h,N=a||v,C=f.useRef(null),j=f.useRef(null),R=f.useRef(c),S=null!=s,A=e4(s),O=e4(o),P=e4(u),T=f.useCallback(()=>{var e,r;let o,i,a;if(!C.current||!j.current)return;let l={placement:t,strategy:n,middleware:p};O.current&&(l.platform=O.current),(e=C.current,r=j.current,o=new Map,i=null!=l?l:{},a={...eJ,...i.platform,_c:o},ep(e,r,{...i,platform:a})).then(e=>{let t={...e,isPositioned:!1!==P.current};L.current&&!e2(R.current,t)&&(R.current=t,w.flushSync(()=>{d(t)}))})},[p,t,n,O,P]);e1(()=>{!1===u&&R.current.isPositioned&&(R.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let L=f.useRef(!1);e1(()=>(L.current=!0,()=>{L.current=!1}),[]),e1(()=>{if(E&&(C.current=E),N&&(j.current=N),E&&N){if(A.current)return A.current(E,N,T);T()}},[E,N,T,A,S]);let k=f.useMemo(()=>({reference:C,floating:j,setReference:y,setFloating:b}),[y,b]),M=f.useMemo(()=>({reference:E,floating:N}),[E,N]),D=f.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=e3(M.floating,c.x),r=e3(M.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...e5(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,M.floating,c.x,c.y]);return f.useMemo(()=>({...c,update:T,refs:k,elements:M,floatingStyles:D}),[c,T,k,M,D])}({strategy:"fixed",placement:F+("center"!==_?"-"+_:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=e$(e),d=i||a?[...c?eW(c):[],...t?eW(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n),a&&e.addEventListener("resize",n)});let f=c&&s?function(e,t,n){let r,o=null,i=ew(e);function a(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function l(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(n||t(),!f||!p)return;let m={rootMargin:-Y(d)+"px "+-Y(i.clientWidth-(c+f))+"px "+-Y(i.clientHeight-(d+p))+"px "+-Y(c)+"px",threshold:V(0,X(1,s))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(!eQ(u,e.getBoundingClientRect()))return l();if(n!==s){if(!h)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,m)}o.observe(e)}let s=eb(e),u=()=>l(n);return s.addEventListener("resize",u),l(!0),()=>{s.removeEventListener("resize",u),a()}}(c,n,a):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let h=u?eU(e):null;return u&&function t(){let r=eU(e);h&&!eQ(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===Z}),elements:{reference:ed.anchor},middleware:[{name:(O={name:"offset",options:o=n={mainAxis:W+eR,alignmentAxis:I},async fn(e){var t,n;let{x:r,y:i,placement:a,middlewareData:l}=e,s=await ev(e,o);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}).name,fn:O.fn,options:[n,r]},z&&{name:(P={name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===K?{fn:(void 0===(l=i)&&(l={}),{options:l,fn(e){var t,n,r,o;let{x:i,y:a,placement:s,rects:u,middlewareData:c}=e,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=G(l,e),m={x:i,y:a},h=en(s),g=ee(h),v=m[g],x=m[h],y=G(d,e),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(t=y.mainAxis)?t:0,crossAxis:null!=(n=y.crossAxis)?n:0};if(f){let e="y"===g?"height":"width",t=u.reference[g]-u.floating[e]+b.mainAxis,n=u.reference[g]+u.reference[e]-b.mainAxis;v<t?v=t:v>n&&(v=n)}if(p){let e="y"===g?"width":"height",t=eg.has(J(s)),n=u.reference[h]-u.floating[e]+(t&&(null==(r=c.offset)?void 0:r[h])||0)+(t?0:b.crossAxis),i=u.reference[h]+u.reference[e]+(t?0:(null==(o=c.offset)?void 0:o[h])||0)-(t?b.crossAxis:0);x<n?x=n:x>i&&(x=i)}return{[g]:v,[h]:x}}}).fn,options:[i,a]}:void 0,...eP},async fn(e){let{x:t,y:n,placement:r,platform:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=G(c,e),u={x:t,y:n},d=await o.detectOverflow(e,s),f=en(r),p=ee(f),m=u[p],h=u[f],g=(e,t)=>V(t+d["y"===e?"top":"left"],X(t,t-d["y"===e?"bottom":"right"]));i&&(m=g(p,m)),a&&(h=g(f,h));let v=l.fn({...e,[p]:m,[f]:h});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[p]:i,[f]:a}}}}}).name,fn:P.fn,options:[s,u]},z&&{name:(T={name:"flip",options:h=p={...eP},async fn(e){var t,n,r,o,i,a,l,s;let u,c,d,{placement:f,middlewareData:p,rects:m,initialPlacement:g,platform:v,elements:x}=e,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:C=!0,...j}=G(h,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let R=J(f),S=en(g),A=J(g)===g,O=await (null==v.isRTL?void 0:v.isRTL(x.floating)),P=w||(A||!C?[es(g)]:(u=es(g),[er(g),u,er(u)])),T="none"!==N;!w&&T&&P.push(...(c=Q(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ei:eo;return t?eo:ei;case"left":case"right":return t?ea:el;default:return[]}}(J(g),"start"===N,O),c&&(d=d.map(e=>e+"-"+c),C&&(d=d.concat(d.map(er)))),d));let L=[g,...P],k=await v.detectOverflow(e,j),M=[],D=(null==(n=p.flip)?void 0:n.overflows)||[];if(y&&M.push(k[R]),b){let e,t,n,r,o=(a=f,l=m,void 0===(s=O)&&(s=!1),e=Q(a),n=et(t=ee(en(a))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=es(r)),[r,es(r)]);M.push(k[o[0]],k[o[1]])}if(D=[...D,{placement:f,overflows:M}],!M.every(e=>e<=0)){let e=((null==(r=p.flip)?void 0:r.index)||0)+1,t=L[e];if(t&&("alignment"!==b||S===en(t)||D.every(e=>en(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(i=D.filter(e=>{if(T){let t=en(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:i[0];e&&(n=e);break}case"initialPlacement":n=g}if(f!==n)return{reset:{placement:n}}}return{}}}).name,fn:T.fn,options:[p,m]},{name:(L={name:"size",options:x=g={...eP,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){let t,n,{placement:r,rects:o,platform:i,elements:a}=e,{apply:l=()=>{},...s}=G(x,e),u=await i.detectOverflow(e,s),c=J(r),d=Q(r),f="y"===en(r),{width:p,height:m}=o.floating;"top"===c||"bottom"===c?(t=c,n=d===(await (null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(n=c,t="end"===d?"top":"bottom");let h=m-u.top-u.bottom,g=p-u.left-u.right,v=X(m-u[t],h),y=X(p-u[n],g),b=e.middlewareData.shift,w=!b,E=v,N=y;null!=b&&b.enabled.x&&(N=g),null!=b&&b.enabled.y&&(E=h),w&&!d&&(f?N=p-2*V(u.left,u.right):E=m-2*V(u.top,u.bottom)),await l({...e,availableWidth:N,availableHeight:E});let C=await i.getDimensions(a.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}).name,fn:L.fn,options:[g,v]},eE&&{name:(k={name:"arrow",options:j=b={element:eE,padding:$},fn(e){let{element:t,padding:n}="function"==typeof j?j(e):j;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?e0({element:t.current,padding:n}).fn(e):{}:t?e0({element:t,padding:n}).fn(e):{}}}).name,fn:k.fn,options:[b,E]},tp({arrowWidth:ej,arrowHeight:eR}),q&&{name:(M={name:"hide",options:A=R={strategy:"referenceHidden",...eP},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...o}=G(A,e);switch(r){case"referenceHidden":{let r=em(await n.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:eh(r)}}}case"escaped":{let r=em(await n.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:eh(r)}}}default:return{}}}}).name,fn:M.fn,options:[R,S]}]}),[eF,e_]=tm(ek),eI=C(eu);B(()=>{eM&&eI?.()},[eM,eI]);let eB=eD.arrow?.x,ez=eD.arrow?.y,eH=eD.arrow?.centerOffset!==0,[eX,eV]=f.useState();return B(()=>{ef&&eV(window.getComputedStyle(ef).zIndex)},[ef]),(0,d.jsx)("div",{ref:eT.setFloating,"data-radix-popper-content-wrapper":"",style:{...eL,transform:eM?eL.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eX,"--radix-popper-transform-origin":[eD.transformOrigin?.x,eD.transformOrigin?.y].join(" "),...eD.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(ta,{scope:D,placedSide:eF,onArrowChange:eN,arrowX:eB,arrowY:ez,shouldHideArrow:eH,children:(0,d.jsx)(N.div,{"data-side":eF,"data-align":e_,...ec,ref:ey,style:{...ec.style,animation:eM?void 0:"none"}})})})});ts.displayName=ti;var tu="PopperArrow",tc={top:"bottom",right:"left",bottom:"top",left:"right"},td=f.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tl(tu,n),i=tc[o.placedSide];return(0,d.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(e6,{...r,ref:t,style:{...r.style,display:"block"}})})});function tf(e){return null!==e}td.displayName=tu;var tp=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,u]=tm(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=i?c:`${d}px`,m=`${-l}px`):"top"===s?(p=i?c:`${d}px`,m=`${r.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=i?c:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}});function tm(e){let[t,n="center"]=e.split("-");return[t,n]}var th=f.forwardRef((e,t)=>
1{let{container:n,...r}=e,[o,i]=f.useState(!1);B(()=>i(!0),[]);let a=n||o&&globalThis?.document?.body;return a?w.default.createPortal((0,d.jsx)(N.div,{...r,ref:t}),a):null});th.displayName="Portal";var tg=e=>{var t;let n,r,{present:o,children:i}=e,a=function(e){var t,n;let[r,o]=f.useState(),i=f.useRef({}),a=f.useRef(e),l=f.useRef("none"),[s,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},f.useReducer((e,t)=>n[e][t]??e,t));return f.useEffect(()=>{let e=tv(i.current);l.current="mounted"===s?e:"none"},[s]),B(()=>{let t=i.current,n=a.current;if(n!==e){let r=l.current,o=tv(t);e?u("MOUNT"):"none"===o||t?.display==="none"?u("UNMOUNT"):n&&r!==o?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),B(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let o=tv(i.current).includes(n.animationName);if(n.target===r&&o&&(u("ANIMATION_END"),!a.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(l.current=tv(i.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(e=>{e&&(i.current=getComputedStyle(e)),o(e)},[])}}(o),l="function"==typeof i?i({present:a.isPresent}):f.Children.only(i),s=(0,y.useComposedRefs)(a.ref,(t=l,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||a.isPresent?f.cloneElement(l,{ref:s}):null};function tv(e){return e?.animationName||"none"}tg.displayName="Presence";var tx=new WeakMap,ty=new WeakMap,tb={},tw=0,tE=function(e){return e&&(e.host||tE(e.parentNode))},tN=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tE(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tb[n]||(tb[n]=new WeakMap);var i=tb[n],a=[],l=new Set,s=new Set(o),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(tx.get(e)||0)+1,u=(i.get(e)||0)+1;tx.set(e,s),i.set(e,u),a.push(e),1===s&&o&&ty.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),tw++,function(){a.forEach(function(e){var t=tx.get(e)-1,o=i.get(e)-1;tx.set(e,t),i.set(e,o),t||(ty.has(e)||e.removeAttribute(r),ty.delete(e)),o||e.removeAttribute(n)}),--tw||(tx=new WeakMap,tx=new WeakMap,ty=new WeakMap,tb={})}},tC=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tN(r,o,n,"aria-hidden")):function(){return null}},tj=function(){return(tj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tR(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var tS=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tA="width-before-scroll-bar";function tO(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tP="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,tT=new WeakMap,tL=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],a=!1,l={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var n=i;
1i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=tj({async:!0,ssr:!1},r),l),tk=function(){},tM=f.forwardRef(function(e,t){var n,r,o,i,a=f.useRef(null),l=f.useState({onScrollCapture:tk,onWheelCapture:tk,onTouchMoveCapture:tk}),s=l[0],u=l[1],c=e.forwardProps,d=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,v=e.sideCar,x=e.noRelative,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,E=e.as,N=e.gapMode,C=tR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=(n=[a,t],r=function(e){return n.forEach(function(t){return tO(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,tP(function(){var e=tT.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tO(e,null)}),r.forEach(function(e){t.has(e)||tO(e,o)})}tT.set(i,n)},[n]),i),R=tj(tj({},C),s);return f.createElement(f.Fragment,null,h&&f.createElement(v,{sideCar:tL,removeScrollBar:m,shards:g,noRelative:x,noIsolation:y,inert:b,setCallbacks:u,allowPinchZoom:!!w,lockRef:a,gapMode:N}),c?f.cloneElement(f.Children.only(d),tj(tj({},R),{ref:j})):f.createElement(void 0===E?"div":E,tj({},R,{className:p,ref:j}),d))});tM.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tM.classNames={fullWidth:tA,zeroRight:tS};var tD=function(e){var t=e.sideCar,n=tR(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,tj({},n))};tD.isSideCarExport=!0;var tF=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tW=function(){var e=tF();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},t_=function(){var e=tW();return function(t){return e(t.styles,t.dynamic),null}},tI={left:0,top:0,right:0,gap:0},t$=function(e){return parseInt(e||"",10)||0},tB=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[t$(n),t$(r),t$(o)]},tz=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tI;var t=tB(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tH=t_(),tU="data-scroll-locked",tX=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(tU,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tS," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tA," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tS," .").concat(tS," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tA," .").concat(tA," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tU,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},tV=function(){var e=parseInt(document.body.getAttribute(tU)||"0",10);return isFinite(e)?e:0},tK=function(){f.useEffect(function(){return document.body.setAttribute(tU,(tV()+1).toString()),function(){var e=tV()-1;e<=0?document.body.removeAttribute(tU):document.body.setAttribute(tU,e.toString())}},[])},tY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tK();var i=f.useMemo(function(){return tz(o)},[o]);return f.createElement(tH,{styles:tX(i,!t,o,n?"":"!important")})},tq=!1;if("undefined"!=typeof window)try{var tZ=Object.defineProperty({},"passive",{get:function(){return tq=!0,!0}});window.addEventListener("test",tZ,tZ),window.removeEventListener("test",tZ,tZ)}catch(e){tq=!1}var tG=!!tq&&{passive:!1},tJ=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tQ=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t0(e,r)){var o=t1(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},t0=function(e,t){return"v"===e?tJ(t,"overflowY"):tJ(t,"overflowX")},t1=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t2=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;
1do{if(!s)break;var m=t1(e,s),h=m[0],g=m[1]-m[2]-a*h;(h||g)&&t0(e,s)&&(f+=g,p+=h);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&s!==document.body||u&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},t5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t3=function(e){return[e.deltaX,e.deltaY]},t4=function(e){return e&&"current"in e?e.current:e},t6=0,t7=[];let t8=(s=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(t6++)[0],i=f.useState(t_)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(t4),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=t5(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=tQ(d,c);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=tQ(d,c)),!m)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return t2(h,t,e,"h"===h?s:u,!0)},[]),s=f.useCallback(function(e){if(t7.length&&t7[t7.length-1]===i){var n="deltaY"in e?t3(e):t5(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(t4).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=f.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=f.useCallback(function(e){n.current=t5(e),r.current=void 0},[]),d=f.useCallback(function(t){u(t.type,t3(t),t.target,l(t,e.lockRef.current))},[]),p=f.useCallback(function(t){u(t.type,t5(t),t.target,l(t,e.lockRef.current))},[]);f.useEffect(function(){return t7.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,tG),document.addEventListener("touchmove",s,tG),document.addEventListener("touchstart",c,tG),function(){t7=t7.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,tG),document.removeEventListener("touchmove",s,tG),document.removeEventListener("touchstart",c,tG)}},[]);var m=e.removeScrollBar,h=e.inert;return f.createElement(f.Fragment,null,h?f.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?f.createElement(tY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tL.useMedium(s),tD);var t9=f.forwardRef(function(e,t){return f.createElement(tM,tj({},e,{ref:t,sideCar:t8}))});t9.classNames=tM.classNames;var ne="Popover",[nt,nn]=b(ne,[e9]),nr=e9(),[no,ni]=nt(ne),na=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=nr(t),s=f.useRef(null),[u,c]=f.useState(!1),[p=!1,m]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=f.useState(e),[r]=n,o=f.useRef(r),i=C(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=C(n);return[a,f.useCallback(t=>{if(i){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[i,e,o,l])]}({prop:r,defaultProp:o,onChange:i});return(0,d.jsx)(tn,{...l,children:(0,d.jsx)(no,{scope:t,contentId:function(e){let[t,n]=f.useState(z());return B(()=>{n(e=>e??String(H++))},[void 0]),t?`radix-${t}`:""}(),triggerRef:s,open:p,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:f.useCallback(()=>c(!0),[]),onCustomAnchorRemove:f.useCallback(()=>c(!1),[]),modal:a,children:n})})};na.displayName=ne;var nl="PopoverAnchor";f.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,o=ni(nl,n),i=nr(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return f.useEffect(()=>(a(),()=>l()),[a,l]),(0,d.jsx)(to,{...i,...r,ref:t})}).displayName=nl;var ns="PopoverTrigger",nu=f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=ni(ns,n),i=nr(n),a=(0,y.useComposedRefs)(t,o.triggerRef),l=(0,d.jsx)(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nb(o.open),...r,ref:a,onClick:x(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,d.jsx)(to,{asChild:!0,...i,children:l})});nu.displayName=ns;var nc="PopoverPortal",[nd,nf]=nt(nc,{forceMount:void 0}),np=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ni(nc,t);return(0,d.jsx)(nd,{scope:t,forceMount:n,children:(0,d.jsx)(tg,{present:n||i.open,children:(0,d.jsx)(th,{asChild:!0,container:o,children:r})})})};np.displayName=nc;var nm="PopoverContent",nh=f.forwardRef((e,t)=>{let n=nf(nm,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ni(nm,e.__scopePopover);return(0,d.jsx)(tg,{present:r||i.open,children:i.modal?(0,d.jsx)(ng,{...o,ref:t}):(0,d.jsx)(nv,{...o,ref:t})})});nh.displayName=nm;var ng=f.forwardRef((e,t)=>{let n=ni(nm,e.__scopePopover),r=f.useRef(null),o=(0,y.useComposedRefs)(t,r),i=f.useRef(!1);return f.useEffect(()=>{let e=r.current;if(e)return tC(e)},[]),(0,d.jsx)(t9,{as:E.Slot,allowPinchZoom:!0,children:(0,d.jsx)(nx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:x(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:x(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nv=f.forwardRef((e,t)=>{let n=ni(nm,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return(0,d.jsx)(nx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),nx=f.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,...p}=e,m=ni(nm,n),h=nr(n);return f.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??T()),document.body.insertAdjacentElement("beforeend",e[1]??T()),P++,()=>{1===P&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),P--}},[]),(0,d.jsx)(D,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,d.jsx)(S,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:(0,d.jsx)(ts,{"data-state":nb(m.open),role:"dialog",id:m.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ny="PopoverClose";function nb(e){return e?"open":"closed"}f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=ni(ny,n);return(0,d.jsx)(N.button,{type:"button",...r,ref:t,onClick:x(e.onClick,()=>o.onOpenChange(!1))})}).displayName=ny,f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=nr(n);return(0,d.jsx)(td,{...o,...r,ref:t})}).displayName="PopoverArrow";var nw=e.i(47163);function nE({...e}){return(0,d.jsx)(na,{"data-slot":"popover",...e})}function nN({...e}){return(0,d.jsx)(nu,{"data-slot":"popover-trigger",...e})}function nC({className:e,align:t="center",sideOffset:n=4,...r}){return(0,d.jsx)(np,{children:(0,d.jsx)(nh,{"data-slot":"popover-content",align:t,sideOffset:n,className:(0,nw.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var nj=e.i(64659),nR=e.i(37727),nS=e.i(68849);let nA=(0,nS.getPublishedCaseStudies)().map(e=>({id:e.id,title:e.title,description:e.description,image:e.image,imagePosition:e.imagePosition,industry:e.industry,productType:e.productType,outcome:e.outcome,tags:e.tags,link:e.href})),nO=(0,nS.getComingSoonCaseStudies)().map(e=>({id:e.id,title:e.title,description:e.description,image:e.image,link:e.href,label:e.comingSoonLabel??"Coming soon"})),nP=e=>Array.from(new Set(e)).sort(),nT=nP(nA.map(e=>e.industry)),nL=nP(nA.map(e=>e.productType)),nk=nP(nA.map(e=>e.outcome));function nM({label:e,options:t,selected:n,onToggle:r,open:o,onOpenChange:i}){return(0,d.jsxs)(nE,{open:o,onOpenChange:i,children:[(0,d.jsx)(nN,{asChild:!0,children:(0,d.jsxs)("button",{type:"button",className:`flex items-center gap-2 px-6 py-3 rounded-full bg-white border-2 transition-colors text-gray-700 font-medium ${n.length>0?"border-indigo-500 bg-indigo-50":"border-indigo-200 hover:border-indigo-400"}`,children:[(0,d.jsxs)("span",{className:"text-sm",children:[e," ",n.length>0&&`(${n.length})`]}),(0,d.jsx)(nj.ChevronDown,{className:`w-4 h-4 transition-transform ${o?"rotate-180":""}`})]})}),(0,d.jsx)(nC,{align:"center",sideOffset:8,className:"w-72 p-2 max-h-96 overflow-y-auto rounded-2xl shadow-2xl",children:t.map(e=>{let t=n.includes(e);return(0,d.jsxs)("button",{type:"button",onClick:()=>r(e),className:`w-full text-left px-4 py-3 rounded-xl hover:bg-indigo-50 transition-colors flex items-center justify-between ${t?"bg-indigo-100 text-indigo-700 font-semibold":"text-gray-700"}`,children:[(0,d.jsx)("span",{children:e}),t?(0,d.jsx)("div",{className:"w-5 h-5 rounded bg-indigo-600 flex items-center justify-center",children:(0,d.jsx)("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}):null]},e)})})]})}function nD(){let[e,t]=(0,f.useState)([]),[n,r]=(0,f.useState)([]),[o,i]=(0,f.useState)([]),[a,l]=(0,f.useState)(null),s=nA.filter(t=>{let r=0===e.length||e.includes(t.industry),i=0===n.length||n.includes(t.productType),a=0===o.length||o.includes(t.outcome);return r&&i&&a}),u=()=>{t([]),r([]),i([])},c=e.length>0||n.length>0||o.length>0;return(0,d.jsxs)("main",{className:"min-h-screen bg-white",children:[(0,d.jsx)(h.Navbar,{}),(0,d.jsxs)("section",{className:"relative pt-32 pb-16 overflow-hidden",children:[(0,d.jsxs)("div",{className:"absolute inset-0 bg-violet-950",children:[(0,d.jsx)("div",{className:"absolute top-10 left-10 w-96 h-96 rounded-full bg-amber-500/20 blur-3xl animate-pulse",style:{animation:"float 20s ease-in-out infinite"}}),(0,d.jsx)("div",{className:"absolute top-1/4 right-20 w-80 h-80 rounded-full bg-teal-500/20 blur-3xl animate-pulse",style:{animation:"float 25s ease-in-out infinite 5s"}}),(0,d.jsx)("div",{className:"absolute bottom-20 left-1/4 w-72 h-72 rounded-full bg-rose-500/20 blur-3xl animate-pulse",style:{animation:"float 30s ease-in-out infinite 10s"}}),(0,d.jsx)("div",{className:"absolute bottom-1/3 right-1/3 w-64 h-64 rounded-full bg-cyan-500/20 blur-3xl animate-pulse",style:{animation:"float 22s ease-in-out infinite 3s"}}),(0,d.jsx)("div",{className:"absolute top-1/2 left-1/2 w-56 h-56 rounded-full bg-fuchsia-500/20 blur-3xl animate-pulse",style:{animation:"float 28s ease-in-out infinite 7s"}})]}),(0,d.jsx)("div",{className:"container mx-auto px-6 relative z-10",children:(0,d.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,d.jsx)("h1",{className:"text-5xl md:text-6xl lg:text-7xl font-bold mb-6 text-white leading-tight",children:"Real Projects. Real Results."}),(0,d.jsx)("p",{className:"text-xl md:text-2xl text-white/90 leading-relaxed",children:"Explore how we take connected products from hardware and firmware through cloud dashboards and the mobile apps people actually use."})]})})]}),(0,d.jsx)("section",{className:"relative z-40 bg-white/95 backdrop-blur-md border-b border-gray-200 py-6",children:(0,d.jsxs)("div",{className:"container mx-auto px-6",children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-4 items-center justify-center mb-4",children:[(0,d.jsx)(nM,{label:"Industry",options:nT,selected:e,onToggle:e=>{t(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},open:"industry"===a,onOpenChange:e=>l(e?"industry":null)}),(0,d.jsx)(nM,{label:"Product Type",options:nL,selected:n,onToggle:e=>{r(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},open:"product"===a,onOpenChange:e=>l(e?"product":null)}),(0,d.jsx)(nM,{label:"Outcome",options:nk,selected:o,onToggle:e=>{i(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},open:"outcome"===a,onOpenChange:e=>l(e?"outcome":null)}),c&&(0,d.jsxs)("button",{onClick:u,className:"px-6 py-3 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors text-gray-700 font-medium text-sm flex items-center gap-2",children:[(0,d.jsx)(nR.X,{className:"w-4 h-4"}),"Clear All"]})]}),c&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 justify-center",children:[e.map(e=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-indigo-100 text-indigo-700 font-medium text-sm",children:[e,(0,d.jsx)("button",{onClick:()=>{t(t=>t.filter(t=>t!==e))},className:"hover:bg-indigo-200 rounded-full p-0.5 transition-colors",children:(0,d.jsx)(nR.X,{className:"w-3 h-3"})})]},e)),n.map(e=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-indigo-100 text-indigo-700 font-medium text-sm",children:[e,(0,d.jsx)("button",{onClick:()=>{r(t=>t.filter(t=>t!==e))},className:"hover:bg-indigo-200 rounded-full p-0.5 transition-colors",children:(0,d.jsx)(nR.X,{className:"w-3 h-3"})})]},e)),o.map(e=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-indigo-100 text-indigo-700 font-medium text-sm",children:[e,(0,d.jsx)("button",{onClick:()=>{i(t=>t.filter(t=>t!==e))},className:"hover:bg-indigo-200 rounded-full p-0.5 transition-colors",children:(0,d.jsx)(nR.X,{className:"w-3 h-3"})})]},e))]})]})}),(0,d.jsx)("section",{className:"py-24 bg-gray-50",children:(0,d.jsx)("div",{className:"container mx-auto px-6",children:0===s.length?(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-xl text-gray-600 mb-4",children:"No case studies match your filters."}),(0,d.jsx)(v.Button,{onClick:u,variant:"outline",children:"Clear All Filters"})]}):(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map(e=>(0,d.jsxs)(p.default,{href:e.link,className:"group bg-white rounded-3xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col border border-gray-100",children:[(0,d.jsx)("div",{className:"relative h-64 overflow-hidden bg-gray-100",children:(0,d.jsx)(m.default,{src:e.image||"/placeholder.svg",alt:e.title,fill:!0,className:`object-cover ${e.imagePosition??"object-center"} group-hover:scale-105 transition-transform duration-500`})}),(0,d.jsxs)("div",{className:"p-6",children:[(0,d.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:e.tags.map(e=>{let t;return(0,d.jsx)("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${(t=e.toLowerCase()).includes("iot")||t.includes("mobile")||t.includes("web")||t.includes("app")||t.includes("dashboard")||t.includes("saas")?"bg-blue-50 text-blue-700":t.includes("healthcare")||t.includes("telemedicine")||t.includes("fintech")||t.includes("real estate")||t.includes("proptech")||t.includes("social media")?"bg-purple-50 text-purple-700":t.includes("hardware")||t.includes("integration")||t.includes("smart")||t.includes("analytics")||t.includes("hipaa")||t.includes("payment")?"bg-indigo-50 text-indigo-700":t.includes("marketplace")||t.includes("e-commerce")||t.includes("b2b")||t.includes("community")||t.includes("investment")||t.includes("project")?"bg-emerald-50 text-emerald-700":"bg-teal-50 text-teal-700"}`,children:e},e)})}),(0,d.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-2 group-hover:text-violet-600 transition-colors",children:e.title}),(0,d.jsx)("p",{className:"text-gray-600 leading-relaxed mb-4 line-clamp-2",children:e.description}),(0,d.jsxs)("div",{className:"mt-8 flex items-center gap-2 text-sm font-medium text-gray-400 group-hover:text-violet-600 transition-colors",children:["Learn more"," ",(0,d.jsx)("div",{className:"w-4 h-[1px] bg-current transition-all group-hover:w-8"})]})]})]},e.id))})})}),nO.length>0?(0,d.jsx)("section",{className:"py-20 bg-white border-t border-gray-200",children:(0,d.jsxs)("div",{className:"container mx-auto px-6",children:[(0,d.jsxs)("div",{className:"text-center mb-12 max-w-2xl mx-auto",children:[(0,d.jsx)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-4",children:"Coming soon"}),(0,d.jsx)("p",{className:"text-lg text-gray-600",children:"Work in progress - teaser pages with more detail as we ship and gather assets."})]}),(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto",children:nO.map(e=>(0,d.jsxs)(p.default,{href:e.link,className:"group bg-gray-50 rounded-3xl overflow-hidden border border-gray-200 hover:border-violet-200 hover:shadow-lg transition-all",children:[(0,d.jsx)("div",{className:"relative h-48 bg-gradient-to-br from-slate-800 to-violet-900 flex items-center justify-center",children:(0,d.jsx)("span",{className:"px-3 py-1 rounded-full bg-white/15 text-white text-xs font-semibold border border-white/20",children:e.label})}),(0,d.jsxs)("div",{className:"p-6",children:[(0,d.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-violet-600 transition-colors",children:e.title}),(0,d.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed",children:e.description})]})]},e.id))})]})}):null,(0,d.jsx)(g.Footer,{})]})}e.s(["default",()=>nD],2893)}]);

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.