1"use strict";(self.webpackChunkeng_website=self.webpackChunkeng_website||[]).push([[8779],{59198:function(e,n,t){var r;t.d(n,{XF:function(){return F},bv:function(){return X},s9:function(){return B},we:function(){return J}});var o=t(30758),u=t(12059),s=t(86070),l=t(54268),i=t(8143),c=t(52743);const f="data-floating-ui-focusable",a="active",d="selected",v="ArrowLeft",p="ArrowRight",m="ArrowUp",g="ArrowDown";const E=[v,p],R=[m,g],w={...r||(r=t.t(o,2))};let h=!1,b=0;const C=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+b++;const y=w.useId||function(){const[e,n]=o.useState(()=>h?C():void 0);return(0,u.OS)(()=>{null==e&&n(C())},[]),o.useEffect(()=>{h=!0},[]),e};function x(){const e=new Map;return{emit(n,t){var r;null==(r=e.get(n))||r.forEach(e=>e(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var r;null==(r=e.get(n))||r.delete(t)}}}const k=o.createContext(null),M=o.createContext(null),L=()=>{var e;return(null==(e=o.useContext(k))?void 0:e.id)||null},P=()=>o.useContext(M);function S(e){return"data-floating-ui-"+e}const O={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},q=o.forwardRef(function(e,n){const[t,r]=o.useState();(0,u.OS)(()=>{(0,u.nr)()&&r("button")},[]);const l={ref:n,tabIndex:0,role:t,"aria-hidden":!t||void 0,[S("focus-guard")]:"",style:O};return(0,s.jsx)("span",{...e,...l})}),I={clipPath:"inset(50%)",position:"fixed",top:0,left:0},W=o.createContext(null),_=S("portal");function F(e){const{children:n,id:t,root:r,preserveTabOrder:c=!0}=e,f=function(e){void 0===e&&(e={});const{id:n,root:t}=e,r=y(),s=T(),[i,c]=o.useState(null),f=o.useRef(null);return(0,u.OS)(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{f.current=null})},[i]),(0,u.OS)(()=>{if(!r)return;if(f.current)return;const e=n?document.getElementById(n):null;if(!e)return;const t=document.createElement("div");t.id=r,t.setAttribute(_,""),e.appendChild(t),f.current=t,c(t)},[n,r]),(0,u.OS)(()=>{if(null===t)return;if(!r)return;if(f.current)return;let e=t||(null==s?void 0:s.portalNode);e&&!(0,l.Ll)(e)&&(e=e.current),e=e||document.body;let o=null;n&&(o=document.createElement("div"),o.id=n,e.appendChild(o));const u=document.createElement("div");u.id=r,u.setAttribute(_,""),e=o||e,e.appendChild(u),f.current=u,c(u)},[n,t,r,s]),i}({id:t,root:r}),[a,d]=o.useState(null),v=o.useRef(null),p=o.useRef(null),m=o.useRef(null),g=o.useRef(null),E=null==a?void 0:a.modal,R=null==a?void 0:a.open,w=!!a&&!a.modal&&a.open&&c&&!(!r&&!f);return o.useEffect(()=>{if(f&&c&&!E)return f.addEventListener("focusin",e,!0),f.addEventListener("focusout",e,!0),()=>{f.removeEventListener("focusin",e,!0),f.removeEventListener("focusout",e,!0)};function e(e){if(f&&(0,u.Qp)(e)){("focusin"===e.type?u.yV:u.N)(f)}}},[f,c,E]),o.useEffect(()=>{f&&(R||(0,u.yV)(f))},[R,f]),(0,s.jsxs)(W.Provider,{value:o.useMemo(()=>({preserveTabOrder:c,beforeOutsideRef:v,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:g,portalNode:f,setFocusManagerState:d}),[c,f]),children:[w&&f&&(0,s.jsx)(q,{"data-type":"outside",ref:v,onFocus:e=>{if((0,u.Qp)(e,f)){var n;null==(n=m.current)||n.focus()}else{const e=a?a.domReference:null,n=(0,u.XJ)(e);null==n||n.focus()}}}),w&&f&&(0,s.jsx)("span",{"aria-owns":f.id,style:I}),f&&i.createPortal(n,f),w&&f&&(0,s.jsx)(q,{"data-type":"outside",ref:p,onFocus:e=>{if((0,u.Qp)(e,f)){var n;null==(n=g.current)||n.focus()}else{const n=a?a.domReference:null,t=(0,u.vF)(n);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const T=()=>o.useContext(W);const A={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},K={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},D=e=>{var n,t;return{escapeKey:"boolean"==typeof e?e:null!=(n=null==e?void 0:e.escapeKey)&&n,outsidePress:"boolean"==typeof e?e:null==(t=null==e?void 0:e.outsidePress)||t}};function B(e,n){void 0===n&&(n={});const{open:t,onOpenChange:r,elements:s,dataRef:i}=e,{enabled:c=!0,escapeKey:f=!0,outsidePress:a=!0,outsidePressEvent:d="pointerdown",referencePress:v=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:E}=n,R=P(),w=(0,u.Jt)("function"==typeof a?a:()=>!1),h="function"==typeof a?w:a,b=o.useRef(!1),{escapeKey:C,outsidePress:y}=D(g),{escapeKey:x,outsidePress:k}=D(E),M=o.useRef(!1),L=(0,u.Jt)(e=>{var n;if(!t||!c||!f||"Escape"!==e.key)return;if(M.current)return;const o=null==(n=i.current.floatingContext)?void 0:n.nodeId,s=R?(0,u.CM)(R.nodesRef.current,o):[];if(!C&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(n=>{var t;null==(t=n.context)||!t.open||n.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,(0,u.O_)(e)?e.nativeEvent:e,"escape-key")}),O=(0,u.Jt)(e=>{var n;const t=()=>{var n;L(e),null==(n=(0,u.EW)(e))||n.removeEventListener("keydown",t)};null==(n=(0,u.EW)(e))||n.addEventListener("keydown",t)}),q=(0,u.Jt)(e=>{var n;const t=i.current.insideReactTree;i.current.insideReactTree=!1;const o=b.current;if(b.current=!1,"click"===d&&o)return;if(t)return;if("function"==typeof h&&!h(e))return;const c=(0,u.EW)(e),f="["+S("inert")+"]",a=(0,u.YE)(s.floating).querySelectorAll(f);let v=(0,l.vq)(c)?c:null;for(;v&&!(0,l.eu)(v);){const e=(0,l.$4)(v);if((0,l.eu)(e)||!(0,l.vq)(e))break;v=e}if(a.length&&(0,l.vq)(c)&&!(0,u.tZ)(c)&&!(0,u.gR)(c,s.floating)&&Array.from(a).every(e=>!(0,u.gR)(v,e)))return;if((0,l.sb)(c)&&_){const n=(0,l.eu)(c),t=(0,l.L9)(c),r=/auto|scroll/,o=n||r.test(t.overflowX),u=n||r.test(t.overflowY),s=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,i=u&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,f="rtl"===t.direction,a=i&&(f?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),d=s&&e.offsetY>c.clientHeight;if(a||d)return}const p=null==(n=i.current.floatingContext)?void 0:n.nodeId,m=R&&(0,u.CM)(R.nodesRef.current,p).some(n=>{var t;return(0,u.F2)(e,null==(t=n.context)?void 0:t.elements.floating)});if((0,u.F2)(e,s.floating)||(0,u.F2)(e,s.domReference)||m)return;const g=R?(0,u.CM)(R.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach(n=>{var t;null==(t=n.context)||!t.open||n.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),I=(0,u.Jt)(e=>{var n;const t=()=>{var n;q(e),null==(n=(0,u.EW)(e))||n.removeEventListener(d,t)};null==(n=(0,u.EW)(e))||n.addEventListener(d,t)});o.useEffect(()=>{if(!t||!c)return;i.current.__escapeKeyBubbles=C,i.current.__outsidePressBubbles=y;let e=-1;function n(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),M.current=!0}function a(){e=window.setTimeout(()=>
1{M.current=!1},(0,l.Tc)()?5:0)}const v=(0,u.YE)(s.floating);f&&(v.addEventListener("keydown",x?O:L,x),v.addEventListener("compositionstart",o),v.addEventListener("compositionend",a)),h&&v.addEventListener(d,k?I:q,k);let p=[];return m&&((0,l.vq)(s.domReference)&&(p=(0,l.v9)(s.domReference)),(0,l.vq)(s.floating)&&(p=p.concat((0,l.v9)(s.floating))),!(0,l.vq)(s.reference)&&s.reference&&s.reference.contextElement&&(p=p.concat((0,l.v9)(s.reference.contextElement)))),p=p.filter(e=>{var n;return e!==(null==(n=v.defaultView)?void 0:n.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",n,{passive:!0})}),()=>{f&&(v.removeEventListener("keydown",x?O:L,x),v.removeEventListener("compositionstart",o),v.removeEventListener("compositionend",a)),h&&v.removeEventListener(d,k?I:q,k),p.forEach(e=>{e.removeEventListener("scroll",n)}),window.clearTimeout(e)}},[i,s,f,h,d,t,r,m,c,C,y,L,x,O,q,k,I]),o.useEffect(()=>{i.current.insideReactTree=!1},[i,h,d]);const W=o.useMemo(()=>({onKeyDown:L,...v&&{[A[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[L,r,v,p]),_=o.useMemo(()=>{function e(e){0===e.button&&(b.current=!0)}return{onKeyDown:L,onMouseDown:e,onMouseUp:e,[K[d]]:()=>{i.current.insideReactTree=!0}}},[L,d,i]);return o.useMemo(()=>c?{reference:W,floating:_}:{},[c,W,_])}function J(e){void 0===e&&(e={});const{nodeId:n}=e,t=function(e){const{open:n=!1,onOpenChange:t,elements:r}=e,s=y(),l=o.useRef({}),[i]=o.useState(()=>x()),c=null!=L(),[f,a]=o.useState(r.reference),d=(0,u.Jt)((e,n,r)=>{l.current.openEvent=e?n:void 0,i.emit("openchange",{open:e,event:n,reason:r,nested:c}),null==t||t(e,n,r)}),v=o.useMemo(()=>({setPositionReference:a}),[]),p=o.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return o.useMemo(()=>({dataRef:l,open:n,onOpenChange:d,elements:p,events:i,floatingId:s,refs:v}),[n,d,p,i,s,v])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||t,s=r.elements,[i,f]=o.useState(null),[a,d]=o.useState(null),v=(null==s?void 0:s.domReference)||i,p=o.useRef(null),m=P();(0,u.OS)(()=>{v&&(p.current=v)},[v]);const g=(0,c.we)({...e,elements:{...s,...a&&{reference:a}}}),E=o.useCallback(e=>{const n=(0,l.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(n),g.refs.setReference(n)},[g.refs]),R=o.useCallback(e=>{((0,l.vq)(e)||null===e)&&(p.current=e,f(e)),((0,l.vq)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,l.vq)(e))&&g.refs.setReference(e)},[g.refs]),w=o.useMemo(()=>({...g.refs,setReference:R,setPositionReference:E,domReference:p}),[g.refs,R,E]),h=o.useMemo(()=>({...g.elements,domReference:v}),[g.elements,v]),b=o.useMemo(()=>({...g,...r,refs:w,elements:h,nodeId:n}),[g,w,h,n,r]);return(0,u.OS)(()=>{r.dataRef.current.floatingContext=b;const e=null==m?void 0:m.nodesRef.current.find(e=>e.id===n);e&&(e.context=b)}),o.useMemo(()=>({...g,context:b,refs:w,elements:h}),[g,w,h,b])}function j(e,n,t){const r=new Map,o="item"===t;let u=e;if(o&&e){const{[a]:n,[d]:t,...r}=e;u=r}return{..."floating"===t&&{tabIndex:-1,[f]:""},...u,...n.map(n=>{const r=n?n[t]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,n)=>n?(Object.entries(n).forEach(n=>{let[t,u]=n;var s;o&&[a,d].includes(t)||(0===t.indexOf("on")?(r.has(t)||r.set(t,[]),"function"==typeof u&&(null==(s=r.get(t))||s.push(u),e[t]=function(){for(var e,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return null==(e=r.get(t))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[t]=u)}),e):e,{})}}function X(e){void 0===e&&(e=[]);const n=e.map(e=>null==e?void 0:e.reference),t=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),u=o.useCallback(n=>j(n,e,"reference"),n),s=o.useCallback(n=>j(n,e,"floating"),t),l=o.useCallback(n=>j(n,e,"item"),r);return o.useMemo(()=>({getReferenceProps:u,getFloatingProps:s,getItemProps:l}),[u,s,l])}}}]); 2//# sourceMappingURL=3020afe9-99fb97aa140892fc7053.js.map
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.