@fluixi-css/core 1.0.0-next.4 → 1.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +2 -2
- package/dist/src/ast.d.ts +1 -1
- package/dist/src/ast.js +16 -10
- package/dist/src/ast.js.map +1 -1
- package/dist/src/commons/constants.d.ts +256 -256
- package/dist/src/commons/helper.d.ts +521 -521
- package/dist/src/commons/helper.js.map +1 -1
- package/dist/src/components/avatar/index.js.map +1 -1
- package/dist/src/components/button/index.js.map +1 -1
- package/dist/src/components/card/index.js.map +1 -1
- package/dist/src/components/checkbox/index.js.map +1 -1
- package/dist/src/components/daterangepicker/index.js.map +1 -1
- package/dist/src/components/dialog/index.js.map +1 -1
- package/dist/src/components/drawer/index.js.map +1 -1
- package/dist/src/components/dropdown/index.js.map +1 -1
- package/dist/src/components/forms/index.js.map +1 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/layout/index.js.map +1 -1
- package/dist/src/components/list/index.js.map +1 -1
- package/dist/src/components/popover/index.js.map +1 -1
- package/dist/src/components/radio/index.js.map +1 -1
- package/dist/src/components/select/index.js.map +1 -1
- package/dist/src/components/sidenav/index.js.map +1 -1
- package/dist/src/components/table/index.js.map +1 -1
- package/dist/src/css-generator.js +7 -5
- package/dist/src/css-generator.js.map +1 -1
- package/dist/src/css-helpers.js.map +1 -1
- package/dist/src/css-parser.cjs +11 -3
- package/dist/src/css-parser.cjs.map +1 -1
- package/dist/src/css-parser.d.ts +2 -0
- package/dist/src/css-parser.js +19 -12
- package/dist/src/css-parser.js.map +1 -1
- package/dist/src/css-parser.mjs +11 -3
- package/dist/src/css-parser.mjs.map +1 -1
- package/dist/src/design-system.d.ts +12 -12
- package/dist/src/design-system.js +3 -2
- package/dist/src/design-system.js.map +1 -1
- package/dist/src/engine/apply.js +5 -69
- package/dist/src/engine/apply.js.map +1 -1
- package/dist/src/engine/ast.js.map +1 -1
- package/dist/src/engine/atom.js.map +1 -1
- package/dist/src/engine/directives.js.map +1 -1
- package/dist/src/engine/index.d.ts +1 -0
- package/dist/src/engine/index.js +11 -4
- package/dist/src/engine/index.js.map +1 -1
- package/dist/src/engine/log.js.map +1 -1
- package/dist/src/engine/registry.d.ts +7 -0
- package/dist/src/engine/registry.js +9 -0
- package/dist/src/engine/registry.js.map +1 -1
- package/dist/src/engine/scanner.js +6 -0
- package/dist/src/engine/scanner.js.map +1 -1
- package/dist/src/engine/source.js.map +1 -1
- package/dist/src/engine/style.d.ts +65 -0
- package/dist/src/engine/style.js +284 -0
- package/dist/src/engine/style.js.map +1 -0
- package/dist/src/engine/theme-source.js.map +1 -1
- package/dist/src/engine/transform.d.ts +6 -0
- package/dist/src/engine/transform.js +20 -13
- package/dist/src/engine/transform.js.map +1 -1
- package/dist/src/engine/ui-preset.d.ts +2 -0
- package/dist/src/engine/ui-preset.js +2 -0
- package/dist/src/engine/ui-preset.js.map +1 -1
- package/dist/src/engine/utilities/filters.js.map +1 -1
- package/dist/src/engine/utilities/transitions.js.map +1 -1
- package/dist/src/engine/utilities/values.js.map +1 -1
- package/dist/src/engine/variants.js.map +1 -1
- package/dist/src/extractor.d.ts +5 -5
- package/dist/src/extractor.js.map +1 -1
- package/dist/src/index.cjs +2215 -1851
- package/dist/src/index.cjs.map +1 -1
- package/dist/src/index.mjs +2208 -1852
- package/dist/src/index.mjs.map +1 -1
- package/dist/src/keyframes.js.map +1 -1
- package/dist/src/state.js.map +1 -1
- package/dist/src/theme/constants.d.ts +7 -7
- package/dist/src/units/constants.d.ts +18 -18
- package/dist/src/units/index.d.ts +8 -8
- package/dist/src/utilities/backgrounds/constants.d.ts +752 -752
- package/dist/src/utilities/borders/constants.d.ts +1894 -1894
- package/dist/src/utilities/breakpoints/constants.d.ts +34 -34
- package/dist/src/utilities/colors/base.d.ts +128 -128
- package/dist/src/utilities/colors/color.d.ts +228 -228
- package/dist/src/utilities/colors/color.js.map +1 -1
- package/dist/src/utilities/effects/constants.d.ts +239 -239
- package/dist/src/utilities/filters/constants.d.ts +60 -60
- package/dist/src/utilities/flex/constants.d.ts +278 -278
- package/dist/src/utilities/index.d.ts +21616 -21616
- package/dist/src/utilities/interactivity/constants.d.ts +301 -301
- package/dist/src/utilities/layout/constants.d.ts +324 -324
- package/dist/src/utilities/sizing/constants.d.ts +572 -572
- package/dist/src/utilities/spacing/constants.d.ts +1038 -1038
- package/dist/src/utilities/svg/constants.d.ts +235 -235
- package/dist/src/utilities/transforms/constants.d.ts +117 -117
- package/dist/src/utilities/transitions/constants.d.ts +5 -5
- package/dist/src/utilities/typography/constants.d.ts +818 -818
- package/dist/src/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/src/ast.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AACjE,OAAO,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAKnC,OAAO,EACH,QAAQ,EAAE,SAAS,IAAI,YAAY,EAAgB,IAAI,IAAI,OAAO,EAClE,aAAa,EAAE,UAAU,IAAI,cAAc,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,IAAI,UAAU,EACnF,IAAI,IAAI,QAAQ,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC9I,OAAO,EAAE,WAAW,EAAE,aAAa,EAAc,aAAa,EAAE,WAAW,EA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AChD,CAAC;YACL,CAAC;QACL,CAAC;aAAI,CAAC;YACF,EAAS,CAAC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAA;QACvD,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,CAAC,CAAA;IACF,OAAO,QAAQ,CAAC;AACpB,CAAC,AAvCqB,CAuCrB;AA8wBM,uBAAa,GAAG;IACnB,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,CAAC;IACf,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC;CACd,AAPmB,CAOnB;AA4DL,eAAe,SAAS,CAAA","sourcesContent":["import { existsSync, readFileSync, writeFileSync} from \"node:fs\";\nimport path, { dirname, isAbsolute, join } from \"node:path\";\nimport { cwd } from \"node:process\";\nimport {\n CssAstNode, CssStylesheet, CssRule, CssAtRule, CssDeclaration, CssComment, CssKeyframe,\n Location, LocationPosition,\n} from \"./types/css-parser\";\nimport {\n parseCss, stringify as stringifyCss, CssGenerator, walk as walkCss,\n cloneNodeDeep, stylesheet as makeStylesheet, rule as makeRule, atRule as makeAtRule,\n decl as makeDecl, comment as makeComment, WalkVisitor,\n} from \"./css-parser\";\nimport { Features, transform } from \"lightningcss\";\nimport { createMediaQuery, formatClassName, formatMediaQuery, getJustInTimeStyles, objectToCss, objectToCssString, state } from \"./extractor\";\nimport { COMMA_REGEX, isImportantFn, omit, pick, replaceString, splitString } from \"./commons\";\nimport { logger } from \"./logger\";\nimport { AstImport, AstNode } from \"./types/ast\";\nimport DesignSystem from \"./design-system\";\nimport { SourceMapGenerator } from 'source-map';\nimport crypto from \"crypto\"\nimport { Config } from \"./types\";\n\n// Fixed key and initialization vector (IV)\nconst ENCRYPTION_KEY = '1234567890123456'; // Must be 16 bytes for AES-128\nconst IV_LENGTH = 16; // For AES, this is always 16\ninterface AstWalkParent{\n kind: 'rule' | 'atrule',\n name: string,\n value: string,\n index: number,\n node: AstNode\n}\n// ─── CSS ident encode / decode (replaces csstree's ident.encode / ident.decode)\nfunction cssIdentEncode(value: string): string {\n return value.replace(/([^\\w-])/g, (ch) => {\n const code = ch.charCodeAt(0);\n return `\\\\${code.toString(16)} `;\n });\n}\nfunction cssIdentDecode(value: string): string {\n return value\n // Hex escapes first: \\2c → ','\n .replace(/\\\\([0-9a-fA-F]{1,6}) ?/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)))\n // Short-form char escapes (lightningcss emits these): \\. → '.' \\, → ',' \\% → '%' etc.\n .replace(/\\\\([^0-9a-fA-F\\r\\n])/g, (_, ch) => ch);\n}\n\n/** Walk an AST and collect all nodes matching a predicate. */\nfunction findAll(ast: CssAstNode, pred: (n: CssAstNode) => boolean): CssAstNode[] {\n const found: CssAstNode[] = [];\n walkCss(ast, {\n enter(node) {\n if (pred(node)) found.push(node);\n }\n });\n return found;\n}\n\ninterface AstToArray{\n ast: CssAstNode;\n collectSources?: boolean;\n parent?: CssAstNode | null;\n parents?: string[];\n source?: Location;\n debug?: boolean;\n _sourceKey?: string;\n collect?: boolean;\n}\ninterface AstOptions{\n sourceMap?: boolean;\n unwrap?: boolean;\n removeSource?: boolean;\n removeDirectives?: boolean;\n removeComments?: boolean;\n minify?: boolean;\n css?: string;\n designSystem?: DesignSystem;\n logger?: any;\n resolveLocalPresets?: boolean; \n}\nclass AstParser{\n #ast?: CssStylesheet;\n #file?: string;\n #requireImports : boolean = false;\n #hasImports : boolean = false;\n #hasImportMatch : boolean = false;\n #hasImportsDone : boolean = false;\n #replaceSource : boolean = false;\n #cachedJit: Map<string, any> = new Map();\n #encoded_tokens: Map<string, any> = new Map();\n #dependencies: {type: string, file: string, parent?: string, content: string}[] = [];\n #atImportMaps: AstImport[] = [];\n #source?: Location;\n #sourceLocations = new Map();\n #initial?: {\n content: string;\n ast: CssStylesheet;\n }\n #imports: {\n param: string;\n match: string | undefined;\n node: string;\n loc?: Location;\n }[] = []\n #sourceMap = new Map<string, any>();\n #options: AstOptions;\n\n static at_rules_design_fns = [\"defal\", \"apply\"];\n static ImportsMatch = {\n \"@fluixi/css-core/base\": \"base\",\n \"@fluixi/css-core/utilities\": \"utilities\",\n \"@fluixi/css-core/components\": \"components\",\n \"@fluixi/css-core/reset\": \"reset\",\n } as const;\n static PLUGIN_LAYERS = [\"base\", \"utilities\", \"components\"] as const;\n\n static resolveLocalModulesPath(options?: {resolveLocalPresets?: boolean, rootHost?: string}){\n const { resolveLocalPresets = false, rootHost = state ? state.config?.rootHost : null } = options || {};\n const core_base = resolveLocalPresets ? path.resolve(cwd(), 'base.css') : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'base.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/base.css',\n );\n const core_utilities = resolveLocalPresets ? path.resolve(cwd(), 'utilities.css') : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'utilities.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/utilities.css',\n );\n const core_components = resolveLocalPresets\n ? path.resolve(cwd(), 'components.css')\n : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'components.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/components.css',\n );\n const core_reset = resolveLocalPresets\n ? path.resolve(cwd(), 'reset.css')\n : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'reset.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/reset.css',\n );\n return {core_base, core_utilities, core_components, core_reset}\n }\n\n static resolveLocalImportsPath(path: string, resolveLocalPresets: boolean = false){\n const { core_base, core_utilities, core_components, core_reset } =\n this.resolveLocalModulesPath({resolveLocalPresets});\n const match = this.ImportsMatch[path];\n if(match===\"base\"){\n return {path: core_base, match}\n }\n if(match===\"utilities\"){\n return {path: core_utilities, match}\n }\n if(match===\"components\"){\n return {path: core_components, match};\n }\n if(match===\"reset\"){\n return {path: core_reset, match};\n }\n return {path: path}\n }\n static isPluginDeclarativeName(val: string, prefix = true){\n return [...AstParser.PLUGIN_LAYERS, \"sheet\"].some(l=>l===val || `${prefix ? '@': ''}${l}`===val);\n }\n static decode(value: any, map: Map<string, any>){\n if (!value || value.trim().length === 0) return '';\n let result: any = map.get(value.trim());\n if (!result) {\n const starts_with = value.startsWith('\"') && value.endsWith('\"');\n const inner = starts_with ? value.toString().slice(1, -1) : value;\n const key = cssIdentEncode(cssIdentDecode(inner));\n result = map.get(key);\n if (result) return result.from;\n return cssIdentDecode(value);\n }\n return result.from;\n }\n static encode(value: any, map: Map<string, any>){\n let result: any = map.get(value);\n if (result) return result.encoded;\n result = cssIdentEncode(value);\n map.set(value.trim(), {encoded: result, from: value});\n map.set(result.trim(), {encoded: result, from: value});\n return result;\n }\n\n static findImports(ast: CssStylesheet | null | undefined): any[] {\n if (!ast) return [];\n const nodes = findAll(ast, n => n.type === 'atrule' && (n as CssAtRule).name === 'import') as CssAtRule[];\n return nodes.map(n => {\n const val = n.preludeText?.trim() ?? '';\n const isUrl = val.toLowerCase().startsWith('url(');\n return {\n name: n.name,\n loc: n.loc,\n type: isUrl ? 'Url' : 'String',\n value: val,\n node: stringifyCss(n),\n };\n }).filter(a => a !== null);\n }\n static findPluginDirectives(ast: CssStylesheet | null | undefined): any[] {\n if (!ast) return [];\n const nodes = findAll(ast, n => n.type === 'atrule' && (n as CssAtRule).name === 'fluixi') as CssAtRule[];\n return nodes.map(n => {\n const val = n.preludeText?.trim() ?? '';\n if (AstParser.isPluginDeclarativeName(val)) {\n return { name: n.name, loc: n.loc, type: 'String', value: val, node: stringifyCss(n) };\n }\n return null;\n }).filter(a => a !== null);\n }\n static unquote = (params: string)=>{\n const param = /(?:[^'\"`\\s]+(?:[^'\"`])*.)(?=['\"`])/.exec(params.toString());\n return param ? param[0] : params;\n }\n\n /**\n * Encrypts a string using AES-128-CBC.\n * @param {string} text - The text to encrypt.\n * @returns {string} - The encrypted text in base64 format.\n */\n static encrypt(text: string): string {\n // Convert to Base64 and escape special characters\n return Buffer.from(text, 'utf8')\n .toString('base64')\n .replace(/[+/=]/g, char => ({\n '+': '-',\n '/': '_',\n '=': '.'\n }[char] || char));\n }\n\n /**\n * Decrypts a string using AES-128-CBC.\n * @param {string} text - The text to decrypt (IV:encryptedText).\n * @returns {string} - The decrypted text.\n */\n static decrypt(text: string): string {\n // Restore special characters and decode Base64\n const restored = text\n .replace('\"encrypted-', '').replace('\"','').replace(/[-_.]/g, char => ({\n '-': '+',\n '_': '/',\n '.': '='\n }[char] || char));\n return Buffer.from(restored, 'base64').toString('utf8');\n }\n static createComment = (currentComment: {loc?: any; type?: string; value?: string}): CssAtRule => {\n const key = AstParser.generateSourceKey(8);\n const selector = `rule-comment-${key}`;\n const rawVal = currentComment.value?.startsWith('encrypted-')\n ? currentComment.value\n : `\"encrypted-${AstParser.encrypt(currentComment.value ?? '')}\"`;\n const ar: CssAtRule = {\n type: 'atrule',\n name: `comment-${key}`,\n preludeText: AstParser.generateSourceKey(8),\n prelude: [],\n block: {\n type: 'block',\n children: [{\n type: 'declaration',\n property: `--${selector}-content`,\n rawValue: rawVal,\n value: [],\n important: false,\n } as CssDeclaration],\n },\n loc: currentComment.loc,\n };\n return ar;\n }\n static parse(content: string, options: any = {\n parseAtrulePrelude: false,\n parseValue: false,\n parseCustomProperty:false,\n parseRulePrelude: false,\n }, minify = false): CssStylesheet {\n return parseCss(content, {\n ...options,\n includeComments: !minify,\n });\n }\n static DefineBaseImports = (options: any)=>{\n const utilities = state.utilities;\n const {base} = utilities!;\n let css = '';\n let values = base;\n const maybe_jit: string[] = []\n if(values){\n for(const key in values){\n css+=objectToCssString({[key]: values[key]});\n }\n }\n let cssUtilities = '';\n if(options.purge){\n const classes = ((state.utilities_classes || []) as string[])\n for(const key of classes){\n if(utilities && utilities.classMapFlattened.hasOwnProperty(key)){\n let css: string | undefined;\n let className: string | undefined;\n if(key.startsWith('space')){\n css = objectToCss({[\"{& >:not([hidden]) ~ :not([hidden])}\"]: utilities.classMapFlattened[key]}, undefined, `.${key}`, false, false, 0, false);\n className = `.${key}`;\n }else{\n css = objectToCss(utilities.classMapFlattened[key], undefined, `.${key}`, false, false, 0, false);\n className = `.${key}`;\n } \n if(className && css){\n cssUtilities+=css;\n state.updateCssUtilities({[className]: css});\n }\n }else{\n maybe_jit.push(key)\n }\n }\n }else{\n for(const key in utilities?.classMapFlattened){\n if(utilities.classMapFlattened.hasOwnProperty(key)){\n const css = objectToCss(utilities.classMapFlattened[key], undefined, `.${key}`, false, false, 0, false);\n const className = `.${key}`;\n if(css.length>0 && className.length>0){\n cssUtilities+=css;\n state.updateCssUtilities({[className]: css});\n }\n }\n }\n }\n return {base: css, utilities: cssUtilities, maybe_jit}\n }\n static getBaseTransformer = (_options: any, file: string, resolveLocalPresets: boolean = false) =>{\n const {base: layer_base_import, utilities: layer_utilities_import, maybe_jit} = this.DefineBaseImports(_options)\n const ut = state.utilities;\n const vars = (ut as any).rootVars;\n const darkVars = (ut as any).darkRootVars;\n const components_string_vars = (ut as any).components_string_vars;\n let components = '';\n const media = createMediaQuery('dark', '*', true)\n let base_string = ''\n let utilities_string = ''\n if(layer_base_import){\n base_string += layer_base_import as string;\n }\n if(layer_utilities_import){\n utilities_string += layer_utilities_import as string;\n }\n let atomic_css = '';\n\n const classes = state.extracted_classes || [];\n classes.push(...maybe_jit)\n if(classes.length>0){\n const has_tonal = classes.slice().filter(c=>c.includes(\"tonal\"))\n const atomic = DesignSystem.generateAtomicCSS(classes, state, _options, state.config)\n if(atomic){\n atomic_css += atomic.atomic_css;\n }\n }\n try{\n const {core_reset} = AstParser.resolveLocalModulesPath({resolveLocalPresets});\n base_string = readFileSync(core_reset, { encoding: 'utf-8' }) + \"\\n\" + base_string;\n }catch(e){\n console.error('exception during importing reset', e)\n }\n if(vars && vars.length>0){\n if(media.startsWith('@media')){\n base_string += `*,:before,:after,::backdrop{\\n${vars}\\n}\\n`;\n }else{\n base_string += `\\n:not(${media} *){\\n${vars}\\n}\\n`\n // base_string += `\\n:root{\\n${vars}\\n}\\n`\n }\n }\n if(darkVars && darkVars.length>0){\n if(media.startsWith('@media')){\n base_string += `\\n${media}{\\n*,::before,::after,::backdrop{\\n${darkVars}\\n}\\n}`\n }else{\n base_string += `\\n${media}{\\n${darkVars}\\n}\\n`\n }\n }\n if(components_string_vars!==undefined && components_string_vars.length>0){\n components = `${components_string_vars}`;\n }\n const layer = `@layer base, components, utilities;\\n@layer base {\\n${base_string}\\n}\\n@layer components {\\n${components}\\n}\\n@layer utilities {\\n${utilities_string}\\n}`;\n const parsed = AstParser.parse(layer, {filename: file});\n return {layer: parsed, base: base_string, components, utilities: utilities_string, atomic_css};\n }\n\n static isRule = (astNode: AstNode)=>{\n return astNode.kind === \"rule\";\n }\n static isAtRule = (astNode: AstNode, enforce = false)=>{\n if(astNode.kind !== \"atrule\") return false;\n if(!enforce) return true;\n return (enforce && astNode.children && astNode.children.length>0);\n }\n static isRuleOrAtRule = (astNode: AstNode, enforce = false)=>{\n return astNode.kind === \"rule\" || this.isAtRule(astNode, enforce);\n }\n\n static hasChildren = (astNode: AstNode)=>{\n return astNode.children && astNode.children.length > 0;\n }\n\n static hasNestedChilds = (node: AstNode)=>{\n if(node.children && node.children.length > 0){\n if(node.children.some(c=>AstParser.isRuleOrAtRule(c) && AstParser.hasChildren(c) && c.children?.some(cc=>cc.kind === 'rule' || cc.kind === 'atrule'))){\n return true\n }\n }\n return false;\n }\n\n static updateLastRule = (astNode: AstNode, children: AstNode[])=>{\n if(astNode.children && astNode.children.length > 0){\n if(AstParser.hasNestedChilds(astNode)){\n for(const c of astNode.children){\n if(AstParser.hasNestedChilds(c)){\n AstParser.updateLastRule(c, children);\n }\n }\n }else{\n if(AstParser.isRule(astNode)){\n if(!astNode.children) astNode.children = [];\n astNode.children.push(...children);\n }\n }\n }\n }\n static isSelf(str: string){\n if(str.trim().startsWith('&') || str.trim().endsWith('&')){\n return true\n };\n let isS = false;\n if(!str.includes('&')) return isS;\n if(str.includes(' ')){\n const strings = splitString(str);\n const a = [str]\n if(a===strings){\n return isS\n }\n for(const s of strings){\n if(this.isSelf(s)){\n isS = true;\n break;\n }\n }\n }\n return isS;\n }\n static findMainRule(node: AstNode){\n if(node.kind === \"rule\" && !this.isSelf(node.name || '')) return node;\n \n let result: AstNode | undefined;\n for(const child of node.children!){\n if(child.kind === \"rule\" && !this.isSelf(node.name || '')){\n result = child;\n break;\n }else if(child.kind === \"atrule\" && AstParser.hasChildren(child)){\n result = AstParser.findMainRule(child)\n }\n }\n return result;\n }\n\n static buildSelector = (selectors: string[])=>{\n const result: string[] = [];\n if(selectors.length<=1){\n return selectors\n }\n selectors.forEach(selector_ => {\n // If the selector contains '&', treat it as a nested selector\n const sp = selector_.includes(',') ? splitString(selector_, COMMA_REGEX) : [selector_]\n const results: string[] = [];\n for(const selector of sp){\n if (selector.includes('&')) {\n const parentSelector = result[result.length - 1] || '';\n const nestedSelectors: string[] = []\n if(parentSelector.includes(',')){\n const parents = splitString(parentSelector, COMMA_REGEX);\n nestedSelectors.push(...splitString(selector, COMMA_REGEX).map(nested => parents.map(p=>nested.trim().replace(/&/g, p)).join(', ')));\n }else{\n nestedSelectors.push(selector.trim().replace(/&/g, parentSelector))\n // nestedSelectors.push(...splitString(selector, COMMA_REGEX).map(nested => nested.trim().replace(/&/g, parentSelector)));\n }\n results.push(...nestedSelectors);\n \n } else {\n // Add the base selector to the result\n results.push(selector.trim());\n }\n }\n result.push(results.slice().join(', '))\n });\n \n // Join the result with commas to form the final CSS rule selector\n return result;\n }\n static merge(astNodes: AstNode[], rules: AstNode[] = []){\n return astNodes.map(n=>{\n if(n.kind === 'atrule' && n.name === 'layer'){\n const r = rules.find(rule=>rule.name === n.name && rule.value===n.value);\n if(!r){\n rules.push({...n});\n }else{\n r.children?.push(...{...n}.children!.slice())\n n.children = [];\n }\n }else if(n.kind === 'atrule' && n.name === 'import' && n.children){\n const layers = {...n!}.children?.filter(c=>c.kind === 'atrule' && c.name === 'layer')!;\n const other = {...n!}.children?.filter(c=>!(c.kind === 'atrule' && c.name === 'layer'))!;\n if(layers.length > 0){\n layers.forEach(l=>{\n const r = rules.find(rule=>rule.name === l.name && rule.value===l.value);\n if(!r){ \n rules.push({...l});\n }else{\n r.children?.push(...{...l}.children!.slice())\n }\n })\n }\n if(other.length > 0){\n const newRule = {...n};\n newRule.children = other;\n rules.push(newRule);\n }\n }else if(n.kind===\"rule\"){\n const r = rules.find(rule=>rule.name === n.name);\n if(!r){\n rules.push({...n});\n }else{\n r.children?.push(...{...n}.children!.slice())\n n.children = [];\n }\n }else{\n rules.push({...n});\n }\n return rules.slice()\n })\n }\n static generate(ast?: CssAstNode | null): string {\n if (!ast) return '';\n return stringifyCss(ast);\n }\n\n static generateSourceKey(length: number) {\n const characters ='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n let result = '';\n const charactersLength = characters.length;\n for ( let i = 0; i < length; i++ ) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n\n return result;\n }\n\n static addDeclarationSource(node: AstNode, source: Map<string, any>, s?: any){\n if(source){\n const key = this.generateSourceKey(7);\n const sourceDecl = {\n type: 'Declaration',\n loc: s ? s : node.loc,\n property: '--source',\n value: AstParser.parse(key, { context: 'value' }) as any,\n important: false\n };\n source.set(key, node.loc);\n return [sourceDecl];\n }\n return []\n }\n static addAstDeclarationSource(node: AstNode, source: Map<string, any>, s?: any){\n if(source && node.kind === 'rule'){\n const key = this.generateSourceKey(7);\n const source_string = `--source: ${key};`\n const sourceParsed = AstParser.parse(source_string)\n const loc = s ? {...s} : node.loc\n node.children?.push({\n kind: 'decl',\n name: '--source',\n cssNode: sourceParsed,\n node: source_string,\n parents: node.parents,\n value: key,\n loc\n })\n source.set(key, loc)\n }\n }\n\n static generateRule(node: AstNode, declarations: CssDeclaration[] = [], loc?: Location): CssRule {\n return makeRule(node.name || '', declarations, undefined, loc);\n }\n static convertNode(node: AstNode, sourceMap: Map<string, any>, sourceLocations: Map<string, any>, removeDirectives: boolean, options: {\n removeSource: boolean,\n unwrap?: boolean,\n debug?: boolean,\n mappings?: any[],\n renderComments?: boolean\n }, encoded_tokens: Map<string, any>): CssAstNode | CssAstNode[] | null {\n let loc = node.loc ? {...node.loc} : undefined;\n\n const convertChildren = (nodes: AstNode[]): CssAstNode[] =>\n nodes.flatMap(c => {\n const r = AstParser.convertNode(c, sourceMap, sourceLocations, removeDirectives, options, encoded_tokens);\n if (!r) return [] as CssAstNode[];\n return Array.isArray(r) ? r : [r];\n });\n\n switch (node.kind) {\n case 'rule': {\n const sourceDecl: CssDeclaration[] = [];\n const source = node.children?.find(c => c.kind === 'decl' && c.name === '--source');\n if (!source) {\n if (!options.removeSource) {\n // source tracking handled via AstNode children\n }\n } else if (source.value) {\n const s = sourceMap.get(source.value.trim());\n if (s) loc = {...s};\n }\n const declChildren = convertChildren(node.children || []);\n const declarations = declChildren.filter(c => c.type === 'declaration') as CssDeclaration[];\n const nestedChildren = declChildren.filter(c => c.type !== 'declaration') as (CssRule | CssAtRule)[];\n return makeRule(node.name || '', declarations, nestedChildren.length ? nestedChildren : undefined, loc);\n }\n case 'atrule': {\n if (!AstParser.at_rules_design_fns.some(n => n === node.name) && node.name !== 'import') {\n if (node.name === 'layer' && [...AstParser.PLUGIN_LAYERS, 'atomic'].some(l => l === node.value?.trim()) && options.unwrap) {\n return convertChildren(node.children || []);\n } else if (node.name === 'fluixi' && removeDirectives) {\n return null;\n } else {\n const blockChildren = node.children ? convertChildren(node.children) : undefined;\n return makeAtRule(node.name || '', node.value || '', blockChildren, loc);\n }\n } else {\n if (node.children) {\n return convertChildren(node.children);\n } else {\n if (node.name !== 'import') return null;\n return makeAtRule(node.name, node.value || '', undefined, loc);\n }\n }\n }\n case 'decl': {\n if (options.removeSource && node.name?.trim() === '--source') return null;\n const encoded = this.encode((node.value || '').trim(), encoded_tokens);\n const rawVal = node.value === ' ' ? '\\\\xa0' : encoded;\n return makeDecl(node.name || '', rawVal, !!node.important, [], loc);\n }\n case 'comment': {\n const commentAr = AstParser.createComment({\n loc: node.loc,\n type: 'Comment',\n value: node.value!\n });\n commentAr.loc = node.loc || loc;\n return commentAr;\n }\n default:\n return node.cssNode as CssAstNode;\n }\n }\n\n static optimize = (css: string, filename: string=\"index.css\", options: {map?: any, minify: boolean} = {map: null, minify: false})=>{\n const comments: string[] = [];\n const commentPlaceholderPrefix = '/*!__COMMENT_PLACEHOLDER_';\n const commentPlaceholderSuffix = '__*/';\n \n // Replace comments with placeholders and store the original comments\n let cssWithPlaceholders = css.replace(/\\/\\*[\\s\\S]*?\\*\\//g, (match) => {\n const index = comments.length;\n comments.push(match);\n return `${commentPlaceholderPrefix}${index}${commentPlaceholderSuffix}`;\n });\n let { code, map: lightningMap, warnings, } = transform({\n filename,\n code: Buffer.from(css),\n sourceMap: false,\n inputSourceMap: options.map ? options.map : undefined,\n drafts: {\n customMedia: true,\n },\n nonStandard: {\n deepSelectorCombinator: true,\n },\n include: Features.Nesting,\n exclude: Features.LogicalProperties |\n Features.DirSelector |\n Features.LightDark,\n targets: {\n safari: (16 << 16) | (4 << 8),\n chrome: 95,\n firefox: 95,\n },\n minify: options.minify || false,\n errorRecovery: true,\n });\n // Replace placeholders with original comments\n let processedCss = code.toString();\n // for (let i = 0; i < comments.length; i++) {\n // const placeholder = `${commentPlaceholderPrefix}${i}${commentPlaceholderSuffix}`;\n // processedCss = processedCss.replace(placeholder, comments[i]);\n // }\n \n return {code: processedCss, map: lightningMap};\n // return {code: code.toString(), map: lightningMap};\n }\n\n static overrideLoc(node, newLoc) {\n if (node && typeof node === 'object') {\n if (node.loc) {\n node.loc = { ...newLoc };\n }\n for (const key in node) {\n if (Array.isArray(node[key])) {\n node[key].forEach(child => this.overrideLoc(child, newLoc));\n } else if (typeof node[key] === 'object') {\n this.overrideLoc(node[key], newLoc);\n }\n }\n }\n }\n convertAst = (node: AstNode, {postcss, sources, unwrap, encoded_tokens = new Map()}: {postcss: any | null, sources?: Map<string, any> | null, encoded_tokens?: Map<string, any> | null, unwrap?: boolean}={postcss: null, sources: null, unwrap: false})=>{\n if(!postcss) return null;\n const source = {\n start: node.loc.start,\n end: node.loc.end,\n input: new postcss.Input('', {from: node.loc.source})\n }\n if(sources){\n const s = sources.get(node.loc.source);\n if(s){\n source.input = s;\n }\n }\n if(node.kind==='rule'){\n if(!node.children) return null;\n const rule = new postcss.Rule({selector: node.name!});\n rule.source = source;\n const children = [] as any;\n for(const child of node.children){\n const c = this.convertAst(child, {postcss, sources, encoded_tokens});\n if(c){\n if(Array.isArray(c)){\n children.push(...c);\n }else{\n children.push(c);\n }\n }\n }\n if(children.length>0){\n rule.append(children);\n if(this.#options.minify){\n rule.selector = rule.selector.replace(/\\s+/g, '');\n }\n return rule\n }\n }else if(node.kind==='atrule'){\n if(node.name === \"fluixi\"){\n return null;\n }else if(node.name?.startsWith(\"comment\") && !this.#options.minify){\n const childValue = node.children?.find(c=>c.kind===\"decl\")?.value;\n const comment = new postcss.Comment({text: AstParser.decrypt(childValue!)});\n comment.source = source;\n return comment\n }\n if(node.name === \"layer\" && [...AstParser.PLUGIN_LAYERS, \"atomic\"].some(l=>l===node.value?.trim()) && unwrap === true){\n if(!node.children) {\n return null;\n }\n const children = [] as any;\n for(const child of node.children){\n const c = this.convertAst(child, {postcss, sources, unwrap});\n if(c){\n if(Array.isArray(c)){\n children.push(...c);\n }else{\n children.push(c);\n }\n }\n }\n return children;\n }\n const atrule = new postcss.AtRule({name: node.name!, params: node.value});\n const children = [] as any;\n if(!node.children){\n atrule.source = source;\n if(this.#options.minify){\n atrule.params = atrule.params.replace(/\\s+/g, '');\n }\n return atrule\n }\n for(const child of node.children){\n const c = this.convertAst(child, {postcss, sources, encoded_tokens});\n if(c){\n if(Array.isArray(c)){\n children.push(...c);\n }else{\n children.push(c);\n }\n }\n }\n if(children.length>0){\n atrule.append(children);\n atrule.source = source;\n if(this.#options.minify){\n atrule.params = atrule.params.replace(/\\s+/g, '');\n }\n return atrule\n }\n }else if(node.kind==='comment' && !this.#options.minify){\n const comment = new postcss.Comment({text: node.value!});\n comment.source = source;\n return comment\n }else if(node.kind==='decl' && (node.name || '').trim() !== '--source'){\n const decl = new postcss.Declaration({prop: node.name!, value: AstParser.decode(node.value!.replace(/xa0/g, ' '), this.#encoded_tokens), important: !!node.important});\n // const decl = new postcss.Declaration({prop: node.name!, value: node.value!.replace(/var(--space)/g, ' '), important: !!node.important});\n decl.source = source;\n if(this.#options.minify){\n decl.prop = decl.prop.replace(/\\s+/g, ''); // Remove whitespace from properties\n decl.value = decl.value.replace(/\\s+/g, ''); // Remove whitespace from values\n \n }\n return decl\n }\n return null\n }\n astToPostcss = (nodes: AstNode[], root: any, {postcss, sources, unwrap, encoded_tokens}: {postcss: any | null, sources?: Map<string, any> | null, encoded_tokens: Map<string, any>, unwrap?: boolean}={postcss: null, sources: null, unwrap: false, encoded_tokens: new Map()})=>{\n if(!postcss) return null;\n for(const node of nodes){\n const value = this.convertAst(node, {postcss, sources, unwrap, encoded_tokens: encoded_tokens ? encoded_tokens : this.#encoded_tokens});\n if(value){\n if(Array.isArray(value)){\n root.append(...value);\n }else{\n root.append(value);\n }\n }\n }\n if (root.raws.before) {\n root.raws.before = '';\n }\n if (root.raws.after) {\n root.raws.after = '';\n }\n return root;\n }\n\n collectUtilities(nodes: AstNode[]){\n const utilities = new Map<string, string>();\n for(const rule of nodes){\n if(rule.kind === \"atrule\" && rule.name === \"layer\" && rule.value === \"utilities\"){\n if(rule.children){\n for(const child of rule.children){\n if(child.kind === \"rule\" && child.children){\n const name = child.name?.trim();\n if(name){\n utilities.set(name, child.node);\n }\n\n }\n }\n }\n }\n }\n state.updateCssUtilities(Object.fromEntries(utilities));\n return utilities;\n } \n\n clear(){\n this.#ast = undefined;\n this.#file = undefined;\n this.#requireImports = false;\n this.#hasImports = false;\n this.#hasImportMatch = false;\n this.#hasImportsDone = false;\n this.#replaceSource = false;\n this.#cachedJit.clear();\n this.#encoded_tokens.clear()\n this.#dependencies = [];\n this.#atImportMaps = [];\n this.#source = undefined;\n this.#sourceLocations.clear();\n this.#initial = undefined;\n this.#imports = [];\n }\n\n get ast(){\n return this.#ast ? cloneNodeDeep(this.#ast) : null;\n }\n\n get requireImports(){\n return this.#requireImports\n }\n\n get hasImports(){\n return this.#hasImports\n }\n\n get imports(){\n return this.#imports.slice()\n }\n\n get hasImportMatch(){\n return this.#hasImportMatch\n }\n get hasImportsDone(){\n return this.#hasImportsDone\n }\n\n get replaceSource(){\n return this.#replaceSource\n }\n\n get dependencies(){\n return this.#dependencies.slice();\n }\n\n get atImportMaps(){\n return this.#atImportMaps.slice();\n }\n\n get source(){\n return this.#source;\n }\n\n get file(){\n return this.#file;\n }\n\n get designSystem(){\n return this.#options.designSystem;\n }\n\n get logger(){\n if(this.designSystem){\n return this.designSystem.logger;\n }\n return this.#options.logger;\n }\n\n constructor(file: string, options: AstOptions = {}){\n this.#file = file;\n this.#options = options;\n const {ast} = this.init();\n if(!options || !options.css){\n this.#ast = cloneNodeDeep(ast)\n }else{\n this.#ast = AstParser.parse(options.css, {filename: file, positions: true}, this.#options.minify)\n }\n }\n\n init(){\n const _file = state.files?.find(f=>f.file===this.file && f.isStyleSheet)\n const content = (_file && _file.content) ? _file.content : readFileSync(this.file!, 'utf-8');\n const ast = AstParser.parse(content, {positions: true, filename: this.file}, this.#options.minify);\n this.#source = ast.loc;\n const value = {content, ast}\n this.#initial = {...value};\n this.#replaceSource = (this.#options.css!==undefined && this.#initial.content !== this.#options.css);\n // Load per-file config and CSS directives (fire-and-forget; sync after first pass is fine)\n if (this.#options.designSystem && this.file) {\n const ds = this.#options.designSystem;\n // Per-file fluixi.config.* (async – schedule after sync init completes)\n Promise.resolve().then(async () => {\n const filePatch = await ds.loadFileConfig(this.file!);\n if (filePatch) ds.applyConfigPatch(filePatch);\n // CSS-directive-based config (@theme, @plugin, @config, @source)\n const cssPatch = await ds.parseCssDirectives(content, this.file!);\n if (cssPatch && Object.keys(cssPatch).length > 0) ds.applyConfigPatch(cssPatch as any);\n }).catch(() => {});\n }\n return value;\n }\n\n handleBase(){\n if(!this.#initial || !this.#ast){\n return null;\n }\n const import_nodes = AstParser.findImports(this.#initial.ast!);\n const current_import_nodes = AstParser.findImports(this.#ast!);\n const modules = AstParser.resolveLocalModulesPath()\n if(import_nodes.length>0){\n this.#hasImports = true;\n if(import_nodes.length === current_import_nodes.length && import_nodes.length>0){\n this.#requireImports = true \n }\n this.#imports = import_nodes.slice().flatMap(e=>{\n if(e.type === \"String\"){\n const value = AstParser.ImportsMatch[AstParser.unquote(e.value)];\n if(value){\n const loc = e.loc;\n if(loc){\n loc.source = modules[`core_${value}`];\n loc.start.line = 1;\n loc.end.line = 1;\n }\n return {node: e.node, param: e.value, match: value, loc}\n } \n }\n return null;\n }).filter(a=>a!==null)\n }\n this.#hasImportMatch = this.#imports.some(i=>i.match)\n // this.#replaceSource = this.#hasImports && !this.#requireImports;\n return \"ok\";\n }\n\n importAtRule(filePath: string){\n let {path, match}= AstParser.resolveLocalImportsPath(filePath, this.#options.resolveLocalPresets)\n if(!match){\n if(path.startsWith(\".\")){\n path = join(dirname(this.file!), path)\n }else{\n if(!isAbsolute(path) && this.file){\n path = join(dirname(this.file), filePath)\n }\n }\n }\n if(!existsSync(path)) return null;\n const f = state.files?.find(f=>f.file === path && f.isStyleSheet);\n if(f && f.content){\n const content = f.content;\n const parsed = AstParser.parse(content, {filename: path, positions: true}, this.#options.minify);\n return {atImport: parsed, file: path, match: null, content}\n }\n const content = readFileSync(path, {encoding: \"utf-8\"});\n const parsed = AstParser.parse(content, {filename: path, positions: true}, this.#options.minify);\n return {atImport: parsed, file: path, match, content}\n }\n\n loadBaseSources(){\n const init = this.handleBase();\n if(!init) return null;\n this.#dependencies.push({\n type: 'dependency',\n file: this.file!,\n content: this.#initial?.content!,\n parent: this.file\n })\n if(!(this.hasImportMatch && !this.requireImports)){\n const imports = AstParser.findImports(this.#ast!);\n const directives = AstParser.findPluginDirectives(this.#ast!)\n imports.forEach(imported=>{\n if(!this.#sourceLocations.get(imported.value) && imported.loc){\n this.#sourceLocations.set(imported.value, {\n source: imported.loc.source,\n start: imported.loc.start,\n end: imported.loc.end,\n })\n this.#sourceMap.set(imported.value, {\n source: imported.loc.source,\n start: imported.loc.start,\n end: imported.loc.end,\n })\n }\n })\n directives.forEach(directive=>{\n if(!this.#sourceLocations.get(directive.value) && directive.loc){\n this.#sourceLocations.set(directive.value, {\n source: directive.loc.source,\n start: directive.loc.start,\n end: directive.loc.end,\n })\n this.#sourceMap.set(directive.value, {\n source: directive.loc.source,\n start: directive.loc.start,\n end: directive.loc.end,\n })\n }\n })\n }\n\n const entry_imports = AstParser.findImports(this.#initial?.ast);\n entry_imports.forEach(element=>{\n const source = {\n start: element.loc?.start,\n end: element.loc?.end,\n source: element.loc?.source\n }\n const isUrl = element.value.includes('Url(');\n if(!isUrl){\n const at = this.importAtRule(AstParser.unquote(element.value))\n if(at){\n const {atImport, file, match, content} = at;\n this.#dependencies.push({\n type: 'dependency',\n file,\n content,\n parent: this.file\n })\n if(match){\n this.#hasImportsDone = true;\n // this.#replaceSource = true;\n if(!this.#sourceLocations.get(match)){\n const _source = AstParser.resolveLocalModulesPath()[`core_${match}`];\n if(_source){\n source.source = _source\n }\n this.#sourceLocations.set(match, {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n this.#sourceMap.set(match, {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n if(match===\"utilities\"){\n this.#sourceLocations.set(\"atomic\", {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n this.#sourceMap.set(\"atomic\", {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n }\n }\n this.#atImportMaps.push({\n file,\n node: element.node,\n source,\n parent: this.file,\n atImport: atImport,\n match\n })\n }else{\n this.#atImportMaps.push({\n file: this.file!,\n node: element.node,\n source,\n atImport,\n parent: this.file\n }) \n }\n }\n }else{\n this.#atImportMaps.push({\n file: this.file!,\n node: element.node,\n source\n })\n }\n })\n }\n\n HandleScreens = (astNode: AstNode)=>{\n const name = astNode.value?.startsWith('(') ? astNode.value.slice(1, -1) : astNode.value;\n if(name){\n const mediaQuery = formatMediaQuery(name);\n if(mediaQuery){\n const parsed = AstParser.parse(mediaQuery);\n const p = parsed.children.find(f => f.type === 'atrule') as CssAtRule | undefined;\n if(p){\n return {name: p.name, prelude: {value: p.preludeText || ''}, loc: p.loc};\n }\n }\n }\n return null;\n }\n\n static isSpecial = (style: string)=>{\n return style.includes('.') || style.includes('/');\n }\n createStyles = (_applyStyles: any)=>{\n let dataStyles = ''\n \n \n let isImportant = false;\n let applyStyles = _applyStyles.slice() as string[]\n const important = isImportantFn(applyStyles);\n if(important){\n applyStyles = important.str.slice() as string[];\n isImportant = true;\n }\n const um = {...(state.utilities?.utilitiesMap || {})}\n for(const applyStyle of applyStyles){\n let style;\n let hasPoint = false\n let stylesCached: any = this.#cachedJit.get(applyStyle);\n if(stylesCached){\n dataStyles += stylesCached+\"\\n\";\n continue;\n }\n // const selectors = splitString(_selector, COMMA_REGEX)\n if(um){\n style = um[applyStyle];\n if(!style){\n style = um[`.${applyStyle}`];\n hasPoint = true;\n }\n }\n\n\n if (style) {\n let st: any = '';\n if(hasPoint){\n if(typeof style === 'string'){\n st+= style.replace(`.${AstParser.isSpecial(applyStyle) ? formatClassName(applyStyle) :applyStyle}`, 'xxx').replace(!isImportant ? /\\!important/g: '', '')+\"\\n\"\n dataStyles += st;\n }else{\n console.warn('[Fluixi Css] type of style is not string', style)\n }\n }else{\n // console.log('style no point', {style, applyStyle})\n // selectors.forEach(selector=>{\n // const rule = postcss.rule({\n // selector: selector,\n // nodes: [...style],\n // });\n // // rule.after(postcss.comment({text: sourceComment}))\n // // Add source comment\n // // rule.append(postcss.comment({ text: ` @apply ${applyStyle} from ${originalSource}:${sourceLine} ` }));\n // st += rule.toString().replace(!isImportant ? /\\!important/g: '', '')\n // })\n }\n\n this.#cachedJit.set(applyStyle, st) \n }else {\n let styles: any = this.#cachedJit.get(applyStyle);\n let save = false\n if(!styles){\n styles = getJustInTimeStyles('xxx_selector', applyStyle, isImportant)\n save = true;\n }\n \n if(styles && styles.styles && styles.styles.length>0){\n // const parsed = parse(styles.css.trim().replace(/xxx_selector/g, selector), {from: undefined});\n let style = styles.styles.trim().replace(/xxx_selector/g, 'xxx').toString();\n dataStyles += style;\n if(save){\n this.#cachedJit.set(applyStyle, style)\n }\n }else{\n // state.clearState();\n // clearResources();\n // const r = (atRule as postcss.AtRule)\n // const err = r.error(`cutom directive ${applyStyle} is not a valid utility`, {plugin: '@fluixi/jit', word: `${atRule.name}`, index: r.parent?.index(atRule)}).toString();\n logger(\n `[Fluixi Css ⚠️ ]`,\n `cutom directive ${applyStyle} is not a valid utility`,\n );\n // logger(`@fluixi/css-postcss ⚠️`, `cutom directive ${applyStyle} is not a valid utility ${atRule.toString()}`)\n // throw postcss.atRule().error(`cutom directive ${applyStyle} is not a valid utility`, {plugin: '@fluixi/jit', word: `${atRule.name}`});\n\n }\n }\n \n \n }\n return dataStyles;\n }\n\n static mergeRules(ast: CssStylesheet): CssStylesheet {\n const rulesMap = new Map<string, CssRule>();\n const result: CssAstNode[] = [];\n\n for (const node of ast.children) {\n if (node.type === 'rule') {\n const rule = node as CssRule;\n const selector = rule.rawSelector ?? '';\n if (rulesMap.has(selector)) {\n const existing = rulesMap.get(selector)!;\n for (const d of rule.declarations) {\n if (!existing.declarations.some(e => e.property === d.property)) {\n existing.declarations.push({...d});\n }\n }\n } else {\n rulesMap.set(selector, rule);\n result.push(rule);\n }\n } else if (node.type === 'atrule') {\n const ar = node as CssAtRule;\n if (ar.block) {\n const mergedChildren: CssAstNode[] = [];\n const innerMap = new Map<string, CssRule>();\n for (const child of ar.block.children) {\n if (child.type === 'rule') {\n const r = child as CssRule;\n const key = r.rawSelector ?? '';\n if (innerMap.has(key)) {\n const ex = innerMap.get(key)!;\n for (const d of r.declarations) {\n if (!ex.declarations.some(e => e.property === d.property)) {\n ex.declarations.push({...d});\n }\n }\n } else {\n innerMap.set(key, r);\n mergedChildren.push(r);\n }\n } else {\n mergedChildren.push(child);\n }\n }\n ar.block.children = mergedChildren as any;\n }\n result.push(ar);\n } else {\n result.push(node);\n }\n }\n return makeStylesheet(result);\n }\n\n directiveToCss(rule: AstNode, sourceKey?: string, parents: AstNode[] = [], parent?: AstNode): CssStylesheet {\n const l = rule.value ? rule.value : replaceString(rule.node.replace(`@${rule.name} `, ''), ';', false, '');\n const str = l.split(' ');\n const styles = this.createStyles(str);\n const optimized = AstParser.optimize(styles, undefined, {minify: true});\n const parsed = AstParser.parse(optimized.code.replace(/xxx/g, '&'));\n if (sourceKey && !this.#sourceMap.has(sourceKey.trim())) {\n this.#sourceMap.set(sourceKey.trim(), rule.loc);\n }\n return parsed;\n }\n\n findSourceLocation(ast: CssAstNode): string | undefined {\n if (ast.type === 'rule') {\n const rule = ast as CssRule;\n const sourceDecl = rule.declarations.find(d => d.property === '--source');\n if (sourceDecl && sourceDecl.rawValue) {\n return sourceDecl.rawValue.trim();\n }\n }\n return undefined;\n }\n\n extractSourceKey(name: string){\n const match = name.match(/--source-(.*)/);\n return match ? match[1] : null;\n }\n static componentsSources = {\n source: AstParser.resolveLocalModulesPath().core_components,\n start: { offset: 0, line: 1, column: 1 },\n end: { offset: 19, line: 1, column: 20 }\n }\n\n createSourcesMap() {\n const map = new SourceMapGenerator();\n this.#mappings.forEach(m=>{\n map.addMapping(m)\n })\n this.dependencies.forEach(d=>{\n map.setSourceContent(d.file, d.content);\n })\n return map;\n }\n\n\n findRuleParent(parents: AstWalkParent[], child_selector?: string){\n const ruleParents = parents.filter(p => p.kind === 'rule');\n \n if (ruleParents.length > 0) {\n const childSelectors = splitString((child_selector || ''), COMMA_REGEX).map(s => s.trim());\n const closestRuleParent = ruleParents[ruleParents.length - 1];\n const parentSelectors = splitString((closestRuleParent.name || ''), COMMA_REGEX).map(s => s.trim());\n const combinedSelectors = AstParser.combineSelectors(parentSelectors, childSelectors).join(', ');\n return {closestRuleParent, parentSelectors, combinedSelectors}\n }\n return null;\n }\n \n // Helper method to combine parent and child selectors\n static combineSelectors(parentSelectors: string[], childSelectors: string[]): string[] {\n const result: string[] = [];\n \n for (const parent_ of parentSelectors) {\n const sp = splitString(parent_, COMMA_REGEX);\n const results: string[] = [];\n for(const parent of sp){\n for (const child_ of childSelectors) {\n const sc = splitString(child_, COMMA_REGEX);\n for(const child of sc){\n // Replace & with parent selector\n if (child.includes('&')) {\n results.push(child.replace(/&/g, parent));\n } else {\n // If no & is present, assume descendant selector\n results.push(`${parent} ${child}`);\n }\n }\n }\n }\n result.push(results.join(', '))\n }\n \n return result;\n }\n \n\n getRulesParentRuleSelectors(values: string[]){\n return values.slice().filter(v=>!v.startsWith('@') && v!==\"sheet\")\n }\n\n static getSelector(value: string, parents: string[]){\n const parentSelectors = parents.filter(p=>!p.startsWith('@'));\n if(parentSelectors.length>0){\n const selector = AstParser.buildSelector(parentSelectors);\n if(value==='&') return selector;\n const sp = splitString(value, COMMA_REGEX)\n const comb = parentSelectors.length>0 ? AstParser.combineSelectors(selector, sp) : [...sp];\n if(comb.length>sp.length){\n comb.shift()\n }\n return comb\n }\n return [value]\n }\n\n static replaceRulesChild(r: AstNode, first = false){\n if(!r.children) return r;\n if(r.kind === \"rule\"){\n if(r.parents?.filter(p=>!AstParser.isPluginDeclarativeName(p)).length>0){\n if(r.name?.includes('&')){\n const comb = AstParser.getSelector(r.name!, r.parents);\n r.name = comb.join(', ');\n }\n }\n }\n const children: AstNode[] = []\n for(const c of r.children){\n if(c.children && c.children.length>0){\n children.push(this.replaceRulesChild(c))\n }else{\n children.push(c)\n }\n }\n r.children = children.slice();\n return r;\n }\n static formatAstNested = (nodes: AstNode[], child: AstNode)=>{\n const order = ['atrule', 'rule'];\n const sorted = nodes.sort((a, b)=>{\n const aIndex = order.indexOf(a.kind);\n const bIndex = order.indexOf(b.kind);\n return aIndex - bIndex;\n });\n const combined = sorted.reduce((acc, node, index) => {\n if(AstParser.isRule(node)){\n let main = this.findMainRule(acc);\n if(!main){\n // console.log('no main', omit(acc, ['children']))\n main = node\n }else{\n // if(this.isSelf(node.name || '')){\n // console.log('main found', main)\n // }\n }\n if(!main.selectors){\n main.selectors = [{\n ...node,\n kind: \"rule\"\n }]\n }else{\n if(node.name?.startsWith('&')){\n main.selectors.forEach(s=>{\n if(!s.selectors) s.selectors = [];\n s.selectors.push({...node, kind: \"rule\"})\n })\n }else{\n main.selectors.push({...node, kind: \"rule\"})\n }\n }\n }else{\n AstParser.updateLastRule(acc, child.children || [])\n }\n return acc;\n })\n return combined;\n }\n\n astToArray(params: AstToArray): AstNode[]{\n const {ast, collect = undefined, collectSources = false, parent = null, parents = [], source = undefined, debug = false, _sourceKey = undefined} = params;\n const result: AstNode[] = [];\n let _parents = parents.slice();\n let loc = (source !== undefined && source !== null) ? {...source} : ast.loc ? {...ast.loc} : undefined;\n let sourceDecl: Location | undefined;\n if (!collectSources) {\n if (collect !== false && ast.type === 'rule') {\n const ss = this.findSourceLocation(ast);\n sourceDecl = _sourceKey ? this.#sourceMap.get(_sourceKey) : this.#sourceMap.get(ss || '');\n if (sourceDecl) {\n loc = {...sourceDecl};\n }\n const parent_ = parents.find(p => AstParser.PLUGIN_LAYERS.some(a => p === a || `@${p}` === a));\n if (!sourceDecl) {\n if (parent_ && !loc) {\n const base = this.#sourceMap.get(parent_);\n if (base) {\n loc = { source: base?.source, start: base?.start, end: base?.end };\n }\n if (!loc && parent_ === '@components') {\n loc = {...AstParser.componentsSources};\n }\n }\n }\n }\n }\n\n if (ast.type === 'stylesheet') {\n const ss = ast as CssStylesheet;\n const hasSheet = parents.some(p => p === '@sheet') || parents.length > 0;\n for (const child of ss.children) {\n result.push(...this.astToArray({ast: child, collectSources, parent, parents: hasSheet ? [...parents] : ['@sheet'], source, debug, _sourceKey}).slice());\n }\n } else if (ast.type === 'atrule') {\n const ar = ast as CssAtRule;\n if (ar.name.startsWith('comment')) {\n const child = ar.block?.children[0] as CssDeclaration | undefined;\n const rawVal = child?.rawValue ?? '';\n const el: AstNode = {\n kind: 'comment',\n name: '',\n loc,\n value: AstParser.decrypt(rawVal),\n node: child ? stringifyCss(child) : '',\n cssNode: ar,\n parents: parents.slice(),\n important: child?.important ?? false,\n };\n result.push(el);\n } else {\n const children: AstNode[] = [];\n const value = ar.preludeText ?? '';\n _parents.push(`@${value}`);\n for (const child of ar.block?.children || []) {\n children.push(...this.astToArray({ast: child, collectSources, parent, parents: [..._parents], source, debug, _sourceKey}).slice());\n }\n const el: AstNode = {\n kind: 'atrule',\n name: ar.name,\n loc,\n value,\n node: stringifyCss(ar),\n cssNode: ar,\n parents: parents.slice(),\n ...(children.length > 0 ? {children} : {}),\n };\n result.push(el);\n }\n } else if (ast.type === 'rule') {\n const rule = ast as CssRule;\n const value = rule.rawSelector ?? '';\n const children: AstNode[] = [];\n const flattened_nodes: AstNode[] = [];\n\n // Declarations first, then nested children\n const ruleChildren: CssAstNode[] = [\n ...rule.declarations,\n ...(rule.children || []),\n ];\n for (const child of ruleChildren) {\n if (child.type !== 'declaration' && child.type !== 'comment' && value !== '&' && !_parents.some(p => p === value)) {\n _parents.push(value);\n }\n const rule_value = this.astToArray({ast: child, collectSources, parent: rule, parents: [..._parents], source: loc, debug, _sourceKey}).slice();\n if (rule_value.length > 0) {\n if (child.type !== 'declaration' && child.type !== 'comment') {\n // nested atrule comment → keep inline\n if (child.type === 'atrule' && (child as CssAtRule).name.startsWith('comment')) {\n children.push(...rule_value);\n } else {\n flattened_nodes.push(...rule_value);\n }\n } else {\n children.push(...rule_value);\n }\n }\n }\n\n let collected = false;\n if (collect !== false && children.length > 0 && !children.find(c => c.kind === 'decl' && c.name === '--source')) {\n const sourceKey = _sourceKey ? _sourceKey : AstParser.generateSourceKey(10);\n const source_string = `--source: ${sourceKey};`;\n const sourceParsed = AstParser.parse(source_string);\n const currentIdx = children.findIndex(i => i.kind === 'decl' && i.name === '--source');\n if (currentIdx !== -1) {\n children[currentIdx].value = `${sourceKey}`;\n } else if (children.length > 0 && children.every(c => c.kind === 'decl' || c.kind === 'comment')) {\n children.push({\n kind: 'decl',\n name: '--source',\n cssNode: sourceParsed,\n node: source_string,\n parents: parents.slice(),\n value: sourceKey,\n loc,\n });\n }\n if (!this.#sourceMap.has(sourceKey)) {\n this.#sourceMap.set(sourceKey, loc);\n }\n collected = true;\n }\n if (!collected) {\n const dclSource = _sourceKey ? {value: _sourceKey} : children.find(c => c.kind === 'decl' && c.name === '--source');\n if (dclSource && dclSource.value) {\n const s = this.#sourceMap.get(dclSource.value.trim());\n if (s) loc = s;\n }\n }\n\n const name = value;\n const rules: AstNode[] = [];\n if (flattened_nodes.length > 0) {\n for (const r of flattened_nodes) {\n if (r.kind === 'rule') {\n rules.push({...AstParser.replaceRulesChild(r, true)});\n } else if (r.kind === 'atrule' && r.children && !AstParser.isPluginDeclarativeName(r.name || '')) {\n rules.push({...AstParser.replaceRulesChild(r)});\n } else {\n children.push({...r});\n }\n }\n }\n\n if (children.length > 0) {\n if (name.includes('&')) {\n if (name === '&') {\n result.push(...children);\n } else {\n const el: AstNode = {\n kind: 'rule',\n name,\n loc,\n value,\n node: stringifyCss(rule),\n cssNode: rule,\n parents: parents.slice(),\n ...(children.length > 0 ? {children} : {}),\n };\n result.push(el);\n }\n } else {\n const el: AstNode = {\n kind: 'rule',\n name,\n loc,\n value,\n node: stringifyCss(rule),\n cssNode: rule,\n parents: parents.slice(),\n ...(children.length > 0 ? {children} : {}),\n };\n result.push(el);\n }\n }\n if (rules.length > 0) result.push(...rules);\n\n } else if (ast.type === 'declaration') {\n const d = ast as CssDeclaration;\n const rawVal = d.rawValue ?? d.value.map(v => String(v.value)).join(' ');\n const el: AstNode = {\n kind: 'decl',\n name: d.property,\n loc,\n value: rawVal,\n node: stringifyCss(d),\n cssNode: d,\n parents: parents.slice(),\n important: d.important,\n };\n result.push(el);\n } else if (ast.type === 'comment') {\n const c = ast as CssComment;\n const el: AstNode = {\n kind: 'comment',\n name: '',\n loc,\n value: c.value,\n parents: parents.slice(),\n node: stringifyCss(c),\n cssNode: c,\n };\n result.push(el);\n } else {\n const el: AstNode = {\n kind: 'other',\n name: stringifyCss(ast),\n loc,\n node: stringifyCss(ast),\n parents: parents.slice(),\n cssNode: ast,\n value: stringifyCss(ast),\n };\n result.push(el);\n }\n return result;\n }\n\n\n findDecl(node: CssAstNode): Location | null {\n if (node.type === 'rule') {\n const rule = node as CssRule;\n const sourceDecl = rule.declarations.find(d => d.property === '--source');\n if (sourceDecl && sourceDecl.rawValue) {\n return this.#sourceMap.get(sourceDecl.rawValue.trim()) ?? null;\n }\n }\n return null;\n }\n\n /** @deprecated Use collectSourcesAst instead */\n collectSources(_cssNode: CssAstNode): string {\n return '';\n }\n\n collectSourcesAst(cssNodes: AstNode[]) {\n this.#mappings = [];\n let generatedCode = '';\n let currentLine = 1;\n let currentColumn = 0;\n\n // Helper to update position based on generated content\n const updatePosition = (str: string) => {\n let final_str = \"\";\n for (const char of str) {\n if (char === '\\n') {\n currentLine++;\n currentColumn = 0;\n // if(!this.#options.minify){\n // }\n } else {\n currentColumn++;\n }\n generatedCode += char;\n }\n // generatedCode += final_str;\n };\n\n // Helper to find source location from --source declaration\n const findSourceLocation = (node: AstNode): Location | undefined => {\n if (node.kind === 'rule') {\n const sourceDecl = (node.children || []).find(\n child => child.kind === 'decl' && child.name === '--source'\n );\n if (sourceDecl?.value) {\n return this.#sourceMap.get(sourceDecl.value.trim());\n }else{\n }\n }\n return node.loc;\n };\n\n // Helper to add mapping\n const addMapping = (node: AstNode, str: string) => {\n const loc = findSourceLocation(node);\n // Always emit the CSS text; source map entry is optional\n if (loc?.source) {\n this.#mappings.push({\n source: path.resolve(loc.source),\n original: { line: loc.start.line, column: loc.start.column },\n generated: { line: currentLine, column: currentColumn },\n name: null\n });\n }\n updatePosition(str);\n };\n\n // Process nodes recursively\n const processNode = (node: AstNode, indent = '') => {\n switch (node.kind) {\n\n case 'rule':\n addMapping(node, indent +node.name! + ' {\\n');\n for (const child of node.children!) {\n processNode(child, indent + ' ');\n }\n updatePosition(indent + '}\\n');\n break;\n\n case 'decl':\n if (node.name === '--source')break;\n let value = node.value!;\n value = value === '\\\\xa0' ? ' ' : AstParser.decode(value.replace(/xa0/g, ' '), this.#encoded_tokens);\n updatePosition(indent + node.name + ': ' + value + ';\\n');\n // updatePosition(indent + generate(node, { mode: \"spec\", }) + ';\\n');\n break;\n\n case 'atrule':\n const prelude = node.value ? ' ' + node.value : '';\n if(node.name === 'fluixi'){\n break;\n }\n updatePosition(indent + '@' + node.name + prelude);\n \n if (node.children) {\n updatePosition(' {\\n');\n for (const child of node.children) {\n processNode(child, indent + ' ');\n }\n updatePosition(indent + '}\\n');\n } else {\n updatePosition(';\\n');\n }\n break;\n\n case 'comment':\n updatePosition(indent + '/*' + node.value + '*/\\n');\n break;\n \n case 'other':\n updatePosition(indent + node.value)\n default:\n break;\n }\n };\n for (const cssNode of cssNodes) {\n processNode(cssNode);\n }\n\n return generatedCode;\n }\n\n\n arrayToAst(astNodes: AstNode[], options: {\n removeSource: boolean,\n unwrap?: boolean,\n removeDirectives?: boolean,\n debug?: boolean,\n mappings?: any[],\n renderComments?: boolean\n } = {removeSource: false, unwrap: false, removeDirectives: false, debug: false, mappings: [], renderComments: false}): CssStylesheet {\n if (!this.#sourceMap.get('default')) {\n this.#sourceMap.set('default', this.#source);\n }\n const children = astNodes.flatMap(node => {\n const converted = AstParser.convertNode(node, this.#sourceMap, this.#sourceLocations, options.removeDirectives || false, options, this.#encoded_tokens);\n if (!converted) return [] as CssAstNode[];\n return Array.isArray(converted) ? converted : [converted];\n });\n return makeStylesheet(children);\n }\n\n findImportSource(node: AstNode, nodes?: AstNode[]){\n let source: AstNode | undefined;\n if(nodes){\n for(const i of nodes){\n if(i.node === node.node){\n source = i;\n break;\n }\n }\n }else{\n for(const i of this.#atImportMaps){\n if(!i.atImport) continue;\n const astNodes = this.astToArray({ast: i.atImport});\n const v = astNodes.find(n=>n.node === node.node || node.node === AstParser.generate(i.atImport));\n if(v){\n source = v;\n break;\n }\n }\n if(!source){\n const v = this.#astArray.find(n=>n.node === node.node);\n if(v){\n source = v;\n }\n }\n }\n return source;\n }\n\n replaceSources(nodes: AstNode[], sources?: AstNode[]){\n const result: AstNode[] = [];\n for(const node of nodes){\n const source = this.findImportSource(node, sources);\n if(!source){\n result.push(node);\n continue;\n }\n node.loc = {...source.loc};\n if(node.children){\n node.children = this.replaceSources(node.children, source.children);\n const idx = node.children.findIndex(c=>c.name === '--source');\n if(idx ===-1){\n // Remove and map to found source location\n // node.children.splice(idx, 1);\n AstParser.addAstDeclarationSource(node, this.#sourceMap, {...source.loc})\n }\n // const decl = node.children.find(c=>c.name === '--source');\n }\n \n result.push(node);\n }\n return result;\n }\n\n walkAstAndTransform(astNodes: AstNode[], parent?: AstNode, parents: AstNode[] = []) {\n const transformedNodes: AstNode[] = []; // Preallocate the result array\n for (const node of astNodes) {\n if (node.kind === 'atrule') {\n if (node.name === 'import') {\n const _at = this.#atImportMaps.find(i => i.node === node.node);\n if (_at) {\n const { atImport } = _at;\n if (atImport) {\n const nodes = this.astToArray({ast: atImport});\n if(state.config && state.config.debug){\n console.time(`walk transform ${node.node}`)\n }\n const transformed = this.walkAstAndTransform(nodes, parent, [...parents]);\n this.collectUtilities(transformed);\n node.children = transformed;\n transformedNodes.push(node);\n if(state.config && state.config.debug){\n console.timeEnd(`walk transform ${node.node}`)\n }\n }\n }\n } else if (node.name === 'screen') {\n const media = this.HandleScreens(node);\n if (media) {\n node.name = media.name;\n node.value = (media.prelude as any).value;\n // generate(media.prelude!, { mode: \"spec\" });\n } else if (node.children && node.children.length > 0) {\n const transformed = this.walkAstAndTransform(node.children, undefined, [...parents]);\n node.children = transformed;\n transformedNodes.push(node);\n }\n } else if (AstParser.at_rules_design_fns.some(n => n === node.name)) {\n let sourceDecl = parent?.children?.find(c=>c.kind === 'decl' && c.name === '--source');\n let source;\n let sourceKey;\n if(sourceDecl){\n source = this.#sourceMap.get(sourceDecl.value?.trim() || '');\n sourceKey = sourceDecl.value?.trim() || '';\n }else{\n source = parent?.loc\n }\n const value = this.astToArray({ast: this.directiveToCss(node as any, sourceKey, parents, parent), collectSources: false, parent: null, parents: [], source, debug: false, _sourceKey: sourceKey});\n node.children = value;\n transformedNodes.push(node);\n } else if (node.children && node.children.length > 0) {\n const transformed = this.walkAstAndTransform(node.children, undefined, [...parents, node]);\n node.children = transformed;\n transformedNodes.push(node);\n }\n } else if (node.kind === 'rule') {\n const transformed = this.walkAstAndTransform(\n node.children!,\n node,\n [...parents, node],\n );\n node.children = transformed\n transformedNodes.push(node);\n }else{\n transformedNodes.push(node)\n }\n }\n return transformedNodes; // Return the preallocated result array\n }\n #astArray: AstNode[] = [];\n // #sources: any;\n createSourceMap(sources: Array<{\n source: string,\n start: { offset: number, line: number, column: number },\n end: { offset: number, line: number, column: number }\n }>, generator: any) {\n const map = new generator();\n \n sources.forEach(item => {\n map.addMapping({\n source: item.source,\n original: {\n line: item.start.line,\n column: item.start.column\n },\n generated: {\n line: item.start.line,\n column: item.start.column\n }\n });\n \n // Add end position mapping if needed\n map.addMapping({\n source: item.source,\n original: {\n line: item.end.line,\n column: item.end.column\n },\n generated: {\n line: item.end.line,\n column: item.end.column\n }\n });\n });\n \n // Add source content for each unique source\n const uniqueSources = [...new Set(sources.map(item => item.source))];\n uniqueSources.forEach(source => {\n const content = readFileSync(source, 'utf-8');\n map.setSourceContent(source, content);\n });\n \n return map.toJSON();\n }\n\n #mappings: any[] = [];\n\n walkSource(cssNode: CssAstNode) {\n const map = new SourceMapGenerator({\n file: this.file,\n sourceRoot: ''\n });\n walkCss(cssNode, {\n enter: (node) => {\n if (!node.loc) {\n (node as any).loc = this.#source;\n return;\n }\n if (node.loc.source) {\n try {\n const content = readFileSync(node.loc.source, 'utf8');\n map.setSourceContent(node.loc.source, content);\n this.#mappings.forEach(m => { map.addMapping(m); });\n } catch (err) {\n logger('@fluixi/css', `Error generating source map for ${node.loc.source}: ${err}`);\n }\n }\n }\n });\n return map;\n }\n\n static asClassName(name: string){\n return AstParser.isSpecial(name) ? `.${formatClassName(name)}` : `${name}`;\n }\n\n removeUtilities(nodes: AstNode[], removedClasses: string[]){\n const result: AstNode[] = [];\n\n for(const node of nodes.slice()){\n const match = removedClasses.some(c=>c===AstParser.asClassName(node.name!));\n if(node.kind === 'rule' && match){\n // return [];\n }else if(node.kind === \"atrule\" && node.name === \"layer\" && node.value?.trim() === \"utilities\" && node.children && node.children.length > 0){\n const children = this.removeUtilities(node.children!, removedClasses);\n if(children.length>0){\n node.children = children;\n }\n result.push(node);\n }else{\n result.push(node);\n }\n }\n return result;\n }\n addUtilities(nodes: AstNode[], utilities: string[]){\n if(utilities.length === 0){\n return;\n }\n const utilitiesLayer = nodes.find(n=>n.name === \"layer\" && n.value === \"utilities\");\n if(utilitiesLayer){\n const atomic = DesignSystem.generateAtomicCSS(utilities, state, this.designSystem?.config!, this.designSystem?.config!);\n const parsed = this.astToArray({ast: AstParser.parse(`${atomic}`, {context: \"stylesheet\"}, this.#options.minify)});\n logger(`${utilities.length} utilities added`, '')\n utilitiesLayer.children?.push(...parsed)\n // utilitiesLayer.children = [...this.astToArray(AstParser.parse(`@layer atomic{${atomic}}`), null, [], source), ...utilitiesLayer.children]\n }\n }\n\n \n transform(options: {sourceMap: boolean, unwrap?: boolean, sources?: any[]} = {sourceMap: false, unwrap: false, sources: []}): {cssNode: CssStylesheet, css: string, map?: any, ast: AstNode[], files?: any[] | undefined, sources?: SourceMapGenerator}{\n // if(this.designSystem){\n // const buildType = this.designSystem.buildType;\n // console.log('build type', buildType)\n // if(buildType === 'no-changes' || buildType === 'partial'){\n // const cachedAst = this.designSystem.cacheData?.ast;\n // if(cachedAst){\n // let ast = cachedAst as AstNode[];\n // // console.log('cached ast', ast)\n // if(buildType !== 'no-changes'){\n // // console.log('no changes on build')\n // const utilitiesClasses = this.designSystem.updateContextData?.addedUtilitiesClasses;\n // const classes = this.designSystem.updateContextData?.addedClasses;\n // const removedUtilitiesClasses = this.designSystem.updateContextData?.removedUtilitiesClasses;\n // const removedClasses = this.designSystem.updateContextData?.removedClasses;\n // const added = [...(utilitiesClasses || []), ...(classes || [])];\n // const removed = [...(removedUtilitiesClasses || []), ...(removedClasses || [])];\n // console.log('added', added);\n // console.log('removed', removed);\n // if(removed.length>0){\n // const removedNodes = this.removeUtilities(ast.slice(), removed);\n // if(removedNodes.length>0){\n // logger(`${removed.length} utilities removed`, '')\n // ast = removedNodes;\n // }\n // }\n // if(added.length>0){\n // this.addUtilities(ast, added);\n // }\n // }\n // this.designSystem?.buildVisualizerOutput();\n // const styles = this.generateStyles(ast, {\n // removeSource: true,\n // // unwrap: options.unwrap,\n // unwrap: false,\n // removeDirectives: true,\n // sourceMap: options.sourceMap\n // })\n // if(buildType === 'partial'){\n // this.designSystem?.saveCache(ast);\n // }\n // return styles;\n // // return {cssNode: this.arrayToAst(ast), css: AstParser.generate(ast), ast};\n // }\n // }\n // }\n\n // console.time('load base')\n this.loadBaseSources();\n this.#astArray = this.astToArray({ast: this.#initial?.ast!, collectSources: false, collect: false})\n let astArray: AstNode[] = [];\n if(this.replaceSource){\n // console.time('replace sources')\n astArray = this.replaceSources(this.astToArray({ast: this.#ast!, collectSources: false, collect: false}));\n // console.timeEnd('replace sources')\n }else{\n astArray = this.astToArray({ast: this.#ast!, collectSources: true});\n }\n const array = astArray.slice();\n this.collectUtilities(array)\n const walked = this.walkAstAndTransform(array);\n\n const t = AstParser.generate(this.unwrap(this.arrayToAst(walked, {removeDirectives: true, removeSource: true})));\n const transformer = AstParser.getBaseTransformer(state.config, this.file!, this.#options.resolveLocalPresets)\n const ast = this.addPresets(walked, transformer)\n const styles = this.generateStyles(ast.ast, {\n cssNode: ast.cssNode,\n removeSource: true,\n unwrap: options.unwrap,\n removeDirectives: true,\n sourceMap: options.sourceMap\n })\n // console.log('generate styles from ast transform')\n styles.cssNode.loc = this.#source\n this.designSystem?.buildVisualizerOutput();\n // this.designSystem?.saveCache(ast.ast);\n return {...styles, files: this.designSystem?.files};\n }\n\n get mappings(){\n return this.#mappings;\n }\n\n getPreludeString(cssNode: CssRule | CssAtRule): string {\n if (!cssNode) return '';\n if (cssNode.type === 'rule') return (cssNode as CssRule).rawSelector ?? '';\n if (cssNode.type === 'atrule') return (cssNode as CssAtRule).preludeText ?? '';\n return '';\n }\n\n getDecltring(cssNode: CssDeclaration): string {\n if (!cssNode) return '';\n return AstParser.decrypt(cssNode.rawValue ?? '');\n }\n\n getAtRuleCommentValue(el: CssAtRule): string {\n const decl = el.block?.children[0] as CssDeclaration | undefined;\n if (!decl) return '';\n return AstParser.decrypt(decl.rawValue ?? '');\n }\n\n reinsertComments(css: CssStylesheet): CssStylesheet {\n const ast = cloneNodeDeep(css);\n walkCss(ast, {\n atrule(node, ctx) {\n if (node.name.startsWith('comment')) {\n const decl = node.block?.children[0] as CssDeclaration | undefined;\n const v = AstParser.decrypt(decl?.rawValue ?? '');\n const commentNode: CssComment = {\n type: 'comment',\n value: v,\n style: v.includes('\\n') ? 'multi-line' : 'single-line',\n loc: node.loc,\n };\n // Insert comment before this atrule, then keep the atrule\n // We do this by replacing the node with an array via parent manipulation.\n // Simplest: replace the comment-atrule with the comment node itself.\n ctx.replace(commentNode);\n }\n }\n });\n return ast;\n }\n\n unwrap(css: CssStylesheet): CssStylesheet {\n walkCss(css, {\n atrule(node, ctx) {\n if (node.name === 'layer' && [...AstParser.PLUGIN_LAYERS, 'atomic'].some(l => l === node.preludeText?.trim())) {\n const children = node.block?.children;\n if (children && children.length > 0) {\n // Replace with first child; the rest are pushed by repeated replacement.\n // For full replacement of one node with N children, we need to handle via parent.\n // Since our walker supports replace() for single node, we serialize and re-parse.\n // Alternatively, mark for removal and add children to parent — done after walk.\n // ctx.remove();\n ctx.replace(node.block!.children as any);\n }\n }\n }\n });\n return css;\n }\n\n generateStyles(ast: AstNode[], options: {sourceMap: boolean, unwrap?: boolean, removeSource?: boolean, removeDirectives?: boolean, cssNode?: CssStylesheet} = {sourceMap: false, unwrap: false, removeSource: false, removeDirectives: false}){\n const initialCssNode: CssStylesheet = options.cssNode ? {...options.cssNode} : this.arrayToAst(ast, {\n removeSource: false,\n unwrap: options.unwrap,\n removeDirectives: options.removeDirectives,\n debug: true,\n mappings: this.#mappings\n });\n // Apply comment reinsertion\n // const cssNode = this.#options.minify ? initialCssNode : this.reinsertComments(initialCssNode);\n const cssNode = initialCssNode\n // const cssNode = this.#options.minify ? initialCssNode : this.reinsertComments(initialCssNode);\n let css: string = AstParser.generate(options.unwrap ? this.unwrap(cssNode) : cssNode);\n // writeFileSync(path.join(cwd(), 'walked_presets.css'), css);\n let map: SourceMapGenerator | undefined;\n css = this.collectSourcesAst(ast);\n if(options.sourceMap && !this.#options.minify){\n map = this.createSourcesMap();\n } else {\n if(this.#options.minify){\n css = AstParser.optimize(css, this.#file, {minify: this.#options.minify}).code;\n }\n }\n css = css.replace(/xa0/g, ' ');\n return {cssNode, css, ast, map};\n }\n\n attachLayer(nodes: AstNode[], content?: string, name?: string){\n if(!content || content.length === 0 || !name){\n return undefined;\n }\n const source = this.#sourceLocations.get(name === 'atomic' ? \"utilities\" : name);\n const layer = nodes.find(n=>n.name === \"layer\" && (n.value===name));\n if(layer){\n if(!layer.children) {layer.children = []}\n layer.children = [...this.astToArray({ast: AstParser.parse(content, {}, this.#options.minify), collectSources: false, parent: null, parents: [], source, debug: false, _sourceKey: name === 'atomic' ? \"utilities\" : name}), ...layer.children]\n return undefined;\n }else{\n const str = `@layer ${name} {${content}}`\n // writeFileSync(join(cwd(), `${name}-layer.css`), str)\n const atomic = this.astToArray({ast: AstParser.parse(str, {}, this.#options.minify), collectSources: false, parent: null, parents: [], source, debug: false, _sourceKey: name === 'atomic' ? \"utilities\" : name});\n return atomic;\n }\n }\n static LAYERS_WEIGHT = {\n \"imports\": 0,\n \"base\": 1,\n \"other\": 2,\n \"components\": 3,\n \"utilities\": 4,\n \"atomic\": 5,\n }\n\n static getLayerWeight(kind?: string, name?: string){\n if(kind === 'import'){\n return AstParser.LAYERS_WEIGHT.imports;\n }\n if(!name){\n return AstParser.LAYERS_WEIGHT.other;\n }\n return this.LAYERS_WEIGHT[name.replace('@', '') as keyof typeof AstParser.LAYERS_WEIGHT] || AstParser.LAYERS_WEIGHT.other;\n }\n\n orderNodes(nodes: AstNode[]){ \n return nodes.sort((a, b)=>{\n return AstParser.getLayerWeight(a.name, a.value) - AstParser.getLayerWeight(b.name, b.value);\n });\n }\n addPresets(astNodes: AstNode[], transformer: ReturnType<typeof AstParser.getBaseTransformer>){\n const merge = AstParser.merge(astNodes.slice()).pop()!;\n \n const layers = [...AstParser.PLUGIN_LAYERS, \"atomic\"];\n for(const layer of layers){\n if(layer === \"atomic\"){\n if(transformer.atomic_css.length>0){\n const l = this.attachLayer(merge, transformer.atomic_css!, \"atomic\");\n if(l){\n merge.push(...l);\n }\n }\n }else{\n const l = this.attachLayer(merge, transformer[layer], layer);\n if(l){\n merge.push(...l);\n }\n }\n }\n // const ordered = merge.slice();\n // const ordered = AstParser.processNesting(this.orderNodes(merge.slice()));\n const ordered = this.orderNodes(merge.slice());\n const generated = AstParser.generate(this.arrayToAst(ordered, {renderComments: true, removeSource: false}));\n const optimized = AstParser.optimize(generated, this.file!, {minify: false});\n // writeFileSync(join(cwd(), 'generated_presets.css'), optimized.code)\n const parsed = AstParser.parse(optimized.code, {positions: true, filename: this.file, }, true);\n walkCss(parsed, {\n rule: (node, ctx) => {\n const dcl = this.findDecl(node);\n if (dcl && node.declarations.length === 1) {\n ctx.remove();\n }\n }\n });\n const cssNode = parsed;\n const ast = this.astToArray({ast: cssNode, collectSources: false, parent: null, parents: [], source: undefined, debug: false, _sourceKey: undefined});\n return {cssNode, ast};\n\n }\n\n}\n\n\nexport default AstParser"]}
|
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AACjE,OAAO,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAKnC,OAAO,EACH,QAAQ,EAAE,SAAS,IAAI,YAAY,EAAgB,IAAI,IAAI,OAAO,EAClE,aAAa,EAAE,UAAU,IAAI,cAAc,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,IAAI,UAAU,EACnF,IAAI,IAAI,QAAQ,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC9I,OAAO,EAAE,WAAW,EAAE,aAAa,EAAc,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIhD,2CAA2C;AAC3C,MAAM,cAAc,GAAG,kBAAkB,CAAC,CAAC,+BAA+B;AAC1E,MAAM,SAAS,GAAG,EAAE,CAAC,CAAC,6BAA6B;AAQnD,iFAAiF;AACjF,SAAS,cAAc,CAAC,KAAa;IACjC,O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AOnB;AA4DL,eAAe,SAAS,CAAA","sourcesContent":["import { existsSync, readFileSync, writeFileSync} from \"node:fs\";\nimport path, { dirname, isAbsolute, join } from \"node:path\";\nimport { cwd } from \"node:process\";\nimport {\n CssAstNode, CssStylesheet, CssRule, CssAtRule, CssDeclaration, CssComment, CssKeyframe,\n Location, LocationPosition,\n} from \"./types/css-parser\";\nimport {\n parseCss, stringify as stringifyCss, CssGenerator, walk as walkCss,\n cloneNodeDeep, stylesheet as makeStylesheet, rule as makeRule, atRule as makeAtRule,\n decl as makeDecl, comment as makeComment, WalkVisitor,\n} from \"./css-parser\";\nimport { Features, transform } from \"lightningcss\";\nimport { createMediaQuery, formatClassName, formatMediaQuery, getJustInTimeStyles, objectToCss, objectToCssString, state } from \"./extractor\";\nimport { COMMA_REGEX, isImportantFn, omit, pick, replaceString, splitString } from \"./commons\";\nimport { logger } from \"./logger\";\nimport { AstImport, AstNode } from \"./types/ast\";\nimport DesignSystem from \"./design-system\";\nimport { SourceMapGenerator } from 'source-map';\nimport crypto from \"crypto\"\nimport { Config } from \"./types\";\n\n// Fixed key and initialization vector (IV)\nconst ENCRYPTION_KEY = '1234567890123456'; // Must be 16 bytes for AES-128\nconst IV_LENGTH = 16; // For AES, this is always 16\ninterface AstWalkParent{\n kind: 'rule' | 'atrule',\n name: string,\n value: string,\n index: number,\n node: AstNode\n}\n// ─── CSS ident encode / decode (replaces csstree's ident.encode / ident.decode)\nfunction cssIdentEncode(value: string): string {\n return value.replace(/([^\\w-])/g, (ch) => {\n const code = ch.charCodeAt(0);\n return `\\\\${code.toString(16)} `;\n });\n}\nfunction cssIdentDecode(value: string): string {\n return value\n // Hex escapes first: \\2c → ','\n .replace(/\\\\([0-9a-fA-F]{1,6}) ?/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)))\n // Short-form char escapes (lightningcss emits these): \\. → '.' \\, → ',' \\% → '%' etc.\n .replace(/\\\\([^0-9a-fA-F\\r\\n])/g, (_, ch) => ch);\n}\n\n/** Walk an AST and collect all nodes matching a predicate. */\nfunction findAll(ast: CssAstNode, pred: (n: CssAstNode) => boolean): CssAstNode[] {\n const found: CssAstNode[] = [];\n walkCss(ast, {\n enter(node) {\n if (pred(node)) found.push(node);\n }\n });\n return found;\n}\n\ninterface AstToArray{\n ast: CssAstNode;\n collectSources?: boolean;\n parent?: CssAstNode | null;\n parents?: string[];\n source?: Location;\n debug?: boolean;\n _sourceKey?: string;\n collect?: boolean;\n}\ninterface AstOptions{\n sourceMap?: boolean;\n unwrap?: boolean;\n removeSource?: boolean;\n removeDirectives?: boolean;\n removeComments?: boolean;\n minify?: boolean;\n css?: string;\n designSystem?: DesignSystem;\n logger?: any;\n resolveLocalPresets?: boolean; \n}\nclass AstParser{\n #ast?: CssStylesheet;\n #file?: string;\n #requireImports : boolean = false;\n #hasImports : boolean = false;\n #hasImportMatch : boolean = false;\n #hasImportsDone : boolean = false;\n #replaceSource : boolean = false;\n #cachedJit: Map<string, any> = new Map();\n #encoded_tokens: Map<string, any> = new Map();\n #dependencies: {type: string, file: string, parent?: string, content: string}[] = [];\n #atImportMaps: AstImport[] = [];\n #source?: Location;\n #sourceLocations = new Map();\n #initial?: {\n content: string;\n ast: CssStylesheet;\n }\n #imports: {\n param: string;\n match: string | undefined;\n node: string;\n loc?: Location;\n }[] = []\n #sourceMap = new Map<string, any>();\n #options: AstOptions;\n\n static at_rules_design_fns = [\"defal\", \"apply\"];\n static ImportsMatch = {\n \"@fluixi/css-core/base\": \"base\",\n \"@fluixi/css-core/utilities\": \"utilities\",\n \"@fluixi/css-core/components\": \"components\",\n \"@fluixi/css-core/reset\": \"reset\",\n } as const;\n static PLUGIN_LAYERS = [\"base\", \"utilities\", \"components\"] as const;\n\n static resolveLocalModulesPath(options?: {resolveLocalPresets?: boolean, rootHost?: string}){\n const { resolveLocalPresets = false, rootHost = state ? state.config?.rootHost : null } = options || {};\n const core_base = resolveLocalPresets ? path.resolve(cwd(), 'base.css') : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'base.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/base.css',\n );\n const core_utilities = resolveLocalPresets ? path.resolve(cwd(), 'utilities.css') : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'utilities.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/utilities.css',\n );\n const core_components = resolveLocalPresets\n ? path.resolve(cwd(), 'components.css')\n : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'components.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/components.css',\n );\n const core_reset = resolveLocalPresets\n ? path.resolve(cwd(), 'reset.css')\n : rootHost && rootHost.length > 0\n ? path.resolve(\n path.relative(cwd(), rootHost),\n 'node_modules',\n '@fluixi/css-core',\n 'reset.css',\n )\n : path.resolve(\n cwd(),\n 'node_modules',\n '@fluixi/css-core/reset.css',\n );\n return {core_base, core_utilities, core_components, core_reset}\n }\n\n static resolveLocalImportsPath(path: string, resolveLocalPresets: boolean = false){\n const { core_base, core_utilities, core_components, core_reset } =\n this.resolveLocalModulesPath({resolveLocalPresets});\n const match = this.ImportsMatch[path];\n if(match===\"base\"){\n return {path: core_base, match}\n }\n if(match===\"utilities\"){\n return {path: core_utilities, match}\n }\n if(match===\"components\"){\n return {path: core_components, match};\n }\n if(match===\"reset\"){\n return {path: core_reset, match};\n }\n return {path: path}\n }\n static isPluginDeclarativeName(val: string, prefix = true){\n return [...AstParser.PLUGIN_LAYERS, \"sheet\"].some(l=>l===val || `${prefix ? '@': ''}${l}`===val);\n }\n static decode(value: any, map: Map<string, any>){\n if (!value || value.trim().length === 0) return '';\n let result: any = map.get(value.trim());\n if (!result) {\n const starts_with = value.startsWith('\"') && value.endsWith('\"');\n const inner = starts_with ? value.toString().slice(1, -1) : value;\n const key = cssIdentEncode(cssIdentDecode(inner));\n result = map.get(key);\n if (result) return result.from;\n return cssIdentDecode(value);\n }\n return result.from;\n }\n static encode(value: any, map: Map<string, any>){\n let result: any = map.get(value);\n if (result) return result.encoded;\n result = cssIdentEncode(value);\n map.set(value.trim(), {encoded: result, from: value});\n map.set(result.trim(), {encoded: result, from: value});\n return result;\n }\n\n static findImports(ast: CssStylesheet | null | undefined): any[] {\n if (!ast) return [];\n const nodes = findAll(ast, n => n.type === 'atrule' && (n as CssAtRule).name === 'import') as CssAtRule[];\n return nodes.map(n => {\n const val = n.preludeText?.trim() ?? '';\n const isUrl = val.toLowerCase().startsWith('url(');\n return {\n name: n.name,\n loc: n.loc,\n type: isUrl ? 'Url' : 'String',\n value: val,\n node: stringifyCss(n),\n };\n }).filter(a => a !== null);\n }\n static findPluginDirectives(ast: CssStylesheet | null | undefined): any[] {\n if (!ast) return [];\n const nodes = findAll(ast, n => n.type === 'atrule' && (n as CssAtRule).name === 'fluixi') as CssAtRule[];\n return nodes.map(n => {\n const val = n.preludeText?.trim() ?? '';\n if (AstParser.isPluginDeclarativeName(val)) {\n return { name: n.name, loc: n.loc, type: 'String', value: val, node: stringifyCss(n) };\n }\n return null;\n }).filter(a => a !== null);\n }\n static unquote = (params: string)=>{\n const param = /(?:[^'\"`\\s]+(?:[^'\"`])*.)(?=['\"`])/.exec(params.toString());\n return param ? param[0] : params;\n }\n\n /**\n * Encrypts a string using AES-128-CBC.\n * @param {string} text - The text to encrypt.\n * @returns {string} - The encrypted text in base64 format.\n */\n static encrypt(text: string): string {\n // Convert to Base64 and escape special characters\n return Buffer.from(text, 'utf8')\n .toString('base64')\n .replace(/[+/=]/g, char => ({\n '+': '-',\n '/': '_',\n '=': '.'\n }[char] || char));\n }\n\n /**\n * Decrypts a string using AES-128-CBC.\n * @param {string} text - The text to decrypt (IV:encryptedText).\n * @returns {string} - The decrypted text.\n */\n static decrypt(text: string): string {\n // Restore special characters and decode Base64\n const restored = text\n .replace('\"encrypted-', '').replace('\"','').replace(/[-_.]/g, char => ({\n '-': '+',\n '_': '/',\n '.': '='\n }[char] || char));\n return Buffer.from(restored, 'base64').toString('utf8');\n }\n static createComment = (currentComment: {loc?: any; type?: string; value?: string}): CssAtRule => {\n const key = AstParser.generateSourceKey(8);\n const selector = `rule-comment-${key}`;\n const rawVal = currentComment.value?.startsWith('encrypted-')\n ? currentComment.value\n : `\"encrypted-${AstParser.encrypt(currentComment.value ?? '')}\"`;\n const ar: CssAtRule = {\n type: 'atrule',\n name: `comment-${key}`,\n preludeText: AstParser.generateSourceKey(8),\n prelude: [],\n block: {\n type: 'block',\n children: [{\n type: 'declaration',\n property: `--${selector}-content`,\n rawValue: rawVal,\n value: [],\n important: false,\n } as CssDeclaration],\n },\n loc: currentComment.loc,\n };\n return ar;\n }\n static parse(content: string, options: any = {\n parseAtrulePrelude: false,\n parseValue: false,\n parseCustomProperty:false,\n parseRulePrelude: false,\n }, minify = false): CssStylesheet {\n return parseCss(content, {\n ...options,\n includeComments: !minify,\n });\n }\n static DefineBaseImports = (options: any)=>{\n const utilities = state.utilities;\n const {base} = utilities!;\n let css = '';\n let values = base;\n const maybe_jit: string[] = []\n if(values){\n for(const key in values){\n css+=objectToCssString({[key]: values[key]});\n }\n }\n let cssUtilities = '';\n if(options.purge){\n const classes = ((state.utilities_classes || []) as string[])\n for(const key of classes){\n if(utilities && utilities.classMapFlattened.hasOwnProperty(key)){\n let css: string | undefined;\n let className: string | undefined;\n if(key.startsWith('space')){\n css = objectToCss({[\"{& >:not([hidden]) ~ :not([hidden])}\"]: utilities.classMapFlattened[key]}, undefined, `.${key}`, false, false, 0, false);\n className = `.${key}`;\n }else{\n css = objectToCss(utilities.classMapFlattened[key], undefined, `.${key}`, false, false, 0, false);\n className = `.${key}`;\n } \n if(className && css){\n cssUtilities+=css;\n state.updateCssUtilities({[className]: css});\n }\n }else{\n maybe_jit.push(key)\n }\n }\n }else{\n for(const key in utilities?.classMapFlattened){\n if(utilities.classMapFlattened.hasOwnProperty(key)){\n const css = objectToCss(utilities.classMapFlattened[key], undefined, `.${key}`, false, false, 0, false);\n const className = `.${key}`;\n if(css.length>0 && className.length>0){\n cssUtilities+=css;\n state.updateCssUtilities({[className]: css});\n }\n }\n }\n }\n return {base: css, utilities: cssUtilities, maybe_jit}\n }\n static getBaseTransformer = (_options: any, file: string, resolveLocalPresets: boolean = false) =>{\n const {base: layer_base_import, utilities: layer_utilities_import, maybe_jit} = this.DefineBaseImports(_options)\n const ut = state.utilities;\n const vars = (ut as any).rootVars;\n const darkVars = (ut as any).darkRootVars;\n const components_string_vars = (ut as any).components_string_vars;\n let components = '';\n const media = createMediaQuery('dark', '*', true)\n let base_string = ''\n let utilities_string = ''\n if(layer_base_import){\n base_string += layer_base_import as string;\n }\n if(layer_utilities_import){\n utilities_string += layer_utilities_import as string;\n }\n let atomic_css = '';\n\n const classes = state.extracted_classes || [];\n classes.push(...maybe_jit)\n if(classes.length>0){\n const has_tonal = classes.slice().filter(c=>c.includes(\"tonal\"))\n const atomic = DesignSystem.generateAtomicCSS(classes, state, _options, state.config)\n if(atomic){\n atomic_css += atomic.atomic_css;\n }\n }\n try{\n const {core_reset} = AstParser.resolveLocalModulesPath({resolveLocalPresets});\n base_string = readFileSync(core_reset, { encoding: 'utf-8' }) + \"\\n\" + base_string;\n }catch(e){\n console.error('exception during importing reset', e)\n }\n if(vars && vars.length>0){\n if(media.startsWith('@media')){\n base_string += `*,:before,:after,::backdrop{\\n${vars}\\n}\\n`;\n }else{\n base_string += `\\n:not(${media} *){\\n${vars}\\n}\\n`\n // base_string += `\\n:root{\\n${vars}\\n}\\n`\n }\n }\n if(darkVars && darkVars.length>0){\n if(media.startsWith('@media')){\n base_string += `\\n${media}{\\n*,::before,::after,::backdrop{\\n${darkVars}\\n}\\n}`\n }else{\n base_string += `\\n${media}{\\n${darkVars}\\n}\\n`\n }\n }\n if(components_string_vars!==undefined && components_string_vars.length>0){\n components = `${components_string_vars}`;\n }\n const layer = `@layer base, components, utilities;\\n@layer base {\\n${base_string}\\n}\\n@layer components {\\n${components}\\n}\\n@layer utilities {\\n${utilities_string}\\n}`;\n const parsed = AstParser.parse(layer, {filename: file});\n return {layer: parsed, base: base_string, components, utilities: utilities_string, atomic_css};\n }\n\n static isRule = (astNode: AstNode)=>{\n return astNode.kind === \"rule\";\n }\n static isAtRule = (astNode: AstNode, enforce = false)=>{\n if(astNode.kind !== \"atrule\") return false;\n if(!enforce) return true;\n return (enforce && astNode.children && astNode.children.length>0);\n }\n static isRuleOrAtRule = (astNode: AstNode, enforce = false)=>{\n return astNode.kind === \"rule\" || this.isAtRule(astNode, enforce);\n }\n\n static hasChildren = (astNode: AstNode)=>{\n return astNode.children && astNode.children.length > 0;\n }\n\n static hasNestedChilds = (node: AstNode)=>{\n if(node.children && node.children.length > 0){\n if(node.children.some(c=>AstParser.isRuleOrAtRule(c) && AstParser.hasChildren(c) && c.children?.some(cc=>cc.kind === 'rule' || cc.kind === 'atrule'))){\n return true\n }\n }\n return false;\n }\n\n static updateLastRule = (astNode: AstNode, children: AstNode[])=>{\n if(astNode.children && astNode.children.length > 0){\n if(AstParser.hasNestedChilds(astNode)){\n for(const c of astNode.children){\n if(AstParser.hasNestedChilds(c)){\n AstParser.updateLastRule(c, children);\n }\n }\n }else{\n if(AstParser.isRule(astNode)){\n if(!astNode.children) astNode.children = [];\n astNode.children.push(...children);\n }\n }\n }\n }\n static isSelf(str: string){\n if(str.trim().startsWith('&') || str.trim().endsWith('&')){\n return true\n };\n let isS = false;\n if(!str.includes('&')) return isS;\n if(str.includes(' ')){\n const strings = splitString(str);\n const a = [str]\n if(a===strings){\n return isS\n }\n for(const s of strings){\n if(this.isSelf(s)){\n isS = true;\n break;\n }\n }\n }\n return isS;\n }\n static findMainRule(node: AstNode){\n if(node.kind === \"rule\" && !this.isSelf(node.name || '')) return node;\n \n let result: AstNode | undefined;\n for(const child of node.children!){\n if(child.kind === \"rule\" && !this.isSelf(node.name || '')){\n result = child;\n break;\n }else if(child.kind === \"atrule\" && AstParser.hasChildren(child)){\n result = AstParser.findMainRule(child)\n }\n }\n return result;\n }\n\n static buildSelector = (selectors: string[])=>{\n const result: string[] = [];\n if(selectors.length<=1){\n return selectors\n }\n selectors.forEach(selector_ => {\n // If the selector contains '&', treat it as a nested selector\n const sp = selector_.includes(',') ? splitString(selector_, COMMA_REGEX) : [selector_]\n const results: string[] = [];\n for(const selector of sp){\n if (selector.includes('&')) {\n const parentSelector = result[result.length - 1] || '';\n const nestedSelectors: string[] = []\n if(parentSelector.includes(',')){\n const parents = splitString(parentSelector, COMMA_REGEX);\n nestedSelectors.push(...splitString(selector, COMMA_REGEX).map(nested => parents.map(p=>nested.trim().replace(/&/g, p)).join(', ')));\n }else{\n nestedSelectors.push(selector.trim().replace(/&/g, parentSelector))\n // nestedSelectors.push(...splitString(selector, COMMA_REGEX).map(nested => nested.trim().replace(/&/g, parentSelector)));\n }\n results.push(...nestedSelectors);\n \n } else {\n // Add the base selector to the result\n results.push(selector.trim());\n }\n }\n result.push(results.slice().join(', '))\n });\n \n // Join the result with commas to form the final CSS rule selector\n return result;\n }\n static merge(astNodes: AstNode[], rules: AstNode[] = []){\n return astNodes.map(n=>{\n if(n.kind === 'atrule' && n.name === 'layer'){\n const r = rules.find(rule=>rule.name === n.name && rule.value===n.value);\n if(!r){\n rules.push({...n});\n }else{\n r.children?.push(...{...n}.children!.slice())\n n.children = [];\n }\n }else if(n.kind === 'atrule' && n.name === 'import' && n.children){\n const layers = {...n!}.children?.filter(c=>c.kind === 'atrule' && c.name === 'layer')!;\n const other = {...n!}.children?.filter(c=>!(c.kind === 'atrule' && c.name === 'layer'))!;\n if(layers.length > 0){\n layers.forEach(l=>{\n const r = rules.find(rule=>rule.name === l.name && rule.value===l.value);\n if(!r){ \n rules.push({...l});\n }else{\n r.children?.push(...{...l}.children!.slice())\n }\n })\n }\n if(other.length > 0){\n const newRule = {...n};\n newRule.children = other;\n rules.push(newRule);\n }\n }else if(n.kind===\"rule\"){\n const r = rules.find(rule=>rule.name === n.name);\n if(!r){\n rules.push({...n});\n }else{\n r.children?.push(...{...n}.children!.slice())\n n.children = [];\n }\n }else{\n rules.push({...n});\n }\n return rules.slice()\n })\n }\n static generate(ast?: CssAstNode | null): string {\n if (!ast) return '';\n return stringifyCss(ast);\n }\n\n static generateSourceKey(length: number) {\n const characters ='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n let result = '';\n const charactersLength = characters.length;\n for ( let i = 0; i < length; i++ ) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n\n return result;\n }\n\n static addDeclarationSource(node: AstNode, source: Map<string, any>, s?: any){\n if(source){\n const key = this.generateSourceKey(7);\n const sourceDecl = {\n type: 'Declaration',\n loc: s ? s : node.loc,\n property: '--source',\n value: AstParser.parse(key, { context: 'value' }) as any,\n important: false\n };\n source.set(key, node.loc);\n return [sourceDecl];\n }\n return []\n }\n static addAstDeclarationSource(node: AstNode, source: Map<string, any>, s?: any){\n if(source && node.kind === 'rule'){\n const key = this.generateSourceKey(7);\n const source_string = `--source: ${key};`\n const sourceParsed = AstParser.parse(source_string)\n const loc = s ? {...s} : node.loc\n node.children?.push({\n kind: 'decl',\n name: '--source',\n cssNode: sourceParsed,\n node: source_string,\n parents: node.parents,\n value: key,\n loc\n })\n source.set(key, loc)\n }\n }\n\n static generateRule(node: AstNode, declarations: CssDeclaration[] = [], loc?: Location): CssRule {\n return makeRule(node.name || '', declarations, undefined, loc);\n }\n static convertNode(node: AstNode, sourceMap: Map<string, any>, sourceLocations: Map<string, any>, removeDirectives: boolean, options: {\n removeSource: boolean,\n unwrap?: boolean,\n debug?: boolean,\n mappings?: any[],\n renderComments?: boolean\n }, encoded_tokens: Map<string, any>): CssAstNode | CssAstNode[] | null {\n let loc = node.loc ? {...node.loc} : undefined;\n\n const convertChildren = (nodes: AstNode[]): CssAstNode[] =>\n nodes.flatMap(c => {\n const r = AstParser.convertNode(c, sourceMap, sourceLocations, removeDirectives, options, encoded_tokens);\n if (!r) return [] as CssAstNode[];\n return Array.isArray(r) ? r : [r];\n });\n\n switch (node.kind) {\n case 'rule': {\n const sourceDecl: CssDeclaration[] = [];\n const source = node.children?.find(c => c.kind === 'decl' && c.name === '--source');\n if (!source) {\n if (!options.removeSource) {\n // source tracking handled via AstNode children\n }\n } else if (source.value) {\n const s = sourceMap.get(source.value.trim());\n if (s) loc = {...s};\n }\n const declChildren = convertChildren(node.children || []);\n const declarations = declChildren.filter(c => c.type === 'declaration') as CssDeclaration[];\n const nestedChildren = declChildren.filter(c => c.type !== 'declaration') as (CssRule | CssAtRule)[];\n return makeRule(node.name || '', declarations, nestedChildren.length ? nestedChildren : undefined, loc);\n }\n case 'atrule': {\n if (!AstParser.at_rules_design_fns.some(n => n === node.name) && node.name !== 'import') {\n if (node.name === 'layer' && [...AstParser.PLUGIN_LAYERS, 'atomic'].some(l => l === node.value?.trim()) && options.unwrap) {\n return convertChildren(node.children || []);\n } else if (node.name === 'fluixi' && removeDirectives) {\n return null;\n } else {\n const blockChildren = node.children ? convertChildren(node.children) : undefined;\n return makeAtRule(node.name || '', node.value || '', blockChildren, loc);\n }\n } else {\n if (node.children) {\n return convertChildren(node.children);\n } else {\n if (node.name !== 'import') return null;\n return makeAtRule(node.name, node.value || '', undefined, loc);\n }\n }\n }\n case 'decl': {\n if (options.removeSource && node.name?.trim() === '--source') return null;\n const encoded = this.encode((node.value || '').trim(), encoded_tokens);\n const rawVal = node.value === ' ' ? '\\\\xa0' : encoded;\n return makeDecl(node.name || '', rawVal, !!node.important, [], loc);\n }\n case 'comment': {\n const commentAr = AstParser.createComment({\n loc: node.loc,\n type: 'Comment',\n value: node.value!\n });\n commentAr.loc = node.loc || loc;\n return commentAr;\n }\n default:\n return node.cssNode as CssAstNode;\n }\n }\n\n static optimize = (css: string, filename: string=\"index.css\", options: {map?: any, minify: boolean} = {map: null, minify: false})=>{\n const comments: string[] = [];\n const commentPlaceholderPrefix = '/*!__COMMENT_PLACEHOLDER_';\n const commentPlaceholderSuffix = '__*/';\n \n // Replace comments with placeholders and store the original comments\n let cssWithPlaceholders = css.replace(/\\/\\*[\\s\\S]*?\\*\\//g, (match) => {\n const index = comments.length;\n comments.push(match);\n return `${commentPlaceholderPrefix}${index}${commentPlaceholderSuffix}`;\n });\n let { code, map: lightningMap, warnings, } = transform({\n filename,\n code: Buffer.from(css),\n sourceMap: false,\n inputSourceMap: options.map ? options.map : undefined,\n drafts: {\n customMedia: true,\n },\n nonStandard: {\n deepSelectorCombinator: true,\n },\n include: Features.Nesting,\n exclude: Features.LogicalProperties |\n Features.DirSelector |\n Features.LightDark,\n targets: {\n safari: (16 << 16) | (4 << 8),\n chrome: 95,\n firefox: 95,\n },\n minify: options.minify || false,\n errorRecovery: true,\n });\n // Replace placeholders with original comments\n let processedCss = code.toString();\n // for (let i = 0; i < comments.length; i++) {\n // const placeholder = `${commentPlaceholderPrefix}${i}${commentPlaceholderSuffix}`;\n // processedCss = processedCss.replace(placeholder, comments[i]);\n // }\n \n return {code: processedCss, map: lightningMap};\n // return {code: code.toString(), map: lightningMap};\n }\n\n static overrideLoc(node, newLoc) {\n if (node && typeof node === 'object') {\n if (node.loc) {\n node.loc = { ...newLoc };\n }\n for (const key in node) {\n if (Array.isArray(node[key])) {\n node[key].forEach(child => this.overrideLoc(child, newLoc));\n } else if (typeof node[key] === 'object') {\n this.overrideLoc(node[key], newLoc);\n }\n }\n }\n }\n convertAst = (node: AstNode, {postcss, sources, unwrap, encoded_tokens = new Map()}: {postcss: any | null, sources?: Map<string, any> | null, encoded_tokens?: Map<string, any> | null, unwrap?: boolean}={postcss: null, sources: null, unwrap: false})=>{\n if(!postcss) return null;\n const source = {\n start: node.loc.start,\n end: node.loc.end,\n input: new postcss.Input('', {from: node.loc.source})\n }\n if(sources){\n const s = sources.get(node.loc.source);\n if(s){\n source.input = s;\n }\n }\n if(node.kind==='rule'){\n if(!node.children) return null;\n const rule = new postcss.Rule({selector: node.name!});\n rule.source = source;\n const children = [] as any;\n for(const child of node.children){\n const c = this.convertAst(child, {postcss, sources, encoded_tokens});\n if(c){\n if(Array.isArray(c)){\n children.push(...c);\n }else{\n children.push(c);\n }\n }\n }\n if(children.length>0){\n rule.append(children);\n if(this.#options.minify){\n rule.selector = rule.selector.replace(/\\s+/g, '');\n }\n return rule\n }\n }else if(node.kind==='atrule'){\n if(node.name === \"fluixi\"){\n return null;\n }else if(node.name?.startsWith(\"comment\") && !this.#options.minify){\n const childValue = node.children?.find(c=>c.kind===\"decl\")?.value;\n const comment = new postcss.Comment({text: AstParser.decrypt(childValue!)});\n comment.source = source;\n return comment\n }\n if(node.name === \"layer\" && [...AstParser.PLUGIN_LAYERS, \"atomic\"].some(l=>l===node.value?.trim()) && unwrap === true){\n if(!node.children) {\n return null;\n }\n const children = [] as any;\n for(const child of node.children){\n const c = this.convertAst(child, {postcss, sources, unwrap});\n if(c){\n if(Array.isArray(c)){\n children.push(...c);\n }else{\n children.push(c);\n }\n }\n }\n return children;\n }\n const atrule = new postcss.AtRule({name: node.name!, params: node.value});\n const children = [] as any;\n if(!node.children){\n atrule.source = source;\n if(this.#options.minify){\n atrule.params = atrule.params.replace(/\\s+/g, '');\n }\n return atrule\n }\n for(const child of node.children){\n const c = this.convertAst(child, {postcss, sources, encoded_tokens});\n if(c){\n if(Array.isArray(c)){\n children.push(...c);\n }else{\n children.push(c);\n }\n }\n }\n if(children.length>0){\n atrule.append(children);\n atrule.source = source;\n if(this.#options.minify){\n atrule.params = atrule.params.replace(/\\s+/g, '');\n }\n return atrule\n }\n }else if(node.kind==='comment' && !this.#options.minify){\n const comment = new postcss.Comment({text: node.value!});\n comment.source = source;\n return comment\n }else if(node.kind==='decl' && (node.name || '').trim() !== '--source'){\n const decl = new postcss.Declaration({prop: node.name!, value: AstParser.decode(node.value!.replace(/xa0/g, ' '), this.#encoded_tokens), important: !!node.important});\n // const decl = new postcss.Declaration({prop: node.name!, value: node.value!.replace(/var(--space)/g, ' '), important: !!node.important});\n decl.source = source;\n if(this.#options.minify){\n decl.prop = decl.prop.replace(/\\s+/g, ''); // Remove whitespace from properties\n decl.value = decl.value.replace(/\\s+/g, ''); // Remove whitespace from values\n \n }\n return decl\n }\n return null\n }\n astToPostcss = (nodes: AstNode[], root: any, {postcss, sources, unwrap, encoded_tokens}: {postcss: any | null, sources?: Map<string, any> | null, encoded_tokens: Map<string, any>, unwrap?: boolean}={postcss: null, sources: null, unwrap: false, encoded_tokens: new Map()})=>{\n if(!postcss) return null;\n for(const node of nodes){\n const value = this.convertAst(node, {postcss, sources, unwrap, encoded_tokens: encoded_tokens ? encoded_tokens : this.#encoded_tokens});\n if(value){\n if(Array.isArray(value)){\n root.append(...value);\n }else{\n root.append(value);\n }\n }\n }\n if (root.raws.before) {\n root.raws.before = '';\n }\n if (root.raws.after) {\n root.raws.after = '';\n }\n return root;\n }\n\n collectUtilities(nodes: AstNode[]){\n const utilities = new Map<string, string>();\n for(const rule of nodes){\n if(rule.kind === \"atrule\" && rule.name === \"layer\" && rule.value === \"utilities\"){\n if(rule.children){\n for(const child of rule.children){\n if(child.kind === \"rule\" && child.children){\n const name = child.name?.trim();\n if(name){\n utilities.set(name, child.node);\n }\n\n }\n }\n }\n }\n }\n state.updateCssUtilities(Object.fromEntries(utilities));\n return utilities;\n } \n\n clear(){\n this.#ast = undefined;\n this.#file = undefined;\n this.#requireImports = false;\n this.#hasImports = false;\n this.#hasImportMatch = false;\n this.#hasImportsDone = false;\n this.#replaceSource = false;\n this.#cachedJit.clear();\n this.#encoded_tokens.clear()\n this.#dependencies = [];\n this.#atImportMaps = [];\n this.#source = undefined;\n this.#sourceLocations.clear();\n this.#initial = undefined;\n this.#imports = [];\n }\n\n get ast(){\n return this.#ast ? cloneNodeDeep(this.#ast) : null;\n }\n\n get requireImports(){\n return this.#requireImports\n }\n\n get hasImports(){\n return this.#hasImports\n }\n\n get imports(){\n return this.#imports.slice()\n }\n\n get hasImportMatch(){\n return this.#hasImportMatch\n }\n get hasImportsDone(){\n return this.#hasImportsDone\n }\n\n get replaceSource(){\n return this.#replaceSource\n }\n\n get dependencies(){\n return this.#dependencies.slice();\n }\n\n get atImportMaps(){\n return this.#atImportMaps.slice();\n }\n\n get source(){\n return this.#source;\n }\n\n get file(){\n return this.#file;\n }\n\n get designSystem(){\n return this.#options.designSystem;\n }\n\n get logger(){\n if(this.designSystem){\n return this.designSystem.logger;\n }\n return this.#options.logger;\n }\n\n constructor(file: string, options: AstOptions = {}){\n this.#file = file;\n this.#options = options;\n const {ast} = this.init();\n if(!options || !options.css){\n this.#ast = cloneNodeDeep(ast)\n }else{\n this.#ast = AstParser.parse(options.css, {filename: file, positions: true}, this.#options.minify)\n }\n }\n\n init(){\n const _file = state.files?.find(f=>f.file===this.file && f.isStyleSheet)\n const content = (_file && _file.content) ? _file.content : readFileSync(this.file!, 'utf-8');\n const ast = AstParser.parse(content, {positions: true, filename: this.file}, this.#options.minify);\n this.#source = ast.loc;\n const value = {content, ast}\n this.#initial = {...value};\n this.#replaceSource = (this.#options.css!==undefined && this.#initial.content !== this.#options.css);\n // Load per-file config and CSS directives (fire-and-forget; sync after first pass is fine)\n if (this.#options.designSystem && this.file) {\n const ds = this.#options.designSystem;\n // Per-file fluixi.config.* (async – schedule after sync init completes)\n Promise.resolve().then(async () => {\n const filePatch = await ds.loadFileConfig(this.file!);\n if (filePatch) ds.applyConfigPatch(filePatch);\n // CSS-directive-based config (@theme, @plugin, @config, @source)\n const cssPatch = await ds.parseCssDirectives(content, this.file!);\n if (cssPatch && Object.keys(cssPatch).length > 0) ds.applyConfigPatch(cssPatch as any);\n }).catch(() => {});\n }\n return value;\n }\n\n handleBase(){\n if(!this.#initial || !this.#ast){\n return null;\n }\n const import_nodes = AstParser.findImports(this.#initial.ast!);\n const current_import_nodes = AstParser.findImports(this.#ast!);\n const modules = AstParser.resolveLocalModulesPath()\n if(import_nodes.length>0){\n this.#hasImports = true;\n if(import_nodes.length === current_import_nodes.length && import_nodes.length>0){\n this.#requireImports = true \n }\n this.#imports = import_nodes.slice().flatMap(e=>{\n if(e.type === \"String\"){\n const value = AstParser.ImportsMatch[AstParser.unquote(e.value)];\n if(value){\n const loc = e.loc;\n if(loc){\n loc.source = modules[`core_${value}`];\n loc.start.line = 1;\n loc.end.line = 1;\n }\n return {node: e.node, param: e.value, match: value, loc}\n } \n }\n return null;\n }).filter(a=>a!==null)\n }\n this.#hasImportMatch = this.#imports.some(i=>i.match)\n // this.#replaceSource = this.#hasImports && !this.#requireImports;\n return \"ok\";\n }\n\n importAtRule(filePath: string){\n let {path, match}= AstParser.resolveLocalImportsPath(filePath, this.#options.resolveLocalPresets)\n if(!match){\n if(path.startsWith(\".\")){\n path = join(dirname(this.file!), path)\n }else{\n if(!isAbsolute(path) && this.file){\n path = join(dirname(this.file), filePath)\n }\n }\n }\n if(!existsSync(path)) return null;\n const f = state.files?.find(f=>f.file === path && f.isStyleSheet);\n if(f && f.content){\n const content = f.content;\n const parsed = AstParser.parse(content, {filename: path, positions: true}, this.#options.minify);\n return {atImport: parsed, file: path, match: null, content}\n }\n const content = readFileSync(path, {encoding: \"utf-8\"});\n const parsed = AstParser.parse(content, {filename: path, positions: true}, this.#options.minify);\n return {atImport: parsed, file: path, match, content}\n }\n\n loadBaseSources(){\n const init = this.handleBase();\n if(!init) return null;\n this.#dependencies.push({\n type: 'dependency',\n file: this.file!,\n content: this.#initial?.content!,\n parent: this.file\n })\n if(!(this.hasImportMatch && !this.requireImports)){\n const imports = AstParser.findImports(this.#ast!);\n const directives = AstParser.findPluginDirectives(this.#ast!)\n imports.forEach(imported=>{\n if(!this.#sourceLocations.get(imported.value) && imported.loc){\n this.#sourceLocations.set(imported.value, {\n source: imported.loc.source,\n start: imported.loc.start,\n end: imported.loc.end,\n })\n this.#sourceMap.set(imported.value, {\n source: imported.loc.source,\n start: imported.loc.start,\n end: imported.loc.end,\n })\n }\n })\n directives.forEach(directive=>{\n if(!this.#sourceLocations.get(directive.value) && directive.loc){\n this.#sourceLocations.set(directive.value, {\n source: directive.loc.source,\n start: directive.loc.start,\n end: directive.loc.end,\n })\n this.#sourceMap.set(directive.value, {\n source: directive.loc.source,\n start: directive.loc.start,\n end: directive.loc.end,\n })\n }\n })\n }\n\n const entry_imports = AstParser.findImports(this.#initial?.ast);\n entry_imports.forEach(element=>{\n const source = {\n start: element.loc?.start,\n end: element.loc?.end,\n source: element.loc?.source\n }\n const isUrl = element.value.includes('Url(');\n if(!isUrl){\n const at = this.importAtRule(AstParser.unquote(element.value))\n if(at){\n const {atImport, file, match, content} = at;\n this.#dependencies.push({\n type: 'dependency',\n file,\n content,\n parent: this.file\n })\n if(match){\n this.#hasImportsDone = true;\n // this.#replaceSource = true;\n if(!this.#sourceLocations.get(match)){\n const _source = AstParser.resolveLocalModulesPath()[`core_${match}`];\n if(_source){\n source.source = _source\n }\n this.#sourceLocations.set(match, {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n this.#sourceMap.set(match, {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n if(match===\"utilities\"){\n this.#sourceLocations.set(\"atomic\", {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n this.#sourceMap.set(\"atomic\", {\n // file,\n source: _source ? _source : atImport.loc ? atImport.loc.source : source.source,\n start: element.loc?.start,\n end: element.loc?.end,\n })\n }\n }\n this.#atImportMaps.push({\n file,\n node: element.node,\n source,\n parent: this.file,\n atImport: atImport,\n match\n })\n }else{\n this.#atImportMaps.push({\n file: this.file!,\n node: element.node,\n source,\n atImport,\n parent: this.file\n }) \n }\n }\n }else{\n this.#atImportMaps.push({\n file: this.file!,\n node: element.node,\n source\n })\n }\n })\n }\n\n HandleScreens = (astNode: AstNode)=>{\n const name = astNode.value?.startsWith('(') ? astNode.value.slice(1, -1) : astNode.value;\n if(name){\n const mediaQuery = formatMediaQuery(name);\n if(mediaQuery){\n const parsed = AstParser.parse(mediaQuery);\n const p = parsed.children.find(f => f.type === 'atrule') as CssAtRule | undefined;\n if(p){\n return {name: p.name, prelude: {value: p.preludeText || ''}, loc: p.loc};\n }\n }\n }\n return null;\n }\n\n static isSpecial = (style: string)=>{\n return style.includes('.') || style.includes('/');\n }\n createStyles = (_applyStyles: any)=>{\n let dataStyles = ''\n \n \n let isImportant = false;\n let applyStyles = _applyStyles.slice() as string[]\n const important = isImportantFn(applyStyles);\n if(important){\n applyStyles = important.str.slice() as string[];\n isImportant = true;\n }\n const um = {...(state.utilities?.utilitiesMap || {})}\n for(const applyStyle of applyStyles){\n let style;\n let hasPoint = false\n let stylesCached: any = this.#cachedJit.get(applyStyle);\n if(stylesCached){\n dataStyles += stylesCached+\"\\n\";\n continue;\n }\n // const selectors = splitString(_selector, COMMA_REGEX)\n if(um){\n style = um[applyStyle];\n if(!style){\n style = um[`.${applyStyle}`];\n hasPoint = true;\n }\n }\n\n\n if (style) {\n let st: any = '';\n if(hasPoint){\n if(typeof style === 'string'){\n st+= style.replace(`.${AstParser.isSpecial(applyStyle) ? formatClassName(applyStyle) :applyStyle}`, 'xxx').replace(!isImportant ? /\\!important/g: '', '')+\"\\n\"\n dataStyles += st;\n }else{\n console.warn('[Fluixi Css] type of style is not string', style)\n }\n }else{\n // console.log('style no point', {style, applyStyle})\n // selectors.forEach(selector=>{\n // const rule = postcss.rule({\n // selector: selector,\n // nodes: [...style],\n // });\n // // rule.after(postcss.comment({text: sourceComment}))\n // // Add source comment\n // // rule.append(postcss.comment({ text: ` @apply ${applyStyle} from ${originalSource}:${sourceLine} ` }));\n // st += rule.toString().replace(!isImportant ? /\\!important/g: '', '')\n // })\n }\n\n this.#cachedJit.set(applyStyle, st) \n }else {\n let styles: any = this.#cachedJit.get(applyStyle);\n let save = false\n if(!styles){\n styles = getJustInTimeStyles('xxx_selector', applyStyle, isImportant)\n save = true;\n }\n \n if(styles && styles.styles && styles.styles.length>0){\n // const parsed = parse(styles.css.trim().replace(/xxx_selector/g, selector), {from: undefined});\n let style = styles.styles.trim().replace(/xxx_selector/g, 'xxx').toString();\n dataStyles += style;\n if(save){\n this.#cachedJit.set(applyStyle, style)\n }\n }else{\n // state.clearState();\n // clearResources();\n // const r = (atRule as postcss.AtRule)\n // const err = r.error(`cutom directive ${applyStyle} is not a valid utility`, {plugin: '@fluixi/jit', word: `${atRule.name}`, index: r.parent?.index(atRule)}).toString();\n logger(\n `[Fluixi Css ⚠️ ]`,\n `cutom directive ${applyStyle} is not a valid utility`,\n );\n // logger(`@fluixi/css-postcss ⚠️`, `cutom directive ${applyStyle} is not a valid utility ${atRule.toString()}`)\n // throw postcss.atRule().error(`cutom directive ${applyStyle} is not a valid utility`, {plugin: '@fluixi/jit', word: `${atRule.name}`});\n\n }\n }\n \n \n }\n return dataStyles;\n }\n\n static mergeRules(ast: CssStylesheet): CssStylesheet {\n const rulesMap = new Map<string, CssRule>();\n const result: CssAstNode[] = [];\n\n for (const node of ast.children) {\n if (node.type === 'rule') {\n const rule = node as CssRule;\n const selector = rule.rawSelector ?? '';\n if (rulesMap.has(selector)) {\n const existing = rulesMap.get(selector)!;\n for (const d of rule.declarations) {\n if (!existing.declarations.some(e => e.property === d.property)) {\n existing.declarations.push({...d});\n }\n }\n } else {\n rulesMap.set(selector, rule);\n result.push(rule);\n }\n } else if (node.type === 'atrule') {\n const ar = node as CssAtRule;\n if (ar.block) {\n const mergedChildren: CssAstNode[] = [];\n const innerMap = new Map<string, CssRule>();\n for (const child of ar.block.children) {\n if (child.type === 'rule') {\n const r = child as CssRule;\n const key = r.rawSelector ?? '';\n if (innerMap.has(key)) {\n const ex = innerMap.get(key)!;\n for (const d of r.declarations) {\n if (!ex.declarations.some(e => e.property === d.property)) {\n ex.declarations.push({...d});\n }\n }\n } else {\n innerMap.set(key, r);\n mergedChildren.push(r);\n }\n } else {\n mergedChildren.push(child);\n }\n }\n ar.block.children = mergedChildren as any;\n }\n result.push(ar);\n } else {\n result.push(node);\n }\n }\n return makeStylesheet(result);\n }\n\n directiveToCss(rule: AstNode, sourceKey?: string, parents: AstNode[] = [], parent?: AstNode): CssStylesheet {\n const l = rule.value ? rule.value : replaceString(rule.node.replace(`@${rule.name} `, ''), ';', false, '');\n const str = l.split(' ');\n const styles = this.createStyles(str);\n const optimized = AstParser.optimize(styles, undefined, {minify: true});\n const parsed = AstParser.parse(optimized.code.replace(/xxx/g, '&'));\n if (sourceKey && !this.#sourceMap.has(sourceKey.trim())) {\n this.#sourceMap.set(sourceKey.trim(), rule.loc);\n }\n return parsed;\n }\n\n findSourceLocation(ast: CssAstNode): string | undefined {\n if (ast.type === 'rule') {\n const rule = ast as CssRule;\n const sourceDecl = rule.declarations.find(d => d.property === '--source');\n if (sourceDecl && sourceDecl.rawValue) {\n return sourceDecl.rawValue.trim();\n }\n }\n return undefined;\n }\n\n extractSourceKey(name: string){\n const match = name.match(/--source-(.*)/);\n return match ? match[1] : null;\n }\n static componentsSources = {\n source: AstParser.resolveLocalModulesPath().core_components,\n start: { offset: 0, line: 1, column: 1 },\n end: { offset: 19, line: 1, column: 20 }\n }\n\n createSourcesMap() {\n const map = new SourceMapGenerator();\n this.#mappings.forEach(m=>{\n map.addMapping(m)\n })\n this.dependencies.forEach(d=>{\n map.setSourceContent(d.file, d.content);\n })\n return map;\n }\n\n\n findRuleParent(parents: AstWalkParent[], child_selector?: string){\n const ruleParents = parents.filter(p => p.kind === 'rule');\n \n if (ruleParents.length > 0) {\n const childSelectors = splitString((child_selector || ''), COMMA_REGEX).map(s => s.trim());\n const closestRuleParent = ruleParents[ruleParents.length - 1];\n const parentSelectors = splitString((closestRuleParent.name || ''), COMMA_REGEX).map(s => s.trim());\n const combinedSelectors = AstParser.combineSelectors(parentSelectors, childSelectors).join(', ');\n return {closestRuleParent, parentSelectors, combinedSelectors}\n }\n return null;\n }\n \n // Helper method to combine parent and child selectors\n static combineSelectors(parentSelectors: string[], childSelectors: string[]): string[] {\n const result: string[] = [];\n \n for (const parent_ of parentSelectors) {\n const sp = splitString(parent_, COMMA_REGEX);\n const results: string[] = [];\n for(const parent of sp){\n for (const child_ of childSelectors) {\n const sc = splitString(child_, COMMA_REGEX);\n for(const child of sc){\n // Replace & with parent selector\n if (child.includes('&')) {\n results.push(child.replace(/&/g, parent));\n } else {\n // If no & is present, assume descendant selector\n results.push(`${parent} ${child}`);\n }\n }\n }\n }\n result.push(results.join(', '))\n }\n \n return result;\n }\n \n\n getRulesParentRuleSelectors(values: string[]){\n return values.slice().filter(v=>!v.startsWith('@') && v!==\"sheet\")\n }\n\n static getSelector(value: string, parents: string[]){\n const parentSelectors = parents.filter(p=>!p.startsWith('@'));\n if(parentSelectors.length>0){\n const selector = AstParser.buildSelector(parentSelectors);\n if(value==='&') return selector;\n const sp = splitString(value, COMMA_REGEX)\n const comb = parentSelectors.length>0 ? AstParser.combineSelectors(selector, sp) : [...sp];\n if(comb.length>sp.length){\n comb.shift()\n }\n return comb\n }\n return [value]\n }\n\n static replaceRulesChild(r: AstNode, first = false){\n if(!r.children) return r;\n if(r.kind === \"rule\"){\n if(r.parents?.filter(p=>!AstParser.isPluginDeclarativeName(p)).length>0){\n if(r.name?.includes('&')){\n const comb = AstParser.getSelector(r.name!, r.parents);\n r.name = comb.join(', ');\n }\n }\n }\n const children: AstNode[] = []\n for(const c of r.children){\n if(c.children && c.children.length>0){\n children.push(this.replaceRulesChild(c))\n }else{\n children.push(c)\n }\n }\n r.children = children.slice();\n return r;\n }\n static formatAstNested = (nodes: AstNode[], child: AstNode)=>{\n const order = ['atrule', 'rule'];\n const sorted = nodes.sort((a, b)=>{\n const aIndex = order.indexOf(a.kind);\n const bIndex = order.indexOf(b.kind);\n return aIndex - bIndex;\n });\n const combined = sorted.reduce((acc, node, index) => {\n if(AstParser.isRule(node)){\n let main = this.findMainRule(acc);\n if(!main){\n // console.log('no main', omit(acc, ['children']))\n main = node\n }else{\n // if(this.isSelf(node.name || '')){\n // console.log('main found', main)\n // }\n }\n if(!main.selectors){\n main.selectors = [{\n ...node,\n kind: \"rule\"\n }]\n }else{\n if(node.name?.startsWith('&')){\n main.selectors.forEach(s=>{\n if(!s.selectors) s.selectors = [];\n s.selectors.push({...node, kind: \"rule\"})\n })\n }else{\n main.selectors.push({...node, kind: \"rule\"})\n }\n }\n }else{\n AstParser.updateLastRule(acc, child.children || [])\n }\n return acc;\n })\n return combined;\n }\n\n astToArray(params: AstToArray): AstNode[]{\n const {ast, collect = undefined, collectSources = false, parent = null, parents = [], source = undefined, debug = false, _sourceKey = undefined} = params;\n const result: AstNode[] = [];\n let _parents = parents.slice();\n let loc = (source !== undefined && source !== null) ? {...source} : ast.loc ? {...ast.loc} : undefined;\n let sourceDecl: Location | undefined;\n if (!collectSources) {\n if (collect !== false && ast.type === 'rule') {\n const ss = this.findSourceLocation(ast);\n sourceDecl = _sourceKey ? this.#sourceMap.get(_sourceKey) : this.#sourceMap.get(ss || '');\n if (sourceDecl) {\n loc = {...sourceDecl};\n }\n const parent_ = parents.find(p => AstParser.PLUGIN_LAYERS.some(a => p === a || `@${p}` === a));\n if (!sourceDecl) {\n if (parent_ && !loc) {\n const base = this.#sourceMap.get(parent_);\n if (base) {\n loc = { source: base?.source, start: base?.start, end: base?.end };\n }\n if (!loc && parent_ === '@components') {\n loc = {...AstParser.componentsSources};\n }\n }\n }\n }\n }\n\n if (ast.type === 'stylesheet') {\n const ss = ast as CssStylesheet;\n const hasSheet = parents.some(p => p === '@sheet') || parents.length > 0;\n for (const child of ss.children) {\n result.push(...this.astToArray({ast: child, collectSources, parent, parents: hasSheet ? [...parents] : ['@sheet'], source, debug, _sourceKey}).slice());\n }\n } else if (ast.type === 'atrule') {\n const ar = ast as CssAtRule;\n if (ar.name.startsWith('comment')) {\n const child = ar.block?.children[0] as CssDeclaration | undefined;\n const rawVal = child?.rawValue ?? '';\n const el: AstNode = {\n kind: 'comment',\n name: '',\n loc,\n value: AstParser.decrypt(rawVal),\n node: child ? stringifyCss(child) : '',\n cssNode: ar,\n parents: parents.slice(),\n important: child?.important ?? false,\n };\n result.push(el);\n } else {\n const children: AstNode[] = [];\n const value = ar.preludeText ?? '';\n _parents.push(`@${value}`);\n for (const child of ar.block?.children || []) {\n children.push(...this.astToArray({ast: child, collectSources, parent, parents: [..._parents], source, debug, _sourceKey}).slice());\n }\n const el: AstNode = {\n kind: 'atrule',\n name: ar.name,\n loc,\n value,\n node: stringifyCss(ar),\n cssNode: ar,\n parents: parents.slice(),\n ...(children.length > 0 ? {children} : {}),\n };\n result.push(el);\n }\n } else if (ast.type === 'rule') {\n const rule = ast as CssRule;\n const value = rule.rawSelector ?? '';\n const children: AstNode[] = [];\n const flattened_nodes: AstNode[] = [];\n\n // Declarations first, then nested children\n const ruleChildren: CssAstNode[] = [\n ...rule.declarations,\n ...(rule.children || []),\n ];\n for (const child of ruleChildren) {\n if (child.type !== 'declaration' && child.type !== 'comment' && value !== '&' && !_parents.some(p => p === value)) {\n _parents.push(value);\n }\n const rule_value = this.astToArray({ast: child, collectSources, parent: rule, parents: [..._parents], source: loc, debug, _sourceKey}).slice();\n if (rule_value.length > 0) {\n if (child.type !== 'declaration' && child.type !== 'comment') {\n // nested atrule comment → keep inline\n if (child.type === 'atrule' && (child as CssAtRule).name.startsWith('comment')) {\n children.push(...rule_value);\n } else {\n flattened_nodes.push(...rule_value);\n }\n } else {\n children.push(...rule_value);\n }\n }\n }\n\n let collected = false;\n if (collect !== false && children.length > 0 && !children.find(c => c.kind === 'decl' && c.name === '--source')) {\n const sourceKey = _sourceKey ? _sourceKey : AstParser.generateSourceKey(10);\n const source_string = `--source: ${sourceKey};`;\n const sourceParsed = AstParser.parse(source_string);\n const currentIdx = children.findIndex(i => i.kind === 'decl' && i.name === '--source');\n if (currentIdx !== -1) {\n children[currentIdx].value = `${sourceKey}`;\n } else if (children.length > 0 && children.every(c => c.kind === 'decl' || c.kind === 'comment')) {\n children.push({\n kind: 'decl',\n name: '--source',\n cssNode: sourceParsed,\n node: source_string,\n parents: parents.slice(),\n value: sourceKey,\n loc,\n });\n }\n if (!this.#sourceMap.has(sourceKey)) {\n this.#sourceMap.set(sourceKey, loc);\n }\n collected = true;\n }\n if (!collected) {\n const dclSource = _sourceKey ? {value: _sourceKey} : children.find(c => c.kind === 'decl' && c.name === '--source');\n if (dclSource && dclSource.value) {\n const s = this.#sourceMap.get(dclSource.value.trim());\n if (s) loc = s;\n }\n }\n\n const name = value;\n const rules: AstNode[] = [];\n if (flattened_nodes.length > 0) {\n for (const r of flattened_nodes) {\n if (r.kind === 'rule') {\n rules.push({...AstParser.replaceRulesChild(r, true)});\n } else if (r.kind === 'atrule' && r.children && !AstParser.isPluginDeclarativeName(r.name || '')) {\n rules.push({...AstParser.replaceRulesChild(r)});\n } else {\n children.push({...r});\n }\n }\n }\n\n if (children.length > 0) {\n if (name.includes('&')) {\n if (name === '&') {\n result.push(...children);\n } else {\n const el: AstNode = {\n kind: 'rule',\n name,\n loc,\n value,\n node: stringifyCss(rule),\n cssNode: rule,\n parents: parents.slice(),\n ...(children.length > 0 ? {children} : {}),\n };\n result.push(el);\n }\n } else {\n const el: AstNode = {\n kind: 'rule',\n name,\n loc,\n value,\n node: stringifyCss(rule),\n cssNode: rule,\n parents: parents.slice(),\n ...(children.length > 0 ? {children} : {}),\n };\n result.push(el);\n }\n }\n if (rules.length > 0) result.push(...rules);\n\n } else if (ast.type === 'declaration') {\n const d = ast as CssDeclaration;\n const rawVal = d.rawValue ?? d.value.map(v => String(v.value)).join(' ');\n const el: AstNode = {\n kind: 'decl',\n name: d.property,\n loc,\n value: rawVal,\n node: stringifyCss(d),\n cssNode: d,\n parents: parents.slice(),\n important: d.important,\n };\n result.push(el);\n } else if (ast.type === 'comment') {\n const c = ast as CssComment;\n const el: AstNode = {\n kind: 'comment',\n name: '',\n loc,\n value: c.value,\n parents: parents.slice(),\n node: stringifyCss(c),\n cssNode: c,\n };\n result.push(el);\n } else {\n const el: AstNode = {\n kind: 'other',\n name: stringifyCss(ast),\n loc,\n node: stringifyCss(ast),\n parents: parents.slice(),\n cssNode: ast,\n value: stringifyCss(ast),\n };\n result.push(el);\n }\n return result;\n }\n\n\n findDecl(node: CssAstNode): Location | null {\n if (node.type === 'rule') {\n const rule = node as CssRule;\n const sourceDecl = rule.declarations.find(d => d.property === '--source');\n if (sourceDecl && sourceDecl.rawValue) {\n return this.#sourceMap.get(sourceDecl.rawValue.trim()) ?? null;\n }\n }\n return null;\n }\n\n /** @deprecated Use collectSourcesAst instead */\n collectSources(_cssNode: CssAstNode): string {\n return '';\n }\n\n collectSourcesAst(cssNodes: AstNode[]) {\n this.#mappings = [];\n let generatedCode = '';\n let currentLine = 1;\n let currentColumn = 0;\n\n // Helper to update position based on generated content\n const updatePosition = (str: string) => {\n let final_str = \"\";\n for (const char of str) {\n if (char === '\\n') {\n currentLine++;\n currentColumn = 0;\n // if(!this.#options.minify){\n // }\n } else {\n currentColumn++;\n }\n generatedCode += char;\n }\n // generatedCode += final_str;\n };\n\n // Helper to find source location from --source declaration\n const findSourceLocation = (node: AstNode): Location | undefined => {\n if (node.kind === 'rule') {\n const sourceDecl = (node.children || []).find(\n child => child.kind === 'decl' && child.name === '--source'\n );\n if (sourceDecl?.value) {\n return this.#sourceMap.get(sourceDecl.value.trim());\n }else{\n }\n }\n return node.loc;\n };\n\n // Helper to add mapping\n const addMapping = (node: AstNode, str: string) => {\n const loc = findSourceLocation(node);\n // Always emit the CSS text; source map entry is optional\n if (loc?.source) {\n this.#mappings.push({\n source: path.resolve(loc.source),\n original: { line: loc.start.line, column: loc.start.column },\n generated: { line: currentLine, column: currentColumn },\n name: null\n });\n }\n updatePosition(str);\n };\n\n // Process nodes recursively\n const processNode = (node: AstNode, indent = '') => {\n switch (node.kind) {\n\n case 'rule':\n addMapping(node, indent +node.name! + ' {\\n');\n for (const child of node.children!) {\n processNode(child, indent + ' ');\n }\n updatePosition(indent + '}\\n');\n break;\n\n case 'decl':\n if (node.name === '--source')break;\n let value = node.value!;\n value = value === '\\\\xa0' ? ' ' : AstParser.decode(value.replace(/xa0/g, ' '), this.#encoded_tokens);\n updatePosition(indent + node.name + ': ' + value + ';\\n');\n // updatePosition(indent + generate(node, { mode: \"spec\", }) + ';\\n');\n break;\n\n case 'atrule':\n const prelude = node.value ? ' ' + node.value : '';\n if(node.name === 'fluixi'){\n break;\n }\n updatePosition(indent + '@' + node.name + prelude);\n \n if (node.children) {\n updatePosition(' {\\n');\n for (const child of node.children) {\n processNode(child, indent + ' ');\n }\n updatePosition(indent + '}\\n');\n } else {\n updatePosition(';\\n');\n }\n break;\n\n case 'comment':\n updatePosition(indent + '/*' + node.value + '*/\\n');\n break;\n \n case 'other':\n updatePosition(indent + node.value)\n default:\n break;\n }\n };\n for (const cssNode of cssNodes) {\n processNode(cssNode);\n }\n\n return generatedCode;\n }\n\n\n arrayToAst(astNodes: AstNode[], options: {\n removeSource: boolean,\n unwrap?: boolean,\n removeDirectives?: boolean,\n debug?: boolean,\n mappings?: any[],\n renderComments?: boolean\n } = {removeSource: false, unwrap: false, removeDirectives: false, debug: false, mappings: [], renderComments: false}): CssStylesheet {\n if (!this.#sourceMap.get('default')) {\n this.#sourceMap.set('default', this.#source);\n }\n const children = astNodes.flatMap(node => {\n const converted = AstParser.convertNode(node, this.#sourceMap, this.#sourceLocations, options.removeDirectives || false, options, this.#encoded_tokens);\n if (!converted) return [] as CssAstNode[];\n return Array.isArray(converted) ? converted : [converted];\n });\n return makeStylesheet(children);\n }\n\n findImportSource(node: AstNode, nodes?: AstNode[]){\n let source: AstNode | undefined;\n if(nodes){\n for(const i of nodes){\n if(i.node === node.node){\n source = i;\n break;\n }\n }\n }else{\n for(const i of this.#atImportMaps){\n if(!i.atImport) continue;\n const astNodes = this.astToArray({ast: i.atImport});\n const v = astNodes.find(n=>n.node === node.node || node.node === AstParser.generate(i.atImport));\n if(v){\n source = v;\n break;\n }\n }\n if(!source){\n const v = this.#astArray.find(n=>n.node === node.node);\n if(v){\n source = v;\n }\n }\n }\n return source;\n }\n\n replaceSources(nodes: AstNode[], sources?: AstNode[]){\n const result: AstNode[] = [];\n for(const node of nodes){\n const source = this.findImportSource(node, sources);\n if(!source){\n result.push(node);\n continue;\n }\n node.loc = {...source.loc};\n if(node.children){\n node.children = this.replaceSources(node.children, source.children);\n const idx = node.children.findIndex(c=>c.name === '--source');\n if(idx ===-1){\n // Remove and map to found source location\n // node.children.splice(idx, 1);\n AstParser.addAstDeclarationSource(node, this.#sourceMap, {...source.loc})\n }\n // const decl = node.children.find(c=>c.name === '--source');\n }\n \n result.push(node);\n }\n return result;\n }\n\n walkAstAndTransform(astNodes: AstNode[], parent?: AstNode, parents: AstNode[] = []) {\n const transformedNodes: AstNode[] = []; // Preallocate the result array\n for (const node of astNodes) {\n if (node.kind === 'atrule') {\n if (node.name === 'import') {\n const _at = this.#atImportMaps.find(i => i.node === node.node);\n if (_at) {\n const { atImport } = _at;\n if (atImport) {\n const nodes = this.astToArray({ast: atImport});\n if(state.config && state.config.debug){\n console.time(`walk transform ${node.node}`)\n }\n const transformed = this.walkAstAndTransform(nodes, parent, [...parents]);\n this.collectUtilities(transformed);\n node.children = transformed;\n transformedNodes.push(node);\n if(state.config && state.config.debug){\n console.timeEnd(`walk transform ${node.node}`)\n }\n }\n }\n } else if (node.name === 'screen') {\n const media = this.HandleScreens(node);\n if (media) {\n node.name = media.name;\n node.value = (media.prelude as any).value;\n // generate(media.prelude!, { mode: \"spec\" });\n } else if (node.children && node.children.length > 0) {\n const transformed = this.walkAstAndTransform(node.children, undefined, [...parents]);\n node.children = transformed;\n transformedNodes.push(node);\n }\n } else if (AstParser.at_rules_design_fns.some(n => n === node.name)) {\n let sourceDecl = parent?.children?.find(c=>c.kind === 'decl' && c.name === '--source');\n let source;\n let sourceKey;\n if(sourceDecl){\n source = this.#sourceMap.get(sourceDecl.value?.trim() || '');\n sourceKey = sourceDecl.value?.trim() || '';\n }else{\n source = parent?.loc\n }\n const value = this.astToArray({ast: this.directiveToCss(node as any, sourceKey, parents, parent), collectSources: false, parent: null, parents: [], source, debug: false, _sourceKey: sourceKey});\n node.children = value;\n transformedNodes.push(node);\n } else if (node.children && node.children.length > 0) {\n const transformed = this.walkAstAndTransform(node.children, undefined, [...parents, node]);\n node.children = transformed;\n transformedNodes.push(node);\n }\n } else if (node.kind === 'rule') {\n const transformed = this.walkAstAndTransform(\n node.children!,\n node,\n [...parents, node],\n );\n node.children = transformed\n transformedNodes.push(node);\n }else{\n transformedNodes.push(node)\n }\n }\n return transformedNodes; // Return the preallocated result array\n }\n #astArray: AstNode[] = [];\n // #sources: any;\n createSourceMap(sources: Array<{\n source: string,\n start: { offset: number, line: number, column: number },\n end: { offset: number, line: number, column: number }\n }>, generator: any) {\n const map = new generator();\n \n sources.forEach(item => {\n map.addMapping({\n source: item.source,\n original: {\n line: item.start.line,\n column: item.start.column\n },\n generated: {\n line: item.start.line,\n column: item.start.column\n }\n });\n \n // Add end position mapping if needed\n map.addMapping({\n source: item.source,\n original: {\n line: item.end.line,\n column: item.end.column\n },\n generated: {\n line: item.end.line,\n column: item.end.column\n }\n });\n });\n \n // Add source content for each unique source\n const uniqueSources = [...new Set(sources.map(item => item.source))];\n uniqueSources.forEach(source => {\n const content = readFileSync(source, 'utf-8');\n map.setSourceContent(source, content);\n });\n \n return map.toJSON();\n }\n\n #mappings: any[] = [];\n\n walkSource(cssNode: CssAstNode) {\n const map = new SourceMapGenerator({\n file: this.file,\n sourceRoot: ''\n });\n walkCss(cssNode, {\n enter: (node) => {\n if (!node.loc) {\n (node as any).loc = this.#source;\n return;\n }\n if (node.loc.source) {\n try {\n const content = readFileSync(node.loc.source, 'utf8');\n map.setSourceContent(node.loc.source, content);\n this.#mappings.forEach(m => { map.addMapping(m); });\n } catch (err) {\n logger('@fluixi/css', `Error generating source map for ${node.loc.source}: ${err}`);\n }\n }\n }\n });\n return map;\n }\n\n static asClassName(name: string){\n return AstParser.isSpecial(name) ? `.${formatClassName(name)}` : `${name}`;\n }\n\n removeUtilities(nodes: AstNode[], removedClasses: string[]){\n const result: AstNode[] = [];\n\n for(const node of nodes.slice()){\n const match = removedClasses.some(c=>c===AstParser.asClassName(node.name!));\n if(node.kind === 'rule' && match){\n // return [];\n }else if(node.kind === \"atrule\" && node.name === \"layer\" && node.value?.trim() === \"utilities\" && node.children && node.children.length > 0){\n const children = this.removeUtilities(node.children!, removedClasses);\n if(children.length>0){\n node.children = children;\n }\n result.push(node);\n }else{\n result.push(node);\n }\n }\n return result;\n }\n addUtilities(nodes: AstNode[], utilities: string[]){\n if(utilities.length === 0){\n return;\n }\n const utilitiesLayer = nodes.find(n=>n.name === \"layer\" && n.value === \"utilities\");\n if(utilitiesLayer){\n const atomic = DesignSystem.generateAtomicCSS(utilities, state, this.designSystem?.config!, this.designSystem?.config!);\n const parsed = this.astToArray({ast: AstParser.parse(`${atomic}`, {context: \"stylesheet\"}, this.#options.minify)});\n logger(`${utilities.length} utilities added`, '')\n utilitiesLayer.children?.push(...parsed)\n // utilitiesLayer.children = [...this.astToArray(AstParser.parse(`@layer atomic{${atomic}}`), null, [], source), ...utilitiesLayer.children]\n }\n }\n\n \n transform(options: {sourceMap: boolean, unwrap?: boolean, sources?: any[]} = {sourceMap: false, unwrap: false, sources: []}): {cssNode: CssStylesheet, css: string, map?: any, ast: AstNode[], files?: any[] | undefined, sources?: SourceMapGenerator}{\n // if(this.designSystem){\n // const buildType = this.designSystem.buildType;\n // console.log('build type', buildType)\n // if(buildType === 'no-changes' || buildType === 'partial'){\n // const cachedAst = this.designSystem.cacheData?.ast;\n // if(cachedAst){\n // let ast = cachedAst as AstNode[];\n // // console.log('cached ast', ast)\n // if(buildType !== 'no-changes'){\n // // console.log('no changes on build')\n // const utilitiesClasses = this.designSystem.updateContextData?.addedUtilitiesClasses;\n // const classes = this.designSystem.updateContextData?.addedClasses;\n // const removedUtilitiesClasses = this.designSystem.updateContextData?.removedUtilitiesClasses;\n // const removedClasses = this.designSystem.updateContextData?.removedClasses;\n // const added = [...(utilitiesClasses || []), ...(classes || [])];\n // const removed = [...(removedUtilitiesClasses || []), ...(removedClasses || [])];\n // console.log('added', added);\n // console.log('removed', removed);\n // if(removed.length>0){\n // const removedNodes = this.removeUtilities(ast.slice(), removed);\n // if(removedNodes.length>0){\n // logger(`${removed.length} utilities removed`, '')\n // ast = removedNodes;\n // }\n // }\n // if(added.length>0){\n // this.addUtilities(ast, added);\n // }\n // }\n // this.designSystem?.buildVisualizerOutput();\n // const styles = this.generateStyles(ast, {\n // removeSource: true,\n // // unwrap: options.unwrap,\n // unwrap: false,\n // removeDirectives: true,\n // sourceMap: options.sourceMap\n // })\n // if(buildType === 'partial'){\n // this.designSystem?.saveCache(ast);\n // }\n // return styles;\n // // return {cssNode: this.arrayToAst(ast), css: AstParser.generate(ast), ast};\n // }\n // }\n // }\n\n // console.time('load base')\n this.loadBaseSources();\n this.#astArray = this.astToArray({ast: this.#initial?.ast!, collectSources: false, collect: false})\n let astArray: AstNode[] = [];\n if(this.replaceSource){\n // console.time('replace sources')\n astArray = this.replaceSources(this.astToArray({ast: this.#ast!, collectSources: false, collect: false}));\n // console.timeEnd('replace sources')\n }else{\n astArray = this.astToArray({ast: this.#ast!, collectSources: true});\n }\n const array = astArray.slice();\n this.collectUtilities(array)\n const walked = this.walkAstAndTransform(array);\n\n const t = AstParser.generate(this.unwrap(this.arrayToAst(walked, {removeDirectives: true, removeSource: true})));\n const transformer = AstParser.getBaseTransformer(state.config, this.file!, this.#options.resolveLocalPresets)\n const ast = this.addPresets(walked, transformer)\n const styles = this.generateStyles(ast.ast, {\n cssNode: ast.cssNode,\n removeSource: true,\n unwrap: options.unwrap,\n removeDirectives: true,\n sourceMap: options.sourceMap\n })\n // console.log('generate styles from ast transform')\n styles.cssNode.loc = this.#source\n this.designSystem?.buildVisualizerOutput();\n // this.designSystem?.saveCache(ast.ast);\n return {...styles, files: this.designSystem?.files};\n }\n\n get mappings(){\n return this.#mappings;\n }\n\n getPreludeString(cssNode: CssRule | CssAtRule): string {\n if (!cssNode) return '';\n if (cssNode.type === 'rule') return (cssNode as CssRule).rawSelector ?? '';\n if (cssNode.type === 'atrule') return (cssNode as CssAtRule).preludeText ?? '';\n return '';\n }\n\n getDecltring(cssNode: CssDeclaration): string {\n if (!cssNode) return '';\n return AstParser.decrypt(cssNode.rawValue ?? '');\n }\n\n getAtRuleCommentValue(el: CssAtRule): string {\n const decl = el.block?.children[0] as CssDeclaration | undefined;\n if (!decl) return '';\n return AstParser.decrypt(decl.rawValue ?? '');\n }\n\n reinsertComments(css: CssStylesheet): CssStylesheet {\n const ast = cloneNodeDeep(css);\n walkCss(ast, {\n atrule(node, ctx) {\n if (node.name.startsWith('comment')) {\n const decl = node.block?.children[0] as CssDeclaration | undefined;\n const v = AstParser.decrypt(decl?.rawValue ?? '');\n const commentNode: CssComment = {\n type: 'comment',\n value: v,\n style: v.includes('\\n') ? 'multi-line' : 'single-line',\n loc: node.loc,\n };\n // Insert comment before this atrule, then keep the atrule\n // We do this by replacing the node with an array via parent manipulation.\n // Simplest: replace the comment-atrule with the comment node itself.\n ctx.replace(commentNode);\n }\n }\n });\n return ast;\n }\n\n unwrap(css: CssStylesheet): CssStylesheet {\n walkCss(css, {\n atrule(node, ctx) {\n if (node.name === 'layer' && [...AstParser.PLUGIN_LAYERS, 'atomic'].some(l => l === node.preludeText?.trim())) {\n const children = node.block?.children;\n if (children && children.length > 0) {\n // Replace with first child; the rest are pushed by repeated replacement.\n // For full replacement of one node with N children, we need to handle via parent.\n // Since our walker supports replace() for single node, we serialize and re-parse.\n // Alternatively, mark for removal and add children to parent — done after walk.\n // ctx.remove();\n ctx.replace(node.block!.children as any);\n }\n }\n }\n });\n return css;\n }\n\n generateStyles(ast: AstNode[], options: {sourceMap: boolean, unwrap?: boolean, removeSource?: boolean, removeDirectives?: boolean, cssNode?: CssStylesheet} = {sourceMap: false, unwrap: false, removeSource: false, removeDirectives: false}){\n const initialCssNode: CssStylesheet = options.cssNode ? {...options.cssNode} : this.arrayToAst(ast, {\n removeSource: false,\n unwrap: options.unwrap,\n removeDirectives: options.removeDirectives,\n debug: true,\n mappings: this.#mappings\n });\n // Apply comment reinsertion\n // const cssNode = this.#options.minify ? initialCssNode : this.reinsertComments(initialCssNode);\n const cssNode = initialCssNode\n // const cssNode = this.#options.minify ? initialCssNode : this.reinsertComments(initialCssNode);\n let css: string = AstParser.generate(options.unwrap ? this.unwrap(cssNode) : cssNode);\n // writeFileSync(path.join(cwd(), 'walked_presets.css'), css);\n let map: SourceMapGenerator | undefined;\n css = this.collectSourcesAst(ast);\n if(options.sourceMap && !this.#options.minify){\n map = this.createSourcesMap();\n } else {\n if(this.#options.minify){\n css = AstParser.optimize(css, this.#file, {minify: this.#options.minify}).code;\n }\n }\n css = css.replace(/xa0/g, ' ');\n return {cssNode, css, ast, map};\n }\n\n attachLayer(nodes: AstNode[], content?: string, name?: string){\n if(!content || content.length === 0 || !name){\n return undefined;\n }\n const source = this.#sourceLocations.get(name === 'atomic' ? \"utilities\" : name);\n const layer = nodes.find(n=>n.name === \"layer\" && (n.value===name));\n if(layer){\n if(!layer.children) {layer.children = []}\n layer.children = [...this.astToArray({ast: AstParser.parse(content, {}, this.#options.minify), collectSources: false, parent: null, parents: [], source, debug: false, _sourceKey: name === 'atomic' ? \"utilities\" : name}), ...layer.children]\n return undefined;\n }else{\n const str = `@layer ${name} {${content}}`\n // writeFileSync(join(cwd(), `${name}-layer.css`), str)\n const atomic = this.astToArray({ast: AstParser.parse(str, {}, this.#options.minify), collectSources: false, parent: null, parents: [], source, debug: false, _sourceKey: name === 'atomic' ? \"utilities\" : name});\n return atomic;\n }\n }\n static LAYERS_WEIGHT = {\n \"imports\": 0,\n \"base\": 1,\n \"other\": 2,\n \"components\": 3,\n \"utilities\": 4,\n \"atomic\": 5,\n }\n\n static getLayerWeight(kind?: string, name?: string){\n if(kind === 'import'){\n return AstParser.LAYERS_WEIGHT.imports;\n }\n if(!name){\n return AstParser.LAYERS_WEIGHT.other;\n }\n return this.LAYERS_WEIGHT[name.replace('@', '') as keyof typeof AstParser.LAYERS_WEIGHT] || AstParser.LAYERS_WEIGHT.other;\n }\n\n orderNodes(nodes: AstNode[]){ \n return nodes.sort((a, b)=>{\n return AstParser.getLayerWeight(a.name, a.value) - AstParser.getLayerWeight(b.name, b.value);\n });\n }\n addPresets(astNodes: AstNode[], transformer: ReturnType<typeof AstParser.getBaseTransformer>){\n const merge = AstParser.merge(astNodes.slice()).pop()!;\n \n const layers = [...AstParser.PLUGIN_LAYERS, \"atomic\"];\n for(const layer of layers){\n if(layer === \"atomic\"){\n if(transformer.atomic_css.length>0){\n const l = this.attachLayer(merge, transformer.atomic_css!, \"atomic\");\n if(l){\n merge.push(...l);\n }\n }\n }else{\n const l = this.attachLayer(merge, transformer[layer], layer);\n if(l){\n merge.push(...l);\n }\n }\n }\n // const ordered = merge.slice();\n // const ordered = AstParser.processNesting(this.orderNodes(merge.slice()));\n const ordered = this.orderNodes(merge.slice());\n const generated = AstParser.generate(this.arrayToAst(ordered, {renderComments: true, removeSource: false}));\n const optimized = AstParser.optimize(generated, this.file!, {minify: false});\n // writeFileSync(join(cwd(), 'generated_presets.css'), optimized.code)\n const parsed = AstParser.parse(optimized.code, {positions: true, filename: this.file, }, true);\n walkCss(parsed, {\n rule: (node, ctx) => {\n const dcl = this.findDecl(node);\n if (dcl && node.declarations.length === 1) {\n ctx.remove();\n }\n }\n });\n const cssNode = parsed;\n const ast = this.astToArray({ast: cssNode, collectSources: false, parent: null, parents: [], source: undefined, debug: false, _sourceKey: undefined});\n return {cssNode, ast};\n\n }\n\n}\n\n\nexport default AstParser"]}
|