PageSourceSearch

https://gitapress.org/_next/static/chunks/4635-cbc130328a2d2bd5.js

js gitapress.org collected 2026-10-02 06:09:18 UTC 15,749 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4635],{39763:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(2265),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),i=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{color:a="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:f,className:s="",children:d,...v}=n;return(0,r.createElement)("svg",{ref:i,...o,width:l,height:l,stroke:a,strokeWidth:f?24*Number(c)/Number(l):c,className:["lucide","lucide-".concat(u(e)),s].join(" "),...v},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])});return n.displayName="".concat(e),n}},98335:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},5865:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(39763).Z)("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]])},33145:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(48461),o=n.n(r)},27648:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(72972),o=n.n(r)},48461:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return a}});let r=n(47043),o=n(55346),u=n(65878),i=r._(n(5084));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=u.Image},36596:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(2265),o=function(e){return"object"==typeof e&&null!==e},u=function(e){var t=e.value,n=void 0===t?"":t,u=e.numInputs,i=void 0===u?4:u,a=e.onChange,l=e.onPaste,c=e.renderInput,f=e.shouldAutoFocus,s=void 0!==f&&f,d=e.inputType,v=void 0===d?"text":d,p=e.renderSeparator,m=e.placeholder,g=e.containerStyle,h=e.inputStyle,y=e.skipDefaultStyles,b=void 0!==y&&y,w=r.useState(0),x=w[0],j=w[1],k=r.useRef([]),C=function(){return n?n.toString().split(""):[]},E="number"===v||"tel"===v;r.useEffect(function(){k.current=k.current.slice(0,i)},[i]),r.useEffect(function(){var e;s&&(null===(e=k.current[0])||void 0===e||e.focus())},[s]);var D=function(){if("string"==typeof m){if(m.length===i)return m;m.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},A=function(e){return(E?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},R=function(e){var t=e.target.value;A(t)&&(F(t),S(x+1))},M=function(e){var t=e.nativeEvent,n=e.target.value;A(n)||(n.length!==i||n.split("").some(function(e){return!A(e)})||(T(n.split("")),S(i-1)),null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),F(""),S(x-1)),e.target.value="")},I=function(){j(x-1)},N=function(e){var t=C();[e.code,e.key].includes("Backspace")?(e.preventDefault(),F(""),S(x-1)):"Delete"===e.code?(e.preventDefault(),F("")):"ArrowLeft"===e.code?(e.preventDefault(),S(x-1)):"ArrowRight"===e.code?(e.preventDefault(),S(x+1)):e.key===t[x]?(e.preventDefault(),S(x+1)):("Spacebar"===e.code||"Space"===e.code||"ArrowUp"===e.code||"ArrowDown"===e.code)&&e.preventDefault()},S=function(e){var t,n,r=Math.max(Math.min(i-1,e),0);k.current[r]&&(null===(t=k.current[r])||void 0===t||t.focus(),null===(n=k.current[r])||void 0===n||n.select(),j(r))},F=function(e){var t=C();t[x]=e[0],T(t)},T=function(e){a(e.join(""))},P=function(e){e.preventDefault();var t,n=C(),r=x,o=e.clipboardData.getData("text/plain").slice(0,i-x).split("");if(!(E&&o.some(function(e){return isNaN(Number(e))}))){for(var u=0;u<i;++u)u>=x&&o.length>0&&(n[u]=null!==(t=o.shift())&&void 0!==t?t:"",r++);S(r),T(n)}};return r.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},o(g)&&g),className:"string"==typeof g?g:void 0,onPaste:l},Array.from({length:i},function(e,t){return t}).map(function(e){var t,n,u;return r.createElement(r.Fragment,{key:e},c({value:null!==(t=C()[e])&&void 0!==t?t:"",placeholder:null!==(u=null===(n=D())||void 0===n?void 0:n[e])&&void 0!==u?u:void 0,ref:function(t){return k.current[e]=t},onChange:R,onFocus:function(t){j(e),t.target.select()},onBlur:I,onKeyDown:N,onPaste:P,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},o(h)?h:{}),className:"string"==typeof h?h:void 0,type:v,inputMode:E?"numeric":"text",onInput:M},e),e<i-1&&("function"==typeof p?p(e):p))}
1))}},6741:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},98575:function(e,t,n){n.d(t,{F:function(){return o},e:function(){return u}});var r=n(2265);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function u(...e){return r.useCallback(o(...e),e)}},29114:function(e,t,n){n.d(t,{gm:function(){return u}});var r=n(2265);n(57437);var o=r.createContext(void 0);function u(e){let t=r.useContext(o);return e||t||"ltr"}},99255:function(e,t,n){n.d(t,{M:function(){return l}});var r,o=n(2265),u=n(61188),i=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function l(e){let[t,n]=o.useState(i());return(0,u.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},66840:function(e,t,n){n.d(t,{WV:function(){return a},jH:function(){return l}});var r=n(2265),o=n(54887),u=n(37053),i=n(57437),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?u.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},1353:function(e,t,n){n.d(t,{Pc:function(){return x},ck:function(){return N},fC:function(){return I}});var r=n(2265),o=n(6741),u=n(67822),i=n(98575),a=n(73966),l=n(99255),c=n(66840),f=n(26606),s=n(80886),d=n(29114),v=n(57437),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[h,y,b]=(0,u.B)(g),[w,x]=(0,a.b)(g,[b]),[j,k]=w(g),C=r.forwardRef((e,t)=>(0,v.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(E,{...e,ref:t})})}));C.displayName=g;var E=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:u,loop:a=!1,dir:l,currentTabStopId:g,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...k}=e,C=r.useRef(null),E=(0,i.e)(t,C),D=(0,d.gm)(l),[A=null,R]=(0,s.T)({prop:g,defaultProp:h,onChange:b}),[I,N]=r.useState(!1),S=(0,f.W)(w),F=y(n),T=r.useRef(!1),[P,L]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(p,S),()=>e.removeEventListener(p,S)},[S]),(0,v.jsx)(j,{scope:n,orientation:u,dir:D,loop:a,currentTabStopId:A,onItemFocus:r.useCallback(e=>R(e),[R]),onItemShiftTab:r.useCallback(()=>N(!0),[]),onFocusableItemAdd:r.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>L(e=>e-1),[]),children:(0,v.jsx)(c.WV.div,{tabIndex:I||0===P?-1:0,"data-orientation":u,...k,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),x)}}T.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>N(!1))})})}),D="RovingFocusGroupItem",A=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:u=!0,active:i=!1,tabStopId:a,...f}=e,s=(0,l.M)(),d=a||s,p=k(D,n),m=p.currentTabStopId===d,g=y(n),{onFocusableItemAdd:b,onFocusableItemRemove:w}=p;return r.useEffect(()=>{if(u)return b(),()=>w()},[u,b,w]),(0,v.jsx)(h.ItemSlot,{scope:n,id:d,focusable:u,active:i,children:(0,v.jsx)(c.WV.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...f,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{u?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return R[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=g().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let u=o.indexOf(e.currentTarget);o=p.loop?(n=o,r=u+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(u+1)}setTimeout(()=>M(o))}})})})});A.displayName=D;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var I=C,N=A},37053:function(e,t,n){n.d(t,{g7:function(){return i}});var r=n(2265),o=n(98575),u=n(57437),i=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),l=i.find(c);if(l){let e=l.props.children,n=i.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,u.jsx)(a,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,u.jsx)(a,{...o,ref:t,children:n})});i.displayName="Slot";var a=r.forwardRef((e,t)=>{let{children:n,...u}=e;if(r.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],u=t[r];/^on[A-Z]/.test(r)?o&&u?n[r]=(...e)=>{u(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...u}:"className"===r&&(n[r]=[o,u].filter(Boolean).join(" "))}return{...e,...n}}(u,n.props),ref:t?(0,o.F)(t,a):a})}return r.Children.count(n)>1?r.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===l}},20271:function(e,t,n){n.d(t,{VY:function(){return N},aV:function(){return M},fC:function(){return R},xz:function(){return I}});var r=n(2265),o=n(6741),u=n(73966),i=n(1353),a=n(71599),l=n(66840),c=n(29114),f=n(80886),s=n(99255),d=n(57437),v="Tabs",[p,m]=(0,u.b)(v,[i.Pc]),g=(0,i.Pc)(),[h,y]=p(v),b=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:u,orientation:i="horizontal",dir:a,activationMode:v="automatic",...p}=e,m=(0,c.gm)(a),[g,y]=(0,f.T)({prop:r,onChange:o,defaultProp:u});return(0,d.jsx)(h,{scope:n,baseId:(0,s.M)(),value:g,onValueChange:y,orientation:i,dir:m,activationMode:v,children:(0,d.jsx)(l.WV.div,{dir:m,"data-orientation":i,...p,ref:t})})});b.displayName=v;var w="TabsList",x=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,u=y(w,n),a=g(n);return(0,d.jsx)(i.fC,{asChild:!0,...a,orientation:u.orientation,dir:u.dir,loop:r,children:(0,d.jsx)(l.WV.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:t})})});x.displayName=w;var j="TabsTrigger",k=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:u=!1,...a}=e,c=y(j,n),f=g(n),s=D(c.baseId,r),v=A(c.baseId,r),p=r===c.value;return(0,d.jsx)(i.ck,{asChild:!0,...f,focusable:!u,active:p,children:(0,d.jsx)(l.WV.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":v,"data-state":p?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:s,...a,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{u||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(r)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==c.activationMode;p||u||!e||c.onValueChange(r)})})})});k.displayName=j;var C="TabsContent",E=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:u,children:i,...c}=e,f=y(C,n),s=D(f.baseId,o),v=A(f.baseId,o),p=o===f.value,m=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(a.z,{present:u||p,children:n=>{let{present:r}=n;return(0,d.jsx)(l.WV.div,{"data-state":p?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":s,hidden:!r,id:v,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&i})}})});function D(e,t){return"".concat(e,"-trigger-").concat(t)}function A(e,t){return"".concat(e,"-content-").concat(t)}E.displayName=C;var R=b,M=x,I=k,N=E},26606:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},80886:function(e,t,n){n.d(t,{T:function(){return u}});var r=n(2265),o=n(26606);function u({prop:e,defaultProp:t,onChange:n=()=>{}}){let[u,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[u]=n,i=r.useRef(u),a=(0,o.W)(t);return r.useEffect(()=>{i.current!==u&&(a(u),i.current=u)},[u,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:u,c=(0,o.W)(n);return[l,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else i(t)},[a,e,i,c])]}},91096:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(2265),o=n(26606);function u(e,t=globalThis?.document){let n=(0,o.W)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},61188:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(2265),o=globalThis?.document?r.useLayoutEffect:()=>{}},77712:function(e,t,n){n.d(t,{j:function(){return u},cx:function(){return o}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(r&&(r+=" "),r+=t);return r},u=(e,t)=>
1n=>{var u;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],o=null==a?void 0:a[e];if(null===t)return null;let u=r(t)||r(o);return i[e][u]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t?void 0:null===(u=t.compoundVariants)||void 0===u?void 0:u.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...c}[t]):({...a,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]);

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.