PageSourceSearch

https://app.ustechautomations.com/assets/overlayFocus-BmDVzTk_.js

js ustechautomations.com collected 2026-09-26 00:52:52 UTC 33,113 bytes, 1 lines download raw bytes

vendor: 9,317 bytes, line 1
1import{a as e,p as t,G as n}from"./chunk-6CSD65Y2-xYubHBmU.js";import{A as r}from"./AuthContextDefinition-CrUuQ85U.js";import{c as o}from"./createLucideIcon-B7UGDY3i.js";import{e as i,u as a}from"./index-BcwKVuK3.js";import{a as c,R as u}from"./index-BfJR_dAR.js";const s=()=>{const t=e.useContext(r);if(void 0===t)throw new Error("useAuth must be used within an AuthProvider");return t},l=o("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function d(n,r=[]){let o=[];const i=()=>{const t=o.map(t=>e.createContext(t));return function(r){const o=r?.[n]||t;return e.useMemo(()=>({[`__scope${n}`]:{...r,[n]:o}}),[r,o])}};return i.scopeName=n,[function(r,i){const a=e.createContext(i),c=o.length;o=[...o,i];const u=r=>{const{scope:o,children:i,...u}=r,s=o?.[n]?.[c]||a,l=e.useMemo(()=>u,Object.values(u));return t.jsx(s.Provider,{value:l,children:i})};return u.displayName=r+"Provider",[u,function(t,o){const u=o?.[n]?.[c]||a,s=e.useContext(u);if(s)return s;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},f(i,...r)]}function f(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var m=globalThis?.document?e.useLayoutEffect:()=>{},v=n[" useId ".trim().toString()]||(()=>{}),h=0;function g(t){const[n,r]=e.useState(v());return m(()=>{r(e=>e??String(h++))},[t]),n?`radix-${n}`:""}var y=n[" useInsertionEffect ".trim().toString()]||m;function E({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,c]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return y(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),u=void 0!==t,s=u?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==u){}n.current=u},[u,o])}const l=e.useCallback(e=>{if(u){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&c.current?.(n)}else a(e)},[u,t,a,c]);return[s,l]}function b(n){const r=w(n),o=e.forwardRef((n,o)=>{const{children:i,...a}=n,c=e.Children.toArray(i),u=c.find(R);if(u){const n=u.props.children,i=c.map(t=>t===u?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...a,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,i):null})}return t.jsx(r,{...a,ref:o,children:i})});return o.displayName=`${n}.Slot`,o}function w(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const 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}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?i(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var C=Symbol("radix.slottable");function R(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((n,r)=>{const o=b(`Primitive.${r}`),i=e.forwardRef((e,n)=>{const{asChild:i,...a}=e,c=i?o:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(c,{...a,ref:n})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{});function x(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}function D(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var O,S="dismissableLayer.update",P="dismissableLayer.pointerDownOutside",M="dismissableLayer.focusOutside",T=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=e.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:s,onDismiss:l,...d}=n,f=e.useContext(T),[m,v]=e.useState(null),h=m?.ownerDocument??globalThis?.document,[,g]=e.useState({}),y=a(r,e=>v(e)),E=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=E.indexOf(b),C=m?E.indexOf(m):-1,R=f.layersWithOutsidePointerEventsDisabled.size>0,x=C>=w,_=function(t,n=globalThis?.document){const r=D(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){j(P,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));x&&!n&&(c?.(e),s?.(e),e.defaultPrevented||l?.())},h),L=function(t,n=globalThis?.document){const r=D(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){j(M,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(u?.(e),s?.(e),e.defaultPrevented||l?.())},h);return function(t,n=globalThis?.document){const r=D(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{C===f.layers.size-1&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),e.useEffect(()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(O=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),A(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=O)}},[m,h,o,f]),e.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),A())},[m,f]),e.useEffect(()=>{const e=()=>g({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),t.jsx(N.div,{...d,ref:y,style:{pointerEvents:R?x?"auto":"none":void 0,...n.style},onFocusCapture:p(n.onFocusCapture,L.onFocusCapture),onBlurCapture:p(n.onBlurCapture,L.onBlurCapture),onPointerDownCapture:p(n.onPointerDownCapture,_.onPointerDownCapture)})});_.displayName="DismissableLayer";function A(){const e=new CustomEvent(S);document.dispatchEvent(e)}function j(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?x(o,i):o.dispatchEvent(i)}e.forwardRef((n,r)=>{const o=e.useContext(T),i=e.useRef(null),c=a(r,i);return e.useEffect(()=>{const e=i.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),t.jsx(N.div,{...n,ref:c})}).displayName="DismissableLayerBranch";var L="focusScope.autoFocusOnMount",I="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},F=e.forwardRef((n,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...s}=n,[l,d]=e.useState(null),f=D(c),p=D(u),m=e.useRef(null),v=a(r,e=>d(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(i){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:U(m.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||U(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&U(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,l,h.paused]),e.useEffect(()=>{if(l){K.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(L,k);l.addEventListener(L,f),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(U(r,{select:t}),document.activeElement!==n)return}((e=W(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&U(l))}return()=>{l.removeEventListener(L,f),setTimeout(()=>{const e=new CustomEvent(I,k);l.addEventListener(I,p),l.dispatchEvent(e),e.defaultPrevented||U(t??document.body,{select:!0}),l.removeEventListener(I,p),K.remove(h)}
vendor: 4,180 bytes, line 1
1,0)}}var e},[l,f,p,h]);const g=e.useCallback(e=>{if(!o&&!i)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=W(e),n=B(t,e),r=B(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&U(i,{select:!0})):(e.preventDefault(),o&&U(r,{select:!0})):n===t&&e.preventDefault()}},[o,i,h.paused]);return t.jsx(N.div,{tabIndex:-1,...s,ref:v,onKeyDown:g})});function W(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 B(e,t){for(const n of e)if(!$(n,{upTo:t}))return n}function $(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function U(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}F.displayName="FocusScope";var K=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=V(e,t),e.unshift(t)},remove(t){e=V(e,t),e[0]?.resume()}}}();function V(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Y=e.forwardRef((n,r)=>{const{container:o,...i}=n,[a,c]=e.useState(!1);m(()=>c(!0),[]);const s=o||a&&globalThis?.document?.body;return s?u.createPortal(t.jsx(N.div,{...i,ref:r}),s):null});Y.displayName="Portal";var X=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),c=t?"mounted":"unmounted",[u,s]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Z(o.current);a.current="mounted"===u?e:"none"},[u]),m(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=Z(e);if(t)s("MOUNT");else if("none"===o||"none"===e?.display)s("UNMOUNT");else{s(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,s]),m(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=Z(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(s("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},c=e=>{e.target===n&&(a.current=Z(o.current))};return n.addEventListener("animationstart",c),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",c),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}s("ANIMATION_END")},[n,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),c=a(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:c}):null};function Z(e){return e?.animationName||"none"}X.displayName="Presence";var z=0;function H(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??q()),document.body.insertAdjacentElement("beforeend",e[1]??q()),z++,()=>{1===z&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),z--}},[])}function q(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,491 bytes, line 1
1style.position="fixed",e.style.pointerEvents="none",e}var G=function(){return G=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},G.apply(this,arguments)};function J(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Q="right-scroll-bar-position",ee="width-before-scroll-bar";function te(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ne="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,re=new WeakMap;function oe(t,n){var r,o,i,a=(r=null,o=function(e){return t.forEach(function(t){return te(t,e)})},(i=e.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return ne(function(){var e=re.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach(function(e){r.has(e)||te(e,null)}),r.forEach(function(e){n.has(e)||te(e,o)})}re.set(a,t)},[t]),a}function ie(e){return e}var ae=function(t){var n=t.sideCar,r=J(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,G({},r))};ae.isSideCarExport=!0;var ce=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ie);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=G({async:!0,ssr:!1},e),t}(),ue=function(){},se=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:ue,onWheelCapture:ue,onTouchMoveCapture:ue}),i=o[0],a=o[1],c=t.forwardProps,u=t.children,s=t.className,l=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,v=t.noIsolation,h=t.inert,g=t.allowPinchZoom,y=t.as,E=void 0===y?"div":y,b=t.gapMode,w=J(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,R=oe([r,n]),N=G(G({},w),i);return e.createElement(e.Fragment,null,d&&e.createElement(C,{sideCar:ce,removeScrollBar:l,shards:f,noRelative:m,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:b}),c?e.cloneElement(e.Children.only(u),G(G({},N),{ref:R})):e.createElement(E,G({},N,{className:s,ref:R}),u))});se.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},se.classNames={fullWidth:ee,zeroRight:Q};function le(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var de=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=le())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fe=function(){var t,n=(t=de(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},pe={left:0,top:0,right:0,gap:0},me=function(e){return parseInt(e||"",10)||0},ve=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pe;var t=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"];
vendor: 8,492 bytes, line 1
1return[me(n),me(r),me(o)]}(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])}},he=fe(),ge="data-scroll-locked",ye=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body[").concat(ge,"] {\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(c,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Q," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(ee," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(Q," .").concat(Q," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ee," .").concat(ee," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ge,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},Ee=function(){var e=parseInt(document.body.getAttribute(ge)||"0",10);return isFinite(e)?e:0},be=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(ge,(Ee()+1).toString()),function(){var e=Ee()-1;e<=0?document.body.removeAttribute(ge):document.body.setAttribute(ge,e.toString())}},[]);var a=e.useMemo(function(){return ve(i)},[i]);return e.createElement(he,{styles:ye(a,!n,i,r?"":"!important")})},we=!1;if("undefined"!=typeof window)try{var Ce=Object.defineProperty({},"passive",{get:function(){return we=!0,!0}});window.addEventListener("test",Ce,Ce),window.removeEventListener("test",Ce,Ce)}catch(Ft){we=!1}var Re=!!we&&{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&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},xe=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),De(e,r)){var o=Oe(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},De=function(e,t){return"v"===e?function(e){return Ne(e,"overflowY")}(t):function(e){return Ne(e,"overflowX")}(t)},Oe=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Se=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pe=function(e){return[e.deltaX,e.deltaY]},Me=function(e){return e&&"current"in e?e.current:e},Te=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},_e=0,Ae=[];function je(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Le=(Ie=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(_e++)[0],a=e.useState(fe)[0],c=e.useRef(t);e.useEffect(function(){c.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=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))}([t.lockRef.current],(t.shards||[]).map(Me),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var u=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var n,i=Se(e),a=r.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===l||p.contains(l)))return!1;var m=xe(d,l);if(!m)return!0;if(m?n=d:(n="v"===d?"h":"v",m=xe(d,l)),!m)return!1;if(!o.current&&"changedTouches"in e&&(u||s)&&(o.current=n),!n)return!0;var v=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,c=t.contains(a),u=!1,s=i>0,l=0,d=0;do{if(!a)break;var f=Oe(e,a),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&De(e,a)&&(l+=m,d+=p);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(s&&Math.abs(l)<1||!s&&Math.abs(d)<1)&&(u=!0),u}(v,t,e,"h"===v?u:s)},[]),s=e.useCallback(function(e){var t=e;if(Ae.length&&Ae[Ae.length-1]===a){var r="deltaY"in t?Pe(t):Se(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(c.current.shards||[]).map(Me).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?u(t,i[0]):!c.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),l=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:je(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=Se(e),o.current=void 0},[]),f=e.useCallback(function(e){l(e.type,Pe(e),e.target,u(e,t.lockRef.current))},[]),p=e.useCallback(function(e){l(e.type,Se(e),e.target,u(e,t.lockRef.current))},[]);e.useEffect(function(){return Ae.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Re),document.addEventListener("touchmove",s,Re),document.addEventListener("touchstart",d,Re),function(){Ae=Ae.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,Re),document.removeEventListener("touchmove",s,Re),document.removeEventListener("touchstart",d,Re)}},[]);var m=t.removeScrollBar,v=t.inert;return e.createElement(e.Fragment,null,v?e.createElement(a,{styles:Te(i)}):null,m?e.createElement(be,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},ce.useMedium(Ie),ae);var Ie,ke=e.forwardRef(function(t,n){return e.createElement(se,G({},t,{ref:n,sideCar:Le}))});ke.classNames=se.classNames;var Fe=new WeakMap,We=new WeakMap,Be={},$e=0,Ue=function(e){return e&&(e.host||Ue(e.parentNode))},Ke=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ue(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Be[n]||(Be[n]=new WeakMap);var i=Be[n],a=[],c=new Set,u=new Set(o),s=function(e){e&&!c.has(e)&&(c.add(e),s(e.parentNode))};o.forEach(s);var l=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(c.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(Fe.get(e)||0)+1,s=(i.get(e)||0)+1;Fe.set(e,u),i.set(e,s),a.push(e),1===u&&o&&We.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(d){}})};return l(t),c.clear(),$e++,function(){a.forEach(function(e){var t=Fe.get(e)-1,o=i.get(e)-1;Fe.set(e,t),i.set(e,o),t||(We.has(e)||e.removeAttribute(r),We.delete(e)),o||e.removeAttribute(n)}),--$e||(Fe=new WeakMap,Fe=new WeakMap,We=new WeakMap,Be={})}},Ve=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ke(r,o,n,"aria-hidden")):function(){return null}};function Ye(n){const r=Xe(n),o=e.forwardRef((n,o)=>{const{children:i,...a}=n,c=e.Children.toArray(i),u=c.find(ze);if(u){const n=u.props.children,i=c.map(t=>t===u?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t);return t.jsx(r,{...a,ref:o,children:e.isValidElement(n)?e.cloneElement(n,void 0,i):null})}return t.jsx(r,{...a,ref:o,children:i})});return o.displayName=`${n}.Slot`,o}
vendor: 4,474 bytes, line 1
1function Xe(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const 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}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?i(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Ze=Symbol("radix.slottable");function ze(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Ze}var He="Dialog",[qe,Ge]=d(He),[Je,Qe]=qe(He),et=n=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:a,onOpenChange:c,modal:u=!0}=n,s=e.useRef(null),l=e.useRef(null),[d,f]=E({prop:i,defaultProp:a??!1,onChange:c,caller:He});return t.jsx(Je,{scope:r,triggerRef:s,contentRef:l,contentId:g(),titleId:g(),descriptionId:g(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:u,children:o})};et.displayName=He;var tt="DialogTrigger",nt=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Qe(tt,r),c=a(n,i.triggerRef);return t.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ct(i.open),...o,ref:c,onClick:p(e.onClick,i.onOpenToggle)})});nt.displayName=tt;var rt="DialogPortal",[ot,it]=qe(rt,{forceMount:void 0}),at=n=>{const{__scopeDialog:r,forceMount:o,children:i,container:a}=n,c=Qe(rt,r);return t.jsx(ot,{scope:r,forceMount:o,children:e.Children.map(i,e=>t.jsx(X,{present:o||c.open,children:t.jsx(Y,{asChild:!0,container:a,children:e})}))})};at.displayName=rt;var ct="DialogOverlay",ut=e.forwardRef((e,n)=>{const r=it(ct,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Qe(ct,e.__scopeDialog);return a.modal?t.jsx(X,{present:o||a.open,children:t.jsx(lt,{...i,ref:n})}):null});ut.displayName=ct;var st=Ye("DialogOverlay.RemoveScroll"),lt=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Qe(ct,r);return t.jsx(ke,{as:st,allowPinchZoom:!0,shards:[i.contentRef],children:t.jsx(N.div,{"data-state":Ct(i.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),dt="DialogContent",ft=e.forwardRef((e,n)=>{const r=it(dt,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Qe(dt,e.__scopeDialog);return t.jsx(X,{present:o||a.open,children:a.modal?t.jsx(pt,{...i,ref:n}):t.jsx(mt,{...i,ref:n})})});ft.displayName=dt;var pt=e.forwardRef((n,r)=>{const o=Qe(dt,n.__scopeDialog),i=e.useRef(null),c=a(r,o.contentRef,i);return e.useEffect(()=>{const e=i.current;if(e)return Ve(e)},[]),t.jsx(vt,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(n.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p(n.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:p(n.onFocusOutside,e=>e.preventDefault())})}),mt=e.forwardRef((n,r)=>{const o=Qe(dt,n.__scopeDialog),i=e.useRef(!1),a=e.useRef(!1);return t.jsx(vt,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{n.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||o.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{n.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const t=e.target,r=o.triggerRef.current?.contains(t);r&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),vt=e.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:u,...s}=n,l=Qe(dt,o),d=e.useRef(null),f=a(r,d);return H(),t.jsxs(t.Fragment,{children:[t.jsx(F,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:u,children:t.jsx(_,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ct(l.open),...s,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(Dt,{titleId:l.titleId}),t.jsx(Ot,{contentRef:d,descriptionId:l.descriptionId})]})]})}
1),ht="DialogTitle",gt=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Qe(ht,r);return t.jsx(N.h2,{id:i.titleId,...o,ref:n})});gt.displayName=ht;var yt="DialogDescription",Et=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Qe(yt,r);return t.jsx(N.p,{id:i.descriptionId,...o,ref:n})});Et.displayName=yt;var bt="DialogClose",wt=e.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Qe(bt,r);return t.jsx(N.button,{type:"button",...o,ref:n,onClick:p(e.onClick,()=>i.onOpenChange(!1))})});function Ct(e){return e?"open":"closed"}wt.displayName=bt;var Rt="DialogTitleWarning",[Nt,xt]=function(n,r){const o=e.createContext(r),i=n=>{const{children:r,...i}=n,a=e.useMemo(()=>i,Object.values(i));return t.jsx(o.Provider,{value:a,children:r})};return i.displayName=n+"Provider",[i,function(t){const i=e.useContext(o);if(i)return i;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]}(Rt,{contentName:dt,titleName:ht,docsSlug:"dialog"}),Dt=({titleId:t})=>{const n=xt(Rt),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)}},[r,t]),null},Ot=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xt("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");if(n&&e){document.getElementById(n)}},[r,t,n]),null},St=et,Pt=nt,Mt=at,Tt=ut,_t=ft,At=gt,jt=Et,Lt=wt;function It(){return"pointer"===document.documentElement.dataset.inputModality}function kt(e){if(e.defaultPrevented||!It())return;const t=e.target;t instanceof HTMLElement&&(e.preventDefault(),t.focus({preventScroll:!0}))}export{_t as C,jt as D,F,Tt as O,Mt as P,St as R,At as T,Nt as W,l as X,Lt as a,Ge as b,p as c,d,Pt as e,m as f,X as g,kt as h,N as i,E as j,D as k,Y as l,g as m,Ve as n,H as o,ke as p,_ as q,x as r,It as s,s as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.