main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

7
node_modules/next-themes/dist/index.d.mts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import * as React from 'react';
import { UseThemeProps, ThemeProviderProps } from './types.mjs';
declare const useTheme: () => UseThemeProps;
declare const ThemeProvider: (props: ThemeProviderProps) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
export { ThemeProvider, useTheme };

7
node_modules/next-themes/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import * as React from 'react';
import { UseThemeProps, ThemeProviderProps } from './types.js';
declare const useTheme: () => UseThemeProps;
declare const ThemeProvider: (props: ThemeProviderProps) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
export { ThemeProvider, useTheme };

1
node_modules/next-themes/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
"use client";var N=Object.create;var P=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var z=(e,n)=>{for(var s in n)P(e,s,{get:n[s],enumerable:!0})},T=(e,n,s,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of U(n))!j.call(e,r)&&r!==s&&P(e,r,{get:()=>n[r],enumerable:!(u=O(n,r))||u.enumerable});return e};var J=(e,n,s)=>(s=e!=null?N(_(e)):{},T(n||!e||!e.__esModule?P(s,"default",{value:e,enumerable:!0}):s,e)),V=e=>T(P({},"__esModule",{value:!0}),e);var Y={};z(Y,{ThemeProvider:()=>B,useTheme:()=>q});module.exports=V(Y);var t=J(require("react")),C=["light","dark"],L="(prefers-color-scheme: dark)",H=typeof window=="undefined",M=t.createContext(void 0),b={setTheme:e=>{},themes:[]},q=()=>{var e;return(e=t.useContext(M))!=null?e:b},B=e=>t.useContext(M)?e.children:t.createElement(G,{...e}),F=["light","dark"],G=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:r="theme",themes:a=F,defaultTheme:c=s?"system":"light",attribute:g="data-theme",value:p,children:k,nonce:w})=>{let[d,l]=t.useState(()=>I(r,c)),[S,m]=t.useState(()=>I(r)),f=p?Object.values(p):a,R=t.useCallback(o=>{let i=o;if(!i)return;o==="system"&&s&&(i=A());let y=p?p[i]:i,E=n?X():null,x=document.documentElement;if(g==="class"?(x.classList.remove(...f),y&&x.classList.add(y)):y?x.setAttribute(g,y):x.removeAttribute(g),u){let Q=C.includes(c)?c:null,D=C.includes(i)?i:Q;x.style.colorScheme=D}E==null||E()},[]),h=t.useCallback(o=>{let i=typeof o=="function"?o(o):o;l(i);try{localStorage.setItem(r,i)}catch(y){}},[e]),$=t.useCallback(o=>{let i=A(o);m(i),d==="system"&&s&&!e&&R("system")},[d,e]);t.useEffect(()=>{let o=window.matchMedia(L);return o.addListener($),$(o),()=>o.removeListener($)},[$]),t.useEffect(()=>{let o=i=>{if(i.key!==r)return;let y=i.newValue||c;h(y)};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)},[h]),t.useEffect(()=>{R(e!=null?e:d)},[e,d]);let v=t.useMemo(()=>({theme:d,setTheme:h,forcedTheme:e,resolvedTheme:d==="system"?S:d,themes:s?[...a,"system"]:a,systemTheme:s?S:void 0}),[d,h,e,S,s,a]);return t.createElement(M.Provider,{value:v},t.createElement(W,{forcedTheme:e,disableTransitionOnChange:n,enableSystem:s,enableColorScheme:u,storageKey:r,themes:a,defaultTheme:c,attribute:g,value:p,children:k,attrs:f,nonce:w}),k)},W=t.memo(({forcedTheme:e,storageKey:n,attribute:s,enableSystem:u,enableColorScheme:r,defaultTheme:a,value:c,attrs:g,nonce:p})=>{let k=a==="system",w=s==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${g.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${s}',s='setAttribute';`,d=r?(C.includes(a)?a:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",l=(m,f=!1,R=!0)=>{let h=c?c[m]:m,$=f?m+"|| ''":`'${h}'`,v="";return r&&R&&!f&&C.includes(m)&&(v+=`d.style.colorScheme = '${m}';`),s==="class"?f||h?v+=`c.add(${$})`:v+="null":h&&(v+=`d[s](n,${$})`),v},S=e?`!function(){${w}${l(e)}}()`:u?`!function(){try{${w}var e=localStorage.getItem('${n}');if('system'===e||(!e&&${k})){var t='${L}',m=window.matchMedia(t);if(m.media!==t||m.matches){${l("dark")}}else{${l("light")}}}else if(e){${c?`var x=${JSON.stringify(c)};`:""}${l(c?"x[e]":"e",!0)}}${k?"":"else{"+l(a,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${w}var e=localStorage.getItem('${n}');if(e){${c?`var x=${JSON.stringify(c)};`:""}${l(c?"x[e]":"e",!0)}}else{${l(a,!1,!1)};}${d}}catch(t){}}();`;return t.createElement("script",{nonce:p,dangerouslySetInnerHTML:{__html:S}})}),I=(e,n)=>{if(H)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||n},X=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},A=e=>(e||(e=window.matchMedia(L)),e.matches?"dark":"light");0&&(module.exports={ThemeProvider,useTheme});

1
node_modules/next-themes/dist/index.mjs generated vendored Normal file
View File

@@ -0,0 +1 @@
"use client";import*as t from"react";var P=["light","dark"],E="(prefers-color-scheme: dark)",Q=typeof window=="undefined",L=t.createContext(void 0),D={setTheme:e=>{},themes:[]},j=()=>{var e;return(e=t.useContext(L))!=null?e:D},z=e=>t.useContext(L)?e.children:t.createElement(O,{...e}),N=["light","dark"],O=({forcedTheme:e,disableTransitionOnChange:a=!1,enableSystem:n=!0,enableColorScheme:g=!0,storageKey:m="theme",themes:c=N,defaultTheme:o=n?"system":"light",attribute:y="data-theme",value:h,children:k,nonce:w})=>{let[i,d]=t.useState(()=>M(m,o)),[S,l]=t.useState(()=>M(m)),u=h?Object.values(h):c,R=t.useCallback(s=>{let r=s;if(!r)return;s==="system"&&n&&(r=T());let v=h?h[r]:r,C=a?_():null,x=document.documentElement;if(y==="class"?(x.classList.remove(...u),v&&x.classList.add(v)):v?x.setAttribute(y,v):x.removeAttribute(y),g){let I=P.includes(o)?o:null,A=P.includes(r)?r:I;x.style.colorScheme=A}C==null||C()},[]),f=t.useCallback(s=>{let r=typeof s=="function"?s(s):s;d(r);try{localStorage.setItem(m,r)}catch(v){}},[e]),p=t.useCallback(s=>{let r=T(s);l(r),i==="system"&&n&&!e&&R("system")},[i,e]);t.useEffect(()=>{let s=window.matchMedia(E);return s.addListener(p),p(s),()=>s.removeListener(p)},[p]),t.useEffect(()=>{let s=r=>{if(r.key!==m)return;let v=r.newValue||o;f(v)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[f]),t.useEffect(()=>{R(e!=null?e:i)},[e,i]);let $=t.useMemo(()=>({theme:i,setTheme:f,forcedTheme:e,resolvedTheme:i==="system"?S:i,themes:n?[...c,"system"]:c,systemTheme:n?S:void 0}),[i,f,e,S,n,c]);return t.createElement(L.Provider,{value:$},t.createElement(U,{forcedTheme:e,disableTransitionOnChange:a,enableSystem:n,enableColorScheme:g,storageKey:m,themes:c,defaultTheme:o,attribute:y,value:h,children:k,attrs:u,nonce:w}),k)},U=t.memo(({forcedTheme:e,storageKey:a,attribute:n,enableSystem:g,enableColorScheme:m,defaultTheme:c,value:o,attrs:y,nonce:h})=>{let k=c==="system",w=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${y.map(u=>`'${u}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,i=m?(P.includes(c)?c:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${c}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(l,u=!1,R=!0)=>{let f=o?o[l]:l,p=u?l+"|| ''":`'${f}'`,$="";return m&&R&&!u&&P.includes(l)&&($+=`d.style.colorScheme = '${l}';`),n==="class"?u||f?$+=`c.add(${p})`:$+="null":f&&($+=`d[s](n,${p})`),$},S=e?`!function(){${w}${d(e)}}()`:g?`!function(){try{${w}var e=localStorage.getItem('${a}');if('system'===e||(!e&&${k})){var t='${E}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}${k?"":"else{"+d(c,!1,!1)+"}"}${i}}catch(e){}}()`:`!function(){try{${w}var e=localStorage.getItem('${a}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}else{${d(c,!1,!1)};}${i}}catch(t){}}();`;return t.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:S}})}),M=(e,a)=>{if(Q)return;let n;try{n=localStorage.getItem(e)||void 0}catch(g){}return n||a},_=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},T=e=>(e||(e=window.matchMedia(E)),e.matches?"dark":"light");export{z as ThemeProvider,j as useTheme};

45
node_modules/next-themes/dist/types.d.mts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
import * as React from 'react';
interface ValueObject {
[themeName: string]: string;
}
interface UseThemeProps {
/** List of all available theme names */
themes: string[];
/** Forced theme name for the current page */
forcedTheme?: string | undefined;
/** Update the theme */
setTheme: React.Dispatch<React.SetStateAction<string>>;
/** Active theme name */
theme?: string | undefined;
/** If `enableSystem` is true and the active theme is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `theme` */
resolvedTheme?: string | undefined;
/** If enableSystem is true, returns the System theme preference ("dark" or "light"), regardless what the active theme is */
systemTheme?: 'dark' | 'light' | undefined;
}
interface ThemeProviderProps {
/** List of all available theme names */
themes?: string[] | undefined;
/** Forced theme name for the current page */
forcedTheme?: string | undefined;
/** Whether to switch between dark and light themes based on prefers-color-scheme */
enableSystem?: boolean | undefined;
/** Disable all CSS transitions when switching themes */
disableTransitionOnChange?: boolean | undefined;
/** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
enableColorScheme?: boolean | undefined;
/** Key used to store theme setting in localStorage */
storageKey?: string | undefined;
/** Default theme name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default theme is light */
defaultTheme?: string | undefined;
/** HTML attribute modified based on the active theme. Accepts `class` and `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.) */
attribute?: string | 'class' | undefined;
/** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
value?: ValueObject | undefined;
/** Nonce string to pass to the inline script for CSP headers */
nonce?: string | undefined;
/** React children */
children: React.ReactNode;
}
export type { ThemeProviderProps, UseThemeProps };

45
node_modules/next-themes/dist/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
import * as React from 'react';
interface ValueObject {
[themeName: string]: string;
}
interface UseThemeProps {
/** List of all available theme names */
themes: string[];
/** Forced theme name for the current page */
forcedTheme?: string | undefined;
/** Update the theme */
setTheme: React.Dispatch<React.SetStateAction<string>>;
/** Active theme name */
theme?: string | undefined;
/** If `enableSystem` is true and the active theme is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `theme` */
resolvedTheme?: string | undefined;
/** If enableSystem is true, returns the System theme preference ("dark" or "light"), regardless what the active theme is */
systemTheme?: 'dark' | 'light' | undefined;
}
interface ThemeProviderProps {
/** List of all available theme names */
themes?: string[] | undefined;
/** Forced theme name for the current page */
forcedTheme?: string | undefined;
/** Whether to switch between dark and light themes based on prefers-color-scheme */
enableSystem?: boolean | undefined;
/** Disable all CSS transitions when switching themes */
disableTransitionOnChange?: boolean | undefined;
/** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
enableColorScheme?: boolean | undefined;
/** Key used to store theme setting in localStorage */
storageKey?: string | undefined;
/** Default theme name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default theme is light */
defaultTheme?: string | undefined;
/** HTML attribute modified based on the active theme. Accepts `class` and `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.) */
attribute?: string | 'class' | undefined;
/** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
value?: ValueObject | undefined;
/** Nonce string to pass to the inline script for CSP headers */
nonce?: string | undefined;
/** React children */
children: React.ReactNode;
}
export type { ThemeProviderProps, UseThemeProps };

1
node_modules/next-themes/dist/types.js generated vendored Normal file
View File

@@ -0,0 +1 @@
var d=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var f=(n,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!o.call(n,t)&&t!==r&&d(n,t,{get:()=>e[t],enumerable:!(i=s(e,t))||i.enumerable});return n};var u=n=>f(d({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);

0
node_modules/next-themes/dist/types.mjs generated vendored Normal file
View File