1import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{v as t}from"./forms-BA2oQwJY.js";import{i as n,n as r,r as i}from"./query-D7eST_e_.js";import{t as a}from"./useTranslation-C5TEIqmL.js";var o=e=>{let{queryFn:t,...r}=e;return n({...r,queryFn:async()=>{let e=await t();if(e.ok)return e.value;throw e.error}})},s=e=>{let{queryFn:t,...n}=e;return r({...n,queryFn:async e=>{let n=await t(e);if(n.ok)return n.value;throw n.error}})},c=e=>{let{mutationFn:t,...n}=e;return i({...n,mutationFn:async e=>{let n=await t(e);if(n.ok)return n.value;throw n.error}})},l=e(t(),1),u=(e,t={})=>{let{enabled:n=!0,root:r,rootMargin:i,threshold:a}=t,o=(0,l.useRef)(null),s=(0,l.useRef)(e);return(0,l.useEffect)(()=>{s.current=e}),(0,l.useCallback)(e=>{o.current&&=(o.current.disconnect(),null),!(!e||!n)&&(o.current=new IntersectionObserver(e=>{e[0]&&s.current(e[0].isIntersecting)},{root:r,rootMargin:i,threshold:a}),o.current.observe(e))},[n,r,i,a])},d=(e,t=300)=>{let[n,r]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n};function f(e){let[t,n]=(0,l.useState)(()=>typeof window>`u`?!1:window.matchMedia(e).matches);return(0,l.useEffect)(()=>{let t=window.matchMedia(e),r=e=>n(e.matches);return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}var p=`timio`;function m(e,t,n){let r=document.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement(`meta`),r.setAttribute(e,t),document.head.appendChild(r)),r.setAttribute(`content`,n)}var h=e=>{(0,l.useEffect)(()=>{let t=e?`${e} | ${p}`:p;document.title=t,m(`property`,`og:title`,t),m(`name`,`twitter:title`,t)},[e])};function g(e,t,n){let r=document.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement(`meta`),r.setAttribute(e,t),document.head.appendChild(r)),r.setAttribute(`content`,n)}var _=e=>{let{t}=a();(0,l.useEffect)(()=>{let n=t(`common.meta.defaultDescription`),r=e??n;return g(`name`,`description`,r),g(`property`,`og:description`,r),g(`name`,`twitter:description`,r),()=>{g(`name`,`description`,n),g(`property`,`og:description`,n),g(`name`,`twitter:description`,n)}},[e,t])};export{u as a,o as c,d as i,h as n,c as o,f as r,s,_ 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.