PageSourceSearch

https://hiveon.net/_next/static/chunks/5c0b189e-6a827d5bd46c5367.js

js hiveon.net collected 2026-10-04 08:01:13 UTC 16,710 bytes, 2 lines download raw bytes

vendor: 5,694 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[342],{93075:function(e,n,t){t.d(n,{KK:function(){return useFocus},NI:function(){return useInteractions},XI:function(){return useHover},YF:function(){return useFloating},bQ:function(){return useDismiss},qs:function(){return useRole}});var r,o=t(67294),u=t(97145);t(85893);var l=t(37317);t(73935);var i=t(1371);let c="active",s="selected",a={...r||(r=t.t(o,2))},f=!1,d=0,genId=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+d++,v=a.useId,m=v||function(){let[e,n]=o.useState(()=>f?genId():void 0);return(0,u.Xj)(()=>{null==e&&n(genId())},[]),o.useEffect(()=>{f=!0},[]),e},g=o.createContext(null),p=o.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=o.useContext(g))?void 0:e.id)||null},useFloatingTree=()=>o.useContext(p);function createAttribute(e){return"data-floating-ui-"+e}function clearTimeoutIfSet(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let E=createAttribute("safe-polygon");function getDelay(e,n,t){if(t&&!(0,u.r)(t))return 0;if("number"==typeof e)return e;if("function"==typeof e){let t=e();return"number"==typeof t?t:null==t?void 0:t[n]}return null==e?void 0:e[n]}function getRestMs(e){return"function"==typeof e?e():e}function useHover(e,n){void 0===n&&(n={});let{open:t,onOpenChange:r,dataRef:i,events:c,elements:s}=e,{enabled:a=!0,delay:f=0,handleClose:d=null,mouseOnly:v=!1,restMs:m=0,move:g=!0}=n,p=useFloatingTree(),R=useFloatingParentNodeId(),M=(0,u.II)(d),b=(0,u.II)(f),y=(0,u.II)(t),h=(0,u.II)(m),w=o.useRef(),L=o.useRef(-1),k=o.useRef(),C=o.useRef(-1),x=o.useRef(!0),I=o.useRef(!1),P=o.useRef(()=>{}),S=o.useRef(!1),T=(0,u.iW)(()=>{var e;let n=null==(e=i.current.openEvent)?void 0:e.type;return(null==n?void 0:n.includes("mouse"))&&"mousedown"!==n});o.useEffect(()=>{if(a)return c.on("openchange",onOpenChange),()=>{c.off("openchange",onOpenChange)};function onOpenChange(e){let{open:n}=e;n||(clearTimeoutIfSet(L),clearTimeoutIfSet(C),x.current=!0,S.current=!1)}},[a,c]),o.useEffect(()=>{if(!a||!M.current||!t)return;function onLeave(e){T()&&r(!1,e,"hover")}let e=(0,u.Me)(s.floating).documentElement;return e.addEventListener("mouseleave",onLeave),()=>{e.removeEventListener("mouseleave",onLeave)}},[s.floating,t,r,a,M,T]);let K=o.useCallback(function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t="hover");let o=getDelay(b.current,"close",w.current);o&&!k.current?(clearTimeoutIfSet(L),L.current=window.setTimeout(()=>r(!1,e,t),o)):n&&(clearTimeoutIfSet(L),r(!1,e,t))},[b,r]),D=(0,u.iW)(()=>{P.current(),k.current=void 0}),F=(0,u.iW)(()=>{if(I.current){let e=(0,u.Me)(s.floating).body;e.style.pointerEvents="",e.removeAttribute(E),I.current=!1}}),W=(0,u.iW)(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));o.useEffect(()=>{if(a&&(0,l.kK)(s.domReference)){let e=s.domReference,n=s.floating;return t&&e.addEventListener("mouseleave",onScrollMouseLeave),g&&e.addEventListener("mousemove",onReferenceMouseEnter,{once:!0}),e.addEventListener("mouseenter",onReferenceMouseEnter),e.addEventListener("mouseleave",onReferenceMouseLeave),n&&(n.addEventListener("mouseleave",onScrollMouseLeave),n.addEventListener("mouseenter",onFloatingMouseEnter),n.addEventListener("mouseleave",onFloatingMouseLeave)),()=>{t&&e.removeEventListener("mouseleave",onScrollMouseLeave),g&&e.removeEventListener("mousemove",onReferenceMouseEnter),e.removeEventListener("mouseenter",onReferenceMouseEnter),e.removeEventListener("mouseleave",onReferenceMouseLeave),n&&(n.removeEventListener("mouseleave",onScrollMouseLeave),n.removeEventListener("mouseenter",onFloatingMouseEnter),n.removeEventListener("mouseleave",onFloatingMouseLeave))}}function onReferenceMouseEnter(e){if(clearTimeoutIfSet(L),x.current=!1,v&&!(0,u.r)(w.current)||getRestMs(h.current)>0&&!getDelay(b.current,"open"))return;let n=getDelay(b.current,"open",w.current);n?L.current=window.setTimeout(()=>{y.current||r(!0,e,"hover")},n):t||r(!0,e,"hover")}function onReferenceMouseLeave(e){if(W()){F();return}P.current();let n=(0,u.Me)(s.floating);if(clearTimeoutIfSet(C),S.current=!1,M.current&&i.current.floatingContext){t||clearTimeoutIfSet(L),k.current=M.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){F(),D(),W()||K(e,!0,"safe-polygon")}});let r=k.current;n.addEventListener("mousemove",r),P.current=()=>{n.removeEventListener("mousemove",r)};return}let r="touch"!==w.current||!(0,u.r3)(s.floating,e.relatedTarget);r&&K(e)}function onScrollMouseLeave(e){!W()&&i.current.floatingContext&&(null==M.current||M.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){F(),D(),W()||K(e)}})(e))}function onFloatingMouseEnter(){clearTimeoutIfSet(L)}function onFloatingMouseLeave(e){W()||K(e,!1)}},[s,a,e,v,g,K,D,F,r,t,y,p,b,M,i,W,h]),(0,u.Xj)(()=>{var e,n;if(a&&t&&null!=(e=M.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&T()){I.current=!0;let e=s.floating;if((0,l.kK)(s.domReference)&&e){let t=(0,u.Me)(s.floating).body;t.setAttribute(E,"");let r=s.domReference,o=null==p||null==(n=p.nodesRef.current.find(e=>e.id===R))||null==(n=n.context)?void 0:n.elements.floating;return o&&(o.style.pointerEvents=""),t.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{t.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,t,R,s,p,M,T]),(0,u.Xj)(()=>{t||(w.current=void 0,S.current=!1,D(),F())},[t,D,F]),o.useEffect(()=>()=>{D(),clearTimeoutIfSet(L),clearTimeoutIfSet(C),F()},[a,s.domReference,D,F]);let _=o.useMemo(()=>{function setPointerRef(e){w.current=e.pointerType}return{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(e){let{nativeEvent:n}=e;
vendor: 11,016 bytes, lines 1-2
1function handleMouseMove(){x.current||y.current||r(!0,n,"hover")}!(!v||(0,u.r)(w.current))||t||0===getRestMs(h.current)||S.current&&e.movementX**2+e.movementY**2<2||(clearTimeoutIfSet(C),"touch"===w.current?handleMouseMove():(S.current=!0,C.current=window.setTimeout(handleMouseMove,getRestMs(h.current))))}}},[v,r,t,y,h]);return o.useMemo(()=>a?{reference:_}:{},[a,_])}let R={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},M={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=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 useDismiss(e,n){void 0===n&&(n={});let{open:t,onOpenChange:r,elements:i,dataRef:c}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:v=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:p,capture:E}=n,b=useFloatingTree(),y=(0,u.iW)("function"==typeof f?f:()=>!1),h="function"==typeof f?y:f,w=o.useRef(!1),{escapeKey:L,outsidePress:k}=normalizeProp(p),{escapeKey:C,outsidePress:x}=normalizeProp(E),I=o.useRef(!1),P=(0,u.iW)(e=>{var n;if(!t||!s||!a||"Escape"!==e.key||I.current)return;let o=null==(n=c.current.floatingContext)?void 0:n.nodeId,l=b?(0,u.El)(b.nodesRef.current,o):[];if(!L&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(n=>{var t;if(null!=(t=n.context)&&t.open&&!n.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,(0,u.MM)(e)?e.nativeEvent:e,"escape-key")}),S=(0,u.iW)(e=>{var n;let callback=()=>{var n;P(e),null==(n=(0,u.U9)(e))||n.removeEventListener("keydown",callback)};null==(n=(0,u.U9)(e))||n.addEventListener("keydown",callback)}),T=(0,u.iW)(e=>{var n;let t=c.current.insideReactTree;c.current.insideReactTree=!1;let o=w.current;if(w.current=!1,"click"===d&&o||t||"function"==typeof h&&!h(e))return;let s=(0,u.U9)(e),a="["+createAttribute("inert")+"]",f=(0,u.Me)(i.floating).querySelectorAll(a),v=(0,l.kK)(s)?s:null;for(;v&&!(0,l.Py)(v);){let e=(0,l.Ow)(v);if((0,l.Py)(e)||!(0,l.kK)(e))break;v=e}if(f.length&&(0,l.kK)(s)&&!(0,u.ex)(s)&&!(0,u.r3)(s,i.floating)&&Array.from(f).every(e=>!(0,u.r3)(v,e)))return;if((0,l.Re)(s)&&F){let n=(0,l.Py)(s),t=(0,l.Dx)(s),r=/auto|scroll/,o=n||r.test(t.overflowX),u=n||r.test(t.overflowY),i=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,c=u&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,a="rtl"===t.direction,f=c&&(a?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=i&&e.offsetY>s.clientHeight;if(f||d)return}let m=null==(n=c.current.floatingContext)?void 0:n.nodeId,g=b&&(0,u.El)(b.nodesRef.current,m).some(n=>{var t;return(0,u.Pe)(e,null==(t=n.context)?void 0:t.elements.floating)});if((0,u.Pe)(e,i.floating)||(0,u.Pe)(e,i.domReference)||g)return;let p=b?(0,u.El)(b.nodesRef.current,m):[];if(p.length>0){let e=!0;if(p.forEach(n=>{var t;if(null!=(t=n.context)&&t.open&&!n.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),K=(0,u.iW)(e=>{var n;let callback=()=>{var n;T(e),null==(n=(0,u.U9)(e))||n.removeEventListener(d,callback)};null==(n=(0,u.U9)(e))||n.addEventListener(d,callback)});o.useEffect(()=>{if(!t||!s)return;c.current.__escapeKeyBubbles=L,c.current.__outsidePressBubbles=k;let e=-1;function onScroll(e){r(!1,e,"ancestor-scroll")}function handleCompositionStart(){window.clearTimeout(e),I.current=!0}function handleCompositionEnd(){e=window.setTimeout(()=>{I.current=!1},(0,l.Pf)()?5:0)}let n=(0,u.Me)(i.floating);a&&(n.addEventListener("keydown",C?S:P,C),n.addEventListener("compositionstart",handleCompositionStart),n.addEventListener("compositionend",handleCompositionEnd)),h&&n.addEventListener(d,x?K:T,x);let o=[];return g&&((0,l.kK)(i.domReference)&&(o=(0,l.Kx)(i.domReference)),(0,l.kK)(i.floating)&&(o=o.concat((0,l.Kx)(i.floating))),!(0,l.kK)(i.reference)&&i.reference&&i.reference.contextElement&&(o=o.concat((0,l.Kx)(i.reference.contextElement)))),(o=o.filter(e=>{var t;return e!==(null==(t=n.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",onScroll,{passive:!0})}),()=>{a&&(n.removeEventListener("keydown",C?S:P,C),n.removeEventListener("compositionstart",handleCompositionStart),n.removeEventListener("compositionend",handleCompositionEnd)),h&&n.removeEventListener(d,x?K:T,x),o.forEach(e=>{e.removeEventListener("scroll",onScroll)}),window.clearTimeout(e)}},[c,i,a,h,d,t,r,g,s,L,k,P,C,S,T,x,K]),o.useEffect(()=>{c.current.insideReactTree=!1},[c,h,d]);let D=o.useMemo(()=>({onKeyDown:P,...v&&{[R[m]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==m&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,v,m]),F=o.useMemo(()=>({onKeyDown:P,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[M[d]]:()=>{c.current.insideReactTree=!0}}),[P,d,c]);return o.useMemo(()=>s?{reference:D,floating:F}:{},[s,D,F])}function useFloating(e){void 0===e&&(e={});let{nodeId:n}=e,t=function(e){let{open:n=!1,onOpenChange:t,elements:r}=e,l=m(),i=o.useRef({}),[c]=o.useState(()=>(function(){let 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)}}})()),s=null!=useFloatingParentNodeId(),[a,f]=o.useState(r.reference),d=(0,u.iW)((e,n,r)=>{i.current.openEvent=e?n:void 0,c.emit("openchange",{open:e,event:n,reason:r,nested:s}),null==t||t(e,n,r)}),v=o.useMemo(()=>({setPositionReference:f}),[]),g=o.useMemo(()=>({reference:a||r.reference||null,floating:r.floating||null,domReference:r.reference}),[a,r.reference,r.floating]);return o.useMemo(()=>({dataRef:i,open:n,onOpenChange:d,elements:g,events:c,floatingId:l,refs:v}),[n,d,g,c,l,v])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||t,c=r.elements,[s,a]=o.useState(null),[f,d]=o.useState(null),v=null==c?void 0:c.domReference,g=v||s,p=o.useRef(null),E=useFloatingTree();(0,u.Xj)(()=>{g&&(p.current=g)},[g]);let R=(0,i.YF)({...e,elements:{...c,...f&&{reference:f}}}),M=o.useCallback(e=>{let n=(0,l.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(n),R.refs.setReference(n)},[R.refs]),b=o.useCallback(e=>{((0,l.kK)(e)||null===e)&&(p.current=e,a(e)),((0,l.kK)(R.refs.reference.current)||null===R.refs.reference.current||null!==e&&!(0,l.kK)(e))&&R.refs.setReference(e)},[R.refs]),y=o.useMemo(()=>({...R.refs,setReference:b,setPositionReference:M,domReference:p}),[R.refs,b,M]),h=o.useMemo(()=>({...R.elements,domReference:g}),[R.elements,g]),w=o.useMemo(()=>({...R,...r,refs:y,elements:h,nodeId:n}),[R,y,h,n,r]);return(0,u.Xj)(()=>{r.dataRef.current.floatingContext=w;let e=null==E?void 0:E.nodesRef.current.find(e=>e.id===n);e&&(e.context=w)}),o.useMemo(()=>({...R,context:w,refs:y,elements:h}),[R,y,h,w])}function isMacSafari(){return(0,u.V5)()&&(0,u.G6)()}function useFocus(e,n){void 0===n&&(n={});let{open:t,onOpenChange:r,events:i,dataRef:c,elements:s}=e,{enabled:a=!0,visibleOnly:f=!0}=n,d=o.useRef(!1),v=o.useRef(-1),m=o.useRef(!0);o.useEffect(()=>{if(!a)return;let e=(0,l.Jj)(s.domReference);function onBlur(){!t&&(0,l.Re)(s.domReference)&&s.domReference===(0,u.AW)((0,u.Me)(s.domReference))&&(d.current=!0)}function onKeyDown(){m.current=!0}function onPointerDown(){m.current=!1}return e.addEventListener("blur",onBlur),isMacSafari()&&(e.addEventListener("keydown",onKeyDown,!0),e.addEventListener("pointerdown",onPointerDown,!0)),()=>{e.removeEventListener("blur",onBlur),isMacSafari()&&(e.removeEventListener("keydown",onKeyDown,!0),e.removeEventListener("pointerdown",onPointerDown,!0))}},[s.domReference,t,a]),o.useEffect(()=>{if(a)return i.on("openchange",onOpenChange),()=>{i.off("openchange",onOpenChange)};function onOpenChange(e){let{reason:n}=e;("reference-press"===n||"escape-key"===n)&&(d.current=!0)}},[i,a]),o.useEffect(()=>()=>{clearTimeoutIfSet(v)},[]);let g=o.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let n=(0,u.U9)(e.nativeEvent);if(f&&(0,l.kK)(n)){if(isMacSafari()&&!e.relatedTarget){if(!m.current&&!(0,u.j7)(n))return}else if(!(0,u.WL)(n))return}r(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;let n=e.relatedTarget,t=e.nativeEvent,o=(0,l.kK)(n)&&n.hasAttribute(createAttribute("focus-guard"))&&"outside"===n.getAttribute("data-type");v.current=window.setTimeout(()=>{var e;let l=(0,u.AW)(s.domReference?s.domReference.ownerDocument:document);if(n||l!==s.domReference){if((0,u.r3)(null==(e=c.current.floatingContext)?void 0:e.refs.floating.current,l)||(0,u.r3)(s.domReference,l)||o)return;r(!1,t,"focus")}})}}),[c,s.domReference,r,f]);return o.useMemo(()=>a?{reference:g}:{},[a,g])}function mergeProps(e,n,t){let r=new Map,o="item"===t,u=e;if(o&&e){let{[c]:n,[s]:t,...r}=e;u=r}return{..."floating"===t&&{tabIndex:-1,"data-floating-ui-focusable":""},...u,...n.map(n=>{let 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;if(!(o&&[c,s].includes(t))){if(0===t.indexOf("on")){if(r.has(t)||r.set(t,[]),"function"==typeof u){var l;null==(l=r.get(t))||l.push(u),e[t]=function(){for(var e,n=arguments.length,o=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)}}}else e[t]=u}}),e),{})}}function useInteractions(e){void 0===e&&(e=[]);let 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=>mergeProps(n,e,"reference"),n),l=o.useCallback(n=>mergeProps(n,e,"floating"),t),i=o.useCallback(n=>mergeProps(n,e,"item"),r);return o.useMemo(()=>({getReferenceProps:u,getFloatingProps:l,getItemProps:i}),[u,l,i])}let b=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(e,n){var t,r;void 0===n&&(n={});let{open:l,elements:i,floatingId:c}=e,{enabled:s=!0,role:a="dialog"}=n,f=m(),d=(null==(t=i.domReference)?void 0:t.id)||f,v=o.useMemo(()=>{var e;return(null==(e=(0,u.zd)(i.floating))?void 0:e.id)||c},[i.floating,c]),g=null!=(r=b.get(a))?r:a,p=useFloatingParentNodeId(),E=null!=p,R=o.useMemo(()=>"tooltip"===g||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:l?v:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===g?"dialog":g,"aria-controls":l?v:void 0,..."listbox"===g&&{role:"combobox"},..."menu"===g&&{id:d},..."menu"===g&&E&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[g,v,E,l,d,a]),M=o.useMemo(()=>{let e={id:v,...g&&{role:g}};return"tooltip"===g||"label"===a?e:{...e,..."menu"===g&&{"aria-labelledby":d}}},[g,v,d,a]),y=o.useCallback(e=>{let{active:n,selected:t}=e,r={role:"option",...n&&{id:v+"-fui-option"}};switch(a){case"select":case"combobox":return{...r,"aria-selected":t}}return{}},[v,a]);return o.useMemo(()=>s?{reference:R,floating:M,item:y}:{},[s,R,M,y])}}}]);
2//# sourceMappingURL=5c0b189e-6a827d5bd46c5367.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.