me dejaron cocinar demaciado
This commit is contained in:
1 parent
bd510cb94b
commit
07727cee79
5655 files changed
+293183
No files matched your search
+5
@@ -0,0 +1,5 @@
|
||||
import { ResolveHook } from 'node:module';
|
||||
|
||||
declare let resolve: ResolveHook;
|
||||
|
||||
export { resolve };
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{isBuiltin as i}from"node:module";var o=async(a,e,u)=>{let r=await u(a,e);if(r.url===import.meta.url||i(r.url)||!e.parentURL)return r;let t=new URL(e.parentURL).searchParams.get("id");if(t===null)return r;let l=new URL(r.url);return l.searchParams.set("id",t),{...r,url:`${l}`}};export{o as resolve};
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
import { Candidate, Variant } from './candidate';
|
||||
import { compileAstNodes } from './compile';
|
||||
import { ClassEntry, VariantEntry } from './intellisense';
|
||||
import { Theme } from './theme';
|
||||
import { Utilities } from './utilities';
|
||||
import { Variants } from './variants';
|
||||
import { Polyfills, Features } from 'tailwindcss';
|
||||
export { Features, Polyfills } from 'tailwindcss';
|
||||
|
||||
declare const DEBUG: boolean;
|
||||
|
||||
declare const env_DEBUG: typeof DEBUG;
|
||||
declare namespace env {
|
||||
export { env_DEBUG as DEBUG };
|
||||
}
|
||||
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
};
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
||||
interface CompileOptions {
|
||||
base: string;
|
||||
onDependency: (path: string) => void;
|
||||
shouldRewriteUrls?: boolean;
|
||||
polyfills?: Polyfills;
|
||||
customCssResolver?: Resolver;
|
||||
customJsResolver?: Resolver;
|
||||
}
|
||||
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
declare function compile(css: string, options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
||||
base: string;
|
||||
}): Promise<DesignSystem>;
|
||||
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
||||
base: string;
|
||||
module: any;
|
||||
}>;
|
||||
|
||||
declare class Instrumentation implements Disposable {
|
||||
#private;
|
||||
private defaultFlush;
|
||||
constructor(defaultFlush?: (message: string) => undefined);
|
||||
hit(label: string): void;
|
||||
start(label: string): void;
|
||||
end(label: string): void;
|
||||
reset(): void;
|
||||
report(flush?: (message: string) => undefined): void;
|
||||
[Symbol.dispose](): void;
|
||||
}
|
||||
|
||||
declare function normalizePath(originalPath: string): string;
|
||||
|
||||
declare function optimize(input: string, { file, minify }?: {
|
||||
file?: string;
|
||||
minify?: boolean;
|
||||
}): string;
|
||||
|
||||
export { type CompileOptions, Instrumentation, type Resolver, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize };
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
import { Candidate, Variant } from './candidate';
|
||||
import { compileAstNodes } from './compile';
|
||||
import { ClassEntry, VariantEntry } from './intellisense';
|
||||
import { Theme } from './theme';
|
||||
import { Utilities } from './utilities';
|
||||
import { Variants } from './variants';
|
||||
import { Polyfills, Features } from 'tailwindcss';
|
||||
export { Features, Polyfills } from 'tailwindcss';
|
||||
|
||||
declare const DEBUG: boolean;
|
||||
|
||||
declare const env_DEBUG: typeof DEBUG;
|
||||
declare namespace env {
|
||||
export { env_DEBUG as DEBUG };
|
||||
}
|
||||
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
};
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
};
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
||||
interface CompileOptions {
|
||||
base: string;
|
||||
onDependency: (path: string) => void;
|
||||
shouldRewriteUrls?: boolean;
|
||||
polyfills?: Polyfills;
|
||||
customCssResolver?: Resolver;
|
||||
customJsResolver?: Resolver;
|
||||
}
|
||||
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
declare function compile(css: string, options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
||||
base: string;
|
||||
}): Promise<DesignSystem>;
|
||||
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
||||
base: string;
|
||||
module: any;
|
||||
}>;
|
||||
|
||||
declare class Instrumentation implements Disposable {
|
||||
#private;
|
||||
private defaultFlush;
|
||||
constructor(defaultFlush?: (message: string) => undefined);
|
||||
hit(label: string): void;
|
||||
start(label: string): void;
|
||||
end(label: string): void;
|
||||
reset(): void;
|
||||
report(flush?: (message: string) => undefined): void;
|
||||
[Symbol.dispose](): void;
|
||||
}
|
||||
|
||||
declare function normalizePath(originalPath: string): string;
|
||||
|
||||
declare function optimize(input: string, { file, minify }?: {
|
||||
file?: string;
|
||||
minify?: boolean;
|
||||
}): string;
|
||||
|
||||
export { type CompileOptions, Instrumentation, type Resolver, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize };
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";var pt=Object.create;var q=Object.defineProperty;var dt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty;var Se=(e,r)=>{for(var t in r)q(e,t,{get:r[t],enumerable:!0})},Te=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of mt(r))!ht.call(e,n)&&n!==t&&q(e,n,{get:()=>r[n],enumerable:!(i=dt(r,n))||i.enumerable});return e};var A=(e,r,t)=>(t=e!=null?pt(gt(e)):{},Te(r||!e||!e.__esModule?q(t,"default",{value:e,enumerable:!0}):t,e)),vt=e=>Te(q({},"__esModule",{value:!0}),e);var Or={};Se(Or,{Features:()=>x.Features,Instrumentation:()=>Ne,Polyfills:()=>x.Polyfills,__unstable__loadDesignSystem:()=>Nr,compile:()=>$r,compileAst:()=>Cr,env:()=>G,loadModule:()=>Ce,normalizePath:()=>ie,optimize:()=>_r});module.exports=vt(Or);var ft=A(require("module")),ct=require("url");var G={};Se(G,{DEBUG:()=>ae});var ae=wt(process.env.DEBUG);function wt(e){if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let r=e.split(",").map(t=>t.split(":")[0]);return r.includes("-tailwindcss")?!1:!!r.includes("tailwindcss")}var O=A(require("enhanced-resolve")),ot=require("jiti"),ne=A(require("fs")),Ae=A(require("fs/promises")),P=A(require("path")),be=require("url"),x=require("tailwindcss");var Y=A(require("fs/promises")),D=A(require("path")),kt=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],yt=[".js",".cjs",".mjs"],bt=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],xt=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function At(e,r){for(let t of r){let i=`${e}${t}`;if((await Y.default.stat(i).catch(()=>null))?.isFile())return i}for(let t of r){let i=`${e}/index${t}`;if(await Y.default.access(i).then(()=>!0,()=>!1))return i}return null}async function Ve(e,r,t,i){let n=yt.includes(i)?bt:xt,o=await At(D.default.resolve(t,r),n);if(o===null||e.has(o))return;e.add(o),t=D.default.dirname(o),i=D.default.extname(o);let l=await Y.default.readFile(o,"utf-8"),s=[];for(let a of kt)for(let u of l.matchAll(a))u[1].startsWith(".")&&s.push(Ve(e,u[1],t,i));await Promise.all(s)}async function Ee(e){let r=new Set;return await Ve(r,e,D.default.dirname(e),D.default.extname(e)),Array.from(r)}var ke=A(require("path"));function se(e){return{kind:"word",value:e}}function Ct(e,r){return{kind:"function",value:e,nodes:r}}function $t(e){return{kind:"separator",value:e}}function K(e,r,t=null){for(let i=0;i<e.length;i++){let n=e[i],o=!1,l=0,s=r(n,{parent:t,replaceWith(a){o||(o=!0,Array.isArray(a)?a.length===0?(e.splice(i,1),l=0):a.length===1?(e[i]=a[0],l=1):(e.splice(i,1,...a),l=a.length):e[i]=a)}})??0;if(o){s===0?i--:i+=l-1;continue}if(s===2)return 2;if(s!==1&&n.kind==="function"&&K(n.nodes,r,n)===2)return 2}}function V(e){let r="";for(let t of e)switch(t.kind){case"word":case"separator":{r+=t.value;break}case"function":r+=t.value+"("+V(t.nodes)+")"}return r}var Re=92,Nt=41,_e=58,Oe=44,St=34,Pe=61,Ue=62,De=60,Ke=10,Tt=40,Vt=39,Fe=47,Ie=32,je=9;function E(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],t=[],i=null,n="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case Re:{n+=e[l]+e[l+1],l++;break}case _e:case Oe:case Pe:case Ue:case De:case Ke:case Fe:case Ie:case je:{if(n.length>0){let c=se(n);i?i.nodes.push(c):r.push(c),n=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==_e&&o!==Oe&&o!==Pe&&o!==Ue&&o!==De&&o!==Ke&&o!==Fe&&o!==Ie&&o!==je));u++);l=u-1;let f=$t(e.slice(a,u));i?i.nodes.push(f):r.push(f);break}case Vt:case St:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Re)u+=1;else if(o===s){l=u;break}n+=e.slice(a,l+1);break}case Tt:{let a=Ct(n,[]);n="",i?i.nodes.push(a):r.push(a),t.push(a),i=a;break}case Nt:{let a=t.pop();if(n.length>0){let u=se(n);a.nodes.push(u),n=""}t.length>0?i=t[t.length-1]:i=null;break}default:n+=String.fromCharCode(s)}}return n.length>0&&r.push(se(n)),r}var Et=["anchor-size"],Dr=new RegExp(`(${Et.join("|")})\\(`,"g");var zr=new Uint8Array(256);var J=new Uint8Array(256);function g(e,r){let t=0,i=[],n=0,o=e.length,l=r.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(t===0&&a===l){i.push(e.slice(n,s)),n=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:J[t]=41,t++;break;case 91:J[t]=93,t++;break;case 123:J[t]=125,t++;break;case 93:case 125:case 41:t>0&&a===J[t-1]&&t--;break}}return i.push(e.slice(n)),i}var v=class extends Map{constructor(t){super();this.factory=t}get(t){let i=super.get(t);return i===void 0&&(i=this.factory(t,this),this.set(t,i)),i}};var C=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ni=new RegExp(`^${C.source}$`);var oi=new RegExp(`^${C.source}%$`);var li=new RegExp(`^${C.source}s*/s*${C.source}$`);var Rt=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],ai=new RegExp(`^${C.source}(${Rt.join("|")})$`);var _t=["deg","rad","grad","turn"],si=new RegExp(`^${C.source}(${_t.join("|")})$`);var ui=new RegExp(`^${C.source} +${C.source} +${C.source}$`);function k(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function z(e,r){if(r===null)return e;let t=Number(r);return Number.isNaN(t)||(r=`${t*100}%`),`color-mix(in oklab, ${e} ${r}, transparent)`}var Ut={"--alpha":Dt,"--spacing":Kt,"--theme":Ft,theme:It};function Dt(e,r,t,...i){let[n,o]=g(t,"/").map(l=>l.trim());if(!n||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);return z(n,o)}function Kt(e,r,t,...i){if(!t)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${t})`}function Ft(e,r,t,...i){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;t.endsWith(" inline")&&(n=!0,t=t.slice(0,-7)),r.kind==="at-rule"&&(n=!0);let o=e.resolveThemeValue(t,n);if(!o){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return o;let l=i.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=E(o);return zt(s,l),V(s)}return o}function It(e,r,t,...i){t=jt(t);let n=e.resolveThemeValue(t);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var Ti=new RegExp(Object.keys(Ut).map(e=>`${e}\\(`).join("|"));function jt(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],o=e[i+1];n==="\\"&&(o===t||o==="\\")?(r+=o,i++):r+=n}return r}function zt(e,r){K(e,t=>{if(t.kind==="function"&&!(t.value!=="var"&&t.value!=="theme"&&t.value!=="--theme"))if(t.nodes.length===1)t.nodes.push({kind:"word",value:`, ${r}`});else{let i=t.nodes[t.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=r)}})}var M=92,Z=47,X=42,qt=34,Gt=39,Yt=58,ee=59,R=10,W=32,te=9,Be=123,pe=125,ge=40,He=41,Jt=91,Qt=93,qe=45,de=64,Zt=33;function H(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],t=[],i=[],n=null,o=null,l="",s="",a;for(let u=0;u<e.length;u++){let f=e.charCodeAt(u);if(f===M)l+=e.slice(u,u+2),u+=1;else if(f===Z&&e.charCodeAt(u+1)===X){let c=u;for(let h=u+2;h<e.length;h++)if(a=e.charCodeAt(h),a===M)h+=1;else if(a===X&&e.charCodeAt(h+1)===Z){u=h+1;break}let p=e.slice(c,u+1);p.charCodeAt(2)===Zt&&t.push(ve(p.slice(2,-2)))}else if(f===Gt||f===qt){let c=u;for(let p=u+1;p<e.length;p++)if(a=e.charCodeAt(p),a===M)p+=1;else if(a===f){u=p;break}else{if(a===ee&&e.charCodeAt(p+1)===R)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(f)}`);if(a===R)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(f)}`)}l+=e.slice(c,u+1)}else{if((f===W||f===R||f===te)&&(a=e.charCodeAt(u+1))&&(a===W||a===R||a===te))continue;if(f===R){if(l.length===0)continue;a=l.charCodeAt(l.length-1),a!==W&&a!==R&&a!==te&&(l+=" ")}else if(f===qe&&e.charCodeAt(u+1)===qe&&l.length===0){let c="",p=u,h=-1;for(let m=u+2;m<e.length;m++)if(a=e.charCodeAt(m),a===M)m+=1;else if(a===Z&&e.charCodeAt(m+1)===X){for(let U=m+2;U<e.length;U++)if(a=e.charCodeAt(U),a===M)U+=1;else if(a===X&&e.charCodeAt(U+1)===Z){m=U+1;break}}else if(h===-1&&a===Yt)h=l.length+m-p;else if(a===ee&&c.length===0){l+=e.slice(p,m),u=m;break}else if(a===ge)c+=")";else if(a===Jt)c+="]";else if(a===Be)c+="}";else if((a===pe||e.length-1===m)&&c.length===0){u=m-1,l+=e.slice(p,m);break}else(a===He||a===Qt||a===pe)&&c.length>0&&e[m]===c[c.length-1]&&(c=c.slice(0,-1));let le=me(l,h);if(!le)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(le):r.push(le),l=""}else if(f===ee&&l.charCodeAt(0)===de)o=B(l),n?n.nodes.push(o):r.push(o),l="",o=null;else if(f===ee&&s[s.length-1]!==")"){let c=me(l);if(!c)throw l.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${l.trim()}\``);n?n.nodes.push(c):r.push(c),l=""}else if(f===Be&&s[s.length-1]!==")")s+="}",o=N(l.trim()),n&&n.nodes.push(o),i.push(n),n=o,l="",o=null;else if(f===pe&&s[s.length-1]!==")"){if(s==="")throw new Error("Missing opening {");if(s=s.slice(0,-1),l.length>0)if(l.charCodeAt(0)===de)o=B(l),n?n.nodes.push(o):r.push(o),l="",o=null;else{let p=l.indexOf(":");if(n){let h=me(l,p);if(!h)throw new Error(`Invalid declaration: \`${l.trim()}\``);n.nodes.push(h)}}let c=i.pop()??null;c===null&&n&&r.push(n),n=c,l="",o=null}else if(f===ge)s+=")",l+="(";else if(f===He){if(s[s.length-1]!==")")throw new Error("Missing opening (");s=s.slice(0,-1),l+=")"}else{if(l.length===0&&(f===W||f===R||f===te))continue;l+=String.fromCharCode(f)}}}if(l.charCodeAt(0)===de&&r.push(B(l)),s.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return t.length>0?t.concat(r):r}function B(e,r=[]){for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===W||i===ge){let n=e.slice(0,t).trim(),o=e.slice(t).trim();return y(n,o,r)}}return y(e.trim(),"",r)}function me(e,r=e.indexOf(":")){if(r===-1)return null;let t=e.indexOf("!important",r+1);return $(e.slice(0,r).trim(),e.slice(r+1,t===-1?e.length:t).trim(),t!==-1)}var we={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",Line truncated
|
||||
`;else if(i.kind==="rule"){o+=`${l}${i.selector} {
|
||||
`;for(let s of i.nodes)o+=r(s,n+1);o+=`${l}}
|
||||
`}else if(i.kind==="at-rule"){if(i.nodes.length===0)return`${l}${i.name} ${i.params};
|
||||
`;o+=`${l}${i.name}${i.params?` ${i.params} `:" "}{
|
||||
`;for(let s of i.nodes)o+=r(s,n+1);o+=`${l}}
|
||||
`}else if(i.kind==="comment")o+=`${l}/*${i.value}*/
|
||||
`;else if(i.kind==="context"||i.kind==="at-root")return"";return o}let t="";for(let i of e){let n=r(i);n!==""&&(t+=n)}return t}function ur(e,r){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var t=e.length;if(t<=1)return e;var i="";if(t>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var o=e.split(/[/\\]+/);return r!==!1&&o[o.length-1]===""&&o.pop(),i+o.join("/")}function ie(e){let r=ur(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var ye=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,Qe=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,fr=/(?:gradient|element|cross-fade|image)\(/,cr=/^\s*data:/i,pr=/^([a-z]+:)?\/\//,dr=/^[A-Z_][.\w-]*\(/i,mr=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,gr=/(?<!\\)"/g,hr=/(?: |\\t|\\n|\\f|\\r)+/g,vr=e=>cr.test(e),wr=e=>pr.test(e);async function Ze({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=H(e),n=[];function o(l){if(l[0]==="/")return l;let s=ke.posix.join(ie(r),l),a=ke.posix.relative(ie(t),s);return a.startsWith(".")||(a="./"+a),a}return w(i,l=>{if(l.kind!=="declaration"||!l.value)return;let s=ye.test(l.value),a=Qe.test(l.value);if(s||a){let u=a?kr:Xe;n.push(u(l.value,o).then(f=>{l.value=f}))}}),n.length&&await Promise.all(n),j(i)}function Xe(e,r){return tt(e,ye,async t=>{let[i,n]=t;return await et(n.trim(),i,r)})}async function kr(e,r){return await tt(e,Qe,async t=>{let[,i]=t;return await br(i,async({url:o})=>ye.test(o)?await Xe(o,r):fr.test(o)?o:await et(o,o,r))})}async function et(e,r,t,i="url"){let n="",o=e[0];if((o==='"'||o==="'")&&(n=o,e=e.slice(1,-1)),yr(e))return r;let l=await t(e);return n===""&&l!==encodeURI(l)&&(n='"'),n==="'"&&l.includes("'")&&(n='"'),n==='"'&&l.includes('"')&&(l=l.replace(gr,'\\"')),`${i}(${n}${l}${n})`}function yr(e,r){return wr(e)||vr(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||dr.test(e)}function br(e,r){return Promise.all(xr(e).map(async({url:t,descriptor:i})=>({url:await r({url:t,descriptor:i}),descriptor:i}))).then(Ar)}function xr(e){let r=e.trim().replace(hr," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(mr);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function Ar(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function tt(e,r,t){let i,n=e,o="";for(;i=r.exec(n);)o+=n.slice(0,i.index),o+=await t(i),n=n.slice(i.index+i[0].length);return o+=n,o}var Rr={};function lt({base:e,polyfills:r,onDependency:t,shouldRewriteUrls:i,customCssResolver:n,customJsResolver:o}){return{base:e,polyfills:r,async loadModule(l,s){return Ce(l,s,t,o)},async loadStylesheet(l,s){let a=await st(l,s,t,n);return i&&(a.content=await Ze({css:a.content,root:e,base:a.base})),a}}}async function at(e,r){if(e.root&&e.root!=="none"){let t=/[*{]/,i=[];for(let o of e.root.pattern.split("/")){if(t.test(o))break;i.push(o)}if(!await Ae.default.stat(P.default.resolve(r,i.join("/"))).then(o=>o.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function Cr(e,r){let t=await(0,x.compileAst)(e,lt(r));return await at(t,r.base),t}async function $r(e,r){let t=await(0,x.compile)(e,lt(r));return await at(t,r.base),t}async function Nr(e,{base:r}){return(0,x.__unstable__loadDesignSystem)(e,{base:r,async loadModule(t,i){return Ce(t,i,()=>{})},async loadStylesheet(t,i){return st(t,i,()=>{})}})}async function Ce(e,r,t,i){if(e[0]!=="."){let s=await nt(e,r,i);if(!s)throw new Error(`Could not resolve '${e}' from '${r}'`);let a=await it((0,be.pathToFileURL)(s).href);return{base:(0,P.dirname)(s),module:a.default??a}}let n=await nt(e,r,i);if(!n)throw new Error(`Could not resolve '${e}' from '${r}'`);let[o,l]=await Promise.all([it((0,be.pathToFileURL)(n).href+"?id="+Date.now()),Ee(n)]);for(let s of l)t(s);return{base:(0,P.dirname)(n),module:o.default??o}}async function st(e,r,t,i){let n=await Tr(e,r,i);if(!n)throw new Error(`Could not resolve '${e}' from '${r}'`);if(t(n),typeof globalThis.__tw_readFile=="function"){let l=await globalThis.__tw_readFile(n,"utf-8");if(l)return{base:P.default.dirname(n),content:l}}let o=await Ae.default.readFile(n,"utf-8");return{base:P.default.dirname(n),content:o}}var rt=null;async function it(e){if(typeof globalThis.__tw_load=="function"){let r=await globalThis.__tw_load(e);if(r)return r}try{return await import(e)}catch{return rt??=(0,ot.createJiti)(Rr.url,{moduleCache:!1,fsCache:!1}),await rt.import(e)}}var $e=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Sr=O.default.ResolverFactory.createResolver({fileSystem:new O.default.CachedInputFileSystem(ne.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:$e});async function Tr(e,r,t){if(tLine truncated
|
||||
`)){this.defaultFlush=r}#r=new v(()=>({value:0}));#t=new v(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(n=>n.label).join("//"),i=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:r,namespace:t,value:process.hrtime.bigint()})}end(r){let t=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==r)throw new Error(`Mismatched timer label: \`${r}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),n=t-i.value;this.#t.get(i.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],i=!1;for(let l=this.#e.length-1;l>=0;l--)this.end(this.#e[l].label);for(let[l,{value:s}]of this.#r.entries()){if(this.#t.has(l))continue;t.length===0&&(i=!0,t.push("Hits:"));let a=l.split("//").length;t.push(`${" ".repeat(a)}${l} ${oe(ut(`\xD7 ${s}`))}`)}this.#t.size>0&&i&&t.push(`
|
||||
Timers:`);let n=-1/0,o=new Map;for(let[l,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;o.set(l,a),n=Math.max(n,a.length)}for(let l of this.#t.keys()){let s=l.split("//").length;t.push(`${oe(`[${o.get(l).padStart(n," ")}]`)}${" ".repeat(s-1)}${s===1?" ":oe(" \u21B3 ")}${l.split("//").pop()} ${this.#r.get(l).value===1?"":oe(ut(`\xD7 ${this.#r.get(l).value}`))}`.trimEnd())}r(`
|
||||
${t.join(`
|
||||
`)}
|
||||
`),this.reset()}[Symbol.dispose](){ae&&this.report()}};function oe(e){return`\x1B[2m${e}\x1B[22m`}function ut(e){return`\x1B[34m${e}\x1B[39m`}var T=require("lightningcss");function _r(e,{file:r="input.css",minify:t=!1}={}){function i(o){return(0,T.transform)({filename:r,code:o,minify:t,sourceMap:!1,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:T.Features.Nesting|T.Features.MediaQueries,exclude:T.Features.LogicalProperties|T.Features.DirSelector|T.Features.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0}).code}let n=i(i(Buffer.from(e))).toString();return n=n.replaceAll("@media not (","@media not all and ("),n}process.versions.bun||ft.register?.((0,ct.pathToFileURL)(require.resolve("@tailwindcss/node/esm-cache-loader")));0&&(module.exports={Features,Instrumentation,Polyfills,__unstable__loadDesignSystem,compile,compileAst,env,loadModule,normalizePath,optimize});
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
var lt=Object.defineProperty;var at=(e,r)=>{for(var t in r)lt(e,t,{get:r[t],enumerable:!0})};import*as Z from"node:module";import{pathToFileURL as Ar}from"node:url";var te={};at(te,{DEBUG:()=>ee});var ee=st(process.env.DEBUG);function st(e){if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let r=e.split(",").map(t=>t.split(":")[0]);return r.includes("-tailwindcss")?!1:!!r.includes("tailwindcss")}import U from"enhanced-resolve";import{createJiti as mr}from"jiti";import ke from"node:fs";import Xe from"node:fs/promises";import ve,{dirname as Ge}from"node:path";import{pathToFileURL as Ye}from"node:url";import{__unstable__loadDesignSystem as gr,compile as hr,compileAst as vr,Features as Jl,Polyfills as Ql}from"tailwindcss";import re from"node:fs/promises";import D from"node:path";var ut=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],ft=[".js",".cjs",".mjs"],ct=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],pt=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function dt(e,r){for(let t of r){let i=`${e}${t}`;if((await re.stat(i).catch(()=>null))?.isFile())return i}for(let t of r){let i=`${e}/index${t}`;if(await re.access(i).then(()=>!0,()=>!1))return i}return null}async function be(e,r,t,i){let n=ft.includes(i)?ct:pt,o=await dt(D.resolve(t,r),n);if(o===null||e.has(o))return;e.add(o),t=D.dirname(o),i=D.extname(o);let l=await re.readFile(o,"utf-8"),s=[];for(let a of ut)for(let u of l.matchAll(a))u[1].startsWith(".")&&s.push(be(e,u[1],t,i));await Promise.all(s)}async function xe(e){let r=new Set;return await be(r,e,D.dirname(e),D.extname(e)),Array.from(r)}import*as ge from"node:path";function ie(e){return{kind:"word",value:e}}function mt(e,r){return{kind:"function",value:e,nodes:r}}function gt(e){return{kind:"separator",value:e}}function R(e,r,t=null){for(let i=0;i<e.length;i++){let n=e[i],o=!1,l=0,s=r(n,{parent:t,replaceWith(a){o||(o=!0,Array.isArray(a)?a.length===0?(e.splice(i,1),l=0):a.length===1?(e[i]=a[0],l=1):(e.splice(i,1,...a),l=a.length):e[i]=a)}})??0;if(o){s===0?i--:i+=l-1;continue}if(s===2)return 2;if(s!==1&&n.kind==="function"&&R(n.nodes,r,n)===2)return 2}}function N(e){let r="";for(let t of e)switch(t.kind){case"word":case"separator":{r+=t.value;break}case"function":r+=t.value+"("+N(t.nodes)+")"}return r}var Ae=92,ht=41,Ce=58,$e=44,vt=34,Ne=61,Se=62,Te=60,Ve=10,wt=40,kt=39,Ee=47,Re=32,_e=9;function S(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],t=[],i=null,n="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case Ae:{n+=e[l]+e[l+1],l++;break}case Ce:case $e:case Ne:case Se:case Te:case Ve:case Ee:case Re:case _e:{if(n.length>0){let c=ie(n);i?i.nodes.push(c):r.push(c),n=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==Ce&&o!==$e&&o!==Ne&&o!==Se&&o!==Te&&o!==Ve&&o!==Ee&&o!==Re&&o!==_e));u++);l=u-1;let f=gt(e.slice(a,u));i?i.nodes.push(f):r.push(f);break}case kt:case vt:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Ae)u+=1;else if(o===s){l=u;break}n+=e.slice(a,l+1);break}case wt:{let a=mt(n,[]);n="",i?i.nodes.push(a):r.push(a),t.push(a),i=a;break}case ht:{let a=t.pop();if(n.length>0){let u=ie(n);a.nodes.push(u),n=""}t.length>0?i=t[t.length-1]:i=null;break}default:n+=String.fromCharCode(s)}}return n.length>0&&r.push(ie(n)),r}var yt=["anchor-size"],Tr=new RegExp(`(${yt.join("|")})\\(`,"g");var Or=new Uint8Array(256);var W=new Uint8Array(256);function g(e,r){let t=0,i=[],n=0,o=e.length,l=r.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(t===0&&a===l){i.push(e.slice(n,s)),n=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:W[t]=41,t++;break;case 91:W[t]=93,t++;break;case 123:W[t]=125,t++;break;case 93:case 125:case 41:t>0&&a===W[t-1]&&t--;break}}return i.push(e.slice(n)),i}var v=class extends Map{constructor(t){super();this.factory=t}get(t){let i=super.get(t);return i===void 0&&(i=this.factory(t,this),this.set(t,i)),i}};var x=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Jr=new RegExp(`^${x.source}$`);var Qr=new RegExp(`^${x.source}%$`);var Zr=new RegExp(`^${x.source}s*/s*${x.source}$`);var bt=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Xr=new RegExp(`^${x.source}(${bt.join("|")})$`);var xt=["deg","rad","grad","turn"],ei=new RegExp(`^${x.source}(${xt.join("|")})$`);var ti=new RegExp(`^${x.source} +${x.source} +${x.source}$`);function k(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function K(e,r){if(r===null)return e;let t=Number(r);return Number.isNaN(t)||(r=`${t*100}%`),`color-mix(in oklab, ${e} ${r}, transparent)`}var $t={"--alpha":Nt,"--spacing":St,"--theme":Tt,theme:Vt};function Nt(e,r,t,...i){let[n,o]=g(t,"/").map(l=>l.trim());if(!n||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${o||"50%"})\``);return K(n,o)}function St(e,r,t,...i){if(!t)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${t})`}function Tt(e,r,t,...i){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;t.endsWith(" inline")&&(n=!0,t=t.slice(0,-7)),r.kind==="at-rule"&&(n=!0);let o=e.resolveThemeValue(t,n);if(!o){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return o;let l=i.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=S(o);return Rt(s,l),N(s)}return o}function Vt(e,r,t,...i){t=Et(t);let n=e.resolveThemeValue(t);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var yi=new RegExp(Object.keys($t).map(e=>`${e}\\(`).join("|"));function Et(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],o=e[i+1];n==="\\"&&(o===t||o==="\\")?(r+=o,i++):r+=n}return r}function Rt(e,r){R(e,t=>{if(t.kind==="function"&&!(t.value!=="var"&&t.value!=="theme"&&t.value!=="--theme"))if(t.nodes.length===1)t.nodes.push({kind:"word",value:`, ${r}`});else{let i=t.nodes[t.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=r)}})}var I=92,H=47,q=42,Kt=34,Ft=39,It=58,G=59,T=10,j=32,Y=9,Ke=123,ae=125,fe=40,Fe=41,jt=91,zt=93,Ie=45,se=64,Lt=33;function L(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],t=[],i=[],n=null,o=null,l="",s="",a;for(let u=0;u<e.length;u++){let f=e.charCodeAt(u);if(f===I)l+=e.slice(u,u+2),u+=1;else if(f===H&&e.charCodeAt(u+1)===q){let c=u;for(let h=u+2;h<e.length;h++)if(a=e.charCodeAt(h),a===I)h+=1;else if(a===q&&e.charCodeAt(h+1)===H){u=h+1;break}let p=e.slice(c,u+1);p.charCodeAt(2)===Lt&&t.push(pe(p.slice(2,-2)))}else if(f===Ft||f===Kt){let c=u;for(let p=u+1;p<e.length;p++)if(a=e.charCodeAt(p),a===I)p+=1;else if(a===f){u=p;break}else{if(a===G&&e.charCodeAt(p+1)===T)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(f)}`);if(a===T)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(f)}`)}l+=e.slice(c,u+1)}else{if((f===j||f===T||f===Y)&&(a=e.charCodeAt(u+1))&&(a===j||a===T||a===Y))continue;if(f===T){if(l.length===0)continue;a=l.charCodeAt(l.length-1),a!==j&&a!==T&&a!==Y&&(l+=" ")}else if(f===Ie&&e.charCodeAt(u+1)===Ie&&l.length===0){let c="",p=u,h=-1;for(let m=u+2;m<e.length;m++)if(a=e.charCodeAt(m),a===I)m+=1;else if(a===H&&e.charCodeAt(m+1)===q){for(let E=m+2;E<e.length;E++)if(a=e.charCodeAt(E),a===I)E+=1;else if(a===q&&e.charCodeAt(E+1)===H){m=E+1;break}}else if(h===-1&&a===It)h=l.length+m-p;else if(a===G&&c.length===0){l+=e.slice(p,m),u=m;break}else if(a===fe)c+=")";else if(a===jt)c+="]";else if(a===Ke)c+="}";else if((a===ae||e.length-1===m)&&c.length===0){u=m-1,l+=e.slice(p,m);break}else(a===Fe||a===zt||a===ae)&&c.length>0&&e[m]===c[c.length-1]&&(c=c.slice(0,-1));let X=ue(l,h);if(!X)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(X):r.push(X),l=""}else if(f===G&&l.charCodeAt(0)===se)o=z(l),n?n.nodes.push(o):r.push(o),l="",o=null;else if(f===G&&s[s.length-1]!==")"){let c=ue(l);if(!c)throw l.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${l.trim()}\``);n?n.nodes.push(c):r.push(c),l=""}else if(f===Ke&&s[s.length-1]!==")")s+="}",o=C(l.trim()),n&&n.nodes.push(o),i.push(n),n=o,l="",o=null;else if(f===ae&&s[s.length-1]!==")"){if(s==="")throw new Error("Missing opening {");if(s=s.slice(0,-1),l.length>0)if(l.charCodeAt(0)===se)o=z(l),n?n.nodes.push(o):r.push(o),l="",o=null;else{let p=l.indexOf(":");if(n){let h=ue(l,p);if(!h)throw new Error(`Invalid declaration: \`${l.trim()}\``);n.nodes.push(h)}}let c=i.pop()??null;c===null&&n&&r.push(n),n=c,l="",o=null}else if(f===fe)s+=")",l+="(";else if(f===Fe){if(s[s.length-1]!==")")throw new Error("Missing opening (");s=s.slice(0,-1),l+=")"}else{if(l.length===0&&(f===j||f===T||f===Y))continue;l+=String.fromCharCode(f)}}}if(l.charCodeAt(0)===se&&r.push(z(l)),s.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return t.length>0?t.concat(r):r}function z(e,r=[]){for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===j||i===fe){let n=e.slice(0,t).trim(),o=e.slice(t).trim();return y(n,o,r)}}return y(e.trim(),"",r)}function ue(e,r=e.indexOf(":")){if(r===-1)return null;let t=e.indexOf("!important",r+1);return A(e.slice(0,r).trim(),e.slice(r+1,t===-1?e.length:t).trim(),t!==-1)}var de={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(8Line truncated
|
||||
`;else if(i.kind==="rule"){o+=`${l}${i.selector} {
|
||||
`;for(let s of i.nodes)o+=r(s,n+1);o+=`${l}}
|
||||
`}else if(i.kind==="at-rule"){if(i.nodes.length===0)return`${l}${i.name} ${i.params};
|
||||
`;o+=`${l}${i.name}${i.params?` ${i.params} `:" "}{
|
||||
`;for(let s of i.nodes)o+=r(s,n+1);o+=`${l}}
|
||||
`}else if(i.kind==="comment")o+=`${l}/*${i.value}*/
|
||||
`;else if(i.kind==="context"||i.kind==="at-root")return"";return o}let t="";for(let i of e){let n=r(i);n!==""&&(t+=n)}return t}function Xt(e,r){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var t=e.length;if(t<=1)return e;var i="";if(t>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var o=e.split(/[/\\]+/);return r!==!1&&o[o.length-1]===""&&o.pop(),i+o.join("/")}function me(e){let r=Xt(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var he=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,Me=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,er=/(?:gradient|element|cross-fade|image)\(/,tr=/^\s*data:/i,rr=/^([a-z]+:)?\/\//,ir=/^[A-Z_][.\w-]*\(/i,nr=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,or=/(?<!\\)"/g,lr=/(?: |\\t|\\n|\\f|\\r)+/g,ar=e=>tr.test(e),sr=e=>rr.test(e);async function We({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=L(e),n=[];function o(l){if(l[0]==="/")return l;let s=ge.posix.join(me(r),l),a=ge.posix.relative(me(t),s);return a.startsWith(".")||(a="./"+a),a}return w(i,l=>{if(l.kind!=="declaration"||!l.value)return;let s=he.test(l.value),a=Me.test(l.value);if(s||a){let u=a?ur:Be;n.push(u(l.value,o).then(f=>{l.value=f}))}}),n.length&&await Promise.all(n),P(i)}function Be(e,r){return qe(e,he,async t=>{let[i,n]=t;return await He(n.trim(),i,r)})}async function ur(e,r){return await qe(e,Me,async t=>{let[,i]=t;return await cr(i,async({url:o})=>he.test(o)?await Be(o,r):er.test(o)?o:await He(o,o,r))})}async function He(e,r,t,i="url"){let n="",o=e[0];if((o==='"'||o==="'")&&(n=o,e=e.slice(1,-1)),fr(e))return r;let l=await t(e);return n===""&&l!==encodeURI(l)&&(n='"'),n==="'"&&l.includes("'")&&(n='"'),n==='"'&&l.includes('"')&&(l=l.replace(or,'\\"')),`${i}(${n}${l}${n})`}function fr(e,r){return sr(e)||ar(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||ir.test(e)}function cr(e,r){return Promise.all(pr(e).map(async({url:t,descriptor:i})=>({url:await r({url:t,descriptor:i}),descriptor:i}))).then(dr)}function pr(e){let r=e.trim().replace(lr," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(nr);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function dr(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function qe(e,r,t){let i,n=e,o="";for(;i=r.exec(n);)o+=n.slice(0,i.index),o+=await t(i),n=n.slice(i.index+i[0].length);return o+=n,o}function et({base:e,polyfills:r,onDependency:t,shouldRewriteUrls:i,customCssResolver:n,customJsResolver:o}){return{base:e,polyfills:r,async loadModule(l,s){return rt(l,s,t,o)},async loadStylesheet(l,s){let a=await it(l,s,t,n);return i&&(a.content=await We({css:a.content,root:e,base:a.base})),a}}}async function tt(e,r){if(e.root&&e.root!=="none"){let t=/[*{]/,i=[];for(let o of e.root.pattern.split("/")){if(t.test(o))break;i.push(o)}if(!await Xe.stat(ve.resolve(r,i.join("/"))).then(o=>o.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function ea(e,r){let t=await vr(e,et(r));return await tt(t,r.base),t}async function ta(e,r){let t=await hr(e,et(r));return await tt(t,r.base),t}async function ra(e,{base:r}){return gr(e,{base:r,async loadModule(t,i){return rt(t,i,()=>{})},async loadStylesheet(t,i){return it(t,i,()=>{})}})}async function rt(e,r,t,i){if(e[0]!=="."){let s=await Ze(e,r,i);if(!s)throw new Error(`Could not resolve '${e}' from '${r}'`);let a=await Qe(Ye(s).href);return{base:Ge(s),module:a.default??a}}let n=await Ze(e,r,i);if(!n)throw new Error(`Could not resolve '${e}' from '${r}'`);let[o,l]=await Promise.all([Qe(Ye(n).href+"?id="+Date.now()),xe(n)]);for(let s of l)t(s);return{base:Ge(n),module:o.default??o}}async function it(e,r,t,i){let n=await kr(e,r,i);if(!n)throw new Error(`Could not resolve '${e}' from '${r}'`);if(t(n),typeof globalThis.__tw_readFile=="function"){let l=await globalThis.__tw_readFile(n,"utf-8");if(l)return{base:ve.dirname(n),content:l}}let o=await Xe.readFile(n,"utf-8");return{base:ve.dirname(n),content:o}}var Je=null;async function Qe(e){if(typeof globalThis.__tw_load=="function"){let r=await globalThis.__tw_load(e);if(r)return r}try{return await import(e)}catch{return Je??=mr(import.meta.url,{moduleCache:!1,fsCache:!1}),await Je.import(e)}}var ye=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],wr=U.ResolverFactory.createResolver({fileSystem:new U.CachedInputFileSystem(ke,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:ye});async function kr(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return we(wr,e,r)}var yr=U.ResolverFactorLine truncated
|
||||
`)){this.defaultFlush=r}#r=new v(()=>({value:0}));#t=new v(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(n=>n.label).join("//"),i=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:r,namespace:t,value:process.hrtime.bigint()})}end(r){let t=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==r)throw new Error(`Mismatched timer label: \`${r}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),n=t-i.value;this.#t.get(i.id).value+=n}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],i=!1;for(let l=this.#e.length-1;l>=0;l--)this.end(this.#e[l].label);for(let[l,{value:s}]of this.#r.entries()){if(this.#t.has(l))continue;t.length===0&&(i=!0,t.push("Hits:"));let a=l.split("//").length;t.push(`${" ".repeat(a)}${l} ${Q(ot(`\xD7 ${s}`))}`)}this.#t.size>0&&i&&t.push(`
|
||||
Timers:`);let n=-1/0,o=new Map;for(let[l,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;o.set(l,a),n=Math.max(n,a.length)}for(let l of this.#t.keys()){let s=l.split("//").length;t.push(`${Q(`[${o.get(l).padStart(n," ")}]`)}${" ".repeat(s-1)}${s===1?" ":Q(" \u21B3 ")}${l.split("//").pop()} ${this.#r.get(l).value===1?"":Q(ot(`\xD7 ${this.#r.get(l).value}`))}`.trimEnd())}r(`
|
||||
${t.join(`
|
||||
`)}
|
||||
`),this.reset()}[Symbol.dispose](){ee&&this.report()}};function Q(e){return`\x1B[2m${e}\x1B[22m`}function ot(e){return`\x1B[34m${e}\x1B[39m`}import{Features as M,transform as xr}from"lightningcss";function aa(e,{file:r="input.css",minify:t=!1}={}){function i(o){return xr({filename:r,code:o,minify:t,sourceMap:!1,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:M.Nesting|M.MediaQueries,exclude:M.LogicalProperties|M.DirSelector|M.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0}).code}let n=i(i(Buffer.from(e))).toString();return n=n.replaceAll("@media not (","@media not all and ("),n}if(!process.versions.bun){let e=Z.createRequire(import.meta.url);Z.register?.(Ar(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{Jl as Features,nt as Instrumentation,Ql as Polyfills,ra as __unstable__loadDesignSystem,ta as compile,ea as compileAst,te as env,rt as loadModule,me as normalizePath,aa as optimize};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
declare function clearRequireCache(files: string[]): void;
|
||||
|
||||
export { clearRequireCache };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var n=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},u=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of f(e))!l.call(r,c)&&c!==t&&i(r,c,{get:()=>e[c],enumerable:!(o=a(e,c))||o.enumerable});return r};var h=r=>u(i({},"__esModule",{value:!0}),r);var d={};n(d,{clearRequireCache:()=>q});module.exports=h(d);function q(r){for(let e of r)delete require.cache[e]}0&&(module.exports={clearRequireCache});
|
||||
Reference in new issue
Block a user