PageSourceSearch

https://nano-gpt.com/_next/static/chunks/19521-e04e9a04dafad5c1.js

js nano-gpt.com collected 2026-10-02 04:08:15 UTC 12,329 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19521],{121018:(e,t,n)=>{n.d(t,{T:()=>o});function o(e,t){return n=>{null==e||e(n),null==t||t(n)}}},319892:(e,t,n)=>{n.d(t,{P:()=>o});function o(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}},557132:(e,t,n)=>{n.d(t,{Y:()=>r});var o=n(319892);function r(e){let{parentSelector:t,siblingSelector:n,onKeyDown:r,loop:l=!0,activateOnFocus:a=!1,dir:i="rtl",orientation:s}=e;return e=>{var u;null==r||r(e);let d=Array.from((null==(u=(0,o.P)(e.currentTarget,t))?void 0:u.querySelectorAll(n))||[]).filter(n=>{var r;return r=e.currentTarget,(0,o.P)(r,t)===(0,o.P)(n,t)}),c=d.findIndex(t=>e.currentTarget===t),p=function(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].disabled)return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}(c,d,l),m=function(e,t,n){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;e-=1)if(!t[e].disabled)return e}return e}(c,d,l),v="rtl"===i?m:p,f="rtl"===i?p:m;switch(e.key){case"ArrowRight":"horizontal"===s&&(e.stopPropagation(),e.preventDefault(),d[v].focus(),a&&d[v].click());break;case"ArrowLeft":"horizontal"===s&&(e.stopPropagation(),e.preventDefault(),d[f].focus(),a&&d[f].click());break;case"ArrowUp":"vertical"===s&&(e.stopPropagation(),e.preventDefault(),d[m].focus(),a&&d[m].click());break;case"ArrowDown":"vertical"===s&&(e.stopPropagation(),e.preventDefault(),d[p].focus(),a&&d[p].click());break;case"Home":e.stopPropagation(),e.preventDefault(),d[0].disabled||d[0].focus();break;case"End":{e.stopPropagation(),e.preventDefault();let t=d.length-1;d[t].disabled||d[t].focus()}}}}},719521:(e,t,n)=>{n.d(t,{W:()=>V});var o=n(695155),r=n(212115),l=n(618507),a=n(319892),i=n(213494),s=n(374279),u=n(665214),d=n(669954);function c(e){let{open:t,close:n,openDelay:o,closeDelay:l}=e,a=(0,r.useRef)(-1),i=(0,r.useRef)(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)};return(0,r.useEffect)(()=>s,[]),{openDropdown:()=>{s(),0===o||void 0===o?t():a.current=window.setTimeout(t,o)},closeDropdown:()=>{s(),0===l||void 0===l?n():i.current=window.setTimeout(n,l)}}}var p=n(559978);let[m,v]=(0,n(907220).F)("Menu component was not found in the tree");var f=n(46460),g={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};let w=(0,d.P9)((e,t)=>{let{classNames:n,className:r,style:l,styles:a,vars:i,...s}=(0,u.Y)("MenuDivider",null,e),d=v();return(0,o.jsx)(f.Box,{ref:t,...d.getStyles("divider",{className:r,style:l,styles:a,classNames:n}),...s})});w.classes=g,w.displayName="@mantine/core/MenuDivider";var h=n(184101),y=n(121018);let b=(0,d.P9)((e,t)=>{let{classNames:n,className:l,style:a,styles:i,vars:s,onMouseEnter:d,onMouseLeave:c,onKeyDown:m,children:f,...g}=(0,u.Y)("MenuDropdown",null,e),w=(0,r.useRef)(null),b=v(),D=(0,y.T)(m,e=>{if("ArrowUp"===e.key||"ArrowDown"===e.key){var t,n;e.preventDefault(),null==(n=w.current)||null==(t=n.querySelectorAll("[data-menu-item]:not(:disabled)")[0])||t.focus()}}),x=(0,y.T)(d,()=>("hover"===b.trigger||"click-hover"===b.trigger)&&b.openDropdown()),T=(0,y.T)(c,()=>("hover"===b.trigger||"click-hover"===b.trigger)&&b.closeDropdown());return(0,o.jsxs)(p.A.Dropdown,{...g,onMouseEnter:x,onMouseLeave:T,role:"menu","aria-orientation":"vertical",ref:(0,h.pc)(t,w),...b.getStyles("dropdown",{className:l,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:D,children:[b.withInitialFocusPlaceholder&&(0,o.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});b.classes=g,b.displayName="@mantine/core/MenuDropdown";var D=n(557132),x=n(828490),T=n(144916),k=n(938273),S=n(585754),I=n(457142);let[M,P]=(0,n(60744).e)(),j=(0,k.v)((e,t)=>{let{classNames:n,className:l,style:a,styles:i,vars:s,color:d,closeMenuOnClick:c,leftSection:p,rightSection:m,children:f,disabled:g,"data-disabled":w,...b}=(0,u.Y)("MenuItem",null,e),k=v(),M=P(),j=(0,T.xd)(),{dir:A}=(0,S.jH)(),C=(0,r.useRef)(null),E=(0,y.T)(b.onClick,()=>{!w&&("boolean"==typeof c?c&&k.closeDropdownImmediately():k.closeOnItemClick&&k.closeDropdownImmediately())}),_=d?j.variantColorResolver({color:d,theme:j,variant:"light"}):void 0,L=d?(0,x.g)({color:d,theme:j}):null,N=(0,y.T)(b.onKeyDown,e=>{"ArrowLeft"===e.key&&M&&(M.close(),M.focusParentItem())});return(0,o.jsxs)(I.UnstyledButton,{onMouseDown:e=>e.preventDefault(),...b,unstyled:k.unstyled,tabIndex:k.menuItemTabIndex,...k.getStyles("item",{className:l,style:a,styles:i,classNames:n}
1),ref:(0,h.pc)(C,t),role:"menuitem",disabled:g,"data-menu-item":!0,"data-disabled":g||w||void 0,"data-mantine-stop-propagation":!0,onClick:E,onKeyDown:(0,D.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:k.loop,dir:A,orientation:"vertical",onKeyDown:N}),__vars:{"--menu-item-color":(null==L?void 0:L.isThemeColor)&&(null==L?void 0:L.shade)===void 0?"var(--mantine-color-".concat(L.color,"-6)"):null==_?void 0:_.color,"--menu-item-hover":null==_?void 0:_.hover},children:[p&&(0,o.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:p}),f&&(0,o.jsx)("div",{...k.getStyles("itemLabel",{styles:i,classNames:n}),children:f}),m&&(0,o.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:m})]})});j.classes=g,j.displayName="@mantine/core/MenuItem";let A=(0,d.P9)((e,t)=>{let{classNames:n,className:r,style:l,styles:a,vars:i,...s}=(0,u.Y)("MenuLabel",null,e),d=v();return(0,o.jsx)(f.Box,{ref:t,...d.getStyles("label",{className:r,style:l,styles:a,classNames:n}),...s})});A.classes=g,A.displayName="@mantine/core/MenuLabel";var C=n(289074),E=n(346559);let _=(0,d.P9)((e,t)=>{let{classNames:n,className:l,style:a,styles:i,vars:s,onMouseEnter:d,onMouseLeave:c,onKeyDown:m,children:f,...g}=(0,u.Y)("MenuSubDropdown",null,e),w=(0,r.useRef)(null),b=v(),D=P(),x=(0,y.T)(d,null==D?void 0:D.open),T=(0,y.T)(c,null==D?void 0:D.close);return(0,o.jsx)(p.A.Dropdown,{...g,onMouseEnter:x,onMouseLeave:T,role:"menu","aria-orientation":"vertical",ref:(0,h.pc)(t,w),...b.getStyles("dropdown",{className:l,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:f})});_.classes=g,_.displayName="@mantine/core/MenuSubDropdown";var L=n(802266);let N=(0,k.v)((e,t)=>{let{classNames:n,className:l,style:a,styles:i,vars:s,color:d,leftSection:c,rightSection:p,children:m,disabled:f,"data-disabled":g,closeMenuOnClick:w,...b}=(0,u.Y)("MenuSubItem",null,e),k=v(),M=P(),j=(0,T.xd)(),{dir:A}=(0,S.jH)(),C=(0,r.useRef)(null),E=d?j.variantColorResolver({color:d,theme:j,variant:"light"}):void 0,_=d?(0,x.g)({color:d,theme:j}):null,N=(0,y.T)(b.onKeyDown,e=>{"ArrowRight"===e.key&&(null==M||M.open(),null==M||M.focusFirstItem()),"ArrowLeft"===e.key&&(null==M?void 0:M.parentContext)&&(M.parentContext.close(),M.parentContext.focusParentItem())}),Y=(0,y.T)(b.onClick,()=>{!g&&w&&k.closeDropdownImmediately()}),F=(0,y.T)(b.onMouseEnter,null==M?void 0:M.open),R=(0,y.T)(b.onMouseLeave,null==M?void 0:M.close);return(0,o.jsxs)(I.UnstyledButton,{onMouseDown:e=>e.preventDefault(),...b,unstyled:k.unstyled,tabIndex:k.menuItemTabIndex,...k.getStyles("item",{className:l,style:a,styles:i,classNames:n}),ref:(0,h.pc)(C,t),role:"menuitem",disabled:f,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:F,onMouseLeave:R,onClick:Y,onKeyDown:(0,D.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:k.loop,dir:A,orientation:"vertical",onKeyDown:N}),__vars:{"--menu-item-color":(null==_?void 0:_.isThemeColor)&&(null==_?void 0:_.shade)===void 0?"var(--mantine-color-".concat(_.color,"-6)"):null==E?void 0:E.color,"--menu-item-hover":null==E?void 0:E.hover},children:[c&&(0,o.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),m&&(0,o.jsx)("div",{...k.getStyles("itemLabel",{styles:i,classNames:n}),children:m}),(0,o.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:p||(0,o.jsx)(L.U,{...k.getStyles("chevron"),size:14})})]})});N.classes=g,N.displayName="@mantine/core/MenuSubItem";var Y=n(540772);function F(e){let{children:t,refProp:n}=e;if(!(0,Y.v)(t))throw Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return v(),(0,o.jsx)(p.A.Target,{refProp:n,popupType:"menu",children:t})}F.displayName="@mantine/core/MenuSubTarget";let R={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function B(e){let{children:t,closeDelay:n,openDelay:r,...l}=(0,u.Y)("MenuSub",R,e),a=(0,C.B)(),[i,{open:s,close:d}]=(0,E.j)(!1),m=P(),{openDropdown:v,closeDropdown:f}=c({open:s,close:d,closeDelay:n,openDelay:r});return(0,o.jsx)(M,{value:{opened:i,close:f,open:v,focusFirstItem:()=>window.setTimeout(()=>{var e,t;null==(t=document.getElementById("".concat(a,"-dropdown")))||null==(e=t.querySelectorAll("[data-menu-item]:not([data-disabled])")[0])||e.focus()},16),focusParentItem:()=>window.setTimeout(()=>{var e;
1null==(e=document.getElementById("".concat(a,"-target")))||e.focus()},16),parentContext:m},children:(0,o.jsx)(p.A,{opened:i,withinPortal:!1,withArrow:!1,id:a,...l,children:t})})}B.extend=e=>e,B.displayName="@mantine/core/MenuSub",B.Target=F,B.Dropdown=_,B.Item=N;var K=n(367740);let O={refProp:"ref"},U=(0,r.forwardRef)((e,t)=>{let{children:n,refProp:l,...a}=(0,u.Y)("MenuTarget",O,e),i=(0,K.D)(n);if(!i)throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let s=v(),d=i.props,c=(0,y.T)(d.onClick,()=>{"click"===s.trigger?s.toggleDropdown():"click-hover"===s.trigger&&(s.setOpenedViaClick(!0),s.opened||s.openDropdown())}),m=(0,y.T)(d.onMouseEnter,()=>("hover"===s.trigger||"click-hover"===s.trigger)&&s.openDropdown()),f=(0,y.T)(d.onMouseLeave,()=>{"hover"===s.trigger?s.closeDropdown():"click-hover"!==s.trigger||s.openedViaClick||s.closeDropdown()});return(0,o.jsx)(p.A.Target,{refProp:l,popupType:"menu",ref:t,...a,children:(0,r.cloneElement)(i,{onClick:c,onMouseEnter:m,onMouseLeave:f,"data-expanded":!!s.opened||void 0})})});U.displayName="@mantine/core/MenuTarget";let q={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function V(e){let t=(0,u.Y)("Menu",q,e),{children:n,onOpen:d,onClose:v,opened:f,defaultOpened:w,trapFocus:h,onChange:y,closeOnItemClick:b,loop:D,closeOnEscape:x,trigger:T,openDelay:k,closeDelay:S,classNames:I,styles:M,unstyled:P,variant:j,vars:A,menuItemTabIndex:C,keepMounted:E,withInitialFocusPlaceholder:_,attributes:L,...N}=t,Y=(0,s.I)({name:"Menu",classes:g,props:t,classNames:I,styles:M,unstyled:P,attributes:L}),[F,R]=(0,l.Z)({value:f,defaultValue:w,finalValue:!1,onChange:y}),[B,K]=(0,r.useState)(!1),O=()=>{R(!1),K(!1),F&&(null==v||v())},U=()=>{R(!0),F||null==d||d()},V=()=>{F?O():U()},{openDropdown:z,closeDropdown:H}=c({open:U,close:O,closeDelay:S,openDelay:k}),{resolvedClassNames:W,resolvedStyles:Z}=(0,i.Y)({classNames:I,styles:M,props:t});return(0,o.jsx)(m,{value:{getStyles:Y,opened:F,toggleDropdown:V,getItemIndex:e=>{var t;return e?Array.from((null==(t=(0,a.P)(e,"[data-menu-dropdown]"))?void 0:t.querySelectorAll("[data-menu-item]"))||[]).findIndex(t=>t===e):null},openedViaClick:B,setOpenedViaClick:K,closeOnItemClick:b,closeDropdown:"click"===T?O:H,openDropdown:"click"===T?U:z,closeDropdownImmediately:O,loop:D,trigger:T,unstyled:P,menuItemTabIndex:C,withInitialFocusPlaceholder:_},children:(0,o.jsx)(p.A,{returnFocus:!0,...N,opened:F,onChange:V,defaultOpened:w,trapFocus:!E&&h,closeOnEscape:x,__staticSelector:"Menu",classNames:W,styles:Z,unstyled:P,variant:j,keepMounted:E,children:n})})}V.extend=e=>e,V.withProps=(0,d.LE)(V),V.classes=g,V.displayName="@mantine/core/Menu",V.Item=j,V.Label=A,V.Dropdown=b,V.Target=U,V.Divider=w,V.Sub=B}}]);

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.