文档归位:雪猫 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 @@
import{r as h,d as Ae,R as Y}from"./react-vendor-jWT2yUdV.js";import{ao as oe,aO as Me,aN as Ce,a3 as ce,br as Re,ba as Be,ap as Se,bs as ue,a8 as X,bt as xe,a6 as Pe,bu as Le,a5 as Oe,ai as we,ab as ae,b1 as he,aa as Ue,a9 as ze,bv as We,ah as He}from"./index-DiaaLdUu.js";import{$ as Fe}from"./usePress-BrNwsdVw.js";function pe(i,e){const t=h.useRef(!0),l=h.useRef(null);oe(()=>(t.current=!0,()=>{t.current=!1}),[]),oe(()=>{t.current?t.current=!1:(!l.current||e.some((n,c)=>!Object.is(n,l[c])))&&i(),l.current=e},e)}function je(i,e){const t=[];for(;i&&i!==document.documentElement;)Me(i,e)&&t.push(i),i=i.parentElement;return t}function V(i){return Ce()?i.metaKey:i.ctrlKey}let Ge=0;const ie=new Map;function qe(i){let[e,t]=h.useState();return oe(()=>{if(!i)return;let l=ie.get(i);if(l)t(l.element.id);else{let n=`react-aria-description-${Ge++}`;t(n);let c=document.createElement("div");c.id=n,c.style.display="none",c.textContent=i,document.body.appendChild(c),l={refCount:0,element:c},ie.set(i,l)}return l.refCount++,()=>{l&&--l.refCount===0&&(l.element.remove(),ie.delete(i))}},[i]),{"aria-describedby":i?e:void 0}}function Z(i,e,t,l){let n=ce(t),c=t==null;h.useEffect(()=>{if(c||!i.current)return;let r=i.current;return r.addEventListener(e,n,l),()=>{r.removeEventListener(e,n,l)}},[i,e,l,c,n])}function Te(i,e){let t=ye(i,e,"left"),l=ye(i,e,"top"),n=e.offsetWidth,c=e.offsetHeight,r=i.scrollLeft,f=i.scrollTop,{borderTopWidth:a,borderLeftWidth:b,scrollPaddingTop:k,scrollPaddingRight:g,scrollPaddingBottom:p,scrollPaddingLeft:S}=getComputedStyle(i),{scrollMarginTop:$,scrollMarginRight:A,scrollMarginBottom:y,scrollMarginLeft:w}=getComputedStyle(e),v=r+parseInt(b,10),m=f+parseInt(a,10),x=v+i.clientWidth,M=m+i.clientHeight,D=parseInt(k,10)||0,I=parseInt(p,10)||0,F=parseInt(g,10)||0,L=parseInt(S,10)||0,U=parseInt($,10)||0,R=parseInt(y,10)||0,C=parseInt(A,10)||0,T=parseInt(w,10)||0,H=t-T,z=t+n+C,j=l-U,o=l+c+R,d=r+parseInt(b,10)+L,K=x-F,s=f+parseInt(a,10)+D,P=M-I;(H>d||z<K)&&(H<=r+L?r=H-parseInt(b,10)-L:z>x-F&&(r+=z-x+F)),(j>s||o<P)&&(j<=m+D?f=j-parseInt(a,10)-D:o>M-I&&(f+=o-M+I)),i.scrollTo({left:r,top:f})}function ye(i,e,t){const l=t==="left"?"offsetLeft":"offsetTop";let n=0;for(;e.offsetParent&&(n+=e[l],e.offsetParent!==i);){if(e.offsetParent.contains(i)){n-=i[l];break}e=e.offsetParent}return n}function ve(i,e){if(i&&document.contains(i)){let r=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(r).overflow==="hidden")&&!Re()){var t;let{left:a,top:b}=i.getBoundingClientRect();i==null||(t=i.scrollIntoView)===null||t===void 0||t.call(i,{block:"nearest"});let{left:k,top:g}=i.getBoundingClientRect();if(Math.abs(a-k)>1||Math.abs(b-g)>1){var l,n,c;e==null||(n=e.containingElement)===null||n===void 0||(l=n.scrollIntoView)===null||l===void 0||l.call(n,{block:"center",inline:"center"}),(c=i.scrollIntoView)===null||c===void 0||c.call(i,{block:"nearest"})}}else{let a=je(i);for(let b of a)Te(b,i)}}}const Ye="react-aria-clear-focus",Ve="react-aria-focus",Xe=500;function Ze(i){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:n,threshold:c=Xe,accessibilityDescription:r}=i;const f=h.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:b}=Be(),{pressProps:k}=Fe({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(t&&t({...p,type:"longpressstart"}),f.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Se(p.target).activeElement!==p.target&&ue(p.target),n&&n({...p,type:"longpress"}),f.current=void 0},c),p.pointerType==="touch")){let S=$=>{$.preventDefault()};a(p.target,"contextmenu",S,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{b(p.target,"contextmenu",S)},30)},{once:!0})}},onPressEnd(p){f.current&&clearTimeout(f.current),l&&(p.pointerType==="mouse"||p.pointerType==="touch")&&l({...p,type:"longpressend"})}}),g=qe(n&&!e?r:void 0);return{longPressProps:X(k,g)}}function De(i){let e=Qe(Se(i));e!==i&&(e&&Je(e,i),i&&ke(i,e))}function Je(i,e){i.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function ke(i,e){i.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Qe(i){let e=xe(i),t=e==null?void 0:e.getAttribute("aria-activedescendant");return t&&i.getElementById(t)||e}function fe(i){return Le()?i.altKey:i.ctrlKey}function ne(i,e){var t,l;let n=`[data-key="${CSS.escape(String(e))}"]`,c=(t=i.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(n=`[data-collection="${CSS.escape(c)}"]${n}`),(l=i.current)===null||l===void 0?void 0:l.querySelector(n)}const Ie=new WeakMap;function Ne(i){let e=Pe();return Ie.set(i,e),e}function _e(i){return Ie.get(i)}const et=1e3;function tt(i){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=i,n=h.useRef({search:"",timeout:void 0}).current,c=r=>{let f=lt(r.key);if(!(!f||r.ctrlKey||r.mLine truncated