@syzlm/function 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arrays/arrayUtils.d.ts +13 -1
- package/dist/arrays/arrayUtils.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/objects/objectUtils.d.ts +7 -0
- package/dist/objects/objectUtils.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/storage.d.ts +13 -0
- package/dist/storage/storage.d.ts.map +1 -0
- package/dist/strings/stringUtils.d.ts.map +1 -1
- package/docs/README.md +32 -0
- package/docs/functions/capitalize.md +27 -0
- package/docs/functions/chunk.md +39 -0
- package/docs/functions/clamp.md +39 -0
- package/docs/functions/debounce.md +49 -0
- package/docs/functions/deepClone.md +33 -0
- package/docs/functions/delay.md +27 -0
- package/docs/functions/get.md +39 -0
- package/docs/functions/getFontLength.md +27 -0
- package/docs/functions/getFontWidth.md +33 -0
- package/docs/functions/isPlainObject.md +27 -0
- package/docs/functions/merge.md +39 -0
- package/docs/functions/parseStrEmpty.md +27 -0
- package/docs/functions/randomString.md +27 -0
- package/docs/functions/range.md +39 -0
- package/docs/functions/round.md +33 -0
- package/docs/functions/set.md +45 -0
- package/docs/functions/shuffle.md +33 -0
- package/docs/functions/simpleUnique.md +40 -0
- package/docs/functions/thousandSign.md +27 -0
- package/docs/functions/thousandSignZero.md +33 -0
- package/docs/functions/throttle.md +49 -0
- package/docs/functions/toCamelCase.md +27 -0
- package/docs/functions/toFixed.md +33 -0
- package/docs/functions/unique.md +39 -0
- package/package.json +22 -4
- package/src/arrays/arrayUtils.ts +33 -3
- package/src/arrays/index.ts +1 -1
- package/src/numbers/index.ts +1 -1
- package/src/numbers/numberUtils.ts +7 -7
- package/src/objects/index.ts +1 -1
- package/src/objects/objectUtils.ts +18 -13
- package/src/storage/storage.ts +5 -4
- package/src/strings/index.ts +1 -1
- package/src/strings/stringUtils.ts +11 -9
- package/src/utils/index.ts +1 -1
- package/src/utils/utilFunctions.ts +3 -3
- package/README.md +0 -111
- package/docs/.nojekyll +0 -1
- package/docs/assets/hierarchy.js +0 -1
- package/docs/assets/highlight.css +0 -85
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1633
- package/docs/functions/capitalize.html +0 -4
- package/docs/functions/chunk.html +0 -5
- package/docs/functions/clamp.html +0 -6
- package/docs/functions/debounce.html +0 -5
- package/docs/functions/deepClone.html +0 -4
- package/docs/functions/delay.html +0 -4
- package/docs/functions/get.html +0 -6
- package/docs/functions/getFontLength.html +0 -4
- package/docs/functions/getFontWidth.html +0 -5
- package/docs/functions/isPlainObject.html +0 -4
- package/docs/functions/merge.html +0 -5
- package/docs/functions/parseStrEmpty.html +0 -4
- package/docs/functions/randomString.html +0 -4
- package/docs/functions/range.html +0 -6
- package/docs/functions/round.html +0 -5
- package/docs/functions/set.html +0 -6
- package/docs/functions/shuffle.html +0 -4
- package/docs/functions/thousandSign.html +0 -4
- package/docs/functions/thousandSignZero.html +0 -5
- package/docs/functions/throttle.html +0 -5
- package/docs/functions/toCamelCase.html +0 -4
- package/docs/functions/toFixed.html +0 -5
- package/docs/functions/unique.html +0 -4
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -53
- package/docs/modules.html +0 -1
- package/jest.config.js +0 -8
- package/rollup.config.js +0 -29
- package/scripts/deploy-docs.sh +0 -40
- package/test-output.txt +0 -23
- package/test-tofixed.js +0 -36
- package/tests/arrays.test.ts +0 -89
- package/tests/numbers.test.ts +0 -140
- package/tests/objects.test.ts +0 -189
- package/tests/strings.test.ts +0 -197
- package/tests/utils.test.ts +0 -121
- package/tsconfig.json +0 -21
- package/typedoc.json +0 -15
|
@@ -7,15 +7,15 @@ export function deepClone<T>(obj: T): T {
|
|
|
7
7
|
if (obj === null || typeof obj !== 'object') {
|
|
8
8
|
return obj;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
if (obj instanceof Date) {
|
|
12
12
|
return new Date(obj.getTime()) as unknown as T;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
if (obj instanceof Array) {
|
|
16
|
-
return obj.map(item => deepClone(item)) as unknown as T;
|
|
16
|
+
return obj.map((item) => deepClone(item)) as unknown as T;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
if (typeof obj === 'object') {
|
|
20
20
|
const clonedObj = {} as T;
|
|
21
21
|
for (const key in obj) {
|
|
@@ -25,7 +25,7 @@ export function deepClone<T>(obj: T): T {
|
|
|
25
25
|
}
|
|
26
26
|
return clonedObj;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
return obj;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -49,14 +49,14 @@ export function merge<T extends object>(target: T, ...sources: any[]): T {
|
|
|
49
49
|
export function get(obj: any, path: string, defaultValue?: any): any {
|
|
50
50
|
const keys = path.split('.');
|
|
51
51
|
let result: any = obj;
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
for (const key of keys) {
|
|
54
54
|
if (result === null || result === undefined) {
|
|
55
55
|
return defaultValue;
|
|
56
56
|
}
|
|
57
57
|
result = result[key];
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
return result === undefined ? defaultValue : result;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -67,10 +67,14 @@ export function get(obj: any, path: string, defaultValue?: any): any {
|
|
|
67
67
|
* @param value 要设置的值
|
|
68
68
|
* @returns 设置后的对象
|
|
69
69
|
*/
|
|
70
|
-
export function set<T extends Record<string, any>>(
|
|
70
|
+
export function set<T extends Record<string, any>>(
|
|
71
|
+
obj: T,
|
|
72
|
+
path: string,
|
|
73
|
+
value: any
|
|
74
|
+
): T {
|
|
71
75
|
const keys = path.split('.');
|
|
72
76
|
let current: Record<string, any> = obj;
|
|
73
|
-
|
|
77
|
+
|
|
74
78
|
for (let i = 0; i < keys.length - 1; i++) {
|
|
75
79
|
const key = keys[i];
|
|
76
80
|
if (current[key] === null || current[key] === undefined) {
|
|
@@ -78,7 +82,7 @@ export function set<T extends Record<string, any>>(obj: T, path: string, value:
|
|
|
78
82
|
}
|
|
79
83
|
current = current[key];
|
|
80
84
|
}
|
|
81
|
-
|
|
85
|
+
|
|
82
86
|
current[keys[keys.length - 1]] = value;
|
|
83
87
|
return obj;
|
|
84
88
|
}
|
|
@@ -92,9 +96,9 @@ export function isPlainObject(value: any): value is object {
|
|
|
92
96
|
if (value === null || typeof value !== 'object') {
|
|
93
97
|
return false;
|
|
94
98
|
}
|
|
95
|
-
|
|
99
|
+
|
|
96
100
|
const proto = Object.getPrototypeOf(value);
|
|
97
|
-
|
|
101
|
+
|
|
98
102
|
// 对象的原型应该是null或者Object.prototype
|
|
99
103
|
return proto === null || proto === Object.prototype;
|
|
100
104
|
}
|
|
@@ -104,4 +108,5 @@ export function isPlainObject(value: any): value is object {
|
|
|
104
108
|
* @param {object} obj 带检测对象
|
|
105
109
|
* @param {string} str 属性名称
|
|
106
110
|
*/
|
|
107
|
-
export default (obj: object, str: string) =>
|
|
111
|
+
export default (obj: object, str: string) =>
|
|
112
|
+
obj && Object.prototype.hasOwnProperty.call(obj, str);
|
package/src/storage/storage.ts
CHANGED
|
@@ -37,7 +37,7 @@ function getItem(storage: Storage, keys: string, needParse = true) {
|
|
|
37
37
|
function setItem(
|
|
38
38
|
storage: Storage,
|
|
39
39
|
keys: string,
|
|
40
|
-
value: string | object | object[] | string[] | number[]
|
|
40
|
+
value: string | object | object[] | string[] | number[]
|
|
41
41
|
) {
|
|
42
42
|
const name = String(keys);
|
|
43
43
|
let storageValue = value;
|
|
@@ -69,15 +69,16 @@ function clear(storage: Storage) {
|
|
|
69
69
|
|
|
70
70
|
export const sessionStorage = {
|
|
71
71
|
setItem: (k: string, a: any) => setItem(window.sessionStorage, k, a),
|
|
72
|
-
getItem: (k: string, needParse = true) =>
|
|
72
|
+
getItem: (k: string, needParse = true) =>
|
|
73
|
+
getItem(window.sessionStorage, k, needParse),
|
|
73
74
|
removeItem: (k: string) => removeItem(window.sessionStorage, k),
|
|
74
75
|
clear: () => clear(window.sessionStorage),
|
|
75
|
-
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
export const localStorage = {
|
|
79
79
|
setItem: (k: string, a: any) => setItem(window.localStorage, k, a),
|
|
80
|
-
getItem: (k: string, needParse = true) =>
|
|
80
|
+
getItem: (k: string, needParse = true) =>
|
|
81
|
+
getItem(window.localStorage, k, needParse),
|
|
81
82
|
removeItem: (k: string) => removeItem(window.localStorage, k),
|
|
82
83
|
clear: () => clear(window.localStorage),
|
|
83
84
|
};
|
package/src/strings/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// 字符串工具函数目录入口
|
|
2
|
-
export * from './stringUtils';
|
|
2
|
+
export * from './stringUtils';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
import { toFixed } from '../numbers/numberUtils';
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -8,7 +6,7 @@ import { toFixed } from '../numbers/numberUtils';
|
|
|
8
6
|
* @returns 驼峰命名的字符串
|
|
9
7
|
*/
|
|
10
8
|
export function toCamelCase(str: string): string {
|
|
11
|
-
return str.replace(/[-_\s]+(.)?/g, (_, c) => c ? c.toUpperCase() : '');
|
|
9
|
+
return str.replace(/[-_\s]+(.)?/g, (_, c) => (c ? c.toUpperCase() : ''));
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
/**
|
|
@@ -27,7 +25,8 @@ export function capitalize(str: string): string {
|
|
|
27
25
|
* @returns 随机字符串
|
|
28
26
|
*/
|
|
29
27
|
export function randomString(length: number): string {
|
|
30
|
-
const chars =
|
|
28
|
+
const chars =
|
|
29
|
+
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
31
30
|
let result = '';
|
|
32
31
|
for (let i = 0; i < length; i++) {
|
|
33
32
|
result += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
@@ -35,7 +34,6 @@ export function randomString(length: number): string {
|
|
|
35
34
|
return result;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
|
|
39
37
|
/**
|
|
40
38
|
* 转换字符串,undefined,null等转化为""
|
|
41
39
|
* @param str 需要转换的字符串
|
|
@@ -52,7 +50,7 @@ export function parseStrEmpty(str: string): string {
|
|
|
52
50
|
* 获取字符串的字体长度
|
|
53
51
|
* @param str 需要计算长度的字符串
|
|
54
52
|
* @returns 字符串的字体长度(中文字符算2个长度,英文字符算1个长度)
|
|
55
|
-
*/
|
|
53
|
+
*/
|
|
56
54
|
export function getFontLength(str: string): number {
|
|
57
55
|
let len = 0;
|
|
58
56
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -72,7 +70,8 @@ export function getFontLength(str: string): number {
|
|
|
72
70
|
* @returns 文字宽度(像素)
|
|
73
71
|
*/
|
|
74
72
|
export function getFontWidth(str: string, fontStyle?: string): number {
|
|
75
|
-
let canvas: any | null =
|
|
73
|
+
let canvas: any | null =
|
|
74
|
+
typeof document !== 'undefined' ? document.createElement('canvas') : null;
|
|
76
75
|
const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;
|
|
77
76
|
ctx.font =
|
|
78
77
|
fontStyle ||
|
|
@@ -93,7 +92,10 @@ export function thousandSign(num: number | string): string {
|
|
|
93
92
|
const [integer, decimal] = String(num).split('.');
|
|
94
93
|
let ret = integer.replace(/\d(?=(\d{3})+$)/g, '$&,');
|
|
95
94
|
if (decimal) {
|
|
96
|
-
ret +=
|
|
95
|
+
ret +=
|
|
96
|
+
Number(decimal) > 0
|
|
97
|
+
? `${parseFloat(`0.${decimal}`)}`.replace(/0\./, '.')
|
|
98
|
+
: '';
|
|
97
99
|
}
|
|
98
100
|
return ret;
|
|
99
101
|
}
|
|
@@ -117,4 +119,4 @@ export function thousandSignZero(num: number | string, fixed?: number): string {
|
|
|
117
119
|
return ret;
|
|
118
120
|
}
|
|
119
121
|
return String(num || '0.00').replace(/\d(?=(\d{3})+$)/g, '$&,');
|
|
120
|
-
}
|
|
122
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// 通用工具函数目录入口
|
|
2
|
-
export * from './utilFunctions';
|
|
2
|
+
export * from './utilFunctions';
|
|
@@ -30,7 +30,7 @@ export function throttle<T extends (...args: any[]) => any>(
|
|
|
30
30
|
if (!inThrottle) {
|
|
31
31
|
func(...args);
|
|
32
32
|
inThrottle = true;
|
|
33
|
-
setTimeout(() => inThrottle = false, limit);
|
|
33
|
+
setTimeout(() => (inThrottle = false), limit);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -41,5 +41,5 @@ export function throttle<T extends (...args: any[]) => any>(
|
|
|
41
41
|
* @returns Promise对象
|
|
42
42
|
*/
|
|
43
43
|
export function delay(ms: number): Promise<void> {
|
|
44
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
45
|
-
}
|
|
44
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
45
|
+
}
|
package/README.md
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Function - TypeScript 工具函数库
|
|
2
|
-
|
|
3
|
-
一个轻量级、高性能的 TypeScript 工具函数库,支持按需加载,适合现代前端和 Node.js 项目使用。
|
|
4
|
-
|
|
5
|
-
## 特性
|
|
6
|
-
|
|
7
|
-
- ✨ **TypeScript 编写**:完整的类型定义,提供良好的开发体验
|
|
8
|
-
- 📦 **按需加载**:支持 ES 模块,可通过 Tree Shaking 优化打包体积
|
|
9
|
-
- 🔧 **丰富的工具函数**:涵盖数组、对象、字符串、数字和通用工具
|
|
10
|
-
- 🚀 **高性能**:优化的实现,确保函数执行效率
|
|
11
|
-
- 📝 **完善的文档**:详细的 API 文档和使用示例
|
|
12
|
-
|
|
13
|
-
## 安装
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install function
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## 使用
|
|
20
|
-
|
|
21
|
-
### 整体导入
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import * as utils from 'function';
|
|
25
|
-
|
|
26
|
-
// 使用数组工具函数
|
|
27
|
-
const uniqueArray = utils.unique([1, 2, 2, 3]);
|
|
28
|
-
|
|
29
|
-
// 使用对象工具函数
|
|
30
|
-
const clonedObj = utils.deepClone({ a: 1, b: { c: 2 } });
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### 按需导入
|
|
34
|
-
|
|
35
|
-
```typescript
|
|
36
|
-
// 导入数组工具函数
|
|
37
|
-
import { unique, shuffle, chunk } from 'function/arrays';
|
|
38
|
-
|
|
39
|
-
// 导入对象工具函数
|
|
40
|
-
import { deepClone, merge, get } from 'function/objects';
|
|
41
|
-
|
|
42
|
-
// 导入字符串工具函数
|
|
43
|
-
import { toCamelCase, capitalize, randomString } from 'function/strings';
|
|
44
|
-
|
|
45
|
-
// 导入数字工具函数
|
|
46
|
-
import { range, round, clamp } from 'function/numbers';
|
|
47
|
-
|
|
48
|
-
// 导入通用工具函数
|
|
49
|
-
import { debounce, throttle, delay } from 'function/utils';
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## API 文档
|
|
53
|
-
|
|
54
|
-
### 数组工具函数
|
|
55
|
-
|
|
56
|
-
- `unique<T>(arr: T[]): T[]` - 数组去重
|
|
57
|
-
- `shuffle<T>(arr: T[]): T[]` - 数组随机打乱
|
|
58
|
-
- `chunk<T>(arr: T[], size: number): T[][]` - 数组分块
|
|
59
|
-
|
|
60
|
-
### 对象工具函数
|
|
61
|
-
|
|
62
|
-
- `deepClone<T extends object>(obj: T): T` - 对象深拷贝
|
|
63
|
-
- `merge<T extends object>(target: T, ...sources: Partial<T>[]): T` - 对象合并
|
|
64
|
-
- `get<T extends object>(obj: T, path: string, defaultValue?: any): any` - 获取对象属性值(支持路径访问)
|
|
65
|
-
|
|
66
|
-
### 字符串工具函数
|
|
67
|
-
|
|
68
|
-
- `toCamelCase(str: string): string` - 字符串驼峰命名转换
|
|
69
|
-
- `capitalize(str: string): string` - 字符串首字母大写
|
|
70
|
-
- `randomString(length: number): string` - 生成随机字符串
|
|
71
|
-
|
|
72
|
-
### 数字工具函数
|
|
73
|
-
|
|
74
|
-
- `range(start: number, end: number, step: number = 1): number[]` - 数字范围生成
|
|
75
|
-
- `round(num: number, decimals: number = 0): number` - 数字四舍五入
|
|
76
|
-
- `clamp(num: number, min: number, max: number): number` - 数字在指定范围内的限制
|
|
77
|
-
|
|
78
|
-
### 通用工具函数
|
|
79
|
-
|
|
80
|
-
- `debounce<T extends (...args: any[]) => any>(func: T, wait: number): (...args: Parameters<T>) => void` - 防抖函数
|
|
81
|
-
- `throttle<T extends (...args: any[]) => any>(func: T, limit: number): (...args: Parameters<T>) => void` - 节流函数
|
|
82
|
-
- `delay(ms: number): Promise<void>` - 延迟函数
|
|
83
|
-
|
|
84
|
-
## 构建
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# 安装依赖
|
|
88
|
-
npm install
|
|
89
|
-
|
|
90
|
-
# 构建项目
|
|
91
|
-
npm run build
|
|
92
|
-
|
|
93
|
-
# 监听模式构建
|
|
94
|
-
npm run watch
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## 测试
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
npm test
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## 发布
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
npm publish
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## 许可证
|
|
110
|
-
|
|
111
|
-
ISC
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/assets/hierarchy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg=="
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #795E26;
|
|
3
|
-
--dark-hl-0: #DCDCAA;
|
|
4
|
-
--light-hl-1: #000000;
|
|
5
|
-
--dark-hl-1: #D4D4D4;
|
|
6
|
-
--light-hl-2: #A31515;
|
|
7
|
-
--dark-hl-2: #CE9178;
|
|
8
|
-
--light-hl-3: #AF00DB;
|
|
9
|
-
--dark-hl-3: #C586C0;
|
|
10
|
-
--light-hl-4: #0000FF;
|
|
11
|
-
--dark-hl-4: #569CD6;
|
|
12
|
-
--light-hl-5: #001080;
|
|
13
|
-
--dark-hl-5: #9CDCFE;
|
|
14
|
-
--light-hl-6: #008000;
|
|
15
|
-
--dark-hl-6: #6A9955;
|
|
16
|
-
--light-hl-7: #0070C1;
|
|
17
|
-
--dark-hl-7: #4FC1FF;
|
|
18
|
-
--light-hl-8: #098658;
|
|
19
|
-
--dark-hl-8: #B5CEA8;
|
|
20
|
-
--light-code-background: #FFFFFF;
|
|
21
|
-
--dark-code-background: #1E1E1E;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@media (prefers-color-scheme: light) { :root {
|
|
25
|
-
--hl-0: var(--light-hl-0);
|
|
26
|
-
--hl-1: var(--light-hl-1);
|
|
27
|
-
--hl-2: var(--light-hl-2);
|
|
28
|
-
--hl-3: var(--light-hl-3);
|
|
29
|
-
--hl-4: var(--light-hl-4);
|
|
30
|
-
--hl-5: var(--light-hl-5);
|
|
31
|
-
--hl-6: var(--light-hl-6);
|
|
32
|
-
--hl-7: var(--light-hl-7);
|
|
33
|
-
--hl-8: var(--light-hl-8);
|
|
34
|
-
--code-background: var(--light-code-background);
|
|
35
|
-
} }
|
|
36
|
-
|
|
37
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
38
|
-
--hl-0: var(--dark-hl-0);
|
|
39
|
-
--hl-1: var(--dark-hl-1);
|
|
40
|
-
--hl-2: var(--dark-hl-2);
|
|
41
|
-
--hl-3: var(--dark-hl-3);
|
|
42
|
-
--hl-4: var(--dark-hl-4);
|
|
43
|
-
--hl-5: var(--dark-hl-5);
|
|
44
|
-
--hl-6: var(--dark-hl-6);
|
|
45
|
-
--hl-7: var(--dark-hl-7);
|
|
46
|
-
--hl-8: var(--dark-hl-8);
|
|
47
|
-
--code-background: var(--dark-code-background);
|
|
48
|
-
} }
|
|
49
|
-
|
|
50
|
-
:root[data-theme='light'] {
|
|
51
|
-
--hl-0: var(--light-hl-0);
|
|
52
|
-
--hl-1: var(--light-hl-1);
|
|
53
|
-
--hl-2: var(--light-hl-2);
|
|
54
|
-
--hl-3: var(--light-hl-3);
|
|
55
|
-
--hl-4: var(--light-hl-4);
|
|
56
|
-
--hl-5: var(--light-hl-5);
|
|
57
|
-
--hl-6: var(--light-hl-6);
|
|
58
|
-
--hl-7: var(--light-hl-7);
|
|
59
|
-
--hl-8: var(--light-hl-8);
|
|
60
|
-
--code-background: var(--light-code-background);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:root[data-theme='dark'] {
|
|
64
|
-
--hl-0: var(--dark-hl-0);
|
|
65
|
-
--hl-1: var(--dark-hl-1);
|
|
66
|
-
--hl-2: var(--dark-hl-2);
|
|
67
|
-
--hl-3: var(--dark-hl-3);
|
|
68
|
-
--hl-4: var(--dark-hl-4);
|
|
69
|
-
--hl-5: var(--dark-hl-5);
|
|
70
|
-
--hl-6: var(--dark-hl-6);
|
|
71
|
-
--hl-7: var(--dark-hl-7);
|
|
72
|
-
--hl-8: var(--dark-hl-8);
|
|
73
|
-
--code-background: var(--dark-code-background);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.hl-0 { color: var(--hl-0); }
|
|
77
|
-
.hl-1 { color: var(--hl-1); }
|
|
78
|
-
.hl-2 { color: var(--hl-2); }
|
|
79
|
-
.hl-3 { color: var(--hl-3); }
|
|
80
|
-
.hl-4 { color: var(--hl-4); }
|
|
81
|
-
.hl-5 { color: var(--hl-5); }
|
|
82
|
-
.hl-6 { color: var(--hl-6); }
|
|
83
|
-
.hl-7 { color: var(--hl-7); }
|
|
84
|
-
.hl-8 { color: var(--hl-8); }
|
|
85
|
-
pre, code { background: var(--code-background); }
|
package/docs/assets/icons.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function() {
|
|
2
|
-
addIcons();
|
|
3
|
-
function addIcons() {
|
|
4
|
-
if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
|
|
5
|
-
const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
|
|
6
|
-
svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g>`;
|
|
7
|
-
svg.style.display = "none";
|
|
8
|
-
if (location.protocol === "file:") updateUseElements();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function updateUseElements() {
|
|
12
|
-
document.querySelectorAll("use").forEach(el => {
|
|
13
|
-
if (el.getAttribute("href").includes("#icon-")) {
|
|
14
|
-
el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
})()
|
package/docs/assets/icons.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g></svg>
|