PageSourceSearch

https://app.vistema.org/assets/SessionTable-l4rcle-n.js

js vistema.org collected 2026-10-09 23:18:16 UTC 105,925 bytes, 5 lines download raw bytes

1import{R as k,j as s,r as R,x as Js,C as ht,d as Ft,f as fo,S as rn,u as we,p as Zs,i as ae,s as A,q as er,v as tr,o as q,b as To,w as jo,y as Ut,z as It,D as Fn,E as or,G as Ke,M as an,H as Ye,J as Vn,K as _t,m as nt,n as nr,N as sr,O as Zt,g as eo,P as ln,Q as cn,T as dn,U as ko,V as Ro,W as rr,X as Wn,Y as Ho,Z as Un,_ as Gn,$ as ir,a0 as $n,a1 as Kn,a2 as Eo,a3 as Yn,a4 as ar,a5 as Tt,B as ot,l as qn,a6 as Qn,a7 as zo,a8 as lr,a9 as Xn,aa as Jn,ab as st,ac as Zn,ad as jt,ae as Gt,af as es,ag as ts,ah as os,A as ns,ai as cr,c as Bo,aj as dr,ak as ur,al as ss,am as to,an as oo,L as hr,ao as mo,ap as pr,aq as fr,ar as no,as as mr,at as gr,au as xr}from"./index-BEK4PVv9.js";import{L as $t,P as br}from"./PlayableThumbnail-DLhNv0Jz.js";import{C as rs}from"./Content-C9Ad1yjd.js";import{g as vr,D as Sr,c as is,U as wr,u as yr,A as Cr,L as Ir,P as Tr}from"./PaymentSuccess-CH1-FKf8.js";import{C as jr,E as kr,D as Rr,a as Hr,S as Er,b as zr,A as Br,T as _r}from"./TagInput-CM4w-Q5N.js";const Kt=0,We=1,at=2,as=4;function un(e){return()=>e}function Lr(e){e()}function gt(e,t){return o=>e(t(o))}function hn(e,t){return()=>e(t)}function Pr(e,t){return o=>e(t,o)}function _o(e){return e!==void 0}function Nr(...e){return()=>{e.map(Lr)}}function lt(){}function Yt(e,t){return t(e),e}function Mr(e,t){return t(e)}function he(...e){return e}function ne(e,t){return e(We,t)}function K(e,t){e(Kt,t)}function Lo(e){e(at)}function fe(e){return e(as)}function M(e,t){return ne(e,Pr(t,Kt))}function Ee(e,t){const o=e(We,n=>{o(),t(n)});return o}function pn(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function ls(e,t){return e===t}function de(e=ls){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function V(e){return t=>o=>{e(o)&&t(o)}}function L(e){return t=>gt(t,e)}function Ne(e){return t=>()=>{t(e)}}function C(e,...t){const o=Or(...t);return((n,r)=>{switch(n){case at:Lo(e);return;case We:return ne(e,o(r))}})}function Me(e,t){return o=>n=>{o(t=e(t,n))}}function Xe(e){return t=>o=>{e>0?e--:t(o)}}function De(e){let t=null,o;return n=>r=>{t=r,!o&&(o=setTimeout(()=>{o=void 0,n(t)},e))}}function X(...e){const t=Array.from({length:e.length});let o=0,n=null;const r=2**e.length-1;return e.forEach((a,i)=>{const l=2**i;ne(a,c=>{const d=o;o|=l,t[i]=c,d!==r&&o===r&&n&&(n(),n=null)})}),a=>i=>{const l=()=>{a([i].concat(t))};o===r?l():n=l}}function Or(...e){return t=>e.reduceRight(Mr,t)}function Ar(e){let t,o;const n=()=>t?.();return function(r,a){switch(r){case We:return a?o===a?void 0:(n(),o=a,t=ne(e,a),t):(n(),lt);case at:n(),o=null;return}}}function I(e){let t=e;const o=ee();return((n,r)=>{switch(n){case Kt:t=r;break;case We:{r(t);break}case as:return t}return o(n,r)})}function Ce(e,t){return Yt(I(t),o=>M(e,o))}function ee(){const e=[];return((t,o)=>{switch(t){case Kt:e.slice().forEach(n=>{n(o)});return;case at:e.splice(0);return;case We:return e.push(o),()=>{const n=e.indexOf(o);n>-1&&e.splice(n,1)}}})}function ke(e){return Yt(ee(),t=>M(e,t))}const Dr={singleton:!0};function oe(e,t=[],o=Dr){const{singleton:n}=o;return{constructor:e,dependencies:t,id:Fr(),singleton:n}}const Fr=()=>Symbol("id");function Vr(e){const t=new Map,o=({constructor:n,dependencies:r,id:a,singleton:i})=>{if(i&&t.has(a))return t.get(a);const l=n(r.map(c=>o(c)));return i&&t.set(a,l),l};return o(e)}function ge(...e){const t=ee(),o=Array.from({length:e.length});let n=0;const r=2**e.length-1;return e.forEach((a,i)=>{const l=2**i;ne(a,c=>{o[i]=c,n|=l,n===r&&K(t,o)})}),function(a,i){switch(a){case at:{Lo(t);return}case We:return n===r&&i(o),ne(t,i)}}}function F(e,t=ls){return C(e,de(t))}function go(...e){return function(t,o){switch(t){case at:return;case We:return Nr(...e.map(n=>ne(n,o)))}}}const ve={DEBUG:0,INFO:1,WARN:2,ERROR:3},Wr={[ve.DEBUG]:"debug",[ve.ERROR]:"error",[ve.INFO]:"log",[ve.WARN]:"warn"},Ur=()=>typeof globalThis>"u"?window:globalThis,Ue=oe(()=>{const e=I(ve.ERROR);return{log:I((t,o,n=ve.INFO)=>{const r=Ur().VIRTUOSO_LOG_LEVEL??fe(e);n>=r&&console[Wr[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0}),xo=new WeakMap;function cs(e){return"self"in e?e.document.documentElement:e}function Gr(e){const t=cs(e),o=xo.get(t);if(o!==void 0)return o;const n=t.ownerDocument.defaultView.getComputedStyle(t).direction==="rtl";return xo.set(t,n),n}function fn(e){xo.delete(cs(e))}function ds(e,t){return Gr(e)?-t:t}const qe=ds;function mn(e,t){return ds(e,t)}function Oe(e,t,o){return Po(e,t,o).callbackRef}function Po(e,t,o){const n=k.useRef(null);let r=i=>{};const a=k.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(i=>{const l=()=>{const c=i[0].target;c.offsetParent!==null&&e(c)};
1o?l():requestAnimationFrame(l)}):null,[e,o]);return r=i=>{i&&t?(a?.observe(i),n.current=i):(n.current&&a?.unobserve(n.current),n.current=null)},{callbackRef:r,ref:n}}function us(e,t,o,n,r,a,i,l,c){const d=k.useCallback(f=>{const b=$r(f.children,t,l?"offsetWidth":"offsetHeight",r);let x=f.parentElement;for(;x.dataset.virtuosoScroller===void 0;)x=x.parentElement;const v=x.lastElementChild?.dataset.viewportType==="window";let u;v&&(u=x.ownerDocument.defaultView);const S=i?l?i.scrollWidth:i.scrollHeight:v?l?u.document.documentElement.scrollWidth:u.document.documentElement.scrollHeight:l?x.scrollWidth:x.scrollHeight,g=i?l?i.offsetWidth:i.offsetHeight:v?l?u.innerWidth:u.innerHeight:l?x.offsetWidth:x.offsetHeight,h=i?l?qe(i,i.scrollLeft):i.scrollTop:v?l?qe(u,u.scrollX||u.document.documentElement.scrollLeft):u.scrollY||u.document.documentElement.scrollTop:l?qe(x,x.scrollLeft):x.scrollTop;n({scrollHeight:S,scrollTop:Math.max(h,0),viewportHeight:g}),a?.(l?gn("column-gap",getComputedStyle(f).columnGap,r):gn("row-gap",getComputedStyle(f).rowGap,r)),b!==null&&e(b)},[e,t,r,a,i,n,l]);return Po(d,o,c)}function $r(e,t,o,n){const r=e.length;if(r===0)return null;const a=[];for(let i=0;i<r;i++){const l=e.item(i);if(l.dataset.index===void 0)continue;const c=parseInt(l.dataset.index,10),d=parseFloat(l.dataset.knownSize),f=t(l,o);if(f===0&&n("Zero-sized element, this should not happen",{child:l},ve.ERROR),f===d)continue;const b=a[a.length-1];a.length===0||b.size!==f||b.endIndex!==c-1?a.push({endIndex:c,size:f,startIndex:c}):a[a.length-1].endIndex++}return a}function gn(e,t,o){return t!=="normal"&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,ve.WARN),t==="normal"?0:parseInt(t??"0",10)}function No(e,t,o){const n=k.useRef(null),r=k.useCallback(c=>{if(!c?.offsetParent)return;const d=c.getBoundingClientRect(),f=d.width;let b,x;if(t){const v=t.getBoundingClientRect(),u=d.top-v.top;x=v.height-Math.max(0,u),b=u+t.scrollTop}else{const v=i.current.ownerDocument.defaultView;x=v.innerHeight-Math.max(0,d.top),b=d.top+v.scrollY}n.current={listHeight:d.height,offsetTop:b,visibleHeight:x,visibleWidth:f},e(n.current)},[e,t]),{callbackRef:a,ref:i}=Po(r,!0,o),l=k.useCallback(()=>{r(i.current)},[r,i]);return k.useEffect(()=>{if(t){t.addEventListener("scroll",l);const d=new ResizeObserver(()=>{requestAnimationFrame(l)});return d.observe(t),()=>{t.removeEventListener("scroll",l),d.unobserve(t)}}const c=i.current?.ownerDocument.defaultView;return c?.addEventListener("scroll",l),c?.addEventListener("resize",l),()=>{c?.removeEventListener("scroll",l),c?.removeEventListener("resize",l)}},[l,t,i]),a}const Ie=oe(()=>{const e=ee(),t=ee(),o=I(0),n=ee(),r=I(0),a=ee(),i=ee(),l=I(0),c=I(0),d=I(0),f=I(0),b=ee(),x=ee(),v=I(!1),u=I(!1),S=I(!1);return M(C(e,L(({scrollTop:g})=>g)),t),M(C(e,L(({scrollHeight:g})=>g)),i),M(t,r),{deviation:o,fixedFooterHeight:d,fixedHeaderHeight:c,footerHeight:f,headerHeight:l,horizontalDirection:u,scrollBy:x,scrollContainerState:e,scrollHeight:i,scrollingInProgress:v,scrollTo:b,scrollTop:t,skipAnimationFrameInResizeObserver:S,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:a}},[],{singleton:!0}),xt={lvl:0};function hs(e,t){const o=e.length;if(o===0)return[];let{index:n,value:r}=t(e[0]);const a=[];for(let i=1;i<o;i++){const{index:l,value:c}=t(e[i]);a.push({end:l-1,start:n,value:r}),n=l,r=c}return a.push({end:1/0,start:n,value:r}),a}function re(e){return e===xt}function bt(e,t){if(!re(e))return t===e.k?e.v:t<e.k?bt(e.l,t):bt(e.r,t)}function Be(e,t,o="k"){if(re(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){const n=Be(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return Be(e.l,t,o)}function je(e,t,o){return re(e)?ms(t,o,1):t===e.k?be(e,{k:t,v:o}):t<e.k?xn(be(e,{l:je(e.l,t,o)})):xn(be(e,{r:je(e.r,t,o)}))}function rt(){return xt}function it(e,t,o){if(re(e))return[];const n=Be(e,t)[0];return Kr(vo(e,n,o))}function bo(e,t){if(re(e))return xt;const{k:o,l:n,r}=e;if(t===o){if(re(n))return r;if(re(r))return n;const[a,i]=fs(n);return Mt(be(e,{k:a,l:ps(n),v:i}))}return t<o?Mt(be(e,{l:bo(n,t)})):Mt(be(e,{r:bo(r,t)}))}function Qe(e){return re(e)?[]:[...Qe(e.l),{k:e.k,v:e.v},...Qe(e.r)]}function vo(e,t,o){if(re(e))return[];const{k:n,l:r,r:a,v:i}=e;let l=[];return n>
1t&&(l=l.concat(vo(r,t,o))),n>=t&&n<=o&&l.push({k:n,v:i}),n<=o&&(l=l.concat(vo(a,t,o))),l}function Mt(e){const{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(so(t))return gs(be(e,{lvl:o-1}));if(!re(t)&&!re(t.r))return be(t.r,{l:be(t,{r:t.r.l}),lvl:o,r:be(e,{l:t.r.r,lvl:o-1})});throw new Error("Unexpected empty nodes")}if(so(e))return So(be(e,{lvl:o-1}));if(!re(n)&&!re(n.l)){const r=n.l,a=so(r)?n.lvl-1:n.lvl;return be(r,{l:be(e,{lvl:o-1,r:r.l}),lvl:r.lvl+1,r:So(be(n,{l:r.r,lvl:a}))})}throw new Error("Unexpected empty nodes")}function be(e,t){return ms(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function ps(e){return re(e.r)?e.l:Mt(be(e,{r:ps(e.r)}))}function so(e){return re(e)||e.lvl>e.r.lvl}function fs(e){return re(e.r)?[e.k,e.v]:fs(e.r)}function ms(e,t,o,n=xt,r=xt){return{k:e,l:n,lvl:o,r,v:t}}function xn(e){return So(gs(e))}function gs(e){const{l:t}=e;return!re(t)&&t.lvl===e.lvl?be(t,{r:be(e,{l:t.r})}):e}function So(e){const{lvl:t,r:o}=e;return!re(o)&&!re(o.r)&&o.lvl===t&&o.r.lvl===t?be(o,{l:be(e,{r:o.l}),lvl:t+1}):e}function Kr(e){return hs(e,({k:t,v:o})=>({index:t,value:o}))}function xs(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function vt(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const Mo=oe(()=>({recalcInProgress:I(!1)}),[],{singleton:!0});function bs(e,t,o){return e[Vt(e,t,o)]}function Vt(e,t,o,n=0){let r=e.length-1;for(;n<=r;){const a=Math.floor((n+r)/2),i=e[a],l=o(i,t);if(l===0)return a;if(l===-1){if(r-n<2)return a-1;r=a-1}else{if(r===n)return a;n=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Yr(e,t,o,n){const r=Vt(e,t,n),a=Vt(e,o,n,r);return e.slice(r,a+1)}function _e(e,t){return Math.round(e.getBoundingClientRect()[t])}function qt(e){return!re(e.groupOffsetTree)}function Oo({index:e},t){return t===e?0:t<e?-1:1}function qr(){return{groupIndices:[],groupOffsetTree:rt(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:rt()}}function Qr(e,t){let o=re(e)?0:1/0;for(const n of t){const{endIndex:r,size:a,startIndex:i}=n;if(o=Math.min(o,i),re(e)){e=je(e,0,a);continue}const l=it(e,i-1,r+1);if(l.some(ni(n)))continue;let c=!1,d=!1;for(const{end:f,start:b,value:x}of l)c?(r>=b||a===x)&&(e=bo(e,b)):(d=x!==a,c=!0),f>r&&r>=b&&x!==a&&(e=je(e,r+1,x));d&&(e=je(e,i,a))}return[e,o]}function Xr(e){return e.groupIndex!==void 0}function Jr({offset:e},t){return t===e?0:t<e?-1:1}function St(e,t,o){if(t.length===0)return 0;const{index:n,offset:r,size:a}=bs(t,e,Oo),i=e-n,l=a*i+(i-1)*o+r;return l>0?l+o:l}function vs(e,t){if(!qt(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function Ss(e,t,o){if(Xr(e))return t.groupIndices[e.groupIndex]+1;const n=e.index==="LAST"?o:e.index;let r=vs(n,t);return r=Math.max(0,Math.min(o,r)),r}function Zr(e,t,o,n=0){return n>0&&(t=Math.max(t,bs(e,n,Oo).offset)),hs(Yr(e,t,o,Jr),oi)}function ei(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,ve.DEBUG);const a=e.sizeTree;let i=a,l=0;if(o.length>0&&re(a)&&t.length===2){const x=t[0].size,v=t[1].size;i=o.reduce((u,S)=>je(je(u,S,x),S+1,v),i)}else[i,l]=Qr(i,t);if(i===a)return e;const{lastIndex:c,lastOffset:d,lastSize:f,offsetTree:b}=wo(e.offsetTree,l,i,r);return{groupIndices:o,groupOffsetTree:o.reduce((x,v)=>je(x,v,St(v,b,r)),rt()),lastIndex:c,lastOffset:d,lastSize:f,offsetTree:b,sizeTree:i}}function ti(e){return Qe(e).map(({k:t,v:o},n,r)=>{const a=r[n+1];return{endIndex:a===void 0?1/0:a.k-1,size:o,startIndex:t}})}function bn(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o===e?0:1)}function wo(e,t,o,n){let r=e,a=0,i=0,l=0,c=0;if(t===0)r=[];else{c=Vt(r,t-1,Oo),l=r[c].offset;const d=Be(o,t-1);a=d[0],i=d[1],r.length&&r[c].size===Be(o,t)[1]&&(c-=1),r=r.slice(0,c+1)}for(const{start:d,value:f}of it(o,t,1/0)){const b=d-a,x=b*i+l+b*n;r.push({index:d,offset:x,size:f}),a=d,l=x,i=f}return{lastIndex:a,lastOffset:l,lastSize:i,offsetTree:r}}function oi(e){return{index:e.index,value:e}}function ni(e){const{endIndex:t,size:o,startIndex:n}=e;return r=>r.start===n&&(r.end===t||r.end===1/0)&&r.value===o}const si={offsetHeight:"height",offsetWidth:"width"},Ae=oe(([{log:e},{recalcInProgress:t}])=>{const o=ee(),n=ee(),r=Ce(n,0),a=ee(),i=ee(),l=I(0),c=I([]),d=I(void 0),f=I(void 0),b=I(void 0),x=I(void 0),v=I((p,y)=>
1_e(p,si[y])),u=I(void 0),S=I(0),g=qr(),h=Ce(C(o,X(c,e,S),Me(ei,g),de()),g),m=Ce(C(c,de(),Me((p,y)=>({current:y,prev:p.current}),{current:[],prev:[]}),L(({prev:p})=>p)),[]);M(C(c,V(p=>p.length>0),X(h,S),L(([p,y,T])=>{const B=p.reduce((E,U,G)=>je(E,U,St(U,y.offsetTree,T)||G),rt());return{...y,groupIndices:p,groupOffsetTree:B}})),h),M(C(n,X(h),V(([p,{lastIndex:y}])=>p<y),L(([p,{lastIndex:y,lastSize:T}])=>[{endIndex:y,size:T,startIndex:p}])),o),M(d,f);const w=Ce(C(d,L(p=>p===void 0)),!0);M(C(f,V(p=>p!==void 0&&re(fe(h).sizeTree)),L(p=>{const y=fe(b),T=fe(c).length>0;return y!==void 0&&y!==0?T?[{endIndex:0,size:y,startIndex:0},{endIndex:1,size:p,startIndex:1}]:[]:[{endIndex:0,size:p,startIndex:0}]})),o),M(C(x,V(p=>p!==void 0&&p.length>0&&re(fe(h).sizeTree)),L(p=>{const y=[];let T=p[0],B=0;for(let E=1;E<p.length;E++){const U=p[E];U!==T&&(y.push({endIndex:E-1,size:T,startIndex:B}),T=U,B=E)}return y.push({endIndex:p.length-1,size:T,startIndex:B}),y})),o),M(C(c,X(b,f),V(([,p,y])=>p!==void 0&&y!==void 0),L(([p,y,T])=>{const B=[];for(let E=0;E<p.length;E++){const U=p[E],G=p[E+1];B.push({startIndex:U,endIndex:U,size:y}),G!==void 0&&B.push({startIndex:U+1,endIndex:G-1,size:T})}return B})),o);const z=ke(C(o,X(h),Me(({sizes:p},[y,T])=>({changed:T!==p,sizes:T}),{changed:!1,sizes:g}),L(p=>p.changed)));ne(C(l,Me((p,y)=>({diff:p.prev-y,prev:y}),{diff:0,prev:0}),L(p=>p.diff)),p=>{const{groupIndices:y}=fe(h);if(p>0)K(t,!0),K(a,p+bn(p,y));else if(p<0){const T=fe(m);T.length>0&&(p-=bn(-p,T)),K(i,p)}}),ne(C(l,X(e)),([p,y])=>{p<0&&y("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},ve.ERROR)});const j=ke(a);M(C(a,X(h),L(([p,y])=>{const T=y.groupIndices.length>0,B=[],E=y.lastSize;if(T){const U=bt(y.sizeTree,0);let G=0,N=0;for(;G<p;){const _=y.groupIndices[N],W=y.groupIndices.length===N+1?1/0:y.groupIndices[N+1]-_-1;B.push({endIndex:_,size:U,startIndex:_}),B.push({endIndex:_+1+W-1,size:E,startIndex:_+1}),N++,G+=W+1}const Q=Qe(y.sizeTree);return G!==p&&Q.shift(),Q.reduce((_,{k:W,v:Z})=>{let P=_.ranges;return _.prevSize!==0&&(P=[..._.ranges,{endIndex:W+p-1,size:_.prevSize,startIndex:_.prevIndex}]),{prevIndex:W+p,prevSize:Z,ranges:P}},{prevIndex:p,prevSize:0,ranges:B}).ranges}return Qe(y.sizeTree).reduce((U,{k:G,v:N})=>({prevIndex:G+p,prevSize:N,ranges:[...U.ranges,{endIndex:G+p-1,size:U.prevSize,startIndex:U.prevIndex}]}),{prevIndex:0,prevSize:E,ranges:[]}).ranges})),o);const O=ke(C(i,X(h,S),L(([p,{offsetTree:y},T])=>{const B=-p;return St(B,y,T)})));return M(C(i,X(h,S),L(([p,y,T])=>{if(y.groupIndices.length>0){if(re(y.sizeTree))return y;let E=rt();const U=fe(m);let G=0,N=0,Q=0;for(;G<-p;){Q=U[N];const _=U[N+1]-Q-1;N++,G+=_+1}if(E=Qe(y.sizeTree).reduce((_,{k:W,v:Z})=>je(_,Math.max(0,W+p),Z),E),G!==-p){const _=bt(y.sizeTree,Q);E=je(E,0,_);const W=Be(y.sizeTree,-p+1)[1];E=je(E,1,W)}return{...y,sizeTree:E,...wo(y.offsetTree,0,E,T)}}const B=Qe(y.sizeTree).reduce((E,{k:U,v:G})=>je(E,Math.max(0,U+p),G),rt());return{...y,sizeTree:B,...wo(y.offsetTree,0,B,T)}})),h),{beforeUnshiftWith:j,data:u,defaultItemSize:f,firstItemIndex:l,fixedItemSize:d,fixedGroupSize:b,gap:S,groupIndices:c,heightEstimates:x,itemSize:v,listRefresh:z,shiftWith:i,shiftWithOffset:O,sizeRanges:o,sizes:h,statefulTotalCount:r,totalCount:n,trackItemSizes:w,unshiftWith:a}},he(Ue,Mo),{singleton:!0});function ri(e){return e.reduce((t,o)=>(t.groupIndices.push(t.totalCount),t.totalCount+=o+1,t),{groupIndices:[],totalCount:0})}const ws=oe(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{const a=ee(),i=ee(),l=ke(C(a,L(ri)));return M(C(l,L(c=>c.totalCount)),o),M(C(l,L(c=>c.groupIndices)),e),M(C(ge(r,t,n),V(([c,d])=>qt(d)),L(([c,d,f])=>Be(d.groupOffsetTree,Math.max(c-f,0),"v")[0]),de(),L(c=>[c])),i),{groupCounts:a,topItemsIndexes:i}},he(Ae,Ie)),Ge=oe(([{log:e}])=>{const t=I(!1),o=ke(C(t,V(n=>n),de()));return ne(t,n=>{n&&fe(e)("props updated",{},ve.DEBUG)}),{didMount:o,propsReady:t}},he(Ue),{singleton:!0}),ii=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function ys(e){const t=typeof e=="number"?{index:e}:{...e};return t.align||(t.align="start"),(!t.behavior||!ii)&&(t.behavior="auto"),t.offset===void 0&&(t.offset=0),t}const kt=oe(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:a,footerHeight:i,headerHeight:l,scrollingInProgress:c,scrollTo:d,smoothScrollTargetReached:f,viewportHe
1ight:b},{log:x}])=>{const v=ee(),u=ee(),S=I(0);let g=null,h=null,m=null;function w(){g!==null&&(g(),g=null),m!==null&&(m(),m=null),h&&(clearTimeout(h),h=null),K(c,!1)}return M(C(v,X(o,b,n,S,l,i,x),X(e,a,r),L(([[z,j,O,p,y,T,B,E],U,G,N])=>{const Q=ys(z),{align:_,behavior:W,offset:Z}=Q,P=p-1,D=Ss(Q,j,P);let se=St(D,j.offsetTree,U)+T;_==="end"?(se+=G+Be(j.sizeTree,D)[1]-O+N,D===P&&(se+=B)):_==="center"?se+=(G+Be(j.sizeTree,D)[1]-O+N)/2:se-=y,Z!==void 0&&Z!==0&&(se+=Z);const ye=xe=>{w(),xe?(E("retrying to scroll to",{location:z},ve.DEBUG),K(v,z)):(K(u,!0),E("list did not change, scroll successful",{},ve.DEBUG))};if(w(),W==="smooth"){let xe=!1;m=ne(t,Ze=>{xe=xe||Ze}),g=Ee(f,()=>{ye(xe)})}else g=Ee(C(t,ai(150)),ye);return h=setTimeout(()=>{w()},1200),K(c,!0),E("scrolling from index to",{behavior:W,index:D,top:se},ve.DEBUG),{behavior:W,top:se}})),d),{scrollTargetReached:u,scrollToIndex:v,topListHeight:S}},he(Ae,Ie,Ue),{singleton:!0});function ai(e){return t=>{const o=setTimeout(()=>{t(!1)},e);return n=>{n&&(t(!0),clearTimeout(o))}}}function Ao(e,t){e===0?t():requestAnimationFrame(()=>{Ao(e-1,t)})}function Do(e,t){if(e===void 0)return 0;const o=t-1,n=typeof e=="number"?e:e.index==="LAST"?o:e.index;return Math.max(0,Math.min(n,o))}function yo(e){return e===void 0?!0:typeof e=="number"?e===0:e.index===0&&(e.align===void 0||e.align==="start")&&(e.offset===void 0||e.offset===0)}const Rt=oe(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:a},{didMount:i}])=>{const l=I(!0),c=I(0),d=I(!0);return M(C(i,X(c),V(([f,b])=>!yo(b)),Ne(!1)),l),M(C(i,X(c),V(([f,b])=>!yo(b)),Ne(!1)),d),ne(C(ge(t,i),X(l,o,e,d),V(([[,f],b,{sizeTree:x},v,u])=>f&&(!re(x)||_o(v))&&!b&&!u),X(c)),([,f])=>
1{if(f===void 0){K(l,!0),K(d,!0);return}Ee(r,()=>{K(d,!0)}),Ao(4,()=>{Ee(n,()=>{K(l,!0)}),K(a,f)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:c,scrolledToInitialItem:l}},he(Ae,Ie,kt,Ge),{singleton:!0});function Cs(e,t){return Math.abs(e-t)<1.01}const wt="up",pt="down",li="none",ci={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},di=0,Ht=oe(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:a}])=>{const i=I(!1),l=I(!0),c=ee(),d=ee(),f=I(4),b=I(di),x=Ce(C(go(C(F(r),Xe(1),Ne(!0)),C(F(r),Xe(1),Ne(!1),pn(100))),de()),!1),v=Ce(C(go(C(o,Ne(!0)),C(o,Ne(!1),pn(200))),de()),!1);M(C(ge(F(r),F(b)),L(([m,w])=>m<=w),de()),l),M(C(l,De(50)),d);const u=ke(C(ge(n,F(a),F(t),F(e),F(f)),Me((m,[{scrollHeight:w,scrollTop:z},j,O,p,y])=>{const T=z+j-w>-y,B={scrollHeight:w,scrollTop:z,viewportHeight:j};if(T){let U,G;return z>m.state.scrollTop?(U="SCROLLED_DOWN",G=m.state.scrollTop-z):(U="SIZE_DECREASED",G=m.state.scrollTop-z||m.scrollTopDelta),{atBottom:!0,atBottomBecause:U,scrollTopDelta:G,state:B}}let E;return B.scrollHeight>m.state.scrollHeight?E="SIZE_INCREASED":j<m.state.viewportHeight?E="VIEWPORT_HEIGHT_DECREASING":z<m.state.scrollTop?E="SCROLLING_UPWARDS":E="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:E,state:B}},ci),de((m,w)=>m!==void 0&&m.atBottom===w.atBottom))),S=Ce(C(n,Me((m,{scrollHeight:w,scrollTop:z,viewportHeight:j})=>{if(!Cs(m.scrollHeight,w)){const O=w-(z+j)<1;return m.scrollTop!==z&&O?{changed:!0,jump:m.scrollTop-z,scrollHeight:w,scrollTop:z}:{changed:!0,jump:0,scrollHeight:w,scrollTop:z}}return{changed:!1,jump:0,scrollHeight:w,scrollTop:z}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),V(m=>m.changed),L(m=>m.jump)),0);M(C(u,L(m=>m.atBottom)),i),M(C(i,De(50)),c);const g=I(pt);M(C(n,L(({scrollTop:m})=>m),de(),Me((m,w)=>fe(v)?{direction:m.direction,prevScrollTop:w}:{direction:w<m.prevScrollTop?wt:pt,prevScrollTop:w},{direction:pt,prevScrollTop:0}),L(m=>m.direction)),g),M(C(n,De(50),Ne(li)),g);const h=I(0);return M(C(x,V(m=>!m),Ne(0)),h),M(C(r,De(100),X(x),V(([m,w])=>w),Me(([m,w],[z])=>[w,z],[0,0]),L(([m,w])=>w-m)),h),{atBottomState:u,atBottomStateChange:c,atBottomThreshold:f,atTopStateChange:d,atTopThreshold:b,isAtBottom:i,isAtTop:l,isScrolling:x,lastJumpDueToItemResize:S,scrollDirection:g,scrollVelocity:h}},he(Ie)),yt="top",Ct="bottom",vn="none";function Sn(e,t,o){return typeof e=="number"?o===wt&&t===yt||o===pt&&t===Ct?e:0:o===wt?t===yt?e.main:e.reverse:t===Ct?e.main:e.reverse}function wn(e,t){return typeof e=="number"?e:e[t]??0}const Fo=oe(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{const a=ee(),i=I(0),l=I(0),c=I(0),d=Ce(C(ge(F(n),F(r),F(o),F(a,vt),F(c),F(i),F(t),F(e),F(l)),L(([f,b,x,[v,u],S,g,h,m,w])=>{const z=f-m,j=g+h,O=Math.max(x-z,0);let p=vn;const y=wn(w,yt),T=wn(w,Ct);return v-=m,v+=x+h,u+=x+h,u-=m,v>f+j-y&&(p=wt),u<f-O+b+T&&(p=pt),p!==vn?[Math.max(z-x-Sn(S,yt,p)-y,0),z-O-h+b+Sn(S,Ct,p)+T]:null}),V(f=>f!==null),de(vt)),[0,0]);return{increaseViewportBy:l,listBoundary:a,overscan:c,topListHeight:i,visibleRange:d}},he(Ie),{singleton:!0});function ui(e,t,o){if(qt(t)){const n=vs(e,t);return[{index:Be(t.groupOffsetTree,n)[0],offset:0,size:0},{data:o?.[0],index:n,offset:0,size:0}]}return[{data:o?.[0],index:e,offset:0,size:0}]}const ro={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Ot(e,t,o,n,r,a){const{lastIndex:i,lastOffset:l,lastSize:c}=r;let d=0,f=0;if(e.length>0){d=e[0].offset;const S=e[e.length-1];f=S.offset+S.size}const b=o-i,x=l+b*c+(b-1)*n,v=d,u=x-f;return{bottom:f,firstItemIndex:a,items:yn(e,r,a),offsetBottom:u,offsetTop:d,top:v,topItems:yn(t,r,a),topListHeight:t.reduce((S,g)=>g.size+S,0),totalCount:o}}function Is(e,t,o,n,r,a){let i=0;if(o.groupIndices.length>0)for(const f of o.groupIndices){if(f-i>=e)break;i++}const l=e+i,c=Do(t,l),d=Array.from({length:l}).map((f,b)=>({data:a[b+c],index:b+c,offset:0,size:0}));return Ot(d,[],l,r,o,n)}function yn(e,t,o){if(e.length===0)return[];if(!qt(t))return e.map(d=>({...d,index:d.index+o,originalIndex:d.index}));const n=e[0].index,r=e[e.length-1].index,a=[],i=it(t.groupOffsetTree,n,r);let l,c=0;for(const d of e){(!l||l.end<d.index)&&(l=i.shift(),c=t.groupIndices.indexOf(l.start));let f;d.index===l.start?f={index:c,type:"group"}:f={groupIndex:c,index:d.index-(c+1)+o},a.push({...f,data:d.data,offset:d.offset,originalIndex:d.index,size:d.size})}return a}function Cn(e,t){return e===void 0?0:typeof e=="number"?e:e[t]??0}const Je=oe(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},a,{listBoundary:i,topListHeight:l,visibleRange:c}
1,{initialTopMostItemIndex:d,scrolledToInitialItem:f},{topListHeight:b},x,{didMount:v},{recalcInProgress:u}])=>{const S=I([]),g=I(0),h=ee(),m=I(0);M(a.topItemsIndexes,S);const w=Ce(C(ge(v,u,F(c,vt),F(r),F(n),F(d),f,F(S),F(t),F(o),F(m),e),V(([p,y,,T,,,,,,,,B])=>{const E=B!==void 0&&B.length!==T;return p&&!y&&!E}),L(([,,[p,y],T,B,E,U,G,N,Q,_,W])=>{const Z=B,{offsetTree:P,sizeTree:D}=Z,se=fe(g);if(T===0)return{...ro,totalCount:T};if(p===0&&y===0)return se===0?{...ro,totalCount:T}:Is(se,E,B,N,Q,W||[]);if(re(D))return se>0?null:Ot(ui(Do(E,T),Z,W),[],T,Q,Z,N);const ye=[];if(G.length>0){const J=G[0],te=G[G.length-1];let le=0;for(const pe of it(D,J,te)){const ie=pe.value,me=Math.max(pe.start,J),Te=Math.min(pe.end,te);for(let Se=me;Se<=Te;Se++)ye.push({data:W?.[Se],index:Se,offset:le,size:ie}),le+=ie}}if(!U)return Ot([],ye,T,Q,Z,N);const xe=G.length>0?G[G.length-1]+1:0,Ze=Zr(P,p,y,xe);if(Ze.length===0)return null;const ct=T-1,Le=Yt([],J=>{for(const te of Ze){const le=te.value;let pe=le.offset,ie=te.start;const me=le.size;if(le.offset<p){ie+=Math.floor((p-le.offset+Q)/(me+Q));const Se=ie-te.start;pe+=Se*me+Se*Q}ie<xe&&(pe+=(xe-ie)*me,ie=xe);const Te=Math.min(te.end,ct);for(let Se=ie;Se<=Te&&!(pe>=y);Se++)J.push({data:W?.[Se],index:Se,offset:pe,size:me}),pe+=me+Q}}),dt=Cn(_,yt),H=Cn(_,Ct);if(Le.length>0&&(dt>0||H>0)){const J=Le[0],te=Le[Le.length-1];if(dt>0&&J.index>xe){const le=Math.min(dt,J.index-xe),pe=[];let ie=J.offset;for(let me=J.index-1;me>=J.index-le;me--){const Te=it(D,me,me)[0]?.value??J.size;ie-=Te+Q,pe.unshift({data:W?.[me],index:me,offset:ie,size:Te})}Le.unshift(...pe)}if(H>0&&te.index<ct){const le=Math.min(H,ct-te.index);let pe=te.offset+te.size+Q;for(let ie=te.index+1;ie<=te.index+le;ie++){const me=it(D,ie,ie)[0]?.value??te.size;Le.push({data:W?.[ie],index:ie,offset:pe,size:me}),pe+=me+Q}}}return Ot(Le,ye,T,Q,Z,N)}),V(p=>p!==null),de()),ro);M(C(e,V(_o),L(p=>p?.length)),r),M(C(w,L(p=>p.topListHeight)),b),M(b,l),M(C(w,L(p=>[p.top,p.bottom])),i),M(C(w,L(p=>p.items)),h);const z=ke(C(w,V(({items:p})=>p.length>0),X(r,e),V(([{items:p},y])=>p[p.length-1].originalIndex===y-1),L(([,p,y])=>[p-1,y]),de(vt),L(([p])=>p))),j=ke(C(w,De(200),V(({items:p,topItems:y})=>p.length>0&&p[0].originalIndex===y.length),L(({items:p})=>p[0].index),de())),O=ke(C(w,V(({items:p})=>p.length>0),L(({items:p})=>{let y=0,T=p.length-1;for(;p[y].type==="group"&&y<T;)y++;for(;p[T].type==="group"&&T>y;)T--;return{endIndex:p[T].index,startIndex:p[y].index}}),de(xs)));return{endReached:z,initialItemCount:g,itemsRendered:h,listState:w,minOverscanItemCount:m,rangeChanged:O,startReached:j,topItemsIndexes:S,...x}},he(Ae,ws,Fo,Rt,kt,Ht,Ge,Mo),{singleton:!0}),Ts=oe(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{const a=ee(),i=Ce(C(ge(o,e,n,t,r),L(([l,c,d,f,b])=>l+c+d+f+b.offsetBottom+b.bottom)),0);return M(F(i),a),{totalListHeight:i,totalListHeightChanged:a}},he(Ie,Je),{singleton:!0}),hi=oe(([{viewportHeight:e},{totalListHeight:t}])=>{const o=I(!1),n=Ce(C(ge(o,e,t),V(([r])=>r),L(([,r,a])=>Math.max(0,r-a)),De(0),de()),0);return{alignToBottom:o,paddingTopAddition:n}},he(Ie,Ts),{singleton:!0}),js=oe(()=>({context:I(null)})),pi=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:a,viewportTop:i})=>t<i?{...r,align:o??"start",...n===void 0?{}:{behavior:n}}:e>a?{...r,align:o??"end",...n===void 0?{}:{behavior:n}}:null,ks=oe(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:a,scrollingInProgress:i,scrollTop:l,viewportHeight:c},{scrollToIndex:d}])=>{const f=ee();return M(C(f,X(t,c,o,a,r,n,l),X(e),L(([[b,x,v,u,S,g,h,m],w])=>{const{calculateViewLocation:z=pi,done:j,...O}=b,p=Ss(b,x,u-1),y=St(p,x.offsetTree,w)+S+g,T=y+Be(x.sizeTree,p)[1],B=m+g,E=m+v-h,U=z({itemBottom:T,itemTop:y,locationParams:O,viewportBottom:E,viewportTop:B});return U===null?j?.():j&&Ee(C(i,V(G=>!G),Xe(fe(i)?1:2)),j),U}),V(b=>b!==null)),d),{scrollIntoView:f}},he(Ae,Ie,kt,Je,Ue),{singleton:!0});function In(e){return e===!1?!1:e==="smooth"?"smooth":"auto"}const fi=(e,t)=>typeof e=="function"?In(e(t)):t&&In(e),mi=oe(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:a},{scrollToIndex:i},{scrolledToInitialItem:l},{didMount:c,propsReady:d},{log:f},{scrollingInProgress:b},{context:x},{scrollIntoView:v}])=>{const u=I(!1),S=ee();let g=null;function h(j){K(i,{align:"end",behavior:j,index:"LAST"})}ne(C(ge(C(F(t),Xe(1)),c),X(F(u),a,l,b),L(([[j,O],p,y,T,B])=>{let E=O&&T,U="auto";return E&&(U=fi(p,y||B),E=E&&U!==!1),{followOutputBehavior:U,shouldFollow:E,totalCount:j}}),V(({shouldFollow:j})=>j)),({followOutputBehavior:j,totalCount:O})=>{g!==null&&(g(),g=null),fe(o)===void 0?g=Ee(e,()=>{fe(f)("following output to ",{totalCount:O},ve.DEBUG),h(j),g=null}):requestAnimationFrame(()=>{fe(f)("following output to ",{totalCount:O},ve.DEBUG),h(j)})});function m(j){const O=Ee(r,p=>{j&&!p.atBottom&&p.notAtBottomBecause==="SIZE_INCREASED"&&g===null&&(fe(f)("scrolling to bottom due to increased size",{},ve.DEBUG),h("auto"))});setTimeout(O,100)}ne(C(ge(F(u),t,d),V(([j,,O])=>j!==!1&&O),Me(({value:j},[,O])=>({refreshed:j===O,value:O}),{refreshed:!1,value:0}),V(({refreshed:j})=>j),X(u,t)),([,j])=>{fe(l)&&m(j!==!1)}),ne(S,()=>{m(fe(u)!==!1)}),ne(ge(F(u),r),([j,O])=>{j!==!1&&!O.atBottom&&O.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&h("auto")});const w=I(null),z=ee();return M(go(C(F(n),L(j=>j?.length??0)),C(F(t))),z),ne(C(ge(C(z,Xe(1)),c),X(F(w),l,b,x),L(([[j,O],p,y,T,B])=>O&&y&&p?.({context:B,totalCount:j,scrollingInProgress:T})),V(j=>!!j),De(0)),j=>{g!==null&&(g(),g=null),fe(o)===void 0?g=Ee(e,()=>{fe(f)("scrolling into view",{}),K(v,j),g=null}):requestAnimationFrame(()=>{fe(f)("scrolling into view",{}),K(v,j)})}),{autoscrollToBottom:S,followOutput:u,scrollIntoViewOnChange:w}},he(Ae,Ht,kt,Rt,Ge,Ue,Ie,js,ks)),gi=oe(([{data:e,firstItemIndex:t,gap:o,sizes:n}
vendor: 4,127 bytes, line 1
1,{initialTopMostItemIndex:r},{initialItemCount:a,listState:i},{didMount:l}])=>(M(C(l,X(a),V(([,c])=>c!==0),X(r,n,t,o,e),L(([[,c],d,f,b,x,v=[]])=>Is(c,d,f,b,x,v))),i),{}),he(Ae,Rt,Je,Ge),{singleton:!0}),xi=oe(([{didMount:e},{scrollTo:t},{listState:o}])=>{const n=I(0);return ne(C(e,X(n),V(([,r])=>r!==0),L(([,r])=>({top:r}))),r=>{Ee(C(o,Xe(1),V(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{K(t,r)})})}),{initialScrollTop:n}},he(Ge,Ie,Je),{singleton:!0}),Rs=oe(([{scrollVelocity:e}])=>{const t=I(!1),o=ee(),n=I(!1);return M(C(e,X(n,t,o),V(([r,a])=>a!==!1&&a!==void 0),L(([r,a,i,l])=>{const{enter:c,exit:d}=a;if(i){if(d(r,l))return!1}else if(c(r,l))return!0;return i}),de()),t),ne(C(ge(t,e,o),X(n)),([[r,a,i],l])=>{r&&l!==!1&&l!==void 0&&l.change&&l.change(a,i)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},he(Ht),{singleton:!0}),Vo=oe(([{scrollContainerState:e,scrollTo:t}])=>{const o=ee(),n=ee(),r=ee(),a=I(!1),i=I(void 0);return M(C(ge(o,n),L(([{scrollTop:l,viewportHeight:c},{offsetTop:d,listHeight:f}])=>({scrollHeight:f,scrollTop:Math.max(0,l-d),viewportHeight:c}))),e),M(C(t,X(n),L(([l,{offsetTop:c}])=>({...l,top:l.top+c}))),r),{customScrollParent:i,useWindowScroll:a,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},he(Ie)),bi=oe(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:a},{useWindowScroll:i,windowScrollContainerState:l,windowViewportRect:c}])=>{const d=ee(),f=I(void 0),b=I(null),x=I(null);return M(l,b),M(c,x),ne(C(d,X(t,n,i,b,x,o)),([v,u,S,g,h,m,w])=>{const z=ti(u.sizeTree);g&&h!==null&&m!==null&&(S=h.scrollTop-m.offsetTop),S-=w,v({ranges:z,scrollTop:S})}),M(C(f,V(_o),L(vi)),r),M(C(a,X(f),V(([,v])=>v!==void 0),de(),L(([,v])=>v.ranges)),e),{getState:d,restoreStateFrom:f}},he(Ae,Ie,Rt,Ge,Vo));function vi(e){return{align:"start",index:0,offset:e.scrollTop}}const Si=oe(([{topItemsIndexes:e}])=>{const t=I(0);return M(C(t,V(o=>o>=0),L(o=>Array.from({length:o}).map((n,r)=>r))),e),{topItemCount:t}},he(Je));function Hs(e){let t=!1,o;return(()=>(t||(t=!0,o=e()),o))}const wi=Hs(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),yi=oe(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:a,lastJumpDueToItemResize:i,scrollDirection:l},{listState:c},{beforeUnshiftWith:d,gap:f,shiftWithOffset:b,sizes:x},{log:v},{recalcInProgress:u}])=>{const S=ke(C(c,X(i),Me(([,h,m,w],[{bottom:z,items:j,offsetBottom:O,totalCount:p},y])=>{const T=z+O;let B=0;return m===p&&h.length>0&&j.length>0&&(j[0].originalIndex===0&&h[0].originalIndex===0||(B=T-w,B!==0&&(B+=y))),[B,j,p,T]},[0,[],0,0]),V(([h])=>h!==0),X(n,l,o,r,v,u),V(([,h,m,w,,,z])=>!z&&!w&&h!==0&&m===wt),L(([[h],,,,,m])=>(m("Upward scrolling compensation",{amount:h},ve.DEBUG),h))));function g(h){h>0?(K(t,{behavior:"auto",top:-h}),K(e,0)):(K(e,0),K(t,{behavior:"auto",top:-h}))}return ne(C(S,X(e,a)),([h,m,w])=>{w&&wi()?K(e,m-h):g(-h)}),ne(C(ge(Ce(a,!1),e,u),V(([h,m,w])=>!h&&!w&&m!==0),L(([h,m])=>m),De(1)),g),M(C(b,L(h=>({top:-h}))),t),ne(C(d,X(x,f),L(([h,{groupIndices:m,lastSize:w,sizeTree:z},j])=>{function O(E){return E*(w+j)}if(m.length===0)return O(h);let p=0;const y=bt(z,0);let T=0,B=0;for(;T<h;){T++,p+=y;let E=m.length===B+1?1/0:m[B+1]-m[B]-1;T+E>h&&(p-=y,E=h-T+1),T+=E,p+=O(E),B++}return p})),h=>{K(e,h),requestAnimationFrame(()=>{K(t,{top:h}),requestAnimationFrame(()=>{K(e,0),K(u,!1)})})}),{deviation:e}},he(Ie,Ht,Je,Ae,Ue,Mo)),Ci=oe(([e,t,o,n,r,a,i,l,c,d,f])=>({...e,...t,...o,...n,...r,...a,...i,...l,...c,...d,...f}),he(Fo,gi,Ge,Rs,Ts,xi,hi,Vo,ks,Ue,js)),Es=oe(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:a,groupIndices:i,heightEstimates:l,itemSize:c,sizeRanges:d,sizes:f,statefulTotalCount:b,totalCount:x,trackItemSizes:v},{initialItemFinalLocationReached:u,initialTopMostItemIndex:S,scrolledToInitialItem:g},h,m,w,z,{scrollToIndex:j},O,{topItemCount:p},{groupCounts:y},T])=>{const{listState:B,minOverscanItemCount:E,topItemsIndexes:U,rangeChanged:G,...N}=z;return M(G,T.scrollSeekRangeChanged),M(C(T.windowViewportRect,L(Q=>
1Q.visibleHeight)),h.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:a,groupCounts:y,heightEstimates:l,initialItemFinalLocationReached:u,initialTopMostItemIndex:S,scrolledToInitialItem:g,sizeRanges:d,topItemCount:p,topItemsIndexes:U,totalCount:x,...w,groupIndices:i,itemSize:c,listState:B,minOverscanItemCount:E,scrollToIndex:j,statefulTotalCount:b,trackItemSizes:v,rangeChanged:G,...N,...T,...h,sizes:f,...m}},he(Ae,Rt,Ie,bi,mi,Je,kt,yi,Si,ws,Ci));function Ii(e,t){const o={},n={};let r=0;const a=e.length;for(;r<a;)n[e[r]]=1,r+=1;for(const i in t)Object.hasOwn(n,i)||(o[i]=t[i]);return o}const Lt=typeof document>"u"?k.useEffect:k.useLayoutEffect;function Wo(e,t,o){const n=Object.keys(t.required||{}),r=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),i=Object.keys(t.events||{}),l=k.createContext({});function c(g,h){g.propsReady!==void 0&&K(g.propsReady,!1);for(const m of n){const w=g[t.required[m]];K(w,h[m])}for(const m of r)if(m in h){const w=g[t.optional[m]];K(w,h[m])}g.propsReady!==void 0&&K(g.propsReady,!0)}function d(g){return a.reduce((h,m)=>(h[m]=w=>{const z=g[t.methods[m]];K(z,w)},h),{})}function f(g){return i.reduce((h,m)=>(h[m]=Ar(g[t.events[m]]),h),{})}const b=k.forwardRef(function(g,h){const{children:m,...w}=g,[z]=k.useState(()=>Yt(Vr(e),p=>{c(p,w)})),[j]=k.useState(hn(f,z));Lt(()=>{for(const p of i)p in w&&ne(j[p],w[p]);return()=>{Object.values(j).map(Lo)}},[w,j,z]),Lt(()=>{c(z,w)}),k.useImperativeHandle(h,un(d(z)));const O=o;return s.jsx(l.Provider,{value:z,children:o===void 0?m:s.jsx(O,{...Ii([...n,...r,...i],w),children:m})})}),x=g=>{const h=k.useContext(l);return k.useCallback(m=>{K(h[g],m)},[h,g])},v=g=>{const h=k.useContext(l)[g],m=k.useCallback(w=>ne(h,w),[h]);return k.useSyncExternalStore(m,()=>fe(h),()=>fe(h))},u=g=>{const h=k.useContext(l)[g],[m,w]=k.useState(hn(fe,h));return Lt(()=>ne(h,z=>{z!==m&&w(un(z))}),[h,m]),m},S=parseInt(k.version,10)>=18?v:u;return{Component:b,useEmitter:(g,h)=>{const m=k.useContext(l)[g];Lt(()=>ne(m,h),[h,m])},useEmitterValue:S,usePublisher:x}}const Qt=k.createContext(void 0),zs=k.createContext(void 0),io="-webkit-sticky",Tn="sticky",Uo=Hs(()=>{if(typeof document>"u")return Tn;const e=document.createElement("div");return e.style.position=io,e.style.position===io?io:Tn}),Bs=typeof document>"u"?k.useEffect:k.useLayoutEffect;function ao(e){return"self"in e}function Ti(e){return"body"in e}function _s(e,t,o,n=lt,r,a){const i=k.useRef(null),l=k.useRef(null),c=k.useRef(null),d=k.useCallback(x=>{let v,u,S;const g=x.target;if(Ti(g)||ao(g)){const m=ao(g)?g:g.defaultView;S=a===!0?qe(m,m.scrollX):m.scrollY,v=a===!0?m.document.documentElement.scrollWidth:m.document.documentElement.scrollHeight,u=a===!0?m.innerWidth:m.innerHeight}else S=a===!0?qe(g,g.scrollLeft):g.scrollTop,v=a===!0?g.scrollWidth:g.scrollHeight,u=a===!0?g.offsetWidth:g.offsetHeight;const h=()=>{e({scrollHeight:v,scrollTop:Math.max(S,0),viewportHeight:u})};x.suppressFlushSync===!0?h():Js.flushSync(h),l.current!==null&&(S===l.current||S<=0||S===v-u)&&(l.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,a]);k.useEffect(()=>{const x=r??i.current;return fn(x),n(r??i.current),d({suppressFlushSync:!0,target:x}),x.addEventListener("scroll",d,{passive:!0}),()=>{fn(x),n(null),x.removeEventListener("scroll",d)}},[i,d,o,n,r]);function f(x){const v=i.current;if(!v||(a===!0?"offsetWidth"in v&&v.offsetWidth===0:"offsetHeight"in v&&v.offsetHeight===0))return;const u=x.behavior==="smooth";let S,g,h;ao(v)?(g=Math.max(_e(v.document.documentElement,a===!0?"width":"height"),a===!0?v.document.documentElement.scrollWidth:v.document.documentElement.scrollHeight),S=a===!0?v.innerWidth:v.innerHeight,h=a===!0?qe(v,v.scrollX):v.scrollY):(g=v[a===!0?"scrollWidth":"scrollHeight"],S=_e(v,a===!0?"width":"height"),h=a===!0?qe(v,v.scrollLeft):v.scrollTop);const m=g-S;if(x.top===void 0){v.scrollTo(x);return}const w=Math.ceil(Math.max(Math.min(m,x.top),0));if(x.top=w,Cs(S,g)||w===h){e({scrollHeight:g,scrollTop:h,viewportHeight:S}),u&&t(!0);return}u?(l.current=w,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,l.current=null,t(!0)},1e3)):l.current=null,a===!0&&(x={...x.behavior===void 0?{}:{behavior:x.behavior},left:mn(v,w)}),v.scrollTo(x)}function b(x){a===!0&&(x={...x.behavior===void 0?{}:{behavior:x.behavior},...x.top===void 0?{}:{left:mn(i.current,x.top)}}),i.current.scrollBy(x)}return{scrollByCallback:b,scrollerRef:i,scrollToCallback:f}}function Go(e){return e}const ji=oe(()=>{const e=I(l=>`Item ${l}`),t=I(l=>`Group ${l}`),o=I({}),n=I(Go),r=I("div"),a=I(lt),i=(l,c=null)=>Ce(C(o,L(d=>d[l]),de()),c);return{components:o,computeItemKey:n,EmptyPlaceholder:i("EmptyPlaceholder"),FooterComponent:i("Footer"),GroupComponent:i("Group","div"),groupContent:t,HeaderComponent:i("Header"),HeaderFooterTag:r,ItemComponent:i("Item","div"),itemContent:e,ListComponent:i("List","div"),ScrollerComponent:i("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:i("ScrollSeekPlaceholder"),TopItemListComponent:i("TopItemList")}}),ki=oe(([e,t])=>({...e,...t}),he(Es,ji)),Ri=({height:e})=>s.jsx("div",{style:{height:e}}),Hi={overflowAnchor:"none",position:Uo(),zIndex:1},Ls={overflowAnchor:"none"},Ei={...Ls,display:"inline-block",height:"100%"},jn=k.memo(function({showTopList:e=!1}){const t=$("listState"),o=Re("sizeRanges"),n=$("useWindowScroll"),r=$("customScrollParent"),a=Re("windowScrollContainerState"),i=Re("scrollContainerState"),l=r||n?a:i,c=$("itemContent"),d=$("context"),f=$("groupContent"),b=$("trackItemSizes"),x=$("itemSize"),v=$("log"),u=Re("gap"),S=$("horizontalDirection"),{callbackRef:g}=us(o,x,b,e?lt:l,v,u,r,S,$("skipAnimationFrameInResizeObserver")),[h,m]=k.useState(0);qo("deviation",N=>{h!==N&&m(N)});const w=$("EmptyPlaceholder"),z=$("ScrollSeekPlaceholder")??Ri,j=$("ListComponent"),O=$("ItemComponent"),p=$("GroupComponent"),y=$("computeItemKey"),T=$("isSeeking"),B=$("groupIndices").length>0,E=$("alignToBottom"),U=$("initialItemFinalLocationReached"),G=e?{}:{boxSizing:"border-box",...S?{display:"inline-block",height:"100%",marginInlineStart:h===0?E?"auto":0:h,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:"nowrap"}:{marginTop:h===0?E?"auto":0:h,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...U?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&w!==null&&w!==void 0?s.jsx(w,{...ue(w,d)}):s.jsx(j,{...ue(j,d),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:g,style:G,children:(e?t.topItems:t.items).map(N=>{const Q=N.originalIndex,_=y(Q+t.firstItemIndex,N.data,d);return T?R.createElement(z,{...ue(z,d),height:N.size,index:N.index,key:_,type:N.type||"item",...N.type==="group"?{}:{groupIndex:N.groupIndex}}
1):N.type==="group"?R.createElement(p,{...ue(p,d),"data-index":Q,"data-item-index":N.index,"data-known-size":N.size,key:_,style:Hi},f(N.index,d)):R.createElement(O,{...ue(O,d),...Ps(O,N.data),"data-index":Q,"data-item-group-index":N.groupIndex,"data-item-index":N.index,"data-known-size":N.size,key:_,style:S?Ei:Ls},B?c(N.index,N.groupIndex,N.data,d):c(N.index,N.data,d))})})}),zi={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Bi={outline:"none",overflowX:"auto",position:"relative"},Xt=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),$o=(e,t,o=0)=>({...Xt(e),position:t?"relative":"absolute",top:t?-o:0}),_i={position:Uo(),top:0,width:"100%",zIndex:1};function ue(e,t){if(typeof e!="string")return{context:t}}function Ps(e,t){return{item:typeof e=="string"?void 0:t}}const Li=k.memo(function(){const e=$("HeaderComponent"),t=Re("headerHeight"),o=$("HeaderFooterTag"),n=Oe(k.useMemo(()=>a=>{t(_e(a,"height"))},[t]),!0,$("skipAnimationFrameInResizeObserver")),r=$("context");return e!=null?s.jsx(o,{ref:n,children:s.jsx(e,{...ue(e,r)})}):null}),Pi=k.memo(function(){const e=$("FooterComponent"),t=Re("footerHeight"),o=$("HeaderFooterTag"),n=Oe(k.useMemo(()=>a=>{t(_e(a,"height"))},[t]),!0,$("skipAnimationFrameInResizeObserver")),r=$("context");return e!=null?s.jsx(o,{ref:n,children:s.jsx(e,{...ue(e,r)})}):null});function Ko({useEmitter:e,useEmitterValue:t,usePublisher:o}){return k.memo(function({children:n,style:r,context:a,...i}){const l=o("scrollContainerState"),c=t("ScrollerComponent"),d=o("smoothScrollTargetReached"),f=t("scrollerRef"),b=t("horizontalDirection")||!1,{scrollByCallback:x,scrollerRef:v,scrollToCallback:u}=_s(l,d,c,f,void 0,b);return e("scrollTo",u),e("scrollBy",x),s.jsx(c,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:v,style:{...b?Bi:zi,...r},tabIndex:0,...i,...ue(c,a),children:n})})}function Yo({useEmitter:e,useEmitterValue:t,usePublisher:o}){return k.memo(function({children:n,style:r,context:a,...i}){const l=o("windowScrollContainerState"),c=t("ScrollerComponent"),d=o("smoothScrollTargetReached"),f=t("totalListHeight"),b=t("deviation"),x=t("customScrollParent"),v=k.useRef(null),u=t("scrollerRef"),{scrollByCallback:S,scrollerRef:g,scrollToCallback:h}=_s(l,d,c,u,x);return Bs(()=>(g.current=x??v.current?.ownerDocument.defaultView,()=>{g.current=null}),[g,x]),e("windowScrollTo",h),e("scrollBy",S),s.jsx(c,{ref:v,"data-virtuoso-scroller":!0,style:{position:"relative",...r,...f===0?void 0:{height:f+b}},...i,...ue(c,a),children:n})})}const Ni=({children:e})=>{const t=k.useContext(Qt),o=Re("viewportHeight"),n=Re("fixedItemHeight"),r=$("alignToBottom"),a=$("horizontalDirection"),i=k.useMemo(()=>gt(o,c=>_e(c,a?"width":"height")),[o,a]),l=Oe(i,!0,$("skipAnimationFrameInResizeObserver"));return k.useEffect(()=>{t&&(o(t.viewportHeight),n(t.itemHeight))},[t,o,n]),s.jsx("div",{"data-viewport-type":"element",ref:l,style:Xt(r),children:e})},Mi=({children:e})=>{const t=k.useContext(Qt),o=Re("windowViewportRect"),n=Re("fixedItemHeight"),r=$("customScrollParent"),a=$("useWindowScroll"),i=$("topListHeight"),l=No(o,r,$("skipAnimationFrameInResizeObserver")),c=$("alignToBottom");return k.useEffect(()=>{t&&(n(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,n]),s.jsx("div",{"data-viewport-type":"window",ref:l,style:$o(c,a,i),children:e})},Oi=({children:e})=>{const t=$("TopItemListComponent")??"div",o=$("headerHeight"),n={..._i,marginTop:`${o}px`},r=$("context");return s.jsx(t,{style:n,...ue(t,r),children:e})},Ai=k.memo(function(e){const t=$("useWindowScroll"),o=$("topItemsIndexes").length>0,n=$("customScrollParent"),r=$("context");return s.jsxs(n||t?Vi:Fi,{...e,context:r,children:[o&&s.jsx(Oi,{children:s.jsx(jn,{showTopList:!0})}),s.jsxs(n||t?Mi:Ni,{children:[s.jsx(Li,{}),s.jsx(jn,{}),s.jsx(Pi,{})]})]})}),{Component:Di,useEmitter:qo,useEmitterValue:$,usePublisher:Re}=Wo(ki,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",to
1pItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Ai),Fi=Ko({useEmitter:qo,useEmitterValue:$,usePublisher:Re}),Vi=Yo({useEmitter:qo,useEmitterValue:$,usePublisher:Re}),Wi=Di,Ui=oe(()=>{const e=I(d=>s.jsxs("td",{children:["Item $",d]})),t=I(null),o=I(d=>s.jsxs("td",{colSpan:1e3,children:["Group ",d]})),n=I(null),r=I(null),a=I({}),i=I(Go),l=I(lt),c=(d,f=null)=>Ce(C(a,L(b=>b[d]),de()),f);return{components:a,computeItemKey:i,context:t,EmptyPlaceholder:c("EmptyPlaceholder"),FillerRow:c("FillerRow"),fixedFooterContent:r,fixedHeaderContent:n,itemContent:e,groupContent:o,ScrollerComponent:c("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder"),TableBodyComponent:c("TableBody","tbody"),TableComponent:c("Table","table"),TableFooterComponent:c("TableFoot","tfoot"),TableHeadComponent:c("TableHead","thead"),TableRowComponent:c("TableRow","tr"),GroupComponent:c("Group","tr")}}),Gi=oe(([e,t])=>({...e,...t}),he(Es,Ui)),$i=({height:e})=>s.jsx("tr",{children:s.jsx("td",{style:{height:e}})}),Ki=({height:e})=>s.jsx("tr",{children:s.jsx("td",{style:{border:0,height:e,padding:0}})}),Yi={overflowAnchor:"none"},kn={position:Uo(),zIndex:2,overflowAnchor:"none"},Rn=k.memo(function({showTopList:e=!1}){const t=Y("listState"),o=Y("computeItemKey"),n=Y("firstItemIndex"),r=Y("context"),a=Y("isSeeking"),i=Y("fixedHeaderHeight"),l=Y("groupIndices").length>0,c=Y("itemContent"),d=Y("groupContent"),f=Y("ScrollSeekPlaceholder")??$i,b=Y("GroupComponent"),x=Y("TableRowComponent"),v=(e?t.topItems:[]).reduce((u,S,g)=>(g===0?u.push(S.size):u.push(u[g-1]+S.size),u),[]);return(e?t.topItems:t.items).map(u=>{const S=u.originalIndex,g=o(S+n,u.data,r),h=e?S===0?0:v[S-1]:0;return a?R.createElement(f,{...ue(f,r),height:u.size,index:u.index,key:g,type:u.type||"item"}):u.type==="group"?R.createElement(b,{...ue(b,r),"data-index":S,"data-item-index":u.index,"data-known-size":u.size,key:g,style:{...kn,top:i}},d(u.index,r)):R.createElement(x,{...ue(x,r),...Ps(x,u.data),"data-index":S,"data-item-index":u.index,"data-known-size":u.size,"data-item-group-index":u.groupIndex,key:g,style:e?{...kn,top:i+h}:Yi},l?c(u.index,u.groupIndex,u.data,r):c(u.index,u.data,r))})}),qi=k.memo(function(){const e=Y("listState"),t=Y("topItemsIndexes").length>0,o=ze("sizeRanges"),n=Y("useWindowScroll"),r=Y("customScrollParent"),a=ze("windowScrollContainerState"),i=ze("scrollContainerState"),l=r||n?a:i,c=Y("trackItemSizes"),d=Y("itemSize"),f=Y("log"),{callbackRef:b,ref:x}=us(o,d,c,l,f,void 0,r,!1,Y("skipAnimationFrameInResizeObserver")),[v,u]=k.useState(0);Qo("deviation",B=>{v!==B&&(x.current.style.marginTop=`${B}px`,u(B))});const S=Y("EmptyPlaceholder"),g=Y("FillerRow")??Ki,h=Y("TableBodyComponent"),m=Y("paddingTopAddition"),w=Y("statefulTotalCount"),z=Y("context");if(w===0&&S!==null&&S!==void 0)return s.jsx(S,{...ue(S,z)});const j=(t?e.topItems:[]).reduce((B,E)=>B+E.size,0),O=e.offsetTop+m+v-j,p=e.offsetBottom,y=O>0?s.jsx(g,{context:z,height:O},"padding-top"):null,T=p>0?s.jsx(g,{context:z,height:p},"padding-bottom"):null;return s.jsxs(h,{"data-testid":"virtuoso-item-list",ref:b,...ue(h,z),children:[y,t&&s.jsx(Rn,{showTopList:!0}),s.jsx(Rn,{}),T]})}),Qi=({children:e})=>
1{const t=k.useContext(Qt),o=ze("viewportHeight"),n=ze("fixedItemHeight"),r=Oe(k.useMemo(()=>gt(o,a=>_e(a,"height")),[o]),!0,Y("skipAnimationFrameInResizeObserver"));return k.useEffect(()=>{t&&(o(t.viewportHeight),n(t.itemHeight))},[t,o,n]),s.jsx("div",{"data-viewport-type":"element",ref:r,style:Xt(!1),children:e})},Xi=({children:e})=>{const t=k.useContext(Qt),o=ze("windowViewportRect"),n=ze("fixedItemHeight"),r=Y("customScrollParent"),a=Y("useWindowScroll"),i=No(o,r,Y("skipAnimationFrameInResizeObserver"));return k.useEffect(()=>{t&&(n(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,n]),s.jsx("div",{"data-viewport-type":"window",ref:i,style:$o(!1,a),children:e})},Ji=k.memo(function(e){const t=Y("useWindowScroll"),o=Y("customScrollParent"),n=ze("fixedHeaderHeight"),r=ze("fixedFooterHeight"),a=Y("fixedHeaderContent"),i=Y("fixedFooterContent"),l=Y("context"),c=Oe(k.useMemo(()=>gt(n,h=>_e(h,"height")),[n]),!0,Y("skipAnimationFrameInResizeObserver")),d=Oe(k.useMemo(()=>gt(r,h=>_e(h,"height")),[r]),!0,Y("skipAnimationFrameInResizeObserver")),f=o||t?ta:ea,b=o||t?Xi:Qi,x=Y("TableComponent"),v=Y("TableHeadComponent"),u=Y("TableFooterComponent"),S=a?s.jsx(v,{ref:c,style:{position:"sticky",top:0,zIndex:2},...ue(v,l),children:a()},"TableHead"):null,g=i?s.jsx(u,{ref:d,style:{bottom:0,position:"sticky",zIndex:1},...ue(u,l),children:i()},"TableFoot"):null;return s.jsx(f,{...e,...ue(f,l),children:s.jsx(b,{children:s.jsxs(x,{style:{borderSpacing:0,overflowAnchor:"none"},...ue(x,l),children:[S,s.jsx(qi,{},"TableBody"),g]})})})}),{Component:Zi,useEmitter:Qo,useEmitterValue:Y,usePublisher:ze}=Wo(Gi,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Ji),ea=Ko({useEmitter:Qo,useEmitterValue:Y,usePublisher:ze}),ta=Yo({useEmitter:Qo,useEmitterValue:Y,usePublisher:ze}),oa=Zi,Hn={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},na={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:En,floor:Wt,max:ft,min:lo,round:zn}=Math;function Bn(e,t,o){return Array.from({length:t-e+1}).map((n,r)=>({data:o===null?null:o[r+e],index:r+e}))}function sa(e){return{...na,items:e}}function Pt(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function ra(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}const ia=oe(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:a,scrollBy:i,scrollContainerState:l,scrollTo:c,scrollTop:d,smoothScrollTargetReached:f,viewportHeight:b},x,v,{didMount:u,propsReady:S},{customScrollParent:g,useWindowScroll:h,windowScrollContainerState:m,windowScrollTo:w,windowViewportRect:z},j])=>{const O=I(0),p=I(0),y=I(Hn),T=I({height:0,width:0}),B=I({height:0,width:0}),E=ee(),U=ee(),G=I(0),N=I(null),Q=I({column:0,row:0}),_=ee(),W=ee(),Z=I(!1),P=I(0),D=I(!0),se=I(!1),ye=I(!1);ne(C(u,X(P),V(([H,J])=>!yo(J))),()=>{K(D,!1)}),ne(C(ge(u,D,B,T,P,se),V(([H,J,te,le,,pe])=>H&&!J&&te.height!==0&&le.height!==0&&!pe)),([,,,,H])=>{if(H===void 0){K(D,!0);return}K(se,!0),Ao(1,()=>{K(E,H)}),Ee(C(d),()=>{K(t,[0,0]),K(D,!0)})}),M(C(W,V(H=>H!=null&&H.scrollTop>0),Ne(0)),p),ne(C(u,X(W),V(([,H])=>H!=null)),([,H])=>{H&&(K(T,H.viewport),K(B,H.item),K(Q,H.gap),H.scrollTop>0&&(K(Z,!0),Ee(C(d,Xe(1)),J=>{K(Z,!1)}),K(c,{top:H.scrollTop})))}),M(C(T,L(({height:H})=>H)),b),M(C(ge(F(T,Pt),F(B,Pt),F(Q,(H,J)=>H!==void 0&&H.column===J.column&&H.row===J.row),F(d)),L(([H,J,te,le])=>({gap:te,item:J,scrollTop:le,viewport:H}))),_),M(C(ge(F(O),n,F(Q,ra),F(B,Pt),F(T,Pt),F(N),F(p),F(Z),F(D),F(P)),V(([,,,,,,,H])=>!H),L(([H,[J,te],le,pe,ie,me,Te,,Se,Fe])=>{const{column:Ve,row:ut}=le,{height:zt,width:Jt}=pe,{width:Zo}=ie;if(Te===0&&(H===0||Zo===0))return Hn;
1if(Jt===0){const sn=Do(Fe,H),Xs=sn+Math.max(Te-1,0);return sa(Bn(sn,Xs,me))}const Bt=Ns(Zo,Jt,Ve);let et,$e;Se?J===0&&te===0&&Te>0?(et=0,$e=Te-1):(et=Bt*Wt((J+ut)/(zt+ut)),$e=Bt*En((te+ut)/(zt+ut))-1,$e=lo(H-1,ft($e,Bt-1)),et=lo($e,ft(0,et))):(et=0,$e=-1);const en=Bn(et,$e,me),{bottom:tn,top:on}=_n(ie,le,pe,en),nn=En(H/Bt),Qs=nn*zt+(nn-1)*ut-tn;return{bottom:tn,itemHeight:zt,items:en,itemWidth:Jt,offsetBottom:Qs,offsetTop:on,top:on}})),y),M(C(N,V(H=>H!==null),L(H=>H.length)),O),M(C(ge(T,B,y,Q),V(([H,J,{items:te}])=>te.length>0&&J.height!==0&&H.height!==0),L(([H,J,{items:te},le])=>{const{bottom:pe,top:ie}=_n(H,le,J,te);return[ie,pe]}),de(vt)),t);const xe=I(!1);M(C(d,X(xe),L(([H,J])=>J||H!==0)),xe);const Ze=ke(C(ge(y,O),V(([{items:H}])=>H.length>0),X(xe),V(([[H,J],te])=>{const le=H.items[H.items.length-1].index===J-1;return(te||H.bottom>0&&H.itemHeight>0&&H.offsetBottom===0&&H.items.length===J)&&le}),L(([[,H]])=>H-1),de())),ct=ke(C(F(y),V(({items:H})=>H.length>0&&H[0].index===0),Ne(0),de())),Le=ke(C(F(y),X(Z),V(([{items:H},J])=>H.length>0&&!J),L(([{items:H}])=>({endIndex:H[H.length-1].index,startIndex:H[0].index})),de(xs),De(0)));M(Le,v.scrollSeekRangeChanged),M(C(E,X(T,B,O,Q),L(([H,J,te,le,pe])=>{const ie=ys(H),{align:me,behavior:Te,offset:Se}=ie;let Fe=ie.index;Fe==="LAST"&&(Fe=le-1),Fe=ft(0,Fe,lo(le-1,Fe));let Ve=Co(J,pe,te,Fe);return me==="end"?Ve=zn(Ve-J.height+te.height):me==="center"&&(Ve=zn(Ve-J.height/2+te.height/2)),Se!==void 0&&Se!==0&&(Ve+=Se),{behavior:Te,top:Ve}})),c);const dt=Ce(C(y,L(H=>H.offsetBottom+H.bottom)),0);return M(C(z,L(H=>({height:H.visibleHeight,width:H.visibleWidth}))),T),{customScrollParent:g,data:N,deviation:G,footerHeight:r,gap:Q,headerHeight:a,increaseViewportBy:e,initialItemCount:p,itemDimensions:B,overscan:o,restoreStateFrom:W,scrollBy:i,scrollContainerState:l,scrollHeight:U,scrollTo:c,scrollToIndex:E,scrollTop:d,smoothScrollTargetReached:f,totalCount:O,useWindowScroll:h,viewportDimensions:T,windowScrollContainerState:m,windowScrollTo:w,windowViewportRect:z,...v,gridState:y,horizontalDirection:ye,initialTopMostItemIndex:P,totalListHeight:dt,...x,endReached:Ze,propsReady:S,rangeChanged:Le,startReached:ct,stateChanged:_,stateRestoreInProgress:Z,...j}},he(Fo,Ie,Ht,Rs,Ge,Vo,Ue));function Ns(e,t,o){return ft(1,Wt((e+o)/(Wt(t)+o)))}function _n(e,t,o,n){const{height:r}=o;if(r===void 0||n.length===0)return{bottom:0,top:0};const a=Co(e,t,o,n[0].index);return{bottom:Co(e,t,o,n[n.length-1].index)+r,top:a}}function Co(e,t,o,n){const r=Ns(e.width,o.width,t.column),a=Wt(n/r),i=a*o.height+ft(0,a-1)*t.row;return i>0?i+t.row:i}const aa=oe(()=>{const e=I(b=>`Item ${b}`),t=I({}),o=I(null),n=I("virtuoso-grid-item"),r=I("virtuoso-grid-list"),a=I(Go),i=I("div"),l=I(lt),c=(b,x=null)=>Ce(C(t,L(v=>v[b]),de()),x),d=I(!1),f=I(!1);return M(F(f),d),{components:t,computeItemKey:a,context:o,FooterComponent:c("Footer"),HeaderComponent:c("Header"),headerFooterTag:i,itemClassName:n,ItemComponent:c("Item","div"),itemContent:e,listClassName:r,ListComponent:c("List","div"),readyStateChanged:d,reportReadyState:f,ScrollerComponent:c("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),la=oe(([e,t])=>({...e,...t}),he(ia,aa)),ca=k.memo(function(){const e=ce("gridState"),t=ce("listClassName"),o=ce("itemClassName"),n=ce("itemContent"),r=ce("computeItemKey"),a=ce("isSeeking"),i=He("scrollHeight"),l=ce("ItemComponent"),c=ce("ListComponent"),d=ce("ScrollSeekPlaceholder"),f=ce("context"),b=He("itemDimensions"),x=He("gap"),v=ce("log"),u=ce("stateRestoreInProgress"),S=He("reportReadyState"),g=Oe(k.useMemo(()=>h=>{const m=h.parentElement.parentElement.scrollHeight;i(m);const w=h.firstChild;if(w!==null){const{height:z,width:j}=w.getBoundingClientRect();b({height:z,width:j})}x({column:Ln("column-gap",getComputedStyle(h).columnGap,v),row:Ln("row-gap",getComputedStyle(h).rowGap,v)})},[i,b,x,v]),!0,!1);return Bs(()=>{e.itemHeight>0&&e.itemWidth>0&&S(!0)},[e]),u?null:s.jsx(c,{className:t,ref:g,...ue(c,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(h=>{const m=r(h.index,h.data,f);return a?s.jsx(d,{...ue(d,f),height:e.itemHeight,index:h.index,width:e.itemWidth},m):R.createElement(l,{...ue(l,f),className:o,"data-index":h.index,key:m},n(h.index,h.data,f))})})}),da=k.memo(function(){const e=ce("HeaderComponent"),t=He("headerHeight"),o=ce("headerFooterTag"),n=Oe(k.useMemo(()=>a=>{t(_e(a,"height"))},[t]),!0,!1),r=ce("context");return e!=null?s.jsx(o,{ref:n,children:s.jsx(e,{...ue(e,r)})}):null}),ua=k.memo(function(){const e=ce("FooterComponent"),t=He("footerHeight"),o=ce("headerFooterTag"),n=Oe(k.useMemo(()=>a=>{t(_e(a,"height"))},[t]),!0,!1),r=ce("context");return e!=null?s.jsx(o,{ref:n,children:s.jsx(e,{...ue(e,r)})}):null}),ha=({children:e})=>{const t=k.useContext(zs),o=He("itemDimensions"),n=He("viewportDimensions"),r=Oe(k.useMemo(()=>a=>{n(a.getBoundingClientRect())},[n]),!0,!1);return k.useEffect(()=>
1{t&&(n({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,n,o]),s.jsx("div",{ref:r,style:Xt(!1),children:e})},pa=({children:e})=>{const t=k.useContext(zs),o=He("windowViewportRect"),n=He("itemDimensions"),r=ce("customScrollParent"),a=ce("useWindowScroll"),i=No(o,r,!1);return k.useEffect(()=>{t&&(n({height:t.itemHeight,width:t.itemWidth}),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,n]),s.jsx("div",{ref:i,style:$o(!1,a),children:e})},fa=k.memo(function({...e}){const t=ce("useWindowScroll"),o=ce("customScrollParent"),n=o||t?ga:ma,r=o||t?pa:ha,a=ce("context");return s.jsx(n,{...e,...ue(n,a),children:s.jsxs(r,{children:[s.jsx(da,{}),s.jsx(ca,{}),s.jsx(ua,{})]})})}),{useEmitter:Ms,useEmitterValue:ce,usePublisher:He}=Wo(la,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},fa),ma=Ko({useEmitter:Ms,useEmitterValue:ce,usePublisher:He}),ga=Yo({useEmitter:Ms,useEmitterValue:ce,usePublisher:He});function Ln(e,t,o){return t!=="normal"&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,ve.WARN),t==="normal"?0:parseInt(t??"0",10)}var co={},Pn;function xa(){return Pn||(Pn=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="far",o="clone",n=512,r=512,a=[],i="f24d",l="M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z";e.definition={prefix:t,iconName:o,icon:[n,r,a,i,l]},e.faClone=e.definition,e.prefix=t,e.iconName=o,e.width=n,e.height=r,e.ligatures=a,e.unicode=i,e.svgPathData=l,e.aliases=a})(co)),co}var Os=xa();const ba=({header:e,message:t})=>s.jsx(rs,{children:s.jsx(ht,{children:s.jsx(Ft,{children:s.jsxs(fo,{children:[s.jsx(rn,{children:s.jsx("h1",{children:e})}),s.jsx(rn,{children:s.jsx("p",{children:t})})]})})})});var uo={},Nn;function va(){return Nn||(Nn=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",o="plus",n=448,r=512,a=[10133,61543,"add"],i="2b",l="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z";e.definition={prefix:t,iconName:o,icon:[n,r,a,i,l]},e.faPlus=e.definition,e.prefix=t,e.iconName=o,e.width=n,e.height=r,e.ligatures=a,e.unicode=i,e.svgPathData=l,e.aliases=a})(uo)),uo}var Sa=va();const wa=e=>{const{t}=we();return s.jsxs(Zs,{...e,title:t("createSession"),to:"/erstellen/session",children:[s.jsx(ae,{icon:Sa.faPlus}),s.jsx("span",{children:t("boards.actions.create-board")})]})},ya=A.div.withConfig({displayName:"MultiEmailInput__EmailInputContainer",componentId:"sc-1w073xi-0"})(["border:1px solid lightgrey;padding:5px;border-radius:4px;max-height:300px;overflow-y:auto;"]),Ca=A.div.withConfig({displayName:"MultiEmailInput__EmailList",componentId:"sc-1w073xi-1"})(["display:flex;flex-wrap:wrap;align-items:flex-start;"]),Ia=A.span.withConfig({displayName:"MultiEmailInput__EmailTag",componentId:"sc-1w073xi-2"})(["background:lightgrey;border-radius:4px;padding:5px 10px;margin-right:5px;margin-bottom:3px;margin-top:3px;display:flex;align-items:center;height:25px;
1",""],({$invalid:e})=>e&&`
2      background-color: ${q.colors.red};
3      color: white;
4    `),Ta=A.input.withConfig({displayName:"MultiEmailInput__EmailInput",componentId:"sc-1w073xi-3"})(["background:transparent;flex:1;border:none;outline:none;padding:5px;height:25px;margin-bottom:0 !important;"]),ho=e=>/\S+@\S+\.\S+/.test(e);function ja({value:e=[],onChange:t,invalidEmails:o=[]}){const[n,r]=R.useState(""),{t:a}=we(),i=R.useRef(null),l=R.useCallback(u=>{r(u.target.value)},[r]),c=R.useCallback(u=>{typeof u=="string"&&(u=[u]),u.length&&t([...new Set([...e,...u])])},[e,t]),d=R.useCallback(u=>{t(u?e.filter(S=>S!==u):e.slice(0,-1))},[e,t]),f=R.useCallback(u=>{d(u),r(u),i.current?.focus()},[d]),b=R.useCallback(u=>{if(u.key==="Backspace"&&n==="")d();else if(u.target.value&&(u.key==="Enter"||u.key===",")){u.preventDefault();const S=u.target.value.trim();ho(S)&&(c(S),r(""))}},[r,c,d,n]),x=R.useCallback(u=>{u.preventDefault();const h=u.clipboardData.getData("text/plain").split(/[\r\n\t]+/).map(m=>m.trim()).filter(ho);c(h),r("")},[r,c]),v=R.useCallback(()=>{const u=n.trim();ho(u)&&!e.includes(u)&&(c(u),r(""))},[n,r,c]);return s.jsx(ya,{children:s.jsxs(Ca,{children:[(e??[]).map(u=>s.jsxs(Ia,{$invalid:o.includes(u),children:[u,s.jsx(ae,{style:{cursor:"pointer",color:"black",marginLeft:"0.3rem"},onClick:()=>f(u),icon:er}),s.jsx(ae,{style:{cursor:"pointer",color:"black",marginLeft:"0.3rem"},onClick:()=>d(u),icon:tr})]},u)),s.jsx(Ta,{type:"text",value:n,onChange:l,onKeyDown:b,placeholder:a("emailsSharedSession"),onPaste:x,onBlur:v,ref:i})]})})}function Et(e){const t=e.userList?.includes("Coach")??!1,o=e.access==="viewer"||e.access==="self-coaching",n=e.access==="self-coaching"?"boards.values.access.self-coaching-note":"boards.values.access.viewer-note";return{accessHelpKey:n,isOpen:e.access!=="closed",isRunning:t,locked:o,shareHelpKey:o?n:e.canShare?void 0:"boards.share-board.disabled-note"}}function ka(){const{t:e}=we(),{open:t}=To(),o=jo(),{getAccessTokenSilently:n}=Ut(),{user:r,tenant:a}=It.useContainer(),{updateSessionById:i,updateSessions:l}=Fn.useContainer(),c=or(),[d,f]=R.useState([]),b=R.useRef(d);b.current=d;const[x]=Ke(jr),[v]=Ke(kr),[u]=Ke(Rr),[S]=Ke(Hr),[g]=Ke(Er),[h]=Ke(zr),[m]=Ke(Br),w=R.useCallback(_=>t(s.jsx(an,{header:e("failureHeader"),children:_})),[t,e]),z=R.useCallback(async _=>{const W=_.access==="closed"?"open":"closed",{data:Z}=await x({variables:{data:{id:_.id,name:_.name,access:W}}});if(!Z?.createOrUpdateSession){w(e("changedShareFailureText"));return}Ye.success(e("changedShareSuccessText")),await i(_.id,{..._,access:W})},[x,w,e,i]),j=R.useCallback(async _=>{const{data:W}=await v({variables:{id:_.id}});W?.endSession||w(e("endSessionFailureText"))},[v,w,e]),O=R.useCallback(async(_,W=!1)=>{if(!Vn(a)){t(s.jsx(_t,{header:e("failureHeader"),confirm:e("orderNow"),onConfirm:()=>o.push("/konto"),children:e("noFreeTimeNoAbo")}));return}const Z=await n(),P=await fetch(nt.getCodeAuthorized,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Z}`},body:JSON.stringify({id:_.id,coachId:r.user_id,state:nr(32),name:"Coach"})});c(await P.json(),W?{conference:!0}:{})},[n,o,t,c,e,a,r.user_id]),p=R.useCallback(_=>{sr(nt.baseBoardLoginUrl(_.userList?.includes("Coach")?"Coach":"User",_.id)),Ye.success(e("boards.copy-link.success"))},[e]),y=R.useCallback(_=>t(s.jsx(_t,{header:e("boards.duplicate-board.header"),onConfirm:async()=>{const{data:W}=await u({variables:{id:_.id}});if(!W?.duplicateSession){w(e("duplicateSessionFailureText"));return}Ye.success(e("boards.duplicate-board.success")),await l()},children:e("boards.duplicate-board.text")})),[u,t,w,e,l]),T=R.useCallback(_=>t(s.jsx(_t,{header:e("boards.delete-board.header"),confirm:e("boards.delete-board.confirm"),variant:"danger",onConfirm:async()=>{const{data:W}=await S({variables:{id:_.id}});if(!W?.destroySession){w(e("destroySessionFailureText"));return}await i(_.id,void 0)},children:e("boards.delete-board.text")})),[S,t,w,e,i]),B=R.useCallback(_=>o.push(`/bearbeiten/session/${_.id}`),[o]),E=R.useCallback(_=>{f([]),t(s.jsx(Zt,{header:e("boards.share-board.header"),confirm:e("boards.share-board.confirm"),onSubmit:async({emails:W})=>{f([]);const{data:Z}=await g({variables:{fromUserId:r?.user_id,toUserEmails:W,sessionId:_.id}});if(Z?.shareSession?.unresolvedEmails&&!Z.shareSession.success)return f(Z.shareSession.unresolvedEmails),{emails:e("boards.share-board.errors.invalid-emails")};Z?.shareSession?.success&&Ye.success(e("shareSessionSuccessText"))},children:s.jsx(eo,{name:"emails",label:e("boards.fields.share-to-emails"),initialValue:[],type:"custom",children:({input:W})=>
4s.jsx(ja,{...W,invalidEmails:b.current})})}))},[t,g,e,r]),U=R.useCallback(_=>t(s.jsx(Zt,{header:e("boards.set-password.header"),confirm:e("boards.set-password.confirm"),onSubmit:async({password:W})=>{try{const{data:Z}=await h({variables:{id:_.id,password:W}});Z?.setSessionPassword?.success?Ye.success(e("newPasswordSavedSuccessText")):w(e("newPasswordSavedFailureText"))}catch{w(e("newPasswordSavedFailureText"))}},children:s.jsx(eo,{name:"password",type:"password",label:e("boards.fields.new-password"),required:!0,autoFocus:!0,placeholder:"**********",validate:ln(dn(3),cn(25))})})),[t,h,w,e]),G=R.useCallback(_=>t(s.jsxs(an,{header:e("boards.show-notes.header"),confirm:e("close"),children:[_.sharedBy&&s.jsxs("p",{children:[s.jsxs("b",{children:[e("boards.fields.shared-by"),":"]})," ",_.sharedBy.name," ",_.sharedBy.family_name," (",_.sharedBy.email,")"]}),s.jsx($t,{children:s.jsx("div",{style:{whiteSpace:"pre-line",wordBreak:"break-word"},children:_.note})})]})),[t,e]),N=R.useCallback(_=>t(s.jsx(_t,{header:e("boards.save-as-template.header"),onConfirm:async()=>{const W=await n(),Z=await fetch(`${nt.baseBackendUrl}/rest/pt/user/${r?.user_id}/templates/from-session/${_.id}`,{method:"POST",headers:{Authorization:`Bearer ${W}`}});Ye[Z.ok?"success":"error"](e(Z.ok?"boards.save-as-template.success":"boards.save-as-template.failure"))},children:e("boards.save-as-template.confirm")})),[n,t,e,r]),Q=R.useCallback(_=>t(s.jsx(Zt,{header:e("boards.accept-board.header"),confirm:e("boards.accept-board.confirm"),onSubmit:async({password:W})=>{try{const{data:Z}=await m({variables:{sessionId:_.id,password:W}});Z?.acceptSharedSession?.success?Ye.success(e("newPasswordSavedSuccessText")):w(e("acceptSessionFailureText"))}catch{w(e("acceptSessionFailureText"))}},children:s.jsx(eo,{name:"password",type:"password",label:e("boards.fields.new-password"),required:!0,autoFocus:!0,placeholder:"**********",validate:ln(dn(3),cn(25))})})),[m,t,w,e]);return R.useMemo(()=>({accept:Q,copyLink:p,delete:T,duplicate:y,edit:B,open:O,saveAsTemplate:N,setPassword:U,share:E,showNotes:G,stop:j,toggleAccess:z}),[Q,p,T,y,B,O,N,U,E,G,j,z])}const Ra=k.memo(function({actions:t,conferenceEnabled:o,item:n,onIndexClick:r,thumbnailStore:a}){const{t:i}=we(),{accessHelpKey:l,isOpen:c,isRunning:d,locked:f,shareHelpKey:b}=Et(n),x=!d&&n.hasActiveConference,v=f?l:"boards.actions.set-password",u=f||!n.canShare,S=i(b||"boards.actions.share-board");return s.jsxs(Ks,{as:"article",id:n.id,$highlight:n.active,"data-session-card-container":!0,children:[s.jsxs("section",{className:"info",children:[s.jsx(Xo,{item:n,size:"card",thumbnailStore:a,onClick:()=>t.open(n)}),s.jsxs("div",{className:"session-card__content",children:[n.tags?.length?s.jsx(Ma,{children:n.tags.map(g=>s.jsx(Oa,{href:"#",onClick:h=>{h.preventDefault(),r?.(g)},children:g},g))}):n.marker?s.jsx(Aa,{href:"#",onClick:g=>{g.preventDefault(),r?.(n.marker)},children:n.marker}):null,s.jsx(Ea,{item:n}),n.description&&s.jsx($t,{children:s.jsx(Fs,{children:n.description})})]}),s.jsx(po,{disabled:x,help:x?i("conference.activeSessionWithoutConferenceDisabled"):void 0,children:s.jsx(At,{icon:d?ko:Ro,$variant:d?"secondary":void 0,disabled:x,onClick:()=>d?t.stop(n):t.open(n),children:i(d?"boards.actions.stop-board":"boards.actions.start-board")})}),s.jsxs(Wa,{children:[o&&s.jsx(At,{icon:rr,disabled:d,onClick:()=>t.open(n,!0),children:i("conference.start")}),s.jsx(At,{icon:Wn,$outline:!0,onClick:()=>t.copyLink(n),children:i("boards.actions.copy-link")})]})]}),s.jsxs("aside",{className:"side",children:[s.jsxs(Ws,{children:[s.jsx(La,{item:n}),f?s.jsx(_a,{item:n}):s.jsx(Ba,{item:n,isOpen:c,onToggle:()=>t.toggleAccess(n)})]}),s.jsx(Pa,{item:n}),s.jsxs(Us,{children:[(n.note||n.sharedBy)&&s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":i("boards.actions.show-notes"),icon:Ho,onClick:()=>t.showNotes(n),children:i("boards.actions.show-notes")}),s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":i("boards.actions.save-as-template"),icon:Un,onClick:()=>t.saveAsTemplate(n),children:i("boards.actions.save-as-template")})]}),s.jsxs(Gs,{children:[s.jsx(Pe,{as:ir,"data-help-collapsed-only":!0,"data-help":i("boards.actions.edit-board"),icon:Gn,to:`/bearbeiten/session/${n.id}`,children:i("boards.actions.edit-board")}),s.jsx(po,{collapsedOnly:!f||void 0,disabled:f,help:i(v),children:s.jsx(Pe,{disabled:f,"data-help":f?void 0:i(v),"data-help-collapsed-only":!f||void 0,icon:$n,onClick:()=>!f&&t.setPassword(n),children:i("boards.actions.set-password")})}),s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":i("boards.actions.duplicate-board"),icon:Os.faClone,onClick:()=>t.duplicate(n),children:i("boards.actions.duplicate-board")}),s.jsx(po,{collapsedOnly:!u||void 0,disabled:u,help:S,children:s.jsx(Pe,{disabled:u,"data-help":u?void 0:S,"data-help-collapsed-only":!u||void 0,icon:Kn,onClick:()=>!u&&t.share(n),children:i("boards.actions.share-board")})}),s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":i("boards.actions.delete-board"),icon:Eo,onClick:()=>t.delete(n),children:i("boards.actions.delete-board")})]})]})]})}),Ha=k.memo(function({actions:t,item:o,thumbnailStore:n}){const{t:r}=we(),{isRunning:a}=Et(o);return s.jsxs(Ks,{as:"article",id:o.id,$highlight:!0,"data-session-card-container":!0,children:[s.jsxs("section",{className:"info",children:[s.jsx(Xo,{item:o,size:"card",thumbnailStore:n,onClick:()=>t.open(o)}),s.jsxs("div",{className:"session-card__content",children:[s.jsx("h2",{style:{wordBreak:"break-all"},children:o.name}),o.description&&s.jsx($t,{children:s.jsx(Fs,{children:o.description})})]}),s.jsx(At,{icon:a?ko:Ro,onClick:()=>a?t.stop(o):t.open(o),children:r(a?"boards.actions.stop-board":"boards.actions.start-board")})]}),s.jsxs("aside",{className:"side",children:[s.jsx(Na,{item:o}),(o.note||o.sharedBy)&&s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":r("boards.actions.show-notes"),icon:Ho,onClick:()=>t.showNotes(o),children:r("boards.actions.show-notes")}),s.jsxs(Gs,{children:[s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":r("boards.actions.accept-board"),icon:Un,onClick:()=>t.accept(o),children:r("boards.actions.accept-board")}),s.jsx(Pe,{"data-help-collapsed-only":!0,"data-help":r("boards.actions.delete-board"),icon:Eo,onClick:()=>t.delete(o),children:r("boards.actions.delete-board")})]})]})]})}),Mn=A.h2.withConfig({displayName:"Session__StyledSessionTitle",componentId:"sc-1bjozcv-0"})(["word-break:break-all;"]);function Ea({item:e}
4){return e.access!=="self-coaching"?s.jsx(Mn,{children:e.name}):s.jsxs(Da,{children:[s.jsx(za,{aiPersonaKey:e.aiPersonaKey}),s.jsx(Mn,{children:e.name})]})}function za({aiPersonaKey:e}){return e==="clarisa"?s.jsx(Va,{children:"Clarisa"}):s.jsx(Fa,{children:"Clavid"})}function Xo({item:e,size:t,thumbnailStore:o,onClick:n}){const r=e.thumbnailPath?`https://systembrett-prd--cdn.fra1.cdn.digitaloceanspaces.com/${e.thumbnailPath}`:void 0,a=t==="card"?256:48,i=R.useCallback(f=>o?.subscribe(e.id,f)||(()=>{}),[e.id,o]),l=R.useCallback(()=>o?.getSource(e.id),[e.id,o]),c=R.useSyncExternalStore(i,l,l),d=r||c;return s.jsx(Ga,{ref:r?void 0:o?.register(e.id),$size:t,children:s.jsx(br,{onClick:n,className:"thumbnail-playable",children:d?s.jsx($a,{src:d,alt:"thumbnail",width:a,height:a,loading:"lazy",decoding:"async"}):s.jsxs(Ka,{$size:t,children:[s.jsx(ae,{icon:ar}),t==="card"&&s.jsx("span",{children:s.jsx(Tt,{i18nKey:"boards.thumbnail.placeholder",components:{b:s.jsx("strong",{})}})})]})})})}function Ba({item:e,isOpen:t,onToggle:o}){const{t:n}=we();return s.jsxs(Jo,{children:[s.jsxs(lr,{htmlFor:`access-${e.id}`,children:[s.jsx(ae,{"data-help":n(t?"boards.values.access.open":"boards.values.access.blocked"),icon:t?Xn:zo})," ",s.jsx("span",{children:n(t?"boards.values.access.open":"boards.values.access.blocked")})]}),s.jsxs(Jn,{$size:"large",children:[s.jsx("input",{id:`access-${e.id}`,type:"checkbox",checked:t,onChange:o}),s.jsx("span",{})]})]})}function _a({item:e}){const{t}=we(),{accessHelpKey:o}=Et(e);return s.jsxs(Jo,{"data-help":t(o),children:[s.jsx(ae,{icon:zo}),s.jsx("span",{children:t(e.access==="self-coaching"?"boards.values.access.self-coaching":"boards.values.access.viewer")})]})}function La({item:e}){const{t}=we();return s.jsxs(Vs,{children:[s.jsx(ae,{"data-help":t("tooltip.viewerMode"),icon:qn,color:e.settings?.restrictAll?void 0:"#C0C0C0"}),s.jsx(ae,{"data-help":t("tooltip.helicopterLock"),icon:Qn,color:e.settings?.hasHelicopterViewLocked?void 0:"#C0C0C0"})]})}function Pa({item:e}){return s.jsx("section",{children:s.jsx(As,{item:e})})}function As({item:e}){const{t}=we(),o=st(e.lastSessionUpdate??e.updatedAt);return s.jsxs(s.Fragment,{children:[s.jsx(mt,{children:s.jsxs("b",{children:[t("boards.fields.time-spent"),":"," ",Zn(+(e.timeSpend||0),{prettyAddSeconds:!1}).pretty]})}),s.jsx(mt,{children:t("boards.fields.updated-at",{date:o.format("DD.MM.YYYY"),time:o.format("HH:mm")})}),s.jsx(mt,{children:t("boards.fields.created-at",{date:st(e.createdAt).format("DD.MM.YYYY"),time:st(e.createdAt).format("HH:mm")})})]})}function Na({item:e}){const{t}=we();return e.sharedBy?s.jsxs("section",{children:[s.jsx(mt,{children:s.jsxs("b",{children:[t("boards.fields.shared-by"),": ",e.sharedBy.name," ",e.sharedBy.family_name,s.jsx("br",{}),"(",e.sharedBy.email,")"]})}),s.jsx(mt,{children:t("boards.fields.shared-at",{date:st(e.createdAt).format("DD.MM.YYYY"),time:st(e.createdAt).format("HH:mm")})})]}):null}function At({icon:e,children:t,...o}){return s.jsxs(ot,{...o,children:[s.jsx(ae,{icon:e,style:{marginRight:"1rem"}}),t]})}function Pe({icon:e,children:t,...o}){return s.jsxs($s,{...o,children:[s.jsx(ae,{icon:e}),s.jsx("span",{children:t})]})}function po({children:e,collapsedOnly:t,disabled:o,help:n}){return!o||!n?s.jsx(s.Fragment,{children:e}):s.jsx(Ua,{"data-help":n,"data-help-collapsed-only":t||void 0,tabIndex:0,children:e})}const Ma=A.div.withConfig({displayName:"Session__StyledTagsContainer",componentId:"sc-1bjozcv-1"})(["display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:0.5rem;"]),Oa=A.a.withConfig({displayName:"Session__StyledTag",componentId:"sc-1bjozcv-2"})(["",";",";display:inline-block;padding:0.25rem 0.5rem;background:",";color:",";border-radius:0.25rem;text-decoration:none;"],q.fonts.openSansNormal,q.snippets.fontSize.small,q.colors.contrast,q.colors.white),Aa=A.a.withConfig({displayName:"Session__StyledIndex",componentId:"sc-1bjozcv-3"})(["",";display:block;margin-bottom:0.5rem;color:",";"],q.fonts.openSansNormal,q.colors.brown),Da=A.div.withConfig({displayName:"Session__StyledSelfCoachingSessionTitle",componentId:"sc-1bjozcv-4"})(["display:flex;align-items:center;flex-wrap:wrap;gap:0.5rem;
4"]),Ds=A.span.withConfig({displayName:"Session__CoachBadge",componentId:"sc-1bjozcv-5"})(["",";",";display:inline-flex;padding:0.25rem 0.5rem;border-radius:0.25rem;line-height:1;"],q.fonts.openSansBold,q.snippets.fontSize.small);var Fa=A(Ds).withConfig({displayName:"Session___StyledCoachBadge2",componentId:"sc-1bjozcv-6"})(["background:#d9e5e9;color:#1f4a5c;"]),Va=A(Ds).withConfig({displayName:"Session___StyledCoachBadge",componentId:"sc-1bjozcv-7"})(["background:#f4ded5;color:#7d3c27;"]);const Fs=A.div.withConfig({displayName:"Session__TextBlock",componentId:"sc-1bjozcv-8"})(["word-break:break-word;white-space:pre-line;"]),mt=A.span.withConfig({displayName:"Session__StyledMetaInfo",componentId:"sc-1bjozcv-9"})(["",";display:flex;align-items:center;white-space:nowrap;"],q.snippets.fontSize.medium),Jo=A.div.withConfig({displayName:"Session__StyledEnabling",componentId:"sc-1bjozcv-10"})(["display:flex;gap:1rem;align-items:center;label{display:flex;gap:1rem;align-items:center;white-space:nowrap;}"]),Vs=A.div.withConfig({displayName:"Session__SettingsIcons",componentId:"sc-1bjozcv-11"})(["display:flex;gap:1rem;"]),Wa=A.div.withConfig({displayName:"Session__SessionActionsBar",componentId:"sc-1bjozcv-12"})(["grid-area:actions;display:flex;flex-wrap:wrap;gap:1rem;"]),Ws=A.div.withConfig({displayName:"Session__SessionSideHeader",componentId:"sc-1bjozcv-13"})(["display:flex;align-items:center;gap:1rem;justify-content:space-between;"]),Us=A.div.withConfig({displayName:"Session__SessionNavGroup",componentId:"sc-1bjozcv-14"})(["display:flex;flex-direction:column;gap:0.5rem;"]),Gs=A(Us).withConfig({displayName:"Session__SessionNavFooter",componentId:"sc-1bjozcv-15"})(["flex-direction:column-reverse;margin-top:auto;"]),$s=A.button.withConfig({displayName:"Session__NavAction",componentId:"sc-1bjozcv-16"})(["",";position:relative;display:flex;gap:1rem;align-items:center;justify-content:center;min-height:1.4rem;margin:0;padding:0;border:none;background:transparent;color:",';text-decoration:none;cursor:pointer;& >:nth-child(2){flex-grow:1;}&:after{content:"";display:inline-block;position:absolute;left:0;bottom:-5px;width:100%;border-top:2px solid ',";transform:scaleX(0);transition:transform 0.35s cubic-bezier(0.52,0.01,0.16,1),border-color 0.35s cubic-bezier(0.52,0.01,0.16,1);transform-origin:0 0;}&:hover:after{transform:scaleX(1);}&:disabled{cursor:not-allowed;opacity:0.6;}"],q.fonts.openSansBold,q.colors.font.primary,q.colors.contrast),Ua=A.span.withConfig({displayName:"Session__HelpWrapper",componentId:"sc-1bjozcv-17"})(["display:inline-block;"]),Ks=A(Ft).withConfig({displayName:"Session__StyledSession",componentId:"sc-1bjozcv-18"})(["display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1rem;overflow:initial;padding:1.5rem;"," & > .info{display:grid;grid-template-columns:256px minmax(0,1fr);grid-template-rows:1fr auto;grid-template-areas:'thumb content' 'play actions';gap:1rem;margin-right:2rem;}& > .side{display:flex;flex-direction:column;gap:1rem;background-color:","22;margin:-1.5rem;padding:1.5rem;}& button{text-align:left;}@container session-card (max-width:899px){grid-template-columns:minmax(0,1fr) 3rem;gap:0.75rem;& > .side{margin-left:0;min-width:0;}& > .side > section{display:none;}","{flex-direction:column-reverse;justify-content:center;gap:0.8rem;}","{label > span,& > span,label ~ *{display:none;}}","{flex-direction:column;align-items:center;gap:0.8rem;}"," > span{display:none;}}"],({$highlight:e})=>e&&Yn(["background:#eff0f5;"]),q.colors.brandPrimary,Ws,Jo,Vs,$s),Ga=A.div.withConfig({displayName:"Session__ThumbnailBox",componentId:"sc-1bjozcv-19"})(["grid-area:thumb;width:",";height:",";.thumbnail-playable{width:100%;height:100%;}@container session-card (max-width:899px){","}"],({$size:e})=>e==="card"?"256px":"48px",({$size:e})=>e==="card"?"256px":"48px",({$size:e})=>e==="card"&&Yn(["width:min(256px,100%);"])),$a=A.img.withConfig({displayName:"Session__ThumbnailImage",componentId:"sc-1bjozcv-20"})(["display:block;width:100%;height:100%;object-fit:cover;border-radius:5px;
4"]),Ka=A.div.withConfig({displayName:"Session__ThumbnailPlaceholder",componentId:"sc-1bjozcv-21"})(["width:100%;height:100%;border-radius:5px;background:#f7f8fa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;color:",";svg{font-size:",";}span{color:",";text-align:center;padding:0 1rem;font-size:0.875rem;}"],q.colors.gray,({$size:e})=>e==="card"?"4rem":"1.25rem",q.colors.midgray),Ya=A.span.withConfig({displayName:"BaseDiscountBanner__StyledUpper",componentId:"jz22ns-0"})(["text-transform:uppercase;display:contents;"]),qa=e=>{const{buttonProps:t,className:o,children:n,onClick:r}=e,{t:a}=we();return s.jsx(jt,{className:o,text:s.jsxs(s.Fragment,{children:[n,s.jsx("span",{children:s.jsx(Tt,{i18nKey:"discountText",components:{upper:s.jsx(Ya,{}),br:s.jsx("br",{})}})})]}),extraInfo:s.jsx(Gt,{onClick:r,...t,children:a("discountButton")})})},Qa=()=>{const{tenant:e}=It.useContainer(),{abos:t}=es.useContainer(),{startSubscriptionPayment:o}=ts.useContainer(),n=vr(t.month.abo?.price||0,t.month.discountPrice||0);return os(e)||!n?null:s.jsx(qa,{onClick:()=>o("month"),children:s.jsx(Sr,{price:t.month.shownPrice||0,percent:n})})},Xa=()=>{const{tenant:e}=It.useContainer(),{startSubscriptionPayment:t}=ts.useContainer(),{t:o}=we();return!e||!is(e)?null:s.jsx(jt,{text:s.jsx("span",{children:s.jsx(Tt,{i18nKey:"restartSubscriptionText",values:{date:st(e?.stripeSubscriptionCancelAt||"").format("DD.MM.YYYY").toString()},components:{upper:s.jsx(wr,{}),br:s.jsx("br",{}),small:s.jsx("small",{})}})}),extraInfo:s.jsx(Gt,{onClick:()=>t("month"),children:o("restartNow")})})},Ja=e=>os(e)&&e?.plan?.interval==="month",Za=()=>{const{tenant:e}=It.useContainer(),{abos:t}=es.useContainer(),{t:o}=we(),n=yr();return!e||is(e)||!Ja(e)?null:s.jsx(jt,{text:s.jsx("span",{children:s.jsx(Tt,{i18nKey:"upgradeSubscriptionText",values:{price:t.year.text.price},components:{br:s.jsx("br",{})}})}),extraInfo:s.jsx(Gt,{as:ns,$size:"big",action:()=>n.open("subscription-upgrade"),children:o("upgradeNow")})})};function el(){const{getAccessTokenSilently:e}=Ut(),t=cr(["bannerDefinition"],async()=>{const o=await e(),n=await fetch(`${nt.baseBackendUrl}/rest/pt/promotions`,{headers:{Authorization:`Bearer ${o}`},method:"GET"});if(!n.ok)throw new Error("Failed to fetch banner definition");return n.json()});return t.isLoading?null:t.data?.key==="promotion-pool"?s.jsx(tl,{...t.data}):t.data?.key==="promotion-flat"?s.jsx(ol,{...t.data}):s.jsxs(s.Fragment,{children:[s.jsx(Qa,{}),s.jsx(Xa,{}),s.jsx(Za,{})]})}function tl({text:e,bgColor:t,fgColor:o,callToAction:n}){const r=Ys("promotion-pool"),{search:a,pathname:i}=Bo(),l=jo();return R.useEffect(()=>{const c=new URLSearchParams(a);c.get("target")==="checkout-promotion"&&(c.delete("target"),l.replace(`${i}?${c.toString()}`),r.mutate())},[]),s.jsx(jt,{style:{backgroundColor:t,color:o},text:e,extraInfo:s.jsx(Gt,{style:{backgroundColor:n.bgColor,color:n.fgColor},onClick:()=>r.mutate(),children:n.text})})}function ol({text:e,bgColor:t,fgColor:o,price:n,callToAction:r}){const a=Ys("promotion-flat"),i=To();async function l(){i.open(s.jsx(sl,{priceDetails:n,onConfirm:a.mutateAsync}))}const{search:c,pathname:d}=Bo(),f=jo();return R.useEffect(()=>{const b=new URLSearchParams(c);b.get("target")==="checkout-promotion"&&(b.delete("target"),f.replace(`${d}?${b.toString()}`),l())},[]),s.jsx(jt,{style:{backgroundColor:t,color:o},text:e,extraInfo:s.jsx(ot,{$size:"big",style:{backgroundColor:r.bgColor,color:r.fgColor},onClick:l,children:r.text})})}var nl=A("div").withConfig({displayName:"NewPromotionBanner___StyledDiv",componentId:"mmn67k-0"})(["white-space:pre-line;text-align:center;padding:1rem;& > h2{margin-block-start:0;font-size:1.1rem;font-weight:bold;}"]);function sl({priceDetails:e,onConfirm:t}){const{t:o}=we(),{close:n}=To();async function r(){await t?.(),n()}return s.jsxs(ur,{header:o("checkout.upgrade-subscription.header"),footer:null,children:[s.jsx(il,{onClick:()=>n(),children:s.jsx(ae,{icon:ss})}),s.jsx(nl,{children:s.jsx(Tt,{i18nKey:"checkout.upgrade-subscription.description",values:{amountDue:to(e.amountDue/100,!0),amountBeforeDiscount:to(e.amountBeforeDiscount/100,!0),discountAmount:to(e.discountAmount/100,!0)},components:{header:s.jsx("h2",{}),bold:s.jsx("strong",{}),"call-to-action":s.jsx(rl,{onClick:()=>r()})}})})]})}function rl({onClick:e,children:t}
4){return s.jsx(ns,{autoFocus:!0,type:"button",action:e,style:{display:"inline-block",marginBlock:"1rem"},children:t})}const il=A.button.withConfig({displayName:"NewPromotionBanner__StyledCloseButton",componentId:"mmn67k-1"})(["background:",";border:0;border-radius:",";position:absolute;top:0;right:0;position:absolute;top:25px;right:1rem;width:25px;height:25px;transform:translateY(-50%);cursor:pointer;&:hover{background:",";}svg{color:white;}"],q.colors.button.danger,q.metrics.borderRadius,q.colors.button.dangerHover);function Ys(e){const{getAccessTokenSilently:t}=Ut();return dr(async()=>{const o=await t(),n=await fetch(`${nt.baseBackendUrl}/rest/pt/checkout${e?`?promotion=${e}`:""}`,{headers:{Authorization:`Bearer ${o}`},method:"GET"});if(!n.ok)throw new Error("Failed to fetch checkout session");return n.json()},{onSuccess:o=>{o.url&&(window.location.href=o.url)},onError:o=>{console.error("Error fetching checkout session:",o)}})}function Ul(){const{sessions:e,sharedSessions:t,loading:o,error:n}=Fn.useContainer(),{user:r,tenant:a}=It.useContainer(),{t:i}=we(),{hash:l}=Bo(),c=oo(no.SESSION_TABLE_VIEW,{user:r}),d=oo(no.CONFERENCE,{user:r}),f=oo(no.PREMIUM_CLUB,{user:r}),b=ka(),x=R.useRef(null),v=R.useRef(null),u=R.useRef(null),[S,g]=R.useState(localStorage.getItem("sessionTableSortingDirection")||"desc"),[h,m]=R.useState(localStorage.getItem("sessionTableSorting")||"createdAt"),[w,z]=R.useState(localStorage.getItem("sessionTableSearchQuery")||""),[j,O]=R.useState(()=>JSON.parse(localStorage.getItem("sessionTableTagFilters")||"[]")),[p,y]=R.useState(localStorage.getItem("sessionTableViewMode")||"card"),[T,B]=R.useState(!1),E=bl(),U=R.useMemo(()=>e.map(P=>
4({session:P,haystack:[P.name,P.description,P.marker,P.note,...P.tags||[],P.sharedBy?.name,P.sharedBy?.family_name,P.sharedBy?.email].filter(Boolean).join(`
5`).toLowerCase(),tags:P.tags||[],marker:P.marker||""})),[e]),G=R.useMemo(()=>{const P=new Map;return e.forEach(D=>D.tags?.forEach(se=>P.set(se,(P.get(se)||0)+1))),Array.from(P,([D,se])=>({tag:D,count:se})).sort((D,se)=>se.count-D.count)},[e]),N=R.useMemo(()=>{const P=w.toLowerCase();return U.filter(({haystack:D})=>!P||D.includes(P)).filter(({marker:D,tags:se})=>j.every(ye=>se.includes(ye)||D===ye)).map(({session:D})=>D).sort((D,se)=>{const ye=D[h],xe=se[h];return ye===xe?0:(ye>xe?1:-1)*(S==="asc"?1:-1)})},[U,w,j,h,S]);R.useEffect(()=>{if(!l)return;const P=N.findIndex(ye=>ye.id===l.replace("#",""));if(P===-1)return;const D=-(document.getElementById("header")?.offsetHeight||0);(c&&p==="table"?u:v).current?.scrollToIndex({index:P,align:"start",offset:D})},[l,c,p,N]);const Q=R.useCallback(P=>{O(P),localStorage.setItem("sessionTableTagFilters",JSON.stringify(P))},[]),_=R.useCallback(P=>{O(D=>{if(D.includes(P))return D;const se=[...D,P];return localStorage.setItem("sessionTableTagFilters",JSON.stringify(se)),se})},[]),W=R.useCallback(P=>{z(P),localStorage.setItem("sessionTableSearchQuery",P)},[]),Z=R.useCallback(P=>{y(P),localStorage.setItem("sessionTableViewMode",P)},[]);return n?s.jsx(ht,{children:s.jsx(ba,{header:i("errorHeader"),message:i("errorTryAgain")})}):o?s.jsx(ht,{children:s.jsx(hr,{})}):!Vn(a)&&e.length===0?s.jsx(rs,{children:s.jsx(ht,{children:s.jsx(Ft,{children:s.jsxs(fo,{children:[s.jsx("h1",{children:i("noFreeTimeNoAbo")}),f?s.jsx(Cr,{}):s.jsx(Ir,{})]})})})}):s.jsxs(s.Fragment,{children:[s.jsxs(vl,{id:"header",children:[s.jsx("div",{}),s.jsx(Tr,{redirectTo:"/sessions"}),s.jsxs("div",{children:[s.jsxs(Sl,{autoComplete:"off",onSubmit:P=>P.preventDefault(),children:[s.jsxs(mo,{value:h,onChange:P=>{const D=P.target.value;m(D),localStorage.setItem("sessionTableSorting",D)},children:[s.jsx("option",{value:"",disabled:!0,children:i("sortBy")}),s.jsx("option",{value:"name",children:i("title")}),s.jsxs("option",{value:"marker",children:[i("index")," (legacy)"]}),s.jsx("option",{value:"createdAt",children:i("createdAt")}),s.jsx("option",{value:"updatedAt",children:i("updatedAt")}),s.jsx("option",{value:"timeSpend",children:i("usedTime")})]}),s.jsxs(mo,{value:S,onChange:P=>{const D=P.target.value;g(D),localStorage.setItem("sessionTableSortingDirection",D)},children:[s.jsx("option",{value:"desc",children:i("descending")}),s.jsx("option",{value:"asc",children:i("ascending")})]}),s.jsxs(wl,{children:[s.jsx(_r,{value:j,onChange:Q,inputValue:w,onInputValueChange:W,allTags:G,placeholder:i("search")}),s.jsx(ot,{title:"Clear search",disabled:!w&&j.length===0,type:"button",onClick:()=>{W(""),Q([])},children:s.jsx(ae,{icon:ss})})]}),c&&s.jsxs(Cl,{children:[s.jsx(ot,{type:"button",title:i("boards.view.card"),onClick:()=>Z("card"),$variant:p==="card"?"primary":"secondary",children:s.jsx(ae,{icon:pr})}),s.jsx(ot,{type:"button",title:i("boards.view.table"),onClick:()=>Z("table"),$variant:p==="table"?"primary":"secondary",children:s.jsx(ae,{icon:fr})})]}),N.length!==e.length&&N.length>0&&s.jsx(yl,{children:i("entriesDisplayed",{count:N.length})})]}),s.jsx(wa,{style:{fontWeight:"600"},$variant:"contrast"})]}),s.jsx("div",{})]}),s.jsxs(Il,{ref:x,children:[s.jsx(el,{}),t.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs(Tl,{children:[s.jsx("h2",{children:i("youHaveSharedSessions")}),s.jsx(ot,{onClick:()=>B(P=>!P),children:i(T?"hideSharedSessions":"showSharedSessions")})]}),T&&s.jsx(qs,{children:t.map(P=>s.jsx("li",{children:s.jsx(Ha,{actions:b,item:P,thumbnailStore:E})},P.id))}),s.jsx("hr",{})]}),N.length===0&&s.jsx(Ft,{children:s.jsx(fo,{children:s.jsx("p",{children:!w&&j.length===0?i("youHaveNoSessionsText"):i("noSessionsFound",{search:w})})})}),c&&p==="table"?s.jsx(oa,{ref:u,components:pl,computeItemKey:(P,D)=>D.id,data:N,increaseViewportBy:{top:400,bottom:400},itemContent:(P,D)=>s.jsx(fl,{item:D,actions:b,onIndexClick:_,thumbnailStore:E}),useWindowScroll:!0}):s.jsx(Wi,{ref:v,components:hl,computeItemKey:(P,D)=>D.id,data:N,increaseViewportBy:{top:400,bottom:400},itemContent:(P,D)=>s.jsx(Ra,{actions:b,conferenceEnabled:d,item:D,onIndexClick:_,thumbnailStore:E}),useWindowScroll:!0}),s.jsx(xl,{rootRef:x})]})]})}const al=k.forwardRef(function({children:t,context:o,style:n,...r},a){return s.jsx(qs,{...r,ref:a,style:n,children:t})}),ll=k.forwardRef(function({children:t,context:o,item:n,style:r,...a},i){return s.jsx("li",{...a,ref:i,style:r,children:t})}),cl=k.forwardRef(function({children:t,context:o,style:n,...r},a){return s.jsx("tbody",{...r,ref:a,style:n,children:t})}),dl=k.forwardRef(function({children:t,context:o,item:n,style:r,...a},i){return s.jsx(kl,{...a,ref:i,id:n.id,"data-session-card-container":!0,style:r,children:t})});function ul({children:e,context:t,style:o}){return s.jsx(jl,{style:o,children:e})}const hl={Item:ll,List:al},pl={Table:ul,TableBody:cl,TableRow:dl},fl=k.memo(function({item:t,actions:o,onIndexClick:n,thumbnailStore:r}){const{t:a}=we(),{accessHelpKey:i,isOpen:l,isRunning:c,locked:d}=Et(t),f=!c&&!!t.hasActiveConference;return s.jsxs(s.Fragment,{children:[s.jsx(Rl,{children:s.jsx(Xo,{item:t,size:"table",thumbnailStore:r,onClick:()=>o.open(t)})}),s.jsxs(An,{children:[s.jsx(Io,{disabled:f,help:f?a("conference.activeSessionWithoutConferenceDisabled"):void 0,children:s.jsx(Dn,{disabled:f,"data-help":f?void 0:a(c?"boards.actions.stop-board":"boards.actions.start-board"),onClick:()=>c?o.stop(t):o.open(t),children:s.jsx(ae,{icon:c?ko:Ro})})}),s.jsx(Dn,{title:a("boards.actions.copy-link"),onClick:()=>o.copyLink(t),children:s.jsx(ae,{icon:Wn})})]}),s.jsxs(Hl,{children:[s.jsx("h3",{children:t.name}),t.description&&s.jsx($t,{children:s.jsx("p",{children:t.description})}),t.tags?.length?s.jsx(El,{children:t.tags.map(b=>s.jsx(zl,{onClick:()=>n(b),children:b},b))}):t.marker&&s.jsx("span",{children:t.marker})]}),s.jsxs(Bl,{children:[s.jsxs(Nt,{"data-help":a("boards.fields.time-spent"),children:[s.jsx(ae,{icon:mr})," ",Zn(+(t.timeSpend||0),{prettyAddSeconds:!1}).pretty]}),s.jsx(Nt,{"data-help":a("tooltip.viewerMode"),children:s.jsx(ae,{icon:qn,color:t.settings?.restrictAll?void 0:"#C0C0C0"})}),s.jsx(Nt,{"data-help":a("tooltip.helicopterLock"),children:s.jsx(ae,{icon:Qn,color:t.settings?.hasHelicopterVie
5wLocked?void 0:"#C0C0C0"})})]}),s.jsxs(An,{children:[s.jsx(Nt,{"data-help":a(d?i:l?"boards.values.access.open":"boards.values.access.blocked"),children:s.jsx(ae,{icon:l?Xn:zo})}),!d&&s.jsxs(Jn,{$size:"small",children:[s.jsx("input",{id:`access-table-${t.id}`,type:"checkbox",checked:l,onChange:()=>o.toggleAccess(t)}),s.jsx("span",{})]}),s.jsx(gl,{item:t,actions:o})]})]})}),Dt=new Set;let On=!1;function ml(){On||(On=!0,document.addEventListener("pointerdown",e=>{e.target instanceof Node&&Dt.forEach(t=>{t.ref.current&&!t.ref.current.contains(e.target)&&t.close()})}))}function gl({item:e,actions:t}){const{t:o}=we(),n=R.useRef(null),{accessHelpKey:r,locked:a,shareHelpKey:i}=Et(e),l=a||!e.canShare,c=R.useCallback(()=>{n.current&&(n.current.open=!1)},[]),d=R.useCallback(f=>()=>{c(),f()},[c]);return R.useEffect(()=>{ml();const f=n.current;if(!f)return;const b={ref:n,close:c},x=()=>{f.open?Dt.add(b):Dt.delete(b)};return f.addEventListener("toggle",x),()=>{f.removeEventListener("toggle",x),Dt.delete(b)}},[c]),s.jsxs(Ll,{ref:n,children:[s.jsx("summary",{"aria-label":o("boards.actions.more"),children:s.jsx(ae,{icon:gr})}),s.jsxs(Pl,{children:[s.jsx(Nl,{children:s.jsx(As,{item:e})}),s.jsxs(tt,{onClick:d(()=>t.edit(e)),children:[s.jsx(ae,{icon:Gn}),o("boards.actions.edit-board")]}),s.jsxs(tt,{onClick:d(()=>t.duplicate(e)),children:[s.jsx(ae,{icon:Os.faClone}),o("boards.actions.duplicate-board")]}),s.jsx(Io,{disabled:l,help:i?o(i):void 0,children:s.jsxs(tt,{disabled:l,onClick:d(()=>t.share(e)),children:[s.jsx(ae,{icon:Kn}),o("boards.actions.share-board")]})}),s.jsx(Io,{disabled:a,help:a?o(r):void 0,children:s.jsxs(tt,{disabled:a,onClick:d(()=>t.setPassword(e)),children:[s.jsx(ae,{icon:$n}),o("boards.actions.set-password")]})}),(e.note||e.sharedBy)&&s.jsxs(tt,{onClick:d(()=>t.showNotes(e)),children:[s.jsx(ae,{icon:Ho}),o("boards.actions.show-notes")]}),s.jsxs(tt,{$danger:!0,onClick:d(()=>t.delete(e)),children:[s.jsx(ae,{icon:Eo}),o("boards.actions.delete-board")]})]})]})}function Io({children:e,disabled:t,help:o}){return!t||!o?s.jsx(s.Fragment,{children:e}):s.jsx(_l,{"data-help":o,tabIndex:0,children:e})}function xl({rootRef:e}){const[t,o]=R.useState(null);return R.useEffect(()=>{const n=e.current;if(!n)return;const r=d=>{const f=d instanceof Element?d.closest("[data-help]"):null;if(!f||!f.dataset.help)return;if(f.dataset.helpCollapsedOnly!==void 0){const x=f.closest("[data-session-card-container]");if(!x||x.getBoundingClientRect().width>=900)return}const b=f.getBoundingClientRect();o({help:f.dataset.help,left:Math.max(8,b.left+b.width/2),top:Math.max(8,b.top-8)})},a=d=>{const f=d.target instanceof Element?d.target.closest("[data-help]"):null;f&&d.relatedTarget instanceof Node&&f.contains(d.relatedTarget)||o(null)},i=d=>{d.key==="Escape"&&o(null)},l=d=>r(d.target),c=d=>r(d.target);return n.addEventListener("pointerover",l),n.addEventListener("focusin",c),n.addEventListener("pointerout",a),n.addEventListener("focusout",a),n.addEventListener("keydown",i),()=>{n.removeEventListener("pointerover",l),n.removeEventListener("focusin",c),n.removeEventListener("pointerout",a),n.removeEventListener("focusout",a),n.removeEventListener("keydown",i)}},[e]),t&&s.jsx(Ol,{role:"tooltip",style:{left:t.left,top:t.top},children:t.help},`${t.left},${t.top}`)}function bl(){const{getAccessTokenSilently:e}=Ut(),t=R.useRef(null),o=R.useRef(new Map),n=R.useRef(new Map),r=R.useRef(new Map),a=R.useRef(new Set),i=R.useRef(new Set),l=R.useRef(new Map),c=R.useRef(new Map),d=R.useCallback((u,S)=>{l.current.set(u,S),c.current.get(u)?.forEach(g=>g())},[]),f=R.useCallback(async u=>{try{const S=await e(),h=await(await fetch(`${nt.baseBackendUrl}/rest/pt/sessions/${u}/thumbnail`,{headers:{Authorization:`Bearer ${S}`}})).blob(),m=h.size?URL.createObjectURL(h):null;m&&i.current.add(m),d(u,m)}catch{d(u,null)}},[e,d]);R.useEffect(()=>{const u=new IntersectionObserver(S=>S.forEach(g=>{if(!g.isIntersecting)return;const h=o.current.get(g.target);u.unobserve(g.target),o.current.delete(g.target),h&&n.current.delete(h),h&&!a.current.has(h)&&(a.current.add(h),f(h))}));return t.current=u,o.current.forEach((S,g)=>u.observe(g)),()=>{u.disconnect(),i.current.forEach(S=>URL.revokeObjectURL(S))}},[f]);const b=R.useCallback(u=>{const S=r.current.get(u);if(S)return S;const g=h=>{const m=n.current.get(u);m&&m!==h&&(t.current?.unobserve(m),o.current.delete(m),n.current.delete(u)),h&&!a.current.has(u)&&(n.current.set(u,h),o.current.set(h,u),t.current?.observe(h))};return r.current.set(u,g),g},[]),x=R.useCallback(u=>l.current.get(u),[]),v=R.useCallback((u,S)=>{const g=c.current.get(u)||new Set;return g.add(S),c.current.set(u,g),()=>{g.delete(S),g.size===0&&c.current.delete(u)}},[]);return R.useMemo(()=>({getSource:x,register:b,subscribe:v}),[x,b,v])}const vl=A.header.withConfig({displayName:"SessionTable__Header",componentId:"sc-10eix9u-0"})(["position:sticky;top:0;height:",";background:",";z-index:",";display:grid;grid-template-columns:1fr minmax(0,",") 1fr;margin:0 -1.5rem;& >:nth-child(2){display:flex;align-items:center;padding:0 1.5rem;gap:1rem;}"],q.metrics.headerHeight,q.colors.background,q.zIndex.header,q.metrics.maxWidth),Sl=A.form.withConfig({displayName:"SessionTable__StyledSorting",componentId:"sc-10eix9u-1"})(["display:flex;justify-content:center;gap:",";flex:1;& > ","{max-width:170px;}"],q.metrics.smallMargin,mo),wl=A.div.withConfig({displayName:"SessionTable__StyledSearchGroup",componentId:"sc-10eix9u-2"})(["display:flex;flex:1;max-width:400px;"]),yl=A.span.withConfig({displayName:"SessionTable__StyledResultCount",componentId:"sc-10eix9u-3"})(["color:",";display:flex;align-items:center;white-space:nowrap;@media (max-width:1200px){display:none;}"],q.colors.midgray),Cl=A.div.withConfig({displayName:"SessionTable__ViewModeToggle",componentId:"sc-10eix9u-4"})(["display:flex;gap:0.5rem;"]),Il=A(ht).withConfig({displayName:"SessionTable__GridContainer",componentId:"sc-10eix9u-5"})(["display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem;"]),qs=A.ul.withConfig({displayName:"SessionTable__StyledSessionList",componentId:"sc-10eix9u-6"})(["list-style:none;padding:0;margin:0;display:grid;& > li{margin:0;container:session-card / inline-size;padding-block-end:1.5rem;}"]),Tl=A.header.withConfig({displayName:"SessionTable__SharedSessionToggle",componentId:"sc-10eix9u-7"})(["display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;h2{margin:0;color:",";}"],q.colors.brandPrimary),jl=A.table.withConfig({displayName:"SessionTable__StyledSessionTable",componentId:"sc-10eix9u-8"})(["width:100%;border-collapse:collapse;"]),kl=A.tr.withConfig({displayName:"SessionTable__StyledTableRow",componentId:"sc-10eix9u-9"})(["border-bottom:1px solid ",";&:hover{background:#f9f9f9;}td{padding:0.5rem;vertical-align:middle;}"],q.colors.lightgray),Rl=A.td.withConfig({displayName:"SessionTable__ThumbnailCell",componentId:"sc-10eix9u-10"})(["width:64px;"]),Hl=A.td.withConfig({displayName:"SessionTable__TitleCell",componentId:"sc-10eix9u-11"})(["width:100%;h3{margin:0;font-size:1rem;word-break:break-word;display:inline;}p{margin:0.25rem 0;white-space:pre-line;word-break:break-word;}"]),El=A.div.withConfig({displayName:"SessionTable__TagsContainer",componentId:"sc-10eix9u-12"})(["display:inline;margin-left:0.5rem;"]),zl=A.button.withConfig({displayName:"SessionTable__CompactTag",componentId:"sc-10eix9u-13"})(["",";",";display:inline-block;padding:0.15rem 0.4rem;margin:0 0.25rem;border:0;background:",";color:",";border-radius:0.25rem;cursor:pointer;"],q.fonts.openSansNormal,q.snippets.fontSize.small,q.colors.contrast,q.colors.white),Bl=A.td.withConfig({displayName:"SessionTable__IconsCell",componentId:"sc-10eix9u-14"})(["text-align:center;white-space:nowrap;"]),Nt=A.span.withConfig({displayName:"SessionTable__IconWrapper",componentId:"sc-10eix9u-15"})(["display:inline-block;margin:0 0.25rem;color:",";"],q.colors.midgray),An=A.td.withConfig({displayName:"SessionTable__ActionsCell",componentId:"sc-10eix9u-16"})(["text-align:right;white-space:nowrap;"]),Dn=A.button.withConfig({displayName:"SessionTable__IconButton",componentId:"sc-10eix9u-17"})(["background:none;border:0;cursor:pointer;padding:0.5rem;color:",";&:disabled{color:",";cursor:not-allowed;}"],q.colors.contrast,q.colors.lightgray),_l=A.span.withConfig({displayName:"SessionTable__HelpWrapper",componentId:"sc-10eix9u-18"})(["display:inline-block;"]),Ll=A.details.withConfig({displayName:"SessionTable__Dropdown",componentId:"sc-10eix9u-19"})(["position:relative;display:inline-block;summary{list-style:none;cursor:pointer;padding:0.5rem;}summary::-webkit-details-marker{display:none;}"]),Pl=A.div.withConfig({displayName:"SessionTable__DropdownContent",componentId:"sc-10eix9u-20"})(["position:absolute;right:0;z-index:1000;background:white;
5min-width:200px;box-shadow:0 8px 16px rgb(0 0 0 / 20%);border-radius:",";overflow:hidden;"],q.metrics.borderRadius),Nl=A.div.withConfig({displayName:"SessionTable__DropdownInfoHeader",componentId:"sc-10eix9u-21"})(["padding:0.6rem 1rem 0.75rem;border-bottom:1px solid ",";display:flex;flex-direction:column;gap:0.2rem;font-size:0.8rem;color:",";"],q.colors.lightgray,q.colors.midgray),tt=A.button.withConfig({displayName:"SessionTable__DropdownItem",componentId:"sc-10eix9u-22"})(["width:100%;padding:0.75rem 1rem;text-align:left;background:none;border:0;cursor:pointer;color:",";display:flex;align-items:center;gap:0.75rem;&:disabled{cursor:not-allowed;}"],({$danger:e})=>e?q.colors.red:q.colors.midgray),Ml=xr(["from{opacity:0;transform:translate(-50%,calc(-100% + 0.5rem));}to{opacity:1;transform:translate(-50%,-100%);}"]),Ol=A.div.withConfig({displayName:"SessionTable__TooltipBubble",componentId:"sc-10eix9u-23"})(["position:fixed;z-index:",";transform:translate(-50%,-100%);animation:"," 0.3s ease both;background:white;color:",";padding:0.5rem 0.7rem;border-radius:4px;box-shadow:0 1px 6px 3px rgb(0 0 0 / 20%);pointer-events:none;white-space:nowrap;"],q.zIndex.header+1,Ml,q.colors.font.primary);export{Ul as default};

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.