1import{$ as e,Ft as t,Gt as n,It as r,K as i,Kt as a,L as o,Qt as s,R as c,Rt as l,Sn as u,Tt as d,Xt as f,_ as p,at as m,bn as h,ft as g,g as ee,gn as _,kn as v,l as y,o as te,p as ne,qt as b,ut as x,v as re,wt as S,xn as ie,yn as C,yt as w}from"./EwG0uMIa.js";import"./CQ6sa1WO.js";import{E as T}from"./m2HoFxrO.js";import{b as E}from"./DUKeMgmY.js";import"./xihTtKlq.js";import{r as D}from"./D0OohP-v.js";import"./Xw5Wr_iG.js";import{n as O}from"./ByEgql7u.js";var k=Symbol(`scroll-element-context-key`);function A(e=null){let t=_(e);return E(k,{element$:t,setElement:e=>t.set(e)})}function j(){return h(k)?C(k):null}var M=g(`<button type="button" aria-label="Left scroll" class="horizontal-overflow-btn scroll-left svelte-iaj27a"><!></button>`),ae=g(`<button type="button" aria-label="Right scroll" class="horizontal-overflow-btn scroll-right svelte-iaj27a"><!></button>`),oe=g(`<!> <!>`,1),se=g(`<div><!> <!></div>`);function N(h,g){u(g,!1);let _=y(g,`responsive`,8,!1),C=y(g,`additionalContainerClasses`,8,``),E=y(g,`containerElement`,12,void 0),k=y(g,`horizontalPadding`,8,void 0),A=y(g,`fillAvailableSpace`,8,!1),N=f(T()),P=0,F=0,I=0,L=f(!1),R=f(!1),z=f(!1),B=f(0),V=f(0),H=f(0),U=j(),W=null,G=f(0),K=f(0);te(()=>{Y(E()),setTimeout(()=>{J(E(),d(B),d(V),d(H),d(G))},100);let e;return U&&(e=U.element$.subscribe(e=>{W&&W.removeEventListener(`scroll`,q),W=e,W&&(W.addEventListener(`scroll`,q,{passive:!0}),s(G,W.scrollTop))})),()=>{e?.(),W&&W.removeEventListener(`scroll`,q)}});function q(){W&&s(G,W.scrollTop)}function J(e,t,n,r,i){if(!E()||!_())return;s(N,T());let a=E().getBoundingClientRect(),o,c;if(W){let e=W.getBoundingClientRect();o=e.top,c=e.bottom}else o=0,c=t;a.top>
1c||s(K,(Math.max(a.top,o)+Math.min(a.bottom,c))/2-a.top)}function Y(e,t){!E()||!_()||(P=E().scrollLeft,F=E().scrollWidth,I=E().clientWidth,s(L,F>I),s(R,P>0),s(z,P+I<F-1))}let ce=()=>{E()?.scrollTo({left:Math.max(0,P-I),behavior:`smooth`})},le=()=>{E()?.scrollTo({left:Math.min(Math.max(0,P+I-250),F-I),behavior:`smooth`})};t(()=>(S(_()),S(E()),d(B),d(V),d(H),d(G)),()=>{_()&&J(E(),d(B),d(V),d(H),d(G))}),t(()=>(S(_()),S(E()),d(V)),()=>{_()&&Y(E(),d(V))}),r(),ne();var X=se();let Z,Q;var $=n(X);e($,g,`default`,{},null);var ue=b($,2),de=e=>{var t=oe(),r=a(t),s=e=>{var t=M();O(n(t),{icon:`arrow-small-left`}),v(t),l(()=>o(t,`top: ${d(K)??``}px`)),i(3,t,()=>D,()=>({x:-15})),w(`click`,t,ce),x(e,t)};m(r,e=>{d(R)&&e(s)});var c=b(r,2),u=e=>{var t=ae();O(n(t),{icon:`arrow-small-right`}),v(t),l(()=>o(t,`top: ${d(K)??``}px`)),i(3,t,()=>D,()=>({x:15})),w(`click`,t,le),x(e,t)};m(c,e=>{d(z)&&e(u)}),x(e,t)};m(ue,e=>{_()&&d(L)&&!d(N)&&e(de)}),v(X),re(X,e=>E(e),()=>E()),l(()=>{Z=c(X,1,`table-container ${C()??``}`,`svelte-iaj27a`,Z,{"with-overflow-buttons":d(L)&&_(),"is-responsive":_(),"fill-available-space":A()}),Q=o(X,``,Q,{"padding-left":k(),"padding-right":k()})}),ee(`y`,()=>d(H),e=>s(H,e)),p(`innerHeight`,e=>s(B,e)),p(`innerWidth`,e=>s(V,e)),w(`scroll`,X,()=>Y()),x(h,X),ie()}export{A as n,j as r,N 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.