1import"./CTil__GX.js";import{p as J,q as K,g as e,s as w,b as N,a as D,d as Q,am as v,ao as u,c as n,f as A,r as c}from"./CjDHxl-E.js";import{s as U}from"./z-G7c5nY.js";import{s as V}from"./DgRf8o6j.js";import{i as X}from"./Cf8yqx-V.js";import{a as W,s as q}from"./DVeDheD9.js";import{d as Z,e as $,a as z}from"./Dbib32Oo.js";import{b as ee}from"./E1Pkc-iJ.js";import{p as d}from"./UB6QC_7v.js";import{C as te}from"./CshKWICT.js";import{C as re}from"./M3Dqv4AR.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"7e9441bdc3e4d060579972c0b05f79ea396b11f4"};var a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="51394cbb-8566-4864-afd4-afb5c70a8bbf",s._sentryDebugIdIdentifier="sentry-dbid-51394cbb-8566-4864-afd4-afb5c70a8bbf")}catch{}})();var ae=A('<span class="min-w-[3.5rem] text-center text-[0.8125rem] text-tertiary" aria-live="polite"> </span>'),se=A('<div><div class="slider-track svelte-10nb1wd" role="region" aria-label="Scrollable content" tabindex="0"><!></div> <div><button class="slider-arrow svelte-10nb1wd"><!></button> <!> <button class="slider-arrow svelte-10nb1wd"><!></button></div></div>');function he(s,a){J(a,!0);let y=d(a,"class",3,""),S=d(a,"itemSelector",3,":scope > *"),B=d(a,"centerNav",3,!1),M=d(a,"showCount",3,!1),T=d(a,"prevLabel",3,"Previous"),O=d(a,"nextLabel",3,"Next"),t=v(void 0),x=v(!1),C=v(!0),L=v(0),p=v(0);function g(){if(!e(t))return;u(x,e(t).scrollLeft>4),u(C,e(t).scrollLeft<e(t).scrollWidth-e(t).clientWidth-4);const r=e(t).querySelectorAll(S());u(p,r.length,!0);const l=e(t).getBoundingClientRect().left;let o=0,h=1/0;r.forEach((G,H)=>{const R=Math.abs(G.getBoundingClientRect().left-l);R<h&&(h=R,o=H)}),u(L,o,!0)}function k(r){if(!e(t))return;const l=e(t).querySelector(S()),o=l?l.offsetWidth+16:e(t).clientWidth*.8,h=window.matchMedia("(prefers-reduced-motion: reduce)").matches;e(t).scrollBy({left:r==="left"?-o:o,behavior:h?"auto":"smooth"})}K(()=>{if(!e(t))return;g();const r=new ResizeObserver(()=>g());return r.observe(e(t)),()=>r.disconnect()});var m=se(),f=n(m),P=n(f);V(P,()=>a.children),c(f),ee(f,r=>u(t,r),()=>e(t));var _=w(f,2);let I;var i=n(_),Y=n(i);te(Y,{class:"size-5"}),c(i);var E=w(i,2);{var j=r=>{var l=ae(),o=n(l);c(l),N(()=>U(o,`${e(L)+1} / ${e(p)??""}`)),D(r,l)};X(E,r=>{M()&&e(p)>0&&r(j)})}var b=w(E,2),F=n(b);re(F,{class:"size-5"}),c(b),c(_),c(m),N(()=>{W(m,1,`content-slider ${y()??""}`,"svelte-10nb1wd"),I=W(_,1,"slider-nav svelte-10nb1wd",null,I,{center:B()}),i.disabled=!e(x),q(i,"aria-label",T()),b.disabled=!e(C),q(b,"aria-label",O())}),$("scroll",f,g),z("click",i,()=>k("left")),z("click",b,()=>k("right")),D(s,m),Q()}Z(["click"]);export{he as C};
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.