├── .github └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── index.js ├── package-lock.json ├── package.json ├── test ├── atrules.test.js ├── comments.test.js ├── declarations.test.js ├── minify.test.js ├── rules.test.js ├── selectors.test.js ├── tab-size.js ├── test.js └── values.test.js ├── tsconfig.json └── vite.config.js /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages 3 | 4 | name: NPM Publish 5 | 6 | on: 7 | release: 8 | types: [created] 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v4 15 | - uses: actions/setup-node@v4 16 | with: 17 | node-version: 20 18 | - run: npm install --ignore-scripts --no-audit --no-fund 19 | - run: npm test 20 | 21 | publish-npm: 22 | needs: build 23 | runs-on: ubuntu-latest 24 | steps: 25 | - uses: actions/checkout@v4 26 | - uses: actions/setup-node@v4 27 | with: 28 | cache: "npm" 29 | registry-url: https://registry.npmjs.org/ 30 | - run: npm install --ignore-scripts --no-audit --no-fund 31 | - run: npm run build 32 | - run: npm publish 33 | env: 34 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 35 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: Tests 5 | 6 | on: 7 | push: 8 | branches: [main] 9 | pull_request: 10 | branches: [main] 11 | 12 | jobs: 13 | test: 14 | name: Unit tests 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v4 18 | - name: Use Node.js 19 | uses: actions/setup-node@v4 20 | with: 21 | cache: 'npm' 22 | - name: Install dependencies 23 | run: npm install --ignore-scripts --no-audit --no-fund 24 | - name: Unit tests 25 | run: npm test 26 | - name: Check types 27 | run: npm run check 28 | - name: Lint JS 29 | run: npx oxlint@latest -D perf 30 | - name: Build package 31 | run: npm run build 32 | env: 33 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 34 | - name: 'Publint' 35 | run: 'npx --yes publint' 36 | - name: Upload coverage reports to Codecov 37 | uses: codecov/codecov-action@v4.0.1 38 | with: 39 | token: ${{ secrets.CODECOV_TOKEN }} 40 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | coverage 2 | dist 3 | node_modules 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Project Wallace 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # format-css 2 | 3 | Fast, small, zero-config library to format CSS with basic [rules](#formatting-rules). The design goal is to format CSS in a way that makes it easy to inspect. Bundle size and runtime speed are more important than versatility and extensibility. 4 | 5 | ## Example output 6 | 7 | 8 | ```css 9 | /* TURN THIS: */ 10 | 11 | @layer base.normalize{@media (dynamic-range:high) or (color-gamut:p3){@supports (color:color(display-p3 0 0 0)){:where(html){--link:color(display-p3 .1 .4 1);--link-visited:color(display-p3 .6 .2 1)}}}}@layer base.normalize{:where(html) :where(dialog){background-color:var(--surface-1)}} 12 | 13 | /* INTO THIS: */ 14 | 15 | @layer base.normalize { 16 | @media (dynamic-range: high) or (color-gamut: p3) { 17 | @supports (color: color(display-p3 0 0 0)) { 18 | :where(html) { 19 | --link: color(display-p3 .1 .4 1); 20 | --link-visited: color(display-p3 .6 .2 1); 21 | } 22 | } 23 | } 24 | } 25 | 26 | @layer base.normalize { 27 | :where(html) :where(dialog) { 28 | background-color: var(--surface-1); 29 | } 30 | } 31 | 32 | /* AND BACK AGAIN! */ 33 | ``` 34 | 35 | ## Installation 36 | 37 | ``` 38 | npm install @projectwallace/format-css 39 | ``` 40 | 41 | ## Usage 42 | 43 | ```js 44 | import { format } from "@projectwallace/format-css"; 45 | 46 | let old_css = "/* Your old CSS here */"; 47 | let new_css = format(old_css); 48 | ``` 49 | 50 | Need more examples? 51 | 52 | - [StackBlitz example using CommonJS](https://stackblitz.com/edit/stackblitz-starters-phchci?file=index.js) 53 | - [StackBlitz example using ES Modules](https://stackblitz.com/edit/stackblitz-starters-hrhsed?file=index.js) 54 | 55 | ## Formatting rules 56 | 57 | 1. Every **AtRule** starts on a new line 58 | 1. Every **Rule** starts on a new line 59 | 1. Every **Selector** starts on a new line 60 | 1. A comma is placed after every **Selector** that’s not the last in the **SelectorList** 61 | 1. Every **Block** is indented with 1 tab more than the previous indentation level 62 | 1. Every **Declaration** starts on a new line 63 | 1. Every **Declaration** ends with a semicolon (;) 64 | 1. An empty line is placed after a **Block** unless it’s the last in the surrounding **Block** 65 | 1. Multiline tokens like **Selectors, Values, etc.** are rendered on a single line 66 | 1. Unknown syntax is rendered as-is, with multi-line formatting kept intact 67 | 68 | ## Minify CSS 69 | 70 | This package also exposes a minifier function since minifying CSS follows many of the same rules as formatting. 71 | 72 | ```js 73 | import { format, minify } from "@projectwallace/format-css"; 74 | 75 | let minified = minify("a {}"); 76 | 77 | // which is an alias for 78 | 79 | let formatted_mini = format("a {}", { minify: true }); 80 | ``` 81 | 82 | ## Tab size 83 | 84 | For cases where you cannot control the tab size with CSS there is an option to override the default tabbed indentation with N spaces. 85 | 86 | ```js 87 | import { format } from "@projectwallace/format-css"; 88 | 89 | let formatted = format("a { color: red; }", { 90 | tab_size: 2 91 | }); 92 | ``` 93 | 94 | ## Acknowledgements 95 | 96 | - Thanks to [CSSTree](https://github.com/csstree/csstree) for providing the necessary parser and the interfaces for our CSS Types (the **bold** elements in the list above) 97 | 98 | ## Related projects 99 | 100 | - [Format CSS online](https://www.projectwallace.com/prettify-css?utm_source=github&utm_medium=wallace_format_css_related_projects) - See this formatter in action online! 101 | - [Minify CSS online](https://www.projectwallace.com/minify-css?utm_source=github&utm_medium=wallace_format_css_related_projects) - See this minifier in action online! 102 | - [CSS Analyzer](https://github.com/projectwallace/css-analyzer) - The best CSS analyzer that powers all analysis on [projectwallace.com](https://www.projectwallace.com?utm_source=github&utm_medium=wallace_format_css_related_projects) 103 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | // @ts-expect-error Typing of css-tree is incomplete 2 | import parse from 'css-tree/parser' 3 | 4 | const SPACE = ' ' 5 | const EMPTY_STRING = '' 6 | const COLON = ':' 7 | const SEMICOLON = ';' 8 | const QUOTE = '"' 9 | const OPEN_PARENTHESES = '(' 10 | const CLOSE_PARENTHESES = ')' 11 | const OPEN_BRACKET = '[' 12 | const CLOSE_BRACKET = ']' 13 | const OPEN_BRACE = '{' 14 | const CLOSE_BRACE = '}' 15 | const EMPTY_BLOCK = '{}' 16 | const COMMA = ',' 17 | const TYPE_ATRULE = 'Atrule' 18 | const TYPE_RULE = 'Rule' 19 | const TYPE_BLOCK = 'Block' 20 | const TYPE_SELECTORLIST = 'SelectorList' 21 | const TYPE_SELECTOR = 'Selector' 22 | const TYPE_DECLARATION = 'Declaration' 23 | const TYPE_OPERATOR = 'Operator' 24 | 25 | /** @param {string} str */ 26 | function lowercase(str) { 27 | // Only create new strings in memory if we need to 28 | if (/[A-Z]/.test(str)) { 29 | return str.toLowerCase() 30 | } 31 | return str 32 | } 33 | 34 | /** 35 | * @typedef {Object} Options 36 | * @property {boolean} [minify] Whether to minify the CSS or keep it formatted 37 | * @property {number} [tab_size] Tell the formatter to use N spaces instead of tabs 38 | * 39 | * Format a string of CSS using some simple rules 40 | * @param {string} css The original CSS 41 | * @param {Options} options 42 | * @returns {string} The formatted CSS 43 | */ 44 | export function format(css, { 45 | minify = false, 46 | tab_size = undefined, 47 | } = Object.create(null)) { 48 | 49 | if (tab_size !== undefined && Number(tab_size) < 1) { 50 | throw new TypeError('tab_size must be a number greater than 0') 51 | } 52 | 53 | /** @type {number[]} */ 54 | let comments = [] 55 | 56 | /** @type {import('css-tree').CssNode} */ 57 | let ast = parse(css, { 58 | positions: true, 59 | parseAtrulePrelude: false, 60 | parseCustomProperty: true, 61 | parseValue: true, 62 | onComment: (/** @type {string} */ _, /** @type {import('css-tree').CssLocation} */ position) => { 63 | comments.push(position.start.offset, position.end.offset) 64 | } 65 | }) 66 | 67 | const NEWLINE = minify ? EMPTY_STRING : '\n' 68 | const OPTIONAL_SPACE = minify ? EMPTY_STRING : SPACE 69 | const LAST_SEMICOLON = minify ? EMPTY_STRING : SEMICOLON 70 | 71 | let indent_level = 0 72 | 73 | /** 74 | * Indent a string 75 | * @param {number} size 76 | * @returns {string} A string with [size] tabs/spaces 77 | */ 78 | function indent(size) { 79 | if (minify) return EMPTY_STRING 80 | 81 | if (tab_size) { 82 | return SPACE.repeat(tab_size * size) 83 | } 84 | 85 | return '\t'.repeat(size) 86 | } 87 | 88 | /** @param {import('css-tree').CssNode} node */ 89 | function substr(node) { 90 | let loc = node.loc 91 | // If the node has no location, return an empty string 92 | // This is necessary for space toggles 93 | if (!loc) return EMPTY_STRING 94 | return css.slice(loc.start.offset, loc.end.offset) 95 | } 96 | 97 | /** @param {import('css-tree').CssNode} node */ 98 | function start_offset(node) { 99 | let loc = /** @type {import('css-tree').CssLocation} */(node.loc) 100 | return loc.start.offset 101 | } 102 | 103 | /** @param {import('css-tree').CssNode} node */ 104 | function end_offset(node) { 105 | let loc = /** @type {import('css-tree').CssLocation} */(node.loc) 106 | return loc.end.offset 107 | } 108 | 109 | /** 110 | * Get a comment from the CSS string after the first offset and before the second offset 111 | * @param {number | undefined} after After which offset to look for comments 112 | * @param {number | undefined} before Before which offset to look for comments 113 | * @returns {string | undefined} The comment string, if found 114 | */ 115 | function print_comment(after, before) { 116 | if (minify || after === undefined || before === undefined) { 117 | return EMPTY_STRING 118 | } 119 | 120 | let buffer = '' 121 | for (let i = 0; i < comments.length; i += 2) { 122 | // Check that the comment is within the range 123 | let start = comments[i] 124 | if (start === undefined || start < after) continue 125 | let end = comments[i + 1] 126 | if (end === undefined || end > before) break 127 | 128 | // Special case for comments that follow another comment: 129 | if (buffer.length > 0) { 130 | buffer += NEWLINE + indent(indent_level) 131 | } 132 | buffer += css.slice(start, end) 133 | } 134 | return buffer 135 | } 136 | 137 | /** @param {import('css-tree').Rule} node */ 138 | function print_rule(node) { 139 | let buffer 140 | let prelude = node.prelude 141 | let block = node.block 142 | 143 | if (prelude.type === TYPE_SELECTORLIST) { 144 | buffer = print_selectorlist(prelude) 145 | } 146 | 147 | let comment = print_comment(end_offset(prelude), start_offset(block)) 148 | if (comment) { 149 | buffer += NEWLINE + indent(indent_level) + comment 150 | } 151 | 152 | if (block.type === TYPE_BLOCK) { 153 | buffer += print_block(block) 154 | } 155 | 156 | return buffer 157 | } 158 | 159 | /** @param {import('css-tree').SelectorList} node */ 160 | function print_selectorlist(node) { 161 | let buffer = EMPTY_STRING 162 | 163 | node.children.forEach((selector, item) => { 164 | if (selector.type === TYPE_SELECTOR) { 165 | buffer += indent(indent_level) + print_simple_selector(selector) 166 | } 167 | 168 | if (item.next !== null) { 169 | buffer += COMMA + NEWLINE 170 | } 171 | 172 | let end = item.next !== null ? start_offset(item.next.data) : end_offset(node) 173 | let comment = print_comment(end_offset(selector), end) 174 | if (comment) { 175 | buffer += indent(indent_level) + comment + NEWLINE 176 | } 177 | }) 178 | 179 | return buffer 180 | } 181 | 182 | /** @param {import('css-tree').Selector|import('css-tree').PseudoClassSelector|import('css-tree').PseudoElementSelector} node */ 183 | function print_simple_selector(node) { 184 | let buffer = EMPTY_STRING 185 | let children = node.children || [] 186 | 187 | children.forEach((child) => { 188 | switch (child.type) { 189 | case 'TypeSelector': { 190 | buffer += lowercase(child.name) 191 | break 192 | } 193 | case 'Combinator': { 194 | // putting spaces around `child.name` (+ > ~ or ' '), unless the combinator is ' ' 195 | buffer += SPACE 196 | 197 | if (child.name !== ' ') { 198 | buffer += child.name + SPACE 199 | } 200 | break 201 | } 202 | case 'PseudoClassSelector': 203 | case 'PseudoElementSelector': { 204 | buffer += COLON 205 | 206 | // Special case for `:before` and `:after` which were used in CSS2 and are usually minified 207 | // as `:before` and `:after`, but we want to print them as `::before` and `::after` 208 | let pseudo = lowercase(child.name) 209 | 210 | if (pseudo === 'before' || pseudo === 'after' || child.type === 'PseudoElementSelector') { 211 | buffer += COLON 212 | } 213 | 214 | buffer += pseudo 215 | 216 | if (child.children) { 217 | buffer += OPEN_PARENTHESES + print_simple_selector(child) + CLOSE_PARENTHESES 218 | } 219 | break 220 | } 221 | case TYPE_SELECTORLIST: { 222 | child.children.forEach((selector_list_item, item) => { 223 | if (selector_list_item.type === TYPE_SELECTOR) { 224 | buffer += print_simple_selector(selector_list_item) 225 | } 226 | 227 | if (item.next && item.next.data.type === TYPE_SELECTOR) { 228 | buffer += COMMA + OPTIONAL_SPACE 229 | } 230 | }) 231 | break 232 | } 233 | case 'Nth': { 234 | let nth = child.nth 235 | if (nth) { 236 | if (nth.type === 'AnPlusB') { 237 | let a = nth.a 238 | let b = nth.b 239 | 240 | if (a !== null) { 241 | buffer += a + 'n' 242 | } 243 | 244 | if (a !== null && b !== null) { 245 | buffer += SPACE 246 | } 247 | 248 | if (b !== null) { 249 | // When (1n + x) but not (1n - x) 250 | if (a !== null && !b.startsWith('-')) { 251 | buffer += '+' + SPACE 252 | } 253 | 254 | buffer += b 255 | } 256 | } else { 257 | // For odd/even or maybe other identifiers later on 258 | buffer += substr(nth) 259 | } 260 | } 261 | 262 | if (child.selector !== null) { 263 | // `of .selector` 264 | // @ts-expect-error Typing of child.selector is SelectorList, which doesn't seem to be correct 265 | buffer += SPACE + 'of' + SPACE + print_simple_selector(child.selector) 266 | } 267 | break 268 | } 269 | case 'AttributeSelector': { 270 | buffer += OPEN_BRACKET 271 | buffer += child.name.name 272 | 273 | if (child.matcher && child.value) { 274 | buffer += child.matcher 275 | buffer += QUOTE 276 | 277 | if (child.value.type === 'String') { 278 | buffer += child.value.value 279 | } else if (child.value.type === 'Identifier') { 280 | buffer += child.value.name 281 | } 282 | buffer += QUOTE 283 | } 284 | 285 | if (child.flags) { 286 | buffer += SPACE + child.flags 287 | } 288 | 289 | buffer += CLOSE_BRACKET 290 | break 291 | } 292 | default: { 293 | buffer += substr(child) 294 | break 295 | } 296 | } 297 | }) 298 | 299 | return buffer 300 | } 301 | 302 | /** @param {import('css-tree').Block} node */ 303 | function print_block(node) { 304 | let children = node.children 305 | let buffer = OPTIONAL_SPACE 306 | 307 | if (children.isEmpty) { 308 | // Check if the block maybe contains comments 309 | let comment = print_comment(start_offset(node), end_offset(node)) 310 | if (comment) { 311 | buffer += OPEN_BRACE + NEWLINE 312 | buffer += indent(indent_level + 1) + comment 313 | buffer += NEWLINE + indent(indent_level) + CLOSE_BRACE 314 | return buffer 315 | } 316 | return buffer + EMPTY_BLOCK 317 | } 318 | 319 | buffer += OPEN_BRACE + NEWLINE 320 | 321 | indent_level++ 322 | 323 | let opening_comment = print_comment(start_offset(node), start_offset(/** @type {import('css-tree').CssNode} */(children.first))) 324 | if (opening_comment) { 325 | buffer += indent(indent_level) + opening_comment + NEWLINE 326 | } 327 | 328 | children.forEach((child, item) => { 329 | if (item.prev !== null) { 330 | let comment = print_comment(end_offset(item.prev.data), start_offset(child)) 331 | if (comment) { 332 | buffer += indent(indent_level) + comment + NEWLINE 333 | } 334 | } 335 | 336 | if (child.type === TYPE_DECLARATION) { 337 | buffer += print_declaration(child) 338 | 339 | if (item.next === null) { 340 | buffer += LAST_SEMICOLON 341 | } else { 342 | buffer += SEMICOLON 343 | } 344 | } else { 345 | if (item.prev !== null && item.prev.data.type === TYPE_DECLARATION) { 346 | buffer += NEWLINE 347 | } 348 | 349 | if (child.type === TYPE_RULE) { 350 | buffer += print_rule(child) 351 | } else if (child.type === TYPE_ATRULE) { 352 | buffer += print_atrule(child) 353 | } else { 354 | buffer += print_unknown(child, indent_level) 355 | } 356 | } 357 | 358 | if (item.next !== null) { 359 | buffer += NEWLINE 360 | 361 | if (child.type !== TYPE_DECLARATION) { 362 | buffer += NEWLINE 363 | } 364 | } 365 | }) 366 | 367 | let closing_comment = print_comment(end_offset(/** @type {import('css-tree').CssNode} */(children.last)), end_offset(node)) 368 | if (closing_comment) { 369 | buffer += NEWLINE + indent(indent_level) + closing_comment 370 | } 371 | 372 | indent_level-- 373 | buffer += NEWLINE + indent(indent_level) + CLOSE_BRACE 374 | 375 | return buffer 376 | } 377 | 378 | /** @param {import('css-tree').Atrule} node */ 379 | function print_atrule(node) { 380 | let buffer = indent(indent_level) + '@' 381 | let prelude = node.prelude 382 | let block = node.block 383 | buffer += lowercase(node.name) 384 | 385 | // @font-face and anonymous @layer have no prelude 386 | if (prelude !== null) { 387 | buffer += SPACE + print_prelude(prelude) 388 | } 389 | 390 | if (block === null) { 391 | // `@import url(style.css);` has no block, neither does `@layer layer1;` 392 | buffer += SEMICOLON 393 | } else if (block.type === TYPE_BLOCK) { 394 | buffer += print_block(block) 395 | } 396 | 397 | return buffer 398 | } 399 | 400 | /** 401 | * Pretty-printing atrule preludes takes an insane amount of rules, 402 | * so we're opting for a couple of 'good-enough' string replacements 403 | * here to force some nice formatting. 404 | * Should be OK perf-wise, since the amount of atrules in most 405 | * stylesheets are limited, so this won't be called too often. 406 | * @param {import('css-tree').AtrulePrelude | import('css-tree').Raw} node 407 | */ 408 | function print_prelude(node) { 409 | let buffer = substr(node) 410 | 411 | return buffer 412 | .replace(/\s*([:,])/g, buffer.toLowerCase().includes('selector(') ? '$1' : '$1 ') // force whitespace after colon or comma, except inside `selector()` 413 | .replace(/\)([a-zA-Z])/g, ') $1') // force whitespace between closing parenthesis and following text (usually and|or) 414 | .replace(/\s*(=>|<=)\s*/g, ' $1 ') // force whitespace around => and <= 415 | .replace(/([^<>=\s])([<>])([^<>=\s])/g, `$1${OPTIONAL_SPACE}$2${OPTIONAL_SPACE}$3`) // add spacing around < or > except when it's part of <=, >=, => 416 | .replace(/\s+/g, OPTIONAL_SPACE) // collapse multiple whitespaces into one 417 | .replace(/calc\(\s*([^()+\-*/]+)\s*([*/+-])\s*([^()+\-*/]+)\s*\)/g, (_, left, operator, right) => { 418 | // force required or optional whitespace around * and / in calc() 419 | let space = operator === '+' || operator === '-' ? SPACE : OPTIONAL_SPACE 420 | return `calc(${left.trim()}${space}${operator}${space}${right.trim()})` 421 | }) 422 | .replace(/selector|url|supports|layer\(/ig, (match) => lowercase(match)) // lowercase function names 423 | } 424 | 425 | /** @param {import('css-tree').Declaration} node */ 426 | function print_declaration(node) { 427 | let property = node.property 428 | 429 | // Lowercase the property, unless it's a custom property (starts with --) 430 | if (!(property.charCodeAt(0) === 45 && property.charCodeAt(1) === 45)) { 431 | // 45 == '-' 432 | property = lowercase(property) 433 | } 434 | 435 | let value = print_value(node.value) 436 | 437 | // Special case for `font` shorthand: remove whitespace around / 438 | if (property === 'font') { 439 | value = value.replace(/\s*\/\s*/, '/') 440 | } 441 | 442 | // Hacky: add a space in case of a `space toggle` during minification 443 | if (value === EMPTY_STRING && minify) { 444 | value += SPACE 445 | } 446 | 447 | if (node.important === true) { 448 | value += OPTIONAL_SPACE + '!important' 449 | } else if (typeof node.important === 'string') { 450 | value += OPTIONAL_SPACE + '!' + lowercase(node.important) 451 | } 452 | 453 | return indent(indent_level) + property + COLON + OPTIONAL_SPACE + value 454 | } 455 | 456 | /** @param {import('css-tree').List} children */ 457 | function print_list(children) { 458 | let buffer = EMPTY_STRING 459 | 460 | children.forEach((node, item) => { 461 | if (node.type === 'Identifier') { 462 | buffer += node.name 463 | } else if (node.type === 'Function') { 464 | buffer += lowercase(node.name) + OPEN_PARENTHESES + print_list(node.children) + CLOSE_PARENTHESES 465 | } else if (node.type === 'Dimension') { 466 | buffer += node.value + lowercase(node.unit) 467 | } else if (node.type === 'Value') { 468 | // Values can be inside var() as fallback 469 | // var(--prop, VALUE) 470 | buffer += print_value(node) 471 | } else if (node.type === TYPE_OPERATOR) { 472 | buffer += print_operator(node) 473 | } else if (node.type === 'Parentheses') { 474 | buffer += OPEN_PARENTHESES + print_list(node.children) + CLOSE_PARENTHESES 475 | } else if (node.type === 'Url') { 476 | buffer += 'url(' + QUOTE + node.value + QUOTE + CLOSE_PARENTHESES 477 | } else { 478 | buffer += substr(node) 479 | } 480 | 481 | // Add space after the item coming after an operator 482 | if (node.type !== TYPE_OPERATOR) { 483 | if (item.next !== null) { 484 | if (item.next.data.type !== TYPE_OPERATOR) { 485 | buffer += SPACE 486 | } 487 | } 488 | } 489 | }) 490 | 491 | return buffer 492 | } 493 | 494 | /** @param {import('css-tree').Operator} node */ 495 | function print_operator(node) { 496 | let buffer = EMPTY_STRING 497 | // https://developer.mozilla.org/en-US/docs/Web/CSS/calc#notes 498 | // The + and - operators must be surrounded by whitespace 499 | // Whitespace around other operators is optional 500 | 501 | // Trim the operator because CSSTree adds whitespace around it 502 | let operator = node.value.trim() 503 | let code = operator.charCodeAt(0) 504 | 505 | if (code === 43 || code === 45) { 506 | // + or - 507 | // Add required space before + and - operators 508 | buffer += SPACE 509 | } else if (code !== 44) { 510 | // , 511 | // Add optional space before operator 512 | buffer += OPTIONAL_SPACE 513 | } 514 | 515 | // FINALLY, render the operator 516 | buffer += operator 517 | 518 | if (code === 43 || code === 45) { 519 | // + or - 520 | // Add required space after + and - operators 521 | buffer += SPACE 522 | } else { 523 | // Add optional space after other operators (like *, /, and ,) 524 | buffer += OPTIONAL_SPACE 525 | } 526 | 527 | return buffer 528 | } 529 | 530 | /** @param {import('css-tree').Value | import('css-tree').Raw} node */ 531 | function print_value(node) { 532 | if (node.type === 'Raw') { 533 | return print_unknown(node, 0) 534 | } 535 | 536 | return print_list(node.children) 537 | } 538 | 539 | /** 540 | * @param {import('css-tree').CssNode} node 541 | * @param {number} indent_level 542 | * @returns {string} A formatted unknown CSS string 543 | */ 544 | function print_unknown(node, indent_level) { 545 | return indent(indent_level) + substr(node).trim() 546 | } 547 | 548 | /** @type {import('css-tree').List} */ 549 | // @ts-expect-error Property 'children' does not exist on type 'AnPlusB', but we're never using that 550 | let children = ast.children 551 | let buffer = EMPTY_STRING 552 | 553 | if (children.first) { 554 | let opening_comment = print_comment(0, start_offset(children.first)) 555 | if (opening_comment) { 556 | buffer += opening_comment + NEWLINE 557 | } 558 | 559 | children.forEach((child, item) => { 560 | if (child.type === TYPE_RULE) { 561 | buffer += print_rule(child) 562 | } else if (child.type === TYPE_ATRULE) { 563 | buffer += print_atrule(child) 564 | } else { 565 | buffer += print_unknown(child, indent_level) 566 | } 567 | 568 | if (item.next !== null) { 569 | buffer += NEWLINE 570 | 571 | let comment = print_comment(end_offset(child), start_offset(item.next.data)) 572 | if (comment) { 573 | buffer += indent(indent_level) + comment 574 | } 575 | 576 | buffer += NEWLINE 577 | } 578 | }) 579 | 580 | let closing_comment = print_comment(end_offset(/** @type {import('css-tree').CssNode} */(children.last)), end_offset(ast)) 581 | if (closing_comment) { 582 | buffer += NEWLINE + closing_comment 583 | } 584 | } else { 585 | buffer += print_comment(0, end_offset(ast)) 586 | } 587 | 588 | return buffer 589 | } 590 | 591 | /** 592 | * Minify a string of CSS 593 | * @param {string} css The original CSS 594 | * @returns {string} The minified CSS 595 | */ 596 | export function minify(css) { 597 | return format(css, { minify: true }) 598 | } 599 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@projectwallace/format-css", 3 | "version": "2.1.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@projectwallace/format-css", 9 | "version": "2.1.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "css-tree": "^3.0.1" 13 | }, 14 | "devDependencies": { 15 | "@codecov/vite-plugin": "^1.9.0", 16 | "@types/css-tree": "^2.3.10", 17 | "c8": "^10.1.3", 18 | "prettier": "^3.5.3", 19 | "typescript": "^5.8.3", 20 | "uvu": "^0.5.6", 21 | "vite": "^6.2.6", 22 | "vite-plugin-dts": "^4.5.3" 23 | }, 24 | "engines": { 25 | "node": ">=18.0.0" 26 | } 27 | }, 28 | "node_modules/@actions/core": { 29 | "version": "1.11.1", 30 | "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", 31 | "integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==", 32 | "dev": true, 33 | "license": "MIT", 34 | "dependencies": { 35 | "@actions/exec": "^1.1.1", 36 | "@actions/http-client": "^2.0.1" 37 | } 38 | }, 39 | "node_modules/@actions/exec": { 40 | "version": "1.1.1", 41 | "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", 42 | "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", 43 | "dev": true, 44 | "license": "MIT", 45 | "dependencies": { 46 | "@actions/io": "^1.0.1" 47 | } 48 | }, 49 | "node_modules/@actions/github": { 50 | "version": "6.0.0", 51 | "resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz", 52 | "integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==", 53 | "dev": true, 54 | "license": "MIT", 55 | "dependencies": { 56 | "@actions/http-client": "^2.2.0", 57 | "@octokit/core": "^5.0.1", 58 | "@octokit/plugin-paginate-rest": "^9.0.0", 59 | "@octokit/plugin-rest-endpoint-methods": "^10.0.0" 60 | } 61 | }, 62 | "node_modules/@actions/http-client": { 63 | "version": "2.2.3", 64 | "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz", 65 | "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", 66 | "dev": true, 67 | "license": "MIT", 68 | "dependencies": { 69 | "tunnel": "^0.0.6", 70 | "undici": "^5.25.4" 71 | } 72 | }, 73 | "node_modules/@actions/io": { 74 | "version": "1.1.3", 75 | "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", 76 | "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==", 77 | "dev": true, 78 | "license": "MIT" 79 | }, 80 | "node_modules/@babel/helper-string-parser": { 81 | "version": "7.25.9", 82 | "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", 83 | "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", 84 | "dev": true, 85 | "license": "MIT", 86 | "engines": { 87 | "node": ">=6.9.0" 88 | } 89 | }, 90 | "node_modules/@babel/helper-validator-identifier": { 91 | "version": "7.25.9", 92 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", 93 | "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", 94 | "dev": true, 95 | "license": "MIT", 96 | "engines": { 97 | "node": ">=6.9.0" 98 | } 99 | }, 100 | "node_modules/@babel/parser": { 101 | "version": "7.27.0", 102 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", 103 | "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", 104 | "dev": true, 105 | "license": "MIT", 106 | "dependencies": { 107 | "@babel/types": "^7.27.0" 108 | }, 109 | "bin": { 110 | "parser": "bin/babel-parser.js" 111 | }, 112 | "engines": { 113 | "node": ">=6.0.0" 114 | } 115 | }, 116 | "node_modules/@babel/types": { 117 | "version": "7.27.0", 118 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", 119 | "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", 120 | "dev": true, 121 | "license": "MIT", 122 | "dependencies": { 123 | "@babel/helper-string-parser": "^7.25.9", 124 | "@babel/helper-validator-identifier": "^7.25.9" 125 | }, 126 | "engines": { 127 | "node": ">=6.9.0" 128 | } 129 | }, 130 | "node_modules/@bcoe/v8-coverage": { 131 | "version": "1.0.2", 132 | "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", 133 | "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==", 134 | "dev": true, 135 | "license": "MIT", 136 | "engines": { 137 | "node": ">=18" 138 | } 139 | }, 140 | "node_modules/@codecov/bundler-plugin-core": { 141 | "version": "1.9.0", 142 | "resolved": "https://registry.npmjs.org/@codecov/bundler-plugin-core/-/bundler-plugin-core-1.9.0.tgz", 143 | "integrity": "sha512-UB0I5haL0gnF4ei46wxNo7ptCHqFAh3PnmcLLeXRb2zV7HeobOF8WRjOW/PwrXAphPS/6bL7PDUmh3ruVObGtg==", 144 | "dev": true, 145 | "license": "MIT", 146 | "dependencies": { 147 | "@actions/core": "^1.10.1", 148 | "@actions/github": "^6.0.0", 149 | "chalk": "4.1.2", 150 | "semver": "^7.5.4", 151 | "unplugin": "^1.10.1", 152 | "zod": "^3.22.4" 153 | }, 154 | "engines": { 155 | "node": ">=18.0.0" 156 | } 157 | }, 158 | "node_modules/@codecov/vite-plugin": { 159 | "version": "1.9.0", 160 | "resolved": "https://registry.npmjs.org/@codecov/vite-plugin/-/vite-plugin-1.9.0.tgz", 161 | "integrity": "sha512-5+CxUGN0Rxr5F6xYqrKwug3NXTlNVBEZcI9caOCjlpErt7p2lp7J/6Qo+GRjmaVkXErnNMiyhjzXRB6rLNAjfg==", 162 | "dev": true, 163 | "license": "MIT", 164 | "dependencies": { 165 | "@codecov/bundler-plugin-core": "^1.9.0", 166 | "unplugin": "^1.10.1" 167 | }, 168 | "engines": { 169 | "node": ">=18.0.0" 170 | }, 171 | "peerDependencies": { 172 | "vite": "4.x || 5.x || 6.x" 173 | } 174 | }, 175 | "node_modules/@esbuild/aix-ppc64": { 176 | "version": "0.25.2", 177 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz", 178 | "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==", 179 | "cpu": [ 180 | "ppc64" 181 | ], 182 | "dev": true, 183 | "license": "MIT", 184 | "optional": true, 185 | "os": [ 186 | "aix" 187 | ], 188 | "engines": { 189 | "node": ">=18" 190 | } 191 | }, 192 | "node_modules/@esbuild/android-arm": { 193 | "version": "0.25.2", 194 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz", 195 | "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==", 196 | "cpu": [ 197 | "arm" 198 | ], 199 | "dev": true, 200 | "license": "MIT", 201 | "optional": true, 202 | "os": [ 203 | "android" 204 | ], 205 | "engines": { 206 | "node": ">=18" 207 | } 208 | }, 209 | "node_modules/@esbuild/android-arm64": { 210 | "version": "0.25.2", 211 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz", 212 | "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==", 213 | "cpu": [ 214 | "arm64" 215 | ], 216 | "dev": true, 217 | "license": "MIT", 218 | "optional": true, 219 | "os": [ 220 | "android" 221 | ], 222 | "engines": { 223 | "node": ">=18" 224 | } 225 | }, 226 | "node_modules/@esbuild/android-x64": { 227 | "version": "0.25.2", 228 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz", 229 | "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==", 230 | "cpu": [ 231 | "x64" 232 | ], 233 | "dev": true, 234 | "license": "MIT", 235 | "optional": true, 236 | "os": [ 237 | "android" 238 | ], 239 | "engines": { 240 | "node": ">=18" 241 | } 242 | }, 243 | "node_modules/@esbuild/darwin-arm64": { 244 | "version": "0.25.2", 245 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz", 246 | "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==", 247 | "cpu": [ 248 | "arm64" 249 | ], 250 | "dev": true, 251 | "license": "MIT", 252 | "optional": true, 253 | "os": [ 254 | "darwin" 255 | ], 256 | "engines": { 257 | "node": ">=18" 258 | } 259 | }, 260 | "node_modules/@esbuild/darwin-x64": { 261 | "version": "0.25.2", 262 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz", 263 | "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==", 264 | "cpu": [ 265 | "x64" 266 | ], 267 | "dev": true, 268 | "license": "MIT", 269 | "optional": true, 270 | "os": [ 271 | "darwin" 272 | ], 273 | "engines": { 274 | "node": ">=18" 275 | } 276 | }, 277 | "node_modules/@esbuild/freebsd-arm64": { 278 | "version": "0.25.2", 279 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz", 280 | "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==", 281 | "cpu": [ 282 | "arm64" 283 | ], 284 | "dev": true, 285 | "license": "MIT", 286 | "optional": true, 287 | "os": [ 288 | "freebsd" 289 | ], 290 | "engines": { 291 | "node": ">=18" 292 | } 293 | }, 294 | "node_modules/@esbuild/freebsd-x64": { 295 | "version": "0.25.2", 296 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz", 297 | "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==", 298 | "cpu": [ 299 | "x64" 300 | ], 301 | "dev": true, 302 | "license": "MIT", 303 | "optional": true, 304 | "os": [ 305 | "freebsd" 306 | ], 307 | "engines": { 308 | "node": ">=18" 309 | } 310 | }, 311 | "node_modules/@esbuild/linux-arm": { 312 | "version": "0.25.2", 313 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz", 314 | "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==", 315 | "cpu": [ 316 | "arm" 317 | ], 318 | "dev": true, 319 | "license": "MIT", 320 | "optional": true, 321 | "os": [ 322 | "linux" 323 | ], 324 | "engines": { 325 | "node": ">=18" 326 | } 327 | }, 328 | "node_modules/@esbuild/linux-arm64": { 329 | "version": "0.25.2", 330 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz", 331 | "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==", 332 | "cpu": [ 333 | "arm64" 334 | ], 335 | "dev": true, 336 | "license": "MIT", 337 | "optional": true, 338 | "os": [ 339 | "linux" 340 | ], 341 | "engines": { 342 | "node": ">=18" 343 | } 344 | }, 345 | "node_modules/@esbuild/linux-ia32": { 346 | "version": "0.25.2", 347 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz", 348 | "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==", 349 | "cpu": [ 350 | "ia32" 351 | ], 352 | "dev": true, 353 | "license": "MIT", 354 | "optional": true, 355 | "os": [ 356 | "linux" 357 | ], 358 | "engines": { 359 | "node": ">=18" 360 | } 361 | }, 362 | "node_modules/@esbuild/linux-loong64": { 363 | "version": "0.25.2", 364 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz", 365 | "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==", 366 | "cpu": [ 367 | "loong64" 368 | ], 369 | "dev": true, 370 | "license": "MIT", 371 | "optional": true, 372 | "os": [ 373 | "linux" 374 | ], 375 | "engines": { 376 | "node": ">=18" 377 | } 378 | }, 379 | "node_modules/@esbuild/linux-mips64el": { 380 | "version": "0.25.2", 381 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz", 382 | "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==", 383 | "cpu": [ 384 | "mips64el" 385 | ], 386 | "dev": true, 387 | "license": "MIT", 388 | "optional": true, 389 | "os": [ 390 | "linux" 391 | ], 392 | "engines": { 393 | "node": ">=18" 394 | } 395 | }, 396 | "node_modules/@esbuild/linux-ppc64": { 397 | "version": "0.25.2", 398 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz", 399 | "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==", 400 | "cpu": [ 401 | "ppc64" 402 | ], 403 | "dev": true, 404 | "license": "MIT", 405 | "optional": true, 406 | "os": [ 407 | "linux" 408 | ], 409 | "engines": { 410 | "node": ">=18" 411 | } 412 | }, 413 | "node_modules/@esbuild/linux-riscv64": { 414 | "version": "0.25.2", 415 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz", 416 | "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==", 417 | "cpu": [ 418 | "riscv64" 419 | ], 420 | "dev": true, 421 | "license": "MIT", 422 | "optional": true, 423 | "os": [ 424 | "linux" 425 | ], 426 | "engines": { 427 | "node": ">=18" 428 | } 429 | }, 430 | "node_modules/@esbuild/linux-s390x": { 431 | "version": "0.25.2", 432 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz", 433 | "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==", 434 | "cpu": [ 435 | "s390x" 436 | ], 437 | "dev": true, 438 | "license": "MIT", 439 | "optional": true, 440 | "os": [ 441 | "linux" 442 | ], 443 | "engines": { 444 | "node": ">=18" 445 | } 446 | }, 447 | "node_modules/@esbuild/linux-x64": { 448 | "version": "0.25.2", 449 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz", 450 | "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==", 451 | "cpu": [ 452 | "x64" 453 | ], 454 | "dev": true, 455 | "license": "MIT", 456 | "optional": true, 457 | "os": [ 458 | "linux" 459 | ], 460 | "engines": { 461 | "node": ">=18" 462 | } 463 | }, 464 | "node_modules/@esbuild/netbsd-arm64": { 465 | "version": "0.25.2", 466 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz", 467 | "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==", 468 | "cpu": [ 469 | "arm64" 470 | ], 471 | "dev": true, 472 | "license": "MIT", 473 | "optional": true, 474 | "os": [ 475 | "netbsd" 476 | ], 477 | "engines": { 478 | "node": ">=18" 479 | } 480 | }, 481 | "node_modules/@esbuild/netbsd-x64": { 482 | "version": "0.25.2", 483 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz", 484 | "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==", 485 | "cpu": [ 486 | "x64" 487 | ], 488 | "dev": true, 489 | "license": "MIT", 490 | "optional": true, 491 | "os": [ 492 | "netbsd" 493 | ], 494 | "engines": { 495 | "node": ">=18" 496 | } 497 | }, 498 | "node_modules/@esbuild/openbsd-arm64": { 499 | "version": "0.25.2", 500 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz", 501 | "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==", 502 | "cpu": [ 503 | "arm64" 504 | ], 505 | "dev": true, 506 | "license": "MIT", 507 | "optional": true, 508 | "os": [ 509 | "openbsd" 510 | ], 511 | "engines": { 512 | "node": ">=18" 513 | } 514 | }, 515 | "node_modules/@esbuild/openbsd-x64": { 516 | "version": "0.25.2", 517 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz", 518 | "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==", 519 | "cpu": [ 520 | "x64" 521 | ], 522 | "dev": true, 523 | "license": "MIT", 524 | "optional": true, 525 | "os": [ 526 | "openbsd" 527 | ], 528 | "engines": { 529 | "node": ">=18" 530 | } 531 | }, 532 | "node_modules/@esbuild/sunos-x64": { 533 | "version": "0.25.2", 534 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz", 535 | "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==", 536 | "cpu": [ 537 | "x64" 538 | ], 539 | "dev": true, 540 | "license": "MIT", 541 | "optional": true, 542 | "os": [ 543 | "sunos" 544 | ], 545 | "engines": { 546 | "node": ">=18" 547 | } 548 | }, 549 | "node_modules/@esbuild/win32-arm64": { 550 | "version": "0.25.2", 551 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz", 552 | "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==", 553 | "cpu": [ 554 | "arm64" 555 | ], 556 | "dev": true, 557 | "license": "MIT", 558 | "optional": true, 559 | "os": [ 560 | "win32" 561 | ], 562 | "engines": { 563 | "node": ">=18" 564 | } 565 | }, 566 | "node_modules/@esbuild/win32-ia32": { 567 | "version": "0.25.2", 568 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz", 569 | "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==", 570 | "cpu": [ 571 | "ia32" 572 | ], 573 | "dev": true, 574 | "license": "MIT", 575 | "optional": true, 576 | "os": [ 577 | "win32" 578 | ], 579 | "engines": { 580 | "node": ">=18" 581 | } 582 | }, 583 | "node_modules/@esbuild/win32-x64": { 584 | "version": "0.25.2", 585 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz", 586 | "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==", 587 | "cpu": [ 588 | "x64" 589 | ], 590 | "dev": true, 591 | "license": "MIT", 592 | "optional": true, 593 | "os": [ 594 | "win32" 595 | ], 596 | "engines": { 597 | "node": ">=18" 598 | } 599 | }, 600 | "node_modules/@fastify/busboy": { 601 | "version": "2.1.1", 602 | "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", 603 | "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", 604 | "dev": true, 605 | "license": "MIT", 606 | "engines": { 607 | "node": ">=14" 608 | } 609 | }, 610 | "node_modules/@isaacs/cliui": { 611 | "version": "8.0.2", 612 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 613 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 614 | "dev": true, 615 | "license": "ISC", 616 | "dependencies": { 617 | "string-width": "^5.1.2", 618 | "string-width-cjs": "npm:string-width@^4.2.0", 619 | "strip-ansi": "^7.0.1", 620 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 621 | "wrap-ansi": "^8.1.0", 622 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 623 | }, 624 | "engines": { 625 | "node": ">=12" 626 | } 627 | }, 628 | "node_modules/@isaacs/cliui/node_modules/ansi-regex": { 629 | "version": "6.0.1", 630 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", 631 | "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", 632 | "dev": true, 633 | "license": "MIT", 634 | "engines": { 635 | "node": ">=12" 636 | }, 637 | "funding": { 638 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 639 | } 640 | }, 641 | "node_modules/@isaacs/cliui/node_modules/ansi-styles": { 642 | "version": "6.2.1", 643 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 644 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 645 | "dev": true, 646 | "license": "MIT", 647 | "engines": { 648 | "node": ">=12" 649 | }, 650 | "funding": { 651 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 652 | } 653 | }, 654 | "node_modules/@isaacs/cliui/node_modules/emoji-regex": { 655 | "version": "9.2.2", 656 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 657 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 658 | "dev": true, 659 | "license": "MIT" 660 | }, 661 | "node_modules/@isaacs/cliui/node_modules/string-width": { 662 | "version": "5.1.2", 663 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 664 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 665 | "dev": true, 666 | "license": "MIT", 667 | "dependencies": { 668 | "eastasianwidth": "^0.2.0", 669 | "emoji-regex": "^9.2.2", 670 | "strip-ansi": "^7.0.1" 671 | }, 672 | "engines": { 673 | "node": ">=12" 674 | }, 675 | "funding": { 676 | "url": "https://github.com/sponsors/sindresorhus" 677 | } 678 | }, 679 | "node_modules/@isaacs/cliui/node_modules/strip-ansi": { 680 | "version": "7.1.0", 681 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 682 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 683 | "dev": true, 684 | "license": "MIT", 685 | "dependencies": { 686 | "ansi-regex": "^6.0.1" 687 | }, 688 | "engines": { 689 | "node": ">=12" 690 | }, 691 | "funding": { 692 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 693 | } 694 | }, 695 | "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { 696 | "version": "8.1.0", 697 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 698 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 699 | "dev": true, 700 | "license": "MIT", 701 | "dependencies": { 702 | "ansi-styles": "^6.1.0", 703 | "string-width": "^5.0.1", 704 | "strip-ansi": "^7.0.1" 705 | }, 706 | "engines": { 707 | "node": ">=12" 708 | }, 709 | "funding": { 710 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 711 | } 712 | }, 713 | "node_modules/@istanbuljs/schema": { 714 | "version": "0.1.3", 715 | "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", 716 | "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", 717 | "dev": true, 718 | "license": "MIT", 719 | "engines": { 720 | "node": ">=8" 721 | } 722 | }, 723 | "node_modules/@jridgewell/resolve-uri": { 724 | "version": "3.1.2", 725 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 726 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 727 | "dev": true, 728 | "license": "MIT", 729 | "engines": { 730 | "node": ">=6.0.0" 731 | } 732 | }, 733 | "node_modules/@jridgewell/sourcemap-codec": { 734 | "version": "1.5.0", 735 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 736 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 737 | "dev": true, 738 | "license": "MIT" 739 | }, 740 | "node_modules/@jridgewell/trace-mapping": { 741 | "version": "0.3.25", 742 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 743 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 744 | "dev": true, 745 | "license": "MIT", 746 | "dependencies": { 747 | "@jridgewell/resolve-uri": "^3.1.0", 748 | "@jridgewell/sourcemap-codec": "^1.4.14" 749 | } 750 | }, 751 | "node_modules/@microsoft/api-extractor": { 752 | "version": "7.52.3", 753 | "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.52.3.tgz", 754 | "integrity": "sha512-QEs6l8h7p9eOSHrQ9NBBUZhUuq+j/2QKcRgigbSs2YQepKz8glvsqmsUOp+nvuaY60ps7KkpVVYQCj81WLoMVQ==", 755 | "dev": true, 756 | "license": "MIT", 757 | "dependencies": { 758 | "@microsoft/api-extractor-model": "7.30.5", 759 | "@microsoft/tsdoc": "~0.15.1", 760 | "@microsoft/tsdoc-config": "~0.17.1", 761 | "@rushstack/node-core-library": "5.13.0", 762 | "@rushstack/rig-package": "0.5.3", 763 | "@rushstack/terminal": "0.15.2", 764 | "@rushstack/ts-command-line": "4.23.7", 765 | "lodash": "~4.17.15", 766 | "minimatch": "~3.0.3", 767 | "resolve": "~1.22.1", 768 | "semver": "~7.5.4", 769 | "source-map": "~0.6.1", 770 | "typescript": "5.8.2" 771 | }, 772 | "bin": { 773 | "api-extractor": "bin/api-extractor" 774 | } 775 | }, 776 | "node_modules/@microsoft/api-extractor-model": { 777 | "version": "7.30.5", 778 | "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.30.5.tgz", 779 | "integrity": "sha512-0ic4rcbcDZHz833RaTZWTGu+NpNgrxVNjVaor0ZDUymfDFzjA/Uuk8hYziIUIOEOSTfmIQqyzVwlzxZxPe7tOA==", 780 | "dev": true, 781 | "license": "MIT", 782 | "dependencies": { 783 | "@microsoft/tsdoc": "~0.15.1", 784 | "@microsoft/tsdoc-config": "~0.17.1", 785 | "@rushstack/node-core-library": "5.13.0" 786 | } 787 | }, 788 | "node_modules/@microsoft/api-extractor/node_modules/minimatch": { 789 | "version": "3.0.8", 790 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", 791 | "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", 792 | "dev": true, 793 | "license": "ISC", 794 | "dependencies": { 795 | "brace-expansion": "^1.1.7" 796 | }, 797 | "engines": { 798 | "node": "*" 799 | } 800 | }, 801 | "node_modules/@microsoft/api-extractor/node_modules/semver": { 802 | "version": "7.5.4", 803 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", 804 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", 805 | "dev": true, 806 | "license": "ISC", 807 | "dependencies": { 808 | "lru-cache": "^6.0.0" 809 | }, 810 | "bin": { 811 | "semver": "bin/semver.js" 812 | }, 813 | "engines": { 814 | "node": ">=10" 815 | } 816 | }, 817 | "node_modules/@microsoft/api-extractor/node_modules/typescript": { 818 | "version": "5.8.2", 819 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", 820 | "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", 821 | "dev": true, 822 | "license": "Apache-2.0", 823 | "bin": { 824 | "tsc": "bin/tsc", 825 | "tsserver": "bin/tsserver" 826 | }, 827 | "engines": { 828 | "node": ">=14.17" 829 | } 830 | }, 831 | "node_modules/@microsoft/tsdoc": { 832 | "version": "0.15.1", 833 | "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.15.1.tgz", 834 | "integrity": "sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw==", 835 | "dev": true, 836 | "license": "MIT" 837 | }, 838 | "node_modules/@microsoft/tsdoc-config": { 839 | "version": "0.17.1", 840 | "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.17.1.tgz", 841 | "integrity": "sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw==", 842 | "dev": true, 843 | "license": "MIT", 844 | "dependencies": { 845 | "@microsoft/tsdoc": "0.15.1", 846 | "ajv": "~8.12.0", 847 | "jju": "~1.4.0", 848 | "resolve": "~1.22.2" 849 | } 850 | }, 851 | "node_modules/@octokit/auth-token": { 852 | "version": "4.0.0", 853 | "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", 854 | "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", 855 | "dev": true, 856 | "license": "MIT", 857 | "engines": { 858 | "node": ">= 18" 859 | } 860 | }, 861 | "node_modules/@octokit/core": { 862 | "version": "5.2.1", 863 | "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.1.tgz", 864 | "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", 865 | "dev": true, 866 | "license": "MIT", 867 | "dependencies": { 868 | "@octokit/auth-token": "^4.0.0", 869 | "@octokit/graphql": "^7.1.0", 870 | "@octokit/request": "^8.4.1", 871 | "@octokit/request-error": "^5.1.1", 872 | "@octokit/types": "^13.0.0", 873 | "before-after-hook": "^2.2.0", 874 | "universal-user-agent": "^6.0.0" 875 | }, 876 | "engines": { 877 | "node": ">= 18" 878 | } 879 | }, 880 | "node_modules/@octokit/endpoint": { 881 | "version": "9.0.6", 882 | "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.6.tgz", 883 | "integrity": "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==", 884 | "dev": true, 885 | "license": "MIT", 886 | "dependencies": { 887 | "@octokit/types": "^13.1.0", 888 | "universal-user-agent": "^6.0.0" 889 | }, 890 | "engines": { 891 | "node": ">= 18" 892 | } 893 | }, 894 | "node_modules/@octokit/graphql": { 895 | "version": "7.1.1", 896 | "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.1.tgz", 897 | "integrity": "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==", 898 | "dev": true, 899 | "license": "MIT", 900 | "dependencies": { 901 | "@octokit/request": "^8.4.1", 902 | "@octokit/types": "^13.0.0", 903 | "universal-user-agent": "^6.0.0" 904 | }, 905 | "engines": { 906 | "node": ">= 18" 907 | } 908 | }, 909 | "node_modules/@octokit/openapi-types": { 910 | "version": "24.2.0", 911 | "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", 912 | "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", 913 | "dev": true, 914 | "license": "MIT" 915 | }, 916 | "node_modules/@octokit/plugin-paginate-rest": { 917 | "version": "9.2.2", 918 | "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.2.tgz", 919 | "integrity": "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ==", 920 | "dev": true, 921 | "license": "MIT", 922 | "dependencies": { 923 | "@octokit/types": "^12.6.0" 924 | }, 925 | "engines": { 926 | "node": ">= 18" 927 | }, 928 | "peerDependencies": { 929 | "@octokit/core": "5" 930 | } 931 | }, 932 | "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { 933 | "version": "20.0.0", 934 | "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", 935 | "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", 936 | "dev": true, 937 | "license": "MIT" 938 | }, 939 | "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { 940 | "version": "12.6.0", 941 | "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", 942 | "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", 943 | "dev": true, 944 | "license": "MIT", 945 | "dependencies": { 946 | "@octokit/openapi-types": "^20.0.0" 947 | } 948 | }, 949 | "node_modules/@octokit/plugin-rest-endpoint-methods": { 950 | "version": "10.4.1", 951 | "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz", 952 | "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==", 953 | "dev": true, 954 | "license": "MIT", 955 | "dependencies": { 956 | "@octokit/types": "^12.6.0" 957 | }, 958 | "engines": { 959 | "node": ">= 18" 960 | }, 961 | "peerDependencies": { 962 | "@octokit/core": "5" 963 | } 964 | }, 965 | "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { 966 | "version": "20.0.0", 967 | "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", 968 | "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", 969 | "dev": true, 970 | "license": "MIT" 971 | }, 972 | "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { 973 | "version": "12.6.0", 974 | "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", 975 | "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", 976 | "dev": true, 977 | "license": "MIT", 978 | "dependencies": { 979 | "@octokit/openapi-types": "^20.0.0" 980 | } 981 | }, 982 | "node_modules/@octokit/request": { 983 | "version": "8.4.1", 984 | "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.1.tgz", 985 | "integrity": "sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==", 986 | "dev": true, 987 | "license": "MIT", 988 | "dependencies": { 989 | "@octokit/endpoint": "^9.0.6", 990 | "@octokit/request-error": "^5.1.1", 991 | "@octokit/types": "^13.1.0", 992 | "universal-user-agent": "^6.0.0" 993 | }, 994 | "engines": { 995 | "node": ">= 18" 996 | } 997 | }, 998 | "node_modules/@octokit/request-error": { 999 | "version": "5.1.1", 1000 | "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.1.tgz", 1001 | "integrity": "sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==", 1002 | "dev": true, 1003 | "license": "MIT", 1004 | "dependencies": { 1005 | "@octokit/types": "^13.1.0", 1006 | "deprecation": "^2.0.0", 1007 | "once": "^1.4.0" 1008 | }, 1009 | "engines": { 1010 | "node": ">= 18" 1011 | } 1012 | }, 1013 | "node_modules/@octokit/types": { 1014 | "version": "13.10.0", 1015 | "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", 1016 | "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", 1017 | "dev": true, 1018 | "license": "MIT", 1019 | "dependencies": { 1020 | "@octokit/openapi-types": "^24.2.0" 1021 | } 1022 | }, 1023 | "node_modules/@pkgjs/parseargs": { 1024 | "version": "0.11.0", 1025 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 1026 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 1027 | "dev": true, 1028 | "license": "MIT", 1029 | "optional": true, 1030 | "engines": { 1031 | "node": ">=14" 1032 | } 1033 | }, 1034 | "node_modules/@rollup/pluginutils": { 1035 | "version": "5.1.4", 1036 | "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz", 1037 | "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==", 1038 | "dev": true, 1039 | "license": "MIT", 1040 | "dependencies": { 1041 | "@types/estree": "^1.0.0", 1042 | "estree-walker": "^2.0.2", 1043 | "picomatch": "^4.0.2" 1044 | }, 1045 | "engines": { 1046 | "node": ">=14.0.0" 1047 | }, 1048 | "peerDependencies": { 1049 | "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" 1050 | }, 1051 | "peerDependenciesMeta": { 1052 | "rollup": { 1053 | "optional": true 1054 | } 1055 | } 1056 | }, 1057 | "node_modules/@rollup/rollup-android-arm-eabi": { 1058 | "version": "4.40.0", 1059 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.0.tgz", 1060 | "integrity": "sha512-+Fbls/diZ0RDerhE8kyC6hjADCXA1K4yVNlH0EYfd2XjyH0UGgzaQ8MlT0pCXAThfxv3QUAczHaL+qSv1E4/Cg==", 1061 | "cpu": [ 1062 | "arm" 1063 | ], 1064 | "dev": true, 1065 | "license": "MIT", 1066 | "optional": true, 1067 | "os": [ 1068 | "android" 1069 | ] 1070 | }, 1071 | "node_modules/@rollup/rollup-android-arm64": { 1072 | "version": "4.40.0", 1073 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.0.tgz", 1074 | "integrity": "sha512-PPA6aEEsTPRz+/4xxAmaoWDqh67N7wFbgFUJGMnanCFs0TV99M0M8QhhaSCks+n6EbQoFvLQgYOGXxlMGQe/6w==", 1075 | "cpu": [ 1076 | "arm64" 1077 | ], 1078 | "dev": true, 1079 | "license": "MIT", 1080 | "optional": true, 1081 | "os": [ 1082 | "android" 1083 | ] 1084 | }, 1085 | "node_modules/@rollup/rollup-darwin-arm64": { 1086 | "version": "4.40.0", 1087 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.0.tgz", 1088 | "integrity": "sha512-GwYOcOakYHdfnjjKwqpTGgn5a6cUX7+Ra2HeNj/GdXvO2VJOOXCiYYlRFU4CubFM67EhbmzLOmACKEfvp3J1kQ==", 1089 | "cpu": [ 1090 | "arm64" 1091 | ], 1092 | "dev": true, 1093 | "license": "MIT", 1094 | "optional": true, 1095 | "os": [ 1096 | "darwin" 1097 | ] 1098 | }, 1099 | "node_modules/@rollup/rollup-darwin-x64": { 1100 | "version": "4.40.0", 1101 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.0.tgz", 1102 | "integrity": "sha512-CoLEGJ+2eheqD9KBSxmma6ld01czS52Iw0e2qMZNpPDlf7Z9mj8xmMemxEucinev4LgHalDPczMyxzbq+Q+EtA==", 1103 | "cpu": [ 1104 | "x64" 1105 | ], 1106 | "dev": true, 1107 | "license": "MIT", 1108 | "optional": true, 1109 | "os": [ 1110 | "darwin" 1111 | ] 1112 | }, 1113 | "node_modules/@rollup/rollup-freebsd-arm64": { 1114 | "version": "4.40.0", 1115 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.0.tgz", 1116 | "integrity": "sha512-r7yGiS4HN/kibvESzmrOB/PxKMhPTlz+FcGvoUIKYoTyGd5toHp48g1uZy1o1xQvybwwpqpe010JrcGG2s5nkg==", 1117 | "cpu": [ 1118 | "arm64" 1119 | ], 1120 | "dev": true, 1121 | "license": "MIT", 1122 | "optional": true, 1123 | "os": [ 1124 | "freebsd" 1125 | ] 1126 | }, 1127 | "node_modules/@rollup/rollup-freebsd-x64": { 1128 | "version": "4.40.0", 1129 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.0.tgz", 1130 | "integrity": "sha512-mVDxzlf0oLzV3oZOr0SMJ0lSDd3xC4CmnWJ8Val8isp9jRGl5Dq//LLDSPFrasS7pSm6m5xAcKaw3sHXhBjoRw==", 1131 | "cpu": [ 1132 | "x64" 1133 | ], 1134 | "dev": true, 1135 | "license": "MIT", 1136 | "optional": true, 1137 | "os": [ 1138 | "freebsd" 1139 | ] 1140 | }, 1141 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 1142 | "version": "4.40.0", 1143 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.0.tgz", 1144 | "integrity": "sha512-y/qUMOpJxBMy8xCXD++jeu8t7kzjlOCkoxxajL58G62PJGBZVl/Gwpm7JK9+YvlB701rcQTzjUZ1JgUoPTnoQA==", 1145 | "cpu": [ 1146 | "arm" 1147 | ], 1148 | "dev": true, 1149 | "license": "MIT", 1150 | "optional": true, 1151 | "os": [ 1152 | "linux" 1153 | ] 1154 | }, 1155 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 1156 | "version": "4.40.0", 1157 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.0.tgz", 1158 | "integrity": "sha512-GoCsPibtVdJFPv/BOIvBKO/XmwZLwaNWdyD8TKlXuqp0veo2sHE+A/vpMQ5iSArRUz/uaoj4h5S6Pn0+PdhRjg==", 1159 | "cpu": [ 1160 | "arm" 1161 | ], 1162 | "dev": true, 1163 | "license": "MIT", 1164 | "optional": true, 1165 | "os": [ 1166 | "linux" 1167 | ] 1168 | }, 1169 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 1170 | "version": "4.40.0", 1171 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.0.tgz", 1172 | "integrity": "sha512-L5ZLphTjjAD9leJzSLI7rr8fNqJMlGDKlazW2tX4IUF9P7R5TMQPElpH82Q7eNIDQnQlAyiNVfRPfP2vM5Avvg==", 1173 | "cpu": [ 1174 | "arm64" 1175 | ], 1176 | "dev": true, 1177 | "license": "MIT", 1178 | "optional": true, 1179 | "os": [ 1180 | "linux" 1181 | ] 1182 | }, 1183 | "node_modules/@rollup/rollup-linux-arm64-musl": { 1184 | "version": "4.40.0", 1185 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.0.tgz", 1186 | "integrity": "sha512-ATZvCRGCDtv1Y4gpDIXsS+wfFeFuLwVxyUBSLawjgXK2tRE6fnsQEkE4csQQYWlBlsFztRzCnBvWVfcae/1qxQ==", 1187 | "cpu": [ 1188 | "arm64" 1189 | ], 1190 | "dev": true, 1191 | "license": "MIT", 1192 | "optional": true, 1193 | "os": [ 1194 | "linux" 1195 | ] 1196 | }, 1197 | "node_modules/@rollup/rollup-linux-loongarch64-gnu": { 1198 | "version": "4.40.0", 1199 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.0.tgz", 1200 | "integrity": "sha512-wG9e2XtIhd++QugU5MD9i7OnpaVb08ji3P1y/hNbxrQ3sYEelKJOq1UJ5dXczeo6Hj2rfDEL5GdtkMSVLa/AOg==", 1201 | "cpu": [ 1202 | "loong64" 1203 | ], 1204 | "dev": true, 1205 | "license": "MIT", 1206 | "optional": true, 1207 | "os": [ 1208 | "linux" 1209 | ] 1210 | }, 1211 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 1212 | "version": "4.40.0", 1213 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.0.tgz", 1214 | "integrity": "sha512-vgXfWmj0f3jAUvC7TZSU/m/cOE558ILWDzS7jBhiCAFpY2WEBn5jqgbqvmzlMjtp8KlLcBlXVD2mkTSEQE6Ixw==", 1215 | "cpu": [ 1216 | "ppc64" 1217 | ], 1218 | "dev": true, 1219 | "license": "MIT", 1220 | "optional": true, 1221 | "os": [ 1222 | "linux" 1223 | ] 1224 | }, 1225 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 1226 | "version": "4.40.0", 1227 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.0.tgz", 1228 | "integrity": "sha512-uJkYTugqtPZBS3Z136arevt/FsKTF/J9dEMTX/cwR7lsAW4bShzI2R0pJVw+hcBTWF4dxVckYh72Hk3/hWNKvA==", 1229 | "cpu": [ 1230 | "riscv64" 1231 | ], 1232 | "dev": true, 1233 | "license": "MIT", 1234 | "optional": true, 1235 | "os": [ 1236 | "linux" 1237 | ] 1238 | }, 1239 | "node_modules/@rollup/rollup-linux-riscv64-musl": { 1240 | "version": "4.40.0", 1241 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.0.tgz", 1242 | "integrity": "sha512-rKmSj6EXQRnhSkE22+WvrqOqRtk733x3p5sWpZilhmjnkHkpeCgWsFFo0dGnUGeA+OZjRl3+VYq+HyCOEuwcxQ==", 1243 | "cpu": [ 1244 | "riscv64" 1245 | ], 1246 | "dev": true, 1247 | "license": "MIT", 1248 | "optional": true, 1249 | "os": [ 1250 | "linux" 1251 | ] 1252 | }, 1253 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 1254 | "version": "4.40.0", 1255 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.0.tgz", 1256 | "integrity": "sha512-SpnYlAfKPOoVsQqmTFJ0usx0z84bzGOS9anAC0AZ3rdSo3snecihbhFTlJZ8XMwzqAcodjFU4+/SM311dqE5Sw==", 1257 | "cpu": [ 1258 | "s390x" 1259 | ], 1260 | "dev": true, 1261 | "license": "MIT", 1262 | "optional": true, 1263 | "os": [ 1264 | "linux" 1265 | ] 1266 | }, 1267 | "node_modules/@rollup/rollup-linux-x64-gnu": { 1268 | "version": "4.40.0", 1269 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.0.tgz", 1270 | "integrity": "sha512-RcDGMtqF9EFN8i2RYN2W+64CdHruJ5rPqrlYw+cgM3uOVPSsnAQps7cpjXe9be/yDp8UC7VLoCoKC8J3Kn2FkQ==", 1271 | "cpu": [ 1272 | "x64" 1273 | ], 1274 | "dev": true, 1275 | "license": "MIT", 1276 | "optional": true, 1277 | "os": [ 1278 | "linux" 1279 | ] 1280 | }, 1281 | "node_modules/@rollup/rollup-linux-x64-musl": { 1282 | "version": "4.40.0", 1283 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.0.tgz", 1284 | "integrity": "sha512-HZvjpiUmSNx5zFgwtQAV1GaGazT2RWvqeDi0hV+AtC8unqqDSsaFjPxfsO6qPtKRRg25SisACWnJ37Yio8ttaw==", 1285 | "cpu": [ 1286 | "x64" 1287 | ], 1288 | "dev": true, 1289 | "license": "MIT", 1290 | "optional": true, 1291 | "os": [ 1292 | "linux" 1293 | ] 1294 | }, 1295 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 1296 | "version": "4.40.0", 1297 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.0.tgz", 1298 | "integrity": "sha512-UtZQQI5k/b8d7d3i9AZmA/t+Q4tk3hOC0tMOMSq2GlMYOfxbesxG4mJSeDp0EHs30N9bsfwUvs3zF4v/RzOeTQ==", 1299 | "cpu": [ 1300 | "arm64" 1301 | ], 1302 | "dev": true, 1303 | "license": "MIT", 1304 | "optional": true, 1305 | "os": [ 1306 | "win32" 1307 | ] 1308 | }, 1309 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 1310 | "version": "4.40.0", 1311 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.0.tgz", 1312 | "integrity": "sha512-+m03kvI2f5syIqHXCZLPVYplP8pQch9JHyXKZ3AGMKlg8dCyr2PKHjwRLiW53LTrN/Nc3EqHOKxUxzoSPdKddA==", 1313 | "cpu": [ 1314 | "ia32" 1315 | ], 1316 | "dev": true, 1317 | "license": "MIT", 1318 | "optional": true, 1319 | "os": [ 1320 | "win32" 1321 | ] 1322 | }, 1323 | "node_modules/@rollup/rollup-win32-x64-msvc": { 1324 | "version": "4.40.0", 1325 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.0.tgz", 1326 | "integrity": "sha512-lpPE1cLfP5oPzVjKMx10pgBmKELQnFJXHgvtHCtuJWOv8MxqdEIMNtgHgBFf7Ea2/7EuVwa9fodWUfXAlXZLZQ==", 1327 | "cpu": [ 1328 | "x64" 1329 | ], 1330 | "dev": true, 1331 | "license": "MIT", 1332 | "optional": true, 1333 | "os": [ 1334 | "win32" 1335 | ] 1336 | }, 1337 | "node_modules/@rushstack/node-core-library": { 1338 | "version": "5.13.0", 1339 | "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.13.0.tgz", 1340 | "integrity": "sha512-IGVhy+JgUacAdCGXKUrRhwHMTzqhWwZUI+qEPcdzsb80heOw0QPbhhoVsoiMF7Klp8eYsp7hzpScMXmOa3Uhfg==", 1341 | "dev": true, 1342 | "license": "MIT", 1343 | "dependencies": { 1344 | "ajv": "~8.13.0", 1345 | "ajv-draft-04": "~1.0.0", 1346 | "ajv-formats": "~3.0.1", 1347 | "fs-extra": "~11.3.0", 1348 | "import-lazy": "~4.0.0", 1349 | "jju": "~1.4.0", 1350 | "resolve": "~1.22.1", 1351 | "semver": "~7.5.4" 1352 | }, 1353 | "peerDependencies": { 1354 | "@types/node": "*" 1355 | }, 1356 | "peerDependenciesMeta": { 1357 | "@types/node": { 1358 | "optional": true 1359 | } 1360 | } 1361 | }, 1362 | "node_modules/@rushstack/node-core-library/node_modules/ajv": { 1363 | "version": "8.13.0", 1364 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", 1365 | "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", 1366 | "dev": true, 1367 | "license": "MIT", 1368 | "dependencies": { 1369 | "fast-deep-equal": "^3.1.3", 1370 | "json-schema-traverse": "^1.0.0", 1371 | "require-from-string": "^2.0.2", 1372 | "uri-js": "^4.4.1" 1373 | }, 1374 | "funding": { 1375 | "type": "github", 1376 | "url": "https://github.com/sponsors/epoberezkin" 1377 | } 1378 | }, 1379 | "node_modules/@rushstack/node-core-library/node_modules/semver": { 1380 | "version": "7.5.4", 1381 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", 1382 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", 1383 | "dev": true, 1384 | "license": "ISC", 1385 | "dependencies": { 1386 | "lru-cache": "^6.0.0" 1387 | }, 1388 | "bin": { 1389 | "semver": "bin/semver.js" 1390 | }, 1391 | "engines": { 1392 | "node": ">=10" 1393 | } 1394 | }, 1395 | "node_modules/@rushstack/rig-package": { 1396 | "version": "0.5.3", 1397 | "resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.5.3.tgz", 1398 | "integrity": "sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==", 1399 | "dev": true, 1400 | "license": "MIT", 1401 | "dependencies": { 1402 | "resolve": "~1.22.1", 1403 | "strip-json-comments": "~3.1.1" 1404 | } 1405 | }, 1406 | "node_modules/@rushstack/terminal": { 1407 | "version": "0.15.2", 1408 | "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.15.2.tgz", 1409 | "integrity": "sha512-7Hmc0ysK5077R/IkLS9hYu0QuNafm+TbZbtYVzCMbeOdMjaRboLKrhryjwZSRJGJzu+TV1ON7qZHeqf58XfLpA==", 1410 | "dev": true, 1411 | "license": "MIT", 1412 | "dependencies": { 1413 | "@rushstack/node-core-library": "5.13.0", 1414 | "supports-color": "~8.1.1" 1415 | }, 1416 | "peerDependencies": { 1417 | "@types/node": "*" 1418 | }, 1419 | "peerDependenciesMeta": { 1420 | "@types/node": { 1421 | "optional": true 1422 | } 1423 | } 1424 | }, 1425 | "node_modules/@rushstack/terminal/node_modules/supports-color": { 1426 | "version": "8.1.1", 1427 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1428 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1429 | "dev": true, 1430 | "license": "MIT", 1431 | "dependencies": { 1432 | "has-flag": "^4.0.0" 1433 | }, 1434 | "engines": { 1435 | "node": ">=10" 1436 | }, 1437 | "funding": { 1438 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1439 | } 1440 | }, 1441 | "node_modules/@rushstack/ts-command-line": { 1442 | "version": "4.23.7", 1443 | "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.23.7.tgz", 1444 | "integrity": "sha512-Gr9cB7DGe6uz5vq2wdr89WbVDKz0UeuFEn5H2CfWDe7JvjFFaiV15gi6mqDBTbHhHCWS7w8mF1h3BnIfUndqdA==", 1445 | "dev": true, 1446 | "license": "MIT", 1447 | "dependencies": { 1448 | "@rushstack/terminal": "0.15.2", 1449 | "@types/argparse": "1.0.38", 1450 | "argparse": "~1.0.9", 1451 | "string-argv": "~0.3.1" 1452 | } 1453 | }, 1454 | "node_modules/@types/argparse": { 1455 | "version": "1.0.38", 1456 | "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", 1457 | "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==", 1458 | "dev": true, 1459 | "license": "MIT" 1460 | }, 1461 | "node_modules/@types/css-tree": { 1462 | "version": "2.3.10", 1463 | "resolved": "https://registry.npmjs.org/@types/css-tree/-/css-tree-2.3.10.tgz", 1464 | "integrity": "sha512-WcaBazJ84RxABvRttQjjFWgTcHvZR9jGr0Y3hccPkHjFyk/a3N8EuxjKr+QfrwjoM5b1yI1Uj1i7EzOAAwBwag==", 1465 | "dev": true, 1466 | "license": "MIT" 1467 | }, 1468 | "node_modules/@types/estree": { 1469 | "version": "1.0.7", 1470 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", 1471 | "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", 1472 | "dev": true, 1473 | "license": "MIT" 1474 | }, 1475 | "node_modules/@types/istanbul-lib-coverage": { 1476 | "version": "2.0.6", 1477 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", 1478 | "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", 1479 | "dev": true, 1480 | "license": "MIT" 1481 | }, 1482 | "node_modules/@volar/language-core": { 1483 | "version": "2.4.12", 1484 | "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.12.tgz", 1485 | "integrity": "sha512-RLrFdXEaQBWfSnYGVxvR2WrO6Bub0unkdHYIdC31HzIEqATIuuhRRzYu76iGPZ6OtA4Au1SnW0ZwIqPP217YhA==", 1486 | "dev": true, 1487 | "license": "MIT", 1488 | "dependencies": { 1489 | "@volar/source-map": "2.4.12" 1490 | } 1491 | }, 1492 | "node_modules/@volar/source-map": { 1493 | "version": "2.4.12", 1494 | "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.12.tgz", 1495 | "integrity": "sha512-bUFIKvn2U0AWojOaqf63ER0N/iHIBYZPpNGogfLPQ68F5Eet6FnLlyho7BS0y2HJ1jFhSif7AcuTx1TqsCzRzw==", 1496 | "dev": true, 1497 | "license": "MIT" 1498 | }, 1499 | "node_modules/@volar/typescript": { 1500 | "version": "2.4.12", 1501 | "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.12.tgz", 1502 | "integrity": "sha512-HJB73OTJDgPc80K30wxi3if4fSsZZAOScbj2fcicMuOPoOkcf9NNAINb33o+DzhBdF9xTKC1gnPmIRDous5S0g==", 1503 | "dev": true, 1504 | "license": "MIT", 1505 | "dependencies": { 1506 | "@volar/language-core": "2.4.12", 1507 | "path-browserify": "^1.0.1", 1508 | "vscode-uri": "^3.0.8" 1509 | } 1510 | }, 1511 | "node_modules/@vue/compiler-core": { 1512 | "version": "3.5.13", 1513 | "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.13.tgz", 1514 | "integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==", 1515 | "dev": true, 1516 | "license": "MIT", 1517 | "dependencies": { 1518 | "@babel/parser": "^7.25.3", 1519 | "@vue/shared": "3.5.13", 1520 | "entities": "^4.5.0", 1521 | "estree-walker": "^2.0.2", 1522 | "source-map-js": "^1.2.0" 1523 | } 1524 | }, 1525 | "node_modules/@vue/compiler-dom": { 1526 | "version": "3.5.13", 1527 | "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz", 1528 | "integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==", 1529 | "dev": true, 1530 | "license": "MIT", 1531 | "dependencies": { 1532 | "@vue/compiler-core": "3.5.13", 1533 | "@vue/shared": "3.5.13" 1534 | } 1535 | }, 1536 | "node_modules/@vue/compiler-vue2": { 1537 | "version": "2.7.16", 1538 | "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", 1539 | "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", 1540 | "dev": true, 1541 | "license": "MIT", 1542 | "dependencies": { 1543 | "de-indent": "^1.0.2", 1544 | "he": "^1.2.0" 1545 | } 1546 | }, 1547 | "node_modules/@vue/language-core": { 1548 | "version": "2.2.0", 1549 | "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.2.0.tgz", 1550 | "integrity": "sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==", 1551 | "dev": true, 1552 | "license": "MIT", 1553 | "dependencies": { 1554 | "@volar/language-core": "~2.4.11", 1555 | "@vue/compiler-dom": "^3.5.0", 1556 | "@vue/compiler-vue2": "^2.7.16", 1557 | "@vue/shared": "^3.5.0", 1558 | "alien-signals": "^0.4.9", 1559 | "minimatch": "^9.0.3", 1560 | "muggle-string": "^0.4.1", 1561 | "path-browserify": "^1.0.1" 1562 | }, 1563 | "peerDependencies": { 1564 | "typescript": "*" 1565 | }, 1566 | "peerDependenciesMeta": { 1567 | "typescript": { 1568 | "optional": true 1569 | } 1570 | } 1571 | }, 1572 | "node_modules/@vue/shared": { 1573 | "version": "3.5.13", 1574 | "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.13.tgz", 1575 | "integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==", 1576 | "dev": true, 1577 | "license": "MIT" 1578 | }, 1579 | "node_modules/acorn": { 1580 | "version": "8.14.1", 1581 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", 1582 | "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", 1583 | "dev": true, 1584 | "license": "MIT", 1585 | "bin": { 1586 | "acorn": "bin/acorn" 1587 | }, 1588 | "engines": { 1589 | "node": ">=0.4.0" 1590 | } 1591 | }, 1592 | "node_modules/ajv": { 1593 | "version": "8.12.0", 1594 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", 1595 | "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", 1596 | "dev": true, 1597 | "license": "MIT", 1598 | "dependencies": { 1599 | "fast-deep-equal": "^3.1.1", 1600 | "json-schema-traverse": "^1.0.0", 1601 | "require-from-string": "^2.0.2", 1602 | "uri-js": "^4.2.2" 1603 | }, 1604 | "funding": { 1605 | "type": "github", 1606 | "url": "https://github.com/sponsors/epoberezkin" 1607 | } 1608 | }, 1609 | "node_modules/ajv-draft-04": { 1610 | "version": "1.0.0", 1611 | "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", 1612 | "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", 1613 | "dev": true, 1614 | "license": "MIT", 1615 | "peerDependencies": { 1616 | "ajv": "^8.5.0" 1617 | }, 1618 | "peerDependenciesMeta": { 1619 | "ajv": { 1620 | "optional": true 1621 | } 1622 | } 1623 | }, 1624 | "node_modules/ajv-formats": { 1625 | "version": "3.0.1", 1626 | "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", 1627 | "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", 1628 | "dev": true, 1629 | "license": "MIT", 1630 | "dependencies": { 1631 | "ajv": "^8.0.0" 1632 | }, 1633 | "peerDependencies": { 1634 | "ajv": "^8.0.0" 1635 | }, 1636 | "peerDependenciesMeta": { 1637 | "ajv": { 1638 | "optional": true 1639 | } 1640 | } 1641 | }, 1642 | "node_modules/alien-signals": { 1643 | "version": "0.4.14", 1644 | "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-0.4.14.tgz", 1645 | "integrity": "sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==", 1646 | "dev": true, 1647 | "license": "MIT" 1648 | }, 1649 | "node_modules/ansi-regex": { 1650 | "version": "5.0.1", 1651 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1652 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1653 | "dev": true, 1654 | "license": "MIT", 1655 | "engines": { 1656 | "node": ">=8" 1657 | } 1658 | }, 1659 | "node_modules/ansi-styles": { 1660 | "version": "4.3.0", 1661 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1662 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1663 | "dev": true, 1664 | "license": "MIT", 1665 | "dependencies": { 1666 | "color-convert": "^2.0.1" 1667 | }, 1668 | "engines": { 1669 | "node": ">=8" 1670 | }, 1671 | "funding": { 1672 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1673 | } 1674 | }, 1675 | "node_modules/argparse": { 1676 | "version": "1.0.10", 1677 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 1678 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 1679 | "dev": true, 1680 | "license": "MIT", 1681 | "dependencies": { 1682 | "sprintf-js": "~1.0.2" 1683 | } 1684 | }, 1685 | "node_modules/balanced-match": { 1686 | "version": "1.0.2", 1687 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1688 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1689 | "dev": true, 1690 | "license": "MIT" 1691 | }, 1692 | "node_modules/before-after-hook": { 1693 | "version": "2.2.3", 1694 | "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", 1695 | "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", 1696 | "dev": true, 1697 | "license": "Apache-2.0" 1698 | }, 1699 | "node_modules/brace-expansion": { 1700 | "version": "1.1.11", 1701 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1702 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1703 | "dev": true, 1704 | "license": "MIT", 1705 | "dependencies": { 1706 | "balanced-match": "^1.0.0", 1707 | "concat-map": "0.0.1" 1708 | } 1709 | }, 1710 | "node_modules/c8": { 1711 | "version": "10.1.3", 1712 | "resolved": "https://registry.npmjs.org/c8/-/c8-10.1.3.tgz", 1713 | "integrity": "sha512-LvcyrOAaOnrrlMpW22n690PUvxiq4Uf9WMhQwNJ9vgagkL/ph1+D4uvjvDA5XCbykrc0sx+ay6pVi9YZ1GnhyA==", 1714 | "dev": true, 1715 | "license": "ISC", 1716 | "dependencies": { 1717 | "@bcoe/v8-coverage": "^1.0.1", 1718 | "@istanbuljs/schema": "^0.1.3", 1719 | "find-up": "^5.0.0", 1720 | "foreground-child": "^3.1.1", 1721 | "istanbul-lib-coverage": "^3.2.0", 1722 | "istanbul-lib-report": "^3.0.1", 1723 | "istanbul-reports": "^3.1.6", 1724 | "test-exclude": "^7.0.1", 1725 | "v8-to-istanbul": "^9.0.0", 1726 | "yargs": "^17.7.2", 1727 | "yargs-parser": "^21.1.1" 1728 | }, 1729 | "bin": { 1730 | "c8": "bin/c8.js" 1731 | }, 1732 | "engines": { 1733 | "node": ">=18" 1734 | }, 1735 | "peerDependencies": { 1736 | "monocart-coverage-reports": "^2" 1737 | }, 1738 | "peerDependenciesMeta": { 1739 | "monocart-coverage-reports": { 1740 | "optional": true 1741 | } 1742 | } 1743 | }, 1744 | "node_modules/c8/node_modules/find-up": { 1745 | "version": "5.0.0", 1746 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1747 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1748 | "dev": true, 1749 | "license": "MIT", 1750 | "dependencies": { 1751 | "locate-path": "^6.0.0", 1752 | "path-exists": "^4.0.0" 1753 | }, 1754 | "engines": { 1755 | "node": ">=10" 1756 | }, 1757 | "funding": { 1758 | "url": "https://github.com/sponsors/sindresorhus" 1759 | } 1760 | }, 1761 | "node_modules/c8/node_modules/locate-path": { 1762 | "version": "6.0.0", 1763 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1764 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1765 | "dev": true, 1766 | "license": "MIT", 1767 | "dependencies": { 1768 | "p-locate": "^5.0.0" 1769 | }, 1770 | "engines": { 1771 | "node": ">=10" 1772 | }, 1773 | "funding": { 1774 | "url": "https://github.com/sponsors/sindresorhus" 1775 | } 1776 | }, 1777 | "node_modules/c8/node_modules/p-limit": { 1778 | "version": "3.1.0", 1779 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1780 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1781 | "dev": true, 1782 | "license": "MIT", 1783 | "dependencies": { 1784 | "yocto-queue": "^0.1.0" 1785 | }, 1786 | "engines": { 1787 | "node": ">=10" 1788 | }, 1789 | "funding": { 1790 | "url": "https://github.com/sponsors/sindresorhus" 1791 | } 1792 | }, 1793 | "node_modules/c8/node_modules/p-locate": { 1794 | "version": "5.0.0", 1795 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1796 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1797 | "dev": true, 1798 | "license": "MIT", 1799 | "dependencies": { 1800 | "p-limit": "^3.0.2" 1801 | }, 1802 | "engines": { 1803 | "node": ">=10" 1804 | }, 1805 | "funding": { 1806 | "url": "https://github.com/sponsors/sindresorhus" 1807 | } 1808 | }, 1809 | "node_modules/c8/node_modules/path-exists": { 1810 | "version": "4.0.0", 1811 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1812 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1813 | "dev": true, 1814 | "license": "MIT", 1815 | "engines": { 1816 | "node": ">=8" 1817 | } 1818 | }, 1819 | "node_modules/c8/node_modules/yocto-queue": { 1820 | "version": "0.1.0", 1821 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 1822 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 1823 | "dev": true, 1824 | "license": "MIT", 1825 | "engines": { 1826 | "node": ">=10" 1827 | }, 1828 | "funding": { 1829 | "url": "https://github.com/sponsors/sindresorhus" 1830 | } 1831 | }, 1832 | "node_modules/chalk": { 1833 | "version": "4.1.2", 1834 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1835 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1836 | "dev": true, 1837 | "license": "MIT", 1838 | "dependencies": { 1839 | "ansi-styles": "^4.1.0", 1840 | "supports-color": "^7.1.0" 1841 | }, 1842 | "engines": { 1843 | "node": ">=10" 1844 | }, 1845 | "funding": { 1846 | "url": "https://github.com/chalk/chalk?sponsor=1" 1847 | } 1848 | }, 1849 | "node_modules/cliui": { 1850 | "version": "8.0.1", 1851 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 1852 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 1853 | "dev": true, 1854 | "license": "ISC", 1855 | "dependencies": { 1856 | "string-width": "^4.2.0", 1857 | "strip-ansi": "^6.0.1", 1858 | "wrap-ansi": "^7.0.0" 1859 | }, 1860 | "engines": { 1861 | "node": ">=12" 1862 | } 1863 | }, 1864 | "node_modules/color-convert": { 1865 | "version": "2.0.1", 1866 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1867 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1868 | "dev": true, 1869 | "license": "MIT", 1870 | "dependencies": { 1871 | "color-name": "~1.1.4" 1872 | }, 1873 | "engines": { 1874 | "node": ">=7.0.0" 1875 | } 1876 | }, 1877 | "node_modules/color-name": { 1878 | "version": "1.1.4", 1879 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1880 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1881 | "dev": true, 1882 | "license": "MIT" 1883 | }, 1884 | "node_modules/compare-versions": { 1885 | "version": "6.1.1", 1886 | "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", 1887 | "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", 1888 | "dev": true, 1889 | "license": "MIT" 1890 | }, 1891 | "node_modules/concat-map": { 1892 | "version": "0.0.1", 1893 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1894 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1895 | "dev": true, 1896 | "license": "MIT" 1897 | }, 1898 | "node_modules/confbox": { 1899 | "version": "0.2.2", 1900 | "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.2.tgz", 1901 | "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", 1902 | "dev": true, 1903 | "license": "MIT" 1904 | }, 1905 | "node_modules/convert-source-map": { 1906 | "version": "2.0.0", 1907 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", 1908 | "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", 1909 | "dev": true, 1910 | "license": "MIT" 1911 | }, 1912 | "node_modules/cross-spawn": { 1913 | "version": "7.0.6", 1914 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 1915 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 1916 | "dev": true, 1917 | "dependencies": { 1918 | "path-key": "^3.1.0", 1919 | "shebang-command": "^2.0.0", 1920 | "which": "^2.0.1" 1921 | }, 1922 | "engines": { 1923 | "node": ">= 8" 1924 | } 1925 | }, 1926 | "node_modules/css-tree": { 1927 | "version": "3.0.1", 1928 | "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.0.1.tgz", 1929 | "integrity": "sha512-8Fxxv+tGhORlshCdCwnNJytvlvq46sOLSYEx2ZIGurahWvMucSRnyjPA3AmrMq4VPRYbHVpWj5VkiVasrM2H4Q==", 1930 | "dependencies": { 1931 | "mdn-data": "2.12.1", 1932 | "source-map-js": "^1.0.1" 1933 | }, 1934 | "engines": { 1935 | "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" 1936 | } 1937 | }, 1938 | "node_modules/de-indent": { 1939 | "version": "1.0.2", 1940 | "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", 1941 | "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", 1942 | "dev": true, 1943 | "license": "MIT" 1944 | }, 1945 | "node_modules/debug": { 1946 | "version": "4.4.0", 1947 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1948 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1949 | "dev": true, 1950 | "license": "MIT", 1951 | "dependencies": { 1952 | "ms": "^2.1.3" 1953 | }, 1954 | "engines": { 1955 | "node": ">=6.0" 1956 | }, 1957 | "peerDependenciesMeta": { 1958 | "supports-color": { 1959 | "optional": true 1960 | } 1961 | } 1962 | }, 1963 | "node_modules/deprecation": { 1964 | "version": "2.3.1", 1965 | "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", 1966 | "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", 1967 | "dev": true, 1968 | "license": "ISC" 1969 | }, 1970 | "node_modules/dequal": { 1971 | "version": "2.0.3", 1972 | "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", 1973 | "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", 1974 | "dev": true, 1975 | "license": "MIT", 1976 | "engines": { 1977 | "node": ">=6" 1978 | } 1979 | }, 1980 | "node_modules/diff": { 1981 | "version": "5.2.0", 1982 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", 1983 | "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", 1984 | "dev": true, 1985 | "license": "BSD-3-Clause", 1986 | "engines": { 1987 | "node": ">=0.3.1" 1988 | } 1989 | }, 1990 | "node_modules/eastasianwidth": { 1991 | "version": "0.2.0", 1992 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 1993 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 1994 | "dev": true, 1995 | "license": "MIT" 1996 | }, 1997 | "node_modules/emoji-regex": { 1998 | "version": "8.0.0", 1999 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2000 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2001 | "dev": true, 2002 | "license": "MIT" 2003 | }, 2004 | "node_modules/entities": { 2005 | "version": "4.5.0", 2006 | "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", 2007 | "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", 2008 | "dev": true, 2009 | "license": "BSD-2-Clause", 2010 | "engines": { 2011 | "node": ">=0.12" 2012 | }, 2013 | "funding": { 2014 | "url": "https://github.com/fb55/entities?sponsor=1" 2015 | } 2016 | }, 2017 | "node_modules/esbuild": { 2018 | "version": "0.25.2", 2019 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", 2020 | "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", 2021 | "dev": true, 2022 | "hasInstallScript": true, 2023 | "license": "MIT", 2024 | "bin": { 2025 | "esbuild": "bin/esbuild" 2026 | }, 2027 | "engines": { 2028 | "node": ">=18" 2029 | }, 2030 | "optionalDependencies": { 2031 | "@esbuild/aix-ppc64": "0.25.2", 2032 | "@esbuild/android-arm": "0.25.2", 2033 | "@esbuild/android-arm64": "0.25.2", 2034 | "@esbuild/android-x64": "0.25.2", 2035 | "@esbuild/darwin-arm64": "0.25.2", 2036 | "@esbuild/darwin-x64": "0.25.2", 2037 | "@esbuild/freebsd-arm64": "0.25.2", 2038 | "@esbuild/freebsd-x64": "0.25.2", 2039 | "@esbuild/linux-arm": "0.25.2", 2040 | "@esbuild/linux-arm64": "0.25.2", 2041 | "@esbuild/linux-ia32": "0.25.2", 2042 | "@esbuild/linux-loong64": "0.25.2", 2043 | "@esbuild/linux-mips64el": "0.25.2", 2044 | "@esbuild/linux-ppc64": "0.25.2", 2045 | "@esbuild/linux-riscv64": "0.25.2", 2046 | "@esbuild/linux-s390x": "0.25.2", 2047 | "@esbuild/linux-x64": "0.25.2", 2048 | "@esbuild/netbsd-arm64": "0.25.2", 2049 | "@esbuild/netbsd-x64": "0.25.2", 2050 | "@esbuild/openbsd-arm64": "0.25.2", 2051 | "@esbuild/openbsd-x64": "0.25.2", 2052 | "@esbuild/sunos-x64": "0.25.2", 2053 | "@esbuild/win32-arm64": "0.25.2", 2054 | "@esbuild/win32-ia32": "0.25.2", 2055 | "@esbuild/win32-x64": "0.25.2" 2056 | } 2057 | }, 2058 | "node_modules/escalade": { 2059 | "version": "3.1.2", 2060 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", 2061 | "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", 2062 | "dev": true, 2063 | "license": "MIT", 2064 | "engines": { 2065 | "node": ">=6" 2066 | } 2067 | }, 2068 | "node_modules/estree-walker": { 2069 | "version": "2.0.2", 2070 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 2071 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", 2072 | "dev": true, 2073 | "license": "MIT" 2074 | }, 2075 | "node_modules/exsolve": { 2076 | "version": "1.0.4", 2077 | "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.4.tgz", 2078 | "integrity": "sha512-xsZH6PXaER4XoV+NiT7JHp1bJodJVT+cxeSH1G0f0tlT0lJqYuHUP3bUx2HtfTDvOagMINYp8rsqusxud3RXhw==", 2079 | "dev": true, 2080 | "license": "MIT" 2081 | }, 2082 | "node_modules/fast-deep-equal": { 2083 | "version": "3.1.3", 2084 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 2085 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 2086 | "dev": true, 2087 | "license": "MIT" 2088 | }, 2089 | "node_modules/foreground-child": { 2090 | "version": "3.2.1", 2091 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", 2092 | "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", 2093 | "dev": true, 2094 | "license": "ISC", 2095 | "dependencies": { 2096 | "cross-spawn": "^7.0.0", 2097 | "signal-exit": "^4.0.1" 2098 | }, 2099 | "engines": { 2100 | "node": ">=14" 2101 | }, 2102 | "funding": { 2103 | "url": "https://github.com/sponsors/isaacs" 2104 | } 2105 | }, 2106 | "node_modules/fs-extra": { 2107 | "version": "11.3.0", 2108 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", 2109 | "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", 2110 | "dev": true, 2111 | "license": "MIT", 2112 | "dependencies": { 2113 | "graceful-fs": "^4.2.0", 2114 | "jsonfile": "^6.0.1", 2115 | "universalify": "^2.0.0" 2116 | }, 2117 | "engines": { 2118 | "node": ">=14.14" 2119 | } 2120 | }, 2121 | "node_modules/fsevents": { 2122 | "version": "2.3.3", 2123 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 2124 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 2125 | "dev": true, 2126 | "hasInstallScript": true, 2127 | "license": "MIT", 2128 | "optional": true, 2129 | "os": [ 2130 | "darwin" 2131 | ], 2132 | "engines": { 2133 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 2134 | } 2135 | }, 2136 | "node_modules/function-bind": { 2137 | "version": "1.1.2", 2138 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 2139 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 2140 | "dev": true, 2141 | "license": "MIT", 2142 | "funding": { 2143 | "url": "https://github.com/sponsors/ljharb" 2144 | } 2145 | }, 2146 | "node_modules/get-caller-file": { 2147 | "version": "2.0.5", 2148 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 2149 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 2150 | "dev": true, 2151 | "license": "ISC", 2152 | "engines": { 2153 | "node": "6.* || 8.* || >= 10.*" 2154 | } 2155 | }, 2156 | "node_modules/glob": { 2157 | "version": "10.4.5", 2158 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", 2159 | "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", 2160 | "dev": true, 2161 | "license": "ISC", 2162 | "dependencies": { 2163 | "foreground-child": "^3.1.0", 2164 | "jackspeak": "^3.1.2", 2165 | "minimatch": "^9.0.4", 2166 | "minipass": "^7.1.2", 2167 | "package-json-from-dist": "^1.0.0", 2168 | "path-scurry": "^1.11.1" 2169 | }, 2170 | "bin": { 2171 | "glob": "dist/esm/bin.mjs" 2172 | }, 2173 | "funding": { 2174 | "url": "https://github.com/sponsors/isaacs" 2175 | } 2176 | }, 2177 | "node_modules/graceful-fs": { 2178 | "version": "4.2.11", 2179 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 2180 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 2181 | "dev": true, 2182 | "license": "ISC" 2183 | }, 2184 | "node_modules/has-flag": { 2185 | "version": "4.0.0", 2186 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 2187 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 2188 | "dev": true, 2189 | "license": "MIT", 2190 | "engines": { 2191 | "node": ">=8" 2192 | } 2193 | }, 2194 | "node_modules/hasown": { 2195 | "version": "2.0.2", 2196 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 2197 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 2198 | "dev": true, 2199 | "license": "MIT", 2200 | "dependencies": { 2201 | "function-bind": "^1.1.2" 2202 | }, 2203 | "engines": { 2204 | "node": ">= 0.4" 2205 | } 2206 | }, 2207 | "node_modules/he": { 2208 | "version": "1.2.0", 2209 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 2210 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 2211 | "dev": true, 2212 | "license": "MIT", 2213 | "bin": { 2214 | "he": "bin/he" 2215 | } 2216 | }, 2217 | "node_modules/html-escaper": { 2218 | "version": "2.0.2", 2219 | "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", 2220 | "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", 2221 | "dev": true, 2222 | "license": "MIT" 2223 | }, 2224 | "node_modules/import-lazy": { 2225 | "version": "4.0.0", 2226 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", 2227 | "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", 2228 | "dev": true, 2229 | "license": "MIT", 2230 | "engines": { 2231 | "node": ">=8" 2232 | } 2233 | }, 2234 | "node_modules/is-core-module": { 2235 | "version": "2.16.1", 2236 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", 2237 | "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", 2238 | "dev": true, 2239 | "license": "MIT", 2240 | "dependencies": { 2241 | "hasown": "^2.0.2" 2242 | }, 2243 | "engines": { 2244 | "node": ">= 0.4" 2245 | }, 2246 | "funding": { 2247 | "url": "https://github.com/sponsors/ljharb" 2248 | } 2249 | }, 2250 | "node_modules/is-fullwidth-code-point": { 2251 | "version": "3.0.0", 2252 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 2253 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 2254 | "dev": true, 2255 | "license": "MIT", 2256 | "engines": { 2257 | "node": ">=8" 2258 | } 2259 | }, 2260 | "node_modules/isexe": { 2261 | "version": "2.0.0", 2262 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 2263 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 2264 | "dev": true, 2265 | "license": "ISC" 2266 | }, 2267 | "node_modules/istanbul-lib-coverage": { 2268 | "version": "3.2.2", 2269 | "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", 2270 | "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", 2271 | "dev": true, 2272 | "license": "BSD-3-Clause", 2273 | "engines": { 2274 | "node": ">=8" 2275 | } 2276 | }, 2277 | "node_modules/istanbul-lib-report": { 2278 | "version": "3.0.1", 2279 | "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", 2280 | "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", 2281 | "dev": true, 2282 | "license": "BSD-3-Clause", 2283 | "dependencies": { 2284 | "istanbul-lib-coverage": "^3.0.0", 2285 | "make-dir": "^4.0.0", 2286 | "supports-color": "^7.1.0" 2287 | }, 2288 | "engines": { 2289 | "node": ">=10" 2290 | } 2291 | }, 2292 | "node_modules/istanbul-reports": { 2293 | "version": "3.1.7", 2294 | "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", 2295 | "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", 2296 | "dev": true, 2297 | "license": "BSD-3-Clause", 2298 | "dependencies": { 2299 | "html-escaper": "^2.0.0", 2300 | "istanbul-lib-report": "^3.0.0" 2301 | }, 2302 | "engines": { 2303 | "node": ">=8" 2304 | } 2305 | }, 2306 | "node_modules/jackspeak": { 2307 | "version": "3.4.3", 2308 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", 2309 | "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", 2310 | "dev": true, 2311 | "license": "BlueOak-1.0.0", 2312 | "dependencies": { 2313 | "@isaacs/cliui": "^8.0.2" 2314 | }, 2315 | "funding": { 2316 | "url": "https://github.com/sponsors/isaacs" 2317 | }, 2318 | "optionalDependencies": { 2319 | "@pkgjs/parseargs": "^0.11.0" 2320 | } 2321 | }, 2322 | "node_modules/jju": { 2323 | "version": "1.4.0", 2324 | "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", 2325 | "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", 2326 | "dev": true, 2327 | "license": "MIT" 2328 | }, 2329 | "node_modules/json-schema-traverse": { 2330 | "version": "1.0.0", 2331 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 2332 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 2333 | "dev": true, 2334 | "license": "MIT" 2335 | }, 2336 | "node_modules/jsonfile": { 2337 | "version": "6.1.0", 2338 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 2339 | "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 2340 | "dev": true, 2341 | "license": "MIT", 2342 | "dependencies": { 2343 | "universalify": "^2.0.0" 2344 | }, 2345 | "optionalDependencies": { 2346 | "graceful-fs": "^4.1.6" 2347 | } 2348 | }, 2349 | "node_modules/kleur": { 2350 | "version": "4.1.5", 2351 | "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", 2352 | "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", 2353 | "dev": true, 2354 | "license": "MIT", 2355 | "engines": { 2356 | "node": ">=6" 2357 | } 2358 | }, 2359 | "node_modules/kolorist": { 2360 | "version": "1.8.0", 2361 | "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz", 2362 | "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==", 2363 | "dev": true, 2364 | "license": "MIT" 2365 | }, 2366 | "node_modules/local-pkg": { 2367 | "version": "1.1.1", 2368 | "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.1.tgz", 2369 | "integrity": "sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==", 2370 | "dev": true, 2371 | "license": "MIT", 2372 | "dependencies": { 2373 | "mlly": "^1.7.4", 2374 | "pkg-types": "^2.0.1", 2375 | "quansync": "^0.2.8" 2376 | }, 2377 | "engines": { 2378 | "node": ">=14" 2379 | }, 2380 | "funding": { 2381 | "url": "https://github.com/sponsors/antfu" 2382 | } 2383 | }, 2384 | "node_modules/lodash": { 2385 | "version": "4.17.21", 2386 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 2387 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 2388 | "dev": true, 2389 | "license": "MIT" 2390 | }, 2391 | "node_modules/lru-cache": { 2392 | "version": "6.0.0", 2393 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 2394 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 2395 | "dev": true, 2396 | "license": "ISC", 2397 | "dependencies": { 2398 | "yallist": "^4.0.0" 2399 | }, 2400 | "engines": { 2401 | "node": ">=10" 2402 | } 2403 | }, 2404 | "node_modules/magic-string": { 2405 | "version": "0.30.17", 2406 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", 2407 | "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", 2408 | "dev": true, 2409 | "license": "MIT", 2410 | "dependencies": { 2411 | "@jridgewell/sourcemap-codec": "^1.5.0" 2412 | } 2413 | }, 2414 | "node_modules/make-dir": { 2415 | "version": "4.0.0", 2416 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", 2417 | "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", 2418 | "dev": true, 2419 | "license": "MIT", 2420 | "dependencies": { 2421 | "semver": "^7.5.3" 2422 | }, 2423 | "engines": { 2424 | "node": ">=10" 2425 | }, 2426 | "funding": { 2427 | "url": "https://github.com/sponsors/sindresorhus" 2428 | } 2429 | }, 2430 | "node_modules/mdn-data": { 2431 | "version": "2.12.1", 2432 | "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.1.tgz", 2433 | "integrity": "sha512-rsfnCbOHjqrhWxwt5/wtSLzpoKTzW7OXdT5lLOIH1OTYhWu9rRJveGq0sKvDZODABH7RX+uoR+DYcpFnq4Tf6Q==" 2434 | }, 2435 | "node_modules/minimatch": { 2436 | "version": "9.0.5", 2437 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 2438 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 2439 | "dev": true, 2440 | "license": "ISC", 2441 | "dependencies": { 2442 | "brace-expansion": "^2.0.1" 2443 | }, 2444 | "engines": { 2445 | "node": ">=16 || 14 >=14.17" 2446 | }, 2447 | "funding": { 2448 | "url": "https://github.com/sponsors/isaacs" 2449 | } 2450 | }, 2451 | "node_modules/minimatch/node_modules/brace-expansion": { 2452 | "version": "2.0.1", 2453 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 2454 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 2455 | "dev": true, 2456 | "license": "MIT", 2457 | "dependencies": { 2458 | "balanced-match": "^1.0.0" 2459 | } 2460 | }, 2461 | "node_modules/minipass": { 2462 | "version": "7.1.2", 2463 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", 2464 | "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", 2465 | "dev": true, 2466 | "license": "ISC", 2467 | "engines": { 2468 | "node": ">=16 || 14 >=14.17" 2469 | } 2470 | }, 2471 | "node_modules/mlly": { 2472 | "version": "1.7.4", 2473 | "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.4.tgz", 2474 | "integrity": "sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==", 2475 | "dev": true, 2476 | "license": "MIT", 2477 | "dependencies": { 2478 | "acorn": "^8.14.0", 2479 | "pathe": "^2.0.1", 2480 | "pkg-types": "^1.3.0", 2481 | "ufo": "^1.5.4" 2482 | } 2483 | }, 2484 | "node_modules/mlly/node_modules/confbox": { 2485 | "version": "0.1.8", 2486 | "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", 2487 | "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", 2488 | "dev": true, 2489 | "license": "MIT" 2490 | }, 2491 | "node_modules/mlly/node_modules/pkg-types": { 2492 | "version": "1.3.1", 2493 | "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", 2494 | "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", 2495 | "dev": true, 2496 | "license": "MIT", 2497 | "dependencies": { 2498 | "confbox": "^0.1.8", 2499 | "mlly": "^1.7.4", 2500 | "pathe": "^2.0.1" 2501 | } 2502 | }, 2503 | "node_modules/mri": { 2504 | "version": "1.2.0", 2505 | "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", 2506 | "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", 2507 | "dev": true, 2508 | "license": "MIT", 2509 | "engines": { 2510 | "node": ">=4" 2511 | } 2512 | }, 2513 | "node_modules/ms": { 2514 | "version": "2.1.3", 2515 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2516 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2517 | "dev": true, 2518 | "license": "MIT" 2519 | }, 2520 | "node_modules/muggle-string": { 2521 | "version": "0.4.1", 2522 | "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", 2523 | "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", 2524 | "dev": true, 2525 | "license": "MIT" 2526 | }, 2527 | "node_modules/nanoid": { 2528 | "version": "3.3.11", 2529 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", 2530 | "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", 2531 | "dev": true, 2532 | "funding": [ 2533 | { 2534 | "type": "github", 2535 | "url": "https://github.com/sponsors/ai" 2536 | } 2537 | ], 2538 | "license": "MIT", 2539 | "bin": { 2540 | "nanoid": "bin/nanoid.cjs" 2541 | }, 2542 | "engines": { 2543 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 2544 | } 2545 | }, 2546 | "node_modules/once": { 2547 | "version": "1.4.0", 2548 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2549 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 2550 | "dev": true, 2551 | "license": "ISC", 2552 | "dependencies": { 2553 | "wrappy": "1" 2554 | } 2555 | }, 2556 | "node_modules/package-json-from-dist": { 2557 | "version": "1.0.0", 2558 | "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", 2559 | "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", 2560 | "dev": true, 2561 | "license": "BlueOak-1.0.0" 2562 | }, 2563 | "node_modules/path-browserify": { 2564 | "version": "1.0.1", 2565 | "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", 2566 | "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", 2567 | "dev": true, 2568 | "license": "MIT" 2569 | }, 2570 | "node_modules/path-key": { 2571 | "version": "3.1.1", 2572 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2573 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2574 | "dev": true, 2575 | "license": "MIT", 2576 | "engines": { 2577 | "node": ">=8" 2578 | } 2579 | }, 2580 | "node_modules/path-parse": { 2581 | "version": "1.0.7", 2582 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 2583 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 2584 | "dev": true, 2585 | "license": "MIT" 2586 | }, 2587 | "node_modules/path-scurry": { 2588 | "version": "1.11.1", 2589 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", 2590 | "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", 2591 | "dev": true, 2592 | "license": "BlueOak-1.0.0", 2593 | "dependencies": { 2594 | "lru-cache": "^10.2.0", 2595 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 2596 | }, 2597 | "engines": { 2598 | "node": ">=16 || 14 >=14.18" 2599 | }, 2600 | "funding": { 2601 | "url": "https://github.com/sponsors/isaacs" 2602 | } 2603 | }, 2604 | "node_modules/path-scurry/node_modules/lru-cache": { 2605 | "version": "10.4.3", 2606 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 2607 | "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 2608 | "dev": true, 2609 | "license": "ISC" 2610 | }, 2611 | "node_modules/pathe": { 2612 | "version": "2.0.3", 2613 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", 2614 | "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", 2615 | "dev": true, 2616 | "license": "MIT" 2617 | }, 2618 | "node_modules/picocolors": { 2619 | "version": "1.1.1", 2620 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 2621 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 2622 | "dev": true, 2623 | "license": "ISC" 2624 | }, 2625 | "node_modules/picomatch": { 2626 | "version": "4.0.2", 2627 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 2628 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 2629 | "dev": true, 2630 | "license": "MIT", 2631 | "engines": { 2632 | "node": ">=12" 2633 | }, 2634 | "funding": { 2635 | "url": "https://github.com/sponsors/jonschlinkert" 2636 | } 2637 | }, 2638 | "node_modules/pkg-types": { 2639 | "version": "2.1.0", 2640 | "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.1.0.tgz", 2641 | "integrity": "sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==", 2642 | "dev": true, 2643 | "license": "MIT", 2644 | "dependencies": { 2645 | "confbox": "^0.2.1", 2646 | "exsolve": "^1.0.1", 2647 | "pathe": "^2.0.3" 2648 | } 2649 | }, 2650 | "node_modules/postcss": { 2651 | "version": "8.5.3", 2652 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", 2653 | "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", 2654 | "dev": true, 2655 | "funding": [ 2656 | { 2657 | "type": "opencollective", 2658 | "url": "https://opencollective.com/postcss/" 2659 | }, 2660 | { 2661 | "type": "tidelift", 2662 | "url": "https://tidelift.com/funding/github/npm/postcss" 2663 | }, 2664 | { 2665 | "type": "github", 2666 | "url": "https://github.com/sponsors/ai" 2667 | } 2668 | ], 2669 | "license": "MIT", 2670 | "dependencies": { 2671 | "nanoid": "^3.3.8", 2672 | "picocolors": "^1.1.1", 2673 | "source-map-js": "^1.2.1" 2674 | }, 2675 | "engines": { 2676 | "node": "^10 || ^12 || >=14" 2677 | } 2678 | }, 2679 | "node_modules/prettier": { 2680 | "version": "3.5.3", 2681 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", 2682 | "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", 2683 | "dev": true, 2684 | "license": "MIT", 2685 | "bin": { 2686 | "prettier": "bin/prettier.cjs" 2687 | }, 2688 | "engines": { 2689 | "node": ">=14" 2690 | }, 2691 | "funding": { 2692 | "url": "https://github.com/prettier/prettier?sponsor=1" 2693 | } 2694 | }, 2695 | "node_modules/punycode": { 2696 | "version": "2.3.1", 2697 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 2698 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 2699 | "dev": true, 2700 | "license": "MIT", 2701 | "engines": { 2702 | "node": ">=6" 2703 | } 2704 | }, 2705 | "node_modules/quansync": { 2706 | "version": "0.2.10", 2707 | "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.10.tgz", 2708 | "integrity": "sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==", 2709 | "dev": true, 2710 | "funding": [ 2711 | { 2712 | "type": "individual", 2713 | "url": "https://github.com/sponsors/antfu" 2714 | }, 2715 | { 2716 | "type": "individual", 2717 | "url": "https://github.com/sponsors/sxzz" 2718 | } 2719 | ], 2720 | "license": "MIT" 2721 | }, 2722 | "node_modules/require-directory": { 2723 | "version": "2.1.1", 2724 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2725 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 2726 | "dev": true, 2727 | "license": "MIT", 2728 | "engines": { 2729 | "node": ">=0.10.0" 2730 | } 2731 | }, 2732 | "node_modules/require-from-string": { 2733 | "version": "2.0.2", 2734 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", 2735 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", 2736 | "dev": true, 2737 | "license": "MIT", 2738 | "engines": { 2739 | "node": ">=0.10.0" 2740 | } 2741 | }, 2742 | "node_modules/resolve": { 2743 | "version": "1.22.10", 2744 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", 2745 | "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", 2746 | "dev": true, 2747 | "license": "MIT", 2748 | "dependencies": { 2749 | "is-core-module": "^2.16.0", 2750 | "path-parse": "^1.0.7", 2751 | "supports-preserve-symlinks-flag": "^1.0.0" 2752 | }, 2753 | "bin": { 2754 | "resolve": "bin/resolve" 2755 | }, 2756 | "engines": { 2757 | "node": ">= 0.4" 2758 | }, 2759 | "funding": { 2760 | "url": "https://github.com/sponsors/ljharb" 2761 | } 2762 | }, 2763 | "node_modules/rollup": { 2764 | "version": "4.40.0", 2765 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.0.tgz", 2766 | "integrity": "sha512-Noe455xmA96nnqH5piFtLobsGbCij7Tu+tb3c1vYjNbTkfzGqXqQXG3wJaYXkRZuQ0vEYN4bhwg7QnIrqB5B+w==", 2767 | "dev": true, 2768 | "license": "MIT", 2769 | "dependencies": { 2770 | "@types/estree": "1.0.7" 2771 | }, 2772 | "bin": { 2773 | "rollup": "dist/bin/rollup" 2774 | }, 2775 | "engines": { 2776 | "node": ">=18.0.0", 2777 | "npm": ">=8.0.0" 2778 | }, 2779 | "optionalDependencies": { 2780 | "@rollup/rollup-android-arm-eabi": "4.40.0", 2781 | "@rollup/rollup-android-arm64": "4.40.0", 2782 | "@rollup/rollup-darwin-arm64": "4.40.0", 2783 | "@rollup/rollup-darwin-x64": "4.40.0", 2784 | "@rollup/rollup-freebsd-arm64": "4.40.0", 2785 | "@rollup/rollup-freebsd-x64": "4.40.0", 2786 | "@rollup/rollup-linux-arm-gnueabihf": "4.40.0", 2787 | "@rollup/rollup-linux-arm-musleabihf": "4.40.0", 2788 | "@rollup/rollup-linux-arm64-gnu": "4.40.0", 2789 | "@rollup/rollup-linux-arm64-musl": "4.40.0", 2790 | "@rollup/rollup-linux-loongarch64-gnu": "4.40.0", 2791 | "@rollup/rollup-linux-powerpc64le-gnu": "4.40.0", 2792 | "@rollup/rollup-linux-riscv64-gnu": "4.40.0", 2793 | "@rollup/rollup-linux-riscv64-musl": "4.40.0", 2794 | "@rollup/rollup-linux-s390x-gnu": "4.40.0", 2795 | "@rollup/rollup-linux-x64-gnu": "4.40.0", 2796 | "@rollup/rollup-linux-x64-musl": "4.40.0", 2797 | "@rollup/rollup-win32-arm64-msvc": "4.40.0", 2798 | "@rollup/rollup-win32-ia32-msvc": "4.40.0", 2799 | "@rollup/rollup-win32-x64-msvc": "4.40.0", 2800 | "fsevents": "~2.3.2" 2801 | } 2802 | }, 2803 | "node_modules/sade": { 2804 | "version": "1.8.1", 2805 | "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", 2806 | "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", 2807 | "dev": true, 2808 | "license": "MIT", 2809 | "dependencies": { 2810 | "mri": "^1.1.0" 2811 | }, 2812 | "engines": { 2813 | "node": ">=6" 2814 | } 2815 | }, 2816 | "node_modules/semver": { 2817 | "version": "7.6.3", 2818 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", 2819 | "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", 2820 | "dev": true, 2821 | "license": "ISC", 2822 | "bin": { 2823 | "semver": "bin/semver.js" 2824 | }, 2825 | "engines": { 2826 | "node": ">=10" 2827 | } 2828 | }, 2829 | "node_modules/shebang-command": { 2830 | "version": "2.0.0", 2831 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2832 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2833 | "dev": true, 2834 | "license": "MIT", 2835 | "dependencies": { 2836 | "shebang-regex": "^3.0.0" 2837 | }, 2838 | "engines": { 2839 | "node": ">=8" 2840 | } 2841 | }, 2842 | "node_modules/shebang-regex": { 2843 | "version": "3.0.0", 2844 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2845 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2846 | "dev": true, 2847 | "license": "MIT", 2848 | "engines": { 2849 | "node": ">=8" 2850 | } 2851 | }, 2852 | "node_modules/signal-exit": { 2853 | "version": "4.1.0", 2854 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 2855 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 2856 | "dev": true, 2857 | "license": "ISC", 2858 | "engines": { 2859 | "node": ">=14" 2860 | }, 2861 | "funding": { 2862 | "url": "https://github.com/sponsors/isaacs" 2863 | } 2864 | }, 2865 | "node_modules/source-map": { 2866 | "version": "0.6.1", 2867 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 2868 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 2869 | "dev": true, 2870 | "license": "BSD-3-Clause", 2871 | "engines": { 2872 | "node": ">=0.10.0" 2873 | } 2874 | }, 2875 | "node_modules/source-map-js": { 2876 | "version": "1.2.1", 2877 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 2878 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 2879 | "engines": { 2880 | "node": ">=0.10.0" 2881 | } 2882 | }, 2883 | "node_modules/sprintf-js": { 2884 | "version": "1.0.3", 2885 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2886 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 2887 | "dev": true, 2888 | "license": "BSD-3-Clause" 2889 | }, 2890 | "node_modules/string-argv": { 2891 | "version": "0.3.2", 2892 | "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", 2893 | "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", 2894 | "dev": true, 2895 | "license": "MIT", 2896 | "engines": { 2897 | "node": ">=0.6.19" 2898 | } 2899 | }, 2900 | "node_modules/string-width": { 2901 | "version": "4.2.3", 2902 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2903 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2904 | "dev": true, 2905 | "license": "MIT", 2906 | "dependencies": { 2907 | "emoji-regex": "^8.0.0", 2908 | "is-fullwidth-code-point": "^3.0.0", 2909 | "strip-ansi": "^6.0.1" 2910 | }, 2911 | "engines": { 2912 | "node": ">=8" 2913 | } 2914 | }, 2915 | "node_modules/string-width-cjs": { 2916 | "name": "string-width", 2917 | "version": "4.2.3", 2918 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2919 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2920 | "dev": true, 2921 | "license": "MIT", 2922 | "dependencies": { 2923 | "emoji-regex": "^8.0.0", 2924 | "is-fullwidth-code-point": "^3.0.0", 2925 | "strip-ansi": "^6.0.1" 2926 | }, 2927 | "engines": { 2928 | "node": ">=8" 2929 | } 2930 | }, 2931 | "node_modules/strip-ansi": { 2932 | "version": "6.0.1", 2933 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2934 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2935 | "dev": true, 2936 | "license": "MIT", 2937 | "dependencies": { 2938 | "ansi-regex": "^5.0.1" 2939 | }, 2940 | "engines": { 2941 | "node": ">=8" 2942 | } 2943 | }, 2944 | "node_modules/strip-ansi-cjs": { 2945 | "name": "strip-ansi", 2946 | "version": "6.0.1", 2947 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2948 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2949 | "dev": true, 2950 | "license": "MIT", 2951 | "dependencies": { 2952 | "ansi-regex": "^5.0.1" 2953 | }, 2954 | "engines": { 2955 | "node": ">=8" 2956 | } 2957 | }, 2958 | "node_modules/strip-json-comments": { 2959 | "version": "3.1.1", 2960 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2961 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2962 | "dev": true, 2963 | "license": "MIT", 2964 | "engines": { 2965 | "node": ">=8" 2966 | }, 2967 | "funding": { 2968 | "url": "https://github.com/sponsors/sindresorhus" 2969 | } 2970 | }, 2971 | "node_modules/supports-color": { 2972 | "version": "7.2.0", 2973 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2974 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2975 | "dev": true, 2976 | "license": "MIT", 2977 | "dependencies": { 2978 | "has-flag": "^4.0.0" 2979 | }, 2980 | "engines": { 2981 | "node": ">=8" 2982 | } 2983 | }, 2984 | "node_modules/supports-preserve-symlinks-flag": { 2985 | "version": "1.0.0", 2986 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 2987 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 2988 | "dev": true, 2989 | "license": "MIT", 2990 | "engines": { 2991 | "node": ">= 0.4" 2992 | }, 2993 | "funding": { 2994 | "url": "https://github.com/sponsors/ljharb" 2995 | } 2996 | }, 2997 | "node_modules/test-exclude": { 2998 | "version": "7.0.1", 2999 | "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", 3000 | "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", 3001 | "dev": true, 3002 | "license": "ISC", 3003 | "dependencies": { 3004 | "@istanbuljs/schema": "^0.1.2", 3005 | "glob": "^10.4.1", 3006 | "minimatch": "^9.0.4" 3007 | }, 3008 | "engines": { 3009 | "node": ">=18" 3010 | } 3011 | }, 3012 | "node_modules/tunnel": { 3013 | "version": "0.0.6", 3014 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 3015 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 3016 | "dev": true, 3017 | "license": "MIT", 3018 | "engines": { 3019 | "node": ">=0.6.11 <=0.7.0 || >=0.7.3" 3020 | } 3021 | }, 3022 | "node_modules/typescript": { 3023 | "version": "5.8.3", 3024 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", 3025 | "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", 3026 | "dev": true, 3027 | "license": "Apache-2.0", 3028 | "bin": { 3029 | "tsc": "bin/tsc", 3030 | "tsserver": "bin/tsserver" 3031 | }, 3032 | "engines": { 3033 | "node": ">=14.17" 3034 | } 3035 | }, 3036 | "node_modules/ufo": { 3037 | "version": "1.6.1", 3038 | "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", 3039 | "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==", 3040 | "dev": true, 3041 | "license": "MIT" 3042 | }, 3043 | "node_modules/undici": { 3044 | "version": "5.29.0", 3045 | "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", 3046 | "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", 3047 | "dev": true, 3048 | "license": "MIT", 3049 | "dependencies": { 3050 | "@fastify/busboy": "^2.0.0" 3051 | }, 3052 | "engines": { 3053 | "node": ">=14.0" 3054 | } 3055 | }, 3056 | "node_modules/universal-user-agent": { 3057 | "version": "6.0.1", 3058 | "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", 3059 | "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", 3060 | "dev": true, 3061 | "license": "ISC" 3062 | }, 3063 | "node_modules/universalify": { 3064 | "version": "2.0.1", 3065 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", 3066 | "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", 3067 | "dev": true, 3068 | "license": "MIT", 3069 | "engines": { 3070 | "node": ">= 10.0.0" 3071 | } 3072 | }, 3073 | "node_modules/unplugin": { 3074 | "version": "1.16.1", 3075 | "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.16.1.tgz", 3076 | "integrity": "sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==", 3077 | "dev": true, 3078 | "license": "MIT", 3079 | "dependencies": { 3080 | "acorn": "^8.14.0", 3081 | "webpack-virtual-modules": "^0.6.2" 3082 | }, 3083 | "engines": { 3084 | "node": ">=14.0.0" 3085 | } 3086 | }, 3087 | "node_modules/uri-js": { 3088 | "version": "4.4.1", 3089 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 3090 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 3091 | "dev": true, 3092 | "license": "BSD-2-Clause", 3093 | "dependencies": { 3094 | "punycode": "^2.1.0" 3095 | } 3096 | }, 3097 | "node_modules/uvu": { 3098 | "version": "0.5.6", 3099 | "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", 3100 | "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", 3101 | "dev": true, 3102 | "license": "MIT", 3103 | "dependencies": { 3104 | "dequal": "^2.0.0", 3105 | "diff": "^5.0.0", 3106 | "kleur": "^4.0.3", 3107 | "sade": "^1.7.3" 3108 | }, 3109 | "bin": { 3110 | "uvu": "bin.js" 3111 | }, 3112 | "engines": { 3113 | "node": ">=8" 3114 | } 3115 | }, 3116 | "node_modules/v8-to-istanbul": { 3117 | "version": "9.3.0", 3118 | "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", 3119 | "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", 3120 | "dev": true, 3121 | "license": "ISC", 3122 | "dependencies": { 3123 | "@jridgewell/trace-mapping": "^0.3.12", 3124 | "@types/istanbul-lib-coverage": "^2.0.1", 3125 | "convert-source-map": "^2.0.0" 3126 | }, 3127 | "engines": { 3128 | "node": ">=10.12.0" 3129 | } 3130 | }, 3131 | "node_modules/vite": { 3132 | "version": "6.2.6", 3133 | "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.6.tgz", 3134 | "integrity": "sha512-9xpjNl3kR4rVDZgPNdTL0/c6ao4km69a/2ihNQbcANz8RuCOK3hQBmLSJf3bRKVQjVMda+YvizNE8AwvogcPbw==", 3135 | "dev": true, 3136 | "license": "MIT", 3137 | "dependencies": { 3138 | "esbuild": "^0.25.0", 3139 | "postcss": "^8.5.3", 3140 | "rollup": "^4.30.1" 3141 | }, 3142 | "bin": { 3143 | "vite": "bin/vite.js" 3144 | }, 3145 | "engines": { 3146 | "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 3147 | }, 3148 | "funding": { 3149 | "url": "https://github.com/vitejs/vite?sponsor=1" 3150 | }, 3151 | "optionalDependencies": { 3152 | "fsevents": "~2.3.3" 3153 | }, 3154 | "peerDependencies": { 3155 | "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", 3156 | "jiti": ">=1.21.0", 3157 | "less": "*", 3158 | "lightningcss": "^1.21.0", 3159 | "sass": "*", 3160 | "sass-embedded": "*", 3161 | "stylus": "*", 3162 | "sugarss": "*", 3163 | "terser": "^5.16.0", 3164 | "tsx": "^4.8.1", 3165 | "yaml": "^2.4.2" 3166 | }, 3167 | "peerDependenciesMeta": { 3168 | "@types/node": { 3169 | "optional": true 3170 | }, 3171 | "jiti": { 3172 | "optional": true 3173 | }, 3174 | "less": { 3175 | "optional": true 3176 | }, 3177 | "lightningcss": { 3178 | "optional": true 3179 | }, 3180 | "sass": { 3181 | "optional": true 3182 | }, 3183 | "sass-embedded": { 3184 | "optional": true 3185 | }, 3186 | "stylus": { 3187 | "optional": true 3188 | }, 3189 | "sugarss": { 3190 | "optional": true 3191 | }, 3192 | "terser": { 3193 | "optional": true 3194 | }, 3195 | "tsx": { 3196 | "optional": true 3197 | }, 3198 | "yaml": { 3199 | "optional": true 3200 | } 3201 | } 3202 | }, 3203 | "node_modules/vite-plugin-dts": { 3204 | "version": "4.5.3", 3205 | "resolved": "https://registry.npmjs.org/vite-plugin-dts/-/vite-plugin-dts-4.5.3.tgz", 3206 | "integrity": "sha512-P64VnD00dR+e8S26ESoFELqc17+w7pKkwlBpgXteOljFyT0zDwD8hH4zXp49M/kciy//7ZbVXIwQCekBJjfWzA==", 3207 | "dev": true, 3208 | "license": "MIT", 3209 | "dependencies": { 3210 | "@microsoft/api-extractor": "^7.50.1", 3211 | "@rollup/pluginutils": "^5.1.4", 3212 | "@volar/typescript": "^2.4.11", 3213 | "@vue/language-core": "2.2.0", 3214 | "compare-versions": "^6.1.1", 3215 | "debug": "^4.4.0", 3216 | "kolorist": "^1.8.0", 3217 | "local-pkg": "^1.0.0", 3218 | "magic-string": "^0.30.17" 3219 | }, 3220 | "peerDependencies": { 3221 | "typescript": "*", 3222 | "vite": "*" 3223 | }, 3224 | "peerDependenciesMeta": { 3225 | "vite": { 3226 | "optional": true 3227 | } 3228 | } 3229 | }, 3230 | "node_modules/vscode-uri": { 3231 | "version": "3.1.0", 3232 | "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", 3233 | "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", 3234 | "dev": true, 3235 | "license": "MIT" 3236 | }, 3237 | "node_modules/webpack-virtual-modules": { 3238 | "version": "0.6.2", 3239 | "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", 3240 | "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", 3241 | "dev": true, 3242 | "license": "MIT" 3243 | }, 3244 | "node_modules/which": { 3245 | "version": "2.0.2", 3246 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 3247 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 3248 | "dev": true, 3249 | "license": "ISC", 3250 | "dependencies": { 3251 | "isexe": "^2.0.0" 3252 | }, 3253 | "bin": { 3254 | "node-which": "bin/node-which" 3255 | }, 3256 | "engines": { 3257 | "node": ">= 8" 3258 | } 3259 | }, 3260 | "node_modules/wrap-ansi": { 3261 | "version": "7.0.0", 3262 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 3263 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 3264 | "dev": true, 3265 | "license": "MIT", 3266 | "dependencies": { 3267 | "ansi-styles": "^4.0.0", 3268 | "string-width": "^4.1.0", 3269 | "strip-ansi": "^6.0.0" 3270 | }, 3271 | "engines": { 3272 | "node": ">=10" 3273 | }, 3274 | "funding": { 3275 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 3276 | } 3277 | }, 3278 | "node_modules/wrap-ansi-cjs": { 3279 | "name": "wrap-ansi", 3280 | "version": "7.0.0", 3281 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 3282 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 3283 | "dev": true, 3284 | "license": "MIT", 3285 | "dependencies": { 3286 | "ansi-styles": "^4.0.0", 3287 | "string-width": "^4.1.0", 3288 | "strip-ansi": "^6.0.0" 3289 | }, 3290 | "engines": { 3291 | "node": ">=10" 3292 | }, 3293 | "funding": { 3294 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 3295 | } 3296 | }, 3297 | "node_modules/wrappy": { 3298 | "version": "1.0.2", 3299 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3300 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 3301 | "dev": true, 3302 | "license": "ISC" 3303 | }, 3304 | "node_modules/y18n": { 3305 | "version": "5.0.8", 3306 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 3307 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 3308 | "dev": true, 3309 | "license": "ISC", 3310 | "engines": { 3311 | "node": ">=10" 3312 | } 3313 | }, 3314 | "node_modules/yallist": { 3315 | "version": "4.0.0", 3316 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 3317 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 3318 | "dev": true, 3319 | "license": "ISC" 3320 | }, 3321 | "node_modules/yargs": { 3322 | "version": "17.7.2", 3323 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 3324 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 3325 | "dev": true, 3326 | "license": "MIT", 3327 | "dependencies": { 3328 | "cliui": "^8.0.1", 3329 | "escalade": "^3.1.1", 3330 | "get-caller-file": "^2.0.5", 3331 | "require-directory": "^2.1.1", 3332 | "string-width": "^4.2.3", 3333 | "y18n": "^5.0.5", 3334 | "yargs-parser": "^21.1.1" 3335 | }, 3336 | "engines": { 3337 | "node": ">=12" 3338 | } 3339 | }, 3340 | "node_modules/yargs-parser": { 3341 | "version": "21.1.1", 3342 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 3343 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 3344 | "dev": true, 3345 | "license": "ISC", 3346 | "engines": { 3347 | "node": ">=12" 3348 | } 3349 | }, 3350 | "node_modules/zod": { 3351 | "version": "3.24.2", 3352 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", 3353 | "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", 3354 | "dev": true, 3355 | "license": "MIT", 3356 | "funding": { 3357 | "url": "https://github.com/sponsors/colinhacks" 3358 | } 3359 | } 3360 | } 3361 | } 3362 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@projectwallace/format-css", 3 | "version": "2.1.0", 4 | "description": "Fast, small, zero-config library to format or minify CSS with basic rules.", 5 | "repository": { 6 | "type": "git", 7 | "url": "git+https://github.com/projectwallace/format-css.git" 8 | }, 9 | "homepage": "https://github.com/projectwallace/format-css", 10 | "issues": "https://github.com/projectwallace/format-css/issues", 11 | "license": "MIT", 12 | "engines": { 13 | "node": ">=18.0.0" 14 | }, 15 | "type": "module", 16 | "main": "./dist/format-css.js", 17 | "exports": { 18 | "types": "./dist/index.d.ts", 19 | "default": "./dist/format-css.js" 20 | }, 21 | "types": "./dist/index.d.ts", 22 | "scripts": { 23 | "build": "vite build", 24 | "test": "c8 --reporter=lcov uvu", 25 | "check": "tsc", 26 | "prettier": "prettier --check index.js test/**/*.js" 27 | }, 28 | "devDependencies": { 29 | "@codecov/vite-plugin": "^1.9.0", 30 | "@types/css-tree": "^2.3.10", 31 | "c8": "^10.1.3", 32 | "prettier": "^3.5.3", 33 | "typescript": "^5.8.3", 34 | "uvu": "^0.5.6", 35 | "vite": "^6.2.6", 36 | "vite-plugin-dts": "^4.5.3" 37 | }, 38 | "dependencies": { 39 | "css-tree": "^3.0.1" 40 | }, 41 | "files": [ 42 | "dist" 43 | ], 44 | "keywords": [ 45 | "css", 46 | "stylesheet", 47 | "formatter", 48 | "format", 49 | "print", 50 | "prettifier", 51 | "pretty", 52 | "prettier" 53 | ], 54 | "prettier": { 55 | "semi": false, 56 | "useTabs": true, 57 | "printWidth": 140, 58 | "singleQuote": true 59 | } 60 | } -------------------------------------------------------------------------------- /test/atrules.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format, minify } from '../index.js' 4 | 5 | let test = suite('Atrules') 6 | 7 | test('AtRules start on a new line', () => { 8 | let actual = format(` 9 | @media (min-width: 1000px) { 10 | selector { property: value; } 11 | } 12 | @layer test { 13 | selector { property: value; } 14 | } 15 | `) 16 | let expected = `@media (min-width: 1000px) { 17 | selector { 18 | property: value; 19 | } 20 | } 21 | 22 | @layer test { 23 | selector { 24 | property: value; 25 | } 26 | }` 27 | 28 | assert.equal(actual, expected) 29 | }) 30 | 31 | test('Atrule blocks are surrounded by {} with correct spacing and indentation', () => { 32 | let actual = format(` 33 | @media (min-width:1000px){selector{property:value1}} 34 | 35 | @media (min-width:1000px) 36 | { 37 | selector 38 | { 39 | property:value2 40 | } 41 | }`) 42 | let expected = `@media (min-width: 1000px) { 43 | selector { 44 | property: value1; 45 | } 46 | } 47 | 48 | @media (min-width: 1000px) { 49 | selector { 50 | property: value2; 51 | } 52 | }` 53 | 54 | assert.equal(actual, expected) 55 | }) 56 | 57 | test('adds whitespace between prelude and {', () => { 58 | let actual = format(`@media all{}`) 59 | let expected = `@media all {}` 60 | assert.equal(actual, expected) 61 | }) 62 | 63 | test('collapses whitespaces in prelude', () => { 64 | let actual = format(`@media all and (min-width: 1000px) {}`) 65 | let expected = `@media all and (min-width: 1000px) {}` 66 | assert.equal(actual, expected) 67 | }) 68 | 69 | test('adds whitespace to @media (min-width:1000px)', () => { 70 | let actual = format(`@media (min-width:1000px) {}`) 71 | let expected = `@media (min-width: 1000px) {}` 72 | assert.equal(actual, expected) 73 | }) 74 | 75 | test('removes excess whitespace around min-width : 1000px', () => { 76 | let actual = format(`@media (min-width : 1000px) {}`) 77 | let expected = `@media (min-width: 1000px) {}` 78 | assert.equal(actual, expected) 79 | }) 80 | 81 | test('formats @layer with excess whitespace', () => { 82 | let actual = format(`@layer test;`) 83 | let expected = `@layer test;` 84 | assert.equal(actual, expected) 85 | }) 86 | 87 | test('adds whitespace to @layer tbody,thead', () => { 88 | let actual = format(`@layer tbody,thead;`) 89 | let expected = `@layer tbody, thead;` 90 | assert.equal(actual, expected) 91 | }) 92 | 93 | test('adds whitespace to @supports (display:grid)', () => { 94 | let actual = format(`@supports (display:grid){}`) 95 | let expected = `@supports (display: grid) {}` 96 | assert.equal(actual, expected) 97 | }) 98 | 99 | test('@media prelude formatting', () => { 100 | let fixtures = [ 101 | [`@media all and (transform-3d) {}`, `@media all and (transform-3d) {}`], 102 | [ 103 | `@media only screen and (min-width: 1024px)and (max-width: 1439px), only screen and (min-width: 768px)and (max-width: 1023px) {}`, 104 | `@media only screen and (min-width: 1024px) and (max-width: 1439px), only screen and (min-width: 768px) and (max-width: 1023px) {}`, 105 | ], 106 | [`@media (min-width: 1024px)or (max-width: 1439px) {}`, `@media (min-width: 1024px) or (max-width: 1439px) {}`], 107 | [`@media all and (transform-3d), (-webkit-transform-3d) {}`, `@media all and (transform-3d), (-webkit-transform-3d) {}`], 108 | [`@media screen or print {}`, `@media screen or print {}`], 109 | [`@media (update: slow) or (hover: none) {}`, `@media (update: slow) or (hover: none) {}`], 110 | [`@media (update: slow)or (hover: none) {}`, `@media (update: slow) or (hover: none) {}`], 111 | [ 112 | `@media all and (-moz-images-in-menus:0) and (min-resolution:.001dpcm) {}`, 113 | `@media all and (-moz-images-in-menus: 0) and (min-resolution: .001dpcm) {}`, 114 | ], 115 | [ 116 | `@media all and (-webkit-min-device-pixel-ratio: 10000),not all and (-webkit-min-device-pixel-ratio: 0) {}`, 117 | `@media all and (-webkit-min-device-pixel-ratio: 10000), not all and (-webkit-min-device-pixel-ratio: 0) {}`, 118 | ], 119 | ] 120 | 121 | for (let [css, expected] of fixtures) { 122 | let actual = format(css) 123 | assert.equal(actual, expected) 124 | } 125 | }) 126 | 127 | test('lowercases functions inside atrule preludes', () => { 128 | let actual = format(` 129 | @import URL("style.css") LAYER(test) SUPPORTS(display:grid); 130 | @supports SELECTOR([popover]:open) {} 131 | `) 132 | let expected = `@import url("style.css") layer(test) supports(display: grid); 133 | 134 | @supports selector([popover]:open) {}` 135 | assert.equal(actual, expected) 136 | }) 137 | 138 | test('formats @scope', () => { 139 | let actual = format(` 140 | @scope (.light-scheme) {} 141 | @scope (.media-object) to (.content > *) {} 142 | `) 143 | let expected = `@scope (.light-scheme) {} 144 | 145 | @scope (.media-object) to (.content > *) {}` 146 | assert.equal(actual, expected) 147 | }) 148 | 149 | test('calc() inside @media', () => { 150 | let actual = format(` 151 | @media (min-width: calc(1px*1)) {} 152 | @media (min-width: calc(2px* 2)) {} 153 | @media (min-width: calc(3px *3)) {} 154 | @media (min-width: calc(4px * 4)) {} 155 | @media (min-width: calc(5px * 5)) {} 156 | `) 157 | let expected = `@media (min-width: calc(1px * 1)) {} 158 | 159 | @media (min-width: calc(2px * 2)) {} 160 | 161 | @media (min-width: calc(3px * 3)) {} 162 | 163 | @media (min-width: calc(4px * 4)) {} 164 | 165 | @media (min-width: calc(5px * 5)) {}` 166 | assert.equal(actual, expected) 167 | }) 168 | 169 | test('minify: calc(*) inside @media', () => { 170 | let actual = minify(`@media (min-width: calc(1px*1)) {}`) 171 | let expected = `@media (min-width:calc(1px*1)){}` 172 | assert.equal(actual, expected) 173 | }) 174 | 175 | test('minify: calc(+) inside @media', () => { 176 | let actual = minify(`@media (min-width: calc(1px + 1em)) {}`) 177 | let expected = `@media (min-width:calc(1px + 1em)){}` 178 | assert.equal(actual, expected) 179 | }) 180 | 181 | test('minify: calc(-) inside @media', () => { 182 | let actual = minify(`@media (min-width: calc(1em - 1px)) {}`) 183 | let expected = `@media (min-width:calc(1em - 1px)){}` 184 | assert.equal(actual, expected) 185 | }) 186 | 187 | test('@import prelude formatting', () => { 188 | let fixtures = [ 189 | ['@import url("fineprint.css") print;', '@import url("fineprint.css") print;'], 190 | ['@import url("style.css") layer;', '@import url("style.css") layer;'], 191 | ['@import url("style.css") layer(test.first) supports(display:grid);', '@import url("style.css") layer(test.first) supports(display: grid);'], 192 | ] 193 | 194 | for (let [css, expected] of fixtures) { 195 | let actual = format(css) 196 | assert.equal(actual, expected) 197 | } 198 | }) 199 | 200 | test('@supports prelude formatting', () => { 201 | let fixtures = [ 202 | [`@supports (display:grid){}`, `@supports (display: grid) {}`], 203 | [`@supports (-webkit-appearance: none) {}`, `@supports (-webkit-appearance: none) {}`], 204 | ['@supports selector([popover]:open) {}', '@supports selector([popover]:open) {}'], 205 | ] 206 | 207 | for (let [css, expected] of fixtures) { 208 | let actual = format(css) 209 | assert.equal(actual, expected) 210 | } 211 | }) 212 | 213 | test('@layer prelude formatting', () => { 214 | let fixtures = [ 215 | [`@layer test;`, `@layer test;`], 216 | [`@layer tbody,thead;`, `@layer tbody, thead;`], 217 | ] 218 | 219 | for (let [css, expected] of fixtures) { 220 | let actual = format(css) 221 | assert.equal(actual, expected) 222 | } 223 | }) 224 | 225 | test('minify: @layer prelude formatting', () => { 226 | let fixtures = [ 227 | [`@layer test;`, `@layer test;`], 228 | [`@layer tbody,thead;`, `@layer tbody,thead;`], 229 | ] 230 | 231 | for (let [css, expected] of fixtures) { 232 | let actual = minify(css) 233 | assert.equal(actual, expected) 234 | } 235 | }) 236 | 237 | test('single empty line after a rule, before atrule', () => { 238 | let actual = format(` 239 | rule1 { property: value } 240 | @media (min-width: 1000px) { 241 | rule2 { property: value } 242 | } 243 | `) 244 | let expected = `rule1 { 245 | property: value; 246 | } 247 | 248 | @media (min-width: 1000px) { 249 | rule2 { 250 | property: value; 251 | } 252 | }` 253 | assert.equal(actual, expected) 254 | }) 255 | 256 | test('single empty line in between atrules', () => { 257 | let actual = format(` 258 | @layer test1; 259 | @media (min-width: 1000px) { 260 | rule2 { property: value } 261 | } 262 | `) 263 | let expected = `@layer test1; 264 | 265 | @media (min-width: 1000px) { 266 | rule2 { 267 | property: value; 268 | } 269 | }` 270 | assert.equal(actual, expected) 271 | }) 272 | 273 | test('newline between last declaration and nested atrule', () => { 274 | let actual = format(` 275 | test { 276 | property1: value1; 277 | @media all { 278 | property2: value2; 279 | } 280 | } 281 | `) 282 | let expected = `test { 283 | property1: value1; 284 | 285 | @media all { 286 | property2: value2; 287 | } 288 | }` 289 | assert.equal(actual, expected) 290 | }) 291 | 292 | test('lowercases the atrule name', () => { 293 | let actual = format(`@LAYER test {}`) 294 | let expected = `@layer test {}` 295 | assert.is(actual, expected) 296 | }) 297 | 298 | test('does not lowercase the atrule value', () => { 299 | let actual = format('@keyframes TEST {}') 300 | let expected = '@keyframes TEST {}' 301 | assert.is(actual, expected) 302 | }) 303 | 304 | test('Atrules w/o Block are terminated with a semicolon', () => { 305 | let actual = format(` 306 | @layer test; 307 | @import url('test'); 308 | `) 309 | let expected = `@layer test; 310 | 311 | @import url('test');` 312 | assert.is(actual, expected) 313 | }) 314 | 315 | test('Empty atrule braces are placed on the same line', () => { 316 | let actual = format(`@media all { 317 | 318 | } 319 | 320 | @supports (display: grid) {}`) 321 | let expected = `@media all {} 322 | 323 | @supports (display: grid) {}` 324 | assert.is(actual, expected) 325 | }) 326 | 327 | test('new-fangled comparators (width > 1000px)', () => { 328 | let actual = format(` 329 | @container (width>1000px) {} 330 | @media (width>1000px) {} 331 | @media (width=>1000px) {} 332 | @media (width<=1000px) {} 333 | @media (200px 1000px) {} 336 | 337 | @media (width > 1000px) {} 338 | 339 | @media (width => 1000px) {} 340 | 341 | @media (width <= 1000px) {} 342 | 343 | @media (200px < width < 1000px) {}` 344 | assert.is(actual, expected) 345 | }) 346 | 347 | test('minify: new-fangled comparators (width > 1000px)', () => { 348 | let actual = minify(`@container (width>1000px) {}`) 349 | let expected = `@container (width>1000px){}` 350 | assert.is(actual, expected) 351 | }) 352 | 353 | test.skip('preserves comments', () => { 354 | let actual = format(` 355 | @media /* comment */ all {} 356 | @media all /* comment */ {} 357 | @media (min-width: 1000px /* comment */) {} 358 | @media (/* comment */ min-width: 1000px) {} 359 | @layer /* comment */ {} 360 | `) 361 | let expected = `@media /* comment */ all {} 362 | 363 | @media all /* comment */ {} 364 | 365 | @media (min-width: 1000px /* comment */) {} 366 | 367 | @media (/* comment */ min-width: 1000px) {} 368 | 369 | @layer /* comment */ {} 370 | ` 371 | assert.is(actual, expected) 372 | }) 373 | 374 | test.run() 375 | -------------------------------------------------------------------------------- /test/comments.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Comments') 6 | 7 | test('only comment', () => { 8 | let actual = format(`/* comment */`) 9 | let expected = `/* comment */` 10 | assert.is(actual, expected) 11 | }) 12 | 13 | test('bang comment before rule', () => { 14 | let actual = format(` 15 | /*! comment */ 16 | selector {} 17 | `) 18 | let expected = `/*! comment */ 19 | 20 | selector {}` 21 | assert.is(actual, expected) 22 | }) 23 | 24 | test('before selectors', () => { 25 | let actual = format(` 26 | /* comment */ 27 | selector1, 28 | selector2 { 29 | property: value; 30 | } 31 | `) 32 | let expected = `/* comment */ 33 | selector1, 34 | selector2 { 35 | property: value; 36 | }` 37 | assert.is(actual, expected) 38 | }) 39 | 40 | test('before nested selectors', () => { 41 | let actual = format(` 42 | a { 43 | /* comment */ 44 | & nested1, 45 | & nested2 { 46 | property: value; 47 | } 48 | } 49 | `) 50 | let expected = `a { 51 | /* comment */ 52 | & nested1, 53 | & nested2 { 54 | property: value; 55 | } 56 | }` 57 | assert.is(actual, expected) 58 | }) 59 | 60 | test('after selectors', () => { 61 | let actual = format(` 62 | selector1, 63 | selector2 64 | /* comment */ { 65 | property: value; 66 | } 67 | `) 68 | let expected = `selector1, 69 | selector2 70 | /* comment */ { 71 | property: value; 72 | }` 73 | assert.is(actual, expected) 74 | }) 75 | 76 | test('in between selectors', () => { 77 | let actual = format(` 78 | selector1, 79 | /* comment */ 80 | selector2 { 81 | property: value; 82 | } 83 | `) 84 | let expected = `selector1, 85 | /* comment */ 86 | selector2 { 87 | property: value; 88 | }` 89 | assert.is(actual, expected) 90 | }) 91 | 92 | test('in between nested selectors', () => { 93 | let actual = format(` 94 | a { 95 | & nested1, 96 | /* comment */ 97 | & nested2 { 98 | property: value; 99 | } 100 | } 101 | `) 102 | let expected = `a { 103 | & nested1, 104 | /* comment */ 105 | & nested2 { 106 | property: value; 107 | } 108 | }` 109 | assert.is(actual, expected) 110 | }) 111 | 112 | test('as first child in rule', () => { 113 | let actual = format(` 114 | selector { 115 | /* comment */ 116 | property: value; 117 | } 118 | `) 119 | let expected = `selector { 120 | /* comment */ 121 | property: value; 122 | }` 123 | assert.is(actual, expected) 124 | }) 125 | 126 | test('as last child in rule', () => { 127 | let actual = format(` 128 | selector { 129 | property: value; 130 | /* comment */ 131 | } 132 | `) 133 | let expected = `selector { 134 | property: value; 135 | /* comment */ 136 | }` 137 | assert.is(actual, expected) 138 | }) 139 | 140 | test('as last child in nested rule', () => { 141 | let actual = format(` 142 | a { 143 | & selector { 144 | property: value; 145 | /* comment */ 146 | } 147 | } 148 | `) 149 | let expected = `a { 150 | & selector { 151 | property: value; 152 | /* comment */ 153 | } 154 | }` 155 | assert.is(actual, expected) 156 | }) 157 | 158 | test('as only child in rule', () => { 159 | let actual = format(` 160 | selector { 161 | /* comment */ 162 | } 163 | `) 164 | let expected = `selector { 165 | /* comment */ 166 | }` 167 | assert.is(actual, expected) 168 | }) 169 | 170 | test('as only child in nested rule', () => { 171 | let actual = format(`a { 172 | & selector { 173 | /* comment */ 174 | } 175 | }`) 176 | let expected = `a { 177 | & selector { 178 | /* comment */ 179 | } 180 | }` 181 | assert.is(actual, expected) 182 | }) 183 | 184 | test('in between declarations', () => { 185 | let actual = format(` 186 | selector { 187 | property: value; 188 | /* comment */ 189 | property: value; 190 | } 191 | `) 192 | let expected = `selector { 193 | property: value; 194 | /* comment */ 195 | property: value; 196 | }` 197 | assert.is(actual, expected) 198 | }) 199 | 200 | test('in between nested declarations', () => { 201 | let actual = format(` 202 | a { 203 | & selector { 204 | property: value; 205 | /* comment */ 206 | property: value; 207 | } 208 | } 209 | `) 210 | let expected = `a { 211 | & selector { 212 | property: value; 213 | /* comment */ 214 | property: value; 215 | } 216 | }` 217 | assert.is(actual, expected) 218 | }) 219 | 220 | test('as first child in atrule', () => { 221 | let actual = format(` 222 | @media (min-width: 1000px) { 223 | /* comment */ 224 | selector { 225 | property: value; 226 | } 227 | } 228 | `) 229 | let expected = `@media (min-width: 1000px) { 230 | /* comment */ 231 | selector { 232 | property: value; 233 | } 234 | }` 235 | assert.is(actual, expected) 236 | }) 237 | 238 | test('as first child in nested atrule', () => { 239 | let actual = format(` 240 | @media all { 241 | @media (min-width: 1000px) { 242 | /* comment */ 243 | selector { 244 | property: value; 245 | } 246 | } 247 | } 248 | `) 249 | let expected = `@media all { 250 | @media (min-width: 1000px) { 251 | /* comment */ 252 | selector { 253 | property: value; 254 | } 255 | } 256 | }` 257 | assert.is(actual, expected) 258 | }) 259 | 260 | test('as last child in atrule', () => { 261 | let actual = format(` 262 | @media (min-width: 1000px) { 263 | selector { 264 | property: value; 265 | } 266 | /* comment */ 267 | } 268 | `) 269 | let expected = `@media (min-width: 1000px) { 270 | selector { 271 | property: value; 272 | } 273 | /* comment */ 274 | }` 275 | assert.is(actual, expected) 276 | }) 277 | 278 | test('as last child in nested atrule', () => { 279 | let actual = format(` 280 | @media all { 281 | @media (min-width: 1000px) { 282 | selector { 283 | property: value; 284 | } 285 | /* comment */ 286 | } 287 | } 288 | `) 289 | let expected = `@media all { 290 | @media (min-width: 1000px) { 291 | selector { 292 | property: value; 293 | } 294 | /* comment */ 295 | } 296 | }` 297 | assert.is(actual, expected) 298 | }) 299 | 300 | test('as only child in atrule', () => { 301 | let actual = format(` 302 | @media (min-width: 1000px) { 303 | /* comment */ 304 | } 305 | `) 306 | let expected = `@media (min-width: 1000px) { 307 | /* comment */ 308 | }` 309 | assert.is(actual, expected) 310 | }) 311 | 312 | test('as only child in nested atrule', () => { 313 | let actual = format(` 314 | @media all { 315 | @media (min-width: 1000px) { 316 | /* comment */ 317 | } 318 | } 319 | `) 320 | let expected = `@media all { 321 | @media (min-width: 1000px) { 322 | /* comment */ 323 | } 324 | }` 325 | assert.is(actual, expected) 326 | }) 327 | 328 | test('in between rules and atrules', () => { 329 | let actual = format(` 330 | /* comment 1 */ 331 | selector {} 332 | /* comment 2 */ 333 | @media (min-width: 1000px) { 334 | /* comment 3 */ 335 | selector {} 336 | /* comment 4 */ 337 | } 338 | /* comment 5 */ 339 | `) 340 | let expected = `/* comment 1 */ 341 | selector {} 342 | /* comment 2 */ 343 | @media (min-width: 1000px) { 344 | /* comment 3 */ 345 | selector {} 346 | /* comment 4 */ 347 | } 348 | /* comment 5 */` 349 | assert.is(actual, expected) 350 | }) 351 | 352 | test('comment before rule and atrule should not be separated by newline', () => { 353 | let actual = format(` 354 | /* comment 1 */ 355 | selector {} 356 | 357 | /* comment 2 */ 358 | @media (min-width: 1000px) { 359 | /* comment 3 */ 360 | 361 | selector {} 362 | /* comment 4 */ 363 | } 364 | `) 365 | let expected = `/* comment 1 */ 366 | selector {} 367 | /* comment 2 */ 368 | @media (min-width: 1000px) { 369 | /* comment 3 */ 370 | selector {} 371 | /* comment 4 */ 372 | }` 373 | assert.is(actual, expected) 374 | }) 375 | 376 | test('a declaration after multiple comments starts on a new line', () => { 377 | let actual = format(` 378 | selector { 379 | /* comment 1 */ 380 | /* comment 2 */ 381 | --custom-property: value; 382 | 383 | /* comment 3 */ 384 | /* comment 4 */ 385 | --custom-property: value; 386 | 387 | /* comment 5 */ 388 | /* comment 6 */ 389 | --custom-property: value; 390 | } 391 | `) 392 | let expected = `selector { 393 | /* comment 1 */ 394 | /* comment 2 */ 395 | --custom-property: value; 396 | /* comment 3 */ 397 | /* comment 4 */ 398 | --custom-property: value; 399 | /* comment 5 */ 400 | /* comment 6 */ 401 | --custom-property: value; 402 | }` 403 | assert.is(actual, expected) 404 | }) 405 | 406 | test('multiple comments in between rules and atrules', () => { 407 | let actual = format(` 408 | /* comment 1 */ 409 | /* comment 1.1 */ 410 | selector {} 411 | /* comment 2 */ 412 | /* comment 2.1 */ 413 | @media (min-width: 1000px) { 414 | /* comment 3 */ 415 | /* comment 3.1 */ 416 | selector {} 417 | /* comment 4 */ 418 | /* comment 4.1 */ 419 | } 420 | /* comment 5 */ 421 | /* comment 5.1 */ 422 | `) 423 | let expected = `/* comment 1 */ 424 | /* comment 1.1 */ 425 | selector {} 426 | /* comment 2 */ 427 | /* comment 2.1 */ 428 | @media (min-width: 1000px) { 429 | /* comment 3 */ 430 | /* comment 3.1 */ 431 | selector {} 432 | /* comment 4 */ 433 | /* comment 4.1 */ 434 | } 435 | /* comment 5 */ 436 | /* comment 5.1 */` 437 | assert.is(actual, expected) 438 | }) 439 | 440 | test('puts every comment on a new line', () => { 441 | let actual = format(` 442 | x { 443 | /*--font-family: inherit;*/ /*--font-style: normal;*/ 444 | --border-top-color: var(--root-color--support); 445 | } 446 | `) 447 | let expected = `x { 448 | /*--font-family: inherit;*/ 449 | /*--font-style: normal;*/ 450 | --border-top-color: var(--root-color--support); 451 | }` 452 | assert.is(actual, expected) 453 | }) 454 | 455 | test('in @media prelude', () => { 456 | // from CSSTree https://github.com/csstree/csstree/blob/ba6dfd8bb0e33055c05f13803d04825d98dd2d8d/fixtures/ast/mediaQuery/MediaQuery.json#L147 457 | let actual = format('@media all /*0*/ (/*1*/foo/*2*/:/*3*/1/*4*/) {}') 458 | let expected = '@media all /*0*/ (/*1*/foo/*2*/: /*3*/1/*4*/) {}' 459 | assert.is(actual, expected) 460 | }) 461 | 462 | test('in @supports prelude', () => { 463 | // from CSSTree https://github.com/csstree/csstree/blob/ba6dfd8bb0e33055c05f13803d04825d98dd2d8d/fixtures/ast/atrule/atrule/supports.json#L119 464 | let actual = format('@supports not /*0*/(/*1*/flex :/*3*/1/*4*/)/*5*/{}') 465 | let expected = '@supports not /*0*/(/*1*/flex: /*3*/1/*4*/)/*5*/ {}' 466 | assert.is(actual, expected) 467 | }) 468 | 469 | test('skip in @import prelude before specifier', () => { 470 | let actual = format('@import /*test*/"foo";') 471 | let expected = '@import "foo";' 472 | assert.is(actual, expected) 473 | }) 474 | 475 | test('in @import prelude after specifier', () => { 476 | let actual = format('@import "foo"/*test*/;') 477 | let expected = '@import "foo"/*test*/;' 478 | assert.is(actual, expected) 479 | }) 480 | 481 | test('skip in selector combinator', () => { 482 | let actual = format(` 483 | a/*test*/ /*test*/b, 484 | a/*test*/+/*test*/b {} 485 | `) 486 | let expected = `a b, 487 | a + b {}` 488 | assert.is(actual, expected) 489 | }) 490 | 491 | test('in attribute selector', () => { 492 | let actual = format(`[/*test*/a/*test*/=/*test*/'b'/*test*/i/*test*/]`) 493 | let expected = `[/*test*/a/*test*/=/*test*/'b'/*test*/i/*test*/]` 494 | assert.is(actual, expected) 495 | }) 496 | 497 | test('skip in var() with fallback', () => { 498 | let actual = format(`a { prop: var( /* 1 */ --name /* 2 */ , /* 3 */ 1 /* 4 */ ) }`) 499 | let expected = `a { 500 | prop: var(--name, 1); 501 | }` 502 | assert.is(actual, expected) 503 | }) 504 | 505 | test('skip in custom property declaration (space toggle)', () => { 506 | let actual = format(`a { --test: /*test*/; }`) 507 | let expected = `a { 508 | --test: ; 509 | }` 510 | assert.is(actual, expected) 511 | }) 512 | 513 | test('before value', () => { 514 | let actual = format(`a { prop: /*test*/value; }`) 515 | let expected = `a { 516 | prop: value; 517 | }` 518 | assert.is(actual, expected) 519 | }) 520 | 521 | test('after value', () => { 522 | let actual = format(`a { 523 | prop: value/*test*/; 524 | }`) 525 | let expected = `a { 526 | prop: value; 527 | }` 528 | assert.is(actual, expected) 529 | }) 530 | 531 | test('skip in value functions', () => { 532 | let actual = format(` 533 | a { 534 | background-image: linear-gradient(/* comment */red, green); 535 | background-image: linear-gradient(red/* comment */, green); 536 | background-image: linear-gradient(red, green/* comment */); 537 | background-image: linear-gradient(red, green)/* comment */ 538 | } 539 | `) 540 | let expected = `a { 541 | background-image: linear-gradient(red, green); 542 | background-image: linear-gradient(red, green); 543 | background-image: linear-gradient(red, green); 544 | background-image: linear-gradient(red, green); 545 | }` 546 | assert.is(actual, expected) 547 | }) 548 | 549 | test('strips comments in minification mode', () => { 550 | let actual = format(` 551 | /* comment 1 */ 552 | selector {} 553 | /* comment 2 */ 554 | @media (min-width: 1000px) { 555 | /* comment 3 */ 556 | selector {} 557 | /* comment 4 */ 558 | } 559 | /* comment 5 */ 560 | `, { minify: true }) 561 | let expected = `selector{}@media (min-width:1000px){selector{}}` 562 | assert.is(actual, expected) 563 | }) 564 | 565 | test.run() 566 | -------------------------------------------------------------------------------- /test/declarations.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Declarations') 6 | 7 | test('Declarations end with a semicolon (;)', () => { 8 | let actual = format(` 9 | @font-face { 10 | src: url('test'); 11 | font-family: Test 12 | } 13 | 14 | css { 15 | property1: value1; 16 | property2: value2; 17 | 18 | & .nested { 19 | property1: value3; 20 | property2: value4 21 | } 22 | } 23 | 24 | @media (min-width: 1000px) { 25 | @layer test { 26 | css { 27 | property1: value5 28 | } 29 | } 30 | } 31 | `) 32 | let expected = `@font-face { 33 | src: url("test"); 34 | font-family: Test; 35 | } 36 | 37 | css { 38 | property1: value1; 39 | property2: value2; 40 | 41 | & .nested { 42 | property1: value3; 43 | property2: value4; 44 | } 45 | } 46 | 47 | @media (min-width: 1000px) { 48 | @layer test { 49 | css { 50 | property1: value5; 51 | } 52 | } 53 | }` 54 | 55 | assert.equal(actual, expected) 56 | }) 57 | 58 | test('lowercases properties', () => { 59 | let actual = format(`a { COLOR: green }`) 60 | let expected = `a { 61 | color: green; 62 | }` 63 | assert.is(actual, expected) 64 | }) 65 | 66 | test('does not lowercase custom properties', () => { 67 | let actual = format(`a { 68 | --myVar: 1; 69 | }`) 70 | let expected = `a { 71 | --myVar: 1; 72 | }` 73 | assert.is(actual, expected) 74 | }) 75 | 76 | test('!important is added', () => { 77 | let actual = format(`a { color: green !important}`) 78 | let expected = `a { 79 | color: green !important; 80 | }` 81 | assert.is(actual, expected) 82 | }) 83 | 84 | test('!important is lowercase', () => { 85 | let actual = format(`a { color: green !IMPORTANT }`) 86 | let expected = `a { 87 | color: green !important; 88 | }` 89 | assert.is(actual, expected) 90 | }) 91 | 92 | test('browserhack !ie is printed', () => { 93 | let actual = format(`a { color: green !ie}`) 94 | let expected = `a { 95 | color: green !ie; 96 | }` 97 | assert.is(actual, expected) 98 | }) 99 | 100 | test('browserhack !IE is lowercased', () => { 101 | let actual = format(`a { color: green !IE}`) 102 | let expected = `a { 103 | color: green !ie; 104 | }` 105 | assert.is(actual, expected) 106 | }) 107 | 108 | test.run() 109 | -------------------------------------------------------------------------------- /test/minify.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { minify } from '../index.js' 4 | 5 | let test = suite('Minify') 6 | 7 | test('empty rule', () => { 8 | let actual = minify(`a {}`) 9 | let expected = `a{}` 10 | assert.equal(actual, expected) 11 | }) 12 | 13 | test('simple declaration', () => { 14 | let actual = minify(`:root { --color: red; }`) 15 | let expected = `:root{--color:red}` 16 | assert.equal(actual, expected) 17 | }) 18 | 19 | test('simple atrule', () => { 20 | let actual = minify(`@media (min-width: 100px) { body { color: red; } }`) 21 | let expected = `@media (min-width: 100px){body{color:red}}` 22 | assert.equal(actual, expected) 23 | }) 24 | 25 | test('empty atrule', () => { 26 | let actual = minify(`@media (min-width: 100px) {}`) 27 | let expected = `@media (min-width: 100px){}` 28 | assert.equal(actual, expected) 29 | }) 30 | 31 | test('formats multiline values on a single line', () => { 32 | let actual = minify(` 33 | a { 34 | background: linear-gradient( 35 | red, 36 | 10% blue, 37 | 20% green,100% yellow); 38 | } 39 | `) 40 | let expected = `a{background:linear-gradient(red,10% blue,20% green,100% yellow)}` 41 | assert.equal(actual, expected) 42 | }) 43 | 44 | test('correctly minifies operators', () => { 45 | let actual = minify(`a { width: calc(100% - 10px); height: calc(100 * 1%); }`) 46 | let expected = `a{width:calc(100% - 10px);height:calc(100*1%)}` 47 | assert.equal(actual, expected) 48 | }) 49 | 50 | test('correctly minifiers modern colors', () => { 51 | let actual = minify(`a { color: rgb(0 0 0 / 0.1); }`) 52 | let expected = `a{color:rgb(0 0 0/0.1)}` 53 | assert.equal(actual, expected) 54 | }) 55 | 56 | test('Vadim Makeevs example works', () => { 57 | let actual = minify(` 58 | @layer what { 59 | @container (width > 0) { 60 | ul:has(:nth-child(1 of li)) { 61 | @media (height > 0) { 62 | &:hover { 63 | --is: this; 64 | } 65 | } 66 | } 67 | } 68 | } 69 | `) 70 | let expected = `@layer what{@container (width > 0){ul:has(:nth-child(1 of li)){@media (height > 0){&:hover{--is:this}}}}}` 71 | assert.equal(actual, expected) 72 | }) 73 | 74 | test('minified Vadims example', () => { 75 | let actual = minify(`@layer what{@container (width>0){@media (min-height:.001px){ul:has(:nth-child(1 of li)):hover{--is:this}}}}`) 76 | let expected = `@layer what{@container (width > 0){@media (min-height: .001px){ul:has(:nth-child(1 of li)):hover{--is:this}}}}` 77 | assert.equal(actual, expected) 78 | }) 79 | 80 | test('removes whitespace before !important', () => { 81 | let actual = minify(`a { color: green !important }`) 82 | let expected = `a{color:green!important}` 83 | assert.equal(actual, expected) 84 | }) 85 | 86 | test.only('minifies complex selectors', () => { 87 | let actual = minify(`:is(a, b) { color: green }`) 88 | let expected = `:is(a,b){color:green}` 89 | assert.equal(actual, expected) 90 | }) 91 | 92 | test.run() 93 | -------------------------------------------------------------------------------- /test/rules.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Rules') 6 | 7 | test('AtRules and Rules start on a new line', () => { 8 | let actual = format(` 9 | selector { property: value; } 10 | @media (min-width: 1000px) { 11 | selector { property: value; } 12 | } 13 | selector { property: value; } 14 | @layer test { 15 | selector { property: value; } 16 | } 17 | `) 18 | let expected = `selector { 19 | property: value; 20 | } 21 | 22 | @media (min-width: 1000px) { 23 | selector { 24 | property: value; 25 | } 26 | } 27 | 28 | selector { 29 | property: value; 30 | } 31 | 32 | @layer test { 33 | selector { 34 | property: value; 35 | } 36 | }` 37 | 38 | assert.equal(actual, expected) 39 | }) 40 | 41 | test('An empty line is rendered in between Rules', () => { 42 | let actual = format(` 43 | rule1 { property: value } 44 | rule2 { property: value } 45 | `) 46 | let expected = `rule1 { 47 | property: value; 48 | } 49 | 50 | rule2 { 51 | property: value; 52 | }` 53 | assert.equal(actual, expected) 54 | }) 55 | 56 | test('single empty line after a rule, before atrule', () => { 57 | let actual = format(` 58 | rule1 { property: value } 59 | @media (min-width: 1000px) { 60 | rule2 { property: value } 61 | } 62 | `) 63 | let expected = `rule1 { 64 | property: value; 65 | } 66 | 67 | @media (min-width: 1000px) { 68 | rule2 { 69 | property: value; 70 | } 71 | }` 72 | assert.equal(actual, expected) 73 | }) 74 | 75 | test('newline between last declaration and nested ruleset', () => { 76 | let actual = format(` 77 | test { 78 | property1: value1; 79 | & > item { 80 | property2: value2; 81 | & + another { 82 | property3: value3; 83 | } 84 | } 85 | } 86 | `) 87 | let expected = `test { 88 | property1: value1; 89 | 90 | & > item { 91 | property2: value2; 92 | 93 | & + another { 94 | property3: value3; 95 | } 96 | } 97 | }` 98 | assert.equal(actual, expected) 99 | }) 100 | 101 | test('newline between last declaration and nested atrule', () => { 102 | let actual = format(` 103 | test { 104 | property1: value1; 105 | @media all { 106 | property2: value2; 107 | } 108 | } 109 | `) 110 | let expected = `test { 111 | property1: value1; 112 | 113 | @media all { 114 | property2: value2; 115 | } 116 | }` 117 | assert.equal(actual, expected) 118 | }) 119 | 120 | test('no trailing newline on empty nested rule', () => { 121 | let actual = format(` 122 | @layer test { 123 | empty {} 124 | } 125 | `) 126 | let expected = `@layer test { 127 | empty {} 128 | }` 129 | assert.equal(actual, expected) 130 | }) 131 | 132 | test('formats nested rules with selectors starting with', () => { 133 | let actual = format(` 134 | selector { 135 | & > item { 136 | property: value; 137 | } 138 | } 139 | `) 140 | let expected = `selector { 141 | & > item { 142 | property: value; 143 | } 144 | }` 145 | assert.equal(actual, expected) 146 | }) 147 | 148 | test('newlines between declarations, nested rules and more declarations', () => { 149 | let actual = format(`a { font: 0/0; & b { color: red; } color: green;}`) 150 | let expected = `a { 151 | font: 0/0; 152 | 153 | & b { 154 | color: red; 155 | } 156 | 157 | color: green; 158 | }` 159 | assert.equal(actual, expected) 160 | }) 161 | 162 | test('formats nested rules with a selector starting with &', () => { 163 | let actual = format(` 164 | selector { 165 | & a { color: red; } 166 | } 167 | `) 168 | let expected = `selector { 169 | & a { 170 | color: red; 171 | } 172 | }` 173 | assert.equal(actual, expected) 174 | }) 175 | 176 | test('formats unknown stuff in curly braces', () => { 177 | let actual = format(` 178 | selector { 179 | { color: red; } 180 | } 181 | `) 182 | let expected = `selector { 183 | { color: red; } 184 | }` 185 | assert.is(actual, expected) 186 | }) 187 | 188 | test('[check broken test] Relaxed nesting: formats nested rules with a selector with a &', () => { 189 | let actual = format(` 190 | selector { 191 | a & { color:red } 192 | } 193 | `) 194 | let expected = `selector { 195 | a & { color:red } 196 | }` 197 | assert.equal(actual, expected) 198 | }) 199 | 200 | test.skip('Relaxed nesting: formats nested rules with a selector with a &', () => { 201 | let actual = format(` 202 | selector { 203 | a & { color:red } 204 | } 205 | `) 206 | let expected = `selector { 207 | a & { 208 | color: red; 209 | } 210 | }` 211 | assert.equal(actual, expected) 212 | }) 213 | 214 | test('[check broken test] Relaxed nesting: formats nested rules with a selector without a &', () => { 215 | let actual = format(` 216 | selector { 217 | a { color:red } 218 | } 219 | `) 220 | let expected = `selector { 221 | a { color:red } 222 | }` 223 | assert.equal(actual, expected) 224 | }) 225 | 226 | test.skip('Relaxed nesting: formats nested rules with a selector without a &', () => { 227 | let actual = format(` 228 | selector { 229 | a { color:red } 230 | } 231 | `) 232 | let expected = `selector { 233 | a { 234 | color: red; 235 | } 236 | }` 237 | assert.equal(actual, expected) 238 | }) 239 | 240 | test('[check broken test] Relaxed nesting: formats nested rules with a selector starting with a selector combinator', () => { 241 | let actual = format(` 242 | selector { 243 | > a { color:red } 244 | ~ a { color:red } 245 | + a { color:red } 246 | } 247 | `) 248 | let expected = `selector { 249 | > a { color:red } 250 | ~ a { color:red } 251 | + a { color:red } 252 | }` 253 | assert.equal(actual, expected) 254 | }) 255 | 256 | test.skip('Relaxed nesting: formats nested rules with a selector starting with a selector combinator', () => { 257 | let actual = format(` 258 | selector { 259 | > a { color:red } 260 | ~ a { color:red } 261 | + a { color:red } 262 | } 263 | `) 264 | let expected = `selector { 265 | > a { 266 | color: red; 267 | } 268 | 269 | ~ a { 270 | color: red; 271 | } 272 | 273 | + a { 274 | color: red; 275 | } 276 | }` 277 | assert.equal(actual, expected) 278 | }) 279 | 280 | test.run() 281 | -------------------------------------------------------------------------------- /test/selectors.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Selectors') 6 | 7 | test('A single selector is rendered without a trailing comma', () => { 8 | let actual = format('a {}') 9 | let expected = 'a {}' 10 | assert.is(actual, expected) 11 | }) 12 | 13 | test('Multiple selectors are placed on a new line, separated by commas', () => { 14 | let actual = format(` 15 | selector1, 16 | selector1a, 17 | selector1b, 18 | selector1aa, 19 | selector2, 20 | 21 | selector3 { 22 | } 23 | `) 24 | let expected = `selector1, 25 | selector1a, 26 | selector1b, 27 | selector1aa, 28 | selector2, 29 | selector3 {}` 30 | 31 | assert.equal(actual, expected) 32 | }) 33 | 34 | test('formats multiline selectors on a single line', () => { 35 | let actual = format(` 36 | a.b 37 | .c .d 38 | .e .f { 39 | color: green } 40 | `) 41 | let expected = `a.b .c .d .e .f { 42 | color: green; 43 | }` 44 | assert.equal(actual, expected) 45 | }) 46 | 47 | test('formats simple selector combinators', () => { 48 | let actual = format(` 49 | a>b, 50 | a>b~c d, 51 | .article-content ol li>* {} 52 | `) 53 | let expected = `a > b, 54 | a > b ~ c d, 55 | .article-content ol li > * {}` 56 | assert.equal(actual, expected) 57 | }) 58 | 59 | test('lowercases type selectors', () => { 60 | let actual = format(` 61 | A, 62 | B, 63 | C {} 64 | `) 65 | let expected = `a, 66 | b, 67 | c {}` 68 | assert.equal(actual, expected) 69 | }) 70 | 71 | test('formats nested selector combinators', () => { 72 | let fixtures = [ 73 | [`:where(a+b) {}`, `:where(a + b) {}`], 74 | [`:where(:is(ol,ul)) {}`, `:where(:is(ol, ul)) {}`], 75 | [`li:nth-of-type(1) {}`, `li:nth-of-type(1) {}`], 76 | [`li:nth-of-type(2n) {}`, `li:nth-of-type(2n) {}`], 77 | ] 78 | 79 | for (let [css, expected] of fixtures) { 80 | let actual = format(css) 81 | assert.equal(actual, expected) 82 | } 83 | }) 84 | 85 | test('formats pseudo selectors', () => { 86 | let css = ` 87 | a::before, 88 | a::after, 89 | b:before, 90 | b:after, 91 | c::first-letter {} 92 | ` 93 | let expected = `a::before, 94 | a::after, 95 | b::before, 96 | b::after, 97 | c::first-letter {}` 98 | 99 | let actual = format(css) 100 | assert.equal(actual, expected) 101 | }) 102 | 103 | test('formats pseudo elements with odd casing', () => { 104 | let css = ` 105 | a::Before, 106 | a::After, 107 | b:Before, 108 | b:After, 109 | c:After, 110 | d::First-letter {} 111 | ` 112 | let expected = `a::before, 113 | a::after, 114 | b::before, 115 | b::after, 116 | c::after, 117 | d::first-letter {}` 118 | 119 | let actual = format(css) 120 | assert.equal(actual, expected) 121 | }) 122 | 123 | test('formats selectors with Nth', () => { 124 | let fixtures = [ 125 | [`li:nth-child(3n-2) {}`, `li:nth-child(3n -2) {}`], 126 | [`li:nth-child(0n+1) {}`, `li:nth-child(0n + 1) {}`], 127 | [`li:nth-child(even of .noted) {}`, `li:nth-child(even of .noted) {}`], 128 | [`li:nth-child(2n of .noted) {}`, `li:nth-child(2n of .noted) {}`], 129 | [`li:nth-child(-n + 3 of .noted) {}`, `li:nth-child(-1n + 3 of .noted) {}`], 130 | [`li:nth-child(-n+3 of li.important) {}`, `li:nth-child(-1n + 3 of li.important) {}`], 131 | [`p:nth-child(n+8):nth-child(-n+15) {}`, `p:nth-child(1n + 8):nth-child(-1n + 15) {}`], 132 | ] 133 | 134 | for (let [css, expected] of fixtures) { 135 | let actual = format(css) 136 | assert.equal(actual, expected) 137 | } 138 | }) 139 | 140 | test('formats multiline selectors', () => { 141 | let actual = format(` 142 | a:is( 143 | a, 144 | b, 145 | c 146 | ) {} 147 | `) 148 | let expected = `a:is(a, b, c) {}` 149 | assert.is(actual, expected) 150 | }) 151 | 152 | test('forces attribute selectors to have quoted values', () => { 153 | let actual = format(` 154 | [title=foo], 155 | [title="bar"], 156 | [title='baz'] {} 157 | `) 158 | let expected = `[title="foo"], 159 | [title="bar"], 160 | [title="baz"] {}` 161 | assert.is(actual, expected) 162 | }) 163 | 164 | test('adds a space before attribute selector flags', () => { 165 | let actual = format(` 166 | [title="foo" i], 167 | [title="baz"i], 168 | [title=foo i] {} 169 | `) 170 | let expected = `[title="foo" i], 171 | [title="baz" i], 172 | [title="foo" i] {}` 173 | assert.is(actual, expected) 174 | }) 175 | 176 | test('formats :lang correctly', () => { 177 | let actual = format(`:lang("nl","de"),li:nth-child() {}`) 178 | let expected = `:lang("nl","de"), 179 | li:nth-child() {}` 180 | assert.equal(actual, expected) 181 | }) 182 | 183 | test(`formats ::highlight and ::highlight(Name) correctly`, () => { 184 | let actual = format(`::highlight,::highlight(Name),::highlight(my-thing) {}`) 185 | let expected = `::highlight, 186 | ::highlight(Name), 187 | ::highlight(my-thing) {}` 188 | assert.equal(actual, expected) 189 | }) 190 | 191 | test('formats unknown pseudos correctly', () => { 192 | let actual = format(` 193 | ::foo-bar, 194 | :unkown-thing(), 195 | :unnowkn(kjsa.asddk,asd) {} 196 | `) 197 | let expected = `::foo-bar, 198 | :unkown-thing(), 199 | :unnowkn(kjsa.asddk,asd) {}` 200 | assert.equal(actual, expected) 201 | }) 202 | 203 | test.run() 204 | -------------------------------------------------------------------------------- /test/tab-size.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Tab Size') 6 | 7 | let fixture = ` 8 | selector { 9 | color: red; 10 | } 11 | ` 12 | 13 | test('tab_size: 2', () => { 14 | let actual = format(` 15 | selector { 16 | color: red; 17 | } 18 | 19 | @media (min-width: 100px) { 20 | selector { 21 | color: blue; 22 | } 23 | } 24 | `, { tab_size: 2 }) 25 | let expected = `selector { 26 | color: red; 27 | } 28 | 29 | @media (min-width: 100px) { 30 | selector { 31 | color: blue; 32 | } 33 | }` 34 | assert.equal(actual, expected) 35 | }) 36 | 37 | test('invalid tab_size: 0', () => { 38 | assert.throws(() => format(fixture, { tab_size: 0 })) 39 | }) 40 | 41 | test('invalid tab_size: negative', () => { 42 | assert.throws(() => format(fixture, { tab_size: -1 })) 43 | }) 44 | 45 | test('combine tab_size and minify', () => { 46 | let actual = format(fixture, { 47 | tab_size: 2, 48 | minify: true 49 | }) 50 | let expected = `selector{color:red}` 51 | assert.equal(actual, expected) 52 | }) 53 | 54 | test.run() 55 | -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Stylesheet') 6 | 7 | test('empty input', () => { 8 | let actual = format(``) 9 | let expected = `` 10 | assert.equal(actual, expected) 11 | }) 12 | 13 | test('handles invalid input', () => { 14 | let actual = format(`;`) 15 | let expected = `;` 16 | 17 | assert.equal(actual, expected) 18 | }) 19 | 20 | test('Vadim Makeevs example works', () => { 21 | let actual = format(` 22 | @layer what { 23 | @container (width > 0) { 24 | ul:has(:nth-child(1 of li)) { 25 | @media (height > 0) { 26 | &:hover { 27 | --is: this; 28 | } 29 | } 30 | } 31 | } 32 | } 33 | `) 34 | let expected = `@layer what { 35 | @container (width > 0) { 36 | ul:has(:nth-child(1 of li)) { 37 | @media (height > 0) { 38 | &:hover { 39 | --is: this; 40 | } 41 | } 42 | } 43 | } 44 | }` 45 | assert.equal(actual, expected) 46 | }) 47 | 48 | test('minified Vadims example', () => { 49 | let actual = format(`@layer what{@container (width>0){@media (min-height:.001px){ul:has(:nth-child(1 of li)):hover{--is:this}}}}`) 50 | 51 | let expected = `@layer what { 52 | @container (width > 0) { 53 | @media (min-height: .001px) { 54 | ul:has(:nth-child(1 of li)):hover { 55 | --is: this; 56 | } 57 | } 58 | } 59 | }` 60 | assert.equal(actual, expected) 61 | }) 62 | 63 | test.run() 64 | -------------------------------------------------------------------------------- /test/values.test.js: -------------------------------------------------------------------------------- 1 | import { suite } from 'uvu' 2 | import * as assert from 'uvu/assert' 3 | import { format } from '../index.js' 4 | 5 | let test = suite('Values') 6 | 7 | test('collapses abundant whitespace', () => { 8 | let actual = format(`a { 9 | transition: all 100ms ease; 10 | color: rgb( 0 , 0 , 0 ); 11 | color: red ; 12 | }`) 13 | let expected = `a { 14 | transition: all 100ms ease; 15 | color: rgb(0, 0, 0); 16 | color: red; 17 | }` 18 | assert.is(actual, expected) 19 | }) 20 | 21 | test('formats simple value lists', () => { 22 | let actual = format(` 23 | a { 24 | transition-property: all,opacity; 25 | transition: all 100ms ease,opacity 10ms 20ms linear; 26 | ANIMATION: COLOR 123MS EASE-OUT; 27 | color: rgb(0,0,0); 28 | color: HSL(0%,10%,50%); 29 | content: 'Test'; 30 | background-image: url("EXAMPLE.COM"); 31 | } 32 | `) 33 | let expected = `a { 34 | transition-property: all, opacity; 35 | transition: all 100ms ease, opacity 10ms 20ms linear; 36 | animation: COLOR 123ms EASE-OUT; 37 | color: rgb(0, 0, 0); 38 | color: hsl(0%, 10%, 50%); 39 | content: 'Test'; 40 | background-image: url("EXAMPLE.COM"); 41 | }` 42 | assert.equal(actual, expected) 43 | }) 44 | 45 | test('formats nested value lists', () => { 46 | let actual = format(` 47 | a { 48 | background: red,linear-gradient(to bottom,red 10%,green 50%,blue 100%); 49 | } 50 | `) 51 | let expected = `a { 52 | background: red, linear-gradient(to bottom, red 10%, green 50%, blue 100%); 53 | }` 54 | assert.equal(actual, expected) 55 | }) 56 | 57 | test('formats nested var()', () => { 58 | let actual = format(` 59 | a { 60 | color: var(--test1,var(--test2,green)); 61 | color: var(--test3,rgb(0,0,0)); 62 | } 63 | `) 64 | let expected = `a { 65 | color: var(--test1, var(--test2, green)); 66 | color: var(--test3, rgb(0, 0, 0)); 67 | }` 68 | assert.equal(actual, expected) 69 | }) 70 | 71 | test('formats multiline values on a single line', () => { 72 | let actual = format(` 73 | a { 74 | background: linear-gradient( 75 | red, 76 | 10% blue, 77 | 20% green,100% yellow); 78 | color: rgb( 79 | 0, 80 | 0, 81 | 0 82 | ); 83 | } 84 | `) 85 | let expected = `a { 86 | background: linear-gradient(red, 10% blue, 20% green, 100% yellow); 87 | color: rgb(0, 0, 0); 88 | }` 89 | assert.equal(actual, expected) 90 | }) 91 | 92 | test('does not break font shorthand', () => { 93 | let actual = format(`a { 94 | font: 2em/2 sans-serif; 95 | font: 2em/ 2 sans-serif; 96 | font: 2em / 2 sans-serif; 97 | }`) 98 | let expected = `a { 99 | font: 2em/2 sans-serif; 100 | font: 2em/2 sans-serif; 101 | font: 2em/2 sans-serif; 102 | }` 103 | assert.is(actual, expected) 104 | }) 105 | 106 | test('formats whitespace around operators (*/+-) correctly', () => { 107 | let actual = format(`a { 108 | font: 2em/2 sans-serif; 109 | font-size: calc(2em/2); 110 | font-size: calc(2em * 2); 111 | font-size: calc(2em + 2px); 112 | font-size: calc(2em - 2px); 113 | }`) 114 | let expected = `a { 115 | font: 2em/2 sans-serif; 116 | font-size: calc(2em / 2); 117 | font-size: calc(2em * 2); 118 | font-size: calc(2em + 2px); 119 | font-size: calc(2em - 2px); 120 | }` 121 | assert.is(actual, expected) 122 | }) 123 | 124 | test('formats whitespace around operators (*/+-) correctly in nested parenthesis', () => { 125 | let actual = format(`a { 126 | width: calc(((100% - var(--x))/ 12 * 6) + (-1 * var(--y))); 127 | width: calc(((100% - var(--x))/ 12 * 6) + (-1 * var(--y))); 128 | width: calc(((100% - var(--x))/ 12 * 6) + (-1 * var(--y))); 129 | width: calc(((100% - var(--x))/ 12 * 6) + (-1 * var(--y))); 130 | }`) 131 | let expected = `a { 132 | width: calc(((100% - var(--x)) / 12 * 6) + (-1 * var(--y))); 133 | width: calc(((100% - var(--x)) / 12 * 6) + (-1 * var(--y))); 134 | width: calc(((100% - var(--x)) / 12 * 6) + (-1 * var(--y))); 135 | width: calc(((100% - var(--x)) / 12 * 6) + (-1 * var(--y))); 136 | }` 137 | assert.is(actual, expected) 138 | }) 139 | 140 | test('formats parenthesis correctly', () => { 141 | let actual = format(`a { 142 | width: calc(100% - var(--x)); 143 | width: calc((100% - var(--x))); 144 | width: calc(100% - (var(--x))); 145 | width: calc((100% - (var(--x)))); 146 | }`) 147 | let expected = `a { 148 | width: calc(100% - var(--x)); 149 | width: calc((100% - var(--x))); 150 | width: calc(100% - (var(--x))); 151 | width: calc((100% - (var(--x)))); 152 | }` 153 | assert.is(actual, expected) 154 | }) 155 | 156 | test('does not lowercase grid-area names', () => { 157 | let actual = format(`a { grid-area: emailInputBox; }`) 158 | let expected = `a { 159 | grid-area: emailInputBox; 160 | }` 161 | assert.is(actual, expected) 162 | }) 163 | 164 | test('does not lowercase custom properties in var()', () => { 165 | let actual = format(`a { color: var(--MyColor); }`) 166 | let expected = `a { 167 | color: var(--MyColor); 168 | }` 169 | assert.is(actual, expected) 170 | }) 171 | 172 | test('lowercases CSS functions', () => { 173 | let actual = format(`a { 174 | color: RGB(0, 0, 0); 175 | transform: translateX(100px); 176 | }`) 177 | let expected = `a { 178 | color: rgb(0, 0, 0); 179 | transform: translatex(100px); 180 | }` 181 | assert.is(actual, expected) 182 | }) 183 | 184 | test('relative colors', () => { 185 | let actual = format(`a { 186 | color: rgb( from red 0 0 255); 187 | color: rgb( from rgb( 200 0 0 ) r r r ) ; 188 | color: hwb( from var( --base-color ) h w b / var( --standard-opacity ) ) ; 189 | color: lch(from var(--base-color) calc(l + 20) c h); 190 | }`) 191 | let expected = `a { 192 | color: rgb(from red 0 0 255); 193 | color: rgb(from rgb(200 0 0) r r r); 194 | color: hwb(from var(--base-color) h w b / var(--standard-opacity)); 195 | color: lch(from var(--base-color) calc(l + 20) c h); 196 | }` 197 | assert.is(actual, expected) 198 | }) 199 | 200 | test('does not change casing of `NaN`', () => { 201 | let actual = format(`a { 202 | height: calc(1 * NaN); 203 | }`) 204 | let expected = `a { 205 | height: calc(1 * NaN); 206 | }` 207 | assert.is(actual, expected) 208 | }) 209 | 210 | test('does not change casing of URLs', () => { 211 | let actual = format(`a { 212 | background-image: url("My-Url.png"); 213 | }`) 214 | let expected = `a { 215 | background-image: url("My-Url.png"); 216 | }` 217 | assert.is(actual, expected) 218 | }) 219 | 220 | test('lowercases dimensions', () => { 221 | let actual = format(`a { 222 | font-size: 12PX; 223 | width: var(--test, 33REM); 224 | }`) 225 | let expected = `a { 226 | font-size: 12px; 227 | width: var(--test, 33rem); 228 | }` 229 | assert.is(actual, expected) 230 | }) 231 | 232 | test('formats unknown content in value', () => { 233 | let actual = format(`a { 234 | content: 'Test' : counter(page); 235 | }`) 236 | let expected = `a { 237 | content: 'Test' : counter(page); 238 | }` 239 | assert.is(actual, expected) 240 | }) 241 | 242 | test('does not break space toggles', () => { 243 | let actual = format(`a { 244 | --ON: initial; 245 | --OFF: ; 246 | }`) 247 | let expected = `a { 248 | --ON: initial; 249 | --OFF: ; 250 | }` 251 | assert.is(actual, expected) 252 | }) 253 | 254 | test('does not break space toggles (minified)', () => { 255 | let actual = format( 256 | `a { 257 | --ON: initial; 258 | --OFF: ; 259 | }`, 260 | { minify: true }, 261 | ) 262 | let expected = `a{--ON:initial;--OFF: }` 263 | assert.is(actual, expected) 264 | }) 265 | 266 | test('adds quotes around strings in url()', () => { 267 | let actual = format(`a { 268 | background-image: url("star.gif"); 269 | list-style-image: url('../images/bullet.jpg'); 270 | content: url("pdficon.jpg"); 271 | cursor: url(mycursor.cur); 272 | border-image-source: url(/media/diamonds.png); 273 | src: url('fantasticfont.woff'); 274 | offset-path: url(#path); 275 | mask-image: url("masks.svg#mask1"); 276 | }`) 277 | let expected = `a { 278 | background-image: url("star.gif"); 279 | list-style-image: url("../images/bullet.jpg"); 280 | content: url("pdficon.jpg"); 281 | cursor: url("mycursor.cur"); 282 | border-image-source: url("/media/diamonds.png"); 283 | src: url("fantasticfont.woff"); 284 | offset-path: url("#path"); 285 | mask-image: url("masks.svg#mask1"); 286 | }` 287 | assert.is(actual, expected) 288 | }) 289 | 290 | test.run() 291 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | // Base options: 4 | "skipLibCheck": true, 5 | "target": "es2022", 6 | "verbatimModuleSyntax": true, 7 | "allowJs": true, 8 | "checkJs": true, 9 | "moduleDetection": "force", 10 | 11 | // Strictness 12 | "strict": true, 13 | "noUncheckedIndexedAccess": true, 14 | 15 | // Type checking, not transpiling 16 | "module": "ESNext", 17 | "moduleResolution": "bundler", 18 | "allowSyntheticDefaultImports": true, 19 | "noEmit": true, 20 | 21 | // Code runs in the DOM 22 | "lib": ["ES2022", "DOM", "DOM.Iterable"], 23 | }, 24 | "include": [ 25 | "index.js" 26 | ], 27 | "exclude": ["node_modules"] 28 | } -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { resolve } from "path" 2 | import { defineConfig } from "vite" 3 | import dts from "vite-plugin-dts" 4 | import { codecovVitePlugin } from "@codecov/vite-plugin" 5 | 6 | export default defineConfig({ 7 | build: { 8 | lib: { 9 | entry: resolve(__dirname, "index.js"), 10 | formats: ["es"], 11 | }, 12 | rollupOptions: { 13 | // make sure to externalize deps that shouldn't be bundled 14 | // into your library 15 | external: ["css-tree/parser"], 16 | }, 17 | }, 18 | plugins: [ 19 | dts(), 20 | codecovVitePlugin({ 21 | enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, 22 | bundleName: "formatCss", 23 | uploadToken: process.env.CODECOV_TOKEN, 24 | }), 25 | ], 26 | }) 27 | --------------------------------------------------------------------------------