@fluentic/style 0.1.0-beta.1 → 0.1.0-beta.2

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.
Files changed (287) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/atomic/atRule/utils.ts +3 -2
  3. package/atomic/className.ts +25 -4
  4. package/atomic/debug/className/className.ts +23 -2
  5. package/atomic/element.ts +5 -2
  6. package/atomic/theme.ts +4 -2
  7. package/atomic/token.ts +4 -2
  8. package/atomic/utils/css.ts +44 -19
  9. package/atomic/utils/format.ts +1 -1
  10. package/atomic/utils/hash.ts +78 -0
  11. package/atomic/var.ts +3 -2
  12. package/builder/classname/class_name_builder.ts +447 -0
  13. package/builder/classname/fns.ts +77 -0
  14. package/builder/classname/index.ts +3 -0
  15. package/builder/classname/types.ts +34 -0
  16. package/builder/data/create.ts +6 -6
  17. package/builder/data/data.ts +7 -7
  18. package/builder/data/debug.ts +1 -0
  19. package/builder/data/is.ts +3 -3
  20. package/builder/data/merge/scope.ts +18 -19
  21. package/builder/data/merge/style.ts +11 -0
  22. package/builder/data/state.ts +1 -0
  23. package/builder/style_builder.ts +17 -17
  24. package/builder/style_fns.ts +33 -33
  25. package/builder/types/alias.ts +10 -10
  26. package/builder/types/fns.ts +11 -11
  27. package/builder/types/types.ts +5 -5
  28. package/compiler/transform/debug/plugin.ts +8 -3
  29. package/compiler/transform/debug/utils/debug_data.ts +73 -0
  30. package/compiler/transform/evaluator/evaluator.ts +31 -2
  31. package/compiler/transform/evaluator/tracer.ts +2 -8
  32. package/compiler/transform/extract/chain/chain.ts +589 -24
  33. package/compiler/transform/extract/plugin.ts +4 -1
  34. package/compiler/utils/constants.ts +4 -0
  35. package/compiler/utils/file_resolver.ts +1 -0
  36. package/compiler/utils/import_source.ts +3 -2
  37. package/config/config/css.ts +3 -0
  38. package/config/config/dev.ts +9 -1
  39. package/config/types.ts +7 -0
  40. package/dialect/extracted/index.ts +5 -0
  41. package/dialect/index.ts +1 -0
  42. package/dialect/namedTokens.ts +136 -0
  43. package/dist/{className-DC2Cq8p3.js → className-Cuh2JNxO.js} +19 -7
  44. package/dist/className-Cuh2JNxO.js.map +1 -0
  45. package/dist/{className-C1Ht5Wvv.js → className-W2kDyeVl.js} +2 -2
  46. package/dist/{className-C1Ht5Wvv.js.map → className-W2kDyeVl.js.map} +1 -1
  47. package/dist/compiler/index.mjs +1 -1
  48. package/dist/{compiler-DENc3a2R.mjs → compiler-BXcGyZUP.mjs} +554 -60
  49. package/dist/compiler-BXcGyZUP.mjs.map +1 -0
  50. package/dist/config/index.js +2 -2
  51. package/dist/config-C1k9vUrM.js +32 -0
  52. package/dist/config-C1k9vUrM.js.map +1 -0
  53. package/dist/{config-BryWDfQX.js → config-CLYMN3_p.js} +3 -2
  54. package/dist/{config-BryWDfQX.js.map → config-CLYMN3_p.js.map} +1 -1
  55. package/dist/config-DcYrUB-M.js +6 -0
  56. package/dist/{config-Di2VYYKV.js.map → config-DcYrUB-M.js.map} +1 -1
  57. package/dist/config-oI_yS50f.js +1 -0
  58. package/dist/css-CELBp6Gu.js +58 -0
  59. package/dist/css-CELBp6Gu.js.map +1 -0
  60. package/dist/{css-BowBszUt.js → css-CohHH2tn.js} +17 -17
  61. package/dist/css-CohHH2tn.js.map +1 -0
  62. package/dist/{css-DcazYor9.js → css-D_DL1yOz.js} +10 -8
  63. package/dist/css-D_DL1yOz.js.map +1 -0
  64. package/dist/{css-ByOrugEX.js → css-DfH4Gb1c.js} +77 -77
  65. package/dist/css-DfH4Gb1c.js.map +1 -0
  66. package/dist/css.js +1 -1
  67. package/dist/{css_extra-oIi3UEPK.js → css_extra-9BZ_jVET.js} +2 -2
  68. package/dist/{css_extra-DlOnsnR1.js.map → css_extra-9BZ_jVET.js.map} +1 -1
  69. package/dist/{css_extra-DlOnsnR1.js → css_extra-DQdCrYoC.js} +2 -2
  70. package/dist/{css_extra-oIi3UEPK.js.map → css_extra-DQdCrYoC.js.map} +1 -1
  71. package/dist/{data-BsqOa5br.js → data-Ze8GNiJm.js} +22 -12
  72. package/dist/data-Ze8GNiJm.js.map +1 -0
  73. package/dist/{debug-BAw63qX6.js → debug-BefbXMq1.js} +2 -2
  74. package/dist/{debug-BAw63qX6.js.map → debug-BefbXMq1.js.map} +1 -1
  75. package/dist/{debug-n2aZQBSa.js → debug-DLmUG3Vh.js} +3 -3
  76. package/dist/debug-DLmUG3Vh.js.map +1 -0
  77. package/dist/{debug-DGki_v7g.js → debug-OG2wSB5R.js} +2 -2
  78. package/dist/{debug-DGki_v7g.js.map → debug-OG2wSB5R.js.map} +1 -1
  79. package/dist/dev/rsc.js +9 -9
  80. package/dist/{dev-DfBbuLeE.js → dev-4TqJORRn.js} +7 -3
  81. package/dist/dev-4TqJORRn.js.map +1 -0
  82. package/dist/{dev-CcphAa3R.js → dev-C2u78xuv.js} +7 -7
  83. package/dist/{dev-CcphAa3R.js.map → dev-C2u78xuv.js.map} +1 -1
  84. package/dist/dev.js +1 -1
  85. package/dist/dialect/extracted/index.js +2 -0
  86. package/dist/dialect/index.js +2 -0
  87. package/dist/{elementMarker-Bu7gDAkE.js → elementMarker-BKzZyg5V.js} +10 -8
  88. package/dist/{elementMarker-Bu7gDAkE.js.map → elementMarker-BKzZyg5V.js.map} +1 -1
  89. package/dist/entry/dev/css.js +2 -2
  90. package/dist/entry/dev/jsx-dev-runtime.js +2 -1
  91. package/dist/entry/dev/jsx-runtime.js +2 -1
  92. package/dist/entry/dev.js +12 -9
  93. package/dist/entry/prod/css.js +2 -2
  94. package/dist/entry/prod/jsx-dev-runtime.js +2 -2
  95. package/dist/entry/prod/jsx-runtime.js +2 -2
  96. package/dist/entry/prod/runtime.js +4 -4
  97. package/dist/entry/prod.js +8 -8
  98. package/dist/entry/prod.js.map +1 -1
  99. package/dist/entry/rsc-dev/css.js +2 -2
  100. package/dist/entry/rsc-dev/dev.js +5 -5
  101. package/dist/entry/rsc-dev/jsx-dev-runtime.js +2 -2
  102. package/dist/entry/rsc-dev/jsx-runtime.js +2 -2
  103. package/dist/entry/rsc-dev.js +342 -105
  104. package/dist/entry/rsc-dev.js.map +1 -1
  105. package/dist/entry/rsc-prod/css.js +2 -2
  106. package/dist/entry/rsc-prod/jsx-dev-runtime.js +2 -2
  107. package/dist/entry/rsc-prod/jsx-runtime.js +2 -2
  108. package/dist/entry/rsc-prod/runtime.js +4 -4
  109. package/dist/entry/rsc-prod.js +7 -7
  110. package/dist/extract-B9j4TBkU.js +2 -0
  111. package/dist/{getClassName-BlvXHYuf.js → getClassName-C6690_nr.js} +3 -3
  112. package/dist/getClassName-C6690_nr.js.map +1 -0
  113. package/dist/global-C7GsCW6Y.js +14 -0
  114. package/dist/{global-CvfmFLsK.js.map → global-C7GsCW6Y.js.map} +1 -1
  115. package/dist/global-zaCE-g1C.js +31 -0
  116. package/dist/global-zaCE-g1C.js.map +1 -0
  117. package/dist/{format-3nKBE_5t.js → hash-Bycpk3MR.js} +53 -37
  118. package/dist/hash-Bycpk3MR.js.map +1 -0
  119. package/dist/index.js +10 -8
  120. package/dist/jsx/jsx-dev-runtime.js +2 -2
  121. package/dist/jsx/jsx-dev-runtime.server.js +1 -1
  122. package/dist/jsx/jsx-runtime.js +2 -2
  123. package/dist/jsx/jsx-runtime.server.js +1 -1
  124. package/dist/{jsx-CwTeyUxr.js → jsx-Berx-L-r.js} +3 -3
  125. package/dist/{jsx-CwTeyUxr.js.map → jsx-Berx-L-r.js.map} +1 -1
  126. package/dist/{jsx-D2BksHSv.js → jsx-DsMajv_M.js} +7 -7
  127. package/dist/{jsx-D2BksHSv.js.map → jsx-DsMajv_M.js.map} +1 -1
  128. package/dist/{jsx_dev_runtime-B6xs4by8.js → jsx_dev_runtime-DXlSD6kV.js} +2 -2
  129. package/dist/{jsx_dev_runtime-B6xs4by8.js.map → jsx_dev_runtime-DXlSD6kV.js.map} +1 -1
  130. package/dist/{jsx_runtime-04xfnsi7.js → jsx_runtime-CMdEXGNZ.js} +2 -2
  131. package/dist/{jsx_runtime-04xfnsi7.js.map → jsx_runtime-CMdEXGNZ.js.map} +1 -1
  132. package/dist/{jsx_runtime-iHLDwpcW.js → jsx_runtime-DPWo5qvV.js} +2 -2
  133. package/dist/{jsx_runtime-iHLDwpcW.js.map → jsx_runtime-DPWo5qvV.js.map} +1 -1
  134. package/dist/{layer-D1SaH07m.js → layer-DiNeeTgG.js} +4 -4
  135. package/dist/{layer-D1SaH07m.js.map → layer-DiNeeTgG.js.map} +1 -1
  136. package/dist/{loader-B5Kw0DD-.mjs → loader-DCT1Q9yi.mjs} +3 -3
  137. package/dist/{loader-B5Kw0DD-.mjs.map → loader-DCT1Q9yi.mjs.map} +1 -1
  138. package/dist/{misc-DCdYYyhK.mjs → misc-o8pviMUi.mjs} +7 -3
  139. package/dist/{misc-DCdYYyhK.mjs.map → misc-o8pviMUi.mjs.map} +1 -1
  140. package/dist/namedTokens-BUa6raTb.js +83 -0
  141. package/dist/namedTokens-BUa6raTb.js.map +1 -0
  142. package/dist/plugin/farm/index.mjs +2 -2
  143. package/dist/plugin/nextjs/index.mjs +4 -4
  144. package/dist/plugin/nextjs/loader.mjs +4 -4
  145. package/dist/plugin/parcel/optimizer.cjs +1 -1
  146. package/dist/plugin/parcel/optimizer.mjs +2 -2
  147. package/dist/plugin/parcel/resolver.cjs +1 -1
  148. package/dist/plugin/parcel/resolver.mjs +2 -2
  149. package/dist/plugin/parcel/runtime.cjs +1 -1
  150. package/dist/plugin/parcel/runtime.mjs +1 -1
  151. package/dist/plugin/parcel/transformer.cjs +1 -1
  152. package/dist/plugin/parcel/transformer.mjs +2 -2
  153. package/dist/plugin/rspack/index.mjs +1 -1
  154. package/dist/plugin/vite/index.mjs +11 -8
  155. package/dist/plugin/vite/index.mjs.map +1 -1
  156. package/dist/plugin/webpack/index.mjs +1 -1
  157. package/dist/plugin/webpack/loader.mjs +2 -2
  158. package/dist/presets/tailwind/index.js +971 -0
  159. package/dist/presets/tailwind/index.js.map +1 -0
  160. package/dist/{property-CnLFt5kx.js → property-BzZSTVIh.js} +2 -2
  161. package/dist/{property-CnLFt5kx.js.map → property-BzZSTVIh.js.map} +1 -1
  162. package/dist/{registry-yHLRxyoo.mjs → registry-D3x1EDJm.mjs} +2 -2
  163. package/dist/{registry-yHLRxyoo.mjs.map → registry-D3x1EDJm.mjs.map} +1 -1
  164. package/dist/{rules-9HSO1pxL.js → rules-Dz7Pu2K6.js} +13 -10
  165. package/dist/rules-Dz7Pu2K6.js.map +1 -0
  166. package/dist/{runtime-CYqNCiaM.js → runtime-B3jHW9B1.js} +3 -24
  167. package/dist/runtime-B3jHW9B1.js.map +1 -0
  168. package/dist/server.js +13 -11
  169. package/dist/server.js.map +1 -1
  170. package/dist/{shared-CBArHB9-.cjs → shared-B_gJf5uj.cjs} +554 -60
  171. package/dist/shared-B_gJf5uj.cjs.map +1 -0
  172. package/dist/{shared-CxbHR89f.mjs → shared-uAzFeq0x.mjs} +4 -4
  173. package/dist/{shared-CxbHR89f.mjs.map → shared-uAzFeq0x.mjs.map} +1 -1
  174. package/dist/sheet-DasbRnvy.js +7 -0
  175. package/dist/sheet-DasbRnvy.js.map +1 -0
  176. package/dist/{sidecar-BFakLl0X.mjs → sidecar-BUO1hKXu.mjs} +3 -3
  177. package/dist/{sidecar-BFakLl0X.mjs.map → sidecar-BUO1hKXu.mjs.map} +1 -1
  178. package/dist/style-B0F1sgRZ.js +5 -0
  179. package/dist/{style-DgHbdbdF.js → style-BkeAZl0n.js} +258 -82
  180. package/dist/style-BkeAZl0n.js.map +1 -0
  181. package/dist/{style-B1UUqjj5.js → style-CYXTs1iu.js} +35 -7
  182. package/dist/style-CYXTs1iu.js.map +1 -0
  183. package/dist/{style-v2bf70TZ.js → style-DUztHzBz.js} +439 -123
  184. package/dist/style-DUztHzBz.js.map +1 -0
  185. package/dist/{styleStore-Dea_WVbr.js → styleStore-BGJ2ZYtK.js} +16 -7
  186. package/dist/styleStore-BGJ2ZYtK.js.map +1 -0
  187. package/dist/{styleStore-DyNXBcUK.js → styleStore-DVDp-gI-.js} +6 -5
  188. package/dist/{styleStore-DyNXBcUK.js.map → styleStore-DVDp-gI-.js.map} +1 -1
  189. package/dist/{token-u_tM-mtg.js → token-CA1j7suG.js} +99 -30
  190. package/dist/token-CA1j7suG.js.map +1 -0
  191. package/dist/token-DTOyFLmp.js +58 -0
  192. package/dist/token-DTOyFLmp.js.map +1 -0
  193. package/dist/{trace-CU0rvNYr.js → trace-D0IL6JT8.js} +2 -2
  194. package/dist/{trace-CU0rvNYr.js.map → trace-D0IL6JT8.js.map} +1 -1
  195. package/dist/{trace-Bu_qOqRy.js → trace-DR7_Rpkg.js} +3 -3
  196. package/dist/{trace-Bu_qOqRy.js.map → trace-DR7_Rpkg.js.map} +1 -1
  197. package/dist/transform-BTJOg8Hg.js +23 -0
  198. package/dist/transform-BTJOg8Hg.js.map +1 -0
  199. package/dist/{utils-BbehLOby.js → utils-BsbfH6cd.js} +147 -76
  200. package/dist/utils-BsbfH6cd.js.map +1 -0
  201. package/dist/{utils-CEaq_c-A.mjs → utils-CpA-dSpY.mjs} +4 -4
  202. package/dist/{utils-CEaq_c-A.mjs.map → utils-CpA-dSpY.mjs.map} +1 -1
  203. package/dist/{utils-D7FAOyg6.js → utils-D4YWF2K0.js} +4 -4
  204. package/dist/{utils-D7FAOyg6.js.map → utils-D4YWF2K0.js.map} +1 -1
  205. package/dist/{utils-Bdbqn0f8.mjs → utils-DQGa0uzS.mjs} +3 -3
  206. package/dist/{utils-Bdbqn0f8.mjs.map → utils-DQGa0uzS.mjs.map} +1 -1
  207. package/dist/{utils-CWNHx4EC.js → utils-R6QadAsY.js} +3 -3
  208. package/dist/{utils-CWNHx4EC.js.map → utils-R6QadAsY.js.map} +1 -1
  209. package/dist/utils.js +3 -3
  210. package/dist/value-CJG6EWe8.js +85 -0
  211. package/dist/value-CJG6EWe8.js.map +1 -0
  212. package/dist/value-D-ZcRzLA.js +42 -0
  213. package/dist/value-D-ZcRzLA.js.map +1 -0
  214. package/dist/{value-BR4e2MKt.js → value-DBtSe-9B.js} +116 -26
  215. package/dist/value-DBtSe-9B.js.map +1 -0
  216. package/dist/{valueRef-lshFk1Cs.js → valueRef-CsLVJwjA.js} +2 -2
  217. package/dist/{valueRef-lshFk1Cs.js.map → valueRef-CsLVJwjA.js.map} +1 -1
  218. package/dist/{webpack-Dh6lox2l.mjs → webpack-Fb9xF5jS.mjs} +5 -5
  219. package/dist/{webpack-Dh6lox2l.mjs.map → webpack-Fb9xF5jS.mjs.map} +1 -1
  220. package/entry/dev/config.ts +1 -1
  221. package/entry/dev/index.ts +1 -0
  222. package/entry/dev/jsx_dev_runtime.ts +1 -0
  223. package/entry/dev/jsx_runtime.ts +1 -0
  224. package/entry/dev/sheet.ts +4 -0
  225. package/entry/prod/runtime.ts +1 -1
  226. package/entry/rsc_dev/config.ts +1 -1
  227. package/entry/rsc_dev/server.ts +1 -1
  228. package/entry/rsc_prod/runtime.ts +1 -1
  229. package/entry/rsc_prod/server.ts +1 -1
  230. package/entry/shared/config_dev.ts +12 -0
  231. package/entry/shared/dev.ts +11 -2
  232. package/entry/shared/utils.ts +28 -0
  233. package/package.json +26 -9
  234. package/plugin/bundler/vite/plugin.ts +2 -1
  235. package/plugin/bundler/vite/state.ts +10 -5
  236. package/plugin/utils/runtimeEntry.ts +12 -0
  237. package/presets/tailwind/classname/index.ts +2 -0
  238. package/presets/tailwind/classname/transform.ts +208 -0
  239. package/presets/tailwind/classname/types.ts +124 -0
  240. package/presets/tailwind/index.ts +5 -0
  241. package/presets/tailwind/selectors.ts +27 -0
  242. package/presets/tailwind/style/index.ts +2 -0
  243. package/presets/tailwind/style/transform.ts +430 -0
  244. package/presets/tailwind/style/types.ts +346 -0
  245. package/presets/tailwind/theme.ts +479 -0
  246. package/presets/tailwind/types.ts +147 -0
  247. package/runtime/core/cache/pool.ts +1 -1
  248. package/runtime/extract/getClassName.ts +1 -6
  249. package/runtime/extract/index.ts +1 -1
  250. package/runtime/index.ts +8 -1
  251. package/runtime/types.ts +4 -2
  252. package/style/classname.ts +41 -0
  253. package/style/index.ts +1 -0
  254. package/style/style.ts +30 -11
  255. package/style/theme.ts +4 -2
  256. package/style/transform.ts +41 -2
  257. package/utils/hash.ts +4 -0
  258. package/atomic/layer/README.md +0 -116
  259. package/dist/className-DC2Cq8p3.js.map +0 -1
  260. package/dist/compiler-DENc3a2R.mjs.map +0 -1
  261. package/dist/config-DKHXWhe1.js +0 -1
  262. package/dist/config-Di2VYYKV.js +0 -6
  263. package/dist/config-DloHOG6I.js +0 -13
  264. package/dist/config-DloHOG6I.js.map +0 -1
  265. package/dist/css-BowBszUt.js.map +0 -1
  266. package/dist/css-ByOrugEX.js.map +0 -1
  267. package/dist/css-DcazYor9.js.map +0 -1
  268. package/dist/data-BsqOa5br.js.map +0 -1
  269. package/dist/debug-n2aZQBSa.js.map +0 -1
  270. package/dist/dev-DfBbuLeE.js.map +0 -1
  271. package/dist/extract-DEwSDJ9Z.js +0 -2
  272. package/dist/format-3nKBE_5t.js.map +0 -1
  273. package/dist/getClassName-BlvXHYuf.js.map +0 -1
  274. package/dist/global-CvfmFLsK.js +0 -11
  275. package/dist/rules-9HSO1pxL.js.map +0 -1
  276. package/dist/runtime-CYqNCiaM.js.map +0 -1
  277. package/dist/shared-CBArHB9-.cjs.map +0 -1
  278. package/dist/style-B-6jHipw.js +0 -5
  279. package/dist/style-B1UUqjj5.js.map +0 -1
  280. package/dist/style-DgHbdbdF.js.map +0 -1
  281. package/dist/style-v2bf70TZ.js.map +0 -1
  282. package/dist/styleStore-Dea_WVbr.js.map +0 -1
  283. package/dist/token-u_tM-mtg.js.map +0 -1
  284. package/dist/utils-BbehLOby.js.map +0 -1
  285. package/dist/value-BR4e2MKt.js.map +0 -1
  286. package/dist/value-E8rEv2Oe.js +0 -136
  287. package/dist/value-E8rEv2Oe.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-DfH4Gb1c.js","names":["data.animation","data.background","data.border","data.columns","data.containIntrinsicSize","data.container","data.flex","data.font","data.gap","data.grid","data.inset","data.listStyle","data.margin","data.mask","data.offset","data.outline","data.overflow","data.overscrollBehavior","data.padding","data.place","data.scrollMargin","data.scrollPadding","data.scrollTimeline","data.text","data.transition","data.viewTimeline","data.whiteSpace","idCounter","idCounter","idCounter","idCounter","idCounter"],"sources":["../config/configure.ts","../atomic/value/unitless.ts","../atomic/value/value.ts","../style/valueRef.ts","../atomic/layer/layer.ts","../atomic/layer/types.ts","../atomic/layer/utils.ts","../atomic/property/types.ts","../atomic/property/type_maps.ts","../atomic/property/presets.ts","../atomic/property/property.ts","../atomic/atRule/utils.ts","../atomic/atRule/counterStyle.ts","../config/config/css_extra.ts","../utils/id.ts","../css/utils.ts","../css/counterStyle.ts","../atomic/atRule/fontFace.ts","../atomic/atRule/fontSrc.ts","../css/fontFace.ts","../atomic/atRule/fontPaletteValues.ts","../css/fontPaletteValues.ts","../atomic/atRule/keyframes.ts","../css/keyframes.ts","../atomic/atRule/positionTry.ts","../css/positionTry.ts","../atomic/atRule/property.ts","../css/property.ts"],"sourcesContent":["import { BUILD_CONFIG } from './build';\nimport { CSS_CONFIG, type CssConfig } from './config/css';\nimport { RUNTIME_CONFIG } from './config/runtime';\nimport { getCacheTTL } from './utils';\n\nexport type RuntimeCssOptions = Partial<CssConfig>;\n\nexport type ConfigureStyleRuntimeOptions = {\n css?: RuntimeCssOptions;\n cacheTTL?: boolean | number;\n};\n\nexport function configureStyleRuntime(options: ConfigureStyleRuntimeOptions = {}) {\n if (options.css) {\n checkBuildConfig('css');\n Object.assign(CSS_CONFIG, options.css);\n }\n\n if (options.cacheTTL !== undefined) {\n RUNTIME_CONFIG.runtimeCacheTTL = getCacheTTL(options.cacheTTL);\n }\n}\n\nfunction checkBuildConfig(field: string) {\n if (!BUILD_CONFIG.current) return;\n\n throw new Error(`Configure \"${field}\" via plugin options.`);\n}\n","export const UnitlessProperties = [\n 'animationIterationCount',\n 'aspectRatio',\n 'borderImageOutset',\n 'borderImageSlice',\n 'borderImageWidth',\n 'boxFlex',\n 'boxFlexGroup',\n 'boxOrdinalGroup',\n 'columnCount',\n 'columns',\n 'fillOpacity',\n 'flex',\n 'flexGrow',\n 'flexNegative',\n 'flexOrder',\n 'flexPositive',\n 'flexShrink',\n 'floodOpacity',\n 'fontWeight',\n 'gridArea',\n 'gridColumn',\n 'gridColumnEnd',\n 'gridColumnSpan',\n 'gridColumnStart',\n 'gridRow',\n 'gridRowEnd',\n 'gridRowSpan',\n 'gridRowStart',\n 'imageOrientation',\n 'lineClamp',\n 'lineHeight',\n 'opacity',\n 'order',\n 'orphans',\n 'scale',\n 'stopOpacity',\n 'strokeDasharray',\n 'strokeDashoffset',\n 'strokeMiterlimit',\n 'strokeOpacity',\n 'strokeWidth',\n 'tabSize',\n 'widows',\n 'zIndex',\n 'zoom',\n];\n","import { UnitlessProperties } from './unitless';\n\nconst CSS_NUMBER_VALUE = /^-?(\\d+\\.?\\d*|\\.\\d+)$/;\n\nconst UNITLESS = new Set(UnitlessProperties);\n\nexport function getCssPropertyValue(property: string, value: string): string {\n if (!value || !shouldAppendCssPx(property)) return value;\n\n if (CSS_NUMBER_VALUE.test(value)) return value + 'px';\n\n return value;\n}\n\nexport function shouldAppendCssPx(property: string): boolean {\n return !UNITLESS.has(property);\n}\n","import { symbol } from '../utils/global';\nimport type { StyleTokenData } from './token';\n\nexport const AT_RULE_REF: unique symbol = symbol('atRule.ref');\n\nexport type AtRuleRefData = {\n key: string;\n value: string;\n css: string | null;\n tokens?: readonly StyleTokenData[];\n};\n\nexport type AtRuleRef = AtRuleRefData & {\n [AT_RULE_REF]: true;\n};\n\nexport function createAtRuleRef(data: AtRuleRefData): AtRuleRef {\n return { [AT_RULE_REF]: true, ...data };\n}\n\nexport function isAtRuleRef(value: unknown): value is AtRuleRef {\n return !!value &&\n typeof value === 'object' &&\n (value as AtRuleRef)[AT_RULE_REF] === true;\n}\n","import { LayerPlaceholder } from '../../config';\nimport { hashString } from '../../utils/hash';\nimport type { LayerPriority } from './types';\n\nexport function compareLayerPriority(\n p1: LayerPriority,\n p2: LayerPriority,\n) {\n // Priority expands from broad domains into narrower ones:\n // value -> direct selector -> parent selector -> media -> scope/origin -> property.\n return (\n // Explicit value weight wins across all lower priority domains.\n p1[0] - p2[0] ||\n // Direct selector bucket: base < parent-only < selector < priority selector.\n p1[1] - p2[1] ||\n // Parent selector bucket inside the same direct selector bucket.\n p1[2] - p2[2] ||\n // Media bucket inside the same selector/parent selector bucket.\n p1[3] - p2[3] ||\n // Nested at-rule depth inside the same media bucket.\n p1[4] - p2[4] ||\n // Scope-origin tiebreaker inside the same contextual bucket.\n p1[5] - p2[5] ||\n // Property bucket: shorthand < intermediate < longhand.\n p1[6] - p2[6]\n );\n}\n\nexport function createLayerNamePool() {\n const lookup: Map<string, string> = new Map();\n\n const getLayerId = (priority: LayerPriority) => {\n const key = priority.join('|');\n\n let name = lookup.get(key);\n if (name) return name;\n\n name = 'p' + hashString(key);\n lookup.set(key, name);\n\n return name;\n };\n\n const getLayerName = (layerNamespace: string, priority: LayerPriority) => {\n const layerId = getLayerId(priority);\n\n return layerNamespace ? layerNamespace + '.' + layerId : layerId;\n };\n\n return { getLayerName, getLayerId };\n}\n\nexport function createLayerPool(layerNamespace: string) {\n const namePool = createLayerNamePool();\n const priorities = new Map<string, LayerPriority>();\n\n const getName = (priority: LayerPriority) => {\n const key = priority.join('|');\n\n if (!priorities.has(key)) priorities.set(key, priority);\n\n return namePool.getLayerName(layerNamespace, priority);\n };\n\n const getNames = () => {\n const names = Array.from(priorities.values())\n .sort(compareLayerPriority)\n .map((priority) => namePool.getLayerName(layerNamespace, priority));\n\n return names;\n };\n\n return { getName, getNames };\n}\n\nexport function ensureLayerPlaceholder(layers: string[]) {\n layers = layers.filter(Boolean);\n\n return layers.includes(LayerPlaceholder)\n ? layers\n : layers.concat(LayerPlaceholder);\n}\n\nexport function flattenCssLayers(\n layers: readonly string[],\n layerNames: string | readonly string[],\n) {\n const names = typeof layerNames === 'string'\n ? [layerNames]\n : layerNames;\n\n return layers\n .flatMap((layer) => layer === LayerPlaceholder ? names : layer)\n .filter(Boolean);\n}\n","import { LayerPlaceholder } from '../../config';\n\nexport { LayerPlaceholder };\n\nexport const LayerDefaultLayers = [LayerPlaceholder];\nexport const LayerDefaultNamespace = 'css';\n\nexport const LayerDefaultPriority: LayerPriority = [0, 0, 0, 0, 0, 0, 0];\n\nexport const LayerMediaPriorities = {\n base: 0,\n media: 1,\n priorityMedia: 2,\n};\n\nexport const LayerSelectorPriorities = {\n base: 0,\n parentSelector: 1,\n selector: 2,\n prioritySelector: 3,\n};\n\nexport const LayerPropertyPriorities = {\n shorthand: 0,\n intermediate: 1,\n longhand: 2,\n};\n\nexport type LayerPriority = readonly [\n value: number,\n selector: number,\n parentSelector: number,\n media: number,\n atRule: number,\n origin: number,\n property: number,\n];\n","import { flattenCssLayers } from './layer';\n\nexport function getLayerOrderCss(\n layers: readonly string[],\n layerNames: string | readonly string[],\n) {\n const names = flattenCssLayers(layers, layerNames);\n\n if (!names.length) return '';\n\n return '@layer ' + names.join(', ') + ';';\n}\n\nexport function getLayerBlockCss(\n layerName: string,\n css: string,\n) {\n return '@layer ' + layerName + ' {' + css + '}';\n}\n\nexport function getLayerBundleCss(\n layers: readonly string[],\n layerName: string,\n css: readonly string[],\n) {\n const output: string[] = [];\n const layerOrder = getLayerOrderCss(layers, layerName);\n\n if (layerOrder) {\n output.push(layerOrder);\n }\n\n output.push(getLayerBlockCss(layerName, '\\n' + css.join('\\n') + '\\n'));\n\n return output.join('\\n');\n}\n\nexport function joinLayerCss(\n layerOrderCss: string,\n css: readonly string[],\n) {\n const output: string[] = [];\n\n if (layerOrderCss) {\n output.push(layerOrderCss);\n }\n\n output.push(...css);\n\n return output.join('\\n') + '\\n';\n}\n","import { LayerPropertyPriorities } from '../layer';\n\nexport const LONGHAND = LayerPropertyPriorities.longhand;\nexport const SHORTHAND = LayerPropertyPriorities.shorthand;\nexport const INTERMEDIATE = LayerPropertyPriorities.intermediate;\n\nexport type PropertyTypeRecord<T extends string = string> = Partial<Record<T, number>>;\n","import type { CSSPropertyName } from '../utils/types';\nimport { INTERMEDIATE, LONGHAND, type PropertyTypeRecord, SHORTHAND } from './types';\n\ntype TypeMap = PropertyTypeRecord<CSSPropertyName>;\n\nexport const animation: TypeMap = {\n animation: SHORTHAND,\n animationComposition: LONGHAND,\n animationDelay: LONGHAND,\n animationDirection: LONGHAND,\n animationDuration: LONGHAND,\n animationFillMode: LONGHAND,\n animationIterationCount: LONGHAND,\n animationName: LONGHAND,\n animationPlayState: LONGHAND,\n animationRange: INTERMEDIATE,\n animationRangeEnd: LONGHAND,\n animationRangeStart: LONGHAND,\n animationTimeline: LONGHAND,\n animationTimingFunction: LONGHAND,\n};\n\nexport const background: TypeMap = {\n background: SHORTHAND,\n backgroundAttachment: LONGHAND,\n backgroundBlendMode: LONGHAND,\n backgroundClip: LONGHAND,\n backgroundColor: LONGHAND,\n backgroundImage: LONGHAND,\n backgroundOrigin: LONGHAND,\n backgroundPosition: INTERMEDIATE,\n backgroundPositionX: LONGHAND,\n backgroundPositionY: LONGHAND,\n backgroundRepeat: INTERMEDIATE,\n backgroundSize: LONGHAND,\n};\n\nexport const border: TypeMap = {\n border: SHORTHAND,\n borderBlock: INTERMEDIATE,\n borderBlockColor: INTERMEDIATE,\n borderBlockEnd: INTERMEDIATE,\n borderBlockEndColor: LONGHAND,\n borderBlockEndStyle: LONGHAND,\n borderBlockEndWidth: LONGHAND,\n borderBlockStart: INTERMEDIATE,\n borderBlockStartColor: LONGHAND,\n borderBlockStartStyle: LONGHAND,\n borderBlockStartWidth: LONGHAND,\n borderBlockStyle: INTERMEDIATE,\n borderBlockWidth: INTERMEDIATE,\n borderBottom: INTERMEDIATE,\n borderBottomColor: LONGHAND,\n borderBottomLeftRadius: LONGHAND,\n borderBottomRightRadius: LONGHAND,\n borderBottomStyle: LONGHAND,\n borderBottomWidth: LONGHAND,\n borderColor: INTERMEDIATE,\n borderImage: INTERMEDIATE,\n borderImageOutset: LONGHAND,\n borderImageRepeat: LONGHAND,\n borderImageSlice: LONGHAND,\n borderImageSource: LONGHAND,\n borderImageWidth: LONGHAND,\n borderInline: INTERMEDIATE,\n borderInlineColor: INTERMEDIATE,\n borderInlineEnd: INTERMEDIATE,\n borderInlineEndColor: LONGHAND,\n borderInlineEndStyle: LONGHAND,\n borderInlineEndWidth: LONGHAND,\n borderInlineStart: INTERMEDIATE,\n borderInlineStartColor: LONGHAND,\n borderInlineStartStyle: LONGHAND,\n borderInlineStartWidth: LONGHAND,\n borderInlineStyle: INTERMEDIATE,\n borderInlineWidth: INTERMEDIATE,\n borderLeft: INTERMEDIATE,\n borderLeftColor: LONGHAND,\n borderLeftStyle: LONGHAND,\n borderLeftWidth: LONGHAND,\n borderRadius: SHORTHAND,\n borderEndEndRadius: LONGHAND,\n borderEndStartRadius: LONGHAND,\n borderRight: INTERMEDIATE,\n borderRightColor: LONGHAND,\n borderRightStyle: LONGHAND,\n borderRightWidth: LONGHAND,\n borderSpacing: SHORTHAND,\n borderStartEndRadius: LONGHAND,\n borderStartStartRadius: LONGHAND,\n borderStyle: INTERMEDIATE,\n borderTop: INTERMEDIATE,\n borderTopColor: LONGHAND,\n borderTopLeftRadius: LONGHAND,\n borderTopRightRadius: LONGHAND,\n borderTopStyle: LONGHAND,\n borderTopWidth: LONGHAND,\n borderWidth: INTERMEDIATE,\n};\n\nexport const columns: TypeMap = {\n columns: SHORTHAND,\n columnCount: LONGHAND,\n columnRule: INTERMEDIATE,\n columnRuleColor: LONGHAND,\n columnRuleStyle: LONGHAND,\n columnRuleWidth: LONGHAND,\n columnWidth: LONGHAND,\n};\n\nexport const containIntrinsicSize: TypeMap = {\n containIntrinsicSize: SHORTHAND,\n containIntrinsicBlockSize: LONGHAND,\n containIntrinsicHeight: LONGHAND,\n containIntrinsicInlineSize: LONGHAND,\n containIntrinsicWidth: LONGHAND,\n};\n\nexport const container: TypeMap = {\n container: SHORTHAND,\n containerName: LONGHAND,\n containerType: LONGHAND,\n};\n\nexport const flex: TypeMap = {\n flex: SHORTHAND,\n flexBasis: LONGHAND,\n flexDirection: LONGHAND,\n flexFlow: INTERMEDIATE,\n flexGrow: LONGHAND,\n flexShrink: LONGHAND,\n flexWrap: LONGHAND,\n};\n\nexport const font: TypeMap = {\n font: SHORTHAND,\n fontFamily: LONGHAND,\n fontFeatureSettings: LONGHAND,\n fontKerning: LONGHAND,\n fontLanguageOverride: LONGHAND,\n fontOpticalSizing: LONGHAND,\n fontPalette: LONGHAND,\n fontSize: LONGHAND,\n fontSizeAdjust: LONGHAND,\n fontStretch: LONGHAND,\n fontStyle: LONGHAND,\n fontSynthesis: INTERMEDIATE,\n fontSynthesisSmallCaps: LONGHAND,\n fontSynthesisStyle: LONGHAND,\n fontSynthesisWeight: LONGHAND,\n fontVariant: INTERMEDIATE,\n fontVariantAlternates: LONGHAND,\n fontVariantCaps: LONGHAND,\n fontVariantEastAsian: LONGHAND,\n fontVariantEmoji: LONGHAND,\n fontVariantLigatures: LONGHAND,\n fontVariantNumeric: LONGHAND,\n fontVariantPosition: LONGHAND,\n fontVariationSettings: LONGHAND,\n fontWeight: LONGHAND,\n lineHeight: LONGHAND,\n};\n\nexport const gap: TypeMap = {\n gap: SHORTHAND,\n columnGap: LONGHAND,\n rowGap: LONGHAND,\n};\n\nexport const grid: TypeMap = {\n grid: SHORTHAND,\n gridArea: INTERMEDIATE,\n gridAutoColumns: LONGHAND,\n gridAutoFlow: LONGHAND,\n gridAutoRows: LONGHAND,\n gridColumn: INTERMEDIATE,\n gridColumnEnd: LONGHAND,\n gridColumnStart: LONGHAND,\n gridRow: INTERMEDIATE,\n gridRowEnd: LONGHAND,\n gridRowStart: LONGHAND,\n gridTemplate: INTERMEDIATE,\n gridTemplateAreas: LONGHAND,\n gridTemplateColumns: LONGHAND,\n gridTemplateRows: LONGHAND,\n};\n\nexport const inset: TypeMap = {\n inset: SHORTHAND,\n insetBlock: INTERMEDIATE,\n insetBlockEnd: LONGHAND,\n insetBlockStart: LONGHAND,\n insetInline: INTERMEDIATE,\n insetInlineEnd: LONGHAND,\n insetInlineStart: LONGHAND,\n bottom: LONGHAND,\n left: LONGHAND,\n right: LONGHAND,\n top: LONGHAND,\n};\n\nexport const listStyle: TypeMap = {\n listStyle: SHORTHAND,\n listStyleImage: LONGHAND,\n listStylePosition: LONGHAND,\n listStyleType: LONGHAND,\n};\n\nexport const margin: TypeMap = {\n margin: SHORTHAND,\n marginBlock: INTERMEDIATE,\n marginBlockEnd: LONGHAND,\n marginBlockStart: LONGHAND,\n marginBottom: LONGHAND,\n marginInline: INTERMEDIATE,\n marginInlineEnd: LONGHAND,\n marginInlineStart: LONGHAND,\n marginLeft: LONGHAND,\n marginRight: LONGHAND,\n marginTop: LONGHAND,\n};\n\nexport const mask: TypeMap = {\n mask: SHORTHAND,\n maskBorder: INTERMEDIATE,\n maskBorderMode: LONGHAND,\n maskBorderOutset: LONGHAND,\n maskBorderRepeat: LONGHAND,\n maskBorderSlice: LONGHAND,\n maskBorderSource: LONGHAND,\n maskBorderWidth: LONGHAND,\n maskClip: LONGHAND,\n maskComposite: LONGHAND,\n maskImage: LONGHAND,\n maskMode: LONGHAND,\n maskOrigin: LONGHAND,\n maskPosition: LONGHAND,\n maskRepeat: LONGHAND,\n maskSize: LONGHAND,\n maskType: LONGHAND,\n WebkitMask: SHORTHAND,\n WebkitMaskBoxImage: INTERMEDIATE,\n WebkitMaskBoxImageOutset: LONGHAND,\n WebkitMaskBoxImageRepeat: LONGHAND,\n WebkitMaskBoxImageSlice: LONGHAND,\n WebkitMaskBoxImageSource: LONGHAND,\n WebkitMaskBoxImageWidth: LONGHAND,\n WebkitMaskClip: LONGHAND,\n WebkitMaskComposite: LONGHAND,\n WebkitMaskImage: LONGHAND,\n WebkitMaskOrigin: LONGHAND,\n WebkitMaskPosition: LONGHAND,\n WebkitMaskPositionX: LONGHAND,\n WebkitMaskPositionY: LONGHAND,\n WebkitMaskRepeat: LONGHAND,\n WebkitMaskRepeatX: LONGHAND,\n WebkitMaskRepeatY: LONGHAND,\n WebkitMaskSize: LONGHAND,\n};\n\nexport const offset: TypeMap = {\n offset: SHORTHAND,\n offsetAnchor: LONGHAND,\n offsetDistance: LONGHAND,\n offsetPath: LONGHAND,\n offsetPosition: LONGHAND,\n offsetRotate: LONGHAND,\n};\n\nexport const outline: TypeMap = {\n outline: SHORTHAND,\n outlineColor: LONGHAND,\n outlineOffset: LONGHAND,\n outlineStyle: LONGHAND,\n outlineWidth: LONGHAND,\n};\n\nexport const overflow: TypeMap = {\n overflow: SHORTHAND,\n overflowBlock: LONGHAND,\n overflowClipMargin: SHORTHAND,\n overflowInline: LONGHAND,\n overflowWrap: LONGHAND,\n overflowX: LONGHAND,\n overflowY: LONGHAND,\n};\n\nexport const overscrollBehavior: TypeMap = {\n overscrollBehavior: SHORTHAND,\n overscrollBehaviorBlock: LONGHAND,\n overscrollBehaviorInline: LONGHAND,\n overscrollBehaviorX: LONGHAND,\n overscrollBehaviorY: LONGHAND,\n};\n\nexport const padding: TypeMap = {\n padding: SHORTHAND,\n paddingBlock: INTERMEDIATE,\n paddingBlockEnd: LONGHAND,\n paddingBlockStart: LONGHAND,\n paddingBottom: LONGHAND,\n paddingInline: INTERMEDIATE,\n paddingInlineEnd: LONGHAND,\n paddingInlineStart: LONGHAND,\n paddingLeft: LONGHAND,\n paddingRight: LONGHAND,\n paddingTop: LONGHAND,\n};\n\nexport const place: TypeMap = {\n placeContent: SHORTHAND,\n alignContent: LONGHAND,\n justifyContent: LONGHAND,\n placeItems: SHORTHAND,\n alignItems: LONGHAND,\n justifyItems: LONGHAND,\n placeSelf: SHORTHAND,\n alignSelf: LONGHAND,\n justifySelf: LONGHAND,\n};\n\nexport const scrollMargin: TypeMap = {\n scrollMargin: SHORTHAND,\n scrollMarginBlock: INTERMEDIATE,\n scrollMarginBlockEnd: LONGHAND,\n scrollMarginBlockStart: LONGHAND,\n scrollMarginBottom: LONGHAND,\n scrollMarginInline: INTERMEDIATE,\n scrollMarginInlineEnd: LONGHAND,\n scrollMarginInlineStart: LONGHAND,\n scrollMarginLeft: LONGHAND,\n scrollMarginRight: LONGHAND,\n scrollMarginTop: LONGHAND,\n};\n\nexport const scrollPadding: TypeMap = {\n scrollPadding: SHORTHAND,\n scrollPaddingBlock: INTERMEDIATE,\n scrollPaddingBlockEnd: LONGHAND,\n scrollPaddingBlockStart: LONGHAND,\n scrollPaddingBottom: LONGHAND,\n scrollPaddingInline: INTERMEDIATE,\n scrollPaddingInlineEnd: LONGHAND,\n scrollPaddingInlineStart: LONGHAND,\n scrollPaddingLeft: LONGHAND,\n scrollPaddingRight: LONGHAND,\n scrollPaddingTop: LONGHAND,\n};\n\nexport const scrollTimeline: TypeMap = {\n scrollTimeline: SHORTHAND,\n scrollTimelineAxis: LONGHAND,\n scrollTimelineName: LONGHAND,\n};\n\nexport const text: TypeMap = {\n textDecoration: SHORTHAND,\n textDecorationColor: LONGHAND,\n textDecorationLine: LONGHAND,\n textDecorationSkip: LONGHAND,\n textDecorationSkipInk: LONGHAND,\n textDecorationStyle: LONGHAND,\n textDecorationThickness: LONGHAND,\n textEmphasis: SHORTHAND,\n textEmphasisColor: LONGHAND,\n textEmphasisPosition: LONGHAND,\n textEmphasisStyle: LONGHAND,\n};\n\nexport const transition: TypeMap = {\n transition: SHORTHAND,\n transitionBehavior: LONGHAND,\n transitionDelay: LONGHAND,\n transitionDuration: LONGHAND,\n transitionProperty: LONGHAND,\n transitionTimingFunction: LONGHAND,\n};\n\nexport const viewTimeline: TypeMap = {\n viewTimeline: SHORTHAND,\n viewTimelineAxis: LONGHAND,\n viewTimelineInset: LONGHAND,\n viewTimelineName: LONGHAND,\n};\n\nexport const whiteSpace: TypeMap = {\n whiteSpace: SHORTHAND,\n whiteSpaceCollapse: LONGHAND,\n};\n","import * as data from './type_maps';\nimport type { PropertyTypeRecord } from './types';\n\nexport const PropertyTypes = data;\n\nexport const DefaultPropertyTypes: PropertyTypeRecord = {\n ...data.animation,\n ...data.background,\n ...data.border,\n ...data.columns,\n ...data.containIntrinsicSize,\n ...data.container,\n ...data.flex,\n ...data.font,\n ...data.gap,\n ...data.grid,\n ...data.inset,\n ...data.listStyle,\n ...data.margin,\n ...data.mask,\n ...data.offset,\n ...data.outline,\n ...data.overflow,\n ...data.overscrollBehavior,\n ...data.padding,\n ...data.place,\n ...data.scrollMargin,\n ...data.scrollPadding,\n ...data.scrollTimeline,\n ...data.text,\n ...data.transition,\n ...data.viewTimeline,\n ...data.whiteSpace,\n};\n","import { DefaultPropertyTypes } from './presets';\n\nexport const PROPERTY_DEFAULT_PRIORITY = 0;\n\nexport function getPropertyPriority(property: string) {\n return DefaultPropertyTypes[property] ?? PROPERTY_DEFAULT_PRIORITY;\n}\n\nexport function getCssPropertyName(property: string): string {\n return property\n .replace(/^(webkit|moz|ms|o)([A-Z])/g, (_, prefix, c) => `-${prefix}-${c.toLowerCase()}`)\n .replace(/[A-Z]/g, (c) => '-' + c.toLowerCase());\n}\n","import { CSS_CONFIG } from '../../config/config/css';\nimport { type NamedAtRuleFormat, type NamedAtRuleInfo, type TokenNameFormat } from '../../config/types';\nimport { getStyleTokenId, isStyleTokenData, type StyleTokenData } from '../../style/token';\nimport { getCssPropertyName } from '../property';\nimport { getTokenVar } from '../token';\nimport { createNameFormatter } from '../utils/format';\nimport { getIdentifierSafeHash } from '../utils/hash';\nimport { getCssPropertyValue } from '../value';\n\nexport function createAtRuleNameFormatter(defaultFormat: NamedAtRuleFormat, prefix?: string) {\n const formatter = createNameFormatter<NamedAtRuleInfo>(['name']);\n\n return (\n format: NamedAtRuleFormat | null,\n id: string,\n info: NamedAtRuleInfo,\n ) => {\n const hash = getIdentifierSafeHash(id, CSS_CONFIG.hashLength);\n const name = formatter(format || defaultFormat, hash, info);\n\n if (!prefix) return name;\n\n return name.startsWith(prefix) ? name : prefix + name;\n };\n}\n\nexport function buildNamedAtRuleCss(\n atRule: string,\n name: string,\n descriptors: object,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n return `@${atRule} ${name} {${\n buildAtRuleDeclarationCss(\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n true,\n )\n }}`;\n}\n\nexport function buildAtRuleDeclarationCss(\n style: Record<string, any>,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n rawValue: boolean,\n shouldInclude?: (property: string) => boolean,\n) {\n let css = '';\n\n for (const property in style) {\n if (shouldInclude && !shouldInclude(property)) continue;\n\n let value = style[property];\n\n if (Array.isArray(value) && value.length === 2 && typeof value[0] === 'number') {\n value = value[1];\n }\n\n if (isStyleTokenData(value)) {\n const tokenId = getStyleTokenId(value);\n if (!tokenLookup.has(tokenId)) {\n tokenLookup.add(tokenId);\n tokens.push(value);\n }\n\n css += `${getCssPropertyName(property)}: ${getTokenVar(value, tokenNameFormat)};`;\n continue;\n }\n\n const valueString = String(value ?? '');\n\n css += `${getCssPropertyName(property)}: ${rawValue ? valueString : getCssPropertyValue(property, valueString)};`;\n }\n\n return css;\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSS } from '../utils/types';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\nexport type CounterStyleObject = CSS.AtRule.CounterStyle;\n\nexport const COUNTER_STYLE_AT_RULE = 'counter-style';\n\nexport const formatCounterStyleName = createAtRuleNameFormatter(\n 'counter-style[-(name)]-$hash',\n);\n\nexport function buildCounterStyleCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: CounterStyleObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatCounterStyleName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n COUNTER_STYLE_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { name, css };\n}\n","import { globalData } from '../../utils/global';\nimport type { NamedAtRuleFormat } from '../types';\n\nexport type CssExtraConfig = {\n namedRuleFormat: {\n keyframes?: NamedAtRuleFormat;\n fontFace?: NamedAtRuleFormat;\n fontPaletteValues?: NamedAtRuleFormat;\n counterStyle?: NamedAtRuleFormat;\n positionTry?: NamedAtRuleFormat;\n property?: NamedAtRuleFormat;\n };\n};\n\nexport const CSS_EXTRA_CONFIG_DEFAULT: CssExtraConfig = {\n namedRuleFormat: {},\n};\n\nexport const CSS_EXTRA_CONFIG = globalData<CssExtraConfig>(\n 'config.cssExtra',\n () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }),\n);\n","import { globalData } from './global';\n\nexport type StableId = {\n name: string | null;\n id: string;\n};\n\nexport type IdCounter = { value: number; };\n\nexport function createIdCounter(name: string) {\n return globalData('idCounter.' + name, () => ({ value: 0 }));\n}\n\nexport function resetIdCounter(idCounter: IdCounter) {\n idCounter.value = 0;\n}\n\nexport function getId(idCounter: IdCounter, stableId: StableId | null): StableId {\n return stableId || { name: null, id: String(idCounter.value++) };\n}\n","import { CSS_CONFIG } from '../config/config/css';\nimport type { NamedAtRuleFormat, TokenNameFormat } from '../config/types';\nimport type { StyleTokenData } from '../style/token';\nimport { type AtRuleRef, createAtRuleRef } from '../style/valueRef';\nimport { getId, type IdCounter, type StableId } from '../utils/id';\n\nexport type StableIdInput = StableId;\n\nexport type BuiltAtRuleCss = {\n name: string;\n css: string;\n};\n\nexport type BuildNamedAtRuleCss<Value> = (\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n value: Value,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) => BuiltAtRuleCss;\n\ntype CreateNamedAtRuleRefConfig<Value> = {\n format: NamedAtRuleFormat | null | undefined;\n value: Value;\n buildCss: BuildNamedAtRuleCss<Value>;\n idCounter: IdCounter;\n stableId: StableId | null | undefined;\n};\n\nexport function createNamedAtRuleRef<Value>(\n config: CreateNamedAtRuleRefConfig<Value>,\n): AtRuleRef {\n const { id, name } = getId(config.idCounter, config.stableId || null);\n\n const tokens: StyleTokenData[] = [];\n const tokenLookup = new Set<string>();\n\n const css = config.buildCss(\n config.format || null,\n name,\n id,\n config.value,\n tokens,\n tokenLookup,\n CSS_CONFIG.tokenNameFormat || null,\n );\n\n return createAtRuleRef({\n key: css.name,\n value: css.name,\n css: css.css,\n tokens: tokens.length ? tokens : undefined,\n });\n}\n","import { buildCounterStyleCss, type CounterStyleObject } from '../atomic/atRule/counterStyle';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { CounterStyleObject };\n\nconst idCounter = createIdCounter('counterStyle');\n\nexport function createCounterStyle(descriptors: CounterStyleObject): AtRuleRef;\nexport function createCounterStyle(descriptors: CounterStyleObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.counterStyle,\n buildCss: buildCounterStyleCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSS } from '../utils/types';\nimport { buildAtRuleDeclarationCss, createAtRuleNameFormatter } from './utils';\n\nexport type FontFaceObject = CSS.AtRule.FontFace;\n\nexport const FONT_FACE_AT_RULE = 'font-face';\n\nexport const formatFontFaceName = createAtRuleNameFormatter(\n 'font[-(name)]-$hash',\n);\n\nexport function buildFontFaceCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: FontFaceObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatFontFaceName(format, id, { name });\n\n let css = buildAtRuleDeclarationCss(\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n true,\n (property) => property !== 'fontFamily',\n );\n\n css = `@${FONT_FACE_AT_RULE} { font-family: ${name}; ${css} }`;\n\n return { name, css };\n}\n","export function fontSrc(url: string, format?: string) {\n if (typeof url !== 'string') {\n throw new Error('fontSrc url must be a static string');\n }\n\n const src = `url(\"${escapeFontSrcPart(url)}\")`;\n\n return format ? `${src} format(\"${escapeFontSrcPart(format)}\")` : src;\n}\n\nfunction escapeFontSrcPart(value: string) {\n return value.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"');\n}\n","import { buildFontFaceCss, type FontFaceObject } from '../atomic/atRule/fontFace';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport { fontSrc } from '../atomic/atRule/fontSrc';\nexport type { FontFaceObject };\n\nconst idCounter = createIdCounter('fontFace');\n\nexport function createFontFace(descriptors: FontFaceObject): AtRuleRef;\nexport function createFontFace(descriptors: FontFaceObject, stableId?: StableId): AtRuleRef {\n if (typeof descriptors.src !== 'string') {\n throw new Error('createFontFace \"src\" must be a static string');\n }\n\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.fontFace,\n buildCss: buildFontFaceCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSS } from '../utils/types';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\nexport type FontPaletteValuesObject = CSS.AtRule.FontPaletteValues;\n\nexport const FONT_PALETTE_VALUES_AT_RULE = 'font-palette-values';\n\nexport const formatFontPaletteValuesName = createAtRuleNameFormatter(\n 'font-palettle[-(name)]-$hash',\n '--',\n);\n\nexport function buildFontPaletteValuesCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: FontPaletteValuesObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatFontPaletteValuesName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n FONT_PALETTE_VALUES_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { name, css };\n}\n","import { buildFontPaletteValuesCss, type FontPaletteValuesObject } from '../atomic/atRule/fontPaletteValues';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { FontPaletteValuesObject };\n\nconst idCounter = createIdCounter('fontPaletteValues');\n\nexport function createFontPaletteValues(descriptors: FontPaletteValuesObject): AtRuleRef;\nexport function createFontPaletteValues(descriptors: FontPaletteValuesObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.fontPaletteValues,\n buildCss: buildFontPaletteValuesCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { AtRuleStyleObject, CSSProperties } from '../../style/types';\nimport { buildAtRuleDeclarationCss, createAtRuleNameFormatter } from './utils';\n\nexport type KeyframeSelector = 'from' | 'to' | `${number}%` | (string & {});\n\nexport type KeyframesObject<Style = CSSProperties> = {\n [Selector in KeyframeSelector]?: AtRuleStyleObject<Style>;\n};\n\nexport const KEYFRAMES_AT_RULE = 'keyframes';\n\nexport const formatKeyFramesName = createAtRuleNameFormatter(\n 'keyframes[-(name)]-$hash',\n);\n\nexport function buildKeyframesCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n frames: KeyframesObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatKeyFramesName(format, id, { name });\n\n let css = `@${KEYFRAMES_AT_RULE} ${name} {`;\n\n for (const selector in frames) {\n const frame = frames[selector];\n if (!frame) continue;\n\n css += selector + '{';\n css += buildAtRuleDeclarationCss(frame, tokens, tokenLookup, tokenNameFormat, false);\n css += '}';\n }\n\n css += '}';\n\n return { name, css };\n}\n","import { buildKeyframesCss, type KeyframesObject } from '../atomic/atRule/keyframes';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { KeyframesObject };\n\nconst idCounter = createIdCounter('keyframes');\n\nexport function createKeyframes(frames: KeyframesObject): AtRuleRef;\nexport function createKeyframes(frames: KeyframesObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.keyframes,\n buildCss: buildKeyframesCss,\n value: frames,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { AtRuleStyleObject } from '../../style';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSSProperties } from '../utils/types';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\ntype Properties = Pick<\n CSSProperties,\n | 'positionArea'\n | 'insetArea'\n | 'top'\n | 'right'\n | 'bottom'\n | 'left'\n | 'inset'\n | 'insetBlock'\n | 'insetBlockStart'\n | 'insetBlockEnd'\n | 'insetInline'\n | 'insetInlineStart'\n | 'insetInlineEnd'\n | 'width'\n | 'minWidth'\n | 'maxWidth'\n | 'height'\n | 'minHeight'\n | 'maxHeight'\n | 'blockSize'\n | 'minBlockSize'\n | 'maxBlockSize'\n | 'inlineSize'\n | 'minInlineSize'\n | 'maxInlineSize'\n | 'margin'\n | 'marginBlock'\n | 'marginBlockStart'\n | 'marginBlockEnd'\n | 'marginInline'\n | 'marginInlineStart'\n | 'marginInlineEnd'\n>;\n\nexport type PositionTryObject = AtRuleStyleObject<Properties>;\n\nexport const POSITION_TRY_AT_RULE = 'position-try';\n\nexport const formatPositionTryName = createAtRuleNameFormatter(\n 'position-try[-(name)]-$hash',\n '--',\n);\n\nexport function buildPositionTryCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: PositionTryObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatPositionTryName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n POSITION_TRY_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { name, css };\n}\n","import { buildPositionTryCss, type PositionTryObject } from '../atomic/atRule/positionTry';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { PositionTryObject };\n\nconst idCounter = createIdCounter('positionTry');\n\nexport function createPositionTry(descriptors: PositionTryObject): AtRuleRef;\nexport function createPositionTry(descriptors: PositionTryObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.positionTry,\n buildCss: buildPositionTryCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\nexport type PropertyObject = {\n syntax: string;\n inherits: boolean;\n initialValue: string | number;\n};\n\nexport const PROPERTY_AT_RULE = 'property';\n\nexport const formatPropertyName = createAtRuleNameFormatter(\n '[-(name)]-$hash',\n '--',\n);\n\nexport function buildPropertyCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: PropertyObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatPropertyName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n PROPERTY_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { css, name };\n}\n","import { buildPropertyCss, type PropertyObject } from '../atomic/atRule/property';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { PropertyObject };\n\nconst idCounter = createIdCounter('property');\n\nexport function createProperty(descriptors: PropertyObject): AtRuleRef;\nexport function createProperty(descriptors: PropertyObject, stableId?: StableId): AtRuleRef;\nexport function createProperty(name: string, descriptors: PropertyObject): AtRuleRef;\nexport function createProperty(\n nameOrDescriptors: string | PropertyObject,\n descriptorsOrStableId?: PropertyObject | StableId,\n): AtRuleRef {\n const descriptors = typeof nameOrDescriptors === 'string'\n ? descriptorsOrStableId as PropertyObject\n : nameOrDescriptors;\n const stableId = typeof nameOrDescriptors === 'string'\n ? { name: nameOrDescriptors, id: nameOrDescriptors }\n : descriptorsOrStableId as StableId | undefined;\n\n return createNamedAtRuleRef({\n idCounter,\n stableId,\n format: CSS_EXTRA_CONFIG.namedRuleFormat.property,\n value: descriptors,\n buildCss: buildPropertyCss,\n });\n}\n"],"mappings":";;;AAYA,SAAgB,sBAAsB,UAAwC,CAAC,GAAG;CAChF,IAAI,QAAQ,KAAK;EACf,iBAAiB,KAAK;EACtB,OAAO,OAAO,YAAY,QAAQ,GAAG;CACvC;CAEA,IAAI,QAAQ,aAAa,KAAA,GACvB,eAAe,kBAAkB,YAAY,QAAQ,QAAQ;AAEjE;AAEA,SAAS,iBAAiB,OAAe;CACvC,IAAI,CAAC,aAAa,SAAS;CAE3B,MAAM,IAAI,MAAM,cAAc,MAAM,sBAAsB;AAC5D;;;AC3BA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;C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ACzC,UAAU;EACV,OAAO;EACP,WAAA;EACA;CACF,CAAC;AACH;;;ACTA,MAAa,mBAAmB;AAEhC,MAAa,qBAAqB,0BAChC,mBACA,IACF;AAEA,SAAgB,iBACd,QACA,MACA,IACA,aACA,QACA,aACA,iBACA;CACA,OAAO,mBAAmB,QAAQ,IAAI,EAAE,KAAK,CAAC;CAW9C,OAAO;EAAE,KATG,oBACV,kBACA,MACA,aACA,QACA,aACA,eAGS;EAAG;CAAK;AACrB;;;AC9BA,MAAM,YAAY,gBAAgB,UAAU;AAK5C,SAAgB,eACd,mBACA,uBACW;CACX,MAAM,cAAc,OAAO,sBAAsB,WAC7C,wBACA;CAKJ,OAAO,qBAAqB;EAC1B;EACA,UANe,OAAO,sBAAsB,WAC1C;GAAE,MAAM;GAAmB,IAAI;EAAkB,IACjD;EAKF,QAAQ,iBAAiB,gBAAgB;EACzC,OAAO;EACP,UAAU;CACZ,CAAC;AACH"}
package/dist/css.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as createFontFace, i as createFontPaletteValues, n as createPositionTry, o as fontSrc, r as createKeyframes, s as createCounterStyle, t as createProperty } from "./css-DcazYor9.js";
1
+ import { a as createFontFace, i as createFontPaletteValues, n as createPositionTry, o as fontSrc, r as createKeyframes, s as createCounterStyle, t as createProperty } from "./css-D_DL1yOz.js";
2
2
  export { createCounterStyle, createFontFace, createFontPaletteValues, createKeyframes, createPositionTry, createProperty, fontSrc };
@@ -1,8 +1,8 @@
1
- import { G as globalData } from "./value-BR4e2MKt.js";
1
+ import { G as globalData } from "./value-DBtSe-9B.js";
2
2
  //#region config/config/css_extra.ts
3
3
  const CSS_EXTRA_CONFIG_DEFAULT = { namedRuleFormat: {} };
4
4
  const CSS_EXTRA_CONFIG = globalData("config.cssExtra", () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }));
5
5
  //#endregion
6
6
  export { CSS_EXTRA_CONFIG as t };
7
7
 
8
- //# sourceMappingURL=css_extra-oIi3UEPK.js.map
8
+ //# sourceMappingURL=css_extra-9BZ_jVET.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"css_extra-DlOnsnR1.js","names":[],"sources":["../config/config/css_extra.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\nimport type { NamedAtRuleFormat } from '../types';\n\nexport type CssExtraConfig = {\n namedRuleFormat: {\n keyframes?: NamedAtRuleFormat;\n fontFace?: NamedAtRuleFormat;\n fontPaletteValues?: NamedAtRuleFormat;\n counterStyle?: NamedAtRuleFormat;\n positionTry?: NamedAtRuleFormat;\n property?: NamedAtRuleFormat;\n };\n};\n\nexport const CSS_EXTRA_CONFIG_DEFAULT: CssExtraConfig = {\n namedRuleFormat: {},\n};\n\nexport const CSS_EXTRA_CONFIG = globalData<CssExtraConfig>(\n 'config.cssExtra',\n () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }),\n);\n"],"mappings":";;AAcA,MAAa,2BAA2C,EACtD,iBAAiB,CAAC,EACpB;AAEA,MAAa,mBAAmB,WAC9B,0BACO,EAAE,GAAG,yBAAyB,EACvC"}
1
+ {"version":3,"file":"css_extra-9BZ_jVET.js","names":[],"sources":["../config/config/css_extra.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\nimport type { NamedAtRuleFormat } from '../types';\n\nexport type CssExtraConfig = {\n namedRuleFormat: {\n keyframes?: NamedAtRuleFormat;\n fontFace?: NamedAtRuleFormat;\n fontPaletteValues?: NamedAtRuleFormat;\n counterStyle?: NamedAtRuleFormat;\n positionTry?: NamedAtRuleFormat;\n property?: NamedAtRuleFormat;\n };\n};\n\nexport const CSS_EXTRA_CONFIG_DEFAULT: CssExtraConfig = {\n namedRuleFormat: {},\n};\n\nexport const CSS_EXTRA_CONFIG = globalData<CssExtraConfig>(\n 'config.cssExtra',\n () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }),\n);\n"],"mappings":";;AAcA,MAAa,2BAA2C,EACtD,iBAAiB,CAAC,EACpB;AAEA,MAAa,mBAAmB,WAC9B,0BACO,EAAE,GAAG,yBAAyB,EACvC"}
@@ -1,8 +1,8 @@
1
- import { c as globalData } from "./runtime-CYqNCiaM.js";
1
+ import { n as globalData } from "./global-zaCE-g1C.js";
2
2
  //#region config/config/css_extra.ts
3
3
  const CSS_EXTRA_CONFIG_DEFAULT = { namedRuleFormat: {} };
4
4
  const CSS_EXTRA_CONFIG = globalData("config.cssExtra", () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }));
5
5
  //#endregion
6
6
  export { CSS_EXTRA_CONFIG as t };
7
7
 
8
- //# sourceMappingURL=css_extra-DlOnsnR1.js.map
8
+ //# sourceMappingURL=css_extra-DQdCrYoC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"css_extra-oIi3UEPK.js","names":[],"sources":["../config/config/css_extra.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\nimport type { NamedAtRuleFormat } from '../types';\n\nexport type CssExtraConfig = {\n namedRuleFormat: {\n keyframes?: NamedAtRuleFormat;\n fontFace?: NamedAtRuleFormat;\n fontPaletteValues?: NamedAtRuleFormat;\n counterStyle?: NamedAtRuleFormat;\n positionTry?: NamedAtRuleFormat;\n property?: NamedAtRuleFormat;\n };\n};\n\nexport const CSS_EXTRA_CONFIG_DEFAULT: CssExtraConfig = {\n namedRuleFormat: {},\n};\n\nexport const CSS_EXTRA_CONFIG = globalData<CssExtraConfig>(\n 'config.cssExtra',\n () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }),\n);\n"],"mappings":";;AAcA,MAAa,2BAA2C,EACtD,iBAAiB,CAAC,EACpB;AAEA,MAAa,mBAAmB,WAC9B,0BACO,EAAE,GAAG,yBAAyB,EACvC"}
1
+ {"version":3,"file":"css_extra-DQdCrYoC.js","names":[],"sources":["../config/config/css_extra.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\nimport type { NamedAtRuleFormat } from '../types';\n\nexport type CssExtraConfig = {\n namedRuleFormat: {\n keyframes?: NamedAtRuleFormat;\n fontFace?: NamedAtRuleFormat;\n fontPaletteValues?: NamedAtRuleFormat;\n counterStyle?: NamedAtRuleFormat;\n positionTry?: NamedAtRuleFormat;\n property?: NamedAtRuleFormat;\n };\n};\n\nexport const CSS_EXTRA_CONFIG_DEFAULT: CssExtraConfig = {\n namedRuleFormat: {},\n};\n\nexport const CSS_EXTRA_CONFIG = globalData<CssExtraConfig>(\n 'config.cssExtra',\n () => ({ ...CSS_EXTRA_CONFIG_DEFAULT }),\n);\n"],"mappings":";;AAcA,MAAa,2BAA2C,EACtD,iBAAiB,CAAC,EACpB;AAEA,MAAa,mBAAmB,WAC9B,0BACO,EAAE,GAAG,yBAAyB,EACvC"}
@@ -1,12 +1,14 @@
1
- import { i as CSS_CONFIG } from "./runtime-CYqNCiaM.js";
2
- import { d as getStyleTokenId, i as getTokenVar, m as isStyleTokenOverrideData, n as shouldAppendCssPx, p as isStyleTokenData } from "./value-E8rEv2Oe.js";
3
- import { a as getCssVarRawFallback } from "./format-3nKBE_5t.js";
4
- import { r as isAtRuleRef } from "./valueRef-lshFk1Cs.js";
5
- import { l as getDebugFieldVarName, m as traceError, s as getDebugFieldCallsite } from "./debug-n2aZQBSa.js";
1
+ import { i as CSS_CONFIG } from "./runtime-B3jHW9B1.js";
2
+ import { i as getCssVarRawFallback } from "./css-CELBp6Gu.js";
3
+ import { t as DEV_CONFIG } from "./dev-4TqJORRn.js";
4
+ import { l as getDebugFieldVarName, m as traceError, s as getDebugFieldCallsite } from "./debug-DLmUG3Vh.js";
6
5
  import { c as assertSelector } from "./assert-BGdigdr5.js";
7
- import { _ as BUILDER_SCOPE_ID, b as BUILDER_TYPE, d as isSlotData, f as isSlotOverrideData, g as BUILDER_SCOPE, h as BUILDER_CALLSITE, l as isScopeData, n as getClassNameDedupe, p as isStyleData, t as getAtomicClassName, v as BUILDER_SLOT_ID, y as BUILDER_STATE } from "./className-DC2Cq8p3.js";
8
- import { t as DEV_CONFIG } from "./dev-DfBbuLeE.js";
9
- import { t as DEBUG_CONFIG } from "./debug-DGki_v7g.js";
6
+ import { _ as BUILDER_SCOPE_ID, b as BUILDER_TYPE, d as isSlotData, f as isSlotOverrideData, g as BUILDER_SCOPE, h as BUILDER_CALLSITE, l as isScopeData, n as getClassNameDedupe, p as isStyleData, t as getAtomicClassName, v as BUILDER_SLOT_ID, y as BUILDER_STATE } from "./className-Cuh2JNxO.js";
7
+ import { t as DEBUG_CONFIG } from "./debug-OG2wSB5R.js";
8
+ import { c as isStyleTokenData, l as isStyleTokenOverrideData, o as getStyleTokenId } from "./token-DTOyFLmp.js";
9
+ import { i as getTokenVar, n as shouldAppendCssPx } from "./value-CJG6EWe8.js";
10
+ import { r as isClassNameValue } from "./transform-BTJOg8Hg.js";
11
+ import { r as isAtRuleRef } from "./valueRef-CsLVJwjA.js";
10
12
  //#region builder/data/check_selector.ts
11
13
  function checkSelector(fnPrefix, fnName, fnSelector, arg) {
12
14
  let message = null;
@@ -157,7 +159,7 @@ function mergeScopeData(scope, callsite, items, debug, parentSelector, scopeAtRu
157
159
  value = value[0];
158
160
  }
159
161
  dedupe = getClassNameDedupe(scopeItem.property, priority, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule);
160
- className = getAtomicClassName(scopeItem.property, priority, value, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule, itemCallsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null);
162
+ className = getAtomicClassName(scopeItem.property, priority, value, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule, itemCallsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, scopeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null);
161
163
  scopeItem.dedupe = dedupe;
162
164
  scopeItem.className = className;
163
165
  scopeItem.callsite = itemCallsite;
@@ -195,6 +197,7 @@ function mergeScopeData(scope, callsite, items, debug, parentSelector, scopeAtRu
195
197
  className: "",
196
198
  property: overrideItem.property,
197
199
  value: overrideItem.value,
200
+ transformClassName: overrideItem.transformClassName,
198
201
  token: overrideItem.token,
199
202
  selector: overrideItem.selector,
200
203
  atRule,
@@ -210,7 +213,7 @@ function mergeScopeData(scope, callsite, items, debug, parentSelector, scopeAtRu
210
213
  value = value[0];
211
214
  }
212
215
  dedupe = getClassNameDedupe(scopeItem.property, priority, scopeItem.selector, parentSelector, scopeItem.atRule);
213
- className = getAtomicClassName(scopeItem.property, priority, value, scopeItem.selector, parentSelector, scopeItem.atRule, scopeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null);
216
+ className = getAtomicClassName(scopeItem.property, priority, value, scopeItem.selector, parentSelector, scopeItem.atRule, scopeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, scopeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null);
214
217
  scopeItem.dedupe = dedupe;
215
218
  scopeItem.className = className;
216
219
  const lookupKey = getScopeLookupKey(slotId, dedupe);
@@ -293,6 +296,7 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
293
296
  let token;
294
297
  let ref;
295
298
  let variableName;
299
+ let transformClassName;
296
300
  let lookupIndex;
297
301
  if (isStyleData(style)) {
298
302
  const stylesItems = style[BUILDER_STATE].items;
@@ -330,6 +334,11 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
330
334
  priority = valueRaw[0];
331
335
  valueRaw = valueRaw[1];
332
336
  }
337
+ transformClassName = null;
338
+ if (isClassNameValue(valueRaw)) {
339
+ transformClassName = valueRaw.className;
340
+ valueRaw = valueRaw.value;
341
+ }
333
342
  ref = isAtRuleRef(valueRaw) ? valueRaw : null;
334
343
  if (ref) valueRaw = ref.value;
335
344
  token = isStyleTokenData(valueRaw) ? valueRaw : null;
@@ -345,6 +354,7 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
345
354
  className: "",
346
355
  property,
347
356
  value,
357
+ transformClassName,
348
358
  variable: ref ? [3, ref] : variableName && token ? [
349
359
  1,
350
360
  variableName,
@@ -409,7 +419,7 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
409
419
  value = value[0];
410
420
  }
411
421
  dedupe = getClassNameDedupe(runtimeItem.property, priority, runtimeItem.selector, null, runtimeItem.atRule);
412
- className = getAtomicClassName(runtimeItem.property, priority, value, runtimeItem.selector, null, runtimeItem.atRule, runtimeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null);
422
+ className = getAtomicClassName(runtimeItem.property, priority, value, runtimeItem.selector, null, runtimeItem.atRule, runtimeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, runtimeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null);
413
423
  runtimeItem.dedupe = dedupe;
414
424
  runtimeItem.className = className;
415
425
  lookupIndex = lookup[dedupe];
@@ -470,4 +480,4 @@ function normalizeSelectorArg(arg) {
470
480
  //#endregion
471
481
  export { mergeScopeData as a, createSlotData as c, createThemeData as d, checkSelector as f, mergeBuilderData as i, createSlotOverrideData as l, SELECTOR_MEDIA as n, createScopeData as o, normalizeSelectorArg as r, createScopeTargetData as s, SELECTOR_CONTAINER as t, createStyleData as u };
472
482
 
473
- //# sourceMappingURL=data-BsqOa5br.js.map
483
+ //# sourceMappingURL=data-Ze8GNiJm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-Ze8GNiJm.js","names":["withDebugSource"],"sources":["../builder/data/check_selector.ts","../builder/data/create.ts","../builder/data/merge/utils.ts","../builder/data/merge/scope.ts","../builder/data/merge/style.ts","../builder/data/selector.ts"],"sourcesContent":["import { assertSelector } from '../../selector/assert';\nimport type { Selector } from '../../selector/types';\nimport { traceError } from '../../utils/trace';\n\nexport function checkSelector(\n fnPrefix: string,\n fnName: string,\n fnSelector: Selector,\n arg: string,\n) {\n let message: string | null = null;\n\n try {\n assertSelector(fnSelector.assert, arg);\n } catch (error) {\n if (typeof error === 'string' && error.trim()) {\n message = error;\n } else if (typeof error === 'object' && error && error instanceof Error) {\n message = (error.message || '').trim();\n } else {\n message = 'selector is invalid: ' + arg;\n }\n }\n\n if (!message) return;\n\n const error = `${fnPrefix}${fnName}(${arg || ''}): ${message}`;\n\n throw traceError(error);\n}\n","import type { StyleTokenOverride } from '../../style/token';\nimport {\n BUILDER_CALLSITE,\n BUILDER_SCOPE,\n BUILDER_SCOPE_ID,\n BUILDER_SLOT_ID,\n BUILDER_STATE,\n BUILDER_TYPE,\n BUILDER_TYPE_SCOPE,\n BUILDER_TYPE_SCOPE_TARGET,\n BUILDER_TYPE_SLOT,\n BUILDER_TYPE_SLOT_OVERRIDE,\n BUILDER_TYPE_STYLE,\n BUILDER_TYPE_THEME,\n} from './const';\nimport type {\n BuilderCallsite,\n BuilderData,\n ScopeData,\n ScopeTargetData,\n SlotData,\n SlotOverrideData,\n StyleData,\n ThemeData,\n} from './data';\n\nexport function createStyleData<Style>(\n callsite: BuilderCallsite | null,\n): StyleData<Style> {\n return {\n [BUILDER_TYPE]: BUILDER_TYPE_STYLE,\n [BUILDER_STATE]: { items: [], lookup: {} },\n [BUILDER_CALLSITE]: callsite,\n };\n}\n\nexport function createSlotData<Style>(\n callsite: BuilderCallsite | null,\n slotId: string,\n): SlotData<Style> {\n return {\n [BUILDER_TYPE]: BUILDER_TYPE_SLOT,\n [BUILDER_STATE]: { items: [], lookup: {} },\n [BUILDER_CALLSITE]: callsite,\n [BUILDER_SLOT_ID]: slotId,\n };\n}\n\nexport function createSlotOverrideData<Style>(\n callsite: BuilderCallsite | null,\n slotId: string,\n): SlotOverrideData<Style> {\n return {\n [BUILDER_TYPE]: BUILDER_TYPE_SLOT_OVERRIDE,\n [BUILDER_STATE]: { items: [], lookup: {} },\n [BUILDER_CALLSITE]: callsite,\n [BUILDER_SLOT_ID]: slotId,\n };\n}\n\nexport function createScopeData(\n callsite: BuilderCallsite | null,\n): BuilderData<unknown, typeof BUILDER_TYPE_SCOPE> {\n return {\n [BUILDER_TYPE]: BUILDER_TYPE_SCOPE,\n [BUILDER_STATE]: { items: [], lookup: {} },\n [BUILDER_CALLSITE]: callsite,\n };\n}\n\nexport function createScopeTargetData(\n scope: ScopeData,\n slot: SlotData<any>,\n): ScopeTargetData {\n return {\n [BUILDER_TYPE]: BUILDER_TYPE_SCOPE_TARGET,\n [BUILDER_SCOPE]: scope,\n [BUILDER_SCOPE_ID]: slot[BUILDER_SLOT_ID],\n };\n}\n\nexport function createThemeData(\n callsite: BuilderCallsite | null,\n id: string,\n className: string,\n tokens: readonly StyleTokenOverride[],\n): ThemeData {\n return {\n [BUILDER_TYPE]: BUILDER_TYPE_THEME,\n [BUILDER_STATE]: { items: [], lookup: {} },\n [BUILDER_CALLSITE]: callsite,\n id,\n className,\n tokens,\n };\n}\n","import { DEV_CONFIG } from '../../../config/config/dev';\nimport { traceError } from '../../../utils/trace';\nimport { BUILDER_STATE, ITEM_RUNTIME_DEV, ITEM_RUNTIME_DEV_PLUGIN, ITEM_RUNTIME_PROD } from '../const';\nimport type { BuilderData } from '../data';\nimport type { DebugData } from '../debug';\nimport type { ItemRuntimeType, StateItem, StateLookup } from '../state';\n\nexport function cloneData<Data extends BuilderData, Source extends BuilderData>(\n data: Data,\n source: Source,\n debug: DebugData | null,\n merge = true,\n): [runtimeType: ItemRuntimeType, data: Data, items: StateItem[], lookup: StateLookup] {\n const runtimeType = DEV_CONFIG.isDev\n ? (debug ? ITEM_RUNTIME_DEV_PLUGIN : ITEM_RUNTIME_DEV)\n : ITEM_RUNTIME_PROD;\n\n const state = data[BUILDER_STATE];\n\n state.items = merge ? source[BUILDER_STATE].items.slice() : [];\n\n state.lookup = Object.assign(\n Object.create(null),\n merge ? source[BUILDER_STATE].lookup : null,\n );\n\n const lookup = state.lookup!;\n const items = state.items;\n\n return [runtimeType, data, items, lookup];\n}\n\nexport function logInvalidData(message: string, data: object) {\n console.log(traceError(message), 'data:', data);\n}\n","import { getAtomicClassName, getClassNameDedupe } from '../../../atomic/className';\nimport { CSS_CONFIG } from '../../../config/config/css';\nimport { DEBUG_CONFIG } from '../../../config/config/debug';\nimport { DEV_CONFIG } from '../../../config/config/dev';\nimport { getStyleTokenId, isStyleTokenOverrideData, type StyleTokenOverride } from '../../../style/token';\nimport { BUILDER_SLOT_ID, BUILDER_STATE, BUILDER_TYPE_SCOPE, BUILDER_TYPE_SLOT_OVERRIDE } from '../const';\nimport type { BuilderCallsite, ScopeData, SlotOverrideData } from '../data';\nimport { type DebugData, type DebugLoc, getDebugFieldCallsite, TRACE_STYLE, TRACE_VALUE } from '../debug';\nimport { isScopeData, isSlotOverrideData } from '../is';\nimport type { ItemSelector, ItemValue, RuntimeScopeItem, RuntimeSlotOverrideItem, StateItem } from '../state';\nimport { cloneData, logInvalidData } from './utils';\n\nexport type ScopeItem =\n | SlotOverrideData<any>\n | ScopeData\n | StyleTokenOverride\n | false\n | null\n | undefined;\n\nexport type ScopeItems =\n | ScopeItem\n | ScopeItem[];\n\nexport function mergeScopeData(\n scope: ScopeData,\n callsite: BuilderCallsite | null,\n items: ScopeItems | null,\n debug: DebugData | null,\n parentSelector: ItemSelector | null,\n scopeAtRule: ItemSelector | null,\n): ScopeData {\n if (!items) return scope;\n\n const sourceItems = Array.isArray(items) ? items : [items];\n const [runtimeType, data, styles, lookup] = cloneData(\n scope,\n scope,\n debug,\n );\n\n let source: ScopeItem;\n let item: StateItem;\n let lookupIndex: number;\n let priority: number | null;\n let value: ItemValue;\n let atRule: ItemSelector[] | null;\n let dedupe: string;\n let className: string;\n let itemDebug: DebugData | null | undefined;\n let itemCallsite: BuilderCallsite | null;\n\n for (let i = 0, len = sourceItems.length; i < len; i++) {\n source = sourceItems[i];\n if (!source) continue;\n\n if (isStyleTokenOverrideData(source)) {\n addTokenOverride(source, styles, lookup);\n continue;\n }\n\n if (isScopeData(source)) {\n const scopeItems = source[BUILDER_STATE].items;\n\n for (let j = 0, len = scopeItems.length; j < len; j++) {\n item = scopeItems[j];\n\n if (isStyleTokenOverrideData(item)) {\n addTokenOverride(item, styles, lookup);\n continue;\n }\n\n if (Array.isArray(item) || item.type !== BUILDER_TYPE_SCOPE) {\n logInvalidData('invalid scope data', { source, item });\n continue;\n }\n\n const sourceScopeItem = item as RuntimeScopeItem;\n\n atRule = scopeAtRule\n ? (sourceScopeItem.atRule ? [scopeAtRule].concat(sourceScopeItem.atRule) : [scopeAtRule])\n : sourceScopeItem.atRule;\n\n const scopeItem: RuntimeScopeItem = {\n ...sourceScopeItem,\n runtime: runtimeType,\n atRule,\n parentSelector: parentSelector ?? sourceScopeItem.parentSelector,\n };\n itemDebug = getMergedScopeDebug(debug, scopeItem);\n itemCallsite = getDebugFieldCallsite(itemDebug ?? null, scopeItem.property) ??\n callsite ??\n scopeItem.callsite;\n\n value = scopeItem.value;\n priority = null;\n\n if (Array.isArray(value)) {\n priority = value[1];\n value = value[0];\n }\n\n dedupe = getClassNameDedupe(\n scopeItem.property,\n priority,\n scopeItem.selector,\n scopeItem.parentSelector,\n scopeItem.atRule,\n );\n\n className = getAtomicClassName(\n scopeItem.property,\n priority,\n value,\n scopeItem.selector,\n scopeItem.parentSelector,\n scopeItem.atRule,\n itemCallsite,\n DEV_CONFIG.isLocalClassNameEnabled,\n DEBUG_CONFIG.isDebugClassNameEnabled,\n CSS_CONFIG.classNameFormat ?? null,\n scopeItem.transformClassName ?? null,\n CSS_CONFIG.transformClassNameFormat ?? null,\n );\n\n scopeItem.dedupe = dedupe;\n scopeItem.className = className;\n scopeItem.callsite = itemCallsite;\n scopeItem.debug = itemDebug ?? null;\n scopeItem.debugField = itemDebug ? scopeItem.property : null;\n\n const lookupKey = getScopeLookupKey(scopeItem.slotId, dedupe);\n lookupIndex = lookup[lookupKey];\n\n if (typeof lookupIndex === 'number') {\n styles[lookupIndex] = scopeItem;\n } else {\n lookup[lookupKey] = styles.push(scopeItem) - 1;\n }\n }\n\n continue;\n }\n\n if (!isSlotOverrideData(source)) {\n logInvalidData('invalid scope data', { source });\n continue;\n }\n\n const slotId = source[BUILDER_SLOT_ID];\n const overrideItems = source[BUILDER_STATE].items;\n\n for (let j = 0, len = overrideItems.length; j < len; j++) {\n item = overrideItems[j];\n\n if (Array.isArray(item) || isStyleTokenOverrideData(item) || item.type !== BUILDER_TYPE_SLOT_OVERRIDE) {\n logInvalidData('invalid scope data', { source, item });\n continue;\n }\n\n const overrideItem = item as RuntimeSlotOverrideItem;\n\n atRule = scopeAtRule\n ? (overrideItem.atRule ? [scopeAtRule].concat(overrideItem.atRule) : [scopeAtRule])\n : overrideItem.atRule;\n\n const scopeItem: RuntimeScopeItem = {\n type: BUILDER_TYPE_SCOPE,\n slotId,\n runtime: runtimeType,\n dedupe: '',\n className: '',\n property: overrideItem.property,\n value: overrideItem.value,\n transformClassName: overrideItem.transformClassName,\n token: overrideItem.token,\n selector: overrideItem.selector,\n atRule,\n callsite: overrideItem.callsite ?? callsite,\n debug: overrideItem.debug,\n debugField: overrideItem.debugField,\n parentSelector,\n };\n\n value = scopeItem.value;\n priority = null;\n\n if (Array.isArray(value)) {\n priority = value[1];\n value = value[0];\n }\n\n dedupe = getClassNameDedupe(\n scopeItem.property,\n priority,\n scopeItem.selector,\n parentSelector,\n scopeItem.atRule,\n );\n\n className = getAtomicClassName(\n scopeItem.property,\n priority,\n value,\n scopeItem.selector,\n parentSelector,\n scopeItem.atRule,\n scopeItem.callsite,\n DEV_CONFIG.isLocalClassNameEnabled,\n DEBUG_CONFIG.isDebugClassNameEnabled,\n CSS_CONFIG.classNameFormat ?? null,\n scopeItem.transformClassName ?? null,\n CSS_CONFIG.transformClassNameFormat ?? null,\n );\n\n scopeItem.dedupe = dedupe;\n scopeItem.className = className;\n\n const lookupKey = getScopeLookupKey(slotId, dedupe);\n lookupIndex = lookup[lookupKey];\n\n if (typeof lookupIndex === 'number') {\n styles[lookupIndex] = scopeItem;\n } else {\n lookup[lookupKey] = styles.push(scopeItem) - 1;\n }\n }\n }\n\n return data as ScopeData;\n}\n\nfunction addTokenOverride(\n item: StyleTokenOverride,\n styles: StateItem[],\n lookup: Record<string, number>,\n) {\n const lookupKey = getTokenLookupKey(getStyleTokenId(item));\n const lookupIndex = lookup[lookupKey];\n\n if (typeof lookupIndex === 'number') {\n styles[lookupIndex] = item;\n } else {\n lookup[lookupKey] = styles.push(item) - 1;\n }\n}\n\nfunction getMergedScopeDebug(\n debug: DebugData | null,\n item: RuntimeScopeItem,\n): DebugData | null | undefined {\n if (!debug) return item.debug;\n if (debug.fields?.[item.property]) return debug;\n\n const valueLoc = getRuntimeScopeItemValueLoc(item);\n if (!valueLoc) return debug;\n\n return {\n ...debug,\n fields: {\n ...debug.fields,\n [item.property]: {\n [TRACE_STYLE]: debug.loc,\n [TRACE_VALUE]: valueLoc,\n },\n },\n };\n}\n\nfunction getRuntimeScopeItemValueLoc(item: RuntimeScopeItem): DebugLoc | null {\n if (item.debug && item.debugField) {\n const loc = item.debug.fields?.[item.debugField];\n if (Array.isArray(loc)) return withDebugSource(loc, item.debug.sourceUrl, item.debug.code);\n if (loc) {\n const valueLoc = loc[TRACE_VALUE] ?? loc[TRACE_STYLE] ?? null;\n return valueLoc ? withDebugSource(valueLoc, item.debug.sourceUrl, item.debug.code) : null;\n }\n }\n\n return item.callsite\n ? [item.callsite.line, item.callsite.column, undefined, item.callsite.sourceUrl, item.callsite.sourceContent]\n : null;\n}\n\nfunction withDebugSource(\n loc: DebugLoc,\n sourceUrl: string,\n sourceContent: string | undefined,\n): DebugLoc {\n return loc[3] ? loc : [loc[0], loc[1], loc[2], sourceUrl, sourceContent];\n}\n\nfunction getScopeLookupKey(slotId: string, dedupe: string) {\n return slotId + '\\0' + dedupe;\n}\n\nfunction getTokenLookupKey(tokenId: string) {\n return 'token\\0' + tokenId;\n}\n","import { getAtomicClassName, getClassNameDedupe } from '../../../atomic/className';\nimport { getTokenVar } from '../../../atomic/token';\nimport { getCssVarRawFallback } from '../../../atomic/utils/css';\nimport { shouldAppendCssPx } from '../../../atomic/value';\nimport { CSS_CONFIG } from '../../../config/config/css';\nimport { DEBUG_CONFIG } from '../../../config/config/debug';\nimport { DEV_CONFIG } from '../../../config/config/dev';\nimport { isStyleTokenData, isStyleTokenOverrideData, type StyleTokenData } from '../../../style/token';\nimport { isClassNameValue } from '../../../style/transform';\nimport type { StyleObject, StyleValueTuple } from '../../../style/types';\nimport { type AtRuleRef, isAtRuleRef } from '../../../style/valueRef';\nimport {\n BUILDER_SLOT_ID,\n BUILDER_STATE,\n BUILDER_TYPE_SLOT,\n BUILDER_TYPE_SLOT_OVERRIDE,\n BUILDER_TYPE_STYLE,\n ITEM_VALUE_NUMBER_PX,\n ITEM_VALUE_TYPE_AT_RULE_REF,\n ITEM_VALUE_TYPE_VARIABLE,\n} from '../const';\nimport type { BuilderCallsite, BuilderData, StyleData } from '../data';\nimport {\n type DebugData,\n type DebugLoc,\n getDebugFieldCallsite,\n getDebugFieldVarName,\n TRACE_STYLE,\n TRACE_VALUE,\n} from '../debug';\nimport { isSlotData, isSlotOverrideData, isStyleData } from '../is';\nimport type { BuilderType, ItemSelector, ItemValue, RuntimeItem, RuntimeItemData, StateItem } from '../state';\nimport { cloneData, logInvalidData } from './utils';\n\nexport type CreateData<Data extends BuilderData> = (\n callsite: BuilderCallsite | null,\n data: Data,\n) => Data;\n\nexport function mergeBuilderData<Data extends BuilderData>(\n create: CreateData<Data>,\n callsite: BuilderCallsite | null,\n source: Data,\n style: StyleObject | StyleData | null,\n debug: DebugData | null,\n selector: ItemSelector | null,\n atRule: ItemSelector[] | null,\n type: BuilderType,\n): Data {\n if (!style) return source;\n\n const [runtimeType, data, styles, lookup] = cloneData(\n create(callsite, source),\n source,\n debug,\n );\n\n const slotId = isSlotData(source) || isSlotOverrideData(source)\n ? source[BUILDER_SLOT_ID]\n : null;\n\n const items: RuntimeItem[] = [];\n\n let item: StateItem;\n let itemData: RuntimeItemData;\n\n let valueRaw: unknown;\n let value: ItemValue;\n let priority: number | null;\n let itemCallsite: BuilderCallsite | null;\n let className: string;\n let dedupe: string;\n let token: StyleTokenData | null;\n let ref: AtRuleRef | null;\n let variableName: string | null;\n let transformClassName: string | null;\n let lookupIndex: number;\n\n if (isStyleData(style)) {\n const stylesItems = style[BUILDER_STATE].items;\n\n for (let i = 0, len = stylesItems.length; i < len; i++) {\n item = stylesItems[i];\n\n if (Array.isArray(item) || isStyleTokenOverrideData(item) || item.type !== BUILDER_TYPE_STYLE) {\n logInvalidData('invalid style data', { item, style });\n continue;\n }\n\n if (atRule) {\n item = Object.assign({}, item, {\n atRule: item.atRule ? atRule.concat(item.atRule) : atRule,\n });\n }\n\n // Re-type to SLOT/SLOT_OVERRIDE when this StyleData is used inside a slot context.\n // Without this, style.slot(...).media('...', style({...})) would keep the inner\n // items as BUILDER_TYPE_STYLE and they would not be resolved when the slot is used.\n if (type === BUILDER_TYPE_SLOT && slotId !== null) {\n item = Object.assign({}, item, { type: BUILDER_TYPE_SLOT, slotId });\n } else if (type === BUILDER_TYPE_SLOT_OVERRIDE && slotId !== null) {\n item = Object.assign({}, item, { type: BUILDER_TYPE_SLOT_OVERRIDE, slotId });\n }\n\n const itemDebug = getMergedStyleDebug(debug, item);\n const debugCallsite = getDebugFieldCallsite(itemDebug, item.property);\n if (debugCallsite) {\n item = Object.assign({}, item, {\n callsite: debugCallsite,\n debug: itemDebug,\n debugField: item.property,\n });\n }\n\n items.push(item);\n }\n } else {\n for (const property in style) {\n valueRaw = style[property as keyof typeof style];\n priority = null;\n\n if (Array.isArray(valueRaw) && valueRaw.length === 2 && typeof valueRaw[0] === 'number') {\n priority = (valueRaw as StyleValueTuple)[0];\n valueRaw = (valueRaw as StyleValueTuple)[1];\n }\n\n transformClassName = null;\n if (isClassNameValue(valueRaw)) {\n transformClassName = valueRaw.className;\n valueRaw = valueRaw.value;\n }\n\n ref = isAtRuleRef(valueRaw) ? valueRaw : null;\n if (ref) valueRaw = ref.value;\n\n token = isStyleTokenData(valueRaw) ? valueRaw : null;\n variableName = getDebugFieldVarName(debug, property);\n\n value = variableName && token\n ? getCssVarRawFallback(variableName, getTokenVar(token, CSS_CONFIG.tokenNameFormat ?? null))\n : token\n ? getTokenVar(token, CSS_CONFIG.tokenNameFormat ?? null)\n : String(valueRaw ?? '');\n\n value = priority !== null ? [value, priority] : value;\n itemCallsite = getDebugFieldCallsite(debug, property) ?? callsite;\n\n itemData = {\n runtime: runtimeType,\n debug,\n debugField: property,\n dedupe: '',\n className: '',\n property,\n value,\n transformClassName,\n variable: ref\n ? [ITEM_VALUE_TYPE_AT_RULE_REF, ref]\n : variableName && token\n ? [\n ITEM_VALUE_TYPE_VARIABLE,\n variableName,\n valueRaw,\n shouldAppendCssPx(property) ? ITEM_VALUE_NUMBER_PX : undefined,\n ]\n : ref\n ? [ITEM_VALUE_TYPE_AT_RULE_REF, ref]\n : undefined,\n token,\n selector,\n atRule,\n callsite: itemCallsite,\n };\n\n if (type === BUILDER_TYPE_STYLE) {\n items.push({ ...itemData, type: BUILDER_TYPE_STYLE });\n continue;\n }\n\n if (slotId === null) {\n logInvalidData('invalid style data', { property, style });\n continue;\n }\n\n if (type === BUILDER_TYPE_SLOT) {\n items.push({ ...itemData, type: BUILDER_TYPE_SLOT, slotId });\n continue;\n }\n\n if (type === BUILDER_TYPE_SLOT_OVERRIDE) {\n items.push({ ...itemData, type: BUILDER_TYPE_SLOT_OVERRIDE, slotId });\n continue;\n }\n\n logInvalidData('invalid style data', { property, style });\n }\n }\n\n if (!items.length) return data;\n\n for (let i = 0, len = items.length; i < len; i++) {\n item = items[i];\n\n if (Array.isArray(item) || isStyleTokenOverrideData(item)) {\n logInvalidData('invalid style data', { item, style });\n continue;\n }\n\n const runtimeItem = item as RuntimeItem;\n value = runtimeItem.value;\n priority = null;\n\n if (Array.isArray(value)) {\n priority = value[1];\n value = value[0];\n }\n\n dedupe = getClassNameDedupe(\n runtimeItem.property,\n priority,\n runtimeItem.selector,\n null,\n runtimeItem.atRule,\n );\n\n className = getAtomicClassName(\n runtimeItem.property,\n priority,\n value,\n runtimeItem.selector,\n null,\n runtimeItem.atRule,\n runtimeItem.callsite,\n DEV_CONFIG.isLocalClassNameEnabled,\n DEBUG_CONFIG.isDebugClassNameEnabled,\n CSS_CONFIG.classNameFormat ?? null,\n runtimeItem.transformClassName ?? null,\n CSS_CONFIG.transformClassNameFormat ?? null,\n );\n\n runtimeItem.dedupe = dedupe;\n runtimeItem.className = className;\n\n lookupIndex = lookup[dedupe];\n\n if (typeof lookupIndex === 'number') {\n styles[lookupIndex] = runtimeItem;\n } else {\n lookup[dedupe] = styles.push(runtimeItem) - 1;\n }\n }\n\n return data;\n}\n\nfunction getMergedStyleDebug(\n debug: DebugData | null,\n item: RuntimeItem,\n) {\n if (!debug) return null;\n if (debug.fields?.[item.property]) return debug;\n\n const valueLoc = getMergedItemValueLoc(item);\n if (!valueLoc) return debug;\n\n return {\n ...debug,\n fields: {\n ...debug.fields,\n [item.property]: {\n [TRACE_STYLE]: withDebugSource(debug.loc, debug),\n [TRACE_VALUE]: valueLoc,\n },\n },\n };\n}\n\nfunction getMergedItemValueLoc(item: RuntimeItem): DebugLoc | null {\n if (item.debug && item.debugField) {\n const loc = item.debug.fields?.[item.debugField];\n if (Array.isArray(loc)) return withDebugSource(loc, item.debug);\n if (loc) {\n const traceLoc = loc[TRACE_VALUE] ?? loc[TRACE_STYLE] ?? null;\n return traceLoc ? withDebugSource(traceLoc, item.debug) : null;\n }\n }\n\n return item.callsite\n ? [item.callsite.line, item.callsite.column, undefined, item.callsite.sourceUrl, item.callsite.sourceContent]\n : null;\n}\n\nfunction withDebugSource(loc: DebugLoc, debug: DebugData): DebugLoc {\n return loc[3] ? loc : [loc[0], loc[1], loc[2], debug.sourceUrl, debug.code];\n}\n","export const SELECTOR_BASE = '';\nexport const SELECTOR_ARG = '$';\nexport const SELECTOR_ARGS = '$$';\nexport const SELECTOR_MERGE = '...';\nexport const SELECTOR_AT_RULE = '@';\nexport const SELECTOR_MEDIA = '@media';\nexport const SELECTOR_CONTAINER = '@container';\n\nexport function normalizeSelectorArg(arg: string) {\n return arg.includes('\\n') ? arg.replace(/\\n/g, '') : arg;\n}\n"],"mappings":";;;;;;;;;;;;AAIA,SAAgB,cACd,UACA,QACA,YACA,KACA;CACA,IAAI,UAAyB;CAE7B,IAAI;EACF,eAAe,WAAW,QAAQ,GAAG;CACvC,SAAS,OAAO;EACd,IAAI,OAAO,UAAU,YAAY,MAAM,KAAK,GAC1C,UAAU;OACL,IAAI,OAAO,UAAU,YAAY,SAAS,iBAAiB,OAChE,WAAW,MAAM,WAAW,IAAI,KAAK;OAErC,UAAU,0BAA0B;CAExC;CAEA,IAAI,CAAC,SAAS;CAId,MAAM,WAAW,GAFA,WAAW,OAAO,GAAG,OAAO,GAAG,KAAK,SAE/B;AACxB;;;ACHA,SAAgB,gBACd,UACkB;CAClB,OAAO;GACJ,eAAA;GACA,gBAAgB;GAAE,OAAO,CAAC;GAAG,QAAQ,CAAC;EAAE;GACxC,mBAAmB;CACtB;AACF;AAEA,SAAgB,eACd,UACA,QACiB;CACjB,OAAO;GACJ,eAAA;GACA,gBAAgB;GAAE,OAAO,CAAC;GAAG,QAAQ,CAAC;EAAE;GACxC,mBAAmB;GACnB,kBAAkB;CACrB;AACF;AAEA,SAAgB,uBACd,UACA,QACyB;CACzB,OAAO;GACJ,eAAA;GACA,gBAAgB;GAAE,OAAO,CAAC;GAAG,QAAQ,CAAC;EAAE;GACxC,mBAAmB;GACnB,kBAAkB;CACrB;AACF;AAEA,SAAgB,gBACd,UACiD;CACjD,OAAO;GACJ,eAAA;GACA,gBAAgB;GAAE,OAAO,CAAC;GAAG,QAAQ,CAAC;EAAE;GACxC,mBAAmB;CACtB;AACF;AAEA,SAAgB,sBACd,OACA,MACiB;CACjB,OAAO;GACJ,eAAA;GACA,gBAAgB;GAChB,mBAAmB,K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,MAAM,MAAM,KAAK,MAAM,SAAS,KAAK;EACrC,IAAI,MAAM,QAAQ,GAAG,GAAG,OAAO,gBAAgB,KAAK,KAAK,KAAK;EAC9D,IAAI,KAAK;GACP,MAAM,WAAW,IAAA,MAAoB,IAAA,MAAoB;GACzD,OAAO,WAAW,gBAAgB,UAAU,KAAK,KAAK,IAAI;EAC5D;CACF;CAEA,OAAO,KAAK,WACR;EAAC,KAAK,SAAS;EAAM,KAAK,SAAS;EAAQ,KAAA;EAAW,KAAK,SAAS;EAAW,KAAK,SAAS;CAAa,IAC1G;AACN;AAEA,SAAS,gBAAgB,KAAe,OAA4B;CAClE,OAAO,IAAI,KAAK,MAAM;EAAC,IAAI;EAAI,IAAI;EAAI,IAAI;EAAI,MAAM;EAAW,MAAM;CAAI;AAC5E;;;ACjSA,MAAa,iBAAiB;AAC9B,MAAa,qBAAqB;AAElC,SAAgB,qBAAqB,KAAa;CAChD,OAAO,IAAI,SAAS,IAAI,IAAI,IAAI,QAAQ,OAAO,EAAE,IAAI;AACvD"}
@@ -1,4 +1,4 @@
1
- import { G as globalData } from "./value-BR4e2MKt.js";
1
+ import { G as globalData } from "./value-DBtSe-9B.js";
2
2
  //#region config/config/debug.ts
3
3
  const DEFAULT_DEBUG_CONFIG = {
4
4
  isDebugClassNameEnabled: true,
@@ -12,4 +12,4 @@ const DEBUG_CONFIG = globalData("config.debug", () => ({ ...DEFAULT_DEBUG_CONFIG
12
12
  //#endregion
13
13
  export { DEBUG_CONFIG as t };
14
14
 
15
- //# sourceMappingURL=debug-BAw63qX6.js.map
15
+ //# sourceMappingURL=debug-BefbXMq1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug-BAw63qX6.js","names":[],"sources":["../config/config/debug.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\n\nexport type DebugConfig = {\n isDebugClassNameEnabled: boolean;\n\n maxPropertyLength: number;\n maxValueLength: number;\n maxSelectorLength: number;\n maxParentSelectorLength: number;\n maxAtRuleLength: number;\n};\n\nexport const DEFAULT_DEBUG_CONFIG: DebugConfig = {\n isDebugClassNameEnabled: true,\n\n maxPropertyLength: 24,\n maxValueLength: 8,\n maxSelectorLength: 8,\n maxParentSelectorLength: 8,\n maxAtRuleLength: 10,\n};\n\nexport const DEBUG_CONFIG = globalData<DebugConfig>(\n 'config.debug',\n () => ({ ...DEFAULT_DEBUG_CONFIG }),\n);\n"],"mappings":";;AAYA,MAAa,uBAAoC;CAC/C,yBAAyB;CAEzB,mBAAmB;CACnB,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,iBAAiB;AACnB;AAEA,MAAa,eAAe,WAC1B,uBACO,EAAE,GAAG,qBAAqB,EACnC"}
1
+ {"version":3,"file":"debug-BefbXMq1.js","names":[],"sources":["../config/config/debug.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\n\nexport type DebugConfig = {\n isDebugClassNameEnabled: boolean;\n\n maxPropertyLength: number;\n maxValueLength: number;\n maxSelectorLength: number;\n maxParentSelectorLength: number;\n maxAtRuleLength: number;\n};\n\nexport const DEFAULT_DEBUG_CONFIG: DebugConfig = {\n isDebugClassNameEnabled: true,\n\n maxPropertyLength: 24,\n maxValueLength: 8,\n maxSelectorLength: 8,\n maxParentSelectorLength: 8,\n maxAtRuleLength: 10,\n};\n\nexport const DEBUG_CONFIG = globalData<DebugConfig>(\n 'config.debug',\n () => ({ ...DEFAULT_DEBUG_CONFIG }),\n);\n"],"mappings":";;AAYA,MAAa,uBAAoC;CAC/C,yBAAyB;CAEzB,mBAAmB;CACnB,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,iBAAiB;AACnB;AAEA,MAAa,eAAe,WAC1B,uBACO,EAAE,GAAG,qBAAqB,EACnC"}
@@ -1,5 +1,5 @@
1
- import { c as hashString, s as sanitizeCssIdentName } from "./format-3nKBE_5t.js";
2
- import { t as DEV_CONFIG } from "./dev-DfBbuLeE.js";
1
+ import { a as sanitizeCssIdentName, o as hashString } from "./css-CELBp6Gu.js";
2
+ import { t as DEV_CONFIG } from "./dev-4TqJORRn.js";
3
3
  //#region utils/trace.ts
4
4
  const FN_MARKER = "$fn_";
5
5
  function traceMarker(fn, name) {
@@ -169,4 +169,4 @@ function sanitizeDebugPropertyName(property) {
169
169
  //#endregion
170
170
  export { getDebugCallsite as a, getDebugFieldLoc as c, isDebugData as d, normalizeCallsiteSourceUrl as f, traceMarker as h, sanitizeDebugPropertyName as i, getDebugFieldVarName as l, traceError as m, normalizePropertyName as n, getDebugCallsiteId as o, traceCallsite as p, sanitizeDebugName as r, getDebugFieldCallsite as s, normalizeDebugKeywordValue as t, getTraceCallsiteId as u };
171
171
 
172
- //# sourceMappingURL=debug-n2aZQBSa.js.map
172
+ //# sourceMappingURL=debug-DLmUG3Vh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-DLmUG3Vh.js","names":[],"sources":["../utils/trace.ts","../builder/data/debug.ts","../atomic/utils/debug.ts"],"sourcesContent":["const FN_MARKER = '$fn_';\n\nexport function traceMarker(fn: unknown, name: string) {\n Object.defineProperty(fn, 'name', {\n value: FN_MARKER + name,\n configurable: true,\n });\n}\n\n// Regex to capture file paths, line numbers, and column numbers from stack frames.\n// Handles standard paths and URLs after parenthesized frame labels are removed.\nconst CALLSITE_REGEX = /(.+):(\\d+):(\\d+)$/;\n\nexport type TraceCallsite = {\n stack: string;\n filePath: string;\n sourceUrl?: string;\n sourceContent?: string;\n line: number;\n column: number;\n};\n\nexport function traceCallsite(): TraceCallsite | null {\n const error = new Error();\n\n const adjustedError = traceAdjustError(error);\n const stack = adjustedError.stack || '';\n const lines = stack.split('\\n');\n\n const frames = lines.slice(1);\n const parsedFrames = frames.map(parseStackFrame).filter((frame) => frame !== null);\n if (!parsedFrames.length) return null;\n\n const targetFrame = parsedFrames.find((frame) => !isInternalCallsite(frame.filePath)) ??\n parsedFrames[0];\n\n return {\n stack: [lines[0] || 'Error', createStackFrameLine(targetFrame)].join('\\n'),\n filePath: targetFrame.filePath,\n sourceUrl: targetFrame.sourceUrl,\n line: targetFrame.line,\n column: targetFrame.column,\n };\n}\n\ntype ParsedStackFrame = {\n filePath: string;\n sourceUrl?: string;\n line: number;\n column: number;\n};\n\nfunction parseStackFrame(lineText: string): ParsedStackFrame | null {\n const match = getStackFrameLocationText(lineText).match(CALLSITE_REGEX);\n if (!match) return null;\n const rawFilePath = normalizeCallsiteSourceUrl(match[1]);\n\n return {\n filePath: normalizeCallsiteFilePath(rawFilePath),\n sourceUrl: isFetchableCallsiteSourceUrl(rawFilePath) ? rawFilePath : undefined,\n line: parseInt(match[2], 10),\n column: parseInt(match[3], 10),\n };\n}\n\nfunction getStackFrameLocationText(lineText: string) {\n let frame = lineText.trim().replace(/^at\\s+/, '');\n\n if (frame.endsWith(')')) {\n const parenIndex = frame.lastIndexOf('(');\n\n if (parenIndex !== -1) {\n frame = frame.slice(parenIndex + 1, -1);\n }\n }\n\n return frame;\n}\n\nexport function normalizeCallsiteSourceUrl(source: string) {\n let filePath = source.trim();\n\n try {\n filePath = decodeURI(filePath);\n } catch {\n // Keep the raw path if a bundler produced a partially escaped URL.\n }\n\n if (filePath.startsWith('source:///at ') || filePath.startsWith('source:///at%20')) {\n filePath = filePath.slice('source:///'.length);\n }\n\n const strayAtMatch = filePath.match(/(?:^|\\/)at\\s+([a-zA-Z][a-zA-Z\\d+.-]*:\\/\\/.+|\\/.+)$/);\n\n return strayAtMatch ? strayAtMatch[1] : filePath.replace(/^at\\s+/, '');\n}\n\nfunction normalizeCallsiteFilePath(filePath: string) {\n filePath = normalizeCallsiteSourceUrl(filePath);\n\n // strip query strings (e.g., file.ts?vue&type=script or file.js?v=123)\n const queryIndex = findFirstIndex(filePath, ['?', '#']);\n if (queryIndex !== -1) {\n filePath = filePath.substring(0, queryIndex);\n }\n\n // clean up potential absolute URL schemes left over by web bundlers (e.g., file:///)\n filePath = filePath.replace(/^file:\\/\\/\\/?/, '');\n\n if (filePath.startsWith('/@fs/')) {\n filePath = '/' + filePath.slice('/@fs/'.length);\n }\n\n const webpackInternalMatch = filePath.match(/^webpack-internal:\\/\\/\\/(?:\\([^)]+\\)\\/)?(.+)$/);\n if (webpackInternalMatch) {\n filePath = webpackInternalMatch[1];\n }\n\n const webpackSourceMatch = filePath.match(/^webpack:\\/\\/[^/]+\\/(.+)$/);\n if (webpackSourceMatch) {\n filePath = webpackSourceMatch[1];\n }\n\n return filePath;\n}\n\nfunction isFetchableCallsiteSourceUrl(filePath: string) {\n return /^https?:\\/\\//.test(filePath) || filePath.startsWith('/');\n}\n\nfunction findFirstIndex(text: string, needles: string[]) {\n let index = -1;\n\n for (const needle of needles) {\n const next = text.indexOf(needle);\n if (next !== -1 && (index === -1 || next < index)) index = next;\n }\n\n return index;\n}\n\nfunction createStackFrameLine(frame: ParsedStackFrame) {\n return ` at ${frame.filePath}:${frame.line}:${frame.column}`;\n}\n\nfunction isInternalCallsite(filePath: string) {\n const normalized = filePath.replace(/\\\\/g, '/');\n\n return normalized.startsWith('node:') ||\n normalized.startsWith('internal/') ||\n normalized.includes('/node_modules/') ||\n normalized.includes('/packages/style/dist/') ||\n normalized.includes('/packages/style/builder/') ||\n normalized.includes('/packages/style/runtime/') ||\n normalized.includes('/packages/style/utils/trace.');\n}\n\nexport type TraceErrorOptions = TraceAdjustErrorOptions & {\n stack?: string | null;\n name?: string | null;\n};\n\nexport function traceError(message: string | null, options: TraceErrorOptions = {}) {\n const error = new Error(message || '');\n\n error.name = options.name || 'StyleError';\n\n if (typeof options.stack === 'string') {\n error.stack = options.stack;\n return error;\n }\n\n return traceAdjustError(error, options);\n}\n\nexport type TraceAdjustErrorOptions = {\n offset?: number;\n limit?: number;\n};\n\nexport function traceAdjustError(error: Error, options: TraceAdjustErrorOptions = {}) {\n const offset = options.offset ?? 0;\n\n const stack = error.stack;\n\n if (!stack) return error;\n\n const lines = stack.split('\\n');\n\n const markerIndex = lines.findIndex((line) => line.includes(FN_MARKER));\n\n // marker not found\n if (markerIndex === -1) {\n return error;\n }\n\n const traced = new Error(error.message);\n traced.name = error.name;\n\n const frameStartIndex = Math.max(markerIndex + 1 + offset, 1);\n\n let frames = lines.slice(frameStartIndex);\n\n if (options.limit) {\n frames = frames.slice(0, options.limit);\n }\n\n traced.stack = [lines[0], ...frames].join('\\n');\n\n return traced;\n}\n","import { DEV_CONFIG } from '../../config/config/dev';\nimport { hashString } from '../../utils/hash';\nimport { type TraceCallsite } from '../../utils/trace';\n\nexport const LOC_LINE = 0;\nexport const LOC_COL = 1;\n\nexport const TRACE_STYLE = 0;\nexport const TRACE_VALUE = 1;\n\nexport const LABEL_SHORT = 0;\nexport const LABEL_LONG = 1;\nexport const LABEL_FILE = 2;\n\nexport type DebugLoc = [\n line: number,\n column: number,\n trace?: number,\n sourceUrl?: string,\n sourceContent?: string,\n];\n\ntype DebugLabel = [\n short: string,\n long: string,\n file: string,\n];\n\nexport type DebugData = {\n $$debug: true;\n loc: DebugLoc;\n label: DebugLabel;\n fields?: Record<string, DebugLoc | Record<number, DebugLoc>>;\n classNames?: Record<string, DebugLoc>;\n vars?: Record<string, string>;\n sourceUrl: string;\n code?: string;\n};\n\nexport function isDebugData(value: unknown): value is DebugData {\n if (!value || typeof value !== 'object') return false;\n\n const data = value as Partial<DebugData>;\n return data.$$debug === true && Array.isArray(data.loc) && Array.isArray(data.label);\n}\n\nexport function getDebugCallsiteId(debug: DebugData) {\n const label = debug.label[LABEL_SHORT] || debug.label[LABEL_LONG];\n\n if (!label) return null;\n\n const hash = debug.sourceUrl + '\\n' + debug.loc[LOC_LINE] + ':' + debug.loc[LOC_COL] + '\\n' +\n (debug.label[LABEL_LONG] || label);\n\n return label + '_' + hashString(hash);\n}\n\nexport function getTraceCallsiteId(callsite: TraceCallsite) {\n const hash = callsite.filePath + '\\n' + callsite.line + ':' + callsite.column;\n\n return hashString(hash);\n}\n\nexport function getDebugCallsite(debug: DebugData): TraceCallsite {\n return createDebugCallsite(debug.loc, debug);\n}\n\nexport function getDebugFieldCallsite(\n debug: DebugData | null,\n field: string,\n): TraceCallsite | null {\n if (!debug) return null;\n\n const loc = getDebugFieldLoc(debug, field);\n\n return loc ? createDebugCallsite(loc, debug) : null;\n}\n\nexport function getDebugFieldVarName(\n debug: DebugData | null,\n field: string,\n) {\n return debug?.vars?.[field] ?? null;\n}\n\nexport function getDebugFieldLoc(\n debug: DebugData | null,\n field: string,\n) {\n const loc = debug?.fields?.[field];\n if (!loc) return null;\n if (Array.isArray(loc)) return loc;\n\n const trace = DEV_CONFIG.sourcemapLocationMode === 'value'\n ? TRACE_VALUE\n : TRACE_STYLE;\n\n return loc[trace] ?? loc[TRACE_STYLE] ?? loc[TRACE_VALUE] ?? null;\n}\n\nfunction createDebugCallsite(loc: DebugLoc, debug: DebugData): TraceCallsite {\n const [line, column] = loc;\n const sourceUrl = loc[3] ?? debug.sourceUrl;\n const sourceContent = loc[4] ?? debug.code;\n\n return {\n stack: `Error\\n at ${sourceUrl}:${line}:${column}`,\n filePath: sourceUrl,\n sourceUrl,\n sourceContent,\n line,\n column,\n };\n}\n","import { sanitizeCssIdentName } from './css';\n\nexport function normalizeDebugKeywordValue(value: string) {\n const normalized = value.trim().toLowerCase();\n return /^[a-z][a-z0-9-]*$/.test(normalized) ? normalized : null;\n}\n\nexport function sanitizeDebugName(value: string | undefined) {\n if (!value) return '';\n\n const normalized = value\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .toLowerCase();\n\n return sanitizeCssIdentName(normalized, '');\n}\n\nexport function normalizePropertyName(property: string) {\n return property\n .trim()\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/_/g, '-')\n .toLowerCase();\n}\n\nexport function sanitizeDebugPropertyName(property: string) {\n let name = property;\n\n if (name.charCodeAt(0) === 45 && name.charCodeAt(1) === 45) {\n name = name.slice(2);\n }\n\n return name\n .replace(/[^a-z0-9_-]+/g, '-')\n .replace(/[-_]+/g, '-')\n .replace(/^-+|-+$/g, '');\n}\n"],"mappings":";;;AAAA,MAAM,YAAY;AAElB,SAAgB,YAA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,EAAE;AAC5C;AAEA,SAAgB,sBAAsB,UAAkB;CACtD,OAAO,SACJ,KAAK,EACL,QAAQ,sBAAsB,OAAO,EACrC,QAAQ,MAAM,GAAG,EACjB,YAAY;AACjB;AAEA,SAAgB,0BAA0B,UAAkB;CAC1D,IAAI,OAAO;CAEX,IAAI,KAAK,WAAW,CAAC,MAAM,MAAM,KAAK,WAAW,CAAC,MAAM,IACtD,OAAO,KAAK,MAAM,CAAC;CAGrB,OAAO,KACJ,QAAQ,iBAAiB,GAAG,EAC5B,QAAQ,UAAU,GAAG,EACrB,QAAQ,YAAY,EAAE;AAC3B"}
@@ -1,4 +1,4 @@
1
- import { c as globalData } from "./runtime-CYqNCiaM.js";
1
+ import { n as globalData } from "./global-zaCE-g1C.js";
2
2
  //#region config/config/debug.ts
3
3
  const DEFAULT_DEBUG_CONFIG = {
4
4
  isDebugClassNameEnabled: true,
@@ -12,4 +12,4 @@ const DEBUG_CONFIG = globalData("config.debug", () => ({ ...DEFAULT_DEBUG_CONFIG
12
12
  //#endregion
13
13
  export { DEBUG_CONFIG as t };
14
14
 
15
- //# sourceMappingURL=debug-DGki_v7g.js.map
15
+ //# sourceMappingURL=debug-OG2wSB5R.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug-DGki_v7g.js","names":[],"sources":["../config/config/debug.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\n\nexport type DebugConfig = {\n isDebugClassNameEnabled: boolean;\n\n maxPropertyLength: number;\n maxValueLength: number;\n maxSelectorLength: number;\n maxParentSelectorLength: number;\n maxAtRuleLength: number;\n};\n\nexport const DEFAULT_DEBUG_CONFIG: DebugConfig = {\n isDebugClassNameEnabled: true,\n\n maxPropertyLength: 24,\n maxValueLength: 8,\n maxSelectorLength: 8,\n maxParentSelectorLength: 8,\n maxAtRuleLength: 10,\n};\n\nexport const DEBUG_CONFIG = globalData<DebugConfig>(\n 'config.debug',\n () => ({ ...DEFAULT_DEBUG_CONFIG }),\n);\n"],"mappings":";;AAYA,MAAa,uBAAoC;CAC/C,yBAAyB;CAEzB,mBAAmB;CACnB,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,iBAAiB;AACnB;AAEA,MAAa,eAAe,WAC1B,uBACO,EAAE,GAAG,qBAAqB,EACnC"}
1
+ {"version":3,"file":"debug-OG2wSB5R.js","names":[],"sources":["../config/config/debug.ts"],"sourcesContent":["import { globalData } from '../../utils/global';\n\nexport type DebugConfig = {\n isDebugClassNameEnabled: boolean;\n\n maxPropertyLength: number;\n maxValueLength: number;\n maxSelectorLength: number;\n maxParentSelectorLength: number;\n maxAtRuleLength: number;\n};\n\nexport const DEFAULT_DEBUG_CONFIG: DebugConfig = {\n isDebugClassNameEnabled: true,\n\n maxPropertyLength: 24,\n maxValueLength: 8,\n maxSelectorLength: 8,\n maxParentSelectorLength: 8,\n maxAtRuleLength: 10,\n};\n\nexport const DEBUG_CONFIG = globalData<DebugConfig>(\n 'config.debug',\n () => ({ ...DEFAULT_DEBUG_CONFIG }),\n);\n"],"mappings":";;AAYA,MAAa,uBAAoC;CAC/C,yBAAyB;CAEzB,mBAAmB;CACnB,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,iBAAiB;AACnB;AAEA,MAAa,eAAe,WAC1B,uBACO,EAAE,GAAG,qBAAqB,EACnC"}
package/dist/dev/rsc.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { i as CSS_CONFIG } from "../runtime-CYqNCiaM.js";
3
- import { i as LayerDefaultLayers } from "../layer-D1SaH07m.js";
4
- import { d as isDebugData } from "../debug-n2aZQBSa.js";
5
- import { t as DEV_CONFIG } from "../dev-DfBbuLeE.js";
6
- import "../rules-9HSO1pxL.js";
7
- import { a as insertElementMarkerSheetRule, i as getElementMarkerClassNameFromRule, o as isElementMarkerRule } from "../elementMarker-Bu7gDAkE.js";
8
- import { t as getGlobalSheet } from "../global-CvfmFLsK.js";
9
- import { a as SEED_STYLE_TAG_ATTR, i as PRECOLLECT_LINK_TAG_ATTR, n as getRscStyleCssIfChanged, o as SEED_STYLE_TAG_HREF, r as ELEMENT_CSS_DATA_ATTR } from "../styleStore-DyNXBcUK.js";
10
- import { n as enableStyleDevUtils } from "../dev-CcphAa3R.js";
2
+ import { i as CSS_CONFIG } from "../runtime-B3jHW9B1.js";
3
+ import { t as DEV_CONFIG } from "../dev-4TqJORRn.js";
4
+ import { d as isDebugData } from "../debug-DLmUG3Vh.js";
5
+ import { i as LayerDefaultLayers } from "../layer-DiNeeTgG.js";
6
+ import "../rules-Dz7Pu2K6.js";
7
+ import { a as insertElementMarkerSheetRule, i as getElementMarkerClassNameFromRule, o as isElementMarkerRule } from "../elementMarker-BKzZyg5V.js";
8
+ import { t as getGlobalSheet } from "../global-C7GsCW6Y.js";
9
+ import { a as SEED_STYLE_TAG_ATTR, i as PRECOLLECT_LINK_TAG_ATTR, n as getRscStyleCssIfChanged, o as SEED_STYLE_TAG_HREF, r as ELEMENT_CSS_DATA_ATTR } from "../styleStore-DVDp-gI-.js";
10
+ import { n as enableStyleDevUtils } from "../dev-C2u78xuv.js";
11
11
  import { createElement, useEffect, useState } from "react";
12
12
  import { useServerInsertedHTML } from "next/navigation.js";
13
13
  //#region runtime/rsc/observer.ts
@@ -1,4 +1,6 @@
1
- import { c as globalData, t as RUNTIME_CONFIG } from "./runtime-CYqNCiaM.js";
1
+ import { n as globalData } from "./global-zaCE-g1C.js";
2
+ import { t as RUNTIME_CONFIG } from "./runtime-B3jHW9B1.js";
3
+ import { s as normalizeHashLength } from "./css-CELBp6Gu.js";
2
4
  //#region utils/object.ts
3
5
  function set(target, field, data) {
4
6
  target[field] = data;
@@ -18,7 +20,8 @@ const DEV_CONFIG_DEFAULT = {
18
20
  isLocalClassNameEnabled: true,
19
21
  sheetMaxRules: 1e3,
20
22
  sheetStyleTagNonce: null,
21
- stylePriorityMode: "layer",
23
+ hashLength: null,
24
+ stylePriorityMode: "sort",
22
25
  sourcemapLocationMode: "style",
23
26
  isElementClassNameEnabled: true
24
27
  };
@@ -64,8 +67,9 @@ function setOptions(partialConfig, options, defaultConfig) {
64
67
  if (options.sourcemapMode) config.sourcemapLocationMode = options.sourcemapMode;
65
68
  if (typeof options.elementClassName === "boolean") config.isElementClassNameEnabled = options.elementClassName;
66
69
  if (typeof options.checkSelector === "boolean") config.isCheckSelectorEnabled = options.checkSelector;
70
+ if (typeof options.hashLength === "number") config.hashLength = normalizeHashLength(options.hashLength);
67
71
  }
68
72
  //#endregion
69
73
  export { setDevUtilsRuntimeOptions as a, setDevRuntimeOptions as i, getBuildDevConfig as n, hasOwn as o, setBuildDevConfig as r, set as s, DEV_CONFIG as t };
70
74
 
71
- //# sourceMappingURL=dev-DfBbuLeE.js.map
75
+ //# sourceMappingURL=dev-4TqJORRn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-4TqJORRn.js","names":[],"sources":["../utils/object.ts","../config/config/dev.ts"],"sourcesContent":["export function clone<T>(\n data: T | null | undefined,\n) {\n let cloned: Record<string, unknown> = {};\n\n for (let key in data) {\n cloned[key] = data[key];\n }\n\n return cloned as T;\n}\n\nexport function merge<T>(\n data1: T | null | undefined,\n data2: T | null | undefined,\n) {\n let merged: Record<string, unknown> = {};\n\n if (data1) {\n for (let key in data1) {\n merged[key] = data1[key];\n }\n }\n\n if (data2) {\n for (let key in data2) {\n merged[key] = data2[key];\n }\n }\n\n return merged as T;\n}\n\nexport function assign(\n target: unknown,\n data: object,\n) {\n for (let key in data) {\n (target as any)[key] = (data as any)[key];\n }\n}\n\nexport function set(\n target: unknown,\n field: string | symbol,\n data: unknown,\n) {\n (target as any)[field] = data;\n}\n\nexport function get(\n target: unknown,\n field: string | symbol,\n): unknown {\n return (target as any)[field] ?? null;\n}\n\nexport function unsetAll(obj: object) {\n for (const key of Object.keys(obj)) {\n delete (obj as any)[key];\n }\n}\n\nexport function hasOwn(\n target: object,\n field: PropertyKey,\n) {\n return Object.prototype.hasOwnProperty.call(target, field);\n}\n\nexport function toArray<T>(\n value: T | T[] | null | undefined,\n): T[] {\n return Array.isArray(value) ? value : (value ? [value] : []);\n}\n\nexport function isFunction(\n value: unknown,\n): value is Function {\n return typeof value === 'function';\n}\n\nexport function isPromiseLike<T>(\n value: T | Promise<T>,\n): value is Promise<T> {\n return typeof value === 'object' && value !== null && 'then' in value;\n}\n","import { globalData } from '../../utils/global';\nimport { normalizeHashLength } from '../../utils/hash';\nimport { unsetAll } from '../../utils/object';\nimport type { BuildDevConfig } from '../build';\nimport type { SourcemapLocationMode, StylePriorityMode } from '../types';\nimport { RUNTIME_CONFIG } from './runtime';\n\nexport type DevConfig = {\n isDev: boolean;\n\n isCheckSelectorEnabled: boolean;\n isSourcemapEnabled: boolean;\n isLocalClassNameEnabled: boolean;\n\n sheetMaxRules: number;\n sheetStyleTagNonce: string | null;\n hashLength: number | null;\n\n stylePriorityMode: StylePriorityMode;\n sourcemapLocationMode: SourcemapLocationMode;\n\n isElementClassNameEnabled: boolean;\n};\n\nexport const DEV_CONFIG_DEFAULT: DevConfig = {\n isDev: false,\n\n isCheckSelectorEnabled: true,\n isSourcemapEnabled: true,\n isLocalClassNameEnabled: true,\n\n sheetMaxRules: 1000,\n sheetStyleTagNonce: null,\n hashLength: null,\n\n stylePriorityMode: 'sort',\n sourcemapLocationMode: 'style',\n\n isElementClassNameEnabled: true,\n};\n\ntype PartialDevConfig = {\n config: Partial<DevConfig> | null;\n};\n\nexport const IS_DEV = globalData<{ isDev: boolean; }>(\n 'config.dev.isDev',\n () => ({ isDev: false }),\n);\n\nexport const DEV_CONFIG = globalData<DevConfig>(\n 'config.dev',\n () => ({ ...DEV_CONFIG_DEFAULT }),\n);\n\nexport const configPlugin = globalData<PartialDevConfig>(\n 'config.dev.plugin',\n () => ({ config: null }),\n);\n\nconst configBase = globalData<PartialDevConfig>(\n 'config.dev.base',\n () => ({ config: null }),\n);\n\nconst configUtils = globalData<PartialDevConfig>(\n 'config.dev.utils',\n () => ({ config: null }),\n);\n\nexport type DevRuntimeOptions = {\n priorityMode?: StylePriorityMode | null;\n sourcemapMode?: SourcemapLocationMode | null;\n elementClassName?: boolean | null;\n checkSelector?: boolean | null;\n hashLength?: number | null;\n};\n\nexport function getBuildDevConfig() {\n return configPlugin.config;\n}\n\nexport function setBuildDevConfig(config: BuildDevConfig) {\n const checkSelector = config.checkSelector === 'force' ? false : config.checkSelector;\n\n IS_DEV.isDev = true;\n\n setOptions(configPlugin, { ...config, checkSelector }, null);\n rebuildDevConfig();\n}\n\nexport function setDevUtilsRuntimeOptions(options: DevRuntimeOptions | null) {\n setOptions(configUtils, options, null);\n rebuildDevConfig();\n}\n\nexport function setDevRuntimeOptions(options: DevRuntimeOptions | null) {\n setOptions(configBase, options, { ...DEV_CONFIG_DEFAULT });\n rebuildDevConfig();\n}\n\nfunction rebuildDevConfig() {\n unsetAll(DEV_CONFIG);\n\n Object.assign(\n DEV_CONFIG,\n DEV_CONFIG_DEFAULT,\n configBase.config,\n configPlugin.config,\n configUtils.config,\n );\n\n DEV_CONFIG.isDev = IS_DEV.isDev;\n\n RUNTIME_CONFIG.changes += 1;\n}\n\nfunction setOptions(\n partialConfig: PartialDevConfig,\n options: DevRuntimeOptions | null,\n defaultConfig: DevConfig | null,\n) {\n if (!options) {\n partialConfig.config = defaultConfig;\n return;\n }\n\n if (!partialConfig.config) {\n partialConfig.config = defaultConfig || {};\n }\n\n const config = partialConfig.config;\n\n if (options.priorityMode) {\n config.stylePriorityMode = options.priorityMode;\n }\n\n if (options.sourcemapMode) {\n config.sourcemapLocationMode = options.sourcemapMode;\n }\n\n if (typeof options.elementClassName === 'boolean') {\n config.isElementClassNameEnabled = options.elementClassName;\n }\n\n if (typeof options.checkSelector === 'boolean') {\n config.isCheckSelectorEnabled = options.checkSelector;\n }\n\n if (typeof options.hashLength === 'number') {\n config.hashLength = normalizeHashLength(options.hashLength);\n }\n}\n"],"mappings":";;;;AA0CA,SAAgB,IACd,QACA,OACA,MACA;CACA,OAAgB,SAAS;AAC3B;AASA,SAAgB,SAAS,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SAAS;EACvB;CACF;CAEA,IAAI,CAAC,cAAc,QACjB,cAAc,SAAS,iBAAiB,CAAC;CAG3C,MAAM,SAAS,cAAc;CAE7B,IAAI,QAAQ,cACV,OAAO,oBAAoB,QAAQ;CAGrC,IAAI,QAAQ,eACV,OAAO,wBAAwB,QAAQ;CAGzC,IAAI,OAAO,QAAQ,qBAAqB,WACtC,OAAO,4BAA4B,QAAQ;CAG7C,IAAI,OAAO,QAAQ,kBAAkB,WACnC,OAAO,yBAAyB,QAAQ;CAG1C,IAAI,OAAO,QAAQ,eAAe,UAChC,OAAO,aAAa,oBAAoB,QAAQ,UAAU;AAE9D"}
@@ -1,8 +1,8 @@
1
- import { i as CSS_CONFIG, t as RUNTIME_CONFIG } from "./runtime-CYqNCiaM.js";
2
- import { t as CSS_EXTRA_CONFIG } from "./css_extra-DlOnsnR1.js";
3
- import { a as setDevUtilsRuntimeOptions, i as setDevRuntimeOptions, n as getBuildDevConfig, t as DEV_CONFIG } from "./dev-DfBbuLeE.js";
4
- import { t as DEBUG_CONFIG } from "./debug-DGki_v7g.js";
5
- import { f as refreshDevSourcemapTags, t as clearElementMarkers, u as refreshDevStyleTags } from "./elementMarker-Bu7gDAkE.js";
1
+ import { i as CSS_CONFIG, t as RUNTIME_CONFIG } from "./runtime-B3jHW9B1.js";
2
+ import { a as setDevUtilsRuntimeOptions, i as setDevRuntimeOptions, n as getBuildDevConfig, t as DEV_CONFIG } from "./dev-4TqJORRn.js";
3
+ import { t as DEBUG_CONFIG } from "./debug-OG2wSB5R.js";
4
+ import { t as CSS_EXTRA_CONFIG } from "./css_extra-DQdCrYoC.js";
5
+ import { d as refreshDevStyleTags, p as refreshDevSourcemapTags, t as clearElementMarkers } from "./elementMarker-BKzZyg5V.js";
6
6
  const StorageKeys = {
7
7
  priorityMode: "@fluentic/style.dev.priorityMode",
8
8
  sourcemapMode: "@fluentic/style.dev.sourcemapTrace",
@@ -199,7 +199,7 @@ function resetDevUtils() {
199
199
  logReset();
200
200
  }
201
201
  async function traceSourcemap() {
202
- const result = await (await import("./trace-Bu_qOqRy.js")).traceDevSourcemaps();
202
+ const result = await (await import("./trace-DR7_Rpkg.js")).traceDevSourcemaps();
203
203
  logTraceCompleted(result);
204
204
  return result;
205
205
  }
@@ -373,4 +373,4 @@ function configureStyleDev(options = {}) {
373
373
  //#endregion
374
374
  export { enableStyleDevUtils as n, configureStyleDev as t };
375
375
 
376
- //# sourceMappingURL=dev-CcphAa3R.js.map
376
+ //# sourceMappingURL=dev-C2u78xuv.js.map