文档归位:雪猫 README 门面 + 公告/制作文档/发布工具并入仓库根
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
天天的鸟蛋蛋 committed 2026-11-12 06:29:38 +08:00
1 parent b9655a5ab1
commit e292824161
122 files changed
+90002 -69

No files matched your search

@@ -0,0 +1,8 @@
import{r as v,j as p,R as T,d as Vi}from"./react-vendor-jWT2yUdV.js";import{c as kl,b as Cl,a as $l}from"./chunk-B75B6XQK-aFCr8AK6.js";import{t as hn,f as yn,Z as Dl,_ as El,v as Un,x as Wi,a0 as si,y as Sl,B as jl,E as Le,a1 as Al,O as Qt,Q as en,R as tn,S as nn,b as te,T as an,s as Zt,a2 as Lt,a3 as zl,a4 as Bl,a5 as xn,a6 as Yn,a7 as Fl,a8 as Ht,a9 as Nl,aa as ui,ab as kt,ac as Pl,ad as Tt,ae as pn,af as ci,ag as Il,ah as Ml,$ as Xn,c as Fn,u as Rl,k as Tl}from"./index-DiaaLdUu.js";import{i as Gn,$ as Li,a as Ol,b as Hi,c as Kl,d as _l}from"./chunk-2QAN2V2R-B2qCPZrG.js";import{g as Zn}from"./qface-BZLvZXJ8.js";import{_ as Ft,u as qi}from"./useRequest-B1BwPztr.js";import{z as pe}from"./react-hot-toast-cGcFZPSt.js";import{F as Ui,a as Vl,b as Yi,c as Wl,d as Ll,e as di}from"./index-CVa9XolR.js";import{i as Hl}from"./index-DE7yoXMZ.js";import{C as ql,g as Ul,h as Yl}from"./code_editor-TFSnOENo.js";import{G as Xl}from"./iconBase-B7bT1FlI.js";import{F as De}from"./file_manager-BG19iFYW.js";import{i as Gl,m as Zl,a as Be,c as pi,s as Jl,$ as qt,b as $e,d as X,u as Ye,o as Xi,p as Ql}from"./chunk-APIAPHLK-nGgOe_Nr.js";import{f as at}from"./chunk-RJKRL3AU-CjtrMR1U.js";import{$ as Ee,a as Dt,b as $t,c as ln,d as Jn,e as er,f as Gi,g as Ot,h as tr,i as nr,j as ir}from"./SelectionManager-Dl9uHsLK.js";import{$ as Zi}from"./usePress-BrNwsdVw.js";import{$ as ar}from"./useFocusable-DA5Croun.js";import{$ as Qn}from"./useHover-DC1o5-bm.js";import{$ as or}from"./useToggle-B3ZYBe5S.js";import{f as lr}from"./chunk-SLABUSGS-Cmz8sGrU.js";import{$ as rr,a as Ji}from"./DOMLayoutDelegate-DOgfSALU.js";import{$ as sr}from"./index-BV9-YCKp.js";import{a as ur}from"./index-Bz8pD9tN.js";import{E as cr}from"./empty_state-BmDJmEaB.js";import{f as dr,g as mi,h as pr,i as mr,j as fr,k as vr,l as hr,m as xr,n as gr,o as br,p as yr,q as wr,r as kr}from"./index-_HIxriDC.js";import{i as Cr}from"./chunk-MLPFQTYO-DSnBqIsb.js";import{w as $r,x as Dr}from"./index-FvTxWQTZ.js";import{u as Er}from"./use-dialog-CRIMuzeE.js";import{b as Sr,u as jr}from"./react-router-dom-C6k78GT4.js";import{m as Ar}from"./proxy-BsRmjYPH.js";import"./chunk-FGM523TA-CgSvUh2a.js";import"./chunk-M3MASYO7-B4fjH-eW.js";import"./codemirror-core-782AVq39.js";import"./codemirror-lang-DFaD5e7G.js";import"./index-BsnVex0g.js";import"./gestures-BHfQC-M8.js";import"./layout-Buao20KT.js";var fi=hn({base:"w-px h-px inline-block",variants:{isInline:{true:"inline-block",false:"block"}},defaultVariants:{isInline:!1}}),vi=hn({slots:{base:"flex flex-col relative gap-4",wrapper:["p-4","z-0","flex","flex-col","relative","justify-between","gap-4","shadow-small","bg-content1","overflow-auto"],table:"min-w-full h-auto",thead:"[&>tr]:first:rounded-lg",tbody:"",tr:["group/tr","outline-none",...yn],th:["group/th","px-3","h-10","text-start","align-middle","bg-default-100","whitespace-nowrap","text-foreground-500","text-tiny","font-semibold","first:rounded-s-lg","last:rounded-e-lg","outline-none","data-[sortable=true]:cursor-pointer","data-[hover=true]:text-foreground-400",...yn],td:["py-2","px-3","relative","align-middle","whitespace-normal","text-small","font-normal","outline-none","[&>*]:z-1","[&>*]:relative",...yn,"before:content-['']","before:absolute","before:z-0","before:inset-0","before:opacity-0","data-[selected=true]:before:opacity-100","group-data-[disabled=true]/tr:text-foreground-300","group-data-[disabled=true]/tr:cursor-not-allowed"],tfoot:"",sortIcon:["ms-2","mb-px","opacity-0","text-inherit","inline-block","transition-transform-opacity","data-[visible=true]:opacity-100","group-data-[hover=true]/th:opacity-100","data-[direction=ascending]:rotate-180"],emptyWrapper:"text-foreground-400 align-middle text-center h-40",loadingWrapper:"absolute inset-0 flex items-center justify-center"},variants:{color:{default:{td:"before:bg-default/60 data-[selected=true]:text-default-foreground"},primary:{td:"before:bg-primary/20 data-[selected=true]:text-primary"},secondary:{td:"before:bg-secondary/20 data-[selected=true]:text-secondary"},success:{td:"before:bg-success/20 data-[selected=true]:text-success-600 dark:data-[selected=true]:text-success"},warning:{td:"before:bg-warning/20 data-[selected=true]:text-warning-600 dark:data-[selected=true]:text-warning"},danger:{td:"before:bg-danger/20 data-[selected=true]:text-danger dark:data-[selected=true]:text-danger-500"}},layout:{auto:{table:"table-auto"},fixed:{table:"table-fixed"}},radius:{none:{wrapper:"rounded-none"},sm:{wrapper:"rounded-small"},md:{wrapper:"rounded-medium"},lg:{wrapper:"rounded-large"}},shadow:{none:{wrapper:"shadow-none"},sm:{wrapper:"shadow-small"},md:{wrapper:"shadow-medium"},lg:{wrapper:"shadow-large"}},hideHeader:{true:{thead:"hidden"}},isStriped:{true:{td:["group-data-[odd=true]/tr:before:bg-default-100","group-data-[odd=true]/tr:before:opacity-100","group-data-[odd=true]/tr:before:-z-10"]}},isCompact:{true:{td:"py-1"},false:{}},isHeaderSticky:{true:{thead:"sticky top-0 z-20 [&>tr]:first:shadow-small"}},isSelectable:{true:{Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function is(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function as(e){if(Array.isArray(e))return Pn(e)}function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(i){aa(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){return rs(e)||ls(e,t)||oa(e,t)||os()}function os(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oa(e,t){if(e){if(typeof e=="string")return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pn(e,t)}}function Pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ls(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,a=!1,l,r;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(i.push(l.value),!(t&&i.length===t));o=!0);}catch(s){a=!0,r=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw r}}return i}}function rs(e){if(Array.isArray(e))return e}var ss=typeof Dn=="function"?Dn:Dn.default,us="file-invalid-type",cs="file-too-large",ds="file-too-small",ps="too-many-files",ms=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:us,message:"File type must be ".concat(i)}},Si=function(t){return{code:cs,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ji=function(t){return{code:ds,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},fs={code:ps,message:"Too many files"};function la(e,t){var n=e.type==="application/x-moz-file"||ss(e,t);return[n,n?null:ms(t)]}function ra(e,t,n){if(zt(e.size))if(zt(t)&&zt(n)){if(e.size>n)return[!1,Si(n)];if(e.size<t)return[!1,ji(t)]}else{if(zt(t)&&e.size<t)return[!1,ji(t)];if(zt(n)&&e.size>n)return[!1,Si(n)]}return[!0,null]}function zt(e){return e!=null}function vs(e){var t=e.files,n=e.accept,i=e.minSize,o=e.maxSize,a=e.multiple,l=e.maxFiles,r=e.validator;return!a&&t.length>1||a&&l>=1&&t.length>l?!1:t.every(function(s){var c=la(s,n),u=Jt(c,1),d=u[0],f=ra(s,i,o),m=Jt(f,1),h=m[0],x=r?r(s):null;return d&&h&&!x})}function fn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function sn(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Ai(e){e.preventDefault()}function hs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function xs(e){return e.indexOf("Edge/")!==-1}function gs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hs(e)||xs(e)}function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return t.some(function(r){return!fn(i)&&r&&r.apply(void 0,[i].concat(a)),fn(i)})}}function bs(){return"showOpenFilePicker"in window}function ys(e){if(zt(e)){var t=Object.entries(e).filter(function(n){var i=Jt(n,2),o=i[0],a=i[1],l=!0;return sa(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),l=!1),(!Array.isArray(a)||!a.every(ua))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),l=!1),l}).reduce(function(n,i){var o=Jt(i,2),a=o[0],l=o[1];return Ei(Ei({},n),{},aa({},a,l))},{});return[{description:"Files",accept:t}]}return e}function ws(e){if(zt(e))return Object.entries(e).reduce(function(t,n){var i=Jt(n,2),o=i[0],a=i[1];return[].concat($i(t),[o],$i(a))},[]).filter(function(t){return sa(t)||ua(t)}).join(",")}function ks(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Cs(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function sa(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function ua(e){return/^.*\.[\w]+$/.test(e)}var $s=["children"],Ds=["open"],Es=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ss=["refKey","onChange","onClick"];function js(e){return Bs(e)||zs(e)||ca(e)||As()}function As(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zs(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bs(e){if(Array.isArray(e))return In(e)}function En(e,t){return Ps(e)||Ns(e,t)||ca(e,t)||Fs()}function Fs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ca(e,t){if(e){if(typeof e=="string")return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return In(e,t)}}function In(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ns(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,a=!1,l,r;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(i.push(l.value),!(t&&i.length===t));o=!0);}catch(s){a=!0,r=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw r}}return i}}function Ps(e){if(Array.isArray(e))return e}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zi(Object(n),!0).forEach(function(i){Mn(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){if(e==null)return{};var n=Is(e,t),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Is(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ei=v.forwardRef(function(e,t){var n=e.children,i=vn(e,$s),o=pa(i),a=o.open,l=vn(o,Ds);return v.useImperativeHandle(t,function(){return{open:a}},[a]),T.createElement(v.Fragment,null,n(le(le({},l),{},{open:a})))});ei.displayName="Dropzone";var da={disabled:!1,getFilesFromEvent:Hr,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ei.defaultProps=da;ei.propTypes={children:ee.func,accept:ee.objectOf(ee.arrayOf(ee.string)),multiple:ee.bool,preventDropOnDocument:ee.bool,noClick:ee.bool,noKeyboard:ee.bool,noDrag:ee.bool,noDragEventsBubbling:ee.bool,minSize:ee.number,maxSize:ee.number,maxFiles:ee.number,disabled:ee.bool,getFilesFromEvent:ee.func,onFileDialogCancel:ee.func,onFileDialogOpen:ee.func,useFsAccessApi:ee.bool,autoFocus:ee.bool,onDragEnter:ee.func,onDragLeave:ee.func,onDragOver:ee.func,onDrop:ee.func,onDropAccepted:ee.func,onDropRejected:ee.func,onError:ee.func,validator:ee.func};var Rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function pa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=le(le({},da),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,r=t.multiple,s=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,h=t.onDropRejected,x=t.onFileDialogCancel,b=t.onFileDialogOpen,k=t.useFsAccessApi,C=t.autoFocus,j=t.preventDropOnDocument,D=t.noClick,g=t.noKeyboard,z=t.noDrag,B=t.noDragEventsBubbling,R=t.onError,S=t.validator,$=v.useMemo(function(){return ws(n)},[n]),K=v.useMemo(function(){return ys(n)},[n]),q=v.useMemo(function(){return typeof b=="function"?b:Bi},[b]),F=v.useMemo(function(){return typeof x=="function"?x:Bi},[x]),N=v.useRef(null),I=v.useRef(null),W=v.useReducer(Ms,Rn),he=En(W,2),_=he[0],U=he[1],ke=_.isFocused,Ce=_.isFileDialogActive,re=v.useRef(typeof window<"u"&&window.isSecureContext&&k&&bs()),ae=function(){!re.current&&Ce&&setTimeout(function(){if(I.current){var A=I.current.files;A.length||(U({type:"closeDialog"}),F())}},300)};v.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[I,Ce,F,re]);var ne=v.useRef([]),oe=function(A){N.current&&N.current.contains(A.target)||(A.preventDefault(),ne.current=[])};v.useEffect(function(){return j&&(document.addEventListener("dragover",Ai,!1),document.addEventListener("drop",oe,!1)),function(){j&&(document.removeEventListener("dragover",Ai),document.removeEventListener("drop",oe))}},[N,j]),v.useEffect(function(){return!i&&C&&N.current&&N.current.focus(),function(){}},[N,C,i]);var Z=v.useCallback(function(y){R?R(y):console.error(y)},[R]),Fe=v.useCallback(function(y){y.preventDefault(),y.persist(),de(y),ne.current=[].concat(js(ne.current),[y.target]),sn(y)&&Promise.resolve(o(y)).then(function(A){if(!(fn(y)&&!B)){var V=A.length,H=V>0&&vs({files:A,accept:$,minSize:l,maxSize:a,multiple:r,maxFiles:s,validator:S}),Q=V>0&&!H;U({isDr Line truncated
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*x,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(s=n==null?void 0:n.onChange)==null||s.call(n,o),o}}function jn(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Pu=(e,t)=>Math.abs(e-t)<1,Iu=(e,t,n)=>{let i;return function(...o){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,o),n)}},Mu=e=>e,Ru=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let o=t;o<=n;o++)i.push(o);return i},Tu=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const o=l=>{const{width:r,height:s}=l;t({width:Math.round(r),height:Math.round(s)})};if(o(n.getBoundingClientRect()),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(l=>{const r=l[0];if(r!=null&&r.borderBoxSize){const s=r.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(n.getBoundingClientRect())});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},Mi={passive:!0},Ou=typeof window>"u"?!0:"onscrollend"in window,Ku=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let o=0;const a=e.options.useScrollendEvent&&Ou?()=>{}:Iu(i,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=c=>()=>{const{horizontal:u,isRtl:d}=e.options;o=u?n.scrollLeft*(d&&-1||1):n.scrollTop,a(),t(o,c)},r=l(!0),s=l(!1);return s(),n.addEventListener("scroll",r,Mi),n.addEventListener("scrollend",s,Mi),()=>{n.removeEventListener("scroll",r),n.removeEventListener("scrollend",s)}},_u=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Vu=(e,{adjustments:t=0,behavior:n},i)=>{var o,a;const l=e+t;(a=(o=i.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[i.options.horizontal?"left":"top"]:l,behavior:n})};class Wu{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=i())==null||o.disconnect(),n=null},observe:o=>{var a;return(a=i())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=i())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,o])=>{typeof o>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Mu,rangeExtractor:Ru,onChange:()=>{},measureElement:_u,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var i,o;(o=(i=this.options).onChange)==null||o.call(i,this,n)},this.maybeNotify=Kt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(thi Line truncated