PageSourceSearch

https://www.claytonsulby.com/_next/static/chunks/8846.a9389014cf997176.js

js claytonsulby.com collected 2026-09-25 22:17:11 UTC 10,289 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8846],{38846:(e,t,o)=>{o.r(t),o.d(t,{default:()=>y});var r=o(73425),n=o(47680),a=o(13353),l=o(86161),c=o(39893),i=o(25193),d=o(72335),u=o(94107),m=o(37247),s=o(83199);let g=[{name:"groq",loader:()=>Promise.all([o.e(3353),o.e(3325)]).then(o.bind(o,53325)).then(e=>{let{javascriptLanguage:t}=e;return t})},{name:"javascript",loader:()=>Promise.all([o.e(3353),o.e(3325)]).then(o.bind(o,53325)).then(e=>{let{javascript:t}=e;return t({jsx:!1})})},{name:"jsx",loader:()=>Promise.all([o.e(3353),o.e(3325)]).then(o.bind(o,53325)).then(e=>{let{javascript:t}=e;return t({jsx:!0})})},{name:"typescript",loader:()=>Promise.all([o.e(3353),o.e(3325)]).then(o.bind(o,53325)).then(e=>{let{javascript:t}=e;return t({jsx:!1,typescript:!0})})},{name:"tsx",loader:()=>Promise.all([o.e(3353),o.e(3325)]).then(o.bind(o,53325)).then(e=>{let{javascript:t}=e;return t({jsx:!0,typescript:!0})})},{name:"php",loader:()=>Promise.all([o.e(3353),o.e(3325),o.e(4743),o.e(2616)]).then(o.bind(o,62616)).then(e=>{let{php:t}=e;return t()})},{name:"sql",loader:()=>Promise.all([o.e(3353),o.e(4040)]).then(o.bind(o,84040)).then(e=>{let{sql:t}=e;return t()})},{name:"mysql",loader:()=>Promise.all([o.e(3353),o.e(4040)]).then(o.bind(o,84040)).then(e=>{let{sql:t,MySQL:o}=e;return t({dialect:o})})},{name:"json",loader:()=>Promise.all([o.e(3353),o.e(3254)]).then(o.bind(o,43254)).then(e=>{let{json:t}=e;return t()})},{name:"markdown",loader:()=>Promise.all([o.e(3353),o.e(3325),o.e(4743),o.e(6001)]).then(o.bind(o,16001)).then(e=>{let{markdown:t}=e;return t()})},{name:"java",loader:()=>Promise.all([o.e(3353),o.e(6017)]).then(o.bind(o,66017)).then(e=>{let{java:t}=e;return t()})},{name:"html",loader:()=>Promise.all([o.e(3353),o.e(3325),o.e(4743)]).then(o.bind(o,34743)).then(e=>{let{html:t}=e;return t()})},{name:"csharp",loader:()=>o.e(3170).then(o.bind(o,33170)).then(e=>{let{csharp:t}=e;return d.Tg.define(t)})},{name:"sh",loader:()=>o.e(9478).then(o.bind(o,29478)).then(e=>{let{shell:t}=e;return d.Tg.define(t)})},{name:"css",loader:()=>o.e(3671).then(o.bind(o,43671)).then(e=>{let{css:t}=e;return d.Tg.define(t)})},{name:"scss",loader:()=>o.e(3671).then(o.bind(o,43671)).then(e=>{let{css:t}=e;return d.Tg.define(t)})},{name:"sass",loader:()=>o.e(8806).then(o.bind(o,28806)).then(e=>{let{sass:t}=e;return d.Tg.define(t)})},{name:"ruby",loader:()=>o.e(1792).then(o.bind(o,41792)).then(e=>{let{ruby:t}=e;return d.Tg.define(t)})},{name:"python",loader:()=>o.e(526).then(o.bind(o,10526)).then(e=>{let{python:t}=e;return d.Tg.define(t)})},{name:"xml",loader:()=>o.e(8577).then(o.bind(o,18577)).then(e=>{let{xml:t}=e;return d.Tg.define(t)})},{name:"yaml",loader:()=>o.e(839).then(o.bind(o,40839)).then(e=>{let{yaml:t}=e;return d.Tg.define(t)})},{name:"golang",loader:()=>o.e(6714).then(o.bind(o,16714)).then(e=>{let{go:t}=e;return d.Tg.define(t)})},{name:"text",loader:()=>{}},{name:"batch",loader:()=>{}}];function h(e){return"neutral"!==e.tone&&"suggest"!==e.tone?e.tone:"neutral"===e.tone?"default":"primary"}let f="cm-highlight-line",b=u.Pe.define(),p=u.Pe.define(),k=u.sU.define({create:()=>n.NZ.none,update(e,t){for(let o of(e=e.map(t.changes),t.effects))o.is(b)&&(e=e.update({add:[A.range(o.value)]})),o.is(p)&&(e=e.update({filter:e=>e!==o.value}));return e},toJSON(e,t){let o=[],r=e.iter();for(;r.value;){let e=t.doc.lineAt(r.from).number;o.includes(e)||o.push(e),r.next()}return o},fromJSON(e,t){let o=t.doc.lines,r=e.filter(e=>e<=o).map(e=>A.range(t.doc.line(e).from));r.sort((e,t)=>e.from-t.from);try{return n.NZ.none.update({add:r})}catch(e){return console.error(e),n.NZ.none}},provide:e=>n.Lz.decorations.from(e)}),A=n.NZ.line({class:f}),_={highlight:k},y=(0,c.forwardRef)(function(e,t){let{basicSetup:o,highlightLines:u,languageMode:A,onHighlightChange:y,readOnly:v,value:N,...x}=e,B=(0,a.GG)(),C=function(){let e=(0,a.DP)();return(0,c.useMemo)(()=>{var t,o,r,a,l,c,i,u,g,h;let{code:f}=e.sanity.fonts,{base:b,card:p,dark:k,syntax:A}=e.sanity.color;return o=(t={theme:k?"dark":"light",settings:{background:p.enabled.bg,foreground:p.enabled.code.fg,lineHighlight:p.enabled.bg,fontFamily:f.family,caret:b.focusRing,selection:(0,m.B3)(b.focusRing,.2),selectionMatch:(0,m.B3)(b.focusRing,.4),gutterBackgroun
1d:p.disabled.bg,gutterForeground:p.disabled.code.fg,gutterActiveForeground:p.enabled.fg},styles:[{tag:[s._A.heading,s._A.heading2,s._A.heading3,s._A.heading4,s._A.heading5,s._A.heading6],color:p.enabled.fg},{tag:s._A.angleBracket,color:p.enabled.code.fg},{tag:s._A.atom,color:A.keyword},{tag:s._A.attributeName,color:A.attrName},{tag:s._A.bool,color:A.boolean},{tag:s._A.bracket,color:p.enabled.code.fg},{tag:s._A.className,color:A.className},{tag:s._A.comment,color:A.comment},{tag:s._A.definition(s._A.typeName),color:A.function},{tag:[s._A.definition(s._A.variableName),s._A.function(s._A.variableName),s._A.className,s._A.attributeName],color:A.function},{tag:[s._A.function(s._A.propertyName),s._A.propertyName],color:A.function},{tag:s._A.keyword,color:A.keyword},{tag:s._A.null,color:A.number},{tag:s._A.number,color:A.number},{tag:s._A.meta,color:p.enabled.code.fg},{tag:s._A.operator,color:A.operator},{tag:s._A.propertyName,color:A.property},{tag:[s._A.string,s._A.special(s._A.brace)],color:A.string},{tag:s._A.tagName,color:A.className},{tag:s._A.typeName,color:A.keyword}]}).theme,a=void 0===(r=t.settings)?{}:r,l=t.styles,c={".cm-gutters":{}},i={},a.background&&(i.backgroundColor=a.background),a.backgroundImage&&(i.backgroundImage=a.backgroundImage),a.foreground&&(i.color=a.foreground),a.fontSize&&(i.fontSize=a.fontSize),(a.background||a.foreground)&&(c["&"]=i),a.fontFamily&&(c["&.cm-editor .cm-scroller"]={fontFamily:a.fontFamily}),a.gutterBackground&&(c[".cm-gutters"].backgroundColor=a.gutterBackground),a.gutterForeground&&(c[".cm-gutters"].color=a.gutterForeground),a.gutterBorder&&(c[".cm-gutters"].borderRightColor=a.gutterBorder),a.caret&&(c[".cm-content"]={caretColor:a.caret},c[".cm-cursor, .cm-dropCursor"]={borderLeftColor:a.caret}),u={},a.gutterActiveForeground&&(u.color=a.gutterActiveForeground),a.lineHighlight&&(c[".cm-activeLine"]={backgroundColor:a.lineHighlight},u.backgroundColor=a.lineHighlight),c[".cm-activeLineGutter"]=u,a.selection&&(c["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:a.selection+" !important"}),a.selectionMatch&&(c["& .cm-selectionMatch"]={backgroundColor:a.selectionMatch}),g=n.Lz.theme(c,{dark:"dark"===o}),h=d.cr.define(void 0===l?[]:l),[g,(0,d.y9)(h)]},[e])}(),[P,z]=(0,c.useState)(void 0),w=function(){let e=(0,a.GG)();return(0,c.useMemo)(()=>{let t=h(e),o={color:e.theme.color.dark[t]},r={color:e.theme.color.light[t]};return n.Lz.baseTheme({"&.cm-editor":{height:"100%"},"&.cm-editor.cm-focused":{outline:"none"},"&.cm-editor.cm-focused .cm-matchingBracket":{backgroundColor:"transparent"},"&.cm-editor.cm-focused .cm-nonmatchingBracket":{backgroundColor:"transparent"},"&dark.cm-editor.cm-focused .cm-matchingBracket":{outline:"1px solid ".concat(o.color.base.border)},"&dark.cm-editor.cm-focused .cm-nonmatchingBracket":{outline:"1px solid ".concat(o.color.base.border)},"&light.cm-editor.cm-focused .cm-matchingBracket":{outline:"1px solid ".concat(r.color.base.border)},"&light.cm-editor.cm-focused .cm-nonmatchingBracket":{outline:"1px solid ".concat(r.color.base.border)},"& .cm-lineNumbers .cm-gutterElement":{minWidth:"32px !important",padding:"0 8px !important"},"& .cm-gutter.cm-foldGutter":{width:"0px !important"},"&dark .cm-gutters":{color:"".concat((0,m.B3)(o.color.card.enabled.code.fg,.5)," !important"),borderRight:"1px solid ".concat((0,m.B3)(o.color.base.border,.5))},"&light .cm-gutters":{color:"".concat((0,m.B3)(r.color.card.enabled.code.fg,.5)," !important"),borderRight:"1px solid ".concat((0,m.B3)(r.color.base.border,.5))}})},[e])}(),M=function(e){let{fontSize:t}=e,o=(0,a.DP)();return(0,c.useMemo)(()=>{let{code:e}=o.sanity.fonts,{fontSize:r,lineHeight:l}=e.sizes[t]||e.sizes[2];return n.Lz.baseTheme({"&":{fontSize:(0,a.D0)(r)},"& .cm-scroller":{lineHeight:"".concat(l/r," !important")}})},[t,o])}({fontSize:1}),S=function(e){let t=(0,c.useContext)(i.Zy),[o,r]=(0,c.useState)();return(0,c.useEffect)(()=>{var o;let n=[...null!=(o=null==t?void 0:t.codeModes)?o:[],...g].find(t=>t.name===e);(null==n?void 0:n.loader)||console.warn("Found no codeMode for language mode ".concat(e,", syntax highlighting will be disabled."));let a=!0;return Promise.resolve(null==n?void 0:n.loader()).then(e=>{a&&r(e)}).catch(t=>{console.error("Failed to load language mode ".concat(e),t),a&&r(void 0)}),()=>{a=!1}},[e,t]),o}(A),T=(0,c.useMemo)(()=>(e=>{let t=function(e){let{themeCtx:t}=e,o=h(t),r={color:t.theme.color.dark[o]},a={color:t.theme.color.light[o]};return n.Lz.baseTheme({".cm-lineNumbers":{cursor:"default"},".cm-line.cm-line":{position:"relative"},[".".concat(f,"::before")]:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:-3,content:"''",boxSizing:"border-box"},["&dark .".concat(f,"::before")]:{background:(0,m.B3)(r.color.muted.caution.pressed.bg,.5)},["&light .".concat(f,"::before")]:{background:(0,m.B3)(a.color.muted.caution.pressed.bg,.75)}})}({themeCtx:e.theme});return[k,e.readOnly?[]:(0,n.$K)({domEventHandlers:{mousedown:(t,o)=>{let r=t.state.doc.lineAt(o.from),n=!1;return t.state.field(k).between(r.from,r.to,(e,t,o)=>{if(o)return n=!0,!1}),n?t.dispatch({effects:p.of(r.from)}):t.dispatch({effects:b.of(r.from)}),(null==e?void 0:e.onHighlightChange)&&e.onHighlightChange(t.state.toJSON(_).highlight),!0}}}),t]})({onHighlightChange:y,readOnly:v,theme:B}),[y,v,B]),F=(0,c.useMemo)(()=>{let e=[w,M,T,n.Lz.lineWrapping];return S?[...e,S]:e},[M,T,S,w]);(0,c.useEffect)(()=>{P&&function(e,t){let o=e.state.doc,r=Array.from({length:o.lines},(e,t)=>t+1);e.dispatch({effects:r.map(e=>{let r=o.line(e);return(null==t?void 0:t.includes(e))?b.of(r.from):p.of(r.from)})})}(P,null!=u?u:[])},[P,u,N]);let L=(0,c.useMemo)(()=>({json:{doc:null!=N?N:"",selection:{main:0,ranges:[{anchor:0,head:0}]},highlight:null!=u?u:[]},fields:_}),[]),j=(0,c.useCallback)(e=>{z(e)},[]),H=(0,c.useMemo)(()=>null!=o?o:{highlightActiveLine:!1},[o]);return(0,r.jsx)(l.Ay,{...x,value:N,ref:t,extensions:F,theme:C,onCreateEditor:j,initialState:L,basicSetup:H})})}}]);

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.