PageSourceSearch

https://derekchia-clickhouse.hf.space/clickstack/_next/static/chunks/2570-0b9a8b50a2ea7275.js

js derekchia-clickhouse.hf.space collected 2026-10-03 16:49:23 UTC 11,291 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2570],{2489:(e,t,s)=>{s.d(t,{f:()=>r});var i=s(55729);function r(){let[e,t]=(0,i.useState)("visible");return(0,i.useEffect)(()=>{t(document.visibilityState);let e=()=>t(document.visibilityState);return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),e}},6386:(e,t,s)=>{s.d(t,{K:()=>S});var i=s(80616),r=s(35228),l=s(37544),n=s(3389),o=s(43016),a=s(94613),u=s(63531),d=s(27273),c=s(76594),h=s(46084),p=s(75350),f=s(45213),v=s(61384),b=s(36307);function m(e){return"string"==typeof e?e.trim().toLowerCase():e}var y=s(55729),g=s(75897),O=s(3001),E=s(6029);let w={xs:41,sm:50,md:60,lg:72,xl:89},x={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:",",clearSearchOnChange:!0,openOnFocus:!0,size:"sm"},S=(0,o.Ok)(e=>{let t=(0,i.Y)("MultiSelect",x,e),{classNames:s,className:o,style:a,styles:S,unstyled:R,vars:C,size:j,value:_,defaultValue:D,onChange:Q,onKeyDown:$,variant:k,data:M,dropdownOpened:I,defaultDropdownOpened:P,onDropdownOpen:F,onDropdownClose:q,selectFirstOptionOnChange:H,selectFirstOptionOnDropdownOpen:B,onOptionSubmit:G,comboboxProps:L,filter:N,limit:U,withScrollArea:A,maxDropdownHeight:V,searchValue:z,defaultSearchValue:K,onSearchChange:T,readOnly:Y,disabled:Z,onFocus:J,onBlur:W,radius:X,rightSection:ee,rightSectionWidth:et,rightSectionPointerEvents:es,rightSectionProps:ei,leftSection:er,leftSectionWidth:el,leftSectionPointerEvents:en,leftSectionProps:eo,inputContainer:ea,inputWrapperOrder:eu,withAsterisk:ed,labelProps:ec,descriptionProps:eh,errorProps:ep,wrapperProps:ef,description:ev,label:eb,error:em,maxValues:ey,searchable:eg,nothingFoundMessage:eO,withCheckIcon:eE,withAlignedLabels:ew,checkIconPosition:ex,hidePickedOptions:eS,withErrorStyles:eR,name:eC,form:ej,id:e_,clearable:eD,clearSectionMode:eQ,clearButtonProps:e$,hiddenInputProps:ek,placeholder:eM,hiddenInputValuesDivider:eI,required:eP,mod:eF,renderOption:eq,renderPill:eH,onRemove:eB,onClear:eG,onMaxValues:eL,scrollAreaProps:eN,chevronColor:eU,attributes:eA,clearSearchOnChange:eV,openOnFocus:ez,...eK}=t,eT=(0,g.B)(e_),eY=(0,u.d)(M),eZ=(0,d.D)(eY),eJ=(0,y.useRef)({}),eW=(0,c.B)({opened:I,defaultOpened:P,onDropdownOpen:()=>{F?.(),B&&eW.selectFirstOption()},onDropdownClose:()=>{q?.(),eW.resetSelectedOption()}}),{styleProps:eX,rest:{type:e0,autoComplete:e1,...e4}}=(0,n.j)(eK),[e2,e5]=(0,O.Z)({value:_,defaultValue:D,finalValue:[],onChange:Q}),[e3,e9]=(0,O.Z)({value:z,defaultValue:K,finalValue:"",onChange:T}),e6=e=>{e9(e),eW.resetSelectedOption()},e7=(0,l.I)({name:"MultiSelect",classes:{},props:t,classNames:s,styles:S,unstyled:R,attributes:eA}),{resolvedClassNames:e8,resolvedStyles:te}=(0,r.Y)({props:t,styles:S,classNames:s}),tt=e2.map((e,t)=>{let s=eZ[`${e}`]||eJ.current[`${e}`];return eH?(0,E.jsx)(y.Fragment,{children:eH({option:s,value:e,onRemove:()=>{e5(e2.filter(t=>e!==t)),eB?.(e)},disabled:Z})},`${e}-${t}`):(0,E.jsx)(f.a,{withRemoveButton:!Y&&!eZ[`${e}`]?.disabled,onRemove:()=>{e5(e2.filter(t=>e!==t)),eB?.(e)},unstyled:R,disabled:Z,...e7("pill"),children:s?.label||e},`${e}-${t}`)});(0,y.useEffect)(()=>{H&&eW.selectFirstOption()},[H,e3]),(0,y.useEffect)(()=>{e2.forEach(e=>{`${e}`in eZ&&(eJ.current[`${e}`]=eZ[`${e}`])})},[eZ,e2]);let ts=(0,E.jsx)(h.G.ClearButton,{...e$,onClear:()=>{eG?.(),e5([]),e6("")}}),ti=function({data:e,value:t}){let s=t.map(m);return e.reduce((e,t)=>((0,b.c)(t)?e.push({group:t.group,items:t.items.filter(e=>-1===s.indexOf(m(e.value)))}):-1===s.indexOf(m(t.value))&&e.push(t),e),[])}({data:eY,value:e2}),tr=eD&&e2.length>0&&!Z&&!Y,tl=tr?{paddingInlineEnd:w[j]??w.sm}:void 0;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(h.G,{store:eW,classNames:e8,styles:te,unstyled:R,size:j,readOnly:Y,__staticSelector:"MultiSelect",attributes:eA,onOptionSubmit:e=>{G?.(e),eV&&e6(""),eW.updateSelectedOptionIndex("selected"),e2.includes(eZ[`${e}`].value)?(e5(e2.filter(t=>t!==eZ[`${e}`].value)),eB?.(eZ[`${e}`].value)):e2.length<ey?e5([...e2,eZ[`${e}`].value]):eL?.()},...L,children:[(0,E.jsx)(h.G.DropdownTarget,{children:(0,E.jsx)(v.t,{...eX,__staticSelector:"MultiSelect",classNames:e8,styles:te,unstyled:R,size:j,className:o,style:a,variant:k,disabled:Z,radius:X,__defaultRightSection:(0,E.jsx)(h.G.Chevron,{size:j,error:em,unstyled:R,color:eU}),__clearSection:ts,__clearable:tr,__clearSectionMode:eQ,rightSection:ee,rightSectionPointerEvents:es||"none",rightSectionWidth:et,rightSectionProps:ei,leftSection:er,leftSectionWidth:el,leftSectionPointerEvents:en,leftSectionProps:eo,inputContainer:ea,inputWrapperOrder:eu,withAsterisk:ed,labelProps:ec,descriptionProps:eh,errorProps:ep,wrapperProps:ef,description:ev,label:eb,error:em,withErrorStyles:eR,__stylesApiProps:{...t,rightSectionPointerEvents:es||"none",multiline:!0},pointer:!eg,onClick:()=>eg?eW.openDropdown():eW.toggleDropdown(),"data-expanded":eW.dropdownOpened||void 0,id:eT,required:eP,mod:eF,attributes:eA,children:(0,E.jsxs)(f.a.Group,{attributes:eA,disabled:Z,unstyled:R,...e7("pillsList",{style:tl}),children:[tt,(0,E.jsx)(h.G.EventsTarget,{autoComplete:e1,withExpandedAttribute:!0,children:(0,E.jsx)(v.t.Field,{...e4,id:eT,placeholder:eM,type:eg||eM?"visible":"hidden",...e7("inputField"),unstyled:R,onFocus:e=>{J?.(e),ez&&eg&&eW.openDropdown()},onBlur:e=>{W?.(e),eW.closeDropdown(),e6("")},onKeyDown:e=>{$?.(e)," "!==e.key||eg||(e.preventDefault(),eW.toggleDropdown()),"Backspace"===e.key&&0===e3.length&&e2.length>0&&(eB?.(e2[e2.length-1]),e5(e2.slice(0,e2.length-1)))},value:e3,onChange:e=>{e6(e.currentTarget.value),eg&&eW.openDropdown(),H&&eW.selectFirstOption()},disabled:Z,readOnly:Y||!eg,pointer:!eg})})]})})}),(0,E.jsx)(p.i,{data:eS?ti:eY,hidden:Y||Z,filter:N,search:e3,limit:U,hiddenWhenEmpty:!eO,withScrollArea:A,maxDropdownHeight:V,filterOptions:eg,value:e2,checkIconPosition:ex,withCheckIcon:eE,withAlignedLabels:ew,nothingFoundMessage:eO,unstyled:R,labelId:eb?`${eT}-label`:void 0,"aria-label":eb?void 0:eK["aria-label"],renderOption:eq,scrollAreaProps:eN})]}),(0,E.jsx)(h.G.HiddenInput,{name:eC,valuesDivider:eI,value:e2,form:ej,disabled:Z,...ek})]})});S.classes={...a.O.classes,...h.G.classes},S.displayName="@mantine/core/MultiSelect"},55533:(e,t,s)=>{s.d(t,{A:()=>i});let i=(0,s(41495).A)("outline","filter-edit","FilterEdit",[["path",{d:"M10.97 20.344l-1.97 .656v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39",key:"svg-1"}]])},61384:(e,t,s)=>{s.d(t,{t:()=>m});var i=s(80616),r=s(43016),l=s(94613),n=s(75268),o=s(37544),a=s(60481),u=s(1827),d={field:"m_45c4369d"},c=s(55729),h=s(56655),p=s(6029);let f={type:"visible"},v=(0,r.P9)(e=>{let t=(0,i.Y)("PillsInputField",f,e),{classNames:s,className:r,style:l,styles:v,unstyled:b,vars:m,type:y,disabled:g,id:O,pointer:E,mod:w,attributes:x,ref:S,...R}=t,C=(0,c.use)(n.K),j=(0,c.use)(u.Z),_=(0,o.I)({name:"PillsInputField",classes:d,props:t,className:r,style:l,classNames:s,styles:v,unstyled:b,attributes:x,rootSelector:"field"}),D=g||C?.disabled;return(0,p.jsx)(a.a,{component:"input",ref:(0,h.pc)(S,C?.fieldRef),"data-type":y,disabled:D,mod:[{disabled:D,pointer:E},w],..._("field"),...R,id:j?.inputId||O,"aria-invalid":C?.hasError,"aria-describedby":j?.describedBy,type:"text",onMouseDown:e=>!E&&e.stopPropagation()})});v.classes=d,v.displayName="@mantine/core/PillsInputField";let b={size:"sm"},m=(0,r.P9)(e=>{let{children:t,onMouseDown:s,onClick:r,size:o,disabled:a,__staticSelector:u,error:d,variant:h,...f}=(0,i.Y)("PillsInput",b,e),v=(0,c.useRef)(null);return(0,p.jsx)(n.K,{value:{fieldRef:v,size:o,disabled:a,hasError:!!d,variant:h},children:(0,p.jsx)(l.O,{size:o,error:d,variant:h,component:"div","data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),s?.(e),v.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest("fieldset")?.disabled||(v.current?.focus(),r?.(e))},...f,multiline:!0,disabled:a,__staticSelector:u||"PillsInput",withAria:!1,children:t})})});m.displayName="@mantine/core/PillsInput",m.classes=l.O.classes,m.Field=v},78075:(e,t,s)=>{s.d(t,{E:()=>v});var i=s(55729),r=s(95913),l=s(28171),n=s(24090),o=s(4308);function a(e,t){return e.filter(e=>!t.includes(e))}var u=class extends n.Q{#e;#t;#s;#i;#r;#l;#n;constructor(e,t,s){super(),this.#e=e,this.#s=[],this.#i=[],this.#t=[],this.setQueries(t)}
1onSubscribe(){1===this.listeners.size&&this.#i.forEach(e=>{e.subscribe(t=>{this.#o(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t,s){this.#s=e,r.j.batch(()=>{let e=this.#i,t=this.#a(this.#s);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,s));let i=t.map(e=>e.observer),r=i.map(e=>e.getCurrentResult()),l=i.some((t,s)=>t!==e[s]);e.length===i.length&&!l||(this.#i=i,this.#t=r,this.hasListeners()&&(a(e,i).forEach(e=>{e.destroy()}),a(i,e).forEach(e=>{e.subscribe(t=>{this.#o(e,t)})}),this.#u()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let s=this.#a(e),i=s.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[i,e=>this.#d(e??i,t),()=>s.map((e,t)=>{let r=i[t];return e.defaultedQueryOptions.notifyOnChangeProps?r:e.observer.trackResult(r,e=>{s.forEach(t=>{t.observer.trackProp(e)})})})]}#d(e,t){return t?(this.#r&&this.#t===this.#n&&t===this.#l||(this.#l=t,this.#n=this.#t,this.#r=(0,o.BH)(this.#r,t(e))),this.#r):e}#a(e){let t=new Map(this.#i.map(e=>[e.options.queryHash,e])),s=e.map(e=>this.#e.defaultQueryOptions(e)),i=s.flatMap(e=>{let s=t.get(e.queryHash);return null!=s?[{defaultedQueryOptions:e,observer:s}]:[]}),r=new Set(i.map(e=>e.defaultedQueryOptions.queryHash)),n=s.filter(e=>!r.has(e.queryHash)),o=e=>{let t=this.#e.defaultQueryOptions(e);return this.#i.find(e=>e.options.queryHash===t.queryHash)??new l.$(this.#e,t)},a=n.map(e=>({defaultedQueryOptions:e,observer:o(e)}));return i.concat(a).sort((e,t)=>s.indexOf(e.defaultedQueryOptions)-s.indexOf(t.defaultedQueryOptions))}#o(e,t){let s=this.#i.indexOf(e);if(-1!==s){var i;let e;this.#t=(i=this.#t,(e=i.slice(0))[s]=t,e),this.#u()}}#u(){r.j.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}},d=s(93251),c=s(29452),h=s(79890),p=s(88678),f=s(75407);function v({queries:e,...t},s){let n=(0,d.jE)(s),o=(0,c.w)(),a=(0,h.h)(),v=i.useMemo(()=>e.map(e=>{let t=n.defaultQueryOptions(e);return t._optimisticResults=o?"isRestoring":"optimistic",t}),[e,n,o]);v.forEach(e=>{(0,f.jv)(e),(0,p.LJ)(e,a)}),(0,p.wZ)(a);let[b]=i.useState(()=>new u(n,v,t)),[m,y,g]=b.getOptimisticResult(v,t.combine);i.useSyncExternalStore(i.useCallback(e=>o?()=>void 0:b.subscribe(r.j.batchCalls(e)),[b,o]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),i.useEffect(()=>{b.setQueries(v,t,{listeners:!1})},[v,t,b]);let O=m.some((e,t)=>(0,f.EU)(v[t],e))?m.flatMap((e,t)=>{let s=v[t];if(s){let t=new l.$(n,s);if((0,f.EU)(s,e))return(0,f.iL)(s,t,a);(0,f.nE)(e,o)&&(0,f.iL)(s,t,a)}return[]}):[];if(O.length>0)throw Promise.all(O);let E=m.find((e,t)=>{let s=v[t];return s&&(0,p.$1)({result:e,errorResetBoundary:a,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash)})});if(E?.error)throw E.error;return y(g())}}}]);

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.