PageSourceSearch

https://www.thomasneviaser.com/_next/static/chunks/25979.4aaaff389c034734.js

js thomasneviaser.com collected 2026-09-27 07:59:56 UTC 11,023 bytes, 28 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25979],{25979:(e,t,o)=>{o.d(t,{A:()=>P});var r=o(55729);let l=r.createContext(null);function s(){return r.useContext(l)}let n="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var i=o(6029);let c=function(e){let{children:t,theme:o}=e,c=s(),a=r.useMemo(()=>{var e,t;let r=null===c?{...o}:(e=c,"function"==typeof(t=o)?t(e):{...e,...t});return null!=r&&(r[n]=null!==c),r},[o,c]);return(0,i.jsx)(l.Provider,{value:a,children:t})};var a=o(87905),d=o(38756),m=o(21787),u=o(73302),h=o(57450),f=o(46462),g=o(57332);let y={};function S(e,t,o,l=!1){return r.useMemo(()=>{let r=e&&t[e]||t;if("function"==typeof o){let s=o(r),n=e?{...t,[e]:s}:s;return l?()=>n:n}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,l])}let p=function(e){let{children:t,theme:o,themeId:r}=e,l=(0,d.A)(y),n=s()||y,p=S(r,l,o),v=S(r,n,o,!0),k="rtl"===(r?p[r]:p).direction,C=function(e){let t=(0,d.A)(),o=(0,f.A)()||"",{modularCssLayers:r}=e,l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return(l=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,l):`@layer ${l};`:"",(0,h.A)(()=>{let e=document.querySelector("head");if(!e)return;let t=e.firstChild;if(l){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===o)return;let r=document.createElement("style");r.setAttribute("data-mui-layer-order",o),r.textContent=l,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${o}"]`)?.remove()},[l,o]),l)?(0,i.jsx)(g.A,{styles:l}):null}(p);return(0,i.jsx)(c,{theme:v,children:(0,i.jsx)(a.T.Provider,{value:p,children:(0,i.jsx)(m.A,{value:k,children:(0,i.jsxs)(u.A,{value:r?p[r].components:p.components,children:[C,t]})})})})};var v=o(92256);function k(e){let{theme:t,...o}=e,r=v.A in t?t[v.A]:void 0;return(0,i.jsx)(p,{...o,themeId:r?v.A:void 0,theme:r||t})}var C=o(1544),b=o(69667);let w="mode",$="color-scheme";function A(){}let x=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(o){let r;if("undefined"!=typeof window){if(!t)return o;try{r=t.localStorage.getItem(e)}catch{}return r||o}},set:o=>{if(t)try{t.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!t)return A;let r=t=>{let r=t.newValue;t.key===e&&o(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function M(){}function j(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function E(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}var _=o(57596),I=o(91998);let L={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:K,useColorScheme:T,getInitColorSchemeScript:V}=function(e){let{themeId:t,theme:o={},modeStorageKey:l=w,colorSchemeStorageKey:n=$,disableTransitionOnChange:c=!1,defaultColorScheme:a,resolveTheme:d}=e,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=r.createContext(void 0),f={},g={},y="string"==typeof a?a:a.light,S="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){let{children:m,theme:y,modeStorageKey:S=l,colorSchemeStorageKey:v=n,disableTransitionOnChange:k=c,storageManager:C,storageWindow:A="undefined"==typeof window?void 0:window,documentNode:_="undefined"==typeof document?void 0:document,colorSchemeNode:I="undefined"==typeof document?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:K=!1,defaultMode:T="system",forceThemeRerender:V=!1,noSsr:P}=e,q=r.useRef(!1),N=s(),W=r.useContext(u),D=!!W&&!L,H=r.useMemo(()=>y||("function"==typeof o?o():o),[y]),O=H[t],R=O||H,{colorSchemes:z=f,components:F=g,cssVarPrefix:B}=R,G=Object.keys(z).filter(e=>!!z[e]).join(","),J=r.useMemo(()=>G.split(","),[G]),Q="string"==typeof a?a:a.light,U="string"==typeof a?a:a.dark,X=z[Q]&&z[U]?T:z[R.defaultColorScheme]?.palette?.mode||R.palette?.mode,{mode:Y,setMode:Z,systemMode:ee,lightColorScheme:et,darkColorScheme:eo,colorScheme:er,setColorScheme:el}=function(e){let{defaultMode:t="light",defaultLightColorScheme:o,defaultDar
1kColorScheme:l,supportedColorSchemes:s=[],modeStorageKey:n=w,colorSchemeStorageKey:i=$,storageWindow:c="undefined"==typeof window?void 0:window,storageManager:a=x,noSsr:d=!1}=e,m=s.join(","),u=s.length>1,h=r.useMemo(()=>a?.({key:n,storageWindow:c}),[a,n,c]),f=r.useMemo(()=>a?.({key:`${i}-light`,storageWindow:c}),[a,i,c]),g=r.useMemo(()=>a?.({key:`${i}-dark`,storageWindow:c}),[a,i,c]),[y,S]=r.useState(()=>{let e=h?.get(t)||t,r=f?.get(o)||o,s=g?.get(l)||l;return{mode:e,systemMode:j(e),lightColorScheme:r,darkColorScheme:s}}),[p,v]=r.useState(d||!u);r.useEffect(()=>{v(!0)},[]);let k=E(y,e=>"light"===e?y.lightColorScheme:"dark"===e?y.darkColorScheme:void 0),C=r.useCallback(e=>{S(o=>{if(e===o.mode)return o;let r=e??t;return h?.set(r),{...o,mode:r,systemMode:j(r)}})},[h,t]),b=r.useCallback(e=>{e?"string"==typeof e?e&&!m.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):S(t=>{let o={...t};return E(t,t=>{"light"===t&&(f?.set(e),o.lightColorScheme=e),"dark"===t&&(g?.set(e),o.darkColorScheme=e)}),o}):S(t=>{let r={...t},s=null===e.light?o:e.light,n=null===e.dark?l:e.dark;return s&&(m.includes(s)?(r.lightColorScheme=s,f?.set(s)):console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)),n&&(m.includes(n)?(r.darkColorScheme=n,g?.set(n)):console.error(`\`${n}\` does not exist in \`theme.colorSchemes\`.`)),r}):S(e=>(f?.set(o),g?.set(l),{...e,lightColorScheme:o,darkColorScheme:l}))},[m,f,g,o,l]),A=r.useCallback(e=>{"system"===y.mode&&S(t=>{let o=e?.matches?"dark":"light";return t.systemMode===o?t:{...t,systemMode:o}})},[y.mode]),_=r.useRef(A);return _.current=A,r.useEffect(()=>{if("function"!=typeof window.matchMedia||!u)return;let e=(...e)=>_.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[u]),r.useEffect(()=>{if(u){let e=h?.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&C(e||t)})||M,o=f?.subscribe(e=>{(!e||m.match(e))&&b({light:e})})||M,r=g?.subscribe(e=>{(!e||m.match(e))&&b({dark:e})})||M;return()=>{e(),o(),r()}}},[b,C,m,t,c,u,h,f,g]),{...y,mode:p?y.mode:void 0,systemMode:p?y.systemMode:void 0,colorScheme:p?k:void 0,setMode:C,setColorScheme:b}}({supportedColorSchemes:J,defaultLightColorScheme:Q,defaultDarkColorScheme:U,modeStorageKey:S,colorSchemeStorageKey:v,defaultMode:X,storageManager:C,storageWindow:A,noSsr:P}),es=Y,en=er;D&&(es=W.mode,en=W.colorScheme);let ei=en||R.defaultColorScheme;R.vars&&!V&&(ei=R.defaultColorScheme);let ec=r.useMemo(()=>{let e=R.generateThemeVars?.()||R.vars,t={...R,components:F,colorSchemes:z,cssVarPrefix:B,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),ei){let e=z[ei];e&&"object"==typeof e&&Object.keys(e).forEach(o=>{e[o]&&"object"==typeof e[o]?t[o]={...t[o],...e[o]}:t[o]=e[o]})}return d?d(t):t},[R,ei,F,z,B]),ea=R.colorSchemeSelector;(0,h.A)(()=>{if(en&&I&&ea&&"media"!==ea){let e=ea;if("class"===ea&&(e=".%s"),"data"===ea&&(e="[data-%s]"),ea?.startsWith("data-")&&!ea.includes("%s")&&(e=`[${ea}="%s"]`),e.startsWith("."))I.classList.remove(...J.map(t=>e.substring(1).replace("%s",t))),I.classList.add(e.substring(1).replace("%s",en));else{let t=e.replace("%s",en).match(/\[([^\]]+)\]/);if(t){let[e,o]=t[1].split("=");o||J.forEach(t=>{I.removeAttribute(e.replace(en,t))}),I.setAttribute(e,o?o.replace(/"|'/g,""):"")}else I.setAttribute(e,en)}}},[en,ea,I,J]),r.useEffect(()=>{let e;if(k&&q.current&&_){let t=_.createElement("style");t.appendChild(_.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),_.head.appendChild(t),window.getComputedStyle(_.body),e=setTimeout(()=>{_.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[en,k,_]),r.useEffect(()=>(q.current=!0,()=>{q.current=!1}),[]);let ed=r.useMemo(()=>({allColorSchemes:J,colorScheme:en,darkColorScheme:eo,lightColorScheme:et,mode:es,setColorScheme:el,setMode:Z,systemMode:ee}),[J,en,eo,et,es,el,Z,ee,ec.colorSchemeSelector]),em=!0;(K||!1===R.cssVariables||D&&N?.cssVarPrefix===B)&&(em=!1);let eu=(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(p,{themeId:O?t:void 0,theme:ec,children:m}),em&&(0,i.jsx)(b.A,{styles:ec.generateStyleSheets?.()||[]})]});return D?eu:(0,i.jsx)(u.Provider,{value:ed,children:eu})},useColorScheme:()=>r.useContext(u)||m,getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="system",defaultLightColorScheme:o="light",defaultDar
1kColorScheme:r="dark",modeStorageKey:l=w,colorSchemeStorageKey:s=$,attribute:n="data-color-scheme",colorSchemeNode:c="document.documentElement",nonce:a}=e||{},d="",m=n;if("class"===n&&(m=".%s"),"data"===n&&(m="[data-%s]"),m.startsWith(".")){let e=m.substring(1);d+=`${c}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
2      ${c}.classList.add('${e}'.replace('%s', colorScheme));`}let u=m.match(/\[([^[\]]+)\]/);if(u){let[e,t]=u[1].split("=");t||(d+=`${c}.removeAttribute('${e}'.replace('%s', light));
3      ${c}.removeAttribute('${e}'.replace('%s', dark));`),d+=`
4      ${c}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else".%s"!==m&&(d+=`${c}.setAttribute('${m}', colorScheme);`);return(0,i.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?a:"",dangerouslySetInnerHTML:{__html:`(function() {
5try {
6  let colorScheme = '';
7  const mode = localStorage.getItem('${l}') || '${t}';
8  const dark = localStorage.getItem('${s}-dark') || '${r}';
9  const light = localStorage.getItem('${s}-light') || '${o}';
10  if (mode === 'system') {
11    // handle system mode
12    const mql = window.matchMedia('(prefers-color-scheme: dark)');
13    if (mql.matches) {
14      colorScheme = dark
15    } else {
16      colorScheme = light
17    }
18  }
19  if (mode === 'light') {
20    colorScheme = light;
21  }
22  if (mode === 'dark') {
23    colorScheme = dark;
24  }
25  if (colorScheme) {
26    ${d}
27  }
28} catch(e){}})();`}},"mui-color-scheme-init")})({colorSchemeStorageKey:n,defaultLightColorScheme:y,defaultDarkColorScheme:S,modeStorageKey:l,...e})}}({themeId:v.A,theme:()=>(0,_.A)({cssVariables:!0}),colorSchemeStorageKey:L.colorSchemeStorageKey,modeStorageKey:L.modeStorageKey,defaultColorScheme:{light:L.defaultLightColorScheme,dark:L.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:(0,I.A)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,C.A)({sx:e,theme:this})},t}});function P(e){let{theme:t,...o}=e,l=r.useMemo(()=>{if("function"==typeof t)return t;let e=v.A in t?t[v.A]:t;return"colorSchemes"in e?null:"vars"in e?t:{...t,vars:null}},[t]);return l?(0,i.jsx)(k,{theme:l,...o}):(0,i.jsx)(K,{theme:t,...o})}}}]);

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.