PageSourceSearch

https://app.dcycle.io/assets/Combination-DBvxznhy.js

js dcycle.io collected 2026-10-02 06:36:25 UTC 16,230 bytes, 41 lines download raw bytes

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

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.