1 line
No EOL
90 KiB
JavaScript
1 line
No EOL
90 KiB
JavaScript
(()=>{var e={};e.id=253,e.ids=[253],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7496:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>a.a,__next_app__:()=>d,pages:()=>c,routeModule:()=>f,tree:()=>u});var r=n(65239),o=n(48088),i=n(88170),a=n.n(i),l=n(30893),s={};for(let e in l)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(s[e]=()=>l[e]);n.d(t,s);let u={children:["",{children:["laser-toolkit",{children:["power-lens-scaler",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.bind(n,98986)),"/app/app/laser-toolkit/power-lens-scaler/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(n.bind(n,58014)),"/app/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(n.t.bind(n,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(n.t.bind(n,65284,23)),"next/dist/client/components/unauthorized-error"]}]}.children,c=["/app/app/laser-toolkit/power-lens-scaler/page.tsx"],d={require:n,loadChunk:()=>Promise.resolve()},f=new r.AppPageRouteModule({definition:{kind:o.RouteKind.APP_PAGE,page:"/laser-toolkit/power-lens-scaler/page",pathname:"/laser-toolkit/power-lens-scaler",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:u}})},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11392:(e,t,n)=>{Promise.resolve().then(n.bind(n,76906))},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23032:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(60687),o=n(85814),i=n.n(o);function a({title:e,subtitle:t,children:n}){return(0,r.jsxs)("div",{className:"mx-auto max-w-4xl px-4 py-8 space-y-6",children:[(0,r.jsxs)("header",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:e}),t&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:t})]}),(0,r.jsx)(i(),{href:"https://makearmy.io",className:"rounded-lg px-3 py-2 border hover:bg-muted transition-colors text-sm",children:"Back to Main Menu"})]}),n]})}},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:e=>{"use strict";e.exports=require("path")},36319:()=>{},55192:(e,t,n)=>{"use strict";n.d(t,{Wu:()=>u,ZB:()=>s,Zp:()=>a,aR:()=>l});var r=n(60687),o=n(43210),i=n(96241);let a=o.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,i.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));a.displayName="Card";let l=o.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",e),...t}));l.displayName="CardHeader";let s=o.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t}));s.displayName="CardTitle",o.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,i.cn)("text-sm text-muted-foreground",e),...t})).displayName="CardDescription";let u=o.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,i.cn)("p-6 pt-0",e),...t}));u.displayName="CardContent",o.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,i.cn)("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter"},56444:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,16444,23)),Promise.resolve().then(n.t.bind(n,16042,23)),Promise.resolve().then(n.t.bind(n,88170,23)),Promise.resolve().then(n.t.bind(n,49477,23)),Promise.resolve().then(n.t.bind(n,29345,23)),Promise.resolve().then(n.t.bind(n,12089,23)),Promise.resolve().then(n.t.bind(n,46577,23)),Promise.resolve().then(n.t.bind(n,31307,23))},58014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,metadata:()=>o});var r=n(37413);n(90061);let o={title:"LE-DB",description:"Laser Everything Community Database"};function i({children:e}){return(0,r.jsx)("html",{lang:"en",className:"dark",children:(0,r.jsx)("body",{children:e})})}},62688:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(43210);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},l=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),s=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:i="",children:a,iconNode:c,...d},f)=>(0,r.createElement)("svg",{ref:f,...u,width:t,height:t,stroke:e,strokeWidth:o?24*Number(n)/Number(t):n,className:l("lucide",i),...!a&&!s(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(a)?a:[a]])),d=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...i},s)=>(0,r.createElement)(c,{ref:s,iconNode:t,className:l(`lucide-${o(a(e))}`,`lucide-${e}`,n),...i}));return n.displayName=a(e),n}},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66172:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,86346,23)),Promise.resolve().then(n.t.bind(n,27924,23)),Promise.resolve().then(n.t.bind(n,35656,23)),Promise.resolve().then(n.t.bind(n,40099,23)),Promise.resolve().then(n.t.bind(n,38243,23)),Promise.resolve().then(n.t.bind(n,28827,23)),Promise.resolve().then(n.t.bind(n,62763,23)),Promise.resolve().then(n.t.bind(n,97173,23))},68988:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(60687),o=n(43210),i=n(96241);let a=o.forwardRef(({className:e,type:t="text",...n},o)=>(0,r.jsx)("input",{type:t,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm","shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...n}));a.displayName="Input"},76906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>rB});var r,o,i,a=n(60687),l=n(43210),s=n.t(l,2),u=n(23032),c=n(55192),d=n(68988),f=n(51215);function p(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function m(...e){return t=>{let n=!1,r=e.map(e=>{let r=p(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():p(e[t],null)}}}}function h(...e){return l.useCallback(m(...e),e)}function v(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i,a=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(s.ref=t?m(t,a):a),l.cloneElement(n,s)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),s=i.find(x);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,a.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var g=Symbol("radix.slottable");function x(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),w=l.forwardRef((e,t)=>(0,a.jsx)(y.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));w.displayName="Label";var b=n(96241);let j=l.forwardRef(({className:e,...t},n)=>(0,a.jsx)(w,{ref:n,className:(0,b.cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));function S(e,[t,n]){return Math.min(n,Math.max(t,e))}j.displayName="Label";var E=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function C(e,t=[]){let n=[],r=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=l.createContext(r),i=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,u=n?.[e]?.[i]||o,c=l.useMemo(()=>s,Object.values(s));return(0,a.jsx)(u.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,a){let s=a?.[e]?.[i]||o,u=l.useContext(s);if(u)return u;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 l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var R=new WeakMap;function P(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=k(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function k(e){return e!=e||0===e?0:Math.trunc(e)}var M=l.createContext(void 0),A=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function T(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function D(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}var O="dismissableLayer.update",I=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),W=l.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:c,...d}=e,f=l.useContext(I),[p,m]=l.useState(null),v=p?.ownerDocument??globalThis?.document,[,g]=l.useState({}),x=h(t,e=>m(e)),y=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(w),j=p?y.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,E=j>=b,N=function(e,t=globalThis?.document){let n=D(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){H("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=[...f.branches].some(e=>e.contains(t));E&&!n&&(i?.(e),u?.(e),e.defaultPrevented||c?.())},v),C=function(e,t=globalThis?.document){let n=D(e),r=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!r.current&&H("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;![...f.branches].some(e=>e.contains(t))&&(s?.(e),u?.(e),e.defaultPrevented||c?.())},v);return!function(e,t=globalThis?.document){let n=D(e);l.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=>{j===f.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},v),l.useEffect(()=>{if(p)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(o=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),F(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=o)}},[p,v,n,f]),l.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),F())},[p,f]),l.useEffect(()=>{let e=()=>g({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),(0,a.jsx)(L.div,{...d,ref:x,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,C.onFocusCapture),onBlurCapture:T(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,N.onPointerDownCapture)})});function F(){let e=new CustomEvent(O);document.dispatchEvent(e)}function H(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&&f.flushSync(()=>o.dispatchEvent(i));else o.dispatchEvent(i)}W.displayName="DismissableLayer",l.forwardRef((e,t)=>{let n=l.useContext(I),r=l.useRef(null),o=h(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(L.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var _=0;function B(){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 $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),z="focusScope.autoFocusOnMount",q="focusScope.autoFocusOnUnmount",V={bubbles:!1,cancelable:!0},K=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[u,c]=l.useState(null),d=D(o),f=D(i),p=l.useRef(null),m=h(t,e=>c(e)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:Y(p.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||Y(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&&Y(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,v.paused]),l.useEffect(()=>{if(u){U.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(z,V);u.addEventListener(z,d),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Y(r,{select:t}),document.activeElement!==n)return}(Z(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Y(u))}return()=>{u.removeEventListener(z,d),setTimeout(()=>{let t=new CustomEvent(q,V);u.addEventListener(q,f),u.dispatchEvent(t),t.defaultPrevented||Y(e??document.body,{select:!0}),u.removeEventListener(q,f),U.remove(v)},0)}}},[u,d,f,v]);let g=l.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=Z(e);return[X(t,e),X(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Y(i,{select:!0})):(e.preventDefault(),n&&Y(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,a.jsx)($.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});function Z(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 X(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 Y(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()}}K.displayName="FocusScope";var U=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=G(e,t)).unshift(t)},remove(t){e=G(e,t),e[0]?.resume()}}}();function G(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var J=globalThis?.document?l.useLayoutEffect:()=>{},Q=s[" useId ".trim().toString()]||(()=>void 0),ee=0;function et(e){let[t,n]=l.useState(Q());return J(()=>{e||n(e=>e??String(ee++))},[e]),e||(t?`radix-${t}`:"")}let en=["top","right","bottom","left"],er=Math.min,eo=Math.max,ei=Math.round,ea=Math.floor,el=e=>({x:e,y:e}),es={left:"right",right:"left",bottom:"top",top:"bottom"},eu={start:"end",end:"start"};function ec(e,t){return"function"==typeof e?e(t):e}function ed(e){return e.split("-")[0]}function ef(e){return e.split("-")[1]}function ep(e){return"x"===e?"y":"x"}function em(e){return"y"===e?"height":"width"}let eh=new Set(["top","bottom"]);function ev(e){return eh.has(ed(e))?"y":"x"}function eg(e){return e.replace(/start|end/g,e=>eu[e])}let ex=["left","right"],ey=["right","left"],ew=["top","bottom"],eb=["bottom","top"];function ej(e){return e.replace(/left|right|bottom|top/g,e=>es[e])}function eS(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eE(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 eN(e,t,n){let r,{reference:o,floating:i}=e,a=ev(t),l=ep(ev(t)),s=em(l),u=ed(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(ef(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}let eC=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=eN(u,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){let{name:i,fn:h}=l[n],{x:v,y:g,data:x,reset:y}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...x}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:c,y:d}=eN(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function eR(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}=ec(t,e),m=eS(p),h=l[f?"floating"===d?"reference":"floating":d],v=eE(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})),g="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},w=eE(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:x,strategy:s}):g);return{top:(v.top-w.top+m.top)/y.y,bottom:(w.bottom-v.bottom+m.bottom)/y.y,left:(v.left-w.left+m.left)/y.x,right:(w.right-v.right+m.right)/y.x}}function eP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ek(e){return en.some(t=>e[t]>=0)}let eM=new Set(["left","top"]);async function eA(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=ed(n),l=ef(n),s="y"===ev(n),u=eM.has(a)?-1:1,c=i&&s?-1:1,d=ec(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 eT(){return"undefined"!=typeof window}function eL(e){return eI(e)?(e.nodeName||"").toLowerCase():"#document"}function eD(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eO(e){var t;return null==(t=(eI(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eI(e){return!!eT()&&(e instanceof Node||e instanceof eD(e).Node)}function eW(e){return!!eT()&&(e instanceof Element||e instanceof eD(e).Element)}function eF(e){return!!eT()&&(e instanceof HTMLElement||e instanceof eD(e).HTMLElement)}function eH(e){return!!eT()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eD(e).ShadowRoot)}let e_=new Set(["inline","contents"]);function eB(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eJ(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!e_.has(o)}let e$=new Set(["table","td","th"]),ez=[":popover-open",":modal"];function eq(e){return ez.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eV=["transform","translate","scale","rotate","perspective"],eK=["transform","translate","scale","rotate","perspective","filter"],eZ=["paint","layout","strict","content"];function eX(e){let t=eY(),n=eW(e)?eJ(e):e;return eV.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||eK.some(e=>(n.willChange||"").includes(e))||eZ.some(e=>(n.contain||"").includes(e))}function eY(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eU=new Set(["html","body","#document"]);function eG(e){return eU.has(eL(e))}function eJ(e){return eD(e).getComputedStyle(e)}function eQ(e){return eW(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e0(e){if("html"===eL(e))return e;let t=e.assignedSlot||e.parentNode||eH(e)&&e.host||eO(e);return eH(t)?t.host:t}function e1(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=e0(t);return eG(n)?t.ownerDocument?t.ownerDocument.body:t.body:eF(n)&&eB(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=eD(o);if(i){let e=e2(a);return t.concat(a,a.visualViewport||[],eB(o)?o:[],e&&n?e1(e):[])}return t.concat(o,e1(o,[],n))}function e2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e3(e){let t=eJ(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eF(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ei(n)!==i||ei(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function e6(e){return eW(e)?e:e.contextElement}function e4(e){let t=e6(e);if(!eF(t))return el(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=e3(t),a=(i?ei(n.width):n.width)/r,l=(i?ei(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let e9=el(0);function e5(e){let t=eD(e);return eY()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e9}function e8(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=e6(e),l=el(1);t&&(r?eW(r)&&(l=e4(r)):l=e4(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===eD(a))&&o)?e5(a):el(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){let e=eD(a),t=r&&eW(r)?eD(r):r,n=e,o=e2(n);for(;o&&r&&t!==n;){let e=e4(o),t=o.getBoundingClientRect(),r=eJ(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=e2(n=eD(o))}}return eE({width:d,height:f,x:u,y:c})}function e7(e,t){let n=eQ(e).scrollLeft;return t?t.left+n:e8(eO(e)).left+n}function te(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:e7(e,r)),y:r.top+t.scrollTop}}let tt=new Set(["absolute","fixed"]);function tn(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=eD(e),r=eO(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let e=eY();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){let t=eO(e),n=eQ(e),r=e.ownerDocument.body,o=eo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=eo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+e7(e),l=-n.scrollTop;return"rtl"===eJ(r).direction&&(a+=eo(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(eO(e));else if(eW(t))r=function(e,t){let n=e8(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=eF(e)?e4(e):el(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:a,height:l,x:o*i.x,y:r*i.y}}(t,n);else{let n=e5(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eE(r)}function tr(e){return"static"===eJ(e).position}function to(e,t){if(!eF(e)||"fixed"===eJ(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eO(e)===n&&(n=n.ownerDocument.body),n}function ti(e,t){var n;let r=eD(e);if(eq(e))return r;if(!eF(e)){let t=e0(e);for(;t&&!eG(t);){if(eW(t)&&!tr(t))return t;t=e0(t)}return r}let o=to(e,t);for(;o&&(n=o,e$.has(eL(n)))&&tr(o);)o=to(o,t);return o&&eG(o)&&tr(o)&&!eX(o)?r:o||function(e){let t=e0(e);for(;eF(t)&&!eG(t);){if(eX(t))return t;if(eq(t))break;t=e0(t)}return null}(e)||r}let ta=async function(e){let t=this.getOffsetParent||ti,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eF(t),o=eO(t),i="fixed"===n,a=e8(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=el(0);if(r||!r&&!i)if(("body"!==eL(t)||eB(o))&&(l=eQ(t)),r){let e=e8(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=e7(o));i&&!r&&o&&(s.x=e7(o));let u=!o||r||i?el(0):te(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}}},tl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=eO(r),l=!!t&&eq(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=el(1),c=el(0),d=eF(r);if((d||!d&&!i)&&(("body"!==eL(r)||eB(a))&&(s=eQ(r)),eF(r))){let e=e8(r);u=e4(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?el(0):te(a,s,!0);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:eO,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eq(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=e1(e,[],!1).filter(e=>eW(e)&&"body"!==eL(e)),o=null,i="fixed"===eJ(e).position,a=i?e0(e):e;for(;eW(a)&&!eG(a);){let t=eJ(a),n=eX(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&tt.has(o.position)||eB(a)&&!n&&function e(t,n){let r=e0(t);return!(r===n||!eW(r)||eG(r))&&("fixed"===eJ(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=e0(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=tn(t,n,o);return e.top=eo(r.top,e.top),e.right=er(r.right,e.right),e.bottom=er(r.bottom,e.bottom),e.left=eo(r.left,e.left),e},tn(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ti,getElementRects:ta,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=e3(e);return{width:t,height:n}},getScale:e4,isElement:eW,isRTL:function(e){return"rtl"===eJ(e).direction}};function ts(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tu=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}=ec(e,t)||{};if(null==u)return{};let d=eS(c),f={x:n,y:r},p=ep(ev(o)),m=em(p),h=await a.getDimensions(u),v="y"===p,g=v?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[p]-f[p]-i.floating[m],y=f[p]-i.reference[p],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),b=w?w[g]:0;b&&await (null==a.isElement?void 0:a.isElement(w))||(b=l.floating[g]||i.floating[m]);let j=b/2-h[m]/2-1,S=er(d[v?"top":"left"],j),E=er(d[v?"bottom":"right"],j),N=b-h[m]-E,C=b/2-h[m]/2+(x/2-y/2),R=eo(S,er(C,N)),P=!s.arrow&&null!=ef(o)&&C!==R&&i.reference[m]/2-(C<S?S:E)-h[m]/2<0,k=P?C<S?C-S:C-N:0;return{[p]:f[p]+k,data:{[p]:R,centerOffset:C-R-k,...P&&{alignmentOffset:k}},reset:P}}}),tc=(e,t,n)=>{let r=new Map,o={platform:tl,...n},i={...o.platform,_c:r};return eC(e,t,{...o,platform:i})};var td="undefined"!=typeof document?l.useLayoutEffect:function(){};function tf(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(!tf(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)&&!tf(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tm(e,t){let n=tp(e);return Math.round(t*n)/n}function th(e){let t=l.useRef(e);return td(()=>{t.current=e}),t}let tv=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tu({element:n.current,padding:r}).fn(t):{}:n?tu({element:n,padding:r}).fn(t):{}}}),tg=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,s=await eA(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}}(e),options:[e,t]}),tx=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=ec(e,t),u={x:n,y:r},c=await eR(t,s),d=ev(ed(o)),f=ep(d),p=u[f],m=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=eo(n,er(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+c[e],r=m-c[t];m=eo(n,er(m,r))}let h=l.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}}(e),options:[e,t]}),ty=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=ec(e,t),c={x:n,y:r},d=ev(o),f=ep(d),p=c[f],m=c[d],h=ec(l,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var g,x;let e="y"===f?"width":"height",t=eM.has(ed(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}}(e),options:[e,t]}),tw=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a;let{placement:l,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...y}=ec(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let w=ed(l),b=ev(c),j=ed(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=h||(j||!x?[ej(c)]:function(e){let t=ej(e);return[eg(e),t,eg(t)]}(c)),N="none"!==g;!h&&N&&E.push(...function(e,t,n,r){let o=ef(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ey:ex;return t?ex:ey;case"left":case"right":return t?ew:eb;default:return[]}}(ed(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(eg)))),i}(c,x,g,S));let C=[c,...E],R=await eR(t,y),P=[],k=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&P.push(R[w]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=ef(e),o=ep(ev(e)),i=em(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ej(a)),[a,ej(a)]}(l,u,S);P.push(R[e[0]],R[e[1]])}if(k=[...k,{placement:l,overflows:P}],!P.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=C[e];if(t&&("alignment"!==m||b===ev(t)||k.every(e=>ev(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(i=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=k.filter(e=>{if(N){let t=ev(e.placement);return t===b||"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=c}if(l!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),tb=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:a,rects:l,platform:s,elements:u}=t,{apply:c=()=>{},...d}=ec(e,t),f=await eR(t,d),p=ed(a),m=ef(a),h="y"===ev(a),{width:v,height:g}=l.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let x=g-f.top-f.bottom,y=v-f.left-f.right,w=er(g-f[o],x),b=er(v-f[i],y),j=!t.middlewareData.shift,S=w,E=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=x),j&&!m){let e=eo(f.left,0),t=eo(f.right,0),n=eo(f.top,0),r=eo(f.bottom,0);h?E=v-2*(0!==e||0!==t?e+t:eo(f.left,f.right)):S=g-2*(0!==n||0!==r?n+r:eo(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:S});let N=await s.getDimensions(u.floating);return v!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),tj=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=ec(e,t);switch(r){case"referenceHidden":{let e=eP(await eR(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ek(e)}}}case"escaped":{let e=eP(await eR(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ek(e)}}}default:return{}}}}}(e),options:[e,t]}),tS=(e,t)=>({...tv(e),options:[e,t]});var tE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tN=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(tE.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tN.displayName="Arrow";var tC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tR="Popper",[tP,tk]=C(tR),[tM,tA]=tP(tR),tT=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,a.jsx)(tM,{scope:t,anchor:r,onAnchorChange:o,children:n})};tT.displayName=tR;var tL="PopperAnchor",tD=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=tA(tL,n),s=l.useRef(null),u=h(t,s),c=l.useRef(null);return l.useEffect(()=>{let e=c.current;c.current=r?.current||s.current,e!==c.current&&i.onAnchorChange(c.current)}),r?null:(0,a.jsx)(tC.div,{...o,ref:u})});tD.displayName=tL;var tO="PopperContent",[tI,tW]=tP(tO),tF=l.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:x,...y}=e,w=tA(tO,n),[b,j]=l.useState(null),S=h(t,e=>j(e)),[E,N]=l.useState(null),C=function(e){let[t,n]=l.useState(void 0);return J(()=>{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}(E),R=C?.width??0,P=C?.height??0,k="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},M=Array.isArray(d)?d:[d],A=M.length>0,T={padding:k,boundary:M.filter(t$),altBoundary:A},{refs:L,floatingStyles:O,placement:I,isPositioned:W,middlewareData:F}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);tf(m,r)||h(r);let[v,g]=l.useState(null),[x,y]=l.useState(null),w=l.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),b=l.useCallback(e=>{e!==N.current&&(N.current=e,y(e))},[]),j=i||v,S=a||x,E=l.useRef(null),N=l.useRef(null),C=l.useRef(d),R=null!=u,P=th(u),k=th(o),M=th(c),A=l.useCallback(()=>{if(!E.current||!N.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),tc(E.current,N.current,e).then(e=>{let t={...e,isPositioned:!1!==M.current};T.current&&!tf(C.current,t)&&(C.current=t,f.flushSync(()=>{p(t)}))})},[m,t,n,k,M]);td(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let T=l.useRef(!1);td(()=>(T.current=!0,()=>{T.current=!1}),[]),td(()=>{if(j&&(E.current=j),S&&(N.current=S),j&&S){if(P.current)return P.current(j,S,A);A()}},[j,S,A,P,R]);let L=l.useMemo(()=>({reference:E,floating:N,setReference:w,setFloating:b}),[w,b]),D=l.useMemo(()=>({reference:j,floating:S}),[j,S]),O=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=tm(D.floating,d.x),r=tm(D.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...tp(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,D.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:A,refs:L,elements:D,floatingStyles:O}),[d,A,L,D,O])}({strategy:"fixed",placement:r+("center"!==i?"-"+i:""),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=e6(e),d=i||a?[...c?e1(c):[],...e1(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=eO(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;let m=ea(d),h=ea(o.clientWidth-(c+f)),v={rootMargin:-m+"px "+-h+"px "+-ea(o.clientHeight-(d+p))+"px "+-ea(c)+"px",threshold:eo(0,er(1,s))||1},g=!0;function x(t){let r=t[0].intersectionRatio;if(r!==s){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ts(u,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(x,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,v)}r.observe(e)}(!0),i}(c,n):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let h=u?e8(e):null;return u&&function t(){let r=e8(e);h&&!ts(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"===g}),elements:{reference:w.anchor},middleware:[tg({mainAxis:o+P,alignmentAxis:s}),c&&tx({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?ty():void 0,...T}),c&&tw({...T}),tb({...T,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`)}}),E&&tS({element:E,padding:u}),tz({arrowWidth:R,arrowHeight:P}),v&&tj({strategy:"referenceHidden",...T})]}),[H,_]=tq(I),B=D(x);J(()=>{W&&B?.()},[W,B]);let $=F.arrow?.x,z=F.arrow?.y,q=F.arrow?.centerOffset!==0,[V,K]=l.useState();return J(()=>{b&&K(window.getComputedStyle(b).zIndex)},[b]),(0,a.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:W?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(tI,{scope:n,placedSide:H,onArrowChange:N,arrowX:$,arrowY:z,shouldHideArrow:q,children:(0,a.jsx)(tC.div,{"data-side":H,"data-align":_,...y,ref:S,style:{...y.style,animation:W?void 0:"none"}})})})});tF.displayName=tO;var tH="PopperArrow",t_={top:"bottom",right:"left",bottom:"top",left:"right"},tB=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tW(tH,n),i=t_[o.placedSide];return(0,a.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,a.jsx)(tN,{...r,ref:t,style:{...r.style,display:"block"}})})});function t$(e){return null!==e}tB.displayName=tH;var tz=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]=tq(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 tq(e){let[t,n="center"]=e.split("-");return[t,n]}var tV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tK=l.forwardRef((e,t)=>{let{container:n,...r}=e,[o,i]=l.useState(!1);J(()=>i(!0),[]);let s=n||o&&globalThis?.document?.body;return s?f.createPortal((0,a.jsx)(tV.div,{...r,ref:t}),s):null});tK.displayName="Portal";var tZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tX=s[" useInsertionEffect ".trim().toString()]||J;function tY({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),o=l.useRef(n),i=l.useRef(t);return tX(()=>{i.current=t},[t]),l.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{let t=l.useRef(void 0!==e);l.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[u,l.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[s,e,i,a])]}Symbol("RADIX:SYNC_STATE");var tU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),tG=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});l.forwardRef((e,t)=>(0,a.jsx)(tU.span,{...e,ref:t,style:{...tG,...e.style}})).displayName="VisuallyHidden";var tJ=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tQ=new WeakMap,t0=new WeakMap,t1={},t2=0,t3=function(e){return e&&(e.host||t3(e.parentNode))},t6=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=t3(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});t1[n]||(t1[n]=new WeakMap);var i=t1[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=(tQ.get(e)||0)+1,u=(i.get(e)||0)+1;tQ.set(e,s),i.set(e,u),a.push(e),1===s&&o&&t0.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(),t2++,function(){a.forEach(function(e){var t=tQ.get(e)-1,o=i.get(e)-1;tQ.set(e,t),i.set(e,o),t||(t0.has(e)||e.removeAttribute(r),t0.delete(e)),o||e.removeAttribute(n)}),--t2||(tQ=new WeakMap,tQ=new WeakMap,t0=new WeakMap,t1={})}},t4=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||tJ(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),t6(r,o,n,"aria-hidden")):function(){return null}},t9=function(){return(t9=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 t5(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}Object.create;Object.create;var t8=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),t7="width-before-scroll-bar";function ne(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nt="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,nn=new WeakMap;function nr(e){return e}var no=function(e){void 0===e&&(e={});var t,n,r,o,i=(t=null,void 0===n&&(n=nr),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return i.options=t9({async:!0,ssr:!1},e),i}(),ni=function(){},na=l.forwardRef(function(e,t){var n,r,o,i,a=l.useRef(null),s=l.useState({onScrollCapture:ni,onWheelCapture:ni,onTouchMoveCapture:ni}),u=s[0],c=s[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,x=e.noRelative,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,j=e.as,S=e.gapMode,E=t5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(n=[a,t],r=function(e){return n.forEach(function(t){return ne(t,e)})},(o=(0,l.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,nt(function(){var e=nn.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||ne(e,null)}),r.forEach(function(e){t.has(e)||ne(e,o)})}nn.set(i,n)},[n]),i),C=t9(t9({},E),u);return l.createElement(l.Fragment,null,h&&l.createElement(g,{sideCar:no,removeScrollBar:m,shards:v,noRelative:x,noIsolation:y,inert:w,setCallbacks:c,allowPinchZoom:!!b,lockRef:a,gapMode:S}),d?l.cloneElement(l.Children.only(f),t9(t9({},C),{ref:N})):l.createElement(void 0===j?"div":j,t9({},C,{className:p,ref:N}),f))});na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},na.classNames={fullWidth:t7,zeroRight:t8};var nl=function(e){var t=e.sideCar,n=t5(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 l.createElement(r,t9({},n))};nl.isSideCarExport=!0;var ns=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nu=function(){var e=ns();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nc=function(){var e=nu();return function(t){return e(t.styles,t.dynamic),null}},nd={left:0,top:0,right:0,gap:0},nf=function(e){return parseInt(e||"",10)||0},np=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[nf(n),nf(r),nf(o)]},nm=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return nd;var t=np(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])}},nh=nc(),nv="data-scroll-locked",ng=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(nv,"] {\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(t8," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(t7," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(t8," .").concat(t8," {\n right: 0 ").concat(r,";\n }\n \n .").concat(t7," .").concat(t7," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(nv,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},nx=function(){var e=parseInt(document.body.getAttribute(nv)||"0",10);return isFinite(e)?e:0},ny=function(){l.useEffect(function(){return document.body.setAttribute(nv,(nx()+1).toString()),function(){var e=nx()-1;e<=0?document.body.removeAttribute(nv):document.body.setAttribute(nv,e.toString())}},[])},nw=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;ny();var i=l.useMemo(function(){return nm(o)},[o]);return l.createElement(nh,{styles:ng(i,!t,o,n?"":"!important")})},nb=!1;if("undefined"!=typeof window)try{var nj=Object.defineProperty({},"passive",{get:function(){return nb=!0,!0}});window.addEventListener("test",nj,nj),window.removeEventListener("test",nj,nj)}catch(e){nb=!1}var nS=!!nb&&{passive:!1},nE=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])},nN=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nC(e,r)){var o=nR(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nC=function(e,t){return"v"===e?nE(t,"overflowY"):nE(t,"overflowX")},nR=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nP=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;do{if(!s)break;var m=nR(e,s),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&nC(e,s)&&(f+=v,p+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}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},nk=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nM=function(e){return[e.deltaX,e.deltaY]},nA=function(e){return e&&"current"in e?e.current:e},nT=0,nL=[];let nD=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(nT++)[0],i=l.useState(nc)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.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(nA),!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 s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=nk(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=nN(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=nN(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return nP(p,t,e,"h"===p?s:u,!0)},[]),u=l.useCallback(function(e){if(nL.length&&nL[nL.length-1]===i){var n="deltaY"in e?nM(e):nk(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(nA).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.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)},[]),d=l.useCallback(function(e){n.current=nk(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,nM(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,nk(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return nL.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,nS),document.addEventListener("touchmove",u,nS),document.addEventListener("touchstart",d,nS),function(){nL=nL.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,nS),document.removeEventListener("touchmove",u,nS),document.removeEventListener("touchstart",d,nS)}},[]);var m=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?l.createElement(nw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},no.useMedium(r),nl);var nO=l.forwardRef(function(e,t){return l.createElement(na,t9({},e,{ref:t,sideCar:nD}))});nO.classNames=na.classNames;var nI=[" ","Enter","ArrowUp","ArrowDown"],nW=[" ","Enter"],nF="Select",[nH,n_,nB]=function(e){let t=e+"CollectionProvider",[n,r]=C(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=l.useRef(null),i=l.useRef(new Map).current;return(0,a.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;let u=e+"CollectionSlot",c=v(u),d=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=h(t,i(u,n).collectionRef);return(0,a.jsx)(c,{ref:o,children:r})});d.displayName=u;let f=e+"CollectionItemSlot",p="data-radix-collection-item",m=v(f),g=l.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,s=l.useRef(null),u=h(t,s),c=i(f,n);return l.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>void c.itemMap.delete(s))),(0,a.jsx)(m,{...{[p]:""},ref:u,children:r})});return g.displayName=f,[{Provider:s,Slot:d,ItemSlot:g},function(t){let n=i(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(nF),[n$,nz]=C(nF,[nB,tk]),nq=tk(),[nV,nK]=n$(nF),[nZ,nX]=n$(nF),nY=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:v}=e,g=nq(t),[x,y]=l.useState(null),[w,b]=l.useState(null),[j,S]=l.useState(!1),E=function(e){let t=l.useContext(M);return e||t||"ltr"}(d),[N,C]=tY({prop:r,defaultProp:o??!1,onChange:i,caller:nF}),[R,P]=tY({prop:s,defaultProp:u,onChange:c,caller:nF}),k=l.useRef(null),A=!x||v||!!x.closest("form"),[T,L]=l.useState(new Set),D=Array.from(T).map(e=>e.props.value).join(";");return(0,a.jsx)(tT,{...g,children:(0,a.jsxs)(nV,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:w,onValueNodeChange:b,valueNodeHasChildren:j,onValueNodeHasChildrenChange:S,contentId:et(),value:R,onValueChange:P,open:N,onOpenChange:C,dir:E,triggerPointerDownPosRef:k,disabled:m,children:[(0,a.jsx)(nH.Provider,{scope:t,children:(0,a.jsx)(nZ,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,a.jsxs)(rE,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:R,onChange:e=>P(e.target.value),disabled:m,form:v,children:[void 0===R?(0,a.jsx)("option",{value:""}):null,Array.from(T)]},D):null]})})};nY.displayName=nF;var nU="SelectTrigger",nG=l.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=nq(n),s=nK(nU,n),u=s.disabled||r,c=h(t,s.onTriggerChange),d=n_(n),f=l.useRef("touch"),[p,m,v]=rC(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=rR(t,e,n);void 0!==r&&s.onValueChange(r.value)}),g=e=>{u||(s.onOpenChange(!0),v()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,a.jsx)(tD,{asChild:!0,...i,children:(0,a.jsx)(tZ.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":rN(s.value)?"":void 0,...o,ref:c,onClick:N(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)}),onPointerDown:N(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:N(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&nI.includes(e.key)&&(g(),e.preventDefault())})})})});nG.displayName=nU;var nJ="SelectValue",nQ=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...s}=e,u=nK(nJ,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==i,f=h(t,u.onValueNodeChange);return J(()=>{c(d)},[c,d]),(0,a.jsx)(tZ.span,{...s,ref:f,style:{pointerEvents:"none"},children:rN(u.value)?(0,a.jsx)(a.Fragment,{children:l}):i})});nQ.displayName=nJ;var n0=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,a.jsx)(tZ.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});n0.displayName="SelectIcon";var n1=e=>(0,a.jsx)(tK,{asChild:!0,...e});n1.displayName="SelectPortal";var n2="SelectContent",n3=l.forwardRef((e,t)=>{let n=nK(n2,e.__scopeSelect),[r,o]=l.useState();return(J(()=>{o(new DocumentFragment)},[]),n.open)?(0,a.jsx)(n5,{...e,ref:t}):r?f.createPortal((0,a.jsx)(n6,{scope:e.__scopeSelect,children:(0,a.jsx)(nH.Slot,{scope:e.__scopeSelect,children:(0,a.jsx)("div",{children:e.children})})}),r):null});n3.displayName=n2;var[n6,n4]=n$(n2),n9=v("SelectContent.RemoveScroll"),n5=l.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:x,avoidCollisions:y,...w}=e,b=nK(n2,n),[j,S]=l.useState(null),[E,C]=l.useState(null),R=h(t,e=>S(e)),[P,k]=l.useState(null),[M,A]=l.useState(null),T=n_(n),[L,D]=l.useState(!1),O=l.useRef(!1);l.useEffect(()=>{if(j)return t4(j)},[j]),l.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B()),document.body.insertAdjacentElement("beforeend",e[1]??B()),_++,()=>{1===_&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),_--}},[]);let I=l.useCallback(e=>{let[t,...n]=T().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&E&&(E.scrollTop=0),n===r&&E&&(E.scrollTop=E.scrollHeight),n?.focus(),document.activeElement!==o))return},[T,E]),F=l.useCallback(()=>I([P,j]),[I,P,j]);l.useEffect(()=>{L&&F()},[L,F]);let{onOpenChange:H,triggerPointerDownPosRef:$}=b;l.useEffect(()=>{if(j){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-($.current?.x??0)),y:Math.abs(Math.round(t.pageY)-($.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():j.contains(n.target)||H(!1),document.removeEventListener("pointermove",t),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[j,H,$]),l.useEffect(()=>{let e=()=>H(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[z,q]=rC(e=>{let t=T().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=rR(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),V=l.useCallback((e,t,n)=>{let r=!O.current&&!n;(void 0!==b.value&&b.value===t||r)&&(k(e),r&&(O.current=!0))},[b.value]),Z=l.useCallback(()=>j?.focus(),[j]),X=l.useCallback((e,t,n)=>{let r=!O.current&&!n;(void 0!==b.value&&b.value===t||r)&&A(e)},[b.value]),Y="popper"===r?n7:n8,U=Y===n7?{side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:x,avoidCollisions:y}:{};return(0,a.jsx)(n6,{scope:n,content:j,viewport:E,onViewportChange:C,itemRefCallback:V,selectedItem:P,onItemLeave:Z,itemTextRefCallback:X,focusSelectedItem:F,selectedItemText:M,position:r,isPositioned:L,searchRef:z,children:(0,a.jsx)(nO,{as:n9,allowPinchZoom:!0,children:(0,a.jsx)(K,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:N(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,a.jsx)(W,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,a.jsx)(Y,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...w,...U,onPlaced:()=>D(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:N(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=T().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>I(t)),e.preventDefault()}})})})})})})});n5.displayName="SelectContentImpl";var n8=l.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,i=nK(n2,n),s=n4(n2,n),[u,c]=l.useState(null),[d,f]=l.useState(null),p=h(t,e=>f(e)),m=n_(n),v=l.useRef(!1),g=l.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:w,focusSelectedItem:b}=s,j=l.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&d&&x&&y&&w){let e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=w.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,s=Math.max(l,t.width),c=S(i,[10,Math.max(10,window.innerWidth-10-s)]);u.style.minWidth=l+"px",u.style.left=c+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,s=Math.max(l,t.width),c=S(i,[10,Math.max(10,window.innerWidth-10-s)]);u.style.minWidth=l+"px",u.style.right=c+"px"}let a=m(),l=window.innerHeight-20,s=x.scrollHeight,c=window.getComputedStyle(d),f=parseInt(c.borderTopWidth,10),p=parseInt(c.paddingTop,10),h=parseInt(c.borderBottomWidth,10),g=f+p+s+parseInt(c.paddingBottom,10)+h,b=Math.min(5*y.offsetHeight,g),j=window.getComputedStyle(x),E=parseInt(j.paddingTop,10),N=parseInt(j.paddingBottom,10),C=e.top+e.height/2-10,R=y.offsetHeight/2,P=f+p+(y.offsetTop+R);if(P<=C){let e=a.length>0&&y===a[a.length-1].ref.current;u.style.bottom="0px";let t=Math.max(l-C,R+(e?N:0)+(d.clientHeight-x.offsetTop-x.offsetHeight)+h);u.style.height=P+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;u.style.top="0px";let t=Math.max(C,f+x.offsetTop+(e?E:0)+R);u.style.height=t+(g-P)+"px",x.scrollTop=P-C+x.offsetTop}u.style.margin="10px 0",u.style.minHeight=b+"px",u.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[m,i.trigger,i.valueNode,u,d,x,y,w,i.dir,r]);J(()=>j(),[j]);let[E,N]=l.useState();J(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);let C=l.useCallback(e=>{e&&!0===g.current&&(j(),b?.(),g.current=!1)},[j,b]);return(0,a.jsx)(re,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:v,onScrollButtonChange:C,children:(0,a.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,a.jsx)(tZ.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});n8.displayName="SelectItemAlignedPosition";var n7=l.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=nq(n);return(0,a.jsx)(tF,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});n7.displayName="SelectPopperPosition";var[re,rt]=n$(n2,{}),rn="SelectViewport",rr=l.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,i=n4(rn,n),s=rt(rn,n),u=h(t,i.onViewportChange),c=l.useRef(0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,a.jsx)(nH.Slot,{scope:n,children:(0,a.jsx)(tZ.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,a=Math.min(r,i),l=i-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});rr.displayName=rn;var ro="SelectGroup",[ri,ra]=n$(ro);l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=et();return(0,a.jsx)(ri,{scope:n,id:o,children:(0,a.jsx)(tZ.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=ro;var rl="SelectLabel",rs=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ra(rl,n);return(0,a.jsx)(tZ.div,{id:o.id,...r,ref:t})});rs.displayName=rl;var ru="SelectItem",[rc,rd]=n$(ru),rf=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,u=nK(ru,n),c=n4(ru,n),d=u.value===r,[f,p]=l.useState(i??""),[m,v]=l.useState(!1),g=h(t,e=>c.itemRefCallback?.(e,r,o)),x=et(),y=l.useRef("touch"),w=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,a.jsx)(rc,{scope:n,value:r,disabled:o,textId:x,isSelected:d,onItemTextChange:l.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:(0,a.jsx)(nH.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,a.jsx)(tZ.div,{role:"option","aria-labelledby":x,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:g,onFocus:N(s.onFocus,()=>v(!0)),onBlur:N(s.onBlur,()=>v(!1)),onClick:N(s.onClick,()=>{"mouse"!==y.current&&w()}),onPointerUp:N(s.onPointerUp,()=>{"mouse"===y.current&&w()}),onPointerDown:N(s.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:N(s.onPointerMove,e=>{y.current=e.pointerType,o?c.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,e=>{(c.searchRef?.current===""||" "!==e.key)&&(nW.includes(e.key)&&w()," "===e.key&&e.preventDefault())})})})})});rf.displayName=ru;var rp="SelectItemText",rm=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...i}=e,s=nK(rp,n),u=n4(rp,n),c=rd(rp,n),d=nX(rp,n),[p,m]=l.useState(null),v=h(t,e=>m(e),c.onItemTextChange,e=>u.itemTextRefCallback?.(e,c.value,c.disabled)),g=p?.textContent,x=l.useMemo(()=>(0,a.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=d;return J(()=>(y(x),()=>w(x)),[y,w,x]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tZ.span,{id:c.textId,...i,ref:v}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?f.createPortal(i.children,s.valueNode):null]})});rm.displayName=rp;var rh="SelectItemIndicator",rv=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return rd(rh,n).isSelected?(0,a.jsx)(tZ.span,{"aria-hidden":!0,...r,ref:t}):null});rv.displayName=rh;var rg="SelectScrollUpButton",rx=l.forwardRef((e,t)=>{let n=n4(rg,e.__scopeSelect),r=rt(rg,e.__scopeSelect),[o,i]=l.useState(!1),s=h(t,r.onScrollButtonChange);return J(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,a.jsx)(rb,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});rx.displayName=rg;var ry="SelectScrollDownButton",rw=l.forwardRef((e,t)=>{let n=n4(ry,e.__scopeSelect),r=rt(ry,e.__scopeSelect),[o,i]=l.useState(!1),s=h(t,r.onScrollButtonChange);return J(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,a.jsx)(rb,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});rw.displayName=ry;var rb=l.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=n4("SelectScrollButton",n),s=l.useRef(null),u=n_(n),c=l.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),J(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,a.jsx)(tZ.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{c()})})}),rj=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,a.jsx)(tZ.div,{"aria-hidden":!0,...r,ref:t})});rj.displayName="SelectSeparator";var rS="SelectArrow";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=nq(n),i=nK(rS,n),l=n4(rS,n);return i.open&&"popper"===l.position?(0,a.jsx)(tB,{...o,...r,ref:t}):null}).displayName=rS;var rE=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let o=l.useRef(null),i=h(r,o),s=function(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return l.useEffect(()=>{let e=o.current;if(!e)return;let n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==t&&n){let r=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[s,t]),(0,a.jsx)(tZ.select,{...n,style:{...tG,...n.style},ref:i,defaultValue:t})});function rN(e){return""===e||void 0===e}function rC(e){let t=D(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function rR(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,l=(r=e,o=Math.max(a,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(l=l.filter(e=>e!==n));let s=l.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}rE.displayName="SelectBubbleInput";var rP=n(62688);let rk=(0,rP.A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),rM=(0,rP.A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),rA=(0,rP.A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),rT=l.forwardRef(({className:e,children:t,...n},r)=>(0,a.jsxs)(nG,{ref:r,className:(0,b.cn)("flex h-10 w-full items-center justify-between rounded-md border border-neutral-700","bg-neutral-900 px-3 text-sm text-neutral-100 outline-none","ring-offset-neutral-900 transition-colors","placeholder:text-neutral-400","focus:border-neutral-500 focus:ring-1 focus:ring-neutral-500","data-[state=open]:border-neutral-600",e),...n,children:[t,(0,a.jsx)(n0,{className:"ml-2 opacity-80",children:(0,a.jsx)(rk,{className:"h-4 w-4"})})]}));rT.displayName=nG.displayName;let rL=l.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>(0,a.jsx)(n1,{children:(0,a.jsxs)(n3,{ref:o,position:n,className:(0,b.cn)("z-50 overflow-hidden rounded-md border border-neutral-700","bg-neutral-900 text-neutral-100 shadow-lg","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",e),...r,children:[(0,a.jsx)(rO,{}),(0,a.jsx)(rr,{className:"p-1 bg-neutral-900",children:t}),(0,a.jsx)(rI,{})]})}));rL.displayName=n3.displayName,l.forwardRef(({className:e,...t},n)=>(0,a.jsx)(rs,{ref:n,className:(0,b.cn)("px-2 py-1.5 text-xs font-medium text-neutral-300",e),...t})).displayName=rs.displayName;let rD=l.forwardRef(({className:e,children:t,...n},r)=>(0,a.jsxs)(rf,{ref:r,className:(0,b.cn)("relative flex w-full cursor-default select-none items-center rounded-sm","px-2 py-1.5 text-sm outline-none","text-neutral-100","focus:bg-neutral-800 focus:text-neutral-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,a.jsx)("span",{className:"mr-2 inline-flex h-4 w-4 items-center justify-center",children:(0,a.jsx)(rv,{children:(0,a.jsx)(rM,{className:"h-4 w-4"})})}),(0,a.jsx)(rm,{children:t})]}));rD.displayName=rf.displayName,l.forwardRef(({className:e,...t},n)=>(0,a.jsx)(rj,{ref:n,className:(0,b.cn)("my-1 h-px bg-neutral-700",e),...t})).displayName=rj.displayName;let rO=l.forwardRef(({className:e,...t},n)=>(0,a.jsx)(rx,{ref:n,className:(0,b.cn)("flex cursor-default items-center justify-center py-1","bg-neutral-900 text-neutral-300",e),...t,children:(0,a.jsx)(rA,{className:"h-4 w-4"})}));rO.displayName=rx.displayName;let rI=l.forwardRef(({className:e,...t},n)=>(0,a.jsx)(rw,{ref:n,className:(0,b.cn)("flex cursor-default items-center justify-center py-1","bg-neutral-900 text-neutral-300",e),...t,children:(0,a.jsx)(rk,{className:"h-4 w-4"})}));function rW(e,t=0){let n=Number(e);return Number.isFinite(n)?n:t}function rF(e,t,n){return Math.max(t,Math.min(n,e))}function rH(e){let t=50;return{fPeak:t=e<=35?25:e<=60?50:e<=90?75:100,sigma:.35}}function r_(e,t,n){return rF(Math.exp(-.5*(Math.log(Math.max(e,.1)/Math.max(t,.1))/Math.max(n,.05))**2),.1,1)}function rB(){let[e,t]=(0,l.useState)("vector"),[n,r]=(0,l.useState)("100"),[o,i]=(0,l.useState)("50"),[s,f]=(0,l.useState)("300"),[p,m]=(0,l.useState)("0.1"),[h,v]=(0,l.useState)("30"),[g,x]=(0,l.useState)("100"),[y,w]=(0,l.useState)("110"),[S,E]=(0,l.useState)("50"),[N,C]=(0,l.useState)("300"),[R,P]=(0,l.useState)("0.1"),[k,M]=(0,l.useState)("30"),[A,T]=(0,l.useState)("100"),[L,D]=(0,l.useState)("70"),[O,I]=(0,l.useState)(!1),W=rH(rW(n,50)),F=rH(rW(S,50)),[H,_]=(0,l.useState)(String(W.fPeak)),[B,$]=(0,l.useState)(String(W.sigma)),[z,q]=(0,l.useState)(String(F.fPeak)),[V,K]=(0,l.useState)(String(F.sigma)),[Z,X]=(0,l.useState)(!0),Y=(0,l.useMemo)(()=>{let t,r,i=Math.max(rW(n,1),.1),a=Math.max(rW(S,1),.1),l=rF(rW(o,0),0,100)/100,u=Math.max(rW(s,0),1e-4),c=Math.max(rW(N,0),1e-4),d=Math.max(rW(p,0),1e-6),f=Math.max(rW(R,0),1e-6),m=Math.max(rW(h,0),.1),v=Math.max(rW(k,0),.1);rW(g,0);let x=Math.max(rW(A,0),.1),w=function(e,t){if(e<=0||t<=0)return 1;let n=t/e;return n*n}(rW(y,0),rW(L,0)),b=Math.max(rW(H,rH(i).fPeak),.1),j=Math.max(rW(B,rH(i).sigma),.05),E=Math.max(rW(z,rH(a).fPeak),.1),C=Math.max(rW(V,rH(a).sigma),.05),P=r_(m,b,j),M=r_(v,E,C),T=i*l*P,D=l;if("vector"===e)D=c/u*T/(a*M),Z&&D>1&&(t=a*M*u/(i*P*l),D=1);else if("raster"===e)D=c*f/(u*d)*T/(a*M),Z&&D>1&&(t=a*M*u*(d/f)/(i*P*l),D=1);else if("irradiance"===e)D=T*w/(a*M);else if("pulse"===e){let e=T/(1e3*m);D=1e3*v*e/(a*M),Z&&D>1&&(r=Math.max(a*M/e/1e3,.1),D=1)}let O=rF(D,0,2),I=a*O*M,W=I/(1e3*v),F=W/Math.max(1e-9*x,1e-12);return{p2Percent:rF(100*O,0,200),suggestedSpeed:t,suggestedFreq_kHz:r,eta1:P,eta2:M,P1eff:T,P2eff:I,Ep2:W,Ppeak2:F,aFac:w}},[e,n,S,o,s,N,p,R,h,k,g,A,y,L,Z,H,B,z,V]);return(0,a.jsxs)(u.A,{title:"Power, Frequency & Lens Scaler",description:"Match settings across different lasers and lenses using effective power with a frequency efficiency curve. Includes pulse width to report pulse energy and peak power.",children:[(0,a.jsxs)(c.Zp,{className:"mb-6",children:[(0,a.jsx)(c.aR,{children:(0,a.jsx)(c.ZB,{children:"Match Mode"})}),(0,a.jsxs)(c.Wu,{className:"grid gap-4 md:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Quantity to Match"}),(0,a.jsxs)(nY,{value:e,onValueChange:e=>t(e),children:[(0,a.jsx)(rT,{children:(0,a.jsx)(nQ,{placeholder:"Mode"})}),(0,a.jsxs)(rL,{children:[(0,a.jsx)(rD,{value:"vector",children:"Vector: Energy per length (J/mm)"}),(0,a.jsx)(rD,{value:"raster",children:"Raster: Energy per area (J/mm\xb2)"}),(0,a.jsx)(rD,{value:"irradiance",children:"Irradiance: W/mm\xb2 (spot/field)"}),(0,a.jsx)(rD,{value:"pulse",children:"Pulse energy: J (fiber)"})]})]})]}),(0,a.jsxs)("label",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{id:"preferSpeed",type:"checkbox",className:"h-4 w-4",checked:Z,onChange:e=>X(e.target.checked)}),(0,a.jsx)("span",{className:"text-sm",children:"If Power % > 100, prefer adjusting speed/frequency"})]})]})]}),(0,a.jsxs)(c.Zp,{className:"mb-6",children:[(0,a.jsx)(c.aR,{children:(0,a.jsx)(c.ZB,{children:"Source (what you have)"})}),(0,a.jsxs)(c.Wu,{className:"grid gap-4 md:grid-cols-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Rated power (W)"}),(0,a.jsx)(d.p,{value:n,onChange:e=>r(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Power (%)"}),(0,a.jsx)(d.p,{value:o,onChange:e=>i(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Frequency (kHz)"}),(0,a.jsx)(d.p,{value:h,onChange:e=>v(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Pulse width (ns)"}),(0,a.jsx)(d.p,{value:g,onChange:e=>x(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{className:(0,b.cn)("irradiance"!==e?"block":"hidden"),children:[(0,a.jsx)(j,{className:"text-sm",children:"Speed (mm/s)"}),(0,a.jsx)(d.p,{value:s,onChange:e=>f(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{className:(0,b.cn)("raster"===e?"block":"hidden"),children:[(0,a.jsx)(j,{className:"text-sm",children:"Line spacing h (mm)"}),(0,a.jsx)(d.p,{value:p,onChange:e=>m(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Lens field size (mm)"}),(0,a.jsx)(d.p,{value:y,onChange:e=>w(e.target.value),inputMode:"decimal"})]})]}),(0,a.jsxs)(c.Wu,{className:"pt-0",children:[(0,a.jsxs)("button",{className:"text-xs underline text-muted-foreground",onClick:()=>I(e=>!e),children:[O?"Hide":"Show"," advanced frequency curve"]}),(0,a.jsxs)("div",{className:(0,b.cn)("mt-3 grid gap-4 md:grid-cols-3",O?"block":"hidden"),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Peak freq fₚ (kHz)"}),(0,a.jsx)(d.p,{value:H,onChange:e=>_(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Curve width σ (log-normal)"}),(0,a.jsx)(d.p,{value:B,onChange:e=>$(e.target.value),inputMode:"decimal"})]}),(0,a.jsx)("div",{className:"flex items-end text-xs text-muted-foreground",children:"η(f) is log-normal; 1.0 at fₚ, rolls off by σ."})]})]})]}),(0,a.jsxs)(c.Zp,{className:"mb-6",children:[(0,a.jsx)(c.aR,{children:(0,a.jsx)(c.ZB,{children:"Destination (what you want to run on)"})}),(0,a.jsxs)(c.Wu,{className:"grid gap-4 md:grid-cols-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Rated power (W)"}),(0,a.jsx)(d.p,{value:S,onChange:e=>E(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Frequency (kHz)"}),(0,a.jsx)(d.p,{value:k,onChange:e=>M(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Pulse width (ns)"}),(0,a.jsx)(d.p,{value:A,onChange:e=>T(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{className:(0,b.cn)("irradiance"!==e?"block":"hidden"),children:[(0,a.jsx)(j,{className:"text-sm",children:"Speed (mm/s)"}),(0,a.jsx)(d.p,{value:N,onChange:e=>C(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{className:(0,b.cn)("raster"===e?"block":"hidden"),children:[(0,a.jsx)(j,{className:"text-sm",children:"Line spacing h (mm)"}),(0,a.jsx)(d.p,{value:R,onChange:e=>P(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Lens field size (mm)"}),(0,a.jsx)(d.p,{value:L,onChange:e=>D(e.target.value),inputMode:"decimal"})]})]}),(0,a.jsx)(c.Wu,{className:(0,b.cn)("pt-0",O?"block":"hidden"),children:(0,a.jsxs)("div",{className:"mt-3 grid gap-4 md:grid-cols-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Peak freq fₚ (kHz)"}),(0,a.jsx)(d.p,{value:z,onChange:e=>q(e.target.value),inputMode:"decimal"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{className:"text-sm",children:"Curve width σ (log-normal)"}),(0,a.jsx)(d.p,{value:V,onChange:e=>K(e.target.value),inputMode:"decimal"})]}),(0,a.jsx)("div",{className:"flex items-end text-xs text-muted-foreground",children:"Adjust if you know your machine’s real power–frequency curve."})]})})]}),(0,a.jsxs)(c.Zp,{children:[(0,a.jsx)(c.aR,{children:(0,a.jsx)(c.ZB,{children:"Result"})}),(0,a.jsxs)(c.Wu,{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"text-2xl font-semibold",children:["Suggested Power (dest): ",Y.p2Percent.toFixed(1),"%"]}),"number"==typeof Y.suggestedSpeed&&"pulse"!==e&&(0,a.jsxs)("p",{className:"text-sm",children:["To keep Power ≤ 100%, try destination speed ≈"," ",(0,a.jsxs)("span",{className:"font-medium",children:[Y.suggestedSpeed.toFixed(1)," mm/s"]}),"."]}),"number"==typeof Y.suggestedFreq_kHz&&"pulse"===e&&(0,a.jsxs)("p",{className:"text-sm",children:["To keep Power ≤ 100%, try destination frequency ≈"," ",(0,a.jsxs)("span",{className:"font-medium",children:[Y.suggestedFreq_kHz.toFixed(0)," kHz"]}),"."]}),(0,a.jsxs)("div",{className:"mt-3 grid gap-2 md:grid-cols-3 text-sm",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-muted-foreground",children:"η(f) source / dest"}),(0,a.jsxs)("div",{className:"font-medium",children:[Y.eta1.toFixed(3)," / ",Y.eta2.toFixed(3)]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-muted-foreground",children:"Dest pulse energy"}),(0,a.jsx)("div",{className:"font-medium",children:Y.Ep2>=.001?(1e3*Y.Ep2).toFixed(3)+" mJ":(1e6*Y.Ep2).toFixed(1)+" \xb5J"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-muted-foreground",children:"Dest peak power"}),(0,a.jsxs)("div",{className:"font-medium",children:[(Y.Ppeak2/1e3).toFixed(1)," kW"]})]})]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground mt-2",children:["Assumptions: Effective power includes a frequency efficiency factor η(f). Peak power uses a rectangular pulse approximation (shape factor ≈ 1). For real MOPA sources, pulse shape and true power–frequency maps vary by model; adjust f",(0,a.jsx)("sub",{children:"p"})," and σ if you have vendor curves."]})]})]})]})}rI.displayName=rw.displayName},90061:()=>{},96241:(e,t,n)=>{"use strict";n.d(t,{cn:()=>i});var r=n(49384),o=n(82348);function i(...e){return(0,o.QP)((0,r.$)(e))}},96999:()=>{},98368:(e,t,n)=>{Promise.resolve().then(n.bind(n,98986))},98986:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let r=(0,n(12907).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/app/app/laser-toolkit/power-lens-scaler/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/app/app/laser-toolkit/power-lens-scaler/page.tsx","default")}};var t=require("../../../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[7719,4825,5814,9069],()=>n(7496));module.exports=r})(); |