1import{r as c,j as he}from"./vendor-react-BZE6wSbZ.js";import{F as G,N as me,z as ge,ah as k,ai as oe,aj as pe}from"./index-BHxCMQCy.js";var U="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",Z={bubbles:!1,cancelable:!0},ye="FocusScope",be=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:i,...s}=e,[a,S]=c.useState(null),b=G(u),p=G(i),f=c.useRef(null),v=me(t,o=>S(o)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let o=function(g){if(h.paused||!a)return;const y=g.target;a.contains(y)?f.current=y:R(f.current,{select:!0})},l=function(g){if(h.paused||!a)return;const y=g.relatedTarget;y!==null&&(a.contains(y)||R(f.current,{select:!0}))},d=function(g){if(document.activeElement===document.body)for(const E of g)E.removedNodes.length>0&&R(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(U,Z);a.addEventListener(U,b),a.dispatchEvent(d),d.defaultPrevented||(Ee(ke(ce(a)),{select:!0}),document.activeElement===o&&R(a))}return()=>{a.removeEventListener(U,b),setTimeout(()=>{const d=new CustomEvent(K,Z);a.addEventListener(K,p),a.dispatchEvent(d),d.defaultPrevented||R(o??document.body,{select:!0}),a.removeEventListener(K,p),Q.remove(h)},0)}}},[a,b,p,h]);const w=c.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[g,y]=Se(m);g&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&R(g,{select:!0})):o.shiftKey&&d===g&&(o.preventDefault(),n&&R(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return he.jsx(ge.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});be.displayName=ye;function Ee(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(R(r,{select:t}),document.activeElement!==n)return}function Se(e){const t=ce(e),n=q(t,e),r=q(t.reverse(),e);return[n,r]}function ce(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function q(e,t){for(const n of e)if(!we(n,{upTo:t}))return n}function we(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ce(e){return e instanceof HTMLInputElement&&"select"in e}function R(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ce(e)&&t&&e.select()}}var Q=Re();function Re(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$(e,t),e.unshift(t)},remove(t){var n;e=$(e,t),(n=e[0])==null||n.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ke(e){return e.filter(t=>t.tagName!=="A")}var _=0;function vt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),_++,()=>{_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_--}},[])}function J(){const 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 W="right-scroll-bar-position",B="width-before-scroll-bar",Te="with-scroll-bars-hidden",Ae="--removed-body-scroll-bar-size";function H(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ne(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var Me=typeof window<"u"?c.useLayoutEffect:c.useEffect,ee=new WeakMap;function Fe(e,t){var n=Ne(null,function(r){return e.forEach(function(u){return H(u,r)})});return Me(function(){var r=ee.get(n);if(r){var u=new Set(r),i=new Set(e),s=n.current;u.forEach(function(a){i.has(a)||H(a,null)}
vendor: 4,130 bytes, lines 1-16
1),i.forEach(function(a){u.has(a)||H(a,s)})}ee.set(n,e)},[e]),n}function Le(e){return e}function Pe(e,t){t===void 0&&(t=Le);var n=[],r=!1,u={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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var p=s;s=[],p.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(p){s.push(p),b()},filter:function(p){return s=s.filter(p),n}}}};return u}function xe(e){e===void 0&&(e={});var t=Pe(null);return t.options=k({async:!0,ssr:!1},e),t}var ue=function(e){var t=e.sideCar,n=oe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,k({},n))};ue.isSideCarExport=!0;function Ie(e,t){return e.useMedium(t),ue}var ie=xe(),V=function(){},D=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:V,onWheelCapture:V,onTouchMoveCapture:V}),u=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,p=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,g=e.gapMode,y=oe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,T=Fe([n,t]),C=k(k({},y),u);return c.createElement(c.Fragment,null,p&&c.createElement(E,{sideCar:ie,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:g}),s?c.cloneElement(c.Children.only(a),k(k({},C),{ref:T})):c.createElement(m,k({},C,{className:S,ref:T}),a))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:B,zeroRight:W};var Oe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function We(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oe();return t&&e.setAttribute("nonce",t),e}function Be(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function De(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ue=function(){var e=0,t=null;return{add:function(n){e==0&&(t=We())&&(Be(t,n),De(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ke=function(){var e=Ue();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},le=function(){var e=Ke(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},_e={left:0,top:0,right:0,gap:0},X=function(e){return parseInt(e||"",10)||0},He=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[X(n),X(r),X(u)]},Ve=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _e;var t=He(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])}},Xe=le(),F="data-scroll-locked",Ye=function(e,t,n,r){var u=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Te,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(F,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(u,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(W,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(B,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(W," .").concat(W,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(B," .").concat(B,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(F,`] { 36 `).concat(Ae,": ").concat(a,`px; 37 } 38`)},te=function(){var e=parseInt(document.body.getAttribute(F)||"0",10);return isFinite(e)?e:0},je=function(){c.useEffect(function(){return document.body.setAttribute(F,(te()+1).toString()),function(){var e=te()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},ze=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;je();var i=c.useMemo(function(){return Ve(u)},[u]);return c.createElement(Xe,{styles:Ye(i,!t,u,n?"":"!important")})},j=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return j=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{j=!1}var A=j?{passive:!1}:!1,Ge=function(e){return e.tagName==="TEXTAREA"},se=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ge(e)&&n[t]==="visible")},Ze=function(e){return se(e,"overflowY")},qe=function(e){return se(e,"overflowX")},ne=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=fe(e,r);if(u){var i=de(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Qe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fe=function(e,t){return e==="v"?Ze(t):qe(t)},de=function(e,t){return e==="v"?Qe(t):$e(t)},Je=function(e,t){return e==="h"&&t==="rtl"?-1:1},et=function(e,t,n,r,u){var i=Je(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,S=t.contains(a),b=!1,p=s>0,f=0,v=0;do{if(!a)break;var h=de(e,a),w=h[0],o=h[1],l=h[2],d=o-l-i*w;(w||d)&&fe(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!S&&a!==document.body||S&&(t.contains(a)||t===a));return(p&&(Math.abs(f)<1||!u)||!p&&(Math.abs(v)<1||!u))&&(b=!0),b},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},re=function(e){return[e.deltaX,e.deltaY]},ae=function(e){return e&&"current"in e?e.current:e},tt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nt=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},rt=0,N=[];function at(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),u=c.useState(rt++)[0],i=c.useState(le)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var o=pe([e.lockRef.current],(e.shards||[]).map(ae),!0).filter(Boolean);return o.forEach(function(l){return l.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),o.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(o,l){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!s.current.allowPinchZoom;var d=x(o),m=n.current,g="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],E,T=o.target,C=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in o&&C==="h"&&T.type==="range")return!1;var L=ne(C,T);if(!L)return!0;if(L?E=C:(E=C==="v"?"h":"v",L=ne(C,T)),!L)return!1;if(!r.current&&"changedTouches"in o&&(g||y)&&(r.current=E),!E)return!0;var z=r.current||E;return et(z,l,o,z==="h"?g:y,!0)},[]),S=c.useCallback(function(o){var l=o;if(!(!N.length||N[N.length-1]!==i)){var d="deltaY"in l?re(l):x(l),m=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&tt(E.delta,d)})[0];if(m&&m.should){l.cancelable&&l.preventDefault();return}
vendor: 2,980 bytes, line 41
41if(!m){var g=(s.current.shards||[]).map(ae).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=g.length>0?a(l,g[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=c.useCallback(function(o,l,d,m){var g={name:o,delta:l,target:d,should:m,shadowParent:ot(d)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),p=c.useCallback(function(o){n.current=x(o),r.current=void 0},[]),f=c.useCallback(function(o){b(o.type,re(o),o.target,a(o,e.lockRef.current))},[]),v=c.useCallback(function(o){b(o.type,x(o),o.target,a(o,e.lockRef.current))},[]);c.useEffect(function(){return N.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",S,A),document.addEventListener("touchmove",S,A),document.addEventListener("touchstart",p,A),function(){N=N.filter(function(o){return o!==i}),document.removeEventListener("wheel",S,A),document.removeEventListener("touchmove",S,A),document.removeEventListener("touchstart",p,A)}},[]);var h=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(i,{styles:nt(u)}):null,h?c.createElement(ze,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ot(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ct=Ie(ie,at);var ut=c.forwardRef(function(e,t){return c.createElement(D,k({},e,{ref:t,sideCar:ct}))});ut.classNames=D.classNames;var it=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},M=new WeakMap,I=new WeakMap,O={},Y=0,ve=function(e){return e&&(e.host||ve(e.parentNode))},lt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ve(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},st=function(e,t,n,r){var u=lt(t,Array.isArray(e)?e:[e]);O[n]||(O[n]=new WeakMap);var i=O[n],s=[],a=new Set,S=new Set(u),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};u.forEach(b);var p=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))p(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(M.get(v)||0)+1,l=(i.get(v)||0)+1;M.set(v,o),i.set(v,l),s.push(v),o===1&&w&&I.set(v,!0),l===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return p(t),a.clear(),Y++,function(){s.forEach(function(f){var v=M.get(f)-1,h=i.get(f)-1;M.set(f,v),i.set(f,h),v||(I.has(f)||f.removeAttribute(r),I.delete(f)),h||f.removeAttribute(n)}),Y--,Y||(M=new WeakMap,M=new WeakMap,I=new WeakMap,O={})}},ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=it(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live]"))),st(r,u,n,"aria-hidden")):function(){return null}};export{be as F,ut as R,ht as h,vt 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.