PageSourceSearch

https://kconect.vercel.app/assets/index-zx_GWOLj.js

js kconect.vercel.app collected 2026-10-03 07:13:39 UTC 3,130 bytes, 9 lines download raw bytes

vendor: 3,130 bytes, lines 1-9
1import{r as t,aA as A,j as E,aB as D,aC as z,aD as S,aE as W,aF as B,aG as F}from"./index-IxvR3ybE.js";class G extends t.Component{getSnapshotBeforeUpdate(f){const e=this.props.childRef.current;if(e&&f.isPresent&&!this.props.isPresent){const s=e.offsetParent,a=D(s)&&s.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=a-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function H({children:c,isPresent:f,anchorX:e}){const s=t.useId(),a=t.useRef(null),n=t.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=t.useContext(A);return t.useInsertionEffect(()=>{const{width:x,height:r,top:m,left:i,right:u}=n.current;if(f||!a.current||!x||!r)return;const d=e==="left"?`left: ${i}`:`right: ${u}`;a.current.dataset.motionPopId=s;const l=document.createElement("style");return p&&(l.nonce=p),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
2          [data-motion-pop-id="${s}"] {
3            position: absolute !important;
4            width: ${x}px !important;
5            height: ${r}px !important;
6            ${d}px !important;
7            top: ${m}px !important;
8          }
9        `),()=>{document.head.contains(l)&&document.head.removeChild(l)}},[f]),E.jsx(G,{isPresent:f,childRef:a,sizeRef:n,children:t.cloneElement(c,{ref:a})})}const K=({children:c,initial:f,isPresent:e,onExitComplete:s,custom:a,presenceAffectsLayout:n,mode:p,anchorX:x})=>{const r=z(U),m=t.useId();let i=!0,u=t.useMemo(()=>(i=!1,{id:m,initial:f,isPresent:e,custom:a,onExitComplete:d=>{r.set(d,!0);for(const l of r.values())if(!l)return;s&&s()},register:d=>(r.set(d,!1),()=>r.delete(d))}),[e,r,s]);return n&&i&&(u={...u}),t.useMemo(()=>{r.forEach((d,l)=>r.set(l,!1))},[e]),t.useEffect(()=>{!e&&!r.size&&s&&s()},[e]),p==="popLayout"&&(c=E.jsx(H,{isPresent:e,anchorX:x,children:c})),E.jsx(S.Provider,{value:u,children:c})};function U(){return new Map}const R=c=>c.key||"";function v(c){const f=[];return t.Children.forEach(c,e=>{t.isValidElement(e)&&f.push(e)}),f}const T=({children:c,custom:f,initial:e=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:n="sync",propagate:p=!1,anchorX:x="left"})=>{const[r,m]=W(p),i=t.useMemo(()=>v(c),[c]),u=p&&!r?[]:i.map(R),d=t.useRef(!0),l=t.useRef(i),g=z(()=>new Map),[I,L]=t.useState(i),[C,j]=t.useState(i);B(()=>{d.current=!1,l.current=i;for(let h=0;h<C.length;h++){const o=R(C[h]);u.includes(o)?g.delete(o):g.get(o)!==!0&&g.set(o,!1)}},[C,u.length,u.join("-")]);const P=[];if(i!==I){let h=[...i];for(let o=0;o<C.length;o++){const y=C[o],M=R(y);u.includes(M)||(h.splice(o,0,y),P.push(y))}return n==="wait"&&P.length&&(h=P),j(v(h)),L(i),null}const{forceRender:w}=t.useContext(F);return E.jsx(E.Fragment,{children:C.map(h=>{const o=R(h),y=p&&!r?!1:i===C||u.includes(o),M=()=>{if(g.has(o))g.set(o,!0);else return;let $=!0;g.forEach(k=>{k||($=!1)}),$&&(w==null||w(),j(l.current),p&&(m==null||m()),s&&s())};return E.jsx(K,{isPresent:y,initial:!d.current||e?void 0:!1,custom:f,presenceAffectsLayout:a,mode:n,onExitComplete:y?void 0:M,anchorX:x,children:h},o)})})};export{T as A};

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.