1import{l as J,m as K,H as Z,p as tt}from"./DHHqtPgW.js";const H=new Set,c=new WeakMap,T=new WeakMap,h=new WeakMap,B=new WeakMap,$=new WeakMap,S=new WeakMap,E=new WeakMap,y=new WeakMap,x=new WeakSet;let u,R=0,j=0;const w="__aa_tgt",N="__aa_del",P="__aa_new",F=t=>{const e=it(t);e&&e.forEach(n=>rt(n))},et=t=>{t.forEach(e=>{e.target===u&&nt(),c.has(e.target)&&M(e.target)})};function q(t){const e=t.getBoundingClientRect(),n=(u==null?void 0:u.clientWidth)||0,i=(u==null?void 0:u.clientHeight)||0;return e.bottom<0||e.top>i||e.right<0||e.left>n}function z(t){const e=B.get(t);e==null||e.disconnect();let n=c.get(t),i=0;const o=5;n||(n=C(t),c.set(t,n));const{offsetWidth:r,offsetHeight:s}=u,d=[n.top-o,r-(n.left+o+n.width),s-(n.top+o+n.height),n.left-o].map(f=>`${-1*Math.floor(f)}px`).join(" "),l=new IntersectionObserver(()=>{++i>1&&M(t)},{root:u,threshold:1,rootMargin:d});l.observe(t),B.set(t,l)}function M(t,e=!0){clearTimeout(y.get(t));const n=A(t),i=e?L(n)?500:n.duration:0;y.set(t,setTimeout(async()=>{const o=h.get(t);try{await(o==null?void 0:o.finished),c.set(t,C(t)),z(t)}catch{}},i))}function nt(){clearTimeout(y.get(u)),y.set(u,setTimeout(()=>{H.forEach(t=>_(t,e=>U(()=>M(e))))},100))}function ot(t){setTimeout(()=>{S.set(t,setInterval(()=>U(M.bind(null,t)),2e3))},Math.round(2e3*Math.random()))}function U(t){typeof requestIdleCallback=="function"?requestIdleCallback(()=>t()):requestAnimationFrame(()=>t())}let m;const Q=typeof window<"u"&&"ResizeObserver"in window;Q&&(u=document.documentElement,new MutationObserver(F),m=new ResizeObserver(et),window.addEventListener("scroll",()=>{j=window.scrollY,R=window.scrollX}),m.observe(u));function it(t){return t.reduce((i,o)=>[...i,...Array.from(o.addedNodes),...Array.from(o.removedNodes)],[]).every(i=>i.nodeName==="#comment")?!1:t.reduce((i,o)=>
1{if(i===!1)return!1;if(o.target instanceof Element){if(k(o.target),!i.has(o.target)){i.add(o.target);for(let r=0;r<o.target.children.length;r++){const s=o.target.children.item(r);if(s){if(N in s)return!1;k(o.target,s),i.add(s)}}}if(o.removedNodes.length)for(let r=0;r<o.removedNodes.length;r++){const s=o.removedNodes[r];if(N in s)return!1;s instanceof Element&&(i.add(s),k(o.target,s),T.set(s,[o.previousSibling,o.nextSibling]))}}return i},new Set)}function k(t,e){!e&&!(w in t)?Object.defineProperty(t,w,{value:t}):e&&!(w in e)&&Object.defineProperty(e,w,{value:t})}function rt(t){var e,n;const i=t.isConnected,o=c.has(t);i&&T.has(t)&&T.delete(t),((e=h.get(t))===null||e===void 0?void 0:e.playState)!=="finished"&&((n=h.get(t))===null||n===void 0||n.cancel()),P in t?D(t):o&&i?at(t):o&&!i?dt(t):D(t)}function v(t){return Number(t.replace(/[^0-9.\-]/g,""))}function st(t){let e=t.parentElement;for(;e;){if(e.scrollLeft||e.scrollTop)return{x:e.scrollLeft,y:e.scrollTop};e=e.parentElement}return{x:0,y:0}}function C(t){const e=t.getBoundingClientRect(),{x:n,y:i}=st(t);return{top:e.top+i,left:e.left+n,width:e.width,height:e.height}}function G(t,e,n){let i=e.width,o=e.height,r=n.width,s=n.height;const a=getComputedStyle(t);if(a.getPropertyValue("box-sizing")==="content-box"){const l=v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth),f=v(a.paddingLeft)+v(a.paddingRight)+v(a.borderRightWidth)+v(a.borderLeftWidth);i-=f,r-=f,o-=l,s-=l}return[i,r,o,s].map(Math.round)}function A(t){return w in t&&E.has(t[w])?E.get(t[w]):{duration:250,easing:"ease-in-out"}}function V(t){if(w in t)return t[w]}function X(t){const e=V(t);return e?x.has(e):!1}function _(t,...e){e.forEach(n=>n(t,E.has(t)));for(let n=0;n<t.children.length;n++){const i=t.children.item(n);i&&e.forEach(o=>o(i,E.has(i)))}}function Y(t){return Array.isArray(t)?t:[t]}function L(t){return typeof t=="function"}function at(t){const e=c.get(t),n=C(t);if(!X(t))return c.set(t,n);if(q(t)){c.set(t,n),z(t);return}let i;if(!e)return;const o=A(t);if(typeof o!="function"){let r=e.left-n.left,s=e.top-n.top;const a=e.left+e.width-(n.left+n.width);e.top+e.height-(n.top+n.height)==0&&(s=0),a==0&&(r=0);const[l,f,O,p]=G(t,e,n),g={transform:`translate(${r}px, ${s}px)`},b={transform:"translate(0, 0)"};l!==f&&(g.width=`${l}px`,b.width=`${f}px`),O!==p&&(g.height=`${O}px`,b.height=`${p}px`),i=t.animate([g,b],{duration:o.duration,easing:o.easing})}else{const[r]=Y(o(t,"remain",e,n));i=new Animation(r),i.play()}h.set(t,i),c.set(t,n),i.addEventListener("finish",M.bind(null,t,!1),{once:!0})}function D(t){P in t&&delete t[P];const e=C(t);c.set(t,e);const n=A(t);if(!X(t))return;if(q(t)){z(t);return}let i;if(typeof n!="function")i=t.animate([{transform:"scale(.98)",opacity:0}
vendor: 1,220 bytes, line 1
1,{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:n.duration*1.5,easing:"ease-in"});else{const[o]=Y(n(t,"add",e));i=new Animation(o),i.play()}h.set(t,i),i.addEventListener("finish",M.bind(null,t,!1),{once:!0})}function I(t,e){var n;t.remove(),c.delete(t),T.delete(t),h.delete(t),(n=B.get(t))===null||n===void 0||n.disconnect(),setTimeout(()=>{if(N in t&&delete t[N],Object.defineProperty(t,P,{value:!0,configurable:!0}),e&&t instanceof HTMLElement)for(const i in e)t.style[i]=""},0)}function dt(t){var e;if(!T.has(t)||!c.has(t))return;const[n,i]=T.get(t);Object.defineProperty(t,N,{value:!0,configurable:!0});const o=window.scrollX,r=window.scrollY;if(i&&i.parentNode&&i.parentNode instanceof Element?i.parentNode.insertBefore(t,i):n&&n.parentNode?n.parentNode.appendChild(t):(e=V(t))===null||e===void 0||e.appendChild(t),!X(t))return I(t);const[s,a,d,l]=lt(t),f=A(t),O=c.get(t);(o!==R||r!==j)&&ct(t,o,r,f);let p,g={position:"absolute",top:`${s}px`,left:`${a}px`,width:`${d}px`,height:`${l}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(!L(f))Object.assign(t.style,g),p=t.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}
1],{duration:f.duration,easing:"ease-out"});else{const[b,W]=Y(f(t,"remove",O));(W==null?void 0:W.styleReset)!==!1&&(g=(W==null?void 0:W.styleReset)||g,Object.assign(t.style,g)),p=new Animation(b),p.play()}h.set(t,p),p.addEventListener("finish",()=>I(t,g),{once:!0})}function ct(t,e,n,i){const o=R-e,r=j-n,s=document.documentElement.style.scrollBehavior;if(getComputedStyle(u).scrollBehavior==="smooth"&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+o,window.scrollY+r),!t.parentElement)return;const d=t.parentElement;let l=d.clientHeight,f=d.clientWidth;const O=performance.now();function p(){requestAnimationFrame(()=>{if(!L(i)){const g=l-d.clientHeight,b=f-d.clientWidth;O+i.duration>performance.now()?(window.scrollTo({left:window.scrollX-b,top:window.scrollY-g}),l=d.clientHeight,f=d.clientWidth,p()):document.documentElement.style.scrollBehavior=s}})}p()}function lt(t){var e;const n=c.get(t),[i,,o]=G(t,n,C(t));let r=t.parentElement;for(;r&&(getComputedStyle(r).position==="static"||r instanceof HTMLBodyElement);)r=r.parentElement;r||(r=document.body);const s=getComputedStyle(r),a=!h.has(t)||((e=h.get(t))===null||e===void 0?void 0:e.playState)==="finished"?C(r):c.get(r),d=Math.round(n.top-a.top)-v(s.borderTopWidth),l=Math.round(n.left-a.left)-v(s.borderLeftWidth);return[d,l,i,o]}function ft(t,e={}){if(Q&&m&&!(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!L(e)&&!e.disrespectUserMotionPreference)){x.add(t),getComputedStyle(t).position==="static"&&Object.assign(t.style,{position:"relative"}),_(t,M,ot,s=>m==null?void 0:m.observe(s)),L(e)?E.set(t,e):E.set(t,{duration:250,easing:"ease-in-out",...e});const r=new MutationObserver(F);r.observe(t,{childList:!0}),$.set(t,r),H.add(t)}return Object.freeze({parent:t,enable:()=>{x.add(t)},disable:()=>{x.delete(t),_(t,i=>{const o=h.get(i);try{o==null||o.cancel()}catch{}h.delete(i);const r=y.get(i);r&&clearTimeout(r),y.delete(i);const s=S.get(i);s&&clearInterval(s),S.delete(i)})},isEnabled:()=>x.has(t),destroy:()=>{x.delete(t),H.delete(t),E.delete(t);const i=$.get(t);i==null||i.disconnect(),$.delete(t),_(t,o=>{m==null||m.unobserve(o);const r=h.get(o);try{r==null||r.cancel()}catch{}h.delete(o);const s=B.get(o);s==null||s.disconnect(),B.delete(o);const a=S.get(o);a&&clearInterval(a),S.delete(o);const d=y.get(o);d&&clearTimeout(d),y.delete(o),c.delete(o),T.delete(o)})}})}function ht(t){const e=J();let n;function i(o){n&&(o?n.enable():n.disable())}return K(()=>{Z(o=>{let r;e.value instanceof HTMLElement?r=e.value:e.value&&"$el"in e.value&&e.value.$el instanceof HTMLElement&&(r=e.value.$el),r&&(n=ft(r,t||{}),o(()=>{var s;(s=n==null?void 0:n.destroy)===null||s===void 0||s.call(n),n=void 0}))})}),tt(()=>{var o;(o=n==null?void 0:n.destroy)===null||o===void 0||o.call(n),n=void 0}),[e,i]}export{ht as u};
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.