docs: 仓库链接指向本镜像仓库
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:27:07 +08:00
1 parent fa9c73363d
commit 2a69b23b47
18210 files changed
+5101211 -16

No files matched your search

@@ -0,0 +1,64 @@
# minizlib
A fast zlib stream built on [minipass](http://npm.im/minipass) and
Node.js's zlib binding.
This module was created to serve the needs of
[node-tar](http://npm.im/tar) and
[minipass-fetch](http://npm.im/minipass-fetch).
Brotli is supported in versions of node with a Brotli binding.
## How does this differ from the streams in `'node:zlib'`?
First, there are no convenience methods to compress or decompress a
buffer. If you want those, use the built-in `zlib` module. This is
only streams. That being said, Minipass streams to make it fairly easy to
use as one-liners: `new zlib.Deflate().end(data).read()` will return the
deflate compressed result.
This module compresses and decompresses the data as fast as you feed
it in. It is synchronous, and runs on the main process thread. Zlib
and Brotli operations can be high CPU, but they're very fast, and doing it
this way means much less bookkeeping and artificial deferral.
Node's built in zlib streams are built on top of `stream.Transform`.
They do the maximally safe thing with respect to consistent
asynchrony, buffering, and backpressure.
See [Minipass](http://npm.im/minipass) for more on the differences between
Node.js core streams and Minipass streams, and the convenience methods
provided by that class.
## Classes
- Deflate
- Inflate
- Gzip
- Gunzip
- DeflateRaw
- InflateRaw
- Unzip
- BrotliCompress (Node v10 and higher)
- BrotliDecompress (Node v10 and higher)
- ZstdCompress (Node v22.15 and higher)
- ZstdDecompress (Node v22.15 and higher)
## USAGE
```js
import { BrotliDecompress } from 'minizlib'
// or: const BrotliDecompress = require('minizlib')
const input = sourceOfCompressedData()
const decode = new BrotliDecompress()
const output = whereToWriteTheDecodedData()
input.pipe(decode).pipe(output)
```
## REPRODUCIBLE BUILDS
To create reproducible gzip compressed files across different operating
systems, set `portable: true` in the options. This causes minizlib to set
the `OS` indicator in byte 9 of the extended gzip header to `0xFF` for
'unknown'.
@@ -0,0 +1,332 @@
/**
* @fileoverview ESQuery wrapper for ESLint.
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const esquery = require("esquery");
//-----------------------------------------------------------------------------
// Typedefs
//-----------------------------------------------------------------------------
/**
* @typedef {import("esquery").Selector} ESQuerySelector
* @typedef {import("esquery").ESQueryOptions} ESQueryOptions
*/
//------------------------------------------------------------------------------
// Classes
//------------------------------------------------------------------------------
/**
* The result of parsing and analyzing an ESQuery selector.
*/
class ESQueryParsedSelector {
/**
* The raw selector string that was parsed
* @type {string}
*/
source;
/**
* Whether this selector is an exit selector
* @type {boolean}
*/
isExit;
/**
* An object (from esquery) describing the matching behavior of the selector
* @type {ESQuerySelector}
*/
root;
/**
* The node types that could possibly trigger this selector, or `null` if all node types could trigger it
* @type {string[]|null}
*/
nodeTypes;
/**
* The number of class, pseudo-class, and attribute queries in this selector
* @type {number}
*/
attributeCount;
/**
* The number of identifier queries in this selector
* @type {number}
*/
identifierCount;
/**
* Creates a new parsed selector.
* @param {string} source The raw selector string that was parsed
* @param {boolean} isExit Whether this selector is an exit selector
* @param {ESQuerySelector} root An object (from esquery) describing the matching behavior of the selector
* @param {string[]|null} nodeTypes The node types that could possibly trigger this selector, or `null` if all node types could trigger it
* @param {number} attributeCount The number of class, pseudo-class, and attribute queries in this selector
* @param {number} identifierCount The number of identifier queries in this selector
*/
constructor(
source,
isExit,
root,
nodeTypes,
attributeCount,
identifierCount,
) {
this.source = source;
this.isExit = isExit;
this.root = root;
this.nodeTypes = nodeTypes;
this.attributeCount = attributeCount;
this.identifierCount = identifierCount;
}
/**
* Compares this selector's specificity to another selector for sorting purposes.
* @param {ESQueryParsedSelector} otherSelector The selector to compare against
* @returns {number}
* a value less than 0 if this selector is less specific than otherSelector
* a value greater than 0 if this selector is more specific than otherSelector
* a value less than 0 if this selector and otherSelector have the same specificity, and this selector <= otherSelector alphabetically
* a value greater than 0 if this selector and otherSelector have the same specificity, and this selector > otherSelector alphabetically
*/
compare(otherSelector) {
return (
this.attributeCount - otherSelector.attributeCount ||
this.identifierCount - otherSelector.identifierCount ||
(this.source <= otherSelector.source ? -1 : 1)
);
}
}
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
const selectorCache = new Map();
/**
* Computes the union of one or more arrays
* @param {...any[]} arrays One or more arrays to union
* @returns {any[]} The union of the input arrays
*/
function union(...arrays) {
return [...new Set(arrays.flat())];
}
/**
* Computes the intersection of one or more arrays
* @param {...any[]} arrays One or more arrays to intersect
* @returns {any[]} The intersection of the input arrays
*/
function intersection(...arrays) {
if (arrays.length === 0) {
return [];
}
let result = [...new Set(arrays[0])];
for (const array of arrays.slice(1)) {
result = result.filter(x => array.includes(x));
}
return result;
}
/**
* Analyzes a parsed selector and returns combined data about it
* @param {ESQuerySelector} parsedSelector An object (from esquery) describing the matching behavior of the selector
* @returns {{nodeTypes:string[]|null, attributeCount:number, identifierCount:number}} Object containing selector data.
*/
function analyzeParsedSelector(parsedSelector) {
let attributeCount = 0;
let identifierCount = 0;
/**
* Analyzes a selector and returns the node types that could possibly trigger it.
* @param {ESQuerySelector} selector The selector to analyze.
* @returns {string[]|null} The node types that could possibly trigger this selector, or `null` if all node types could trigger it
*/
function analyzeSelector(selector) {
switch (selector.type) {
case "identifier":
identifierCount++;
return [selector.value];
case "not":
selector.selectors.map(analyzeSelector);
return null;
case "matches": {
const typesForComponents =
selector.selectors.map(analyzeSelector);
if (typesForComponents.every(Boolean)) {
return union(...typesForComponents);
}
return null;
}
case "compound": {
const typesForComponents = selector.selectors
.map(analyzeSelector)
.filter(typesForComponent => typesForComponent);
// If all of the components could match any type, then the compound could also match any type.
if (!typesForComponents.length) {
return null;
}
/*
* If at least one of the components could only match a particular type, the compound could only match
* the intersection of those types.
*/
return intersection(...typesForComponents);
}
case "attribute":
case "field":
case "nth-child":
case "nth-last-child":
attributeCount++;
return null;
case "child":
case "descendant":
case "sibling":
case "adjacent":
analyzeSelector(selector.left);
return analyzeSelector(selector.right);
case "class":
// TODO: abstract into JSLanguage somehow
if (selector.name === "function") {
return [
"FunctionDeclaration",
"FunctionExpression",
"ArrowFunctionExpression",
];
}
return null;
default:
return null;
}
}
const nodeTypes = analyzeSelector(parsedSelector);
return {
nodeTypes,
attributeCount,
identifierCount,
};
}
/**
* Tries to parse a simple selector string, such as a single identifier or wildcard.
* This saves time by avoiding the overhead of esquery parsing for simple cases.
* @param {string} selector The selector string to parse.
* @returns {Object|null} An object describing the selector if it is simple, or `null` if it is not.
*/
function trySimpleParseSelector(selector) {
if (selector === "*") {
return {
type: "wildcard",
value: "*",
};
}
if (/^[a-z]+$/iu.test(selector)) {
return {
type: "identifier",
value: selector,
};
}
return null;
}
/**
* Parses a raw selector string, and throws a useful error if parsing fails.
* @param {string} selector The selector string to parse.
* @returns {Object} An object (from esquery) describing the matching behavior of this selector
* @throws {Error} An error if the selector is invalid
*/
function tryParseSelector(selector) {
try {
return esquery.parse(selector);
} catch (err) {
if (
err.location &&
err.location.start &&
typeof err.location.start.offset === "number"
) {
throw new SyntaxError(
`Syntax error in selector "${selector}" at position ${err.location.start.offset}: ${err.message}`,
{
cause: err,
},
);
}
throw err;
}
}
/**
* Parses a raw selector string, and returns the parsed selector along with specificity and type information.
* @param {string} source A raw AST selector
* @returns {ESQueryParsedSelector} A selector descriptor
*/
function parse(source) {
if (selectorCache.has(source)) {
return selectorCache.get(source);
}
const cleanSource = source.replace(/:exit$/u, "");
const parsedSelector =
trySimpleParseSelector(cleanSource) ?? tryParseSelector(cleanSource);
const { nodeTypes, attributeCount, identifierCount } =
analyzeParsedSelector(parsedSelector);
const result = new ESQueryParsedSelector(
source,
source.endsWith(":exit"),
parsedSelector,
nodeTypes,
attributeCount,
identifierCount,
);
selectorCache.set(source, result);
return result;
}
/**
* Checks if a node matches a given selector.
* @param {Object} node The node to check against the selector.
* @param {ESQuerySelector} root The root of the selector to match against.
* @param {Object[]} ancestry The ancestry of the node being checked, which is an array of nodes from the current node to the root.
* @param {ESQueryOptions} options The options to use for matching.
* @returns {boolean} `true` if the node matches the selector, `false` otherwise.
*/
function matches(node, root, ancestry, options) {
return esquery.matches(node, root, ancestry, options);
}
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
module.exports = {
parse,
matches,
ESQueryParsedSelector,
};
@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _createClass;
var _toPropertyKey = require("./toPropertyKey.js");
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, (0, _toPropertyKey.default)(descriptor.key), descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
//# sourceMappingURL=createClass.js.map
@@ -0,0 +1,9 @@
interface Config {
ignoreStatic: boolean;
}
export type Options = [Config];
export type MessageIds = 'unbound' | 'unboundWithoutThisAnnotation';
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
name: string;
};
export default _default;
@@ -0,0 +1 @@
module.exports={C:{"115":0.01275,"120":0.90497,"121":1.83542,"123":0.02549,"124":0.02549,"125":0.01275,"138":0.00637,"139":0.00637,"140":0.01275,"147":0.00637,"150":0.03824,"151":0.00637,"152":0.00637,"153":0.01275,"154":0.08922,"155":0.36326,"156":0.34414,"157":0.01275,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 122 126 127 128 129 130 131 132 133 134 135 136 137 141 142 143 144 145 146 148 149 158 159 160 3.5 3.6"},D:{"62":0.00637,"65":0.00637,"68":0.00637,"70":0.00637,"79":0.01912,"83":0.00637,"87":0.00637,"88":0.00637,"92":0.01912,"97":0.00637,"98":0.00637,"101":0.00637,"103":0.78388,"104":0.75201,"105":0.75201,"106":0.75201,"107":0.76476,"108":0.75201,"109":0.88585,"110":0.75839,"111":0.82212,"112":0.75839,"114":0.01275,"116":1.46579,"117":0.74564,"118":1.4403,"119":1.88004,"120":2.67666,"121":0.01912,"122":0.05098,"123":0.03187,"124":0.75839,"125":0.00637,"126":0.01275,"127":0.01912,"128":0.01912,"130":0.00637,"131":1.50403,"132":0.01912,"133":1.59962,"134":0.13383,"135":0.15295,"136":0.14021,"137":0.15295,"138":0.21031,"139":0.14658,"140":0.1657,"141":0.15933,"142":0.50347,"143":0.00637,"144":0.31865,"145":0.17207,"146":0.35689,"147":0.01912,"148":0.32502,"149":0.28041,"150":0.65642,"151":9.96737,"152":6.32839,"153":5.58912,"154":1.24911,"155":0.05098,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 66 67 69 71 72 73 74 75 76 77 78 80 81 84 85 86 89 90 91 93 94 95 96 99 100 102 113 115 129 156 157"},F:{"54":0.00637,"55":0.00637,"56":0.00637,"91":0.00637,"95":0.00637,"101":0.00637,"105":0.00637,"106":0.01275,"107":0.00637,"115":0.00637,"120":0.00637,"121":0.00637,"132":0.00637,"134":0.14658,"135":0.75839,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 96 97 98 99 100 102 103 104 108 109 110 111 112 113 114 116 117 118 119 122 123 124 125 126 127 131 133 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00637,"92":0.01275,"109":0.01275,"119":0.93046,"120":0.89859,"122":0.01912,"123":0.00637,"124":0.00637,"126":0.01275,"127":0.07648,"130":0.00637,"132":0.00637,"134":0.00637,"135":0.00637,"138":0.00637,"139":0.00637,"140":0.00637,"142":0.00637,"143":0.00637,"144":0.00637,"145":0.00637,"146":0.00637,"147":0.01912,"148":0.02549,"149":0.01275,"150":0.0701,"151":0.35052,"152":1.75258,"153":2.2433,"154":0.5672,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 121 125 128 129 131 133 136 137 141"},E:{"27":0.15933,_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 17.0 17.2 18.0 18.4 27.1 TP","14.1":0.00637,"15.1":0.01275,"15.6":0.01275,"16.5":0.00637,"16.6":0.02549,"17.1":0.04461,"17.3":0.00637,"17.4":0.00637,"17.5":0.02549,"17.6":0.06373,"18.1":0.00637,"18.2":0.00637,"18.3":0.01912,"18.5-18.7":0.03187,"26.0":0.00637,"26.1":0.20394,"26.2":0.01912,"26.3":0.03824,"26.4":0.01275,"26.5":0.15295,"26.6":0.7074,"27.2":0.01912},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00093,"5.0-5.1":0.00093,"6.0-6.1":0,"7.0-7.1":0.00185,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.00926,"11.0-11.2":0.00093,"11.3-11.4":0.00185,"12.0-12.1":0,"12.2-12.5":0.02408,"13.0-13.1":0,"13.2":0.00463,"13.3":0,"13.4-13.7":0.00093,"14.0-14.4":0.00371,"14.5-14.8":0.00556,"15.0-15.1":0.00556,"15.2-15.3":0.00371,"15.4":0.00463,"15.5":0.00556,"15.6-15.8":0.12042,"16.0":0.00926,"16.1":0.01667,"16.2":0.00926,"16.3":0.02038,"16.4":0.00463,"16.5":0.00741,"16.6-16.7":0.16767,"17.0":0.00648,"17.1":0.00926,"17.2":0.00926,"17.3":0.0139,"17.4":0.01945,"17.5":0.03798,"17.6-17.7":0.09819,"18.0":0.02038,"18.1":0.04076,"18.2":0.05558,"18.3":0.09634,"18.4":0.06021,"18.5-18.7":1.24407,"26.0":0.06021,"26.1":0.06114,"26.2":0.15933,"26.3":0.1723,"26.4":0.12598,"26.5":0.84389,"26.6":5.20693,"27.0":0.39925,"27.1":0,"27.2":0.01019},P:{"4":0.00965,"20":0.00965,"22":0.11583,"24":0.0193,"25":0.00965,"26":0.00965,"27":0.02896,"28":0.04826,"29":0.11583,"30":1.9401,_:"21 23 5.0-5.4 6.2-6.4 9.2 10.1 11.1-11.2 12.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.02896,"8.2":0.00965,"13.0":0.00965,"16.0":0.00965},I:{"0":0.01812,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.44612,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.91828},R:{_:"0"},M:{"0":0.16684},Q:{"14.9":0Line truncated
@@ -0,0 +1,17 @@
"use strict";
const { stringifyValueForError } = require("./shared");
module.exports = function ({ ruleId, value }) {
return `
Configuration for rule "${ruleId}" is invalid. Each rule must have a severity ("off", 0, "warn", 1, "error", or 2) and may be followed by additional options for the rule.
You passed '${stringifyValueForError(value, 4)}', which doesn't contain a valid severity.
If you're attempting to configure rule options, perhaps you meant:
"${ruleId}": ["error", ${stringifyValueForError(value, 8)}]
See https://eslint.org/docs/latest/use/configure/rules#use-configuration-files for configuring rules.
`.trimStart();
};
@@ -0,0 +1,20 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Bird = createLucideIcon("Bird", [
["path", { d: "M16 7h.01", key: "1kdx03" }],
["path", { d: "M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20", key: "oj1oa8" }],
["path", { d: "m20 7 2 .5-2 .5", key: "12nv4d" }],
["path", { d: "M10 18v3", key: "1yea0a" }],
["path", { d: "M14 17.75V21", key: "1pymcb" }],
["path", { d: "M7 18a6 6 0 0 0 3.84-10.61", key: "1npnn0" }]
]);
export { Bird as default };
//# sourceMappingURL=bird.js.map
@@ -0,0 +1,25 @@
# @vitest/expect
[![NPM version](https://img.shields.io/npm/v/@vitest/runner?color=a1b858&label=)](https://npmx.dev/package/@vitest/runner)
Jest's expect matchers as a Chai plugin.
## Usage
```js
import {
JestAsymmetricMatchers,
JestChaiExpect,
JestExtend,
} from '@vitest/expect'
import * as chai from 'chai'
// allows using expect.extend instead of chai.use to extend plugins
chai.use(JestExtend)
// adds all jest matchers to expect
chai.use(JestChaiExpect)
// adds asymmetric matchers like stringContaining, objectContaining
chai.use(JestAsymmetricMatchers)
```
[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/expect) | [Documentation](https://vitest.dev/api/expect)
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../src/use-controllable-state.tsx", "../src/use-controllable-state-reducer.tsx"],
"sourcesContent": ["import * as React from 'react';\nimport { useLayoutEffect } from '@radix-ui/react-use-layout-effect';\n\n// Prevent bundlers from trying to optimize the import\nconst useInsertionEffect: typeof useLayoutEffect =\n (React as any)[' useInsertionEffect '.trim().toString()] || useLayoutEffect;\n\ntype ChangeHandler<T> = (state: T) => void;\ntype SetStateFn<T> = React.Dispatch<React.SetStateAction<T>>;\n\ninterface UseControllableStateParams<T> {\n prop?: T | undefined;\n defaultProp: T;\n onChange?: ChangeHandler<T>;\n caller?: string;\n}\n\nexport function useControllableState<T>({\n prop,\n defaultProp,\n onChange = () => {},\n caller,\n}: UseControllableStateParams<T>): [T, SetStateFn<T>] {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange,\n });\n const isControlled = prop !== undefined;\n const value = isControlled ? prop : uncontrolledProp;\n\n // OK to disable conditionally calling hooks here because they will always run\n // consistently in the same environment. Bundlers should be able to remove the\n // code block entirely in production.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (process.env.NODE_ENV !== 'production') {\n const isControlledRef = React.useRef(prop !== undefined);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? 'controlled' : 'uncontrolled';\n const to = isControlled ? 'controlled' : 'uncontrolled';\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n /* eslint-enable react-hooks/rules-of-hooks */\n\n const setValue = React.useCallback<SetStateFn<T>>(\n (nextValue) => {\n if (isControlled) {\n const value = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value !== prop) {\n onChangeRef.current?.(value);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n\n return [value, setValue];\n}\n\nfunction useUncontrolledState<T>({\n defaultProp,\n onChange,\n}: Omit<UseControllableStateParams<T>, 'prop'>): [\n Value: T,\n setValue: React.Dispatch<React.SetStateAction<T>>,\n OnChangeRef: React.RefObject<ChangeHandler<T> | undefined>,\n] {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n\n return [value, setValue, onChangeRef];\n}\n\nfunction isFunction(value: unknown): value is (...args: any[]) => any {\n return typeof value === 'function';\n}\n", "import * as React from 'react';\nimport { useEffectEvent } from '@radix-ui/react-use-effect-event';\n\ntype ChangeHandler<T> = (state: T) => void;\n\ninterface UseControllableStateParams<T> {\n prop: T | undefined;\n defaultProp: T;\n onChange: ChangeHandler<T> | undefined;\n caller: string;\n}\n\ninterface AnyAction {\n type: string;\n}\n\nconst SYNC_STATE = Symbol('RADIX:SYNC_STATE');\n\ninterface SyncStateAction<T> {\n type: typeof SYNC_STATE;\n state: T;\n}\n\nexport function useControllableStateReducer<T, S extends {}, A extends AnyAction>(\n reducer: (prevState: S & { state: T }, action: A) => S & { state: T },\n userArgs: UseControllableStateParams<T>,\n initialState: S\n): [S & { state: T }, React.Dispatch<A>];\n\nexport function useControllableStateReducer<T, S extends {}, I, A extends AnyAction>(\n reducer: (prevState: S & { state: T }, action: A) => S & { state: T },\n userArgs: UseControllableStateParams<T>,\n initialArg: I,\n init: (i: I & { state: T }) => S\n): [S & { state: T }, React.Dispatch<A>];\n\nexport function useControllableStateReducer<T, S extends {}, A extends AnyAction>(\n reducer: (prevState: S & { state: T }, action: A) => S & { state: T },\n userArgs: UseControllableStateParams<T>,\n initialArg: any,\n init?: (i: any) => Omit<S, 'state'>\n): [S & { state: T }, React.Dispatch<A>] {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== undefined;\n\n const onChange = useEffectEvent(onChangeProp);\n\n // OK to disable conditionally calling hooks here because they will always run\n // consistently in the same environment. Bundlers should be able to remove the\n // Line truncated
"mappings": "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",
"names": ["value", "React", "state", "isControlled"]
}
@@ -0,0 +1 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).FloatingUIUtils={})}(this,(function(t){"use strict";const e=["top","right","bottom","left"],n=["start","end"],o=e.reduce(((t,e)=>t.concat(e,e+"-"+n[0],e+"-"+n[1])),[]),i=Math.min,r=Math.max,c=Math.round,s=Math.floor,u={left:"right",right:"left",bottom:"top",top:"bottom"};function f(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function a(t){return"x"===t?"y":"x"}function g(t){return"y"===t?"height":"width"}function p(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function d(t){return a(p(t))}function m(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const h=["left","right"],x=["right","left"],b=["top","bottom"],y=["bottom","top"];function A(t){const e=f(t);return u[e]+t.slice(e.length)}function O(t){return{top:0,right:0,bottom:0,left:0,...t}}t.alignments=n,t.clamp=function(t,e,n){return r(t,i(e,n))},t.createCoords=t=>({x:t,y:t}),t.evaluate=function(t,e){return"function"==typeof t?t(e):t},t.expandPaddingObject=O,t.floor=s,t.getAlignment=l,t.getAlignmentAxis=d,t.getAlignmentSides=function(t,e,n){void 0===n&&(n=!1);const o=l(t),i=d(t),r=g(i);let c="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(c=A(c)),[c,A(c)]},t.getAxisLength=g,t.getExpandedPlacements=function(t){const e=A(t);return[m(t),e,m(e)]},t.getOppositeAlignmentPlacement=m,t.getOppositeAxis=a,t.getOppositeAxisPlacements=function(t,e,n,o){const i=l(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?x:h:e?h:x;case"left":case"right":return e?b:y;default:return[]}}(f(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(m)))),r},t.getOppositePlacement=A,t.getPaddingObject=function(t){return"number"!=typeof t?O(t):{top:t,right:t,bottom:t,left:t}},t.getSide=f,t.getSideAxis=p,t.max=r,t.min=i,t.placements=o,t.rectToClientRect=function(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}},t.round=c,t.sides=e}));
@@ -0,0 +1,55 @@
var translations = {
warnings: {
straightRow: 'Straight rows of keys on your keyboard are easy to guess.',
keyPattern: 'Short keyboard patterns are easy to guess.',
simpleRepeat: 'Repeated characters like "aaa" are easy to guess.',
extendedRepeat: 'Repeated character patterns like "abcabcabc" are easy to guess.',
sequences: 'Common character sequences like "abc" are easy to guess.',
recentYears: 'Recent years are easy to guess.',
dates: 'Dates are easy to guess.',
topTen: 'This is a heavily used password.',
topHundred: 'This is a frequently used password.',
common: 'This is a commonly used password.',
similarToCommon: 'This is similar to a commonly used password.',
wordByItself: 'Single words are easy to guess.',
namesByThemselves: 'Single names or surnames are easy to guess.',
commonNames: 'Common names and surnames are easy to guess.',
userInputs: 'There should not be any personal or page related data.',
pwned: 'Your password was exposed by a data breach on the Internet.'
},
suggestions: {
l33t: "Avoid predictable letter substitutions like '@' for 'a'.",
reverseWords: 'Avoid reversed spellings of common words.',
allUppercase: 'Capitalize some, but not all letters.',
capitalization: 'Capitalize more than the first letter.',
dates: 'Avoid dates and years that are associated with you.',
recentYears: 'Avoid recent years.',
associatedYears: 'Avoid years that are associated with you.',
sequences: 'Avoid common character sequences.',
repeated: 'Avoid repeated words and characters.',
longerKeyboardPattern: 'Use longer keyboard patterns and change typing direction multiple times.',
anotherWord: 'Add more words that are less common.',
useWords: 'Use multiple words, but avoid common phrases.',
noNeed: 'You can create strong passwords without using symbols, numbers, or uppercase letters.',
pwned: 'If you use this password elsewhere, you should change it.'
},
timeEstimation: {
ltSecond: 'less than a second',
second: '{base} second',
seconds: '{base} seconds',
minute: '{base} minute',
minutes: '{base} minutes',
hour: '{base} hour',
hours: '{base} hours',
day: '{base} day',
days: '{base} days',
month: '{base} month',
months: '{base} months',
year: '{base} year',
years: '{base} years',
centuries: 'centuries'
}
};
export { translations as default };
//# sourceMappingURL=translations.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"has-target.mjs","sources":["../../../../src/view/utils/has-target.ts"],"sourcesContent":["import { ViewTransitionTarget, ViewTransitionTargetDefinition } from \"../types\"\n\nexport function hasTarget(\n target: ViewTransitionTargetDefinition,\n targets: Map<ViewTransitionTargetDefinition, ViewTransitionTarget>\n) {\n return targets.has(target) && Object.keys(targets.get(target)!).length > 0\n}\n"],"names":[],"mappings":"AAEM,SAAU,SAAS,CACrB,MAAsC,EACtC,OAAkE,EAAA;IAElE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAE,CAAC,CAAC,MAAM,GAAG,CAAC;AAC9E;;;;"}
@@ -0,0 +1,150 @@
const { InvalidArgumentError } = require('./error.js');
class Argument {
/**
* Initialize a new command argument with the given name and description.
* The default is that the argument is required, and you can explicitly
* indicate this with <> around the name. Put [] around the name for an optional argument.
*
* @param {string} name
* @param {string} [description]
*/
constructor(name, description) {
this.description = description || '';
this.variadic = false;
this.parseArg = undefined;
this.defaultValue = undefined;
this.defaultValueDescription = undefined;
this.argChoices = undefined;
switch (name[0]) {
case '<': // e.g. <required>
this.required = true;
this._name = name.slice(1, -1);
break;
case '[': // e.g. [optional]
this.required = false;
this._name = name.slice(1, -1);
break;
default:
this.required = true;
this._name = name;
break;
}
if (this._name.endsWith('...')) {
this.variadic = true;
this._name = this._name.slice(0, -3);
}
}
/**
* Return argument name.
*
* @return {string}
*/
name() {
return this._name;
}
/**
* @package
*/
_collectValue(value, previous) {
if (previous === this.defaultValue || !Array.isArray(previous)) {
return [value];
}
previous.push(value);
return previous;
}
/**
* Set the default value, and optionally supply the description to be displayed in the help.
*
* @param {*} value
* @param {string} [description]
* @return {Argument}
*/
default(value, description) {
this.defaultValue = value;
this.defaultValueDescription = description;
return this;
}
/**
* Set the custom handler for processing CLI command arguments into argument values.
*
* @param {Function} [fn]
* @return {Argument}
*/
argParser(fn) {
this.parseArg = fn;
return this;
}
/**
* Only allow argument value to be one of choices.
*
* @param {string[]} values
* @return {Argument}
*/
choices(values) {
this.argChoices = values.slice();
this.parseArg = (arg, previous) => {
if (!this.argChoices.includes(arg)) {
throw new InvalidArgumentError(
`Allowed choices are ${this.argChoices.join(', ')}.`,
);
}
if (this.variadic) {
return this._collectValue(arg, previous);
}
return arg;
};
return this;
}
/**
* Make argument required.
*
* @returns {Argument}
*/
argRequired() {
this.required = true;
return this;
}
/**
* Make argument optional.
*
* @returns {Argument}
*/
argOptional() {
this.required = false;
return this;
}
}
/**
* Takes an argument and returns its human readable equivalent for help usage.
*
* @param {Argument} arg
* @return {string}
* @private
*/
function humanReadableArgName(arg) {
const nameOutput = arg.name() + (arg.variadic === true ? '...' : '');
return arg.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']';
}
exports.Argument = Argument;
exports.humanReadableArgName = humanReadableArgName;
@@ -0,0 +1,13 @@
/**
* Experimental MCP SDK features.
* WARNING: These APIs are experimental and may change without notice.
*
* Import experimental features from this module:
* ```typescript
* import { TaskStore, InMemoryTaskStore } from '@modelcontextprotocol/sdk/experimental';
* ```
*
* @experimental
*/
export * from './tasks/index.js';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,739 @@
import MagicString from 'magic-string';
declare function createManualModuleSource(moduleUrl: string, exports: string[], globalAccessor?: string): string;
// This definition file follows a somewhat unusual format. ESTree allows
// runtime type checks based on the `type` parameter. In order to explain this
// to typescript we want to use discriminated union types:
// https://github.com/Microsoft/TypeScript/pull/9163
//
// For ESTree this is a bit tricky because the high level interfaces like
// Node or Function are pulling double duty. We want to pass common fields down
// to the interfaces that extend them (like Identifier or
// ArrowFunctionExpression), but you can't extend a type union or enforce
// common fields on them. So we've split the high level interfaces into two
// types, a base type which passes down inherited fields, and a type union of
// all types which extend the base type. Only the type union is exported, and
// the union is how other types refer to the collection of inheriting types.
//
// This makes the definitions file here somewhat more difficult to maintain,
// but it has the notable advantage of making ESTree much easier to use as
// an end user.
interface BaseNodeWithoutComments {
// Every leaf interface that extends BaseNode must specify a type property.
// The type property should be a string literal. For example, Identifier
// has: `type: "Identifier"`
type: string;
loc?: SourceLocation | null | undefined;
range?: [number, number] | undefined;
}
interface BaseNode extends BaseNodeWithoutComments {
leadingComments?: Comment[] | undefined;
trailingComments?: Comment[] | undefined;
}
interface NodeMap {
AssignmentProperty: AssignmentProperty;
CatchClause: CatchClause;
Class: Class;
ClassBody: ClassBody;
Expression: Expression;
Function: Function;
Identifier: Identifier;
Literal: Literal;
MethodDefinition: MethodDefinition;
ModuleDeclaration: ModuleDeclaration;
ModuleSpecifier: ModuleSpecifier;
Pattern: Pattern;
PrivateIdentifier: PrivateIdentifier;
Program: Program;
Property: Property;
PropertyDefinition: PropertyDefinition;
SpreadElement: SpreadElement;
Statement: Statement;
Super: Super;
SwitchCase: SwitchCase;
TemplateElement: TemplateElement;
VariableDeclarator: VariableDeclarator;
}
type Node$1 = NodeMap[keyof NodeMap];
interface Comment extends BaseNodeWithoutComments {
type: "Line" | "Block";
value: string;
}
interface SourceLocation {
source?: string | null | undefined;
start: Position;
end: Position;
}
interface Position {
/** >= 1 */
line: number;
/** >= 0 */
column: number;
}
interface Program extends BaseNode {
type: "Program";
sourceType: "script" | "module";
body: Array<Directive | Statement | ModuleDeclaration>;
comments?: Comment[] | undefined;
}
interface Directive extends BaseNode {
type: "ExpressionStatement";
expression: Literal;
directive: string;
}
interface BaseFunction extends BaseNode {
params: Pattern[];
generator?: boolean | undefined;
async?: boolean | undefined;
// The body is either BlockStatement or Expression because arrow functions
// can have a body that's either. FunctionDeclarations and
// FunctionExpressions have only BlockStatement bodies.
body: BlockStatement | Expression;
}
type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
type Statement =
| ExpressionStatement
| BlockStatement
| StaticBlock
| EmptyStatement
| DebuggerStatement
| WithStatement
| ReturnStatement
| LabeledStatement
| BreakStatement
| ContinueStatement
| IfStatement
| SwitchStatement
| ThrowStatement
| TryStatement
| WhileStatement
| DoWhileStatement
| ForStatement
| ForInStatement
| ForOfStatement
| Declaration;
interface BaseStatement extends BaseNode {}
interface EmptyStatement extends BaseStatement {
type: "EmptyStatement";
}
interface BlockStatement extends BaseStatement {
type: "BlockStatement";
body: Statement[];
innerComments?: Comment[] | undefined;
}
interface StaticBlock extends Omit<BlockStatement, "type"> {
type: "StaticBlock";
}
interface ExpressionStatement extends BaseStatement {
type: "ExpressionStatement";
expression: Expression;
}
interface IfStatement extends BaseStatement {
type: "IfStatement";
test: Expression;
consequent: Statement;
alternate?: Statement | null | undefined;
}
interface LabeledStatement extends BaseStatement {
type: "LabeledStatement";
label: Identifier;
body: Statement;
}
interface BreakStatement extends BaseStatement {
type: "BreakStatement";
label?: Identifier | null | undefined;
}
interface ContinueStatement extends BaseStatement {
type: "ContinueStatement";
label?: Identifier | null | undefined;
}
interface WithStatement extends BaseStatement {
type: "WithStatement";
object: Expression;
body: Statement;
}
interface SwitchStatement extends BaseStatement {
type: "SwitchStatement";
discriminant: Expression;
cases: SwitchCase[];
}
interface ReturnStatement extends BaseStatement {
type: "ReturnStatement";
argument?: Expression | null | undefined;
}
interface ThrowStatement extends BaseStatement {
type: "ThrowStatement";
argument: Expression;
}
interface TryStatement extends BaseStatement {
type: "TryStatement";
block: BlockStatement;
handler?: CatchClause | null | undefined;
finalizer?: BlockStatement | null | undefined;
}
interface WhileStatement extends BaseStatement {
type: "WhileStatement";
test: Expression;
body: Statement;
}
interface DoWhileStatement extends BaseStatement {
type: "DoWhileStatement";
body: Statement;
test: Expression;
}
interface ForStatement extends BaseStatement {
type: "ForStatement";
init?: VariableDeclaration | Expression | null | undefined;
test?: Expression | null | undefined;
update?: Expression | null | undefined;
body: Statement;
}
interface BaseForXStatement extends BaseStatement {
left: VariableDeclaration | Pattern;
right: Expression;
body: Statement;
}
interface ForInStatement extends BaseForXStatement {
type: "ForInStatement";
}
interface DebuggerStatement extends BaseStatement {
type: "DebuggerStatement";
}
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
interface BaseDeclaration extends BaseStatement {}
interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {
type: "FunctionDeclaration";
/** It is null when a function declaration is a part of the `export default function` statement */
id: Identifier | null;
body: BlockStatement;
}
interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
id: Identifier;
}
interface VariableDeclaration extends BaseDeclaration {
type: "VariableDeclaration";
declarations: VariableDeclarator[];
kind: "var" | "let" | "const" | "using" | "await using";
}
interface VariableDeclarator extends BaseNode {
type: "VariableDeclarator";
id: Pattern;
init?: Expression | null | undefined;
}
interface ExpressionMap {
ArrayExpression: ArrayExpression;
ArrowFunctionExpression: ArrowFunctionExpression;
AssignmentExpression: AssignmentExpression;
AwaitExpression: AwaitExpression;
BinaryExpression: BinaryExpression;
CallExpression: CallExpression;
ChainExpression: ChainExpression;
ClassExpression: ClassExpression;
ConditionalExpression: ConditionalExpression;
FunctionExpression: FunctionExpression;
Identifier: Identifier;
ImportExpression: ImportExpression;
Literal: Literal;
LogicalExpression: LogicalExpression;
MemberExpression: MemberExpression;
MetaProperty: MetaProperty;
NewExpression: NewExpression;
ObjectExpression: ObjectExpression;
SequenceExpression: SequenceExpression;
TaggedTemplateExpression: TaggedTemplateExpression;
TemplateLiteral: TemplateLiteral;
ThisExpression: ThisExpression;
UnaryExpression: UnaryExpression;
UpdateExpression: UpdateExpression;
YieldExpression: YieldExpression;
}
type Expression = ExpressionMap[keyof ExpressionMap];
interface BaseExpression extends BaseNode {}
type ChainElement = SimpleCallExpression | MemberExpression;
interface ChainExpression extends BaseExpression {
type: "ChainExpression";
expression: ChainElement;
}
interface ThisExpression extends BaseExpression {
type: "ThisExpression";
}
interface ArrayExpression extends BaseExpression {
type: "ArrayExpression";
elements: Array<Expression | SpreadElement | null>;
}
interface ObjectExpression extends BaseExpression {
type: "ObjectExpression";
properties: Array<Property | SpreadElement>;
}
interface PrivateIdentifier extends BaseNode {
type: "PrivateIdentifier";
name: string;
}
interface Property extends BaseNode {
type: "Property";
key: Expression | PrivateIdentifier;
value: Expression | Pattern; // Could be an AssignmentProperty
kind: "init" | "get" | "set";
method: boolean;
shorthand: boolean;
computed: boolean;
}
interface PropertyDefinition extends BaseNode {
type: "PropertyDefinition";
key: Expression | PrivateIdentifier;
value?: Expression | null | undefined;
computed: boolean;
static: boolean;
}
interface FunctionExpression extends BaseFunction, BaseExpression {
id?: Identifier | null | undefined;
type: "FunctionExpression";
body: BlockStatement;
}
interface SequenceExpression extends BaseExpression {
type: "SequenceExpression";
expressions: Expression[];
}
interface UnaryExpression extends BaseExpression {
type: "UnaryExpression";
operator: UnaryOperator;
prefix: true;
argument: Expression;
}
interface BinaryExpression extends BaseExpression {
type: "BinaryExpression";
operator: BinaryOperator;
left: Expression | PrivateIdentifier;
right: Expression;
}
interface AssignmentExpression extends BaseExpression {
type: "AssignmentExpression";
operator: AssignmentOperator;
left: Pattern | MemberExpression;
right: Expression;
}
interface UpdateExpression extends BaseExpression {
type: "UpdateExpression";
operator: UpdateOperator;
argument: Expression;
prefix: boolean;
}
interface LogicalExpression extends BaseExpression {
type: "LogicalExpression";
operator: LogicalOperator;
left: Expression;
right: Expression;
}
interface ConditionalExpression extends BaseExpression {
type: "ConditionalExpression";
test: Expression;
alternate: Expression;
consequent: Expression;
}
interface BaseCallExpression extends BaseExpression {
callee: Expression | Super;
arguments: Array<Expression | SpreadElement>;
}
type CallExpression = SimpleCallExpression | NewExpression;
interface SimpleCallExpression extends BaseCallExpression {
type: "CallExpression";
optional: boolean;
}
interface NewExpression extends BaseCallExpression {
type: "NewExpression";
}
interface MemberExpression extends BaseExpression, BasePattern {
type: "MemberExpression";
object: Expression | Super;
property: Expression | PrivateIdentifier;
computed: boolean;
optional: boolean;
}
type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
interface BasePattern extends BaseNode {}
interface SwitchCase extends BaseNode {
type: "SwitchCase";
test?: Expression | null | undefined;
consequent: Statement[];
}
interface CatchClause extends BaseNode {
type: "CatchClause";
param: Pattern | null;
body: BlockStatement;
}
interface Identifier extends BaseNode, BaseExpression, BasePattern {
type: "Identifier";
name: string;
}
type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
interface SimpleLiteral extends BaseNode, BaseExpression {
type: "Literal";
value: string | boolean | number | null;
raw?: string | undefined;
}
interface RegExpLiteral extends BaseNode, BaseExpression {
type: "Literal";
value?: RegExp | null | undefined;
regex: {
pattern: string;
flags: string;
};
raw?: string | undefined;
}
interface BigIntLiteral extends BaseNode, BaseExpression {
type: "Literal";
value?: bigint | null | undefined;
bigint: string;
raw?: string | undefined;
}
type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
type BinaryOperator =
| "=="
| "!="
| "==="
| "!=="
| "<"
| "<="
| ">"
| ">="
| "<<"
| ">>"
| ">>>"
| "+"
| "-"
| "*"
| "/"
| "%"
| "**"
| "|"
| "^"
| "&"
| "in"
| "instanceof";
type LogicalOperator = "||" | "&&" | "??";
type AssignmentOperator =
| "="
| "+="
| "-="
| "*="
| "/="
| "%="
| "**="
| "<<="
| ">>="
| ">>>="
| "|="
| "^="
| "&="
| "||="
| "&&="
| "??=";
type UpdateOperator = "++" | "--";
interface ForOfStatement extends BaseForXStatement {
type: "ForOfStatement";
await: boolean;
}
interface Super extends BaseNode {
type: "Super";
}
interface SpreadElement extends BaseNode {
type: "SpreadElement";
argument: Expression;
}
interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
type: "ArrowFunctionExpression";
expression: boolean;
body: BlockStatement | Expression;
}
interface YieldExpression extends BaseExpression {
type: "YieldExpression";
argument?: Expression | null | undefined;
delegate: boolean;
}
interface TemplateLiteral extends BaseExpression {
type: "TemplateLiteral";
quasis: TemplateElement[];
expressions: Expression[];
}
interface TaggedTemplateExpression extends BaseExpression {
type: "TaggedTemplateExpression";
tag: Expression;
quasi: TemplateLiteral;
}
interface TemplateElement extends BaseNode {
type: "TemplateElement";
tail: boolean;
value: {
/** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */
cooked?: string | null | undefined;
raw: string;
};
}
interface AssignmentProperty extends Property {
value: Pattern;
kind: "init";
method: boolean; // false
}
interface ObjectPattern extends BasePattern {
type: "ObjectPattern";
properties: Array<AssignmentProperty | RestElement>;
}
interface ArrayPattern extends BasePattern {
type: "ArrayPattern";
elements: Array<Pattern | null>;
}
interface RestElement extends BasePattern {
type: "RestElement";
argument: Pattern;
}
interface AssignmentPattern extends BasePattern {
type: "AssignmentPattern";
left: Pattern;
right: Expression;
}
type Class = ClassDeclaration | ClassExpression;
interface BaseClass extends BaseNode {
superClass?: Expression | null | undefined;
body: ClassBody;
}
interface ClassBody extends BaseNode {
type: "ClassBody";
body: Array<MethodDefinition | PropertyDefinition | StaticBlock>;
}
interface MethodDefinition extends BaseNode {
type: "MethodDefinition";
key: Expression | PrivateIdentifier;
value: FunctionExpression;
kind: "constructor" | "method" | "get" | "set";
computed: boolean;
static: boolean;
}
interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {
type: "ClassDeclaration";
/** It is null when a class declaration is a part of the `export default class` statement */
id: Identifier | null;
}
interface ClassDeclaration extends MaybeNamedClassDeclaration {
id: Identifier;
}
interface ClassExpression extends BaseClass, BaseExpression {
type: "ClassExpression";
id?: Identifier | null | undefined;
}
interface MetaProperty extends BaseExpression {
type: "MetaProperty";
meta: Identifier;
property: Identifier;
}
type ModuleDeclaration =
| ImportDeclaration
| ExportNamedDeclaration
| ExportDefaultDeclaration
| ExportAllDeclaration;
interface BaseModuleDeclaration extends BaseNode {}
type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier;
interface BaseModuleSpecifier extends BaseNode {
local: Identifier;
}
interface ImportDeclaration extends BaseModuleDeclaration {
type: "ImportDeclaration";
specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
attributes: ImportAttribute[];
source: Literal;
}
interface ImportSpecifier extends BaseModuleSpecifier {
type: "ImportSpecifier";
imported: Identifier | Literal;
}
interface ImportAttribute extends BaseNode {
type: "ImportAttribute";
key: Identifier | Literal;
value: Literal;
}
interface ImportExpression extends BaseExpression {
type: "ImportExpression";
source: Expression;
options?: Expression | null | undefined;
}
interface ImportDefaultSpecifier extends BaseModuleSpecifier {
type: "ImportDefaultSpecifier";
}
interface ImportNamespaceSpecifier extends BaseModuleSpecifier {
type: "ImportNamespaceSpecifier";
}
interface ExportNamedDeclaration extends BaseModuleDeclaration {
type: "ExportNamedDeclaration";
declaration?: Declaration | null | undefined;
specifiers: ExportSpecifier[];
attributes: ImportAttribute[];
source?: Literal | null | undefined;
}
interface ExportSpecifier extends Omit<BaseModuleSpecifier, "local"> {
type: "ExportSpecifier";
local: Identifier | Literal;
exported: Identifier | Literal;
}
interface ExportDefaultDeclaration extends BaseModuleDeclaration {
type: "ExportDefaultDeclaration";
declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression;
}
interface ExportAllDeclaration extends BaseModuleDeclaration {
type: "ExportAllDeclaration";
exported: Identifier | Literal | null;
attributes: ImportAttribute[];
source: Literal;
}
interface AwaitExpression extends BaseExpression {
type: "AwaitExpression";
argument: Expression;
}
type Positioned<T> = T & {
start: number;
end: number;
};
type Node = Positioned<Node$1>;
interface HoistMocksOptions {
/**
* List of modules that should always be imported before compiler hints.
* @default 'vitest'
*/
hoistedModule?: string;
/**
* @default ["vi", "vitest"]
*/
utilsObjectNames?: string[];
/**
* @default ["mock", "unmock"]
*/
hoistableMockMethodNames?: string[];
/**
* @default ["mock", "unmock", "doMock", "doUnmock"]
*/
dynamicImportMockMethodNames?: string[];
/**
* @default ["hoisted"]
*/
hoistedMethodNames?: string[];
globalThisAccessor?: string;
regexpHoistable?: RegExp;
codeFrameGenerator?: CodeFrameGenerator;
magicString?: () => MagicString;
}
declare function hoistMocks(code: string, id: string, parse: (code: string) => any, options?: HoistMocksOptions): MagicString | undefined;
interface CodeFrameGenerator {
(node: Positioned<Node>, id: string, code: string): string;
}
export { createManualModuleSource as c, hoistMocks as h };
export type { HoistMocksOptions as H };
@@ -0,0 +1,112 @@
import * as util from "../core/util.js";
const error = () => {
const Sizable = {
string: { unit: "χαρακτήρες", verb: "να έχει" },
file: { unit: "bytes", verb: "να έχει" },
array: { unit: "στοιχεία", verb: "να έχει" },
set: { unit: "στοιχεία", verb: "να έχει" },
map: { unit: "καταχωρήσεις", verb: "να έχει" },
};
function getSizing(origin) {
return Sizable[origin] ?? null;
}
const FormatDictionary = {
regex: "είσοδος",
email: "διεύθυνση email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO ημερομηνία και ώρα",
date: "ISO ημερομηνία",
time: "ISO ώρα",
duration: "ISO διάρκεια",
ipv4: "διεύθυνση IPv4",
ipv6: "διεύθυνση IPv6",
mac: "διεύθυνση MAC",
cidrv4: "εύρος IPv4",
cidrv6: "εύρος IPv6",
base64: "συμβολοσειρά κωδικοποιημένη σε base64",
base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
json_string: "συμβολοσειρά JSON",
e164: "αριθμός E.164",
credit_card: "αριθμός πιστωτικής κάρτας",
currency_code: "κωδικός νομίσματος",
iban: "IBAN",
jwt: "JWT",
template_literal: "είσοδος",
};
const TypeDictionary = {
nan: "NaN",
};
return (issue) => {
switch (issue.code) {
case "invalid_type": {
const expected = TypeDictionary[issue.expected] ?? issue.expected;
const receivedType = util.parsedType(issue.input);
const received = TypeDictionary[receivedType] ?? receivedType;
if (typeof issue.expected === "string" && /^[A-Z]/.test(issue.expected)) {
return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue.expected}, λήφθηκε ${received}`;
}
return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
}
case "invalid_value":
if (issue.values.length === 1)
return `Μη έγκυρη είσοδος: αναμενόταν ${util.stringifyPrimitive(issue.values[0])}`;
return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? "τιμή"} να έχει ${adj}${issue.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? "τιμή"} να είναι ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Πολύ μικρό: αναμενόταν ${issue.origin} να έχει ${adj}${issue.minimum.toString()} ${sizing.unit}`;
}
return `Πολύ μικρό: αναμενόταν ${issue.origin} να είναι ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue;
if (_issue.format === "starts_with") {
return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
}
if (_issue.format === "ends_with")
return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
if (_issue.format === "includes")
return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
if (_issue.format === "regex")
return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue.divisor}`;
case "unrecognized_keys":
return `Άγνωστ${issue.keys.length > 1 ? "α" : "ο"} κλειδ${issue.keys.length > 1 ? "ιά" : "ί"}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `Μη έγκυρο κλειδί στο ${issue.origin}`;
case "invalid_union":
return "Μη έγκυρη είσοδος";
case "invalid_element":
return `Μη έγκυρη τιμή στο ${issue.origin}`;
default:
return `Μη έγκυρη είσοδος`;
}
};
};
export default function () {
return {
localeError: error(),
};
}
@@ -0,0 +1 @@
{"version":3,"file":"chevron-left.js","sources":["../../../src/icons/chevron-left.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ChevronLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTUgMTgtNi02IDYtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-left\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronLeft = createLucideIcon('ChevronLeft', [\n ['path', { d: 'm15 18-6-6 6-6', key: '1wnfg3' }],\n]);\n\nexport default ChevronLeft;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAAA,CAClD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACjD,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const PanelLeftClose = createLucideIcon("PanelLeftClose", [
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
["path", { d: "M9 3v18", key: "fh3hqa" }],
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
]);
export { PanelLeftClose as default };
//# sourceMappingURL=panel-left-close.js.map
@@ -0,0 +1,12 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.esnext_array = void 0;
const base_config_1 = require("./base-config");
exports.esnext_array = {
libs: [],
variables: [['ArrayConstructor', base_config_1.TYPE]],
};
@@ -0,0 +1,90 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.forwardAsync = forwardAsync;
exports.isAsync = void 0;
exports.isThenable = isThenable;
exports.maybeAsync = maybeAsync;
exports.waitFor = exports.onFirstPause = void 0;
function _gensync() {
const data = require("gensync");
_gensync = function () {
return data;
};
return data;
}
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
const runGenerator = _gensync()(function* (item) {
return yield* item;
});
const isAsync = exports.isAsync = _gensync()({
sync: () => false,
errback: cb => cb(null, true)
});
function maybeAsync(fn, message) {
return _gensync()({
sync(...args) {
const result = fn.apply(this, args);
if (isThenable(result)) throw new Error(message);
return result;
},
async(...args) {
return Promise.resolve(fn.apply(this, args));
}
});
}
const withKind = _gensync()({
sync: cb => cb("sync"),
async: function () {
var _ref = _asyncToGenerator(function* (cb) {
return cb("async");
});
return function async(_x) {
return _ref.apply(this, arguments);
};
}()
});
function forwardAsync(action, cb) {
const g = _gensync()(action);
return withKind(kind => {
const adapted = g[kind];
return cb(adapted);
});
}
const onFirstPause = exports.onFirstPause = _gensync()({
name: "onFirstPause",
arity: 2,
sync: function (item) {
return runGenerator.sync(item);
},
errback: function (item, firstPause, cb) {
let completed = false;
runGenerator.errback(item, (err, value) => {
completed = true;
cb(err, value);
});
if (!completed) {
firstPause();
}
}
});
const waitFor = exports.waitFor = _gensync()({
sync: x => x,
async: function () {
var _ref2 = _asyncToGenerator(function* (x) {
return x;
});
return function async(_x2) {
return _ref2.apply(this, arguments);
};
}()
});
function isThenable(val) {
return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function";
}
0 && 0;
//# sourceMappingURL=async.js.map
@@ -0,0 +1,39 @@
import { appearAnimationStore } from './store.mjs';
import { appearStoreId } from './store-id.mjs';
function handoffOptimizedAppearAnimation(elementId, valueName, frame) {
const storeId = appearStoreId(elementId, valueName);
const optimisedAnimation = appearAnimationStore.get(storeId);
if (!optimisedAnimation) {
return null;
}
const { animation, startTime } = optimisedAnimation;
function cancelAnimation() {
window.MotionCancelOptimisedAnimation?.(elementId, valueName, frame);
}
/**
* We can cancel the animation once it's finished now that we've synced
* with Motion.
*
* Prefer onfinish over finished as onfinish is backwards compatible with
* older browsers.
*/
animation.onfinish = cancelAnimation;
if (startTime === null || window.MotionHandoffIsComplete?.(elementId)) {
/**
* If the startTime is null, this animation is the Paint Ready detection animation
* and we can cancel it immediately without handoff.
*
* Or if we've already handed off the animation then we're now interrupting it.
* In which case we need to cancel it.
*/
cancelAnimation();
return null;
}
else {
return startTime;
}
}
export { handoffOptimizedAppearAnimation };
//# sourceMappingURL=handoff.mjs.map
@@ -0,0 +1,29 @@
"use strict";
const PATTERN_REGEX = /%(-)?(\d+)?(?:\.(\d+))?([a-zA-Z%])(?:\{([^}]+)\})?/g;
function compilePattern(pattern, createConverter, literalConverter) {
const converters = [];
let lastIndex = 0;
let match;
while ((match = PATTERN_REGEX.exec(pattern)) !== null) {
const [full, align, minWidth, precision, specifier, format] = match;
if (match.index > lastIndex) {
converters.push(literalConverter(pattern.substring(lastIndex, match.index)));
}
const converter = createConverter(
specifier,
align === "-",
parseInt(minWidth || "0", 10),
parseInt(precision || "0", 10),
format
);
if (converter) {
converters.push(converter);
}
lastIndex = match.index + full.length;
}
if (lastIndex < pattern.length) {
converters.push(literalConverter(pattern.substring(lastIndex)));
}
return converters;
}
module.exports = compilePattern;
@@ -0,0 +1,886 @@
export default `flf2a$ 5 4 15 0 8
This font is (c) Michel Eftimakis 1995 -- Version 1.0 -- 27 jan 1995
____________________________________________________________ /\`____
| Michel Eftimakis | "Ascii-Artist" '\\/ |
| Michel.Eftimakis@ustc.vlsi.com | Boo)- (00) ||
| Tel : (33) 92 96 27 19 | (_\`'_) ||
|__ Fax : (33) 92 96 27 01 _________|____ FRANCE ___________ _!!_ ____||
|_____________________________________________________________________|
$@
$ @
$ @
$ @
$ @@
/7@
// @
@
() @
@@
@
/7/7@
$ @
$ @
@@
@
_/7_/7_@
// // @
-//-//- @
@@
_/7@
,' _/@
_\\ \`. @
/___,' @
// @@
@
()/7@
// @
//()@
@@
_ @
(o) @
,'oV7@
|_n| @
@@
_@
//@
$ @
$ @
@@
_@
,;'@
//$ @
//$ @
|| @@
_ @
||@
$// @
$// @
,;' @@
. ,@
x @
' \`@
$ @
@@
@
_/7 @
/_ _7@
// @
@@
@
@
@
()@
/' @@
@
@
___@
/__/@
@@
@
@
@
()$@
@@
_@
//@
// @
// @
@@
_ @
,' \\@
/ 0 /@
\\_,' @
@@
_@
,'/@
$// @
$// @
@@
___ @
/_ )@
,'c' @
(___7 @
@@
____@
/_ ,'@
__/< @
|__,' @
@@
.@
,'/@
,'o/ @
(___7 @
@@
___@
/ _/@
|_ \\@
/__,'@
@@
@
,'7@
/o \\@
|_,'@
@@
___@
/_ /@
// @
// @
@@
__ @
/o )@
,'o | @
|__,' @
@@
__ @
,'o |@
|_ / @
// @
@@
@
@
()@
() @
@@
@
@
()@
() @
V @@
_@
//@
<<$@
\\\\@
@@
@
____@
/___/@
/___/ @
@@
_ @
\\\\ @
$>>@
// @
@@
___ @
/ o )@
7,' @
$ @
() @@
__ @
,'_ \\@
|(o_,'@
$|___7$@
@@
_ @
.' \\@
/ o /@
/_n_/ @
@@
___ @
/ o.)@
/ o \\ @
/___,' @
@@
__@
,'_/@
/ /_ @
|__/ @
@@
__ @
/ \\@
/ o |@
/__,' @
@@
___@
/ _/@
/ _/ @
/___/ @
@@
____@
/ __/@
/ _/ @
/_/ @
@@
__@
,'_/@
/ /_n@
|__,'@
@@
_ __@
/// /@
/ \` / @
/_n_/ @
@@
__@
/ /@
/ / @
/_/ @
@@
__@
/ /@
n_/ / @
\\_,' @
@@
_ @
/ //7@
/ ,' @
/_/\\\\ @
@@
__@
/ /@
/ /_@
/___/@
@@
_ __@
/ \\,' /@
/ \\,' / @
/_/ /_/ @
@@
_ __@
/ |/ /@
/ || / @
/_/|_/ @
@@
_ @
,' \\@
/ o |@
|_,' @
@@
___ @
/ o |@
/ _,' @
/_/ @
@@
_ @
,' \\@
/ o |@
|_,\\\\@
@@
___ @
/ o |@
/ ,' @
/_/\`_\\ @
@@
___@
,' _/@
_\\ \`. @
/___,' @
@@
_____@
/_ _/@
/ / @
/_/ @
@@
_ __@
/// /@
/ U / @
\\_,' @
@@
_ __@
/// /@
| V / @
|_,' @
@@
_ __@
///7/ /@
| V V / @
|_n_,' @
@@
_ __@
| |/,'@
/ / @
,'_n_\\ @
@@
_ __@
| |/,'@
| ,' @
/_/ @
@@
____ @
/_ ,'@
,',' @
,'___/ @
@@
__ @
/ _/@
/ /$ @
/ /$ @
/__/ @@
_ @
\\\\ @
\\\\ @
\\\\@
@@
___@
/_ /@
$/ / @
$/ / @
/__/ @@
_ @
/.\\@
$ @
$ @
@@
@
@
@
____@
/___/@@
_ @
\\\\@
$ @
$ @
@@
@
_ @
,'o|@
|_,7@
@@
@
/7@
/o\\@
/_,'@
@@
@
__@
,','@
\\_\\ @
@@
@
_//@
,'o/ @
|__/ @
@@
@
__@
,'o/@
|_( @
@@
_ @
,'_7@
/_7 @
// @
@@
@
_ @
,'o|@
|_,'@
_// @@
@
/7@
/ \\@
/n_/@
@@
@
()@
/7 @
// @
@@
@
()@
/7 @
// @
// @@
@
/7 @
//_7@
//\\\\ @
@@
@
/7@
// @
// @
@@
@
_ @
/ \\'\\@
/_nn_/@
@@
@
_ @
/ \\/7@
/_n_/ @
@@
@
_ @
,'o|@
|_,'@
@@
@
_ @
/o|@
/_,'@
// @@
@
_ @
,'o|@
|_,'@
// @@
@
_ @
//7@
//$ @
@@
@
__@
(c'@
/__)@
@@
@
/7@
/_7@
// @
@@
@
@
/7/7@
/__/ @
@@
@
@
/7/7@
|,' @
@@
@
@
/7/7/7@
|,^,' @
@@
@
_ __@
\\V,'@
,'n\\ @
@@
@
_ __@
\\V /@
)/ @
// @@
@
____@
/_ ,'@
,'__/@
@@
_@
//@
/|$@
\\|$@
\\\\@@
__@
/ /@
/ / @
/ / @
/_/ @@
_ @
\\\\ @
$|\\@
$|/@
// @@
_ _@
//\\//@
$ @
$ @
@@
()_()@
.' \\ @
/ o / @
/_n_/ @
@@
()_()@
,' \\ @
/ o | @
|_,' @
@@
()_()@
/// / @
/ U / @
\\_,' @
@@
@
OO@
,'o|@
|_,7@
@@
@
OO@
,'o|@
|_,'@
@@
@
O O@
/7/7@
/__/ @
@@
__ @
/o )@
/o | @
//_,' @
// @@
160
$@
$ @
$ @
$ @
$ @@
161
()@
@
/7 @
// @
// @@
165
_ __@
| |/,'@
/_ _7 @
/_/ @
@@
166
/7@
// @
@
/7 @
// @@
168
@
()()@
$$ @
$$ @
@@
183
_ @
(_)@
$ @
$ @
@@
192
\\\\@
.' \\@
/ o /@
/_n_/ @
@@
193
//@
.' \\@
/ o /@
/_n_/ @
@@
194
/^\\@
.' \\@
/ o /@
/_n_/ @
@@
195
/\\/@
.' \\@
/ o /@
/_n_/ @
@@
196
()_()@
.' \\ @
/ o / @
/_n_/ @
@@
197
()@
.' \\@
/ o /@
/_n_/ @
@@
198
______@
.' \\ _/@
/ o _/ @
/_n_/___/ @
@@
199
__@
,'_/@
/ /_ @
|__/ @
// @@
200
_\\\\@
/ _/@
/ _/ @
/___/ @
@@
201
_//@
/ _/@
/ _/ @
/___/ @
@@
202
/^\\@
/ _/@
/ _/ @
/___/ @
@@
203
()_()@
/ _/ @
/ _/ @
/___/ @
@@
204
\\\\@
/ /@
/ / @
/_/ @
@@
205
//@
/ / @
/ / @
/_/ @
@@
206
/^\\@
/ /@
/ / @
/_/ @
@@
207
()()@
/ / @
/ / @
/_/ @
@@
209
_/\\/_@
/ |/ /@
/ || / @
/_/|_/ @
@@
210
\\\\@
,' \\@
/ o |@
|_,' @
@@
211
//@
,' \\@
/ o |@
|_,' @
@@
212
/^\\@
,' \\@
/ o |@
|_,' @
@@
213
/\\/@
,' \\@
/ o |@
|_,' @
@@
214
()_()@
,' \\ @
/ o | @
|_,' @
@@
217
_\\\\_@
/// /@
/ U / @
\\_,' @
@@
218
_//_@
/// /@
/ U / @
\\_,' @
@@
219
/^\\_@
/// /@
/ U / @
\\_,' @
@@
220
()_()@
/// / @
/ U / @
\\_,' @
@@
223
__ @
/o )@
/o | @
//_,' @
// @@
224
_ @
\`\`@
,'o|@
|_,7@
@@
225
_@
''@
,'o|@
|_,7@
@@
226
@
_^@
,'o|@
|_,7@
@@
227
@
_~@
,'o|@
|_,7@
@@
228
@
OO@
,'o|@
|_,7@
@@
229
@
_O@
,'o|@
|_,7@
@@
230
@
_ __@
,'o|'o/@
|_,7.( @
@@
231
@
__@
,','@
\\_\\ @
// @@
232
_ @
\`\`@
,'o/@
|_( @
@@
233
_@
''@
,'o/@
|_( @
@@
234
@
_^@
,'o/@
|_( @
@@
235
@
OO@
,'o/@
|_( @
@@
236
_ @
\`\`@
/7 @
// @
@@
237
_@
''@
/7 @
// @
@@
238
@
'\`@
/7 @
// @
@@
239
@
OO@
/7 @
// @
@@
241
@
_~ @
/ \\/7@
/_n_/ @
@@
242
_ @
\`\`@
,'o|@
|_,'@
@@
243
_@
''@
,'o|@
|_,'@
@@
244
@
_^@
,'o|@
|_,'@
@@
245
@
_~@
,'o|@
|_,'@
@@
246
@
OO@
,'o|@
|_,'@
@@
249
_ @
\`\`@
/7/7@
/__/ @
@@
250
_@
''@
/7/7@
/__/ @
@@
251
@
^ @
/7/7@
/__/ @
@@
252
@
O O@
/7/7@
/__/ @
@@
253
_ @
_''_@
\\V /@
)/ @
// @@
255
@
_OO_@
\\V /@
)/ @
// @@
`
@@ -0,0 +1 @@
{"version":3,"file":"mergeUserInputDictionary.mjs","sources":["../../src/utils/mergeUserInputDictionary.ts"],"sourcesContent":[null],"names":["optionsRankedDictionaries","optionsRankedDictionariesMaxWordSize","userInputsOptions","rankedDictionaries","rankedDictionariesMaxWordSize","userInputs","rankedDictionary","Math","max","rankedDictionaryMaxWordSize"],"mappings":"AAEA,+BAAe,CACbA,yBAA6C,EAC7CC,oCAA4D,EAC5DC,iBAAqC,KACnC;EACF,IAAI,CAACA,iBAAiB,EAAE;IACtB,OAAO;AACLC,MAAAA,kBAAkB,EAAEH,yBAAyB;AAC7CI,MAAAA,6BAA6B,EAAEH;KAChC;AACH,EAAA;AACA,EAAA,MAAME,kBAAkB,GAAG;IACzB,GAAGH;GACJ;AACD,EAAA,MAAMI,6BAA6B,GAAG;IACpC,GAAGH;GACJ;EAEDE,kBAAkB,CAACE,UAAU,GAAG;AAC9B,IAAA,IAAIF,kBAAkB,CAACE,UAAU,IAAI,EAAE,CAAC;AACxC,IAAA,GAAGH,iBAAiB,CAACI;GACtB;AAEDF,EAAAA,6BAA6B,CAACC,UAAU,GAAGE,IAAI,CAACC,GAAG,CACjDN,iBAAiB,CAACO,2BAA2B,EAC7CL,6BAA6B,CAACC,UAAU,IAAI,CAAC,CAC9C;EAED,OAAO;IACLF,kBAAkB;AAClBC,IAAAA;GACD;AACH,CAAC;;;;"}
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const CaseLower = createLucideIcon("CaseLower", [
["circle", { cx: "7", cy: "12", r: "3", key: "12clwm" }],
["path", { d: "M10 9v6", key: "17i7lo" }],
["circle", { cx: "17", cy: "12", r: "3", key: "gl7c2s" }],
["path", { d: "M14 7v8", key: "dl84cr" }]
]);
export { CaseLower as default };
//# sourceMappingURL=case-lower.js.map
@@ -0,0 +1,142 @@
import { BaseRootRoute, BaseRoute, BaseRouteApi, AnyContext, AnyRoute, AnyRouter, ConstrainLiteral, ErrorComponentProps, NotFoundError, NotFoundRouteProps, Register, RegisteredRouter, ResolveFullPath, ResolveId, ResolveParams, RootRoute as RootRouteCore, RootRouteId, RootRouteOptions, RouteConstraints, Route as RouteCore, RouteIds, RouteMask, RouteOptions, RouteTypesById, RouterCore, ToMaskOptions, UseNavigateResult } from '@tanstack/router-core';
import { default as React } from 'react';
import { UseLoaderDataRoute } from './useLoaderData.cjs';
import { UseMatchRoute } from './useMatch.cjs';
import { UseLoaderDepsRoute } from './useLoaderDeps.cjs';
import { UseParamsRoute } from './useParams.cjs';
import { UseSearchRoute } from './useSearch.cjs';
import { UseRouteContextRoute } from './useRouteContext.cjs';
import { LinkComponentRoute } from './link.cjs';
declare module '@tanstack/router-core' {
interface UpdatableRouteOptionsExtensions {
component?: RouteComponent;
errorComponent?: false | null | undefined | ErrorRouteComponent;
notFoundComponent?: NotFoundRouteComponent;
pendingComponent?: RouteComponent;
}
interface RootRouteOptionsExtensions {
shellComponent?: ({ children, }: {
children: React.ReactNode;
}) => React.ReactNode;
}
interface RouteExtensions<in out TId extends string, in out TFullPath extends string> {
useMatch: UseMatchRoute<TId>;
useRouteContext: UseRouteContextRoute<TId>;
useSearch: UseSearchRoute<TId>;
useParams: UseParamsRoute<TId>;
useLoaderDeps: UseLoaderDepsRoute<TId>;
useLoaderData: UseLoaderDataRoute<TId>;
useNavigate: () => UseNavigateResult<TFullPath>;
Link: LinkComponentRoute<TFullPath>;
}
}
/**
* Returns a route-specific API that exposes type-safe hooks pre-bound
* to a single route ID. Useful for consuming a route's APIs from files
* where the route object isn't directly imported (e.g. code-split files).
*
* @param id Route ID string literal for the target route.
* @returns A `RouteApi` instance bound to the given route ID.
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/getRouteApiFunction
*/
export declare function getRouteApi<const TId, TRouter extends AnyRouter = RegisteredRouter>(id: ConstrainLiteral<TId, RouteIds<TRouter['routeTree']>>): RouteApi<TId, TRouter>;
export declare class RouteApi<TId, TRouter extends AnyRouter = RegisteredRouter> extends BaseRouteApi<TId, TRouter> {
/**
* @deprecated Use the `getRouteApi` function instead.
*/
constructor({ id }: {
id: TId;
});
useMatch: UseMatchRoute<TId>;
useRouteContext: UseRouteContextRoute<TId>;
useSearch: UseSearchRoute<TId>;
useParams: UseParamsRoute<TId>;
useLoaderDeps: UseLoaderDepsRoute<TId>;
useLoaderData: UseLoaderDataRoute<TId>;
useNavigate: () => UseNavigateResult<RouteTypesById<TRouter, TId>["fullPath"]>;
notFound: (opts?: NotFoundError) => NotFoundError;
Link: LinkComponentRoute<RouteTypesById<TRouter, TId>['fullPath']>;
}
export declare class Route<in out TRegister = unknown, in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, in out TPath extends RouteConstraints['TPath'] = '/', in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<TParentRoute, TPath>, in out TCustomId extends RouteConstraints['TCustomId'] = string, in out TId extends RouteConstraints['TId'] = ResolveId<TParentRoute, TCustomId, TPath>, in out TSearchValidator = undefined, in out TParams = ResolveParams<TPath>, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record<string, any> = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute<TRegister, TParentRoute, TPath, TFullPath, TCustomId, TId, TSearchValidator, TParams, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TChildren, TFileRouteTypes, TSSR, TServerMiddlewares, THandlers> implements RouteCore<TRegister, TParentRoute, TPath, TFullPath, TCustomId, TId, TSearchValidator, TParams, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TChildren, TFileRouteTypes, TSSR, TServerMiddlewares, THandlers> {
/**
* @deprecated Use the `createRoute` function instead.
*/
constructor(options?: RouteOptions<TRegister, TParentRoute, TId, TCustomId, TFullPath, TPath, TSearchValidator, TParams, TLoaderDeps, TLoaderFn, TRouterContext, TRouteContextFn, TBeforeLoadFn, TSSR, TServerMiddlewares, THandlers>);
useMatch: UseMatchRoute<TId>;
useRouteContext: UseRouteContextRoute<TId>;
useSearch: UseSearchRoute<TId>;
useParams: UseParamsRoute<TId>;
useLoaderDeps: UseLoaderDepsRoute<TId>;
useLoaderData: UseLoaderDataRoute<TId>;
useNavigate: () => UseNavigateResult<TFullPath>;
Link: LinkComponentRoute<TFullPath>;
}
/**
* Creates a non-root Route instance for code-based routing.
*
* Use this to define a route that will be composed into a route tree
* (typically via a parent route's `addChildren`). If you're using file-based
* routing, prefer `createFileRoute`.
*
* @param options Route options (path, component, loader, context, etc.).
* @returns A Route instance to be attached to the route tree.
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/createRouteFunction
*/
export declare function createRoute<TRegister = unknown, TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, TPath extends RouteConstraints['TPath'] = '/', TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<TParentRoute, TPath>, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId<TParentRoute, TCustomId, TPath>, TSearchValidator = undefined, TParams = ResolveParams<TPath>, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record<string, any> = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TServerMiddlewares = unknown>(options: RouteOptions<TRegister, TParentRoute, TId, TCustomId, TFullPath, TPath, TSearchValidator, TParams, TLoaderDeps, TLoaderFn, AnyContext, TRouteContextFn, TBeforeLoadFn, TSSR, TServerMiddlewares>): Route<TRegister, TParentRoute, TPath, TFullPath, TCustomId, TId, TSearchValidator, TParams, AnyContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TChildren, TSSR, TServerMiddlewares>;
export type AnyRootRoute = RootRoute<any, any, any, any, any, any, any, any, any, any, any>;
/**
* Creates a root route factory that requires a router context type.
*
* Use when your root route expects `context` to be provided to `createRouter`.
* The returned function behaves like `createRootRoute` but enforces a context type.
*
* @returns A factory function to configure and return a root route.
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/createRootRouteWithContextFunction
*/
export declare function createRootRouteWithContext<TRouterContext extends {}>(): <TRegister = Register, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TSearchValidator = undefined, TLoaderDeps extends Record<string, any> = {}, TLoaderFn = undefined, TSSR = unknown, TServerMiddlewares = unknown>(options?: RootRouteOptions<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TSSR, TServerMiddlewares>) => RootRoute<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, unknown, unknown, TSSR, TServerMiddlewares, undefined>;
/**
* @deprecated Use the `createRootRouteWithContext` function instead.
*/
export declare const rootRouteWithContext: typeof createRootRouteWithContext;
export declare class RootRoute<in out TRegister = unknown, in out TSearchValidator = undefined, in out TRouterContext = {}, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record<string, any> = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRootRoute<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TChildren, TFileRouteTypes, TSSR, TServerMiddlewares, THandlers> implements RootRouteCore<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TChildren, TFileRouteTypes, TSSR, TServerMiddlewares, THandlers> {
/**
* @deprecated `RootRoute` is now an internal implementation detail. Use `createRootRoute()` instead.
*/
constructor(options?: RootRouteOptions<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TSSR, TServerMiddlewares, THandlers>);
useMatch: UseMatchRoute<RootRouteId>;
useRouteContext: UseRouteContextRoute<RootRouteId>;
useSearch: UseSearchRoute<RootRouteId>;
useParams: UseParamsRoute<RootRouteId>;
useLoaderDeps: UseLoaderDepsRoute<RootRouteId>;
useLoaderData: UseLoaderDataRoute<RootRouteId>;
useNavigate: () => UseNavigateResult<"/">;
Link: LinkComponentRoute<'/'>;
}
/**
* Creates a root Route instance used to build your route tree.
*
* Typically paired with `createRouter({ routeTree })`. If you need to require
* a typed router context, use `createRootRouteWithContext` instead.
*
* @param options Root route options (component, error, pending, etc.).
* @returns A root route instance.
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/createRootRouteFunction
*/
export declare function createRootRoute<TRegister = Register, TSearchValidator = undefined, TRouterContext = {}, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record<string, any> = {}, TLoaderFn = undefined, TSSR = unknown, const TServerMiddlewares = unknown, THandlers = undefined>(options?: RootRouteOptions<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TSSR, TServerMiddlewares, THandlers>): RootRoute<TRegister, TSearchValidator, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, unknown, unknown, TSSR, TServerMiddlewares, THandlers>;
export declare function createRouteMask<TRouteTree extends AnyRoute, TFrom extends string, TTo extends string>(opts: {
routeTree: TRouteTree;
} & ToMaskOptions<RouterCore<TRouteTree, 'never', boolean>, TFrom, TTo>): RouteMask<TRouteTree>;
export interface DefaultRouteTypes<TProps> {
component: ((props: TProps) => any) | React.LazyExoticComponent<(props: TProps) => any>;
}
export interface RouteTypes<TProps> extends DefaultRouteTypes<TProps> {
}
export type AsyncRouteComponent<TProps> = RouteTypes<TProps>['component'] & {
preload?: () => Promise<void>;
};
export type RouteComponent = AsyncRouteComponent<{}>;
export type ErrorRouteComponent = AsyncRouteComponent<ErrorComponentProps>;
export type NotFoundRouteComponent = RouteTypes<NotFoundRouteProps>['component'];
export declare class NotFoundRoute<TRegister, TParentRoute extends AnyRootRoute, TRouterContext = AnyContext, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TSearchValidator = undefined, TLoaderDeps extends Record<string, any> = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, TServerMiddlewares = unknown> extends Route<TRegister, TParentRoute, '/404', '/404', '404', '404', TSearchValidator, {}, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TChildren, TSSR, TServerMiddlewares> {
constructor(options: Omit<RouteOptions<TRegister, TParentRoute, string, string, string, string, TSearchValidator, {}, TLoaderDeps, TLoaderFn, TRouterContext, TRouteContextFn, TBeforeLoadFn, TSSR, TServerMiddlewares>, 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'path' | 'id' | 'params'>);
}
@@ -0,0 +1,376 @@
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-D26QphWG.mjs";
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-BPrUvqEZ.mjs";
import * as ESTree from "@oxc-project/types";
import { Program } from "@oxc-project/types";
//#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
interface VisitorObject$1 {
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
EmptyStatement?: (node: ESTree.EmptyStatement) => void;
"EmptyStatement:exit"?: (node: ESTree.EmptyStatement) => void;
Literal?: (node: ESTree.BooleanLiteral | ESTree.NullLiteral | ESTree.NumericLiteral | ESTree.StringLiteral | ESTree.BigIntLiteral | ESTree.RegExpLiteral) => void;
"Literal:exit"?: (node: ESTree.BooleanLiteral | ESTree.NullLiteral | ESTree.NumericLiteral | ESTree.StringLiteral | ESTree.BigIntLiteral | ESTree.RegExpLiteral) => void;
PrivateIdentifier?: (node: ESTree.PrivateIdentifier) => void;
"PrivateIdentifier:exit"?: (node: ESTree.PrivateIdentifier) => void;
Super?: (node: ESTree.Super) => void;
"Super:exit"?: (node: ESTree.Super) => void;
TemplateElement?: (node: ESTree.TemplateElement) => void;
"TemplateElement:exit"?: (node: ESTree.TemplateElement) => void;
ThisExpression?: (node: ESTree.ThisExpression) => void;
"ThisExpression:exit"?: (node: ESTree.ThisExpression) => void;
JSXClosingFragment?: (node: ESTree.JSXClosingFragment) => void;
"JSXClosingFragment:exit"?: (node: ESTree.JSXClosingFragment) => void;
JSXEmptyExpression?: (node: ESTree.JSXEmptyExpression) => void;
"JSXEmptyExpression:exit"?: (node: ESTree.JSXEmptyExpression) => void;
JSXIdentifier?: (node: ESTree.JSXIdentifier) => void;
"JSXIdentifier:exit"?: (node: ESTree.JSXIdentifier) => void;
JSXOpeningFragment?: (node: ESTree.JSXOpeningFragment) => void;
"JSXOpeningFragment:exit"?: (node: ESTree.JSXOpeningFragment) => void;
JSXText?: (node: ESTree.JSXText) => void;
"JSXText:exit"?: (node: ESTree.JSXText) => void;
TSAnyKeyword?: (node: ESTree.TSAnyKeyword) => void;
"TSAnyKeyword:exit"?: (node: ESTree.TSAnyKeyword) => void;
TSBigIntKeyword?: (node: ESTree.TSBigIntKeyword) => void;
"TSBigIntKeyword:exit"?: (node: ESTree.TSBigIntKeyword) => void;
TSBooleanKeyword?: (node: ESTree.TSBooleanKeyword) => void;
"TSBooleanKeyword:exit"?: (node: ESTree.TSBooleanKeyword) => void;
TSIntrinsicKeyword?: (node: ESTree.TSIntrinsicKeyword) => void;
"TSIntrinsicKeyword:exit"?: (node: ESTree.TSIntrinsicKeyword) => void;
TSJSDocUnknownType?: (node: ESTree.JSDocUnknownType) => void;
"TSJSDocUnknownType:exit"?: (node: ESTree.JSDocUnknownType) => void;
TSNeverKeyword?: (node: ESTree.TSNeverKeyword) => void;
"TSNeverKeyword:exit"?: (node: ESTree.TSNeverKeyword) => void;
TSNullKeyword?: (node: ESTree.TSNullKeyword) => void;
"TSNullKeyword:exit"?: (node: ESTree.TSNullKeyword) => void;
TSNumberKeyword?: (node: ESTree.TSNumberKeyword) => void;
"TSNumberKeyword:exit"?: (node: ESTree.TSNumberKeyword) => void;
TSObjectKeyword?: (node: ESTree.TSObjectKeyword) => void;
"TSObjectKeyword:exit"?: (node: ESTree.TSObjectKeyword) => void;
TSStringKeyword?: (node: ESTree.TSStringKeyword) => void;
"TSStringKeyword:exit"?: (node: ESTree.TSStringKeyword) => void;
TSSymbolKeyword?: (node: ESTree.TSSymbolKeyword) => void;
"TSSymbolKeyword:exit"?: (node: ESTree.TSSymbolKeyword) => void;
TSThisType?: (node: ESTree.TSThisType) => void;
"TSThisType:exit"?: (node: ESTree.TSThisType) => void;
TSUndefinedKeyword?: (node: ESTree.TSUndefinedKeyword) => void;
"TSUndefinedKeyword:exit"?: (node: ESTree.TSUndefinedKeyword) => void;
TSUnknownKeyword?: (node: ESTree.TSUnknownKeyword) => void;
"TSUnknownKeyword:exit"?: (node: ESTree.TSUnknownKeyword) => void;
TSVoidKeyword?: (node: ESTree.TSVoidKeyword) => void;
"TSVoidKeyword:exit"?: (node: ESTree.TSVoidKeyword) => void;
AccessorProperty?: (node: ESTree.AccessorProperty) => void;
"AccessorProperty:exit"?: (node: ESTree.AccessorProperty) => void;
ArrayExpression?: (node: ESTree.ArrayExpression) => void;
"ArrayExpression:exit"?: (node: ESTree.ArrayExpression) => void;
ArrayPattern?: (node: ESTree.ArrayPattern) => void;
"ArrayPattern:exit"?: (node: ESTree.ArrayPattern) => void;
ArrowFunctionExpression?: (node: ESTree.ArrowFunctionExpression) => void;
"ArrowFunctionExpression:exit"?: (node: ESTree.ArrowFunctionExpression) => void;
AssignmentExpression?: (node: ESTree.AssignmentExpression) => void;
"AssignmentExpression:exit"?: (node: ESTree.AssignmentExpression) => void;
AssignmentPattern?: (node: ESTree.AssignmentPattern) => void;
"AssignmentPattern:exit"?: (node: ESTree.AssignmentPattern) => void;
AwaitExpression?: (node: ESTree.AwaitExpression) => void;
"AwaitExpression:exit"?: (node: ESTree.AwaitExpression) => void;
BinaryExpression?: (node: ESTree.BinaryExpression) => void;
"BinaryExpression:exit"?: (node: ESTree.BinaryExpression) => void;
BlockStatement?: (node: ESTree.BlockStatement) => void;
"BlockStatement:exit"?: (node: ESTree.BlockStatement) => void;
BreakStatement?: (node: ESTree.BreakStatement) => void;
"BreakStatement:exit"?: (node: ESTree.BreakStatement) => void;
CallExpression?: (node: ESTree.CallExpression) => void;
"CallExpression:exit"?: (node: ESTree.CallExpression) => void;
CatchClause?: (node: ESTree.CatchClause) => void;
"CatchClause:exit"?: (node: ESTree.CatchClause) => void;
ChainExpression?: (node: ESTree.ChainExpression) => void;
"ChainExpression:exit"?: (node: ESTree.ChainExpression) => void;
ClassBody?: (node: ESTree.ClassBody) => void;
"ClassBody:exit"?: (node: ESTree.ClassBody) => void;
ClassDeclaration?: (node: ESTree.Class) => void;
"ClassDeclaration:exit"?: (node: ESTree.Class) => void;
ClassExpression?: (node: ESTree.Class) => void;
"ClassExpression:exit"?: (node: ESTree.Class) => void;
ConditionalExpression?: (node: ESTree.ConditionalExpression) => void;
"ConditionalExpression:exit"?: (node: ESTree.ConditionalExpression) => void;
ContinueStatement?: (node: ESTree.ContinueStatement) => void;
"ContinueStatement:exit"?: (node: ESTree.ContinueStatement) => void;
Decorator?: (node: ESTree.Decorator) => void;
"Decorator:exit"?: (node: ESTree.Decorator) => void;
DoWhileStatement?: (node: ESTree.DoWhileStatement) => void;
"DoWhileStatement:exit"?: (node: ESTree.DoWhileStatement) => void;
ExportAllDeclaration?: (node: ESTree.ExportAllDeclaration) => void;
"ExportAllDeclaration:exit"?: (node: ESTree.ExportAllDeclaration) => void;
ExportDefaultDeclaration?: (node: ESTree.ExportDefaultDeclaration) => void;
"ExportDefaultDeclaration:exit"?: (node: ESTree.ExportDefaultDeclaration) => void;
ExportNamedDeclaration?: (node: ESTree.ExportNamedDeclaration) => void;
"ExportNamedDeclaration:exit"?: (node: ESTree.ExportNamedDeclaration) => void;
ExportSpecifier?: (node: ESTree.ExportSpecifier) => void;
"ExportSpecifier:exit"?: (node: ESTree.ExportSpecifier) => void;
ExpressionStatement?: (node: ESTree.ExpressionStatement) => void;
"ExpressionStatement:exit"?: (node: ESTree.ExpressionStatement) => void;
ForInStatement?: (node: ESTree.ForInStatement) => void;
"ForInStatement:exit"?: (node: ESTree.ForInStatement) => void;
ForOfStatement?: (node: ESTree.ForOfStatement) => void;
"ForOfStatement:exit"?: (node: ESTree.ForOfStatement) => void;
ForStatement?: (node: ESTree.ForStatement) => void;
"ForStatement:exit"?: (node: ESTree.ForStatement) => void;
FunctionDeclaration?: (node: ESTree.Function) => void;
"FunctionDeclaration:exit"?: (node: ESTree.Function) => void;
FunctionExpression?: (node: ESTree.Function) => void;
"FunctionExpression:exit"?: (node: ESTree.Function) => void;
Identifier?: (node: ESTree.IdentifierName | ESTree.IdentifierReference | ESTree.BindingIdentifier | ESTree.LabelIdentifier | ESTree.TSThisParameter | ESTree.TSIndexSignatureName) => void;
"Identifier:exit"?: (node: ESTree.IdentifierName | ESTree.IdentifierReference | ESTree.BindingIdentifier | ESTree.LabelIdentifier | ESTree.TSThisParameter | ESTree.TSIndexSignatureName) => void;
IfStatement?: (node: ESTree.IfStatement) => void;
"IfStatement:exit"?: (node: ESTree.IfStatement) => void;
ImportAttribute?: (node: ESTree.ImportAttribute) => void;
"ImportAttribute:exit"?: (node: ESTree.ImportAttribute) => void;
ImportDeclaration?: (node: ESTree.ImportDeclaration) => void;
"ImportDeclaration:exit"?: (node: ESTree.ImportDeclaration) => void;
ImportDefaultSpecifier?: (node: ESTree.ImportDefaultSpecifier) => void;
"ImportDefaultSpecifier:exit"?: (node: ESTree.ImportDefaultSpecifier) => void;
ImportExpression?: (node: ESTree.ImportExpression) => void;
"ImportExpression:exit"?: (node: ESTree.ImportExpression) => void;
ImportNamespaceSpecifier?: (node: ESTree.ImportNamespaceSpecifier) => void;
"ImportNamespaceSpecifier:exit"?: (node: ESTree.ImportNamespaceSpecifier) => void;
ImportSpecifier?: (node: ESTree.ImportSpecifier) => void;
"ImportSpecifier:exit"?: (node: ESTree.ImportSpecifier) => void;
LabeledStatement?: (node: ESTree.LabeledStatement) => void;
"LabeledStatement:exit"?: (node: ESTree.LabeledStatement) => void;
LogicalExpression?: (node: ESTree.LogicalExpression) => void;
"LogicalExpression:exit"?: (node: ESTree.LogicalExpression) => void;
MemberExpression?: (node: ESTree.MemberExpression) => void;
"MemberExpression:exit"?: (node: ESTree.MemberExpression) => void;
MetaProperty?: (node: ESTree.MetaProperty) => void;
"MetaProperty:exit"?: (node: ESTree.MetaProperty) => void;
MethodDefinition?: (node: ESTree.MethodDefinition) => void;
"MethodDefinition:exit"?: (node: ESTree.MethodDefinition) => void;
NewExpression?: (node: ESTree.NewExpression) => void;
"NewExpression:exit"?: (node: ESTree.NewExpression) => void;
ObjectExpression?: (node: ESTree.ObjectExpression) => void;
"ObjectExpression:exit"?: (node: ESTree.ObjectExpression) => void;
ObjectPattern?: (node: ESTree.ObjectPattern) => void;
"ObjectPattern:exit"?: (node: ESTree.ObjectPattern) => void;
ParenthesizedExpression?: (node: ESTree.ParenthesizedExpression) => void;
"ParenthesizedExpression:exit"?: (node: ESTree.ParenthesizedExpression) => void;
Program?: (node: ESTree.Program) => void;
"Program:exit"?: (node: ESTree.Program) => void;
Property?: (node: ESTree.ObjectProperty | ESTree.AssignmentTargetProperty | ESTree.AssignmentTargetPropertyProperty | ESTree.BindingProperty) => void;
"Property:exit"?: (node: ESTree.ObjectProperty | ESTree.AssignmentTargetProperty | ESTree.AssignmentTargetPropertyProperty | ESTree.BindingProperty) => void;
PropertyDefinition?: (node: ESTree.PropertyDefinition) => void;
"PropertyDefinition:exit"?: (node: ESTree.PropertyDefinition) => void;
RestElement?: (node: ESTree.AssignmentTargetRest | ESTree.BindingRestElement | ESTree.FormalParameterRest) => void;
"RestElement:exit"?: (node: ESTree.AssignmentTargetRest | ESTree.BindingRestElement | ESTree.FormalParameterRest) => void;
ReturnStatement?: (node: ESTree.ReturnStatement) => void;
"ReturnStatement:exit"?: (node: ESTree.ReturnStatement) => void;
SequenceExpression?: (node: ESTree.SequenceExpression) => void;
"SequenceExpression:exit"?: (node: ESTree.SequenceExpression) => void;
SpreadElement?: (node: ESTree.SpreadElement) => void;
"SpreadElement:exit"?: (node: ESTree.SpreadElement) => void;
StaticBlock?: (node: ESTree.StaticBlock) => void;
"StaticBlock:exit"?: (node: ESTree.StaticBlock) => void;
SwitchCase?: (node: ESTree.SwitchCase) => void;
"SwitchCase:exit"?: (node: ESTree.SwitchCase) => void;
SwitchStatement?: (node: ESTree.SwitchStatement) => void;
"SwitchStatement:exit"?: (node: ESTree.SwitchStatement) => void;
TaggedTemplateExpression?: (node: ESTree.TaggedTemplateExpression) => void;
"TaggedTemplateExpression:exit"?: (node: ESTree.TaggedTemplateExpression) => void;
TemplateLiteral?: (node: ESTree.TemplateLiteral) => void;
"TemplateLiteral:exit"?: (node: ESTree.TemplateLiteral) => void;
ThrowStatement?: (node: ESTree.ThrowStatement) => void;
"ThrowStatement:exit"?: (node: ESTree.ThrowStatement) => void;
TryStatement?: (node: ESTree.TryStatement) => void;
"TryStatement:exit"?: (node: ESTree.TryStatement) => void;
UnaryExpression?: (node: ESTree.UnaryExpression) => void;
"UnaryExpression:exit"?: (node: ESTree.UnaryExpression) => void;
UpdateExpression?: (node: ESTree.UpdateExpression) => void;
"UpdateExpression:exit"?: (node: ESTree.UpdateExpression) => void;
V8IntrinsicExpression?: (node: ESTree.V8IntrinsicExpression) => void;
"V8IntrinsicExpression:exit"?: (node: ESTree.V8IntrinsicExpression) => void;
VariableDeclaration?: (node: ESTree.VariableDeclaration) => void;
"VariableDeclaration:exit"?: (node: ESTree.VariableDeclaration) => void;
VariableDeclarator?: (node: ESTree.VariableDeclarator) => void;
"VariableDeclarator:exit"?: (node: ESTree.VariableDeclarator) => void;
WhileStatement?: (node: ESTree.WhileStatement) => void;
"WhileStatement:exit"?: (node: ESTree.WhileStatement) => void;
WithStatement?: (node: ESTree.WithStatement) => void;
"WithStatement:exit"?: (node: ESTree.WithStatement) => void;
YieldExpression?: (node: ESTree.YieldExpression) => void;
"YieldExpression:exit"?: (node: ESTree.YieldExpression) => void;
JSXAttribute?: (node: ESTree.JSXAttribute) => void;
"JSXAttribute:exit"?: (node: ESTree.JSXAttribute) => void;
JSXClosingElement?: (node: ESTree.JSXClosingElement) => void;
"JSXClosingElement:exit"?: (node: ESTree.JSXClosingElement) => void;
JSXElement?: (node: ESTree.JSXElement) => void;
"JSXElement:exit"?: (node: ESTree.JSXElement) => void;
JSXExpressionContainer?: (node: ESTree.JSXExpressionContainer) => void;
"JSXExpressionContainer:exit"?: (node: ESTree.JSXExpressionContainer) => void;
JSXFragment?: (node: ESTree.JSXFragment) => void;
"JSXFragment:exit"?: (node: ESTree.JSXFragment) => void;
JSXMemberExpression?: (node: ESTree.JSXMemberExpression) => void;
"JSXMemberExpression:exit"?: (node: ESTree.JSXMemberExpression) => void;
JSXNamespacedName?: (node: ESTree.JSXNamespacedName) => void;
"JSXNamespacedName:exit"?: (node: ESTree.JSXNamespacedName) => void;
JSXOpeningElement?: (node: ESTree.JSXOpeningElement) => void;
"JSXOpeningElement:exit"?: (node: ESTree.JSXOpeningElement) => void;
JSXSpreadAttribute?: (node: ESTree.JSXSpreadAttribute) => void;
"JSXSpreadAttribute:exit"?: (node: ESTree.JSXSpreadAttribute) => void;
JSXSpreadChild?: (node: ESTree.JSXSpreadChild) => void;
"JSXSpreadChild:exit"?: (node: ESTree.JSXSpreadChild) => void;
TSAbstractAccessorProperty?: (node: ESTree.AccessorProperty) => void;
"TSAbstractAccessorProperty:exit"?: (node: ESTree.AccessorProperty) => void;
TSAbstractMethodDefinition?: (node: ESTree.MethodDefinition) => void;
"TSAbstractMethodDefinition:exit"?: (node: ESTree.MethodDefinition) => void;
TSAbstractPropertyDefinition?: (node: ESTree.PropertyDefinition) => void;
"TSAbstractPropertyDefinition:exit"?: (node: ESTree.PropertyDefinition) => void;
TSArrayType?: (node: ESTree.TSArrayType) => void;
"TSArrayType:exit"?: (node: ESTree.TSArrayType) => void;
TSAsExpression?: (node: ESTree.TSAsExpression) => void;
"TSAsExpression:exit"?: (node: ESTree.TSAsExpression) => void;
TSCallSignatureDeclaration?: (node: ESTree.TSCallSignatureDeclaration) => void;
"TSCallSignatureDeclaration:exit"?: (node: ESTree.TSCallSignatureDeclaration) => void;
TSClassImplements?: (node: ESTree.TSClassImplements) => void;
"TSClassImplements:exit"?: (node: ESTree.TSClassImplements) => void;
TSConditionalType?: (node: ESTree.TSConditionalType) => void;
"TSConditionalType:exit"?: (node: ESTree.TSConditionalType) => void;
TSConstructSignatureDeclaration?: (node: ESTree.TSConstructSignatureDeclaration) => void;
"TSConstructSignatureDeclaration:exit"?: (node: ESTree.TSConstructSignatureDeclaration) => void;
TSConstructorType?: (node: ESTree.TSConstructorType) => void;
"TSConstructorType:exit"?: (node: ESTree.TSConstructorType) => void;
TSDeclareFunction?: (node: ESTree.Function) => void;
"TSDeclareFunction:exit"?: (node: ESTree.Function) => void;
TSEmptyBodyFunctionExpression?: (node: ESTree.Function) => void;
"TSEmptyBodyFunctionExpression:exit"?: (node: ESTree.Function) => void;
TSEnumBody?: (node: ESTree.TSEnumBody) => void;
"TSEnumBody:exit"?: (node: ESTree.TSEnumBody) => void;
TSEnumDeclaration?: (node: ESTree.TSEnumDeclaration) => void;
"TSEnumDeclaration:exit"?: (node: ESTree.TSEnumDeclaration) => void;
TSEnumMember?: (node: ESTree.TSEnumMember) => void;
"TSEnumMember:exit"?: (node: ESTree.TSEnumMember) => void;
TSExportAssignment?: (node: ESTree.TSExportAssignment) => void;
"TSExportAssignment:exit"?: (node: ESTree.TSExportAssignment) => void;
TSExternalModuleReference?: (node: ESTree.TSExternalModuleReference) => void;
"TSExternalModuleReference:exit"?: (node: ESTree.TSExternalModuleReference) => void;
TSFunctionType?: (node: ESTree.TSFunctionType) => void;
"TSFunctionType:exit"?: (node: ESTree.TSFunctionType) => void;
TSImportEqualsDeclaration?: (node: ESTree.TSImportEqualsDeclaration) => void;
"TSImportEqualsDeclaration:exit"?: (node: ESTree.TSImportEqualsDeclaration) => void;
TSImportType?: (node: ESTree.TSImportType) => void;
"TSImportType:exit"?: (node: ESTree.TSImportType) => void;
TSIndexSignature?: (node: ESTree.TSIndexSignature) => void;
"TSIndexSignature:exit"?: (node: ESTree.TSIndexSignature) => void;
TSIndexedAccessType?: (node: ESTree.TSIndexedAccessType) => void;
"TSIndexedAccessType:exit"?: (node: ESTree.TSIndexedAccessType) => void;
TSInferType?: (node: ESTree.TSInferType) => void;
"TSInferType:exit"?: (node: ESTree.TSInferType) => void;
TSInstantiationExpression?: (node: ESTree.TSInstantiationExpression) => void;
"TSInstantiationExpression:exit"?: (node: ESTree.TSInstantiationExpression) => void;
TSInterfaceBody?: (node: ESTree.TSInterfaceBody) => void;
"TSInterfaceBody:exit"?: (node: ESTree.TSInterfaceBody) => void;
TSInterfaceDeclaration?: (node: ESTree.TSInterfaceDeclaration) => void;
"TSInterfaceDeclaration:exit"?: (node: ESTree.TSInterfaceDeclaration) => void;
TSInterfaceHeritage?: (node: ESTree.TSInterfaceHeritage) => void;
"TSInterfaceHeritage:exit"?: (node: ESTree.TSInterfaceHeritage) => void;
TSIntersectionType?: (node: ESTree.TSIntersectionType) => void;
"TSIntersectionType:exit"?: (node: ESTree.TSIntersectionType) => void;
TSJSDocNonNullableType?: (node: ESTree.JSDocNonNullableType) => void;
"TSJSDocNonNullableType:exit"?: (node: ESTree.JSDocNonNullableType) => void;
TSJSDocNullableType?: (node: ESTree.JSDocNullableType) => void;
"TSJSDocNullableType:exit"?: (node: ESTree.JSDocNullableType) => void;
TSLiteralType?: (node: ESTree.TSLiteralType) => void;
"TSLiteralType:exit"?: (node: ESTree.TSLiteralType) => void;
TSMappedType?: (node: ESTree.TSMappedType) => void;
"TSMappedType:exit"?: (node: ESTree.TSMappedType) => void;
TSMethodSignature?: (node: ESTree.TSMethodSignature) => void;
"TSMethodSignature:exit"?: (node: ESTree.TSMethodSignature) => void;
TSModuleBlock?: (node: ESTree.TSModuleBlock) => void;
"TSModuleBlock:exit"?: (node: ESTree.TSModuleBlock) => void;
TSModuleDeclaration?: (node: ESTree.TSModuleDeclaration | ESTree.TSGlobalDeclaration) => void;
"TSModuleDeclaration:exit"?: (node: ESTree.TSModuleDeclaration | ESTree.TSGlobalDeclaration) => void;
TSNamedTupleMember?: (node: ESTree.TSNamedTupleMember) => void;
"TSNamedTupleMember:exit"?: (node: ESTree.TSNamedTupleMember) => void;
TSNamespaceExportDeclaration?: (node: ESTree.TSNamespaceExportDeclaration) => void;
"TSNamespaceExportDeclaration:exit"?: (node: ESTree.TSNamespaceExportDeclaration) => void;
TSNonNullExpression?: (node: ESTree.TSNonNullExpression) => void;
"TSNonNullExpression:exit"?: (node: ESTree.TSNonNullExpression) => void;
TSOptionalType?: (node: ESTree.TSOptionalType) => void;
"TSOptionalType:exit"?: (node: ESTree.TSOptionalType) => void;
TSParameterProperty?: (node: ESTree.TSParameterProperty) => void;
"TSParameterProperty:exit"?: (node: ESTree.TSParameterProperty) => void;
TSParenthesizedType?: (node: ESTree.TSParenthesizedType) => void;
"TSParenthesizedType:exit"?: (node: ESTree.TSParenthesizedType) => void;
TSPropertySignature?: (node: ESTree.TSPropertySignature) => void;
"TSPropertySignature:exit"?: (node: ESTree.TSPropertySignature) => void;
TSQualifiedName?: (node: ESTree.TSQualifiedName) => void;
"TSQualifiedName:exit"?: (node: ESTree.TSQualifiedName) => void;
TSRestType?: (node: ESTree.TSRestType) => void;
"TSRestType:exit"?: (node: ESTree.TSRestType) => void;
TSSatisfiesExpression?: (node: ESTree.TSSatisfiesExpression) => void;
"TSSatisfiesExpression:exit"?: (node: ESTree.TSSatisfiesExpression) => void;
TSTemplateLiteralType?: (node: ESTree.TSTemplateLiteralType) => void;
"TSTemplateLiteralType:exit"?: (node: ESTree.TSTemplateLiteralType) => void;
TSTupleType?: (node: ESTree.TSTupleType) => void;
"TSTupleType:exit"?: (node: ESTree.TSTupleType) => void;
TSTypeAliasDeclaration?: (node: ESTree.TSTypeAliasDeclaration) => void;
"TSTypeAliasDeclaration:exit"?: (node: ESTree.TSTypeAliasDeclaration) => void;
TSTypeAnnotation?: (node: ESTree.TSTypeAnnotation) => void;
"TSTypeAnnotation:exit"?: (node: ESTree.TSTypeAnnotation) => void;
TSTypeAssertion?: (node: ESTree.TSTypeAssertion) => void;
"TSTypeAssertion:exit"?: (node: ESTree.TSTypeAssertion) => void;
TSTypeLiteral?: (node: ESTree.TSTypeLiteral) => void;
"TSTypeLiteral:exit"?: (node: ESTree.TSTypeLiteral) => void;
TSTypeOperator?: (node: ESTree.TSTypeOperator) => void;
"TSTypeOperator:exit"?: (node: ESTree.TSTypeOperator) => void;
TSTypeParameter?: (node: ESTree.TSTypeParameter) => void;
"TSTypeParameter:exit"?: (node: ESTree.TSTypeParameter) => void;
TSTypeParameterDeclaration?: (node: ESTree.TSTypeParameterDeclaration) => void;
"TSTypeParameterDeclaration:exit"?: (node: ESTree.TSTypeParameterDeclaration) => void;
TSTypeParameterInstantiation?: (node: ESTree.TSTypeParameterInstantiation) => void;
"TSTypeParameterInstantiation:exit"?: (node: ESTree.TSTypeParameterInstantiation) => void;
TSTypePredicate?: (node: ESTree.TSTypePredicate) => void;
"TSTypePredicate:exit"?: (node: ESTree.TSTypePredicate) => void;
TSTypeQuery?: (node: ESTree.TSTypeQuery) => void;
"TSTypeQuery:exit"?: (node: ESTree.TSTypeQuery) => void;
TSTypeReference?: (node: ESTree.TSTypeReference) => void;
"TSTypeReference:exit"?: (node: ESTree.TSTypeReference) => void;
TSUnionType?: (node: ESTree.TSUnionType) => void;
"TSUnionType:exit"?: (node: ESTree.TSUnionType) => void;
}
//#endregion
//#region src/utils/visitor.d.ts
/**
* Visitor object for traversing AST.
*
* @category Utilities
*/
type VisitorObject = VisitorObject$1;
/**
* Visitor class for traversing AST.
*
* @example
* ```ts
* import { Visitor } from 'rolldown/utils';
* import { parseSync } from 'rolldown/utils';
*
* const result = parseSync(...);
* const visitor = new Visitor({
* VariableDeclaration(path) {
* // Do something with the variable declaration
* },
* "VariableDeclaration:exit"(path) {
* // Do something after visiting the variable declaration
* }
* });
* visitor.visit(result.program);
* ```
*
* @category Utilities
* @experimental
*/
declare class Visitor {
#private;
constructor(visitor: VisitorObject);
visit(program: Program): void;
}
//#endregion
export { type ESTree, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type TransformOptions, type TransformResult, TsconfigCache, type BindingTsconfigCompilerOptions as TsconfigCompilerOptions, type BindingTsconfigRawOptions as TsconfigRawOptions, Visitor, type VisitorObject, minify, minifySync, parse, parseSync, transform, transformSync };
@@ -0,0 +1,527 @@
flf2a$ 5 4 11 0 16 0 8256 0
Author : LG Beard
Date : 2004/4/9 13:04:21
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
---
Font modified June 17, 2007 by patorjk
This was to widen the space character.
$ $#
$ $#
$ $#
$ $#
$ $##
.-. #
| | #
{ } #
`-' #
##
.-..-. #
{ }{ } #
`-'`-' #
#
##
_ .-..-.#
{_/ // /}#
{/ // /_}#
`-'`-' #
##
.--//. #
{ {//-` #
.-//} } #
`//--' #
##
_ .-. #
{_}/ / _ #
\ }{_}#
`-' #
##
&#
#
#
#
##
.-. #
{ } #
`-' #
#
##
.'} #
/.' #
{ `. #
`-.} #
##
{`. #
`.\ #
.' } #
{.-' #
##
*#
#
#
#
##
_ #
_{ }_ #
{_ _} #
{_} #
##
#
#
_ #
/_} #
##
#
___ #
{___} #
#
##
#
#
_ #
{_} #
##
.-. #
/ / #
/ / #
`-' #
##
.---. #
. .-. . #
' `-' ' #
`---' #
##
.-. #
{ | #
| } #
`-' #
##
.---. #
`-`} } #
{ {.-. #
`---' #
##
.---. #
`-`} } #
.-.} } #
`----` #
##
.-. .-. #
\ \| | #
`-\ } #
`-' #
##
.---. #
{ {`-' #
.-.} } #
`---' #
##
.-. #
/ /. #
{ {} } #
`--' #
##
.---. #
`-`} } #
/ / #
`-' #
##
.--. #
{ {} } #
{ {} } #
`--' #
##
.--. #
{ {} } #
`/ / #
`-' #
##
_ #
{_} #
_ #
{_} #
##
_ #
{_} #
_ #
/_} #
##
.-. #
/ { #
\ { #
`-` #
##
___ #
{___} #
___ #
{___} #
##
.-. #
} \ #
} / #
'-' #
##
.---. #
`-`} } #
{ } #
`-' #
##
.----. #
/ .--. \#
|/ {} \|#
\`-'`-'/#
`----' ##
.--. #
/ {} \ #
/ /\ \ #
`-' `-' #
##
.----. #
| {_} } #
| {_} } #
`----' #
##
.----. #
| }`-' #
| },-. #
`----' #
##
.----. #
} {-. \ #
} '-} / #
`----' #
##
.----. #
} |__} #
} '__} #
`----' #
##
.----. #
} |__} #
} '_} #
`--' #
##
.----. #
| |--' #
| }-`} #
`----' #
##
.-. .-. #
{ {_} | #
| { } } #
`-' `-' #
##
.-. #
{ | #
| } #
`-' #
##
.-. #
| | #
{`-' } #
`---' #
##
.-..-. #
| ' / #
| . \ #
`-'`-` #
##
.-. #
} | #
} '--. #
`----' #
##
.-. .-. #
} \/ { #
| { } | #
`-' `-' #
##
.-. .-. #
| \{ | #
| }\ { #
`-' `-' #
##
.---. #
/ {-. \ #
\ '-} / #
`---' #
##
.-.-. #
| } }} #
| |-' #
`-' #
##
.---. #
/ {-. \ #
\ '-} { #
`--`-' #
##
.---. #
} }}_} #
| } \ #
`-'-' #
##
.----. #
{ {__-` #
.-._} } #
`----' #
##
.-----. #
`-' '-' #
} { #
`-' #
##
.-. .-. #
| } { | #
\ `-' / #
`---' #
##
.-. .-.#
\ \_/ / #
\ / #
`-' #
##
.-. .-. #
| { } | #
{ /\ } #
`-' `-' #
##
.-..-. #
\ {} / #
/ {} \ #
`-'`-' #
##
.-. .-. #
\ \/ / #
`-\ } #
`-' #
##
.---. #
`-`} } #
{ /.-. #
`---' #
##
.---, #
{ .-' #
{ `-. #
`---` #
##
.-. #
\ \ #
\ \ #
`-' #
##
.---. #
`-. } #
.-' } #
`---` #
##
.--. #
/ {} \ #
`-' `-' #
#
##
#
$ $ #
$ $ #
_______ #
{_______}##
.-. #
\ \ #
`-' #
$$ #
##
.--. #
/ {} \ #
/ /\ \ #
`-' `-' #
##
.----. #
| {_} } #
| {_} } #
`----' #
##
.----. #
| }`-' #
| },-. #
`----' #
##
.----. #
} {-. \ #
} '-} / #
`----' #
##
.----. #
} |__} #
} '__} #
`----' #
##
.----. #
} |__} #
} '_} #
`--' #
##
.----. #
| |--' #
| }-`} #
`----' #
##
.-. .-. #
{ {_} | #
| { } } #
`-' `-' #
##
.-. #
{ | #
| } #
`-' #
##
.-. #
| | #
{`-' } #
`---' #
##
.-..-. #
| ' / #
| . \ #
`-'`-` #
##
.-. #
} | #
} '--. #
`----' #
##
.-. .-. #
} \/ { #
| { } | #
`-' `-' #
##
.-. .-. #
| \{ | #
| }\ { #
`-' `-' #
##
.---. #
/ {-. \ #
\ '-} / #
`---' #
##
.-.-. #
| } }} #
| |-' #
`-' #
##
.---. #
/ {-. \ #
\ '-} { #
`--`-' #
##
.---. #
} }}_} #
| } \ #
`-'-' #
##
.----. #
{ {__-` #
.-._} } #
`----' #
##
.-----. #
`-' '-' #
} { #
`-' #
##
.-. .-. #
| } { | #
\ `-' / #
`---' #
##
.-. .-.#
\ \_/ / #
\ / #
`-' #
##
.-. .-. #
| { } | #
{ /\ } #
`-' `-' #
##
.-..-. #
\ {} / #
/ {} \ #
`-'`-' #
##
.-. .-. #
\ \/ / #
`-\ } #
`-' #
##
.---. #
`-`} } #
{ /.-. #
`---' #
##
.'} #
.'.' #
{ `. #
`-._} #
##
.-. #
{ } #
{ } #
`-' #
##
{`. #
`.`. #
.' } #
{_.-' #
##
#
{`-._ #
`-._} #
#
##
{}--{} #
/ {} \ #
/ /\ \ #
`-' `-' #
##
{_}-{_} #
/ {-. \ #
\ '-} / #
`---' #
##
{_} {_} #
| } { | #
\ `-' / #
`---' #
##
{}--{} #
/ {} \ #
/ /\ \ #
`-' `-' #
##
{_}-{_} #
/ {-. \ #
\ '-} / #
`---' #
##
{_} {_} #
| } { | #
\ `-' / #
`---' #
##
.----. #
| {_} } #
| {_} } #
| |--' #
`-' ##
@@ -0,0 +1,25 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Sparkles = createLucideIcon("Sparkles", [
[
"path",
{
d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",
key: "4pj2yx"
}
],
["path", { d: "M20 3v4", key: "1olli1" }],
["path", { d: "M22 5h-4", key: "1gvqau" }],
["path", { d: "M4 17v2", key: "vumght" }],
["path", { d: "M5 18H3", key: "zchphs" }]
]);
export { Sparkles as default };
//# sourceMappingURL=sparkles.js.map
@@ -0,0 +1,58 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.deepPartial = deepPartial;
const visit_js_1 = require("../core/visit.cjs");
const schemas = __importStar(require("./schemas.cjs"));
/** Returns a copy of the schema with every nested object's properties made optional. */
function deepPartial(schema) {
return (0, visit_js_1.visit)(schema, {
object: (s) => s.partial(),
// Every partialed option now admits `undefined`, which the constructor rejects as a duplicate.
union: (s) => {
const def = s._zod.def;
return def.discriminator === undefined ? s : schemas.union(def.options);
},
});
}
// seal-cjs-exports
(function () {
var keys = Object.getOwnPropertyNames(exports);
for (var i = 0; i < keys.length; i++) {
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
if (!desc || !desc.get || !desc.configurable) continue;
var value;
try {
value = desc.get();
} catch (e) {
continue;
}
// a circular require may not have settled this one yet, so leave it live
if (value === undefined) continue;
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
}
Object.freeze(exports);
})();
@@ -0,0 +1 @@
{"version":3,"file":"external-link.js","sources":["../../../src/icons/external-link.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ExternalLink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgM2g2djYiIC8+CiAgPHBhdGggZD0iTTEwIDE0IDIxIDMiIC8+CiAgPHBhdGggZD0iTTE4IDEzdjZhMiAyIDAgMCAxLTIgMkg1YTIgMiAwIDAgMS0yLTJWOGEyIDIgMCAwIDEgMi0yaDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/external-link\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ExternalLink = createLucideIcon('ExternalLink', [\n ['path', { d: 'M15 3h6v6', key: '1q9fwt' }],\n ['path', { d: 'M10 14 21 3', key: 'gplh6r' }],\n ['path', { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6', key: 'a6xqqp' }],\n]);\n\nexport default ExternalLink;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,iBAAiB,cAAgB,CAAA,CAAA,CAAA;AAAA,CAAA,CACpD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA4D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC3F,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const SmartphoneCharging = createLucideIcon("SmartphoneCharging", [
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
["path", { d: "M12.667 8 10 12h4l-2.667 4", key: "h9lk2d" }]
]);
export { SmartphoneCharging as default };
//# sourceMappingURL=smartphone-charging.js.map
@@ -0,0 +1,73 @@
import { MotionGlobalConfig } from 'motion-utils';
import { stepsOrder } from './order.mjs';
import { createRenderStep } from './render-step.mjs';
const maxElapsed = 40;
function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
let runNextFrame = false;
let useDefaultElapsed = true;
const state = {
delta: 0.0,
timestamp: 0.0,
isProcessing: false,
};
const flagRunNextFrame = () => (runNextFrame = true);
const steps = stepsOrder.reduce((acc, key) => {
acc[key] = createRenderStep(flagRunNextFrame, allowKeepAlive ? key : undefined);
return acc;
}, {});
const { setup, read, resolveKeyframes, preUpdate, update, preRender, render, postRender, } = steps;
const processBatch = () => {
const useManualTiming = MotionGlobalConfig.useManualTiming;
const timestamp = useManualTiming
? state.timestamp
: performance.now();
runNextFrame = false;
if (!useManualTiming) {
state.delta = useDefaultElapsed
? 1000 / 60
: Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);
}
state.timestamp = timestamp;
state.isProcessing = true;
// Unrolled render loop for better per-frame performance
setup.process(state);
read.process(state);
resolveKeyframes.process(state);
preUpdate.process(state);
update.process(state);
preRender.process(state);
render.process(state);
postRender.process(state);
state.isProcessing = false;
if (runNextFrame && allowKeepAlive) {
useDefaultElapsed = false;
scheduleNextBatch(processBatch);
}
};
const wake = () => {
runNextFrame = true;
useDefaultElapsed = true;
if (!state.isProcessing) {
scheduleNextBatch(processBatch);
}
};
const schedule = stepsOrder.reduce((acc, key) => {
const step = steps[key];
acc[key] = (process, keepAlive = false, immediate = false) => {
if (!runNextFrame)
wake();
return step.schedule(process, keepAlive, immediate);
};
return acc;
}, {});
const cancel = (process) => {
for (let i = 0; i < stepsOrder.length; i++) {
steps[stepsOrder[i]].cancel(process);
}
};
return { schedule, cancel, state, steps };
}
export { createRenderBatcher };
//# sourceMappingURL=batcher.mjs.map
@@ -0,0 +1,214 @@
"use client";
// src/focus-scope.tsx
import * as React from "react";
import { useComposedRefs } from "@radix-ui/react-compose-refs";
import { Primitive } from "@radix-ui/react-primitive";
import { useCallbackRef } from "@radix-ui/react-use-callback-ref";
import { jsx } from "react/jsx-runtime";
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
var FOCUS_SCOPE_NAME = "FocusScope";
var FocusScope = React.forwardRef((props, forwardedRef) => {
const {
loop = false,
trapped = false,
onMountAutoFocus: onMountAutoFocusProp,
onUnmountAutoFocus: onUnmountAutoFocusProp,
...scopeProps
} = props;
const [container, setContainer] = React.useState(null);
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
const lastFocusedElementRef = React.useRef(null);
const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
const focusScope = React.useRef({
paused: false,
pause() {
this.paused = true;
},
resume() {
this.paused = false;
}
}).current;
React.useEffect(() => {
if (trapped) {
let handleFocusIn2 = function(event) {
if (focusScope.paused || !container) return;
const target = event.target;
if (container.contains(target)) {
lastFocusedElementRef.current = target;
} else {
focus(lastFocusedElementRef.current, { select: true });
}
}, handleFocusOut2 = function(event) {
if (focusScope.paused || !container) return;
const relatedTarget = event.relatedTarget;
if (relatedTarget === null) return;
if (!container.contains(relatedTarget)) {
focus(lastFocusedElementRef.current, { select: true });
}
}, handleMutations2 = function(mutations) {
const focusedElement = document.activeElement;
if (focusedElement !== document.body) return;
for (const mutation of mutations) {
if (mutation.removedNodes.length > 0) focus(container);
}
};
var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;
document.addEventListener("focusin", handleFocusIn2);
document.addEventListener("focusout", handleFocusOut2);
const mutationObserver = new MutationObserver(handleMutations2);
if (container) mutationObserver.observe(container, { childList: true, subtree: true });
return () => {
document.removeEventListener("focusin", handleFocusIn2);
document.removeEventListener("focusout", handleFocusOut2);
mutationObserver.disconnect();
};
}
}, [trapped, container, focusScope.paused]);
React.useEffect(() => {
if (container) {
focusScopesStack.add(focusScope);
const previouslyFocusedElement = document.activeElement;
const hasFocusedCandidate = container.contains(previouslyFocusedElement);
if (!hasFocusedCandidate) {
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
container.dispatchEvent(mountEvent);
if (!mountEvent.defaultPrevented) {
focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
if (document.activeElement === previouslyFocusedElement) {
focus(container);
}
}
}
return () => {
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
setTimeout(() => {
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
container.dispatchEvent(unmountEvent);
if (!unmountEvent.defaultPrevented) {
focus(previouslyFocusedElement ?? document.body, { select: true });
}
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
focusScopesStack.remove(focusScope);
}, 0);
};
}
}, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
const handleKeyDown = React.useCallback(
(event) => {
if (!loop && !trapped) return;
if (focusScope.paused) return;
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
const focusedElement = document.activeElement;
if (isTabKey && focusedElement) {
const container2 = event.currentTarget;
const [first, last] = getTabbableEdges(container2);
const hasTabbableElementsInside = first && last;
if (!hasTabbableElementsInside) {
if (focusedElement === container2) event.preventDefault();
} else {
if (!event.shiftKey && focusedElement === last) {
event.preventDefault();
if (loop) focus(first, { select: true });
} else if (event.shiftKey && focusedElement === first) {
event.preventDefault();
if (loop) focus(last, { select: true });
}
}
}
},
[loop, trapped, focusScope.paused]
);
return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
});
FocusScope.displayName = FOCUS_SCOPE_NAME;
function focusFirst(candidates, { select = false } = {}) {
const previouslyFocusedElement = document.activeElement;
for (const candidate of candidates) {
focus(candidate, { select });
if (document.activeElement !== previouslyFocusedElement) return;
}
}
function getTabbableEdges(container) {
const candidates = getTabbableCandidates(container);
const first = findVisible(candidates, container);
const last = findVisible(candidates.reverse(), container);
return [first, last];
}
function getTabbableCandidates(container) {
const nodes = [];
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
acceptNode: (node) => {
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
}
});
while (walker.nextNode()) nodes.push(walker.currentNode);
return nodes;
}
function findVisible(elements, container) {
for (const element of elements) {
if (!isHidden(element, { upTo: container })) return element;
}
}
function isHidden(node, { upTo }) {
if (getComputedStyle(node).visibility === "hidden") return true;
while (node) {
if (upTo !== void 0 && node === upTo) return false;
if (getComputedStyle(node).display === "none") return true;
node = node.parentElement;
}
return false;
}
function isSelectableInput(element) {
return element instanceof HTMLInputElement && "select" in element;
}
function focus(element, { select = false } = {}) {
if (element && element.focus) {
const previouslyFocusedElement = document.activeElement;
element.focus({ preventScroll: true });
if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
element.select();
}
}
var focusScopesStack = createFocusScopesStack();
function createFocusScopesStack() {
let stack = [];
return {
add(focusScope) {
const activeFocusScope = stack[0];
if (focusScope !== activeFocusScope) {
activeFocusScope?.pause();
}
stack = arrayRemove(stack, focusScope);
stack.unshift(focusScope);
},
remove(focusScope) {
stack = arrayRemove(stack, focusScope);
stack[0]?.resume();
}
};
}
function arrayRemove(array, item) {
const updatedArray = [...array];
const index = updatedArray.indexOf(item);
if (index !== -1) {
updatedArray.splice(index, 1);
}
return updatedArray;
}
function removeLinks(items) {
return items.filter((item) => item.tagName !== "A");
}
var Root = FocusScope;
export {
FocusScope,
Root
};
//# sourceMappingURL=index.mjs.map
@@ -0,0 +1,319 @@
/**
* Options for {@link pool}.
*/
export type PoolOptions = {
/**
* how many read-only worker connections to
* open (default 4). 0 routes reads to the writer, serializing them
* with writes — the right shape for a write-heavy file or a
* `:memory:` database.
*/
readers?: number;
/**
* set `PRAGMA journal_mode = WAL` on the
* writer before readers connect (default true). WAL is what lets
* readers and the writer proceed concurrently; with `false` (or on a
* filesystem that refuses WAL) readers can block on the writer and
* rely on `busyTimeout`.
*/
walMode?: boolean;
/**
* `PRAGMA busy_timeout` in milliseconds
* for every connection (default 5000).
*/
busyTimeout?: number;
/**
* the integer
* conversion mode for every connection (see
* `configure('integerMode', …)`); the driver default (`'number'`)
* applies when omitted.
*/
integerMode?: 'number' | 'bigint' | 'mixed';
};
/**
* Options for a pool query.
*/
export type PoolQueryOptions = {
/**
* aborts the query: the connection
* running it is interrupted through a shared-memory flag, and the
* promise rejects with the signal's reason. As with the
* single-connection API, an abort that loses the race with a
* completing query still rejects and drops the result.
*/
signal?: AbortSignal;
};
/**
* The query surface inside {@link SqlitePool#transaction}, pinned to the
* writer connection: reads see the transaction's own uncommitted writes,
* writes join it.
*/
export type PoolTransaction = {
/**
* runs a query on the writer, resolving every row.
*/
read: (sql: string, params?: import('./native.js').BindParams) => Promise<import('./native.js').Row[]>;
/**
* runs a query on the writer, resolving the first row (or undefined).
*/
get: (sql: string, params?: import('./native.js').BindParams) => Promise<import('./native.js').Row | undefined>;
/**
* runs a statement inside the transaction, resolving `{lastID, changes, lastIDBigInt}`.
*/
write: (sql: string, params?: import('./native.js').BindParams) => Promise<import('./promises.js').PromiseRunResult>;
/**
* runs raw SQL (DDL, pragmas) inside the transaction.
*/
exec: (sql: string) => Promise<void>;
};
/**
* A worker-thread pool over one database file: a single writer
* connection plus read-only reader connections, each on its own worker.
*
* Created with {@link pool}; not a constructor users call. Every method
* is promise-only — there is no callback form, and none of the objects
* from the worker connections (`Database`, `Statement`, …) ever cross
* the boundary.
*
* Rows are structured-cloned across `postMessage`, so blob columns come
* back as plain `Uint8Array` (not `Buffer`), and large result sets pay a
* copy — the pool is shaped for many small queries, not for
* `SELECT *` over a million rows (see docs/concurrency.md).
*
* @since 9.0.0
*/
declare class SqlitePool {
#private;
/**
* @param {string} filename the database file.
* @param {{ readers: number, walMode: boolean, busyTimeout: number,
* integerMode: ('number' | 'bigint' | 'mixed') | undefined }} options
* validated options.
*/
constructor(filename: string, options: {
readers: number;
walMode: boolean;
busyTimeout: number;
integerMode: ('number' | 'bigint' | 'mixed') | undefined;
});
/**
* Spawns the workers and opens every connection.
*
* The writer connects first (it may create the file and switch it to
* WAL); the readers follow in parallel so a missing file cannot fail
* their read-only opens. On any failure every spawned worker is
* terminated and the error surfaces.
*
* @param {string} filename the database file.
* @param {{ readers: number, walMode: boolean, busyTimeout: number,
* integerMode: ('number' | 'bigint' | 'mixed') | undefined }} options
* the validated options.
* @returns {Promise<SqlitePool>} the opened pool.
*/
static create(filename: string, options: {
readers: number;
walMode: boolean;
busyTimeout: number;
integerMode: ('number' | 'bigint' | 'mixed') | undefined;
}): Promise<SqlitePool>;
/**
* The database filename the pool was created with.
*
* @returns {string} the filename.
* @since 9.0.0
*/
get filename(): string;
/**
* How many read-only connections the pool was created with.
*
* @returns {number} the reader count.
* @since 9.0.0
*/
get readers(): number;
/**
* True once close() has started (the pool refuses new work).
*
* @returns {boolean} whether close() has started.
* @since 9.0.0
*/
get closed(): boolean;
/**
* Runs a query on a reader connection, resolving every row. With
* `readers: 0` the query runs on the writer, serialized with writes
* (and is refused inside a transaction body — use the tx handle).
*
* Reads on reader connections see committed data only — including,
* under WAL, data a running transaction on the writer has written
* but not committed.
*
* @param {...any} args the SQL query, then optionally bind
* parameters (one array or named-parameter object), then
* optionally a trailing `{ signal }` options object.
* @returns {Promise<import('./native.js').Row[]>} every result row.
* @throws {TypeError} when the SQL is not a non-empty string or the
* arguments are malformed.
* @since 9.0.0
* @example
* const rows = await pool.read('SELECT id FROM users WHERE name = ?', ['alice']);
*/
read(...args: any[]): Promise<import('./native.js').Row[]>;
/**
* Runs a query on a reader connection, resolving the first row (or
* `undefined`). Same routing and visibility rules as
* {@link SqlitePool#read}.
*
* @param {...any} args the SQL query, then optionally bind
* parameters (one array or named-parameter object), then
* optionally a trailing `{ signal }` options object.
* @returns {Promise<import('./native.js').Row | undefined>} the first row, or undefined.
* @throws {TypeError} when the SQL is not a non-empty string or the
* arguments are malformed.
* @since 9.0.0
* @example
* const user = await pool.get('SELECT id FROM users WHERE name = ?', ['alice']);
*/
get(...args: any[]): Promise<import('./native.js').Row | undefined>;
/**
* Runs a statement on the writer connection, resolving
* `{lastID, changes, lastIDBigInt}`. Writes serialize: concurrent
* calls queue on the single writer instead of racing each other to
* SQLITE_BUSY.
*
* @param {...any} args the SQL statement, then optionally bind
* parameters (one array or named-parameter object), then
* optionally a trailing `{ signal }` options object.
* @returns {Promise<import('./promises.js').PromiseRunResult>} the run result.
* @throws {TypeError} when the SQL is not a non-empty string or the
* arguments are malformed.
* @since 9.0.0
* @example
* const result = await pool.write('INSERT INTO users (name) VALUES (?)', ['alice']);
*/
write(...args: any[]): Promise<import('./promises.js').PromiseRunResult>;
/**
* Runs raw SQL on the writer connection: DDL, pragmas,
* multi-statement scripts. Resolves once every statement has run.
*
* @param {string} sql the SQL to execute.
* @returns {Promise<void>} resolves when the SQL has run.
* @throws {TypeError} when the SQL is not a non-empty string.
* @since 9.0.0
* @example
* await pool.exec('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)');
*/
exec(sql: string): Promise<void>;
/**
* Runs `fn` as one transaction on the writer connection, with
* `ROLLBACK` on failure. The whole transaction is pinned to the
* writer: the {@link PoolTransaction} handle `fn` receives routes
* every query there, its reads see the transaction's own uncommitted
* writes, and no other write can interleave inside it.
*
* Transactions serialize — a second `transaction()` call waits for
* the first to commit or roll back. Reads issued as `pool.read()`
* inside the body still run on the readers and still see committed
* data only. Inside the body, use the tx handle rather than
* `pool.write()`/`pool.exec()` (they refuse, rather than wait on the
* transaction they would be joining).
*
* @template T
* @param {(tx: PoolTransaction) => T | Promise<T>} fn the transaction body.
* @param {{ mode?: 'deferred' | 'immediate' | 'exclusive' }} [options]
* `mode` selects the BEGIN form (default `'deferred'`; use
* `'immediate'` to take the write lock up front).
* @returns {Promise<T>} whatever the body resolves to.
* @throws {TypeError} when `fn` is not a function or the options are
* malformed.
* @throws {AggregateError} when the body and the ROLLBACK both fail.
* @since 9.0.0
* @example
* await pool.transaction(async (tx) => {
* const user = await tx.get('SELECT id FROM users WHERE name = ?', ['alice']);
* await tx.write('INSERT INTO logs (user_id) VALUES (?)', [user.id]);
* });
*/
transaction<T>(fn: (tx: PoolTransaction) => T | Promise<T>, options?: {
mode?: 'deferred' | 'immediate' | 'exclusive';
}): Promise<T>;
/**
* Closes the pool: refuses new work, waits for every in-flight
* operation (including running transactions) to settle, closes every
* connection on its worker, and waits for every worker to exit. No
* worker survives close().
*
* Idempotent — every call returns the same promise. Refused from
* inside a transaction body (it would wait on that transaction).
*
* @returns {Promise<void>} resolves once every worker has exited.
* @since 9.0.0
* @example
* await pool.close();
*/
close(): Promise<void>;
/**
* `await using pool` — disposes via {@link SqlitePool#close}.
*
* @returns {Promise<void>} resolves once the pool is closed.
* @since 9.0.0
*/
[Symbol.asyncDispose](): Promise<void>;
}
/**
* Creates a worker-thread pool over a database file: one writer
* connection plus `options.readers` read-only connections (default 4),
* each on its own worker. Writes serialize on the writer; reads fan out
* to the readers. All SQLite work happens off the calling thread.
*
* Requires a real file (or a `file:` URI): each connection is separate,
* so a plain `:memory:` database cannot be shared across the pool's
* workers — move in-memory data with `db.serializeToBytes()` +
* {@link sqlite3.deserializeFromBytes} in a worker instead (see
* docs/concurrency.md). With `readers: 0` a `:memory:` pool is fine:
* everything runs on the single writer.
*
* A `file:` URI is opened as a URI (the workers set `OPEN_URI` for it),
* so `mode`, `immutable` and `cache` are honoured. A URI that asserts
* read-only access (`mode=ro`, `immutable=1`) opens **every** connection
* read-only, the writer included: with `OPEN_CREATE` the writer would
* create the database the caller declared immutable, so a missing file
* fails with `SQLITE_CANTOPEN` instead of coming back as an empty one.
* Such a URI, and an in-memory database, also turn the WAL default off by
* themselves (a read-only connection cannot switch journal mode, and an
* in-memory database has no journal); asking for `walMode: true` there is
* refused up front rather than failing every worker at
* `PRAGMA journal_mode`.
*
* Pool queries are **not** visible to {@link sqlite3.subscribeQueries}:
* each worker loads its own instance of this module, so spans are
* published on the worker's channels and never reach a main-thread
* subscriber. See docs/concurrency.md.
*
* With `cache=shared` (the only way the workers can share an in-memory
* database) SQLite locks per table, and a read colliding with the
* writer's open transaction fails with `SQLITE_LOCKED_SHAREDCACHE`
* outside the busy handler's reach — such a **read** is retried within
* the `busyTimeout` budget (`busyTimeout: 0` fails fast); writes and
* `exec` are not, since re-running them is not safe.
*
* @param {string} filename the database file, or a `file:` URI.
* @param {PoolOptions} [options] the pool options.
* @returns {Promise<SqlitePool>} the opened pool.
* @throws {TypeError} when the filename is missing or malformed, or an
* option is unknown/invalid.
* @since 9.0.0
* @example
* const pool = await sqlite3.pool('app.db', {
* readers: 4,
* busyTimeout: 5000,
* });
* const rows = await pool.read('SELECT * FROM t WHERE a = ?', [1]);
* await pool.write('INSERT INTO t (a) VALUES (?)', [2]);
* await pool.close();
* @example
* // A read-only pool over a shipped database, canonical URI form:
* const ro = await sqlite3.pool('file:/data/vdb.sqlite?mode=ro', {
* readers: 2,
* });
*/
declare function pool(filename: string, options?: PoolOptions): Promise<SqlitePool>;
export { pool, SqlitePool };
@@ -0,0 +1,75 @@
/*
* WARNING: This file is autogenerated using the tools/update-eslint-recommended.js
* script. Do not edit manually.
*/
"use strict";
module.exports = Object.freeze({
name: "@eslint/js/recommended",
rules: Object.freeze({
"constructor-super": "error",
"for-direction": "error",
"getter-return": "error",
"no-async-promise-executor": "error",
"no-case-declarations": "error",
"no-class-assign": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-const-assign": "error",
"no-constant-binary-expression": "error",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-empty-static-block": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-global-assign": "error",
"no-import-assign": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-loss-of-precision": "error",
"no-misleading-character-class": "error",
"no-new-native-nonconstructor": "error",
"no-nonoctal-decimal-escape": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-prototype-builtins": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-self-assign": "error",
"no-setter-return": "error",
"no-shadow-restricted-names": "error",
"no-sparse-arrays": "error",
"no-this-before-super": "error",
"no-unassigned-vars": "error",
"no-undef": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unsafe-optional-chaining": "error",
"no-unused-labels": "error",
"no-unused-private-class-members": "error",
"no-unused-vars": "error",
"no-useless-assignment": "error",
"no-useless-backreference": "error",
"no-useless-catch": "error",
"no-useless-escape": "error",
"no-with": "error",
"preserve-caught-error": "error",
"require-yield": "error",
"use-isnan": "error",
"valid-typeof": "error"
}),
});
@@ -0,0 +1,5 @@
import type { CodeKeywordDefinition } from "../../types";
import type { KeywordCxt } from "../../compile/validate";
declare const def: CodeKeywordDefinition;
export declare function dynamicAnchor(cxt: KeywordCxt, anchor: string): void;
export default def;
@@ -0,0 +1,109 @@
import { ZodIssueCode } from "../ZodError.js";
import { util, ZodParsedType } from "../helpers/util.js";
const errorMap = (issue, _ctx) => {
let message;
switch (issue.code) {
case ZodIssueCode.invalid_type:
if (issue.received === ZodParsedType.undefined) {
message = "Required";
}
else {
message = `Expected ${issue.expected}, received ${issue.received}`;
}
break;
case ZodIssueCode.invalid_literal:
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
break;
case ZodIssueCode.unrecognized_keys:
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
break;
case ZodIssueCode.invalid_union:
message = `Invalid input`;
break;
case ZodIssueCode.invalid_union_discriminator:
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
break;
case ZodIssueCode.invalid_enum_value:
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
break;
case ZodIssueCode.invalid_arguments:
message = `Invalid function arguments`;
break;
case ZodIssueCode.invalid_return_type:
message = `Invalid function return type`;
break;
case ZodIssueCode.invalid_date:
message = `Invalid date`;
break;
case ZodIssueCode.invalid_string:
if (typeof issue.validation === "object") {
if ("includes" in issue.validation) {
message = `Invalid input: must include "${issue.validation.includes}"`;
if (typeof issue.validation.position === "number") {
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
}
}
else if ("startsWith" in issue.validation) {
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
}
else if ("endsWith" in issue.validation) {
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
}
else {
util.assertNever(issue.validation);
}
}
else if (issue.validation !== "regex") {
message = `Invalid ${issue.validation}`;
}
else {
message = "Invalid";
}
break;
case ZodIssueCode.too_small:
if (issue.type === "array")
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
else if (issue.type === "string")
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
else if (issue.type === "number")
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
else if (issue.type === "bigint")
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
else if (issue.type === "date")
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
else
message = "Invalid input";
break;
case ZodIssueCode.too_big:
if (issue.type === "array")
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
else if (issue.type === "string")
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
else if (issue.type === "number")
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
else if (issue.type === "bigint")
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
else if (issue.type === "date")
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
else
message = "Invalid input";
break;
case ZodIssueCode.custom:
message = `Invalid input`;
break;
case ZodIssueCode.invalid_intersection_types:
message = `Intersection results could not be merged`;
break;
case ZodIssueCode.not_multiple_of:
message = `Number must be a multiple of ${issue.multipleOf}`;
break;
case ZodIssueCode.not_finite:
message = "Number must be finite";
break;
default:
message = _ctx.defaultError;
util.assertNever(issue);
}
return { message };
};
export default errorMap;
@@ -0,0 +1,17 @@
import * as React from 'react';
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
children?: React.ReactNode;
}
declare function createSlot(ownerName: string): React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
interface SlottableProps {
children: React.ReactNode;
}
interface SlottableComponent extends React.FC<SlottableProps> {
__radixId: symbol;
}
declare function createSlottable(ownerName: string): SlottableComponent;
declare const Slottable: SlottableComponent;
export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
@@ -0,0 +1,65 @@
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-dnh67V_w.mjs";
//#region src/builtin-plugin/constructors.ts
function viteModulePreloadPolyfillPlugin(config) {
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
}
function viteDynamicImportVarsPlugin(config) {
if (config) {
config.include = normalizedStringOrRegex(config.include);
config.exclude = normalizedStringOrRegex(config.exclude);
}
return new BuiltinPlugin("builtin:vite-dynamic-import-vars", config);
}
function viteImportGlobPlugin(config) {
return new BuiltinPlugin("builtin:vite-import-glob", config);
}
function viteReporterPlugin(config) {
return new BuiltinPlugin("builtin:vite-reporter", config);
}
function viteLoadFallbackPlugin() {
return new BuiltinPlugin("builtin:vite-load-fallback");
}
function viteJsonPlugin(config) {
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-json", config));
}
function viteBuildImportAnalysisPlugin(config) {
return new BuiltinPlugin("builtin:vite-build-import-analysis", config);
}
function viteResolvePlugin(config) {
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", {
...config,
yarnPnp: typeof process === "object" && !!process.versions?.pnp
}));
}
function isolatedDeclarationPlugin(config) {
return new BuiltinPlugin("builtin:isolated-declaration", config);
}
function viteWebWorkerPostPlugin() {
return new BuiltinPlugin("builtin:vite-web-worker-post");
}
/**
* A plugin that converts CommonJS require() calls for external dependencies into ESM import statements.
*
* @see https://rolldown.rs/builtin-plugins/esm-external-require
* @category Builtin Plugins
*/
function esmExternalRequirePlugin(config) {
const plugin = new BuiltinPlugin("builtin:esm-external-require", config);
plugin.enforce = "pre";
return plugin;
}
/**
* This plugin should not be used for Rolldown.
*/
function oxcRuntimePlugin() {
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:oxc-runtime"));
}
function viteReactRefreshWrapperPlugin(config) {
if (config) {
config.include = normalizedStringOrRegex(config.include);
config.exclude = normalizedStringOrRegex(config.exclude);
}
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
}
//#endregion
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWebWorkerPostPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
@@ -0,0 +1 @@
{"version":3,"file":"heading-1.js","sources":["../../../src/icons/heading-1.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Heading1\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAxMmg4IiAvPgogIDxwYXRoIGQ9Ik00IDE4VjYiIC8+CiAgPHBhdGggZD0iTTEyIDE4VjYiIC8+CiAgPHBhdGggZD0ibTE3IDEyIDMtMnY4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/heading-1\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Heading1 = createLucideIcon('Heading1', [\n ['path', { d: 'M4 12h8', key: '17cfdx' }],\n ['path', { d: 'M4 18V6', key: '1rz3zl' }],\n ['path', { d: 'M12 18V6', key: 'zqpxq5' }],\n ['path', { d: 'm17 12 3-2v8', key: '1hhhft' }],\n]);\n\nexport default Heading1;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,iBAAiB,UAAY,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC/C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,48 @@
/** Types of elements found in htmlparser2's DOM */
export declare enum ElementType {
/** Type for the root element of a document */
Root = "root",
/** Type for Text */
Text = "text",
/** Type for <? ... ?> */
Directive = "directive",
/** Type for <!-- ... --> */
Comment = "comment",
/** Type for <script> tags */
Script = "script",
/** Type for <style> tags */
Style = "style",
/** Type for Any tag */
Tag = "tag",
/** Type for <![CDATA[ ... ]]> */
CDATA = "cdata",
/** Type for <!doctype ...> */
Doctype = "doctype"
}
/**
* Tests whether an element is a tag or not.
*
* @param elem Element to test
*/
export declare function isTag(elem: {
type: ElementType;
}): boolean;
/** Type for the root element of a document */
export declare const Root = ElementType.Root;
/** Type for Text */
export declare const Text = ElementType.Text;
/** Type for <? ... ?> */
export declare const Directive = ElementType.Directive;
/** Type for <!-- ... --> */
export declare const Comment = ElementType.Comment;
/** Type for <script> tags */
export declare const Script = ElementType.Script;
/** Type for <style> tags */
export declare const Style = ElementType.Style;
/** Type for Any tag */
export declare const Tag = ElementType.Tag;
/** Type for <![CDATA[ ... ]]> */
export declare const CDATA = ElementType.CDATA;
/** Type for <!doctype ...> */
export declare const Doctype = ElementType.Doctype;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,514 @@
flf2a$ 5 5 14 1 3 0 129 0
BABYFACE Lame by cat, v0.8 2019
gopher://baud.baby
$$@
$$@
$$@
$$@
$$@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
_______ @
/ \\@
/ //@
/ / @
\___/____/ @@
_______@
// /@
// \@
/ /@
\________/ @@
_______ @
// \@
// /@
/ --/ @
\________/ @@
______ @
_/ \\@
/ //@
/ / @
\________/ @@
_______ @
// \@
// /@
/ _/ @
\________/ @@
_______ @
// \@
// __/@
/ _/ @
\_______/ @@
_______ @
// \@
// __/@
/ / / @
\________/ @@
_______ @
/ / \\@
/ //@
/ / @
\___/____/ @@
________ @
/ \@
_/ / @
/ / @
\\_______/ @@
______ @
/ \@
/ /@
_/ // @
\______// @@
____ ___ @
/ / \@
/ /@
// _/ @
\\___/___/ @@
______ @
// \@
// /@
/ / @
\________/ @@
_______ @
/ \\@
/ //@
/ / @
\__/__/__/ @@
_______ @
// / \@
// /@
/ / @
\__/_____/ @@
_______ @
/ \\@
/ //@
/ / @
\________/ @@
________ @
/ \@
/ /@
// __/ @
\\_____/ @@
_______ @
/ \\@
/ //@
\__ / @
\_____/ @@
_______ @
// \@
// /@
/ _/ @
\____/___/ @@
________ @
/ \@
/ _/@
/- / @
\_______// @@
________ @
/ \@
/ _/@
/ / @
\_____// @@
________ @
/ / \@
/ /@
/ // @
\_______// @@
________ @
/ / \@
/ /@
\ / @
\\_____/ @@
________ @
/ / / \@
/ /@
// / @
\\_______/ @@
________ @
/ / \@
/_ _/@
/ / @
\___/___// @@
________ @
/ / \@
/ /@
\__ // @
\____// @@
_______ @
/ \\@
/- /@
/ _/ @
\________/ @@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
________ @
/ \@
/ /@
/ / @
\___/____/ @@
________@
/ /@
/ \@
/ /@
\________/ @@
________ @
/ \@
/ /@
/ --/ @
\________/ @@
_______ @
_/ \@
/ /@
/ / @
\________/ @@
________ @
/ \@
/ /@
/ _/ @
\________/ @@
________ @
/ \@
/ __/@
/ _/ @
\_______/ @@
________ @
/ \@
/ __/@
/ / / @
\________/ @@
________ @
/ / \@
/ /@
/ / @
\___/____/ @@
________ @
/ \@
_/ / @
/ / @
\________/ @@
______ @
/ \@
/ /@
_/ / @
\_______/ @@
____ ___ @
/ / \@
/ /@
/ _/ @
\____/___/ @@
_______ @
/ \@
/ /@
/ / @
\________/ @@
________ @
/ \@
/ /@
/ / @
\__/__/__/ @@
________ @
/ / \@
/ /@
/ / @
\__/_____/ @@
________ @
/ \@
/ /@
/ / @
\________/ @@
________ @
/ \@
/ /@
/ __/ @
\______/ @@
________ @
/ \@
/ /@
\__ / @
\_____/ @@
________ @
/ \@
/ /@
/ _/ @
\____/___/ @@
________ @
/ \@
/ _/@
/- / @
\________/ @@
________ @
/ \@
/ _/@
/ / @
\______/ @@
________ @
/ / \@
/ /@
/ / @
\________/ @@
________ @
/ / \@
/ /@
\ / @
\______/ @@
________ @
/ / / \@
/ /@
/ / @
\________/ @@
________ @
/ / \@
/_ _/@
/ / @
\___/____/ @@
________ @
/ / \@
/ /@
\__ / @
\_____/ @@
________ @
/ \@
/- /@
/ _/ @
\________/ @@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@
@
@
@
@@
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"_A","2":"_Z"},B:{"1":"_J"},C:{"1":"_PI","2":"_f","33":"_rK","164":"_Y"},D:{"1":"_5F","2":"_FC","33":"_6B _4N","292":"_PO HB"},E:{"1":"_PD","2":"_iC _e _tE","4":"_wB ND"},F:{"1":"_OI","2":"_T","33":"_dF"},G:{"1":"_kG","2":"_JC iD","4":"_r"},H:{"2":"1D"},I:{"1":"I","2":"_W","33":"_y"},J:{"2":"D","33":"A"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"2":"_A"},O:{"1":"bC"},P:{"1":"_U","33":"J"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"_C"}},B:2,C:"CSS font-feature-settings",D:true};
@@ -0,0 +1 @@
{"version":3,"names":["_package","require","_configuration","_plugins"],"sources":["../../../src/config/files/index.ts"],"sourcesContent":["type indexBrowserType = typeof import(\"./index-browser\");\ntype indexType = typeof import(\"./index\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n// eslint-disable-next-line @typescript-eslint/no-unused-expressions\n({}) as any as indexBrowserType as indexType;\n\nexport { findPackageData } from \"./package.ts\";\n\nexport {\n findConfigUpwards,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./configuration.ts\";\nexport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types.ts\";\nexport {\n loadPlugin,\n loadPreset,\n resolvePlugin,\n resolvePreset,\n} from \"./plugins.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAcA,IAAAE,QAAA,GAAAF,OAAA;AAlBA,CAAC,CAAC,CAAC;AAA0C","ignoreList":[]}
@@ -0,0 +1,2 @@
import type { Context, ParsedOptions } from './types';
export declare function parseOptions(context: Context): ParsedOptions;
@@ -0,0 +1 @@
{"version":3,"file":"unpack.js","sourceRoot":"","sources":["../../src/unpack.ts"],"names":[],"mappings":"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 truncated
@@ -0,0 +1,13 @@
declare namespace escalade {
export type Callback = (
directory: string,
files: string[],
) => string | false | void;
}
declare function escalade(
directory: string,
callback: escalade.Callback,
): string | void;
export = escalade;
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const es2019_intl: LibDefinition;
@@ -0,0 +1 @@
{"version":3,"file":"clock-9.js","sources":["../../../src/icons/clock-9.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Clock9\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cG9seWxpbmUgcG9pbnRzPSIxMiA2IDEyIDEyIDcuNSAxMiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/clock-9\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Clock9 = createLucideIcon('Clock9', [\n ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],\n ['polyline', { points: '12 6 12 12 7.5 12', key: '1k60p0' }],\n]);\n\nexport default Clock9;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAiB,QAAU,CAAA,CAAA,CAAA;AAAA,CACxC,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACzD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAE,QAAQ,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC7D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,3 @@
import { getConnInfo } from "./conninfo.js";
import { defaultIsContentTypeBinary, handle, streamHandle } from "./handler.js";
export { defaultIsContentTypeBinary, getConnInfo, handle, streamHandle };
@@ -0,0 +1,17 @@
// Generated using scripts/write-encode-map.ts
type EncodeTrieNode =
| string
| { v?: string; n: number | Map<number, EncodeTrieNode>; o?: string };
function restoreDiff<T extends ReadonlyArray<[number, EncodeTrieNode]>>(
array: T,
): T {
for (let index = 1; index < array.length; index++) {
array[index][0] += array[index - 1][0] + 1;
}
return array;
}
// prettier-ignore
export const htmlTrie: Map<number,EncodeTrieNode> = /* #__PURE__ */ new Map<number,EncodeTrieNode>(/* #__PURE__ */restoreDiff([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Line truncated
@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const AlignHorizontalJustifyEnd = createLucideIcon("AlignHorizontalJustifyEnd", [
["rect", { width: "6", height: "14", x: "2", y: "5", rx: "2", key: "dy24zr" }],
["rect", { width: "6", height: "10", x: "12", y: "7", rx: "2", key: "1ht384" }],
["path", { d: "M22 2v20", key: "40qfg1" }]
]);
export { AlignHorizontalJustifyEnd as default };
//# sourceMappingURL=align-horizontal-justify-end.js.map
@@ -0,0 +1,173 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_utils_crypto = require("../../utils/crypto.js");
const require_request = require("../../request.js");
//#region src/middleware/cache/index.ts
/**
* status codes that can be cached by default.
*/
const defaultCacheableStatusCodes = [200];
const defaultMaxQueryBodySize = 65536;
const cacheKeyPath = "/.hono/cache";
const cacheKeyParameter = "__hono_cache_key";
const cacheMethodKeyParameter = "__hono_cache_method";
const queryDigestKeyParameter = "__hono_query_digest";
const cacheVaryKeyParameter = "__hono_cache_vary";
const queryRepresentationMetadataHeaders = [
"content-type",
"content-encoding",
"content-language",
"content-location"
];
const shouldSkipCacheControl = (cacheControl) => !!cacheControl && /(?:^|,\s*)(?:private|no-(?:store|cache))(?:\s*(?:=|,|$))/i.test(cacheControl);
const parseVaryDirectives = (vary) => {
if (vary == null) return [];
return (Array.isArray(vary) ? vary : vary.split(",")).map((directive) => directive.trim().toLowerCase()).filter(Boolean);
};
const createCacheKey = (key, requestUrl, request, varyHeaders) => {
const url = new URL(cacheKeyPath, requestUrl);
url.searchParams.append(cacheKeyParameter, key);
url.searchParams.append(cacheMethodKeyParameter, request.method);
if (request.method === "QUERY") url.searchParams.append(queryDigestKeyParameter, request.digest);
for (const header of varyHeaders) url.searchParams.append(cacheVaryKeyParameter, JSON.stringify(header));
return url.href;
};
const shouldSkipCache = (res, optionsVaryDirectives, responseVary) => responseVary.length && (!optionsVaryDirectives || responseVary.some((name) => !optionsVaryDirectives.has(name))) || shouldSkipCacheControl(res.headers.get("Cache-Control")) || res.headers.has("Set-Cookie");
const reportCacheNotAvailable = (onCacheNotAvailable, reason) => {
if (onCacheNotAvailable === false) {} else if (onCacheNotAvailable) onCacheNotAvailable(reason);
else console.log(reason);
};
const createQueryDigest = async (c, maxQueryBodySize) => {
if (!globalThis.crypto?.subtle) return;
if (c.req.raw.bodyUsed && Object.keys(c.req.bodyCache)[0] === "formData") return;
try {
const requestHeaders = c.req.raw.headers;
const metadata = new TextEncoder().encode(JSON.stringify(queryRepresentationMetadataHeaders.map((header) => [header, requestHeaders.get(header)])));
const body = (await require_request.cloneRawRequest(c.req)).body;
const chunks = [];
let bodySize = 0;
if (body) {
const reader = body.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
bodySize += value.byteLength;
if (bodySize > maxQueryBodySize) {
reader.cancel().catch(() => {});
return;
}
chunks.push(value);
}
}
const data = new Uint8Array(metadata.byteLength + bodySize);
data.set(metadata);
let offset = metadata.byteLength;
for (const chunk of chunks) {
data.set(chunk, offset);
offset += chunk.byteLength;
}
return await require_utils_crypto.sha256(data) ?? void 0;
} catch {
return;
}
};
/**
* Cache Middleware for Hono.
*
* @see {@link https://hono.dev/docs/middleware/builtin/cache}
*
* @param {Object} options - The options for the cache middleware.
* @param {string | Function} options.cacheName - The name of the cache. Can be used to store multiple caches with different identifiers.
* @param {boolean} [options.wait=false] - A boolean indicating if Hono should wait for the Promise of the `cache.put` function to resolve before continuing with the request. Required to be true for the Deno environment.
* @param {string} [options.cacheControl] - A string of directives for the `Cache-Control` header.
* @param {string | string[]} [options.vary] - Adds the configured request headers to the cache key variants and sets the `Vary` header in the response. If the original response header already contains a `Vary` header, the values are merged, removing any duplicates.
* @param {Function} [options.keyGenerator] - Generates keys for every request in the `cacheName` store. This can be used to cache data based on request parameters or context parameters. QUERY keys additionally include a digest of the request content and its representation metadata.
* @param {number} [options.maxQueryBodySize=65536] - The maximum QUERY request body size in bytes that can be cached. Larger QUERY requests bypass the cache.
* @param {number[]} [options.cacheableStatusCodes=[200]] - An array of status codes that can be cached.
* @param {Function | false} [options.onCacheNotAvailable] - A callback invoked with the reason when `globalThis.caches` is not available or QUERY caching cannot use Web Crypto. By default, the reason is logged to the console. Set to `false` to suppress the log, or provide a custom function.
* @returns {MiddlewareHandler} The middleware handler function.
* @throws {Error} If the `vary` option includes "*".
*
* @example
* ```ts
* app.use(
* '*',
* cache({
* cacheName: 'my-app',
* cacheControl: 'max-age=3600',
* })
* )
* ```
*/
const cache = (options) => {
if (!globalThis.caches) {
reportCacheNotAvailable(options.onCacheNotAvailable, "Cache Middleware is not enabled because caches is not defined.");
return async (_c, next) => await next();
}
if (!globalThis.crypto?.subtle) reportCacheNotAvailable(options.onCacheNotAvailable, "Cache Middleware cannot cache QUERY requests because Web Crypto is not available.");
if (options.wait === void 0) options.wait = false;
const cacheControlDirectives = options.cacheControl?.split(",").map((directive) => directive.toLowerCase());
const optionsVaryList = parseVaryDirectives(options.vary);
const varyDirectives = optionsVaryList.length ? new Set(optionsVaryList) : void 0;
if (varyDirectives?.has("*")) throw new Error("Middleware vary configuration cannot include \"*\", as it disallows effective caching.");
const cacheableStatusCodes = new Set(options.cacheableStatusCodes ?? defaultCacheableStatusCodes);
const maxQueryBodySize = options.maxQueryBodySize ?? defaultMaxQueryBodySize;
const addHeader = (c, responseVary) => {
if (cacheControlDirectives) {
const existingDirectives = c.res.headers.get("Cache-Control")?.split(",").map((d) => d.trim().split("=", 1)[0].toLowerCase()) ?? [];
for (const directive of cacheControlDirectives) {
let [name, value] = directive.trim().split("=", 2);
name = name.toLowerCase();
if (!existingDirectives.includes(name)) c.header("Cache-Control", `${name}${value ? `=${value}` : ""}`, { append: true });
}
}
if (varyDirectives) {
if (responseVary.length === 0) c.header("Vary", Array.from(varyDirectives).join(", "));
else {
const merged = new Set(varyDirectives);
for (const directive of responseVary) merged.add(directive);
if (merged.has("*")) c.header("Vary", "*");
else c.header("Vary", Array.from(merged).join(", "));
}
}
};
return async function cache(c, next) {
if (c.req.method !== "GET" && c.req.method !== "QUERY" || c.req.raw.headers.has("Authorization")) {
await next();
return;
}
let cacheKeyRequest = { method: "GET" };
if (c.req.method === "QUERY") {
const digest = await createQueryDigest(c, maxQueryBodySize);
if (digest === void 0) {
await next();
return;
}
cacheKeyRequest = {
method: "QUERY",
digest
};
}
let key = c.req.url;
if (options.keyGenerator) key = await options.keyGenerator(c);
const varyHeaders = [];
if (varyDirectives) for (const directive of varyDirectives) {
const value = c.req.raw.headers.get(directive) ?? "";
varyHeaders.push([directive, value]);
}
key = createCacheKey(key, c.req.url, cacheKeyRequest, varyHeaders);
const cacheName = typeof options.cacheName === "function" ? await options.cacheName(c) : options.cacheName;
const cache = await caches.open(cacheName);
const response = await cache.match(key);
if (response) return new Response(response.body, response);
await next();
if (!cacheableStatusCodes.has(c.res.status)) return;
const responseVary = parseVaryDirectives(c.res.headers.get("Vary"));
addHeader(c, responseVary);
if (shouldSkipCache(c.res, varyDirectives, responseVary)) return;
const res = c.res.clone();
if (options.wait) await cache.put(key, res);
else c.executionCtx.waitUntil(cache.put(key, res));
};
};
//#endregion
exports.cache = cache;
@@ -0,0 +1,5 @@
import type { TSESLint } from '@typescript-eslint/utils';
declare const _default: TSESLint.RuleModule<"removeUnnecessaryConstraint" | "unnecessaryConstraint", [], import("../../rules").ESLintPluginDocs, TSESLint.RuleListener> & {
name: string;
};
export default _default;
@@ -0,0 +1,113 @@
import * as util from "../core/util.js";
const error = () => {
const Sizable = {
string: { unit: "karakter", verb: "legyen" },
file: { unit: "byte", verb: "legyen" },
array: { unit: "elem", verb: "legyen" },
set: { unit: "elem", verb: "legyen" },
map: { unit: "elem", verb: "legyen" },
};
function getSizing(origin) {
return Sizable[origin] ?? null;
}
const FormatDictionary = {
regex: "bemenet",
email: "email cím",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO időbélyeg",
date: "ISO dátum",
time: "ISO idő",
duration: "ISO időintervallum",
ipv4: "IPv4 cím",
ipv6: "IPv6 cím",
mac: "MAC cím",
cidrv4: "IPv4 tartomány",
cidrv6: "IPv6 tartomány",
base64: "base64-kódolt string",
base64url: "base64url-kódolt string",
json_string: "JSON string",
e164: "E.164 szám",
credit_card: "hitelkártyaszám",
currency_code: "pénznemkód",
iban: "IBAN",
jwt: "JWT",
template_literal: "bemenet",
};
const TypeDictionary = {
nan: "NaN",
number: "szám",
array: "tömb",
};
return (issue) => {
switch (issue.code) {
case "invalid_type": {
const expected = TypeDictionary[issue.expected] ?? issue.expected;
const receivedType = util.parsedType(issue.input);
const received = TypeDictionary[receivedType] ?? receivedType;
if (/^[A-Z]/.test(issue.expected)) {
return `Érvénytelen bemenet: a várt érték instanceof ${issue.expected}, a kapott érték ${received}`;
}
return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
}
case "invalid_value":
if (issue.values.length === 1)
return `Érvénytelen bemenet: a várt érték ${util.stringifyPrimitive(issue.values[0])}`;
return `Érvénytelen opció: valamelyik érték várt ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Túl nagy: ${issue.origin ?? "érték"} mérete túl nagy ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elem"}`;
return `Túl nagy: a bemeneti érték ${issue.origin ?? "érték"} túl nagy: ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Túl kicsi: a bemeneti érték ${issue.origin} mérete túl kicsi ${adj}${issue.minimum.toString()} ${sizing.unit}`;
}
return `Túl kicsi: a bemeneti érték ${issue.origin} túl kicsi ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue;
if (_issue.format === "starts_with")
return `Érvénytelen string: "${_issue.prefix}" értékkel kell kezdődnie`;
if (_issue.format === "ends_with")
return `Érvénytelen string: "${_issue.suffix}" értékkel kell végződnie`;
if (_issue.format === "includes")
return `Érvénytelen string: "${_issue.includes}" értéket kell tartalmaznia`;
if (_issue.format === "regex")
return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`;
return `Érvénytelen ${FormatDictionary[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Érvénytelen szám: ${issue.divisor} többszörösének kell lennie`;
case "unrecognized_keys":
return `Ismeretlen kulcs${issue.keys.length > 1 ? "s" : ""}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `Érvénytelen kulcs ${issue.origin}`;
case "invalid_union":
return "Érvénytelen bemenet";
case "invalid_element":
return `Érvénytelen érték: ${issue.origin}`;
default:
return `Érvénytelen bemenet`;
}
};
};
export default function () {
return {
localeError: error(),
};
}