vendor: 5,182 bytes, line 1
1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{Cr as t,D as n,Gt as r,J as i,Lr as a,Q as o,U as s,Ut as c,Vt as l,W as u,Wt as d,X as f,Z as p,_r as m,gn as h,gr as g,hn as _,hr as v,ir as y,mr as b,vn as x,wr as S,yn as C}from"./backend-Cl9m36_h.js";import{g as w,v as T}from"./makeStyles-BNG0iYT_.js";import{a as ee,i as E,n as D,o as O,r as k,t as A}from"./ownerWindow-CfHBVxp8.js";import{t as j}from"./ListContext-CnqI2FQK.js";import{t as te}from"./Grow-BK_Nk-c1.js";import{t as M}from"./Modal-C0XpckoD.js";var N=e(a());S(),m(),v();var P=y();d(),p(),i(),_(),x();function F(e){return C(`MuiList`,e)}h(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var I=[`children`,`className`,`component`,`dense`,`disablePadding`,`subheader`],L=e=>{let{classes:t,disablePadding:n,dense:i,subheader:a}=e;return r({root:[`root`,!n&&`padding`,i&&`dense`,a&&`subheader`]},F,t)},R=o(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>g({listStyle:`none`,margin:0,padding:0,position:`relative`},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),z=N.forwardRef(function(e,n){let r=f({props:e,name:`MuiList`}),{children:i,className:a,component:o=`ul`,dense:s=!1,disablePadding:c=!1,subheader:l}=r,u=b(r,I),d=N.useMemo(()=>({dense:s}),[s]),p=g({},r,{component:o,dense:s,disablePadding:c}),m=L(p);return(0,P.jsx)(j.Provider,{value:d,children:(0,P.jsxs)(R,g({as:o,className:t(m.root,a),ref:n,ownerState:p},u,{children:[l,i]}))})});l(),w(),s(),O(),k(),A(),_(),x();function B(e){return C(`MuiPopover`,e)}h(`MuiPopover`,[`root`,`paper`]),m(),v(),S(),d(),p(),i();var ne=[`onEntering`],re=[`action`,`anchorEl`,`anchorOrigin`,`anchorPosition`,`anchorReference`,`children`,`className`,`container`,`elevation`,`marginThreshold`,`open`,`PaperProps`,`slots`,`slotProps`,`transformOrigin`,`TransitionComponent`,`transitionDuration`,`TransitionProps`,`disableScrollLock`],ie=[`slotProps`];function V(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function H(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function U(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function W(e){return typeof e==`function`?e():e}var ae=e=>{let{classes:t}=e;return r({root:[`root`],paper:[`paper`]},B,t)},oe=o(M,{name:`MuiPopover`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),G=o(n,{name:`MuiPopover`,slot:`Paper`,overridesResolver:(e,t)=>t.paper})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),K=N.forwardRef(function(e,n){let r=f({props:e,name:`MuiPopover`}),{action:i,anchorEl:a,anchorOrigin:o={vertical:`top`,horizontal:`left`},anchorPosition:s,anchorReference:l=`anchorEl`,children:d,className:p,container:m,elevation:h=8,marginThreshold:_=16,open:v,PaperProps:y={},slots:x,slotProps:S,transformOrigin:C={vertical:`top`,horizontal:`left`},TransitionComponent:w=te,transitionDuration:O=`auto`,TransitionProps:{onEntering:k}={},disableScrollLock:A=!1}=r,j=b(r.TransitionProps,ne),M=b(r,re),F=S?.paper??y,I=N.useRef(),L=u(I,F.ref),R=g({},r,{anchorOrigin:o,anchorReference:l,elevation:h,marginThreshold:_,externalPaperSlotProps:F,transformOrigin:C,TransitionComponent:w,transitionDuration:O,TransitionProps:j}),z=ae(R),B=N.useCallback(()=>{if(l===`anchorPosition`)return s;let e=W(a),t=(e&&e.nodeType===1?e:E(I.current).body).getBoundingClientRect();return{top:t.top+V(t,o.vertical),left:t.left+H(t,o.horizontal)}},[a,o.horizontal,o.vertical,s,l]),K=N.useCallback(e=>({vertical:V(e,C.vertical),horizontal:H(e,C.horizontal)}),[C.horizontal,C.vertical]),q=N.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=K(t);if(l===`none`)return{top:null,left:null,transformOrigin:U(n)};let r=B(),i=r.top-n.vertical,o=r.left-n.horizontal,s=i+t.height,c=o+t.width,u=D(W(a)),d=u.innerHeight-_,f=u.innerWidth-_;if(_!==null&&i<_){let e=i-_;i-=e,n.vertical+=e}else if(_!==null&&s>d){let e=s-d;i-=e,n.vertical+=e}if(_!==null&&o<_){let e=o-_;o-=e,n.horizontal+=e}else if(c>f){let e=c-f;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:U(n)}},[a,l,B,K,_]),[se,J]=N.useState(v),Y=N.useCallback(()=>{let e=I.current;if(!e)return;let t=q(e);t.top!==null&&(e.style.top=t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,J(!0)},[q]);N.useEffect(()=>(A&&window.addEventListener(`scroll`,Y),()=>window.removeEventListener(`scroll`,Y)),[a,A,Y]);let ce=(e,t)=>{k&&k(e,t),Y()},le=()=>{J(!1)};N.useEffect(()=>{v&&Y()}),N.useImperativeHandle(i,()=>v?{updatePosition:()=>{Y()}}:null,[v,Y]),N.useEffect(()=>{if(!v)return;let e=ee(()=>{Y()}),t=D(a);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[a,v,Y]);let X=O;O===`auto`&&!w.muiSupportAuto&&(X=void 0);let ue=m||(a?E(W(a)).body:void 0),Z=x?.root??oe,Q=x?.paper??G,de=T({elementType:Q,externalSlotProps:g({},F,{style:se?F.style:g({},F.style,{opacity:0}
vendor: 537 bytes, line 1
1)}),additionalProps:{elevation:h,ref:L},ownerState:R,className:t(z.paper,F?.className)}),$=T({elementType:Z,externalSlotProps:S?.root||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:v},ownerState:R,className:t(z.root,p)}),{slotProps:fe}=$,pe=b($,ie);return(0,P.jsx)(Z,g({},pe,!c(Z)&&{slotProps:fe,disableScrollLock:A},{children:(0,P.jsx)(w,g({appear:!0,in:v,onEntering:ce,onExited:le,timeout:X},j,{children:(0,P.jsx)(Q,g({},de,{children:d}))}))}))});export{G as n,z as r,K 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.