Aero-Ex commited on
Commit
e49423d
·
verified ·
1 Parent(s): 34893f2

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. ui/node_modules/.prisma/client/default.d.ts +1 -0
  2. ui/node_modules/.prisma/client/default.js +1 -0
  3. ui/node_modules/.prisma/client/deno/edge.d.ts +9 -0
  4. ui/node_modules/.prisma/client/edge.d.ts +1 -0
  5. ui/node_modules/.prisma/client/edge.js +203 -0
  6. ui/node_modules/.prisma/client/index-browser.js +194 -0
  7. ui/node_modules/.prisma/client/index.d.ts +0 -0
  8. ui/node_modules/.prisma/client/index.js +226 -0
  9. ui/node_modules/.prisma/client/package.json +97 -0
  10. ui/node_modules/.prisma/client/schema.prisma +46 -0
  11. ui/node_modules/.prisma/client/wasm.d.ts +1 -0
  12. ui/node_modules/.prisma/client/wasm.js +194 -0
  13. ui/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
  14. ui/node_modules/@cspotcode/source-map-support/README.md +289 -0
  15. ui/node_modules/@cspotcode/source-map-support/browser-source-map-support.js +114 -0
  16. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  17. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/README.md +193 -0
  18. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +514 -0
  19. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  20. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +528 -0
  21. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  22. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  23. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  24. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  25. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  26. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  27. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  28. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  29. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +70 -0
  30. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +85 -0
  31. ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/package.json +70 -0
  32. ui/node_modules/@cspotcode/source-map-support/package.json +50 -0
  33. ui/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts +7 -0
  34. ui/node_modules/@cspotcode/source-map-support/register-hook-require.js +3 -0
  35. ui/node_modules/@cspotcode/source-map-support/register.d.ts +7 -0
  36. ui/node_modules/@cspotcode/source-map-support/register.js +1 -0
  37. ui/node_modules/@cspotcode/source-map-support/source-map-support.d.ts +76 -0
  38. ui/node_modules/@cspotcode/source-map-support/source-map-support.js +938 -0
  39. ui/node_modules/@react-stately/utils/LICENSE +201 -0
  40. ui/node_modules/@react-stately/utils/README.md +3 -0
  41. ui/node_modules/@react-stately/utils/dist/import.mjs +19 -0
  42. ui/node_modules/@react-stately/utils/dist/main.js +27 -0
  43. ui/node_modules/@react-stately/utils/dist/main.js.map +1 -0
  44. ui/node_modules/@react-stately/utils/dist/module.js +19 -0
  45. ui/node_modules/@react-stately/utils/dist/module.js.map +1 -0
  46. ui/node_modules/@react-stately/utils/dist/number.main.js +55 -0
  47. ui/node_modules/@react-stately/utils/dist/number.main.js.map +1 -0
  48. ui/node_modules/@react-stately/utils/dist/number.mjs +48 -0
  49. ui/node_modules/@react-stately/utils/dist/number.module.js +48 -0
  50. ui/node_modules/@react-stately/utils/dist/number.module.js.map +1 -0
ui/node_modules/.prisma/client/default.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export * from "./index"
ui/node_modules/.prisma/client/default.js ADDED
@@ -0,0 +1 @@
 
 
1
+ module.exports = { ...require('.') }
ui/node_modules/.prisma/client/deno/edge.d.ts ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ class PrismaClient {
2
+ constructor() {
3
+ throw new Error(
4
+ '@prisma/client/deno/edge did not initialize yet. Please run "prisma generate" and try to import it again.',
5
+ )
6
+ }
7
+ }
8
+
9
+ export { PrismaClient }
ui/node_modules/.prisma/client/edge.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export * from "./default"
ui/node_modules/.prisma/client/edge.js ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ PrismaClientKnownRequestError,
6
+ PrismaClientUnknownRequestError,
7
+ PrismaClientRustPanicError,
8
+ PrismaClientInitializationError,
9
+ PrismaClientValidationError,
10
+ getPrismaClient,
11
+ sqltag,
12
+ empty,
13
+ join,
14
+ raw,
15
+ skip,
16
+ Decimal,
17
+ Debug,
18
+ objectEnumValues,
19
+ makeStrictEnum,
20
+ Extensions,
21
+ warnOnce,
22
+ defineDmmfProperty,
23
+ Public,
24
+ getRuntime,
25
+ createParam,
26
+ } = require('@prisma/client/runtime/edge.js')
27
+
28
+
29
+ const Prisma = {}
30
+
31
+ exports.Prisma = Prisma
32
+ exports.$Enums = {}
33
+
34
+ /**
35
+ * Prisma Client JS version: 6.3.1
36
+ * Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0
37
+ */
38
+ Prisma.prismaVersion = {
39
+ client: "6.3.1",
40
+ engine: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
41
+ }
42
+
43
+ Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
44
+ Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
45
+ Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
46
+ Prisma.PrismaClientInitializationError = PrismaClientInitializationError
47
+ Prisma.PrismaClientValidationError = PrismaClientValidationError
48
+ Prisma.Decimal = Decimal
49
+
50
+ /**
51
+ * Re-export of sql-template-tag
52
+ */
53
+ Prisma.sql = sqltag
54
+ Prisma.empty = empty
55
+ Prisma.join = join
56
+ Prisma.raw = raw
57
+ Prisma.validator = Public.validator
58
+
59
+ /**
60
+ * Extensions
61
+ */
62
+ Prisma.getExtensionContext = Extensions.getExtensionContext
63
+ Prisma.defineExtension = Extensions.defineExtension
64
+
65
+ /**
66
+ * Shorthand utilities for JSON filtering
67
+ */
68
+ Prisma.DbNull = objectEnumValues.instances.DbNull
69
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
70
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
71
+
72
+ Prisma.NullTypes = {
73
+ DbNull: objectEnumValues.classes.DbNull,
74
+ JsonNull: objectEnumValues.classes.JsonNull,
75
+ AnyNull: objectEnumValues.classes.AnyNull
76
+ }
77
+
78
+
79
+
80
+
81
+
82
+ /**
83
+ * Enums
84
+ */
85
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
86
+ Serializable: 'Serializable'
87
+ });
88
+
89
+ exports.Prisma.SettingsScalarFieldEnum = {
90
+ id: 'id',
91
+ key: 'key',
92
+ value: 'value'
93
+ };
94
+
95
+ exports.Prisma.QueueScalarFieldEnum = {
96
+ id: 'id',
97
+ gpu_ids: 'gpu_ids',
98
+ is_running: 'is_running'
99
+ };
100
+
101
+ exports.Prisma.JobScalarFieldEnum = {
102
+ id: 'id',
103
+ name: 'name',
104
+ gpu_ids: 'gpu_ids',
105
+ job_config: 'job_config',
106
+ created_at: 'created_at',
107
+ updated_at: 'updated_at',
108
+ status: 'status',
109
+ stop: 'stop',
110
+ return_to_queue: 'return_to_queue',
111
+ step: 'step',
112
+ info: 'info',
113
+ speed_string: 'speed_string',
114
+ queue_position: 'queue_position',
115
+ pid: 'pid',
116
+ job_type: 'job_type',
117
+ job_ref: 'job_ref'
118
+ };
119
+
120
+ exports.Prisma.SortOrder = {
121
+ asc: 'asc',
122
+ desc: 'desc'
123
+ };
124
+
125
+ exports.Prisma.NullsOrder = {
126
+ first: 'first',
127
+ last: 'last'
128
+ };
129
+
130
+
131
+ exports.Prisma.ModelName = {
132
+ Settings: 'Settings',
133
+ Queue: 'Queue',
134
+ Job: 'Job'
135
+ };
136
+ /**
137
+ * Create the Client
138
+ */
139
+ const config = {
140
+ "generator": {
141
+ "name": "client",
142
+ "provider": {
143
+ "fromEnvVar": null,
144
+ "value": "prisma-client-js"
145
+ },
146
+ "output": {
147
+ "value": "/teamspace/studios/this_studio/ai-toolkit/ui/node_modules/@prisma/client",
148
+ "fromEnvVar": null
149
+ },
150
+ "config": {
151
+ "engineType": "library"
152
+ },
153
+ "binaryTargets": [
154
+ {
155
+ "fromEnvVar": null,
156
+ "value": "debian-openssl-3.0.x",
157
+ "native": true
158
+ }
159
+ ],
160
+ "previewFeatures": [],
161
+ "sourceFilePath": "/teamspace/studios/this_studio/ai-toolkit/ui/prisma/schema.prisma"
162
+ },
163
+ "relativeEnvPaths": {
164
+ "rootEnvPath": null
165
+ },
166
+ "relativePath": "../../../prisma",
167
+ "clientVersion": "6.3.1",
168
+ "engineVersion": "acc0b9dd43eb689cbd20c9470515d719db10d0b0",
169
+ "datasourceNames": [
170
+ "db"
171
+ ],
172
+ "activeProvider": "sqlite",
173
+ "inlineDatasources": {
174
+ "db": {
175
+ "url": {
176
+ "fromEnvVar": null,
177
+ "value": "file:../../aitk_db.db"
178
+ }
179
+ }
180
+ },
181
+ "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = \"file:../../aitk_db.db\"\n}\n\nmodel Settings {\n id Int @id @default(autoincrement())\n key String @unique\n value String\n}\n\nmodel Queue {\n id Int @id @default(autoincrement())\n gpu_ids String @unique\n is_running Boolean @default(false)\n\n @@index([gpu_ids])\n}\n\nmodel Job {\n id String @id @default(uuid())\n name String @unique\n gpu_ids String\n job_config String // JSON string\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n status String @default(\"stopped\")\n stop Boolean @default(false)\n return_to_queue Boolean @default(false) // same as stop, but will be set to 'queued' when stopped\n step Int @default(0)\n info String @default(\"\")\n speed_string String @default(\"\")\n queue_position Int @default(0)\n pid Int?\n job_type String @default(\"train\") // 'train', 'caption'\n job_ref String? // can be used for anything for special jobs, like dataset path for caption jobs\n\n @@index([status])\n @@index([gpu_ids])\n @@index([job_type])\n @@index([job_ref])\n}\n",
182
+ "inlineSchemaHash": "22179d57ce7ed37447ee2500664f1400d3ebde0b884fc1ba7a65eeb7d7bc20bf",
183
+ "copyEngine": true
184
+ }
185
+ config.dirname = '/'
186
+
187
+ config.runtimeDataModel = JSON.parse("{\"models\":{\"Settings\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Queue\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"gpu_ids\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"is_running\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Job\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"gpu_ids\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"job_config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"stopped\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"stop\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"return_to_queue\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"step\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"info\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"speed_string\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"queue_position\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"pid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"job_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"train\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"job_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
188
+ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
189
+ config.engineWasm = undefined
190
+ config.compilerWasm = undefined
191
+
192
+ config.injectableEdgeEnv = () => ({
193
+ parsed: {}
194
+ })
195
+
196
+ if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
197
+ Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
198
+ }
199
+
200
+ const PrismaClient = getPrismaClient(config)
201
+ exports.PrismaClient = PrismaClient
202
+ Object.assign(exports, Prisma)
203
+
ui/node_modules/.prisma/client/index-browser.js ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ Decimal,
6
+ objectEnumValues,
7
+ makeStrictEnum,
8
+ Public,
9
+ getRuntime,
10
+ skip
11
+ } = require('@prisma/client/runtime/index-browser.js')
12
+
13
+
14
+ const Prisma = {}
15
+
16
+ exports.Prisma = Prisma
17
+ exports.$Enums = {}
18
+
19
+ /**
20
+ * Prisma Client JS version: 6.3.1
21
+ * Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0
22
+ */
23
+ Prisma.prismaVersion = {
24
+ client: "6.3.1",
25
+ engine: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
26
+ }
27
+
28
+ Prisma.PrismaClientKnownRequestError = () => {
29
+ const runtimeName = getRuntime().prettyName;
30
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
31
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
32
+ )};
33
+ Prisma.PrismaClientUnknownRequestError = () => {
34
+ const runtimeName = getRuntime().prettyName;
35
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
36
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
37
+ )}
38
+ Prisma.PrismaClientRustPanicError = () => {
39
+ const runtimeName = getRuntime().prettyName;
40
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
41
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
42
+ )}
43
+ Prisma.PrismaClientInitializationError = () => {
44
+ const runtimeName = getRuntime().prettyName;
45
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
46
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
47
+ )}
48
+ Prisma.PrismaClientValidationError = () => {
49
+ const runtimeName = getRuntime().prettyName;
50
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
51
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
52
+ )}
53
+ Prisma.Decimal = Decimal
54
+
55
+ /**
56
+ * Re-export of sql-template-tag
57
+ */
58
+ Prisma.sql = () => {
59
+ const runtimeName = getRuntime().prettyName;
60
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
61
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
62
+ )}
63
+ Prisma.empty = () => {
64
+ const runtimeName = getRuntime().prettyName;
65
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
66
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
67
+ )}
68
+ Prisma.join = () => {
69
+ const runtimeName = getRuntime().prettyName;
70
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
71
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
72
+ )}
73
+ Prisma.raw = () => {
74
+ const runtimeName = getRuntime().prettyName;
75
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
76
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
77
+ )}
78
+ Prisma.validator = Public.validator
79
+
80
+ /**
81
+ * Extensions
82
+ */
83
+ Prisma.getExtensionContext = () => {
84
+ const runtimeName = getRuntime().prettyName;
85
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
86
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
87
+ )}
88
+ Prisma.defineExtension = () => {
89
+ const runtimeName = getRuntime().prettyName;
90
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
91
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
92
+ )}
93
+
94
+ /**
95
+ * Shorthand utilities for JSON filtering
96
+ */
97
+ Prisma.DbNull = objectEnumValues.instances.DbNull
98
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
99
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
100
+
101
+ Prisma.NullTypes = {
102
+ DbNull: objectEnumValues.classes.DbNull,
103
+ JsonNull: objectEnumValues.classes.JsonNull,
104
+ AnyNull: objectEnumValues.classes.AnyNull
105
+ }
106
+
107
+
108
+
109
+ /**
110
+ * Enums
111
+ */
112
+
113
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
114
+ Serializable: 'Serializable'
115
+ });
116
+
117
+ exports.Prisma.SettingsScalarFieldEnum = {
118
+ id: 'id',
119
+ key: 'key',
120
+ value: 'value'
121
+ };
122
+
123
+ exports.Prisma.QueueScalarFieldEnum = {
124
+ id: 'id',
125
+ gpu_ids: 'gpu_ids',
126
+ is_running: 'is_running'
127
+ };
128
+
129
+ exports.Prisma.JobScalarFieldEnum = {
130
+ id: 'id',
131
+ name: 'name',
132
+ gpu_ids: 'gpu_ids',
133
+ job_config: 'job_config',
134
+ created_at: 'created_at',
135
+ updated_at: 'updated_at',
136
+ status: 'status',
137
+ stop: 'stop',
138
+ return_to_queue: 'return_to_queue',
139
+ step: 'step',
140
+ info: 'info',
141
+ speed_string: 'speed_string',
142
+ queue_position: 'queue_position',
143
+ pid: 'pid',
144
+ job_type: 'job_type',
145
+ job_ref: 'job_ref'
146
+ };
147
+
148
+ exports.Prisma.SortOrder = {
149
+ asc: 'asc',
150
+ desc: 'desc'
151
+ };
152
+
153
+ exports.Prisma.NullsOrder = {
154
+ first: 'first',
155
+ last: 'last'
156
+ };
157
+
158
+
159
+ exports.Prisma.ModelName = {
160
+ Settings: 'Settings',
161
+ Queue: 'Queue',
162
+ Job: 'Job'
163
+ };
164
+
165
+ /**
166
+ * This is a stub Prisma Client that will error at runtime if called.
167
+ */
168
+ class PrismaClient {
169
+ constructor() {
170
+ return new Proxy(this, {
171
+ get(target, prop) {
172
+ let message
173
+ const runtime = getRuntime()
174
+ if (runtime.isEdge) {
175
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
176
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
177
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
178
+ `;
179
+ } else {
180
+ message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
181
+ }
182
+
183
+ message += `
184
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
185
+
186
+ throw new Error(message)
187
+ }
188
+ })
189
+ }
190
+ }
191
+
192
+ exports.PrismaClient = PrismaClient
193
+
194
+ Object.assign(exports, Prisma)
ui/node_modules/.prisma/client/index.d.ts ADDED
The diff for this file is too large to render. See raw diff
 
ui/node_modules/.prisma/client/index.js ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ PrismaClientKnownRequestError,
6
+ PrismaClientUnknownRequestError,
7
+ PrismaClientRustPanicError,
8
+ PrismaClientInitializationError,
9
+ PrismaClientValidationError,
10
+ getPrismaClient,
11
+ sqltag,
12
+ empty,
13
+ join,
14
+ raw,
15
+ skip,
16
+ Decimal,
17
+ Debug,
18
+ objectEnumValues,
19
+ makeStrictEnum,
20
+ Extensions,
21
+ warnOnce,
22
+ defineDmmfProperty,
23
+ Public,
24
+ getRuntime,
25
+ createParam,
26
+ } = require('@prisma/client/runtime/library.js')
27
+
28
+
29
+ const Prisma = {}
30
+
31
+ exports.Prisma = Prisma
32
+ exports.$Enums = {}
33
+
34
+ /**
35
+ * Prisma Client JS version: 6.3.1
36
+ * Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0
37
+ */
38
+ Prisma.prismaVersion = {
39
+ client: "6.3.1",
40
+ engine: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
41
+ }
42
+
43
+ Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
44
+ Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
45
+ Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
46
+ Prisma.PrismaClientInitializationError = PrismaClientInitializationError
47
+ Prisma.PrismaClientValidationError = PrismaClientValidationError
48
+ Prisma.Decimal = Decimal
49
+
50
+ /**
51
+ * Re-export of sql-template-tag
52
+ */
53
+ Prisma.sql = sqltag
54
+ Prisma.empty = empty
55
+ Prisma.join = join
56
+ Prisma.raw = raw
57
+ Prisma.validator = Public.validator
58
+
59
+ /**
60
+ * Extensions
61
+ */
62
+ Prisma.getExtensionContext = Extensions.getExtensionContext
63
+ Prisma.defineExtension = Extensions.defineExtension
64
+
65
+ /**
66
+ * Shorthand utilities for JSON filtering
67
+ */
68
+ Prisma.DbNull = objectEnumValues.instances.DbNull
69
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
70
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
71
+
72
+ Prisma.NullTypes = {
73
+ DbNull: objectEnumValues.classes.DbNull,
74
+ JsonNull: objectEnumValues.classes.JsonNull,
75
+ AnyNull: objectEnumValues.classes.AnyNull
76
+ }
77
+
78
+
79
+
80
+
81
+ const path = require('path')
82
+
83
+ /**
84
+ * Enums
85
+ */
86
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
87
+ Serializable: 'Serializable'
88
+ });
89
+
90
+ exports.Prisma.SettingsScalarFieldEnum = {
91
+ id: 'id',
92
+ key: 'key',
93
+ value: 'value'
94
+ };
95
+
96
+ exports.Prisma.QueueScalarFieldEnum = {
97
+ id: 'id',
98
+ gpu_ids: 'gpu_ids',
99
+ is_running: 'is_running'
100
+ };
101
+
102
+ exports.Prisma.JobScalarFieldEnum = {
103
+ id: 'id',
104
+ name: 'name',
105
+ gpu_ids: 'gpu_ids',
106
+ job_config: 'job_config',
107
+ created_at: 'created_at',
108
+ updated_at: 'updated_at',
109
+ status: 'status',
110
+ stop: 'stop',
111
+ return_to_queue: 'return_to_queue',
112
+ step: 'step',
113
+ info: 'info',
114
+ speed_string: 'speed_string',
115
+ queue_position: 'queue_position',
116
+ pid: 'pid',
117
+ job_type: 'job_type',
118
+ job_ref: 'job_ref'
119
+ };
120
+
121
+ exports.Prisma.SortOrder = {
122
+ asc: 'asc',
123
+ desc: 'desc'
124
+ };
125
+
126
+ exports.Prisma.NullsOrder = {
127
+ first: 'first',
128
+ last: 'last'
129
+ };
130
+
131
+
132
+ exports.Prisma.ModelName = {
133
+ Settings: 'Settings',
134
+ Queue: 'Queue',
135
+ Job: 'Job'
136
+ };
137
+ /**
138
+ * Create the Client
139
+ */
140
+ const config = {
141
+ "generator": {
142
+ "name": "client",
143
+ "provider": {
144
+ "fromEnvVar": null,
145
+ "value": "prisma-client-js"
146
+ },
147
+ "output": {
148
+ "value": "/teamspace/studios/this_studio/ai-toolkit/ui/node_modules/@prisma/client",
149
+ "fromEnvVar": null
150
+ },
151
+ "config": {
152
+ "engineType": "library"
153
+ },
154
+ "binaryTargets": [
155
+ {
156
+ "fromEnvVar": null,
157
+ "value": "debian-openssl-3.0.x",
158
+ "native": true
159
+ }
160
+ ],
161
+ "previewFeatures": [],
162
+ "sourceFilePath": "/teamspace/studios/this_studio/ai-toolkit/ui/prisma/schema.prisma"
163
+ },
164
+ "relativeEnvPaths": {
165
+ "rootEnvPath": null
166
+ },
167
+ "relativePath": "../../../prisma",
168
+ "clientVersion": "6.3.1",
169
+ "engineVersion": "acc0b9dd43eb689cbd20c9470515d719db10d0b0",
170
+ "datasourceNames": [
171
+ "db"
172
+ ],
173
+ "activeProvider": "sqlite",
174
+ "inlineDatasources": {
175
+ "db": {
176
+ "url": {
177
+ "fromEnvVar": null,
178
+ "value": "file:../../aitk_db.db"
179
+ }
180
+ }
181
+ },
182
+ "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = \"file:../../aitk_db.db\"\n}\n\nmodel Settings {\n id Int @id @default(autoincrement())\n key String @unique\n value String\n}\n\nmodel Queue {\n id Int @id @default(autoincrement())\n gpu_ids String @unique\n is_running Boolean @default(false)\n\n @@index([gpu_ids])\n}\n\nmodel Job {\n id String @id @default(uuid())\n name String @unique\n gpu_ids String\n job_config String // JSON string\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n status String @default(\"stopped\")\n stop Boolean @default(false)\n return_to_queue Boolean @default(false) // same as stop, but will be set to 'queued' when stopped\n step Int @default(0)\n info String @default(\"\")\n speed_string String @default(\"\")\n queue_position Int @default(0)\n pid Int?\n job_type String @default(\"train\") // 'train', 'caption'\n job_ref String? // can be used for anything for special jobs, like dataset path for caption jobs\n\n @@index([status])\n @@index([gpu_ids])\n @@index([job_type])\n @@index([job_ref])\n}\n",
183
+ "inlineSchemaHash": "22179d57ce7ed37447ee2500664f1400d3ebde0b884fc1ba7a65eeb7d7bc20bf",
184
+ "copyEngine": true
185
+ }
186
+
187
+ const fs = require('fs')
188
+
189
+ config.dirname = __dirname
190
+ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
191
+ const alternativePaths = [
192
+ "node_modules/.prisma/client",
193
+ ".prisma/client",
194
+ ]
195
+
196
+ const alternativePath = alternativePaths.find((altPath) => {
197
+ return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma'))
198
+ }) ?? alternativePaths[0]
199
+
200
+ config.dirname = path.join(process.cwd(), alternativePath)
201
+ config.isBundled = true
202
+ }
203
+
204
+ config.runtimeDataModel = JSON.parse("{\"models\":{\"Settings\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Queue\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"gpu_ids\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"is_running\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Job\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"gpu_ids\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"job_config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"stopped\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"stop\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"return_to_queue\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"step\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"info\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"speed_string\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"queue_position\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"pid\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"job_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"train\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"job_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
205
+ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
206
+ config.engineWasm = undefined
207
+ config.compilerWasm = undefined
208
+
209
+
210
+ const { warnEnvConflicts } = require('@prisma/client/runtime/library.js')
211
+
212
+ warnEnvConflicts({
213
+ rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath),
214
+ schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath)
215
+ })
216
+
217
+ const PrismaClient = getPrismaClient(config)
218
+ exports.PrismaClient = PrismaClient
219
+ Object.assign(exports, Prisma)
220
+
221
+ // file annotations for bundling tools to include these files
222
+ path.join(__dirname, "libquery_engine-debian-openssl-3.0.x.so.node");
223
+ path.join(process.cwd(), "node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node")
224
+ // file annotations for bundling tools to include these files
225
+ path.join(__dirname, "schema.prisma");
226
+ path.join(process.cwd(), "node_modules/.prisma/client/schema.prisma")
ui/node_modules/.prisma/client/package.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "prisma-client-f781e27e2a210d217ab3f555d05169b7a82b6e4f0ac74f297827bcf08d800b89",
3
+ "main": "index.js",
4
+ "types": "index.d.ts",
5
+ "browser": "index-browser.js",
6
+ "exports": {
7
+ "./package.json": "./package.json",
8
+ ".": {
9
+ "require": {
10
+ "node": "./index.js",
11
+ "edge-light": "./wasm.js",
12
+ "workerd": "./wasm.js",
13
+ "worker": "./wasm.js",
14
+ "browser": "./index-browser.js",
15
+ "default": "./index.js"
16
+ },
17
+ "import": {
18
+ "node": "./index.js",
19
+ "edge-light": "./wasm.js",
20
+ "workerd": "./wasm.js",
21
+ "worker": "./wasm.js",
22
+ "browser": "./index-browser.js",
23
+ "default": "./index.js"
24
+ },
25
+ "default": "./index.js"
26
+ },
27
+ "./edge": {
28
+ "types": "./edge.d.ts",
29
+ "require": "./edge.js",
30
+ "import": "./edge.js",
31
+ "default": "./edge.js"
32
+ },
33
+ "./react-native": {
34
+ "types": "./react-native.d.ts",
35
+ "require": "./react-native.js",
36
+ "import": "./react-native.js",
37
+ "default": "./react-native.js"
38
+ },
39
+ "./extension": {
40
+ "types": "./extension.d.ts",
41
+ "require": "./extension.js",
42
+ "import": "./extension.js",
43
+ "default": "./extension.js"
44
+ },
45
+ "./index-browser": {
46
+ "types": "./index.d.ts",
47
+ "require": "./index-browser.js",
48
+ "import": "./index-browser.js",
49
+ "default": "./index-browser.js"
50
+ },
51
+ "./index": {
52
+ "types": "./index.d.ts",
53
+ "require": "./index.js",
54
+ "import": "./index.js",
55
+ "default": "./index.js"
56
+ },
57
+ "./wasm": {
58
+ "types": "./wasm.d.ts",
59
+ "require": "./wasm.js",
60
+ "import": "./wasm.js",
61
+ "default": "./wasm.js"
62
+ },
63
+ "./runtime/library": {
64
+ "types": "./runtime/library.d.ts",
65
+ "require": "./runtime/library.js",
66
+ "import": "./runtime/library.js",
67
+ "default": "./runtime/library.js"
68
+ },
69
+ "./runtime/binary": {
70
+ "types": "./runtime/binary.d.ts",
71
+ "require": "./runtime/binary.js",
72
+ "import": "./runtime/binary.js",
73
+ "default": "./runtime/binary.js"
74
+ },
75
+ "./generator-build": {
76
+ "require": "./generator-build/index.js",
77
+ "import": "./generator-build/index.js",
78
+ "default": "./generator-build/index.js"
79
+ },
80
+ "./sql": {
81
+ "require": {
82
+ "types": "./sql.d.ts",
83
+ "node": "./sql.js",
84
+ "default": "./sql.js"
85
+ },
86
+ "import": {
87
+ "types": "./sql.d.ts",
88
+ "node": "./sql.mjs",
89
+ "default": "./sql.mjs"
90
+ },
91
+ "default": "./sql.js"
92
+ },
93
+ "./*": "./*"
94
+ },
95
+ "version": "6.3.1",
96
+ "sideEffects": false
97
+ }
ui/node_modules/.prisma/client/schema.prisma ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ generator client {
2
+ provider = "prisma-client-js"
3
+ }
4
+
5
+ datasource db {
6
+ provider = "sqlite"
7
+ url = "file:../../aitk_db.db"
8
+ }
9
+
10
+ model Settings {
11
+ id Int @id @default(autoincrement())
12
+ key String @unique
13
+ value String
14
+ }
15
+
16
+ model Queue {
17
+ id Int @id @default(autoincrement())
18
+ gpu_ids String @unique
19
+ is_running Boolean @default(false)
20
+
21
+ @@index([gpu_ids])
22
+ }
23
+
24
+ model Job {
25
+ id String @id @default(uuid())
26
+ name String @unique
27
+ gpu_ids String
28
+ job_config String // JSON string
29
+ created_at DateTime @default(now())
30
+ updated_at DateTime @updatedAt
31
+ status String @default("stopped")
32
+ stop Boolean @default(false)
33
+ return_to_queue Boolean @default(false) // same as stop, but will be set to 'queued' when stopped
34
+ step Int @default(0)
35
+ info String @default("")
36
+ speed_string String @default("")
37
+ queue_position Int @default(0)
38
+ pid Int?
39
+ job_type String @default("train") // 'train', 'caption'
40
+ job_ref String? // can be used for anything for special jobs, like dataset path for caption jobs
41
+
42
+ @@index([status])
43
+ @@index([gpu_ids])
44
+ @@index([job_type])
45
+ @@index([job_ref])
46
+ }
ui/node_modules/.prisma/client/wasm.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export * from "./index"
ui/node_modules/.prisma/client/wasm.js ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ Decimal,
6
+ objectEnumValues,
7
+ makeStrictEnum,
8
+ Public,
9
+ getRuntime,
10
+ skip
11
+ } = require('@prisma/client/runtime/index-browser.js')
12
+
13
+
14
+ const Prisma = {}
15
+
16
+ exports.Prisma = Prisma
17
+ exports.$Enums = {}
18
+
19
+ /**
20
+ * Prisma Client JS version: 6.3.1
21
+ * Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0
22
+ */
23
+ Prisma.prismaVersion = {
24
+ client: "6.3.1",
25
+ engine: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
26
+ }
27
+
28
+ Prisma.PrismaClientKnownRequestError = () => {
29
+ const runtimeName = getRuntime().prettyName;
30
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
31
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
32
+ )};
33
+ Prisma.PrismaClientUnknownRequestError = () => {
34
+ const runtimeName = getRuntime().prettyName;
35
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
36
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
37
+ )}
38
+ Prisma.PrismaClientRustPanicError = () => {
39
+ const runtimeName = getRuntime().prettyName;
40
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
41
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
42
+ )}
43
+ Prisma.PrismaClientInitializationError = () => {
44
+ const runtimeName = getRuntime().prettyName;
45
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
46
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
47
+ )}
48
+ Prisma.PrismaClientValidationError = () => {
49
+ const runtimeName = getRuntime().prettyName;
50
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
51
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
52
+ )}
53
+ Prisma.Decimal = Decimal
54
+
55
+ /**
56
+ * Re-export of sql-template-tag
57
+ */
58
+ Prisma.sql = () => {
59
+ const runtimeName = getRuntime().prettyName;
60
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
61
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
62
+ )}
63
+ Prisma.empty = () => {
64
+ const runtimeName = getRuntime().prettyName;
65
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
66
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
67
+ )}
68
+ Prisma.join = () => {
69
+ const runtimeName = getRuntime().prettyName;
70
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
71
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
72
+ )}
73
+ Prisma.raw = () => {
74
+ const runtimeName = getRuntime().prettyName;
75
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
76
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
77
+ )}
78
+ Prisma.validator = Public.validator
79
+
80
+ /**
81
+ * Extensions
82
+ */
83
+ Prisma.getExtensionContext = () => {
84
+ const runtimeName = getRuntime().prettyName;
85
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
86
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
87
+ )}
88
+ Prisma.defineExtension = () => {
89
+ const runtimeName = getRuntime().prettyName;
90
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
91
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
92
+ )}
93
+
94
+ /**
95
+ * Shorthand utilities for JSON filtering
96
+ */
97
+ Prisma.DbNull = objectEnumValues.instances.DbNull
98
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
99
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
100
+
101
+ Prisma.NullTypes = {
102
+ DbNull: objectEnumValues.classes.DbNull,
103
+ JsonNull: objectEnumValues.classes.JsonNull,
104
+ AnyNull: objectEnumValues.classes.AnyNull
105
+ }
106
+
107
+
108
+
109
+ /**
110
+ * Enums
111
+ */
112
+
113
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
114
+ Serializable: 'Serializable'
115
+ });
116
+
117
+ exports.Prisma.SettingsScalarFieldEnum = {
118
+ id: 'id',
119
+ key: 'key',
120
+ value: 'value'
121
+ };
122
+
123
+ exports.Prisma.QueueScalarFieldEnum = {
124
+ id: 'id',
125
+ gpu_ids: 'gpu_ids',
126
+ is_running: 'is_running'
127
+ };
128
+
129
+ exports.Prisma.JobScalarFieldEnum = {
130
+ id: 'id',
131
+ name: 'name',
132
+ gpu_ids: 'gpu_ids',
133
+ job_config: 'job_config',
134
+ created_at: 'created_at',
135
+ updated_at: 'updated_at',
136
+ status: 'status',
137
+ stop: 'stop',
138
+ return_to_queue: 'return_to_queue',
139
+ step: 'step',
140
+ info: 'info',
141
+ speed_string: 'speed_string',
142
+ queue_position: 'queue_position',
143
+ pid: 'pid',
144
+ job_type: 'job_type',
145
+ job_ref: 'job_ref'
146
+ };
147
+
148
+ exports.Prisma.SortOrder = {
149
+ asc: 'asc',
150
+ desc: 'desc'
151
+ };
152
+
153
+ exports.Prisma.NullsOrder = {
154
+ first: 'first',
155
+ last: 'last'
156
+ };
157
+
158
+
159
+ exports.Prisma.ModelName = {
160
+ Settings: 'Settings',
161
+ Queue: 'Queue',
162
+ Job: 'Job'
163
+ };
164
+
165
+ /**
166
+ * This is a stub Prisma Client that will error at runtime if called.
167
+ */
168
+ class PrismaClient {
169
+ constructor() {
170
+ return new Proxy(this, {
171
+ get(target, prop) {
172
+ let message
173
+ const runtime = getRuntime()
174
+ if (runtime.isEdge) {
175
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
176
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
177
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
178
+ `;
179
+ } else {
180
+ message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
181
+ }
182
+
183
+ message += `
184
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
185
+
186
+ throw new Error(message)
187
+ }
188
+ })
189
+ }
190
+ }
191
+
192
+ exports.PrismaClient = PrismaClient
193
+
194
+ Object.assign(exports, Prisma)
ui/node_modules/@cspotcode/source-map-support/LICENSE.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Evan Wallace
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
ui/node_modules/@cspotcode/source-map-support/README.md ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Source Map Support
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@cspotcode/source-map-support.svg?style=flat)](https://npmjs.org/package/@cspotcode/source-map-support)
4
+ [![NPM downloads](https://img.shields.io/npm/dm/@cspotcode/source-map-support.svg?style=flat)](https://npmjs.org/package/@cspotcode/source-map-support)
5
+ [![Build status](https://img.shields.io/github/workflow/status/cspotcode/node-source-map-support/Continuous%20Integration)](https://github.com/cspotcode/node-source-map-support/actions?query=workflow%3A%22Continuous+Integration%22)
6
+
7
+ This module provides source map support for stack traces in node via the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
8
+
9
+ ## Installation and Usage
10
+
11
+ #### Node support
12
+
13
+ ```
14
+ $ npm install @cspotcode/source-map-support
15
+ ```
16
+
17
+ Source maps can be generated using libraries such as [source-map-index-generator](https://github.com/twolfson/source-map-index-generator). Once you have a valid source map, place a source mapping comment somewhere in the file (usually done automatically or with an option by your transpiler):
18
+
19
+ ```
20
+ //# sourceMappingURL=path/to/source.map
21
+ ```
22
+
23
+ If multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be
24
+ respected (e.g. if a file mentions the comment in code, or went through multiple transpilers).
25
+ The path should either be absolute or relative to the compiled file.
26
+
27
+ From here you have two options.
28
+
29
+ ##### CLI Usage
30
+
31
+ ```bash
32
+ node -r @cspotcode/source-map-support/register compiled.js
33
+ # Or to enable hookRequire
34
+ node -r @cspotcode/source-map-support/register-hook-require compiled.js
35
+ ```
36
+
37
+ ##### Programmatic Usage
38
+
39
+ Put the following line at the top of the compiled file.
40
+
41
+ ```js
42
+ require('@cspotcode/source-map-support').install();
43
+ ```
44
+
45
+ It is also possible to install the source map support directly by
46
+ requiring the `register` module which can be handy with ES6:
47
+
48
+ ```js
49
+ import '@cspotcode/source-map-support/register'
50
+
51
+ // Instead of:
52
+ import sourceMapSupport from '@cspotcode/source-map-support'
53
+ sourceMapSupport.install()
54
+ ```
55
+ Note: if you're using babel-register, it includes source-map-support already.
56
+
57
+ It is also very useful with Mocha:
58
+
59
+ ```
60
+ $ mocha --require @cspotcode/source-map-support/register tests/
61
+ ```
62
+
63
+ #### Browser support
64
+
65
+ This library also works in Chrome. While the DevTools console already supports source maps, the V8 engine doesn't and `Error.prototype.stack` will be incorrect without this library. Everything will just work if you deploy your source files using [browserify](http://browserify.org/). Just make sure to pass the `--debug` flag to the browserify command so your source maps are included in the bundled code.
66
+
67
+ This library also works if you use another build process or just include the source files directly. In this case, include the file `browser-source-map-support.js` in your page and call `sourceMapSupport.install()`. It contains the whole library already bundled for the browser using browserify.
68
+
69
+ ```html
70
+ <script src="browser-source-map-support.js"></script>
71
+ <script>sourceMapSupport.install();</script>
72
+ ```
73
+
74
+ This library also works if you use AMD (Asynchronous Module Definition), which is used in tools like [RequireJS](http://requirejs.org/). Just list `browser-source-map-support` as a dependency:
75
+
76
+ ```html
77
+ <script>
78
+ define(['browser-source-map-support'], function(sourceMapSupport) {
79
+ sourceMapSupport.install();
80
+ });
81
+ </script>
82
+ ```
83
+
84
+ ## Options
85
+
86
+ This module installs two things: a change to the `stack` property on `Error` objects and a handler for uncaught exceptions that mimics node's default exception handler (the handler can be seen in the demos below). You may want to disable the handler if you have your own uncaught exception handler. This can be done by passing an argument to the installer:
87
+
88
+ ```js
89
+ require('@cspotcode/source-map-support').install({
90
+ handleUncaughtExceptions: false
91
+ });
92
+ ```
93
+
94
+ This module loads source maps from the filesystem by default. You can provide alternate loading behavior through a callback as shown below. For example, [Meteor](https://github.com/meteor) keeps all source maps cached in memory to avoid disk access.
95
+
96
+ ```js
97
+ require('@cspotcode/source-map-support').install({
98
+ retrieveSourceMap: function(source) {
99
+ if (source === 'compiled.js') {
100
+ return {
101
+ url: 'original.js',
102
+ map: fs.readFileSync('compiled.js.map', 'utf8')
103
+ };
104
+ }
105
+ return null;
106
+ }
107
+ });
108
+ ```
109
+
110
+ The module will by default assume a browser environment if XMLHttpRequest and window are defined. If either of these do not exist it will instead assume a node environment.
111
+ In some rare cases, e.g. when running a browser emulation and where both variables are also set, you can explictly specify the environment to be either 'browser' or 'node'.
112
+
113
+ ```js
114
+ require('@cspotcode/source-map-support').install({
115
+ environment: 'node'
116
+ });
117
+ ```
118
+
119
+ To support files with inline source maps, the `hookRequire` options can be specified, which will monitor all source files for inline source maps.
120
+
121
+
122
+ ```js
123
+ require('@cspotcode/source-map-support').install({
124
+ hookRequire: true
125
+ });
126
+ ```
127
+
128
+ This monkey patches the `require` module loading chain, so is not enabled by default and is not recommended for any sort of production usage.
129
+
130
+ ## Demos
131
+
132
+ #### Basic Demo
133
+
134
+ original.js:
135
+
136
+ ```js
137
+ throw new Error('test'); // This is the original code
138
+ ```
139
+
140
+ compiled.js:
141
+
142
+ ```js
143
+ require('@cspotcode/source-map-support').install();
144
+
145
+ throw new Error('test'); // This is the compiled code
146
+ // The next line defines the sourceMapping.
147
+ //# sourceMappingURL=compiled.js.map
148
+ ```
149
+
150
+ compiled.js.map:
151
+
152
+ ```json
153
+ {
154
+ "version": 3,
155
+ "file": "compiled.js",
156
+ "sources": ["original.js"],
157
+ "names": [],
158
+ "mappings": ";;AAAA,MAAM,IAAI"
159
+ }
160
+ ```
161
+
162
+ Run compiled.js using node (notice how the stack trace uses original.js instead of compiled.js):
163
+
164
+ ```
165
+ $ node compiled.js
166
+
167
+ original.js:1
168
+ throw new Error('test'); // This is the original code
169
+ ^
170
+ Error: test
171
+ at Object.<anonymous> (original.js:1:7)
172
+ at Module._compile (module.js:456:26)
173
+ at Object.Module._extensions..js (module.js:474:10)
174
+ at Module.load (module.js:356:32)
175
+ at Function.Module._load (module.js:312:12)
176
+ at Function.Module.runMain (module.js:497:10)
177
+ at startup (node.js:119:16)
178
+ at node.js:901:3
179
+ ```
180
+
181
+ #### TypeScript Demo
182
+
183
+ demo.ts:
184
+
185
+ ```typescript
186
+ declare function require(name: string);
187
+ require('@cspotcode/source-map-support').install();
188
+ class Foo {
189
+ constructor() { this.bar(); }
190
+ bar() { throw new Error('this is a demo'); }
191
+ }
192
+ new Foo();
193
+ ```
194
+
195
+ Compile and run the file using the TypeScript compiler from the terminal:
196
+
197
+ ```
198
+ $ npm install source-map-support typescript
199
+ $ node_modules/typescript/bin/tsc -sourcemap demo.ts
200
+ $ node demo.js
201
+
202
+ demo.ts:5
203
+ bar() { throw new Error('this is a demo'); }
204
+ ^
205
+ Error: this is a demo
206
+ at Foo.bar (demo.ts:5:17)
207
+ at new Foo (demo.ts:4:24)
208
+ at Object.<anonymous> (demo.ts:7:1)
209
+ at Module._compile (module.js:456:26)
210
+ at Object.Module._extensions..js (module.js:474:10)
211
+ at Module.load (module.js:356:32)
212
+ at Function.Module._load (module.js:312:12)
213
+ at Function.Module.runMain (module.js:497:10)
214
+ at startup (node.js:119:16)
215
+ at node.js:901:3
216
+ ```
217
+
218
+ There is also the option to use `-r source-map-support/register` with typescript, without the need add the `require('@cspotcode/source-map-support').install()` in the code base:
219
+
220
+ ```
221
+ $ npm install source-map-support typescript
222
+ $ node_modules/typescript/bin/tsc -sourcemap demo.ts
223
+ $ node -r source-map-support/register demo.js
224
+
225
+ demo.ts:5
226
+ bar() { throw new Error('this is a demo'); }
227
+ ^
228
+ Error: this is a demo
229
+ at Foo.bar (demo.ts:5:17)
230
+ at new Foo (demo.ts:4:24)
231
+ at Object.<anonymous> (demo.ts:7:1)
232
+ at Module._compile (module.js:456:26)
233
+ at Object.Module._extensions..js (module.js:474:10)
234
+ at Module.load (module.js:356:32)
235
+ at Function.Module._load (module.js:312:12)
236
+ at Function.Module.runMain (module.js:497:10)
237
+ at startup (node.js:119:16)
238
+ at node.js:901:3
239
+ ```
240
+
241
+ #### CoffeeScript Demo
242
+
243
+ demo.coffee:
244
+
245
+ ```coffee
246
+ require('@cspotcode/source-map-support').install()
247
+ foo = ->
248
+ bar = -> throw new Error 'this is a demo'
249
+ bar()
250
+ foo()
251
+ ```
252
+
253
+ Compile and run the file using the CoffeeScript compiler from the terminal:
254
+
255
+ ```sh
256
+ $ npm install @cspotcode/source-map-support coffeescript
257
+ $ node_modules/.bin/coffee --map --compile demo.coffee
258
+ $ node demo.js
259
+
260
+ demo.coffee:3
261
+ bar = -> throw new Error 'this is a demo'
262
+ ^
263
+ Error: this is a demo
264
+ at bar (demo.coffee:3:22)
265
+ at foo (demo.coffee:4:3)
266
+ at Object.<anonymous> (demo.coffee:5:1)
267
+ at Object.<anonymous> (demo.coffee:1:1)
268
+ at Module._compile (module.js:456:26)
269
+ at Object.Module._extensions..js (module.js:474:10)
270
+ at Module.load (module.js:356:32)
271
+ at Function.Module._load (module.js:312:12)
272
+ at Function.Module.runMain (module.js:497:10)
273
+ at startup (node.js:119:16)
274
+ ```
275
+
276
+ ## Tests
277
+
278
+ This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests:
279
+
280
+ * Build the tests using `build.js`
281
+ * Launch the HTTP server (`npm run serve-tests`) and visit
282
+ * http://127.0.0.1:1336/amd-test
283
+ * http://127.0.0.1:1336/browser-test
284
+ * http://127.0.0.1:1336/browserify-test - **Currently not working** due to a bug with browserify (see [pull request #66](https://github.com/evanw/node-source-map-support/pull/66) for details).
285
+ * For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/
286
+
287
+ ## License
288
+
289
+ This code is available under the [MIT license](http://opensource.org/licenses/MIT).
ui/node_modules/@cspotcode/source-map-support/browser-source-map-support.js ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Support for source maps in V8 stack traces
3
+ * https://github.com/evanw/node-source-map-support
4
+ */
5
+ /*
6
+ The buffer module from node.js, for the browser.
7
+
8
+ @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
+ license MIT
10
+ */
11
+ (this.define||function(R,U){this.sourceMapSupport=U()})("browser-source-map-support",function(R){(function e(C,J,A){function p(f,c){if(!J[f]){if(!C[f]){var l="function"==typeof require&&require;if(!c&&l)return l(f,!0);if(t)return t(f,!0);throw Error("Cannot find module '"+f+"'");}l=J[f]={exports:{}};C[f][0].call(l.exports,function(q){var r=C[f][1][q];return p(r?r:q)},l,l.exports,e,C,J,A)}return J[f].exports}for(var t="function"==typeof require&&require,m=0;m<A.length;m++)p(A[m]);return p})({1:[function(C,
12
+ J,A){R=C("./source-map-support")},{"./source-map-support":21}],2:[function(C,J,A){(function(e){function p(m){m=m.charCodeAt(0);if(43===m)return 62;if(47===m)return 63;if(48>m)return-1;if(58>m)return m-48+52;if(91>m)return m-65;if(123>m)return m-97+26}var t="undefined"!==typeof Uint8Array?Uint8Array:Array;e.toByteArray=function(m){function f(d){q[k++]=d}if(0<m.length%4)throw Error("Invalid string. Length must be a multiple of 4");var c=m.length;var l="="===m.charAt(c-2)?2:"="===m.charAt(c-1)?1:0;var q=
13
+ new t(3*m.length/4-l);var r=0<l?m.length-4:m.length;var k=0;for(c=0;c<r;c+=4){var u=p(m.charAt(c))<<18|p(m.charAt(c+1))<<12|p(m.charAt(c+2))<<6|p(m.charAt(c+3));f((u&16711680)>>16);f((u&65280)>>8);f(u&255)}2===l?(u=p(m.charAt(c))<<2|p(m.charAt(c+1))>>4,f(u&255)):1===l&&(u=p(m.charAt(c))<<10|p(m.charAt(c+1))<<4|p(m.charAt(c+2))>>2,f(u>>8&255),f(u&255));return q};e.fromByteArray=function(m){var f=m.length%3,c="",l;var q=0;for(l=m.length-f;q<l;q+=3){var r=(m[q]<<16)+(m[q+1]<<8)+m[q+2];r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>
14
+ 18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r&63);c+=r}switch(f){case 1:r=m[m.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<4&63);c+="==";break;case 2:r=(m[m.length-2]<<8)+
15
+ m[m.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<2&63),c+="="}return c}})("undefined"===typeof A?this.base64js={}:A)},{}],3:[function(C,J,A){},{}],4:[function(C,J,A){(function(e){var p=Object.prototype.toString,t="function"===typeof e.alloc&&"function"===typeof e.allocUnsafe&&"function"===
16
+ typeof e.from;J.exports=function(m,f,c){if("number"===typeof m)throw new TypeError('"value" argument must not be a number');if("ArrayBuffer"===p.call(m).slice(8,-1)){f>>>=0;var l=m.byteLength-f;if(0>l)throw new RangeError("'offset' is out of bounds");if(void 0===c)c=l;else if(c>>>=0,c>l)throw new RangeError("'length' is out of bounds");return t?e.from(m.slice(f,f+c)):new e(new Uint8Array(m.slice(f,f+c)))}if("string"===typeof m){c=f;if("string"!==typeof c||""===c)c="utf8";if(!e.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');
17
+ return t?e.from(m,c):new e(m,c)}return t?e.from(m):new e(m)}}).call(this,C("buffer").Buffer)},{buffer:5}],5:[function(C,J,A){function e(a,b,h){if(!(this instanceof e))return new e(a,b,h);var w=typeof a;if("number"===w)var y=0<a?a>>>0:0;else if("string"===w){if("base64"===b)for(a=(a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")).replace(L,"");0!==a.length%4;)a+="=";y=e.byteLength(a,b)}else if("object"===w&&null!==a)"Buffer"===a.type&&z(a.data)&&(a=a.data),y=0<+a.length?Math.floor(+a.length):0;else throw new TypeError("must start with number, buffer, array or string");
18
+ if(this.length>G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");if(e.TYPED_ARRAY_SUPPORT)var I=e._augment(new Uint8Array(y));else I=this,I.length=y,I._isBuffer=!0;if(e.TYPED_ARRAY_SUPPORT&&"number"===typeof a.byteLength)I._set(a);else{var K=a;if(z(K)||e.isBuffer(K)||K&&"object"===typeof K&&"number"===typeof K.length)if(e.isBuffer(a))for(b=0;b<y;b++)I[b]=a.readUInt8(b);else for(b=0;b<y;b++)I[b]=(a[b]%256+256)%256;else if("string"===w)I.write(a,
19
+ 0,b);else if("number"===w&&!e.TYPED_ARRAY_SUPPORT&&!h)for(b=0;b<y;b++)I[b]=0}return I}function p(a,b,h){var w="";for(h=Math.min(a.length,h);b<h;b++)w+=String.fromCharCode(a[b]);return w}function t(a,b,h){if(0!==a%1||0>a)throw new RangeError("offset is not uint");if(a+b>h)throw new RangeError("Trying to access beyond buffer length");}function m(a,b,h,w,y,I){if(!e.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>y||b<I)throw new TypeError("value is out of bounds");if(h+w>a.length)throw new TypeError("index out of range");
20
+ }function f(a,b,h,w){0>b&&(b=65535+b+1);for(var y=0,I=Math.min(a.length-h,2);y<I;y++)a[h+y]=(b&255<<8*(w?y:1-y))>>>8*(w?y:1-y)}function c(a,b,h,w){0>b&&(b=4294967295+b+1);for(var y=0,I=Math.min(a.length-h,4);y<I;y++)a[h+y]=b>>>8*(w?y:3-y)&255}function l(a,b,h,w,y,I){if(b>y||b<I)throw new TypeError("value is out of bounds");if(h+w>a.length)throw new TypeError("index out of range");}function q(a,b,h,w,y){y||l(a,b,h,4,3.4028234663852886E38,-3.4028234663852886E38);v.write(a,b,h,w,23,4);return h+4}function r(a,
21
+ b,h,w,y){y||l(a,b,h,8,1.7976931348623157E308,-1.7976931348623157E308);v.write(a,b,h,w,52,8);return h+8}function k(a){for(var b=[],h=0;h<a.length;h++){var w=a.charCodeAt(h);if(127>=w)b.push(w);else{var y=h;55296<=w&&57343>=w&&h++;w=encodeURIComponent(a.slice(y,h+1)).substr(1).split("%");for(y=0;y<w.length;y++)b.push(parseInt(w[y],16))}}return b}function u(a){for(var b=[],h=0;h<a.length;h++)b.push(a.charCodeAt(h)&255);return b}function d(a,b,h,w,y){y&&(w-=w%y);for(y=0;y<w&&!(y+h>=b.length||y>=a.length);y++)b[y+
22
+ h]=a[y];return y}function g(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var n=C("base64-js"),v=C("ieee754"),z=C("is-array");A.Buffer=e;A.SlowBuffer=e;A.INSPECT_MAX_BYTES=50;e.poolSize=8192;var G=1073741823;e.TYPED_ARRAY_SUPPORT=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray&&0===(new Uint8Array(1)).subarray(1,1).byteLength}catch(h){return!1}}();e.isBuffer=function(a){return!(null==
23
+ a||!a._isBuffer)};e.compare=function(a,b){if(!e.isBuffer(a)||!e.isBuffer(b))throw new TypeError("Arguments must be Buffers");for(var h=a.length,w=b.length,y=0,I=Math.min(h,w);y<I&&a[y]===b[y];y++);y!==I&&(h=a[y],w=b[y]);return h<w?-1:w<h?1:0};e.isEncoding=function(a){switch(String(a).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.concat=function(a,b){if(!z(a))throw new TypeError("Usage: Buffer.concat(list[, length])");
24
+ if(0===a.length)return new e(0);if(1===a.length)return a[0];var h;if(void 0===b)for(h=b=0;h<a.length;h++)b+=a[h].length;var w=new e(b),y=0;for(h=0;h<a.length;h++){var I=a[h];I.copy(w,y);y+=I.length}return w};e.byteLength=function(a,b){a+="";switch(b||"utf8"){case "ascii":case "binary":case "raw":var h=a.length;break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":h=2*a.length;break;case "hex":h=a.length>>>1;break;case "utf8":case "utf-8":h=k(a).length;break;case "base64":h=n.toByteArray(a).length;
25
+ break;default:h=a.length}return h};e.prototype.length=void 0;e.prototype.parent=void 0;e.prototype.toString=function(a,b,h){var w=!1;b>>>=0;h=void 0===h||Infinity===h?this.length:h>>>0;a||(a="utf8");0>b&&(b=0);h>this.length&&(h=this.length);if(h<=b)return"";for(;;)switch(a){case "hex":a=b;b=h;h=this.length;if(!a||0>a)a=0;if(!b||0>b||b>h)b=h;w="";for(h=a;h<b;h++)a=w,w=this[h],w=16>w?"0"+w.toString(16):w.toString(16),w=a+w;return w;case "utf8":case "utf-8":w=a="";for(h=Math.min(this.length,h);b<h;b++)127>=
26
+ this[b]?(a+=g(w)+String.fromCharCode(this[b]),w=""):w+="%"+this[b].toString(16);return a+g(w);case "ascii":return p(this,b,h);case "binary":return p(this,b,h);case "base64":return b=0===b&&h===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(b,h)),b;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=this.slice(b,h);h="";for(a=0;a<b.length;a+=2)h+=String.fromCharCode(b[a]+256*b[a+1]);return h;default:if(w)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase();w=!0}};
27
+ e.prototype.equals=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return 0===e.compare(this,a)};e.prototype.inspect=function(){var a="",b=A.INSPECT_MAX_BYTES;0<this.length&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... "));return"<Buffer "+a+">"};e.prototype.compare=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return e.compare(this,a)};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
28
+ return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.write=function(a,b,h,w){if(isFinite(b))isFinite(h)||(w=h,h=void 0);else{var y=w;w=b;b=h;h=y}b=Number(b)||0;y=this.length-b;h?(h=Number(h),h>y&&(h=y)):h=y;w=String(w||"utf8").toLowerCase();switch(w){case "hex":b=Number(b)||0;w=this.length-b;h?(h=Number(h),h>w&&(h=w)):h=w;w=a.length;if(0!==w%2)throw Error("Invalid hex string");h>w/
29
+ 2&&(h=w/2);for(w=0;w<h;w++){y=parseInt(a.substr(2*w,2),16);if(isNaN(y))throw Error("Invalid hex string");this[b+w]=y}a=w;break;case "utf8":case "utf-8":a=d(k(a),this,b,h);break;case "ascii":a=d(u(a),this,b,h);break;case "binary":a=d(u(a),this,b,h);break;case "base64":a=d(n.toByteArray(a),this,b,h);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":y=[];for(var I=0;I<a.length;I++){var K=a.charCodeAt(I);w=K>>8;K%=256;y.push(K);y.push(w)}a=d(y,this,b,h,2);break;default:throw new TypeError("Unknown encoding: "+
30
+ w);}return a};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.slice=function(a,b){var h=this.length;a=~~a;b=void 0===b?h:~~b;0>a?(a+=h,0>a&&(a=0)):a>h&&(a=h);0>b?(b+=h,0>b&&(b=0)):b>h&&(b=h);b<a&&(b=a);if(e.TYPED_ARRAY_SUPPORT)return e._augment(this.subarray(a,b));h=b-a;for(var w=new e(h,void 0,!0),y=0;y<h;y++)w[y]=this[y+a];return w};e.prototype.readUInt8=function(a,b){b||t(a,1,this.length);return this[a]};e.prototype.readUInt16LE=
31
+ function(a,b){b||t(a,2,this.length);return this[a]|this[a+1]<<8};e.prototype.readUInt16BE=function(a,b){b||t(a,2,this.length);return this[a]<<8|this[a+1]};e.prototype.readUInt32LE=function(a,b){b||t(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]};e.prototype.readUInt32BE=function(a,b){b||t(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};e.prototype.readInt8=function(a,b){b||t(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};
32
+ e.prototype.readInt16LE=function(a,b){b||t(a,2,this.length);var h=this[a]|this[a+1]<<8;return h&32768?h|4294901760:h};e.prototype.readInt16BE=function(a,b){b||t(a,2,this.length);var h=this[a+1]|this[a]<<8;return h&32768?h|4294901760:h};e.prototype.readInt32LE=function(a,b){b||t(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};e.prototype.readInt32BE=function(a,b){b||t(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};e.prototype.readFloatLE=function(a,
33
+ b){b||t(a,4,this.length);return v.read(this,a,!0,23,4)};e.prototype.readFloatBE=function(a,b){b||t(a,4,this.length);return v.read(this,a,!1,23,4)};e.prototype.readDoubleLE=function(a,b){b||t(a,8,this.length);return v.read(this,a,!0,52,8)};e.prototype.readDoubleBE=function(a,b){b||t(a,8,this.length);return v.read(this,a,!1,52,8)};e.prototype.writeUInt8=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,1,255,0);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));this[b]=a;return b+1};e.prototype.writeUInt16LE=function(a,
34
+ b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeUInt16BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeUInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):c(this,a,b,!0);return b+4};e.prototype.writeUInt32BE=function(a,
35
+ b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeInt8=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,1,127,-128);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));0>a&&(a=255+a+1);this[b]=a;return b+1};e.prototype.writeInt16LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeInt16BE=function(a,
36
+ b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):c(this,a,b,!0);return b+4};e.prototype.writeInt32BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+
37
+ 2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeFloatLE=function(a,b,h){return q(this,a,b,!0,h)};e.prototype.writeFloatBE=function(a,b,h){return q(this,a,b,!1,h)};e.prototype.writeDoubleLE=function(a,b,h){return r(this,a,b,!0,h)};e.prototype.writeDoubleBE=function(a,b,h){return r(this,a,b,!1,h)};e.prototype.copy=function(a,b,h,w){h||(h=0);w||0===w||(w=this.length);b||(b=0);if(w!==h&&0!==a.length&&0!==this.length){if(w<h)throw new TypeError("sourceEnd < sourceStart");if(0>b||b>=a.length)throw new TypeError("targetStart out of bounds");
38
+ if(0>h||h>=this.length)throw new TypeError("sourceStart out of bounds");if(0>w||w>this.length)throw new TypeError("sourceEnd out of bounds");w>this.length&&(w=this.length);a.length-b<w-h&&(w=a.length-b+h);w-=h;if(1E3>w||!e.TYPED_ARRAY_SUPPORT)for(var y=0;y<w;y++)a[y+b]=this[y+h];else a._set(this.subarray(h,h+w),b)}};e.prototype.fill=function(a,b,h){a||(a=0);b||(b=0);h||(h=this.length);if(h<b)throw new TypeError("end < start");if(h!==b&&0!==this.length){if(0>b||b>=this.length)throw new TypeError("start out of bounds");
39
+ if(0>h||h>this.length)throw new TypeError("end out of bounds");if("number"===typeof a)for(;b<h;b++)this[b]=a;else{a=k(a.toString());for(var w=a.length;b<h;b++)this[b]=a[b%w]}return this}};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e.TYPED_ARRAY_SUPPORT)return(new e(this)).buffer;for(var a=new Uint8Array(this.length),b=0,h=a.length;b<h;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser");};var D=e.prototype;e._augment=
40
+ function(a){a.constructor=e;a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=D.get;a.set=D.set;a.write=D.write;a.toString=D.toString;a.toLocaleString=D.toString;a.toJSON=D.toJSON;a.equals=D.equals;a.compare=D.compare;a.copy=D.copy;a.slice=D.slice;a.readUInt8=D.readUInt8;a.readUInt16LE=D.readUInt16LE;a.readUInt16BE=D.readUInt16BE;a.readUInt32LE=D.readUInt32LE;a.readUInt32BE=D.readUInt32BE;a.readInt8=D.readInt8;a.readInt16LE=D.readInt16LE;a.readInt16BE=D.readInt16BE;a.readInt32LE=D.readInt32LE;a.readInt32BE=
41
+ D.readInt32BE;a.readFloatLE=D.readFloatLE;a.readFloatBE=D.readFloatBE;a.readDoubleLE=D.readDoubleLE;a.readDoubleBE=D.readDoubleBE;a.writeUInt8=D.writeUInt8;a.writeUInt16LE=D.writeUInt16LE;a.writeUInt16BE=D.writeUInt16BE;a.writeUInt32LE=D.writeUInt32LE;a.writeUInt32BE=D.writeUInt32BE;a.writeInt8=D.writeInt8;a.writeInt16LE=D.writeInt16LE;a.writeInt16BE=D.writeInt16BE;a.writeInt32LE=D.writeInt32LE;a.writeInt32BE=D.writeInt32BE;a.writeFloatLE=D.writeFloatLE;a.writeFloatBE=D.writeFloatBE;a.writeDoubleLE=
42
+ D.writeDoubleLE;a.writeDoubleBE=D.writeDoubleBE;a.fill=D.fill;a.inspect=D.inspect;a.toArrayBuffer=D.toArrayBuffer;return a};var L=/[^+\/0-9A-z]/g},{"base64-js":2,ieee754:6,"is-array":7}],6:[function(C,J,A){A.read=function(e,p,t,m,f){var c=8*f-m-1;var l=(1<<c)-1,q=l>>1,r=-7;f=t?f-1:0;var k=t?-1:1,u=e[p+f];f+=k;t=u&(1<<-r)-1;u>>=-r;for(r+=c;0<r;t=256*t+e[p+f],f+=k,r-=8);c=t&(1<<-r)-1;t>>=-r;for(r+=m;0<r;c=256*c+e[p+f],f+=k,r-=8);if(0===t)t=1-q;else{if(t===l)return c?NaN:Infinity*(u?-1:1);c+=Math.pow(2,
43
+ m);t-=q}return(u?-1:1)*c*Math.pow(2,t-m)};A.write=function(e,p,t,m,f,c){var l,q=8*c-f-1,r=(1<<q)-1,k=r>>1,u=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;c=m?0:c-1;var d=m?1:-1,g=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,m=r):(m=Math.floor(Math.log(p)/Math.LN2),1>p*(l=Math.pow(2,-m))&&(m--,l*=2),p=1<=m+k?p+u/l:p+u*Math.pow(2,1-k),2<=p*l&&(m++,l/=2),m+k>=r?(p=0,m=r):1<=m+k?(p=(p*l-1)*Math.pow(2,f),m+=k):(p=p*Math.pow(2,k-1)*Math.pow(2,f),m=0));for(;8<=f;e[t+c]=p&255,c+=
44
+ d,p/=256,f-=8);m=m<<f|p;for(q+=f;0<q;e[t+c]=m&255,c+=d,m/=256,q-=8);e[t+c-d]|=128*g}},{}],7:[function(C,J,A){var e=Object.prototype.toString;J.exports=Array.isArray||function(p){return!!p&&"[object Array]"==e.call(p)}},{}],8:[function(C,J,A){(function(e){function p(c,l){for(var q=0,r=c.length-1;0<=r;r--){var k=c[r];"."===k?c.splice(r,1):".."===k?(c.splice(r,1),q++):q&&(c.splice(r,1),q--)}if(l)for(;q--;q)c.unshift("..");return c}function t(c,l){if(c.filter)return c.filter(l);for(var q=[],r=0;r<c.length;r++)l(c[r],
45
+ r,c)&&q.push(c[r]);return q}var m=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;A.resolve=function(){for(var c="",l=!1,q=arguments.length-1;-1<=q&&!l;q--){var r=0<=q?arguments[q]:e.cwd();if("string"!==typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(c=r+"/"+c,l="/"===r.charAt(0))}c=p(t(c.split("/"),function(k){return!!k}),!l).join("/");return(l?"/":"")+c||"."};A.normalize=function(c){var l=A.isAbsolute(c),q="/"===f(c,-1);(c=p(t(c.split("/"),function(r){return!!r}),
46
+ !l).join("/"))||l||(c=".");c&&q&&(c+="/");return(l?"/":"")+c};A.isAbsolute=function(c){return"/"===c.charAt(0)};A.join=function(){var c=Array.prototype.slice.call(arguments,0);return A.normalize(t(c,function(l,q){if("string"!==typeof l)throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))};A.relative=function(c,l){function q(n){for(var v=0;v<n.length&&""===n[v];v++);for(var z=n.length-1;0<=z&&""===n[z];z--);return v>z?[]:n.slice(v,z-v+1)}c=A.resolve(c).substr(1);l=A.resolve(l).substr(1);
47
+ for(var r=q(c.split("/")),k=q(l.split("/")),u=Math.min(r.length,k.length),d=u,g=0;g<u;g++)if(r[g]!==k[g]){d=g;break}u=[];for(g=d;g<r.length;g++)u.push("..");u=u.concat(k.slice(d));return u.join("/")};A.sep="/";A.delimiter=":";A.dirname=function(c){var l=m.exec(c).slice(1);c=l[0];l=l[1];if(!c&&!l)return".";l&&(l=l.substr(0,l.length-1));return c+l};A.basename=function(c,l){var q=m.exec(c).slice(1)[2];l&&q.substr(-1*l.length)===l&&(q=q.substr(0,q.length-l.length));return q};A.extname=function(c){return m.exec(c).slice(1)[3]};
48
+ var f="b"==="ab".substr(-1)?function(c,l,q){return c.substr(l,q)}:function(c,l,q){0>l&&(l=c.length+l);return c.substr(l,q)}}).call(this,C("g5I+bs"))},{"g5I+bs":9}],9:[function(C,J,A){function e(){}C=J.exports={};C.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(t){return window.setImmediate(t)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var p=[];window.addEventListener("message",function(t){var m=t.source;m!==window&&null!==
49
+ m||"process-tick"!==t.data||(t.stopPropagation(),0<p.length&&p.shift()())},!0);return function(t){p.push(t);window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}();C.title="browser";C.browser=!0;C.env={};C.argv=[];C.on=e;C.addListener=e;C.once=e;C.off=e;C.removeListener=e;C.removeAllListeners=e;C.emit=e;C.binding=function(p){throw Error("process.binding is not supported");};C.cwd=function(){return"/"};C.chdir=function(p){throw Error("process.chdir is not supported");}},{}],
50
+ 10:[function(C,J,A){function e(){this._array=[];this._set=m?new Map:Object.create(null)}var p=C("./util"),t=Object.prototype.hasOwnProperty,m="undefined"!==typeof Map;e.fromArray=function(f,c){for(var l=new e,q=0,r=f.length;q<r;q++)l.add(f[q],c);return l};e.prototype.size=function(){return m?this._set.size:Object.getOwnPropertyNames(this._set).length};e.prototype.add=function(f,c){var l=m?f:p.toSetString(f),q=m?this.has(f):t.call(this._set,l),r=this._array.length;q&&!c||this._array.push(f);q||(m?
51
+ this._set.set(f,r):this._set[l]=r)};e.prototype.has=function(f){if(m)return this._set.has(f);f=p.toSetString(f);return t.call(this._set,f)};e.prototype.indexOf=function(f){if(m){var c=this._set.get(f);if(0<=c)return c}else if(c=p.toSetString(f),t.call(this._set,c))return this._set[c];throw Error('"'+f+'" is not in the set.');};e.prototype.at=function(f){if(0<=f&&f<this._array.length)return this._array[f];throw Error("No element indexed by "+f);};e.prototype.toArray=function(){return this._array.slice()};
52
+ A.ArraySet=e},{"./util":19}],11:[function(C,J,A){var e=C("./base64");A.encode=function(p){var t="",m=0>p?(-p<<1)+1:p<<1;do p=m&31,m>>>=5,0<m&&(p|=32),t+=e.encode(p);while(0<m);return t};A.decode=function(p,t,m){var f=p.length,c=0,l=0;do{if(t>=f)throw Error("Expected more digits in base 64 VLQ value.");var q=e.decode(p.charCodeAt(t++));if(-1===q)throw Error("Invalid base64 digit: "+p.charAt(t-1));var r=!!(q&32);q&=31;c+=q<<l;l+=5}while(r);p=c>>1;m.value=1===(c&1)?-p:p;m.rest=t}},{"./base64":12}],12:[function(C,
53
+ J,A){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");A.encode=function(p){if(0<=p&&p<e.length)return e[p];throw new TypeError("Must be between 0 and 63: "+p);};A.decode=function(p){return 65<=p&&90>=p?p-65:97<=p&&122>=p?p-97+26:48<=p&&57>=p?p-48+52:43==p?62:47==p?63:-1}},{}],13:[function(C,J,A){function e(p,t,m,f,c,l){var q=Math.floor((t-p)/2)+p,r=c(m,f[q],!0);return 0===r?q:0<r?1<t-q?e(q,t,m,f,c,l):l==A.LEAST_UPPER_BOUND?t<f.length?t:-1:q:1<q-p?e(p,q,m,f,c,l):l==
54
+ A.LEAST_UPPER_BOUND?q:0>p?-1:p}A.GREATEST_LOWER_BOUND=1;A.LEAST_UPPER_BOUND=2;A.search=function(p,t,m,f){if(0===t.length)return-1;p=e(-1,t.length,p,t,m,f||A.GREATEST_LOWER_BOUND);if(0>p)return-1;for(;0<=p-1&&0===m(t[p],t[p-1],!0);)--p;return p}},{}],14:[function(C,J,A){function e(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var p=C("./util");e.prototype.unsortedForEach=function(t,m){this._array.forEach(t,m)};e.prototype.add=function(t){var m=this._last,f=m.generatedLine,
55
+ c=t.generatedLine,l=m.generatedColumn,q=t.generatedColumn;c>f||c==f&&q>=l||0>=p.compareByGeneratedPositionsInflated(m,t)?this._last=t:this._sorted=!1;this._array.push(t)};e.prototype.toArray=function(){this._sorted||(this._array.sort(p.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};A.MappingList=e},{"./util":19}],15:[function(C,J,A){function e(t,m,f){var c=t[m];t[m]=t[f];t[f]=c}function p(t,m,f,c){if(f<c){var l=f-1;e(t,Math.round(f+Math.random()*(c-f)),c);for(var q=t[c],
56
+ r=f;r<c;r++)0>=m(t[r],q)&&(l+=1,e(t,l,r));e(t,l+1,r);l+=1;p(t,m,f,l-1);p(t,m,l+1,c)}}A.quickSort=function(t,m){p(t,m,0,t.length-1)}},{}],16:[function(C,J,A){function e(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));return null!=d.sections?new m(d,u):new p(d,u)}function p(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version"),n=f.getArg(d,"sources"),v=f.getArg(d,"names",[]),z=f.getArg(d,"sourceRoot",null),G=f.getArg(d,"sourcesContent",null),D=f.getArg(d,
57
+ "mappings");d=f.getArg(d,"file",null);if(g!=this._version)throw Error("Unsupported version: "+g);z&&(z=f.normalize(z));n=n.map(String).map(f.normalize).map(function(L){return z&&f.isAbsolute(z)&&f.isAbsolute(L)?f.relative(z,L):L});this._names=l.fromArray(v.map(String),!0);this._sources=l.fromArray(n,!0);this.sourceRoot=z;this.sourcesContent=G;this._mappings=D;this._sourceMapURL=u;this.file=d}function t(){this.generatedColumn=this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=
58
+ null}function m(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version");d=f.getArg(d,"sections");if(g!=this._version)throw Error("Unsupported version: "+g);this._sources=new l;this._names=new l;var n={line:-1,column:0};this._sections=d.map(function(v){if(v.url)throw Error("Support for url field in sections not implemented.");var z=f.getArg(v,"offset"),G=f.getArg(z,"line"),D=f.getArg(z,"column");if(G<n.line||G===n.line&&D<n.column)throw Error("Section offsets must be ordered and non-overlapping.");
59
+ n=z;return{generatedOffset:{generatedLine:G+1,generatedColumn:D+1},consumer:new e(f.getArg(v,"map"),u)}})}var f=C("./util"),c=C("./binary-search"),l=C("./array-set").ArraySet,q=C("./base64-vlq"),r=C("./quick-sort").quickSort;e.fromSourceMap=function(k){return p.fromSourceMap(k)};e.prototype._version=3;e.prototype.__generatedMappings=null;Object.defineProperty(e.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){this.__generatedMappings||this._parseMappings(this._mappings,
60
+ this.sourceRoot);return this.__generatedMappings}});e.prototype.__originalMappings=null;Object.defineProperty(e.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});e.prototype._charIsMappingSeparator=function(k,u){var d=k.charAt(u);return";"===d||","===d};e.prototype._parseMappings=function(k,u){throw Error("Subclasses must implement _parseMappings");};e.GENERATED_ORDER=
61
+ 1;e.ORIGINAL_ORDER=2;e.GREATEST_LOWER_BOUND=1;e.LEAST_UPPER_BOUND=2;e.prototype.eachMapping=function(k,u,d){u=u||null;switch(d||e.GENERATED_ORDER){case e.GENERATED_ORDER:d=this._generatedMappings;break;case e.ORIGINAL_ORDER:d=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;d.map(function(n){var v=null===n.source?null:this._sources.at(n.source);v=f.computeSourceURL(g,v,this._sourceMapURL);return{source:v,generatedLine:n.generatedLine,generatedColumn:n.generatedColumn,
62
+ originalLine:n.originalLine,originalColumn:n.originalColumn,name:null===n.name?null:this._names.at(n.name)}},this).forEach(k,u)};e.prototype.allGeneratedPositionsFor=function(k){var u=f.getArg(k,"line"),d={source:f.getArg(k,"source"),originalLine:u,originalColumn:f.getArg(k,"column",0)};null!=this.sourceRoot&&(d.source=f.relative(this.sourceRoot,d.source));if(!this._sources.has(d.source))return[];d.source=this._sources.indexOf(d.source);var g=[];d=this._findMapping(d,this._originalMappings,"originalLine",
63
+ "originalColumn",f.compareByOriginalPositions,c.LEAST_UPPER_BOUND);if(0<=d){var n=this._originalMappings[d];if(void 0===k.column)for(u=n.originalLine;n&&n.originalLine===u;)g.push({line:f.getArg(n,"generatedLine",null),column:f.getArg(n,"generatedColumn",null),lastColumn:f.getArg(n,"lastGeneratedColumn",null)}),n=this._originalMappings[++d];else for(k=n.originalColumn;n&&n.originalLine===u&&n.originalColumn==k;)g.push({line:f.getArg(n,"generatedLine",null),column:f.getArg(n,"generatedColumn",null),
64
+ lastColumn:f.getArg(n,"lastGeneratedColumn",null)}),n=this._originalMappings[++d]}return g};A.SourceMapConsumer=e;p.prototype=Object.create(e.prototype);p.prototype.consumer=e;p.fromSourceMap=function(k,u){var d=Object.create(p.prototype),g=d._names=l.fromArray(k._names.toArray(),!0),n=d._sources=l.fromArray(k._sources.toArray(),!0);d.sourceRoot=k._sourceRoot;d.sourcesContent=k._generateSourcesContent(d._sources.toArray(),d.sourceRoot);d.file=k._file;d._sourceMapURL=u;for(var v=k._mappings.toArray().slice(),
65
+ z=d.__generatedMappings=[],G=d.__originalMappings=[],D=0,L=v.length;D<L;D++){var a=v[D],b=new t;b.generatedLine=a.generatedLine;b.generatedColumn=a.generatedColumn;a.source&&(b.source=n.indexOf(a.source),b.originalLine=a.originalLine,b.originalColumn=a.originalColumn,a.name&&(b.name=g.indexOf(a.name)),G.push(b));z.push(b)}r(d.__originalMappings,f.compareByOriginalPositions);return d};p.prototype._version=3;Object.defineProperty(p.prototype,"sources",{get:function(){return this._sources.toArray().map(function(k){return f.computeSourceURL(this.sourceRoot,
66
+ k,this._sourceMapURL)},this)}});p.prototype._parseMappings=function(k,u){for(var d=1,g=0,n=0,v=0,z=0,G=0,D=k.length,L=0,a={},b={},h=[],w=[],y,I,K,N,P;L<D;)if(";"===k.charAt(L))d++,L++,g=0;else if(","===k.charAt(L))L++;else{y=new t;y.generatedLine=d;for(N=L;N<D&&!this._charIsMappingSeparator(k,N);N++);I=k.slice(L,N);if(K=a[I])L+=I.length;else{for(K=[];L<N;)q.decode(k,L,b),P=b.value,L=b.rest,K.push(P);if(2===K.length)throw Error("Found a source, but no line and column");if(3===K.length)throw Error("Found a source and line, but no column");
67
+ a[I]=K}y.generatedColumn=g+K[0];g=y.generatedColumn;1<K.length&&(y.source=z+K[1],z+=K[1],y.originalLine=n+K[2],n=y.originalLine,y.originalLine+=1,y.originalColumn=v+K[3],v=y.originalColumn,4<K.length&&(y.name=G+K[4],G+=K[4]));w.push(y);"number"===typeof y.originalLine&&h.push(y)}r(w,f.compareByGeneratedPositionsDeflated);this.__generatedMappings=w;r(h,f.compareByOriginalPositions);this.__originalMappings=h};p.prototype._findMapping=function(k,u,d,g,n,v){if(0>=k[d])throw new TypeError("Line must be greater than or equal to 1, got "+
68
+ k[d]);if(0>k[g])throw new TypeError("Column must be greater than or equal to 0, got "+k[g]);return c.search(k,u,n,v)};p.prototype.computeColumnSpans=function(){for(var k=0;k<this._generatedMappings.length;++k){var u=this._generatedMappings[k];if(k+1<this._generatedMappings.length){var d=this._generatedMappings[k+1];if(u.generatedLine===d.generatedLine){u.lastGeneratedColumn=d.generatedColumn-1;continue}}u.lastGeneratedColumn=Infinity}};p.prototype.originalPositionFor=function(k){var u={generatedLine:f.getArg(k,
69
+ "line"),generatedColumn:f.getArg(k,"column")};k=this._findMapping(u,this._generatedMappings,"generatedLine","generatedColumn",f.compareByGeneratedPositionsDeflated,f.getArg(k,"bias",e.GREATEST_LOWER_BOUND));if(0<=k&&(k=this._generatedMappings[k],k.generatedLine===u.generatedLine)){u=f.getArg(k,"source",null);null!==u&&(u=this._sources.at(u),u=f.computeSourceURL(this.sourceRoot,u,this._sourceMapURL));var d=f.getArg(k,"name",null);null!==d&&(d=this._names.at(d));return{source:u,line:f.getArg(k,"originalLine",
70
+ null),column:f.getArg(k,"originalColumn",null),name:d}}return{source:null,line:null,column:null,name:null}};p.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(k){return null==k}):!1};p.prototype.sourceContentFor=function(k,u){if(!this.sourcesContent)return null;var d=k;null!=this.sourceRoot&&(d=f.relative(this.sourceRoot,d));if(this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];
71
+ var g=this.sources,n;for(n=0;n<g.length;++n)if(g[n]==k)return this.sourcesContent[n];var v;if(null!=this.sourceRoot&&(v=f.urlParse(this.sourceRoot))){g=d.replace(/^file:\/\//,"");if("file"==v.scheme&&this._sources.has(g))return this.sourcesContent[this._sources.indexOf(g)];if((!v.path||"/"==v.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(u)return null;throw Error('"'+d+'" is not in the SourceMap.');};p.prototype.generatedPositionFor=function(k){var u=
72
+ f.getArg(k,"source");null!=this.sourceRoot&&(u=f.relative(this.sourceRoot,u));if(!this._sources.has(u))return{line:null,column:null,lastColumn:null};u=this._sources.indexOf(u);u={source:u,originalLine:f.getArg(k,"line"),originalColumn:f.getArg(k,"column")};k=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,f.getArg(k,"bias",e.GREATEST_LOWER_BOUND));return 0<=k&&(k=this._originalMappings[k],k.source===u.source)?{line:f.getArg(k,"generatedLine",
73
+ null),column:f.getArg(k,"generatedColumn",null),lastColumn:f.getArg(k,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null}};A.BasicSourceMapConsumer=p;m.prototype=Object.create(e.prototype);m.prototype.constructor=e;m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:function(){for(var k=[],u=0;u<this._sections.length;u++)for(var d=0;d<this._sections[u].consumer.sources.length;d++)k.push(this._sections[u].consumer.sources[d]);return k}});m.prototype.originalPositionFor=
74
+ function(k){var u={generatedLine:f.getArg(k,"line"),generatedColumn:f.getArg(k,"column")},d=c.search(u,this._sections,function(g,n){var v=g.generatedLine-n.generatedOffset.generatedLine;return v?v:g.generatedColumn-n.generatedOffset.generatedColumn});return(d=this._sections[d])?d.consumer.originalPositionFor({line:u.generatedLine-(d.generatedOffset.generatedLine-1),column:u.generatedColumn-(d.generatedOffset.generatedLine===u.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:k.bias}):{source:null,
75
+ line:null,column:null,name:null}};m.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(k){return k.consumer.hasContentsOfAllSources()})};m.prototype.sourceContentFor=function(k,u){for(var d=0;d<this._sections.length;d++){var g=this._sections[d].consumer.sourceContentFor(k,!0);if(g)return g}if(u)return null;throw Error('"'+k+'" is not in the SourceMap.');};m.prototype.generatedPositionFor=function(k){for(var u=0;u<this._sections.length;u++){var d=this._sections[u];if(-1!==
76
+ d.consumer.sources.indexOf(f.getArg(k,"source"))){var g=d.consumer.generatedPositionFor(k);if(g)return{line:g.line+(d.generatedOffset.generatedLine-1),column:g.column+(d.generatedOffset.generatedLine===g.line?d.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}};m.prototype._parseMappings=function(k,u){this.__generatedMappings=[];this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var g=this._sections[d],n=g.consumer._generatedMappings,v=0;v<n.length;v++){var z=
77
+ n[v],G=g.consumer._sources.at(z.source);G=f.computeSourceURL(g.consumer.sourceRoot,G,this._sourceMapURL);this._sources.add(G);G=this._sources.indexOf(G);var D=null;z.name&&(D=g.consumer._names.at(z.name),this._names.add(D),D=this._names.indexOf(D));z={source:G,generatedLine:z.generatedLine+(g.generatedOffset.generatedLine-1),generatedColumn:z.generatedColumn+(g.generatedOffset.generatedLine===z.generatedLine?g.generatedOffset.generatedColumn-1:0),originalLine:z.originalLine,originalColumn:z.originalColumn,
78
+ name:D};this.__generatedMappings.push(z);"number"===typeof z.originalLine&&this.__originalMappings.push(z)}r(this.__generatedMappings,f.compareByGeneratedPositionsDeflated);r(this.__originalMappings,f.compareByOriginalPositions)};A.IndexedSourceMapConsumer=m},{"./array-set":10,"./base64-vlq":11,"./binary-search":13,"./quick-sort":15,"./util":19}],17:[function(C,J,A){function e(c){c||(c={});this._file=t.getArg(c,"file",null);this._sourceRoot=t.getArg(c,"sourceRoot",null);this._skipValidation=t.getArg(c,
79
+ "skipValidation",!1);this._sources=new m;this._names=new m;this._mappings=new f;this._sourcesContents=null}var p=C("./base64-vlq"),t=C("./util"),m=C("./array-set").ArraySet,f=C("./mapping-list").MappingList;e.prototype._version=3;e.fromSourceMap=function(c){var l=c.sourceRoot,q=new e({file:c.file,sourceRoot:l});c.eachMapping(function(r){var k={generated:{line:r.generatedLine,column:r.generatedColumn}};null!=r.source&&(k.source=r.source,null!=l&&(k.source=t.relative(l,k.source)),k.original={line:r.originalLine,
80
+ column:r.originalColumn},null!=r.name&&(k.name=r.name));q.addMapping(k)});c.sources.forEach(function(r){var k=r;null!==l&&(k=t.relative(l,r));q._sources.has(k)||q._sources.add(k);k=c.sourceContentFor(r);null!=k&&q.setSourceContent(r,k)});return q};e.prototype.addMapping=function(c){var l=t.getArg(c,"generated"),q=t.getArg(c,"original",null),r=t.getArg(c,"source",null);c=t.getArg(c,"name",null);this._skipValidation||this._validateMapping(l,q,r,c);null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r));
81
+ null!=c&&(c=String(c),this._names.has(c)||this._names.add(c));this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:null!=q&&q.line,originalColumn:null!=q&&q.column,source:r,name:c})};e.prototype.setSourceContent=function(c,l){var q=c;null!=this._sourceRoot&&(q=t.relative(this._sourceRoot,q));null!=l?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(q)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(q)],
82
+ 0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};e.prototype.applySourceMap=function(c,l,q){var r=l;if(null==l){if(null==c.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=c.file}var k=this._sourceRoot;null!=k&&(r=t.relative(k,r));var u=new m,d=new m;this._mappings.unsortedForEach(function(g){if(g.source===r&&null!=g.originalLine){var n=c.originalPositionFor({line:g.originalLine,
83
+ column:g.originalColumn});null!=n.source&&(g.source=n.source,null!=q&&(g.source=t.join(q,g.source)),null!=k&&(g.source=t.relative(k,g.source)),g.originalLine=n.line,g.originalColumn=n.column,null!=n.name&&(g.name=n.name))}n=g.source;null==n||u.has(n)||u.add(n);g=g.name;null==g||d.has(g)||d.add(g)},this);this._sources=u;this._names=d;c.sources.forEach(function(g){var n=c.sourceContentFor(g);null!=n&&(null!=q&&(g=t.join(q,g)),null!=k&&(g=t.relative(k,g)),this.setSourceContent(g,n))},this)};e.prototype._validateMapping=
84
+ function(c,l,q,r){if(l&&"number"!==typeof l.line&&"number"!==typeof l.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!l&&!q&&!r||c&&"line"in c&&"column"in c&&l&&"line"in l&&"column"in l&&0<c.line&&0<=c.column&&0<l.line&&0<=l.column&&
85
+ q))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:q,original:l,name:r}));};e.prototype._serializeMappings=function(){for(var c=0,l=1,q=0,r=0,k=0,u=0,d="",g,n,v,z=this._mappings.toArray(),G=0,D=z.length;G<D;G++){n=z[G];g="";if(n.generatedLine!==l)for(c=0;n.generatedLine!==l;)g+=";",l++;else if(0<G){if(!t.compareByGeneratedPositionsInflated(n,z[G-1]))continue;g+=","}g+=p.encode(n.generatedColumn-c);c=n.generatedColumn;null!=n.source&&(v=this._sources.indexOf(n.source),g+=p.encode(v-
86
+ u),u=v,g+=p.encode(n.originalLine-1-r),r=n.originalLine-1,g+=p.encode(n.originalColumn-q),q=n.originalColumn,null!=n.name&&(n=this._names.indexOf(n.name),g+=p.encode(n-k),k=n));d+=g}return d};e.prototype._generateSourcesContent=function(c,l){return c.map(function(q){if(!this._sourcesContents)return null;null!=l&&(q=t.relative(l,q));q=t.toSetString(q);return Object.prototype.hasOwnProperty.call(this._sourcesContents,q)?this._sourcesContents[q]:null},this)};e.prototype.toJSON=function(){var c={version:this._version,
87
+ sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};null!=this._file&&(c.file=this._file);null!=this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot));return c};e.prototype.toString=function(){return JSON.stringify(this.toJSON())};A.SourceMapGenerator=e},{"./array-set":10,"./base64-vlq":11,"./mapping-list":14,"./util":19}],18:[function(C,J,A){function e(f,c,l,q,r){this.children=
88
+ [];this.sourceContents={};this.line=null==f?null:f;this.column=null==c?null:c;this.source=null==l?null:l;this.name=null==r?null:r;this.$$$isSourceNode$$$=!0;null!=q&&this.add(q)}var p=C("./source-map-generator").SourceMapGenerator,t=C("./util"),m=/(\r?\n)/;e.fromStringWithSourceMap=function(f,c,l){function q(z,G){if(null===z||void 0===z.source)r.add(G);else{var D=l?t.join(l,z.source):z.source;r.add(new e(z.originalLine,z.originalColumn,D,G,z.name))}}var r=new e,k=f.split(m),u=0,d=function(){var z=
89
+ u<k.length?k[u++]:void 0,G=(u<k.length?k[u++]:void 0)||"";return z+G},g=1,n=0,v=null;c.eachMapping(function(z){if(null!==v)if(g<z.generatedLine)q(v,d()),g++,n=0;else{var G=k[u]||"",D=G.substr(0,z.generatedColumn-n);k[u]=G.substr(z.generatedColumn-n);n=z.generatedColumn;q(v,D);v=z;return}for(;g<z.generatedLine;)r.add(d()),g++;n<z.generatedColumn&&(G=k[u]||"",r.add(G.substr(0,z.generatedColumn)),k[u]=G.substr(z.generatedColumn),n=z.generatedColumn);v=z},this);u<k.length&&(v&&q(v,d()),r.add(k.splice(u).join("")));
90
+ c.sources.forEach(function(z){var G=c.sourceContentFor(z);null!=G&&(null!=l&&(z=t.join(l,z)),r.setSourceContent(z,G))});return r};e.prototype.add=function(f){if(Array.isArray(f))f.forEach(function(c){this.add(c)},this);else if(f.$$$isSourceNode$$$||"string"===typeof f)f&&this.children.push(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};e.prototype.prepend=function(f){if(Array.isArray(f))for(var c=f.length-1;0<=c;c--)this.prepend(f[c]);
91
+ else if(f.$$$isSourceNode$$$||"string"===typeof f)this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};e.prototype.walk=function(f){for(var c,l=0,q=this.children.length;l<q;l++)c=this.children[l],c.$$$isSourceNode$$$?c.walk(f):""!==c&&f(c,{source:this.source,line:this.line,column:this.column,name:this.name})};e.prototype.join=function(f){var c,l=this.children.length;if(0<l){var q=[];for(c=0;c<l-1;c++)q.push(this.children[c]),
92
+ q.push(f);q.push(this.children[c]);this.children=q}return this};e.prototype.replaceRight=function(f,c){var l=this.children[this.children.length-1];l.$$$isSourceNode$$$?l.replaceRight(f,c):"string"===typeof l?this.children[this.children.length-1]=l.replace(f,c):this.children.push("".replace(f,c));return this};e.prototype.setSourceContent=function(f,c){this.sourceContents[t.toSetString(f)]=c};e.prototype.walkSourceContents=function(f){for(var c=0,l=this.children.length;c<l;c++)this.children[c].$$$isSourceNode$$$&&
93
+ this.children[c].walkSourceContents(f);var q=Object.keys(this.sourceContents);c=0;for(l=q.length;c<l;c++)f(t.fromSetString(q[c]),this.sourceContents[q[c]])};e.prototype.toString=function(){var f="";this.walk(function(c){f+=c});return f};e.prototype.toStringWithSourceMap=function(f){var c="",l=1,q=0,r=new p(f),k=!1,u=null,d=null,g=null,n=null;this.walk(function(v,z){c+=v;null!==z.source&&null!==z.line&&null!==z.column?(u===z.source&&d===z.line&&g===z.column&&n===z.name||r.addMapping({source:z.source,
94
+ original:{line:z.line,column:z.column},generated:{line:l,column:q},name:z.name}),u=z.source,d=z.line,g=z.column,n=z.name,k=!0):k&&(r.addMapping({generated:{line:l,column:q}}),u=null,k=!1);for(var G=0,D=v.length;G<D;G++)10===v.charCodeAt(G)?(l++,q=0,G+1===D?(u=null,k=!1):k&&r.addMapping({source:z.source,original:{line:z.line,column:z.column},generated:{line:l,column:q},name:z.name})):q++});this.walkSourceContents(function(v,z){r.setSourceContent(v,z)});return{code:c,map:r}};A.SourceNode=e},{"./source-map-generator":17,
95
+ "./util":19}],19:[function(C,J,A){function e(d){return(d=d.match(k))?{scheme:d[1],auth:d[2],host:d[3],port:d[4],path:d[5]}:null}function p(d){var g="";d.scheme&&(g+=d.scheme+":");g+="//";d.auth&&(g+=d.auth+"@");d.host&&(g+=d.host);d.port&&(g+=":"+d.port);d.path&&(g+=d.path);return g}function t(d){var g=d,n=e(d);if(n){if(!n.path)return d;g=n.path}d=A.isAbsolute(g);g=g.split(/\/+/);for(var v,z=0,G=g.length-1;0<=G;G--)v=g[G],"."===v?g.splice(G,1):".."===v?z++:0<z&&(""===v?(g.splice(G+1,z),z=0):(g.splice(G,
96
+ 2),z--));g=g.join("/");""===g&&(g=d?"/":".");return n?(n.path=g,p(n)):g}function m(d,g){""===d&&(d=".");""===g&&(g=".");var n=e(g),v=e(d);v&&(d=v.path||"/");if(n&&!n.scheme)return v&&(n.scheme=v.scheme),p(n);if(n||g.match(u))return g;if(v&&!v.host&&!v.path)return v.host=g,p(v);n="/"===g.charAt(0)?g:t(d.replace(/\/+$/,"")+"/"+g);return v?(v.path=n,p(v)):n}function f(d){return d}function c(d){return q(d)?"$"+d:d}function l(d){return q(d)?d.slice(1):d}function q(d){if(!d)return!1;var g=d.length;if(9>
97
+ g||95!==d.charCodeAt(g-1)||95!==d.charCodeAt(g-2)||111!==d.charCodeAt(g-3)||116!==d.charCodeAt(g-4)||111!==d.charCodeAt(g-5)||114!==d.charCodeAt(g-6)||112!==d.charCodeAt(g-7)||95!==d.charCodeAt(g-8)||95!==d.charCodeAt(g-9))return!1;for(g-=10;0<=g;g--)if(36!==d.charCodeAt(g))return!1;return!0}function r(d,g){return d===g?0:null===d?1:null===g?-1:d>g?1:-1}A.getArg=function(d,g,n){if(g in d)return d[g];if(3===arguments.length)return n;throw Error('"'+g+'" is a required argument.');};var k=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,
98
+ u=/^data:.+,.+$/;A.urlParse=e;A.urlGenerate=p;A.normalize=t;A.join=m;A.isAbsolute=function(d){return"/"===d.charAt(0)||k.test(d)};A.relative=function(d,g){""===d&&(d=".");d=d.replace(/\/$/,"");for(var n=0;0!==g.indexOf(d+"/");){var v=d.lastIndexOf("/");if(0>v)return g;d=d.slice(0,v);if(d.match(/^([^\/]+:\/)?\/*$/))return g;++n}return Array(n+1).join("../")+g.substr(d.length+1)};C=!("__proto__"in Object.create(null));A.toSetString=C?f:c;A.fromSetString=C?f:l;A.compareByOriginalPositions=function(d,
99
+ g,n){var v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;if(0!==v||n)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v)return v;v=d.generatedLine-g.generatedLine;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsDeflated=function(d,g,n){var v=d.generatedLine-g.generatedLine;if(0!==v)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v||n)return v;v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-
100
+ g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsInflated=function(d,g){var n=d.generatedLine-g.generatedLine;if(0!==n)return n;n=d.generatedColumn-g.generatedColumn;if(0!==n)return n;n=r(d.source,g.source);if(0!==n)return n;n=d.originalLine-g.originalLine;if(0!==n)return n;n=d.originalColumn-g.originalColumn;return 0!==n?n:r(d.name,g.name)};A.parseSourceMapInput=function(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/,
101
+ ""))};A.computeSourceURL=function(d,g,n){g=g||"";d&&("/"!==d[d.length-1]&&"/"!==g[0]&&(d+="/"),g=d+g);if(n){d=e(n);if(!d)throw Error("sourceMapURL could not be parsed");d.path&&(n=d.path.lastIndexOf("/"),0<=n&&(d.path=d.path.substring(0,n+1)));g=m(p(d),g)}return t(g)}},{}],20:[function(C,J,A){A.SourceMapGenerator=C("./lib/source-map-generator").SourceMapGenerator;A.SourceMapConsumer=C("./lib/source-map-consumer").SourceMapConsumer;A.SourceNode=C("./lib/source-node").SourceNode},{"./lib/source-map-consumer":16,
102
+ "./lib/source-map-generator":17,"./lib/source-node":18}],21:[function(C,J,A){(function(e){function p(){return"browser"===a?!0:"node"===a?!1:"undefined"!==typeof window&&"function"===typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function t(x){return function(B){for(var F=0;F<x.length;F++){var E=x[F](B);if(E)return E}return null}}function m(x,B){if(!x)return B;var F=n.dirname(x),E=/^\w+:\/\/[^\/]*/.exec(F);E=E?E[0]:"";var H=F.slice(E.length);
103
+ return E&&/^\/\w:/.test(H)?(E+="/",E+n.resolve(F.slice(E.length),B).replace(/\\/g,"/")):E+n.resolve(F.slice(E.length),B)}function f(x){var B=h[x.source];if(!B){var F=N(x.source);F?(B=h[x.source]={url:F.url,map:new g(F.map)},B.map.sourcesContent&&B.map.sources.forEach(function(E,H){var M=B.map.sourcesContent[H];if(M){var S=m(B.url,E);b[S]=M}})):B=h[x.source]={url:null,map:null}}return B&&B.map&&"function"===typeof B.map.originalPositionFor&&(F=B.map.originalPositionFor(x),null!==F.source)?(F.source=
104
+ m(B.url,F.source),F):x}function c(x){var B=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(x);return B?(x=f({source:B[2],line:+B[3],column:B[4]-1}),"eval at "+B[1]+" ("+x.source+":"+x.line+":"+(x.column+1)+")"):(B=/^eval at ([^(]+) \((.+)\)$/.exec(x))?"eval at "+B[1]+" ("+c(B[2])+")":x}function l(){var x="";if(this.isNative())x="native";else{var B=this.getScriptNameOrSourceURL();!B&&this.isEval()&&(x=this.getEvalOrigin(),x+=", ");x=B?x+B:x+"<anonymous>";B=this.getLineNumber();null!=B&&(x+=":"+B,(B=
105
+ this.getColumnNumber())&&(x+=":"+B))}B="";var F=this.getFunctionName(),E=!0,H=this.isConstructor();if(this.isToplevel()||H)H?B+="new "+(F||"<anonymous>"):F?B+=F:(B+=x,E=!1);else{H=this.getTypeName();"[object Object]"===H&&(H="null");var M=this.getMethodName();F?(H&&0!=F.indexOf(H)&&(B+=H+"."),B+=F,M&&F.indexOf("."+M)!=F.length-M.length-1&&(B+=" [as "+M+"]")):B+=H+"."+(M||"<anonymous>")}E&&(B+=" ("+x+")");return B}function q(x){var B={};Object.getOwnPropertyNames(Object.getPrototypeOf(x)).forEach(function(F){B[F]=
106
+ /^(?:is|get)/.test(F)?function(){return x[F].call(x)}:x[F]});B.toString=l;return B}function r(x,B){void 0===B&&(B={nextPosition:null,curPosition:null});if(x.isNative())return B.curPosition=null,x;var F=x.getFileName()||x.getScriptNameOrSourceURL();if(F){var E=x.getLineNumber(),H=x.getColumnNumber()-1,M=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,S=M.test;var V="object"===typeof e&&null!==e?e.version:"";M=S.call(M,V)?0:62;1===E&&H>M&&!p()&&!x.isEval()&&(H-=M);var O=
107
+ f({source:F,line:E,column:H});B.curPosition=O;x=q(x);var T=x.getFunctionName;x.getFunctionName=function(){return null==B.nextPosition?T():B.nextPosition.name||T()};x.getFileName=function(){return O.source};x.getLineNumber=function(){return O.line};x.getColumnNumber=function(){return O.column+1};x.getScriptNameOrSourceURL=function(){return O.source};return x}var Q=x.isEval()&&x.getEvalOrigin();Q&&(Q=c(Q),x=q(x),x.getEvalOrigin=function(){return Q});return x}function k(x,B){L&&(b={},h={});for(var F=
108
+ (x.name||"Error")+": "+(x.message||""),E={nextPosition:null,curPosition:null},H=[],M=B.length-1;0<=M;M--)H.push("\n at "+r(B[M],E)),E.nextPosition=E.curPosition;E.curPosition=E.nextPosition=null;return F+H.reverse().join("")}function u(x){var B=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(x.stack);if(B){x=B[1];var F=+B[2];B=+B[3];var E=b[x];if(!E&&v&&v.existsSync(x))try{E=v.readFileSync(x,"utf8")}catch(H){E=""}if(E&&(E=E.split(/(?:\r\n|\r|\n)/)[F-1]))return x+":"+F+"\n"+E+"\n"+Array(B).join(" ")+
109
+ "^"}return null}function d(){var x=e.emit;e.emit=function(B){if("uncaughtException"===B){var F=arguments[1]&&arguments[1].stack,E=0<this.listeners(B).length;if(F&&!E){F=arguments[1];E=u(F);var H="object"===typeof e&&null!==e?e.stderr:void 0;H&&H._handle&&H._handle.setBlocking&&H._handle.setBlocking(!0);E&&(console.error(),console.error(E));console.error(F.stack);"object"===typeof e&&null!==e&&"function"===typeof e.exit&&e.exit(1);return}}return x.apply(this,arguments)}}var g=C("source-map").SourceMapConsumer,
110
+ n=C("path");try{var v=C("fs");v.existsSync&&v.readFileSync||(v=null)}catch(x){}var z=C("buffer-from"),G=!1,D=!1,L=!1,a="auto",b={},h={},w=/^data:application\/json[^,]+base64,/,y=[],I=[],K=t(y);y.push(function(x){x=x.trim();/^file:/.test(x)&&(x=x.replace(/file:\/\/\/(\w:)?/,function(E,H){return H?"":"/"}));if(x in b)return b[x];var B="";try{if(v)v.existsSync(x)&&(B=v.readFileSync(x,"utf8"));else{var F=new XMLHttpRequest;F.open("GET",x,!1);F.send(null);4===F.readyState&&200===F.status&&(B=F.responseText)}}catch(E){}return b[x]=
111
+ B});var N=t(I);I.push(function(x){a:{if(p())try{var B=new XMLHttpRequest;B.open("GET",x,!1);B.send(null);var F=B.getResponseHeader("SourceMap")||B.getResponseHeader("X-SourceMap");if(F){var E=F;break a}}catch(M){}E=K(x);B=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;for(var H;F=B.exec(E);)H=F;E=H?H[1]:null}if(!E)return null;w.test(E)?(H=E.slice(E.indexOf(",")+1),H=z(H,"base64").toString(),E=x):(E=m(x,E),H=K(E));return H?{url:E,
112
+ map:H}:null});var P=y.slice(0),W=I.slice(0);A.wrapCallSite=r;A.getErrorSource=u;A.mapSourcePosition=f;A.retrieveSourceMap=N;A.install=function(x){x=x||{};if(x.environment&&(a=x.environment,-1===["node","browser","auto"].indexOf(a)))throw Error("environment "+a+" was unknown. Available options are {auto, browser, node}");x.retrieveFile&&(x.overrideRetrieveFile&&(y.length=0),y.unshift(x.retrieveFile));x.retrieveSourceMap&&(x.overrideRetrieveSourceMap&&(I.length=0),I.unshift(x.retrieveSourceMap));if(x.hookRequire&&
113
+ !p()){var B=J.require("module"),F=B.prototype._compile;F.__sourceMapSupport||(B.prototype._compile=function(E,H){b[H]=E;h[H]=void 0;return F.call(this,E,H)},B.prototype._compile.__sourceMapSupport=!0)}L||(L="emptyCacheBetweenOperations"in x?x.emptyCacheBetweenOperations:!1);G||(G=!0,Error.prepareStackTrace=k);if(!D){x="handleUncaughtExceptions"in x?x.handleUncaughtExceptions:!0;try{!1===J.require("worker_threads").isMainThread&&(x=!1)}catch(E){}x&&"object"===typeof e&&null!==e&&"function"===typeof e.on&&
114
+ (D=!0,d())}};A.resetRetrieveHandlers=function(){y.length=0;I.length=0;y=P.slice(0);I=W.slice(0);N=t(I);K=t(y)}}).call(this,C("g5I+bs"))},{"buffer-from":4,fs:3,"g5I+bs":9,path:8,"source-map":20}]},{},[1]);return R});
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2022 Justin Ridgewell <justin@ridgewell.name>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/README.md ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # @jridgewell/trace-mapping
2
+
3
+ > Trace the original position through a source map
4
+
5
+ `trace-mapping` allows you to take the line and column of an output file and trace it to the
6
+ original location in the source file through a source map.
7
+
8
+ You may already be familiar with the [`source-map`][source-map] package's `SourceMapConsumer`. This
9
+ provides the same `originalPositionFor` and `generatedPositionFor` API, without requiring WASM.
10
+
11
+ ## Installation
12
+
13
+ ```sh
14
+ npm install @jridgewell/trace-mapping
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```typescript
20
+ import { TraceMap, originalPositionFor, generatedPositionFor } from '@jridgewell/trace-mapping';
21
+
22
+ const tracer = new TraceMap({
23
+ version: 3,
24
+ sources: ['input.js'],
25
+ names: ['foo'],
26
+ mappings: 'KAyCIA',
27
+ });
28
+
29
+ // Lines start at line 1, columns at column 0.
30
+ const traced = originalPositionFor(tracer, { line: 1, column: 5 });
31
+ assert.deepEqual(traced, {
32
+ source: 'input.js',
33
+ line: 42,
34
+ column: 4,
35
+ name: 'foo',
36
+ });
37
+
38
+ const generated = generatedPositionFor(tracer, {
39
+ source: 'input.js',
40
+ line: 42,
41
+ column: 4,
42
+ });
43
+ assert.deepEqual(generated, {
44
+ line: 1,
45
+ column: 5,
46
+ });
47
+ ```
48
+
49
+ We also provide a lower level API to get the actual segment that matches our line and column. Unlike
50
+ `originalPositionFor`, `traceSegment` uses a 0-base for `line`:
51
+
52
+ ```typescript
53
+ import { traceSegment } from '@jridgewell/trace-mapping';
54
+
55
+ // line is 0-base.
56
+ const traced = traceSegment(tracer, /* line */ 0, /* column */ 5);
57
+
58
+ // Segments are [outputColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]
59
+ // Again, line is 0-base and so is sourceLine
60
+ assert.deepEqual(traced, [5, 0, 41, 4, 0]);
61
+ ```
62
+
63
+ ### SectionedSourceMaps
64
+
65
+ The sourcemap spec defines a special `sections` field that's designed to handle concatenation of
66
+ output code with associated sourcemaps. This type of sourcemap is rarely used (no major build tool
67
+ produces it), but if you are hand coding a concatenation you may need it. We provide an `AnyMap`
68
+ helper that can receive either a regular sourcemap or a `SectionedSourceMap` and returns a
69
+ `TraceMap` instance:
70
+
71
+ ```typescript
72
+ import { AnyMap } from '@jridgewell/trace-mapping';
73
+ const fooOutput = 'foo';
74
+ const barOutput = 'bar';
75
+ const output = [fooOutput, barOutput].join('\n');
76
+
77
+ const sectioned = new AnyMap({
78
+ version: 3,
79
+ sections: [
80
+ {
81
+ // 0-base line and column
82
+ offset: { line: 0, column: 0 },
83
+ // fooOutput's sourcemap
84
+ map: {
85
+ version: 3,
86
+ sources: ['foo.js'],
87
+ names: ['foo'],
88
+ mappings: 'AAAAA',
89
+ },
90
+ },
91
+ {
92
+ // barOutput's sourcemap will not affect the first line, only the second
93
+ offset: { line: 1, column: 0 },
94
+ map: {
95
+ version: 3,
96
+ sources: ['bar.js'],
97
+ names: ['bar'],
98
+ mappings: 'AAAAA',
99
+ },
100
+ },
101
+ ],
102
+ });
103
+
104
+ const traced = originalPositionFor(sectioned, {
105
+ line: 2,
106
+ column: 0,
107
+ });
108
+
109
+ assert.deepEqual(traced, {
110
+ source: 'bar.js',
111
+ line: 1,
112
+ column: 0,
113
+ name: 'bar',
114
+ });
115
+ ```
116
+
117
+ ## Benchmarks
118
+
119
+ ```
120
+ node v18.0.0
121
+
122
+ amp.js.map
123
+ trace-mapping: decoded JSON input x 183 ops/sec ±0.41% (87 runs sampled)
124
+ trace-mapping: encoded JSON input x 384 ops/sec ±0.89% (89 runs sampled)
125
+ trace-mapping: decoded Object input x 3,085 ops/sec ±0.24% (100 runs sampled)
126
+ trace-mapping: encoded Object input x 452 ops/sec ±0.80% (84 runs sampled)
127
+ source-map-js: encoded Object input x 88.82 ops/sec ±0.45% (77 runs sampled)
128
+ source-map-0.6.1: encoded Object input x 38.39 ops/sec ±1.88% (52 runs sampled)
129
+ Fastest is trace-mapping: decoded Object input
130
+
131
+ trace-mapping: decoded originalPositionFor x 4,025,347 ops/sec ±0.15% (97 runs sampled)
132
+ trace-mapping: encoded originalPositionFor x 3,333,136 ops/sec ±1.26% (90 runs sampled)
133
+ source-map-js: encoded originalPositionFor x 824,978 ops/sec ±1.06% (94 runs sampled)
134
+ source-map-0.6.1: encoded originalPositionFor x 741,300 ops/sec ±0.93% (92 runs sampled)
135
+ source-map-0.8.0: encoded originalPositionFor x 2,587,603 ops/sec ±0.75% (97 runs sampled)
136
+ Fastest is trace-mapping: decoded originalPositionFor
137
+
138
+ ***
139
+
140
+ babel.min.js.map
141
+ trace-mapping: decoded JSON input x 17.43 ops/sec ±8.81% (33 runs sampled)
142
+ trace-mapping: encoded JSON input x 34.18 ops/sec ±4.67% (50 runs sampled)
143
+ trace-mapping: decoded Object input x 1,010 ops/sec ±0.41% (98 runs sampled)
144
+ trace-mapping: encoded Object input x 39.45 ops/sec ±4.01% (52 runs sampled)
145
+ source-map-js: encoded Object input x 6.57 ops/sec ±3.04% (21 runs sampled)
146
+ source-map-0.6.1: encoded Object input x 4.23 ops/sec ±2.93% (15 runs sampled)
147
+ Fastest is trace-mapping: decoded Object input
148
+
149
+ trace-mapping: decoded originalPositionFor x 7,576,265 ops/sec ±0.74% (96 runs sampled)
150
+ trace-mapping: encoded originalPositionFor x 5,019,743 ops/sec ±0.74% (94 runs sampled)
151
+ source-map-js: encoded originalPositionFor x 3,396,137 ops/sec ±42.32% (95 runs sampled)
152
+ source-map-0.6.1: encoded originalPositionFor x 3,753,176 ops/sec ±0.72% (95 runs sampled)
153
+ source-map-0.8.0: encoded originalPositionFor x 6,423,633 ops/sec ±0.74% (95 runs sampled)
154
+ Fastest is trace-mapping: decoded originalPositionFor
155
+
156
+ ***
157
+
158
+ preact.js.map
159
+ trace-mapping: decoded JSON input x 3,499 ops/sec ±0.18% (98 runs sampled)
160
+ trace-mapping: encoded JSON input x 6,078 ops/sec ±0.25% (99 runs sampled)
161
+ trace-mapping: decoded Object input x 254,788 ops/sec ±0.13% (100 runs sampled)
162
+ trace-mapping: encoded Object input x 14,063 ops/sec ±0.27% (94 runs sampled)
163
+ source-map-js: encoded Object input x 2,465 ops/sec ±0.25% (98 runs sampled)
164
+ source-map-0.6.1: encoded Object input x 1,174 ops/sec ±1.90% (95 runs sampled)
165
+ Fastest is trace-mapping: decoded Object input
166
+
167
+ trace-mapping: decoded originalPositionFor x 7,720,171 ops/sec ±0.14% (97 runs sampled)
168
+ trace-mapping: encoded originalPositionFor x 6,864,485 ops/sec ±0.16% (101 runs sampled)
169
+ source-map-js: encoded originalPositionFor x 2,387,219 ops/sec ±0.28% (98 runs sampled)
170
+ source-map-0.6.1: encoded originalPositionFor x 1,565,339 ops/sec ±0.32% (101 runs sampled)
171
+ source-map-0.8.0: encoded originalPositionFor x 3,819,732 ops/sec ±0.38% (98 runs sampled)
172
+ Fastest is trace-mapping: decoded originalPositionFor
173
+
174
+ ***
175
+
176
+ react.js.map
177
+ trace-mapping: decoded JSON input x 1,719 ops/sec ±0.19% (99 runs sampled)
178
+ trace-mapping: encoded JSON input x 4,284 ops/sec ±0.51% (99 runs sampled)
179
+ trace-mapping: decoded Object input x 94,668 ops/sec ±0.08% (99 runs sampled)
180
+ trace-mapping: encoded Object input x 5,287 ops/sec ±0.24% (99 runs sampled)
181
+ source-map-js: encoded Object input x 814 ops/sec ±0.20% (98 runs sampled)
182
+ source-map-0.6.1: encoded Object input x 429 ops/sec ±0.24% (94 runs sampled)
183
+ Fastest is trace-mapping: decoded Object input
184
+
185
+ trace-mapping: decoded originalPositionFor x 28,927,989 ops/sec ±0.61% (94 runs sampled)
186
+ trace-mapping: encoded originalPositionFor x 27,394,475 ops/sec ±0.55% (97 runs sampled)
187
+ source-map-js: encoded originalPositionFor x 16,856,730 ops/sec ±0.45% (96 runs sampled)
188
+ source-map-0.6.1: encoded originalPositionFor x 12,258,950 ops/sec ±0.41% (97 runs sampled)
189
+ source-map-0.8.0: encoded originalPositionFor x 22,272,990 ops/sec ±0.58% (95 runs sampled)
190
+ Fastest is trace-mapping: decoded originalPositionFor
191
+ ```
192
+
193
+ [source-map]: https://www.npmjs.com/package/source-map
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs ADDED
@@ -0,0 +1,514 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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from '@jridgewell/resolve-uri';
3
+
4
+ function resolve(input, base) {
5
+ // The base is always treated as a directory, if it's not empty.
6
+ // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327
7
+ // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401
8
+ if (base && !base.endsWith('/'))
9
+ base += '/';
10
+ return resolveUri(input, base);
11
+ }
12
+
13
+ /**
14
+ * Removes everything after the last "/", but leaves the slash.
15
+ */
16
+ function stripFilename(path) {
17
+ if (!path)
18
+ return '';
19
+ const index = path.lastIndexOf('/');
20
+ return path.slice(0, index + 1);
21
+ }
22
+
23
+ const COLUMN = 0;
24
+ const SOURCES_INDEX = 1;
25
+ const SOURCE_LINE = 2;
26
+ const SOURCE_COLUMN = 3;
27
+ const NAMES_INDEX = 4;
28
+ const REV_GENERATED_LINE = 1;
29
+ const REV_GENERATED_COLUMN = 2;
30
+
31
+ function maybeSort(mappings, owned) {
32
+ const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
33
+ if (unsortedIndex === mappings.length)
34
+ return mappings;
35
+ // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If
36
+ // not, we do not want to modify the consumer's input array.
37
+ if (!owned)
38
+ mappings = mappings.slice();
39
+ for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {
40
+ mappings[i] = sortSegments(mappings[i], owned);
41
+ }
42
+ return mappings;
43
+ }
44
+ function nextUnsortedSegmentLine(mappings, start) {
45
+ for (let i = start; i < mappings.length; i++) {
46
+ if (!isSorted(mappings[i]))
47
+ return i;
48
+ }
49
+ return mappings.length;
50
+ }
51
+ function isSorted(line) {
52
+ for (let j = 1; j < line.length; j++) {
53
+ if (line[j][COLUMN] < line[j - 1][COLUMN]) {
54
+ return false;
55
+ }
56
+ }
57
+ return true;
58
+ }
59
+ function sortSegments(line, owned) {
60
+ if (!owned)
61
+ line = line.slice();
62
+ return line.sort(sortComparator);
63
+ }
64
+ function sortComparator(a, b) {
65
+ return a[COLUMN] - b[COLUMN];
66
+ }
67
+
68
+ let found = false;
69
+ /**
70
+ * A binary search implementation that returns the index if a match is found.
71
+ * If no match is found, then the left-index (the index associated with the item that comes just
72
+ * before the desired index) is returned. To maintain proper sort order, a splice would happen at
73
+ * the next index:
74
+ *
75
+ * ```js
76
+ * const array = [1, 3];
77
+ * const needle = 2;
78
+ * const index = binarySearch(array, needle, (item, needle) => item - needle);
79
+ *
80
+ * assert.equal(index, 0);
81
+ * array.splice(index + 1, 0, needle);
82
+ * assert.deepEqual(array, [1, 2, 3]);
83
+ * ```
84
+ */
85
+ function binarySearch(haystack, needle, low, high) {
86
+ while (low <= high) {
87
+ const mid = low + ((high - low) >> 1);
88
+ const cmp = haystack[mid][COLUMN] - needle;
89
+ if (cmp === 0) {
90
+ found = true;
91
+ return mid;
92
+ }
93
+ if (cmp < 0) {
94
+ low = mid + 1;
95
+ }
96
+ else {
97
+ high = mid - 1;
98
+ }
99
+ }
100
+ found = false;
101
+ return low - 1;
102
+ }
103
+ function upperBound(haystack, needle, index) {
104
+ for (let i = index + 1; i < haystack.length; i++, index++) {
105
+ if (haystack[i][COLUMN] !== needle)
106
+ break;
107
+ }
108
+ return index;
109
+ }
110
+ function lowerBound(haystack, needle, index) {
111
+ for (let i = index - 1; i >= 0; i--, index--) {
112
+ if (haystack[i][COLUMN] !== needle)
113
+ break;
114
+ }
115
+ return index;
116
+ }
117
+ function memoizedState() {
118
+ return {
119
+ lastKey: -1,
120
+ lastNeedle: -1,
121
+ lastIndex: -1,
122
+ };
123
+ }
124
+ /**
125
+ * This overly complicated beast is just to record the last tested line/column and the resulting
126
+ * index, allowing us to skip a few tests if mappings are monotonically increasing.
127
+ */
128
+ function memoizedBinarySearch(haystack, needle, state, key) {
129
+ const { lastKey, lastNeedle, lastIndex } = state;
130
+ let low = 0;
131
+ let high = haystack.length - 1;
132
+ if (key === lastKey) {
133
+ if (needle === lastNeedle) {
134
+ found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
135
+ return lastIndex;
136
+ }
137
+ if (needle >= lastNeedle) {
138
+ // lastIndex may be -1 if the previous needle was not found.
139
+ low = lastIndex === -1 ? 0 : lastIndex;
140
+ }
141
+ else {
142
+ high = lastIndex;
143
+ }
144
+ }
145
+ state.lastKey = key;
146
+ state.lastNeedle = needle;
147
+ return (state.lastIndex = binarySearch(haystack, needle, low, high));
148
+ }
149
+
150
+ // Rebuilds the original source files, with mappings that are ordered by source line/column instead
151
+ // of generated line/column.
152
+ function buildBySources(decoded, memos) {
153
+ const sources = memos.map(buildNullArray);
154
+ for (let i = 0; i < decoded.length; i++) {
155
+ const line = decoded[i];
156
+ for (let j = 0; j < line.length; j++) {
157
+ const seg = line[j];
158
+ if (seg.length === 1)
159
+ continue;
160
+ const sourceIndex = seg[SOURCES_INDEX];
161
+ const sourceLine = seg[SOURCE_LINE];
162
+ const sourceColumn = seg[SOURCE_COLUMN];
163
+ const originalSource = sources[sourceIndex];
164
+ const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));
165
+ const memo = memos[sourceIndex];
166
+ // The binary search either found a match, or it found the left-index just before where the
167
+ // segment should go. Either way, we want to insert after that. And there may be multiple
168
+ // generated segments associated with an original location, so there may need to move several
169
+ // indexes before we find where we need to insert.
170
+ const index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));
171
+ insert(originalLine, (memo.lastIndex = index + 1), [sourceColumn, i, seg[COLUMN]]);
172
+ }
173
+ }
174
+ return sources;
175
+ }
176
+ function insert(array, index, value) {
177
+ for (let i = array.length; i > index; i--) {
178
+ array[i] = array[i - 1];
179
+ }
180
+ array[index] = value;
181
+ }
182
+ // Null arrays allow us to use ordered index keys without actually allocating contiguous memory like
183
+ // a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.
184
+ // Numeric properties on objects are magically sorted in ascending order by the engine regardless of
185
+ // the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending
186
+ // order when iterating with for-in.
187
+ function buildNullArray() {
188
+ return { __proto__: null };
189
+ }
190
+
191
+ const AnyMap = function (map, mapUrl) {
192
+ const parsed = typeof map === 'string' ? JSON.parse(map) : map;
193
+ if (!('sections' in parsed))
194
+ return new TraceMap(parsed, mapUrl);
195
+ const mappings = [];
196
+ const sources = [];
197
+ const sourcesContent = [];
198
+ const names = [];
199
+ const { sections } = parsed;
200
+ let i = 0;
201
+ for (; i < sections.length - 1; i++) {
202
+ const no = sections[i + 1].offset;
203
+ addSection(sections[i], mapUrl, mappings, sources, sourcesContent, names, no.line, no.column);
204
+ }
205
+ if (sections.length > 0) {
206
+ addSection(sections[i], mapUrl, mappings, sources, sourcesContent, names, Infinity, Infinity);
207
+ }
208
+ const joined = {
209
+ version: 3,
210
+ file: parsed.file,
211
+ names,
212
+ sources,
213
+ sourcesContent,
214
+ mappings,
215
+ };
216
+ return presortedDecodedMap(joined);
217
+ };
218
+ function addSection(section, mapUrl, mappings, sources, sourcesContent, names, stopLine, stopColumn) {
219
+ const map = AnyMap(section.map, mapUrl);
220
+ const { line: lineOffset, column: columnOffset } = section.offset;
221
+ const sourcesOffset = sources.length;
222
+ const namesOffset = names.length;
223
+ const decoded = decodedMappings(map);
224
+ const { resolvedSources } = map;
225
+ append(sources, resolvedSources);
226
+ append(sourcesContent, map.sourcesContent || fillSourcesContent(resolvedSources.length));
227
+ append(names, map.names);
228
+ // If this section jumps forwards several lines, we need to add lines to the output mappings catch up.
229
+ for (let i = mappings.length; i <= lineOffset; i++)
230
+ mappings.push([]);
231
+ // We can only add so many lines before we step into the range that the next section's map
232
+ // controls. When we get to the last line, then we'll start checking the segments to see if
233
+ // they've crossed into the column range.
234
+ const stopI = stopLine - lineOffset;
235
+ const len = Math.min(decoded.length, stopI + 1);
236
+ for (let i = 0; i < len; i++) {
237
+ const line = decoded[i];
238
+ // On the 0th loop, the line will already exist due to a previous section, or the line catch up
239
+ // loop above.
240
+ const out = i === 0 ? mappings[lineOffset] : (mappings[lineOffset + i] = []);
241
+ // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the
242
+ // map can be multiple lines), it doesn't.
243
+ const cOffset = i === 0 ? columnOffset : 0;
244
+ for (let j = 0; j < line.length; j++) {
245
+ const seg = line[j];
246
+ const column = cOffset + seg[COLUMN];
247
+ // If this segment steps into the column range that the next section's map controls, we need
248
+ // to stop early.
249
+ if (i === stopI && column >= stopColumn)
250
+ break;
251
+ if (seg.length === 1) {
252
+ out.push([column]);
253
+ continue;
254
+ }
255
+ const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];
256
+ const sourceLine = seg[SOURCE_LINE];
257
+ const sourceColumn = seg[SOURCE_COLUMN];
258
+ if (seg.length === 4) {
259
+ out.push([column, sourcesIndex, sourceLine, sourceColumn]);
260
+ continue;
261
+ }
262
+ out.push([column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]);
263
+ }
264
+ }
265
+ }
266
+ function append(arr, other) {
267
+ for (let i = 0; i < other.length; i++)
268
+ arr.push(other[i]);
269
+ }
270
+ // Sourcemaps don't need to have sourcesContent, and if they don't, we need to create an array of
271
+ // equal length to the sources. This is because the sources and sourcesContent are paired arrays,
272
+ // where `sourcesContent[i]` is the content of the `sources[i]` file. If we didn't, then joined
273
+ // sourcemap would desynchronize the sources/contents.
274
+ function fillSourcesContent(len) {
275
+ const sourcesContent = [];
276
+ for (let i = 0; i < len; i++)
277
+ sourcesContent[i] = null;
278
+ return sourcesContent;
279
+ }
280
+
281
+ const INVALID_ORIGINAL_MAPPING = Object.freeze({
282
+ source: null,
283
+ line: null,
284
+ column: null,
285
+ name: null,
286
+ });
287
+ const INVALID_GENERATED_MAPPING = Object.freeze({
288
+ line: null,
289
+ column: null,
290
+ });
291
+ const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';
292
+ const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';
293
+ const LEAST_UPPER_BOUND = -1;
294
+ const GREATEST_LOWER_BOUND = 1;
295
+ /**
296
+ * Returns the encoded (VLQ string) form of the SourceMap's mappings field.
297
+ */
298
+ let encodedMappings;
299
+ /**
300
+ * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
301
+ */
302
+ let decodedMappings;
303
+ /**
304
+ * A low-level API to find the segment associated with a generated line/column (think, from a
305
+ * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.
306
+ */
307
+ let traceSegment;
308
+ /**
309
+ * A higher-level API to find the source/line/column associated with a generated line/column
310
+ * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
311
+ * `source-map` library.
312
+ */
313
+ let originalPositionFor;
314
+ /**
315
+ * Finds the source/line/column directly after the mapping returned by originalPositionFor, provided
316
+ * the found mapping is from the same source and line as the originalPositionFor mapping.
317
+ *
318
+ * Eg, in the code `let id = 1`, `originalPositionAfter` could find the mapping associated with `1`
319
+ * using the same needle that would return `id` when calling `originalPositionFor`.
320
+ */
321
+ let generatedPositionFor;
322
+ /**
323
+ * Iterates each mapping in generated position order.
324
+ */
325
+ let eachMapping;
326
+ /**
327
+ * A helper that skips sorting of the input map's mappings array, which can be expensive for larger
328
+ * maps.
329
+ */
330
+ let presortedDecodedMap;
331
+ /**
332
+ * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
333
+ * a sourcemap, or to JSON.stringify.
334
+ */
335
+ let decodedMap;
336
+ /**
337
+ * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
338
+ * a sourcemap, or to JSON.stringify.
339
+ */
340
+ let encodedMap;
341
+ class TraceMap {
342
+ constructor(map, mapUrl) {
343
+ this._decodedMemo = memoizedState();
344
+ this._bySources = undefined;
345
+ this._bySourceMemos = undefined;
346
+ const isString = typeof map === 'string';
347
+ if (!isString && map.constructor === TraceMap)
348
+ return map;
349
+ const parsed = (isString ? JSON.parse(map) : map);
350
+ const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
351
+ this.version = version;
352
+ this.file = file;
353
+ this.names = names;
354
+ this.sourceRoot = sourceRoot;
355
+ this.sources = sources;
356
+ this.sourcesContent = sourcesContent;
357
+ if (sourceRoot || mapUrl) {
358
+ const from = resolve(sourceRoot || '', stripFilename(mapUrl));
359
+ this.resolvedSources = sources.map((s) => resolve(s || '', from));
360
+ }
361
+ else {
362
+ this.resolvedSources = sources.map((s) => s || '');
363
+ }
364
+ const { mappings } = parsed;
365
+ if (typeof mappings === 'string') {
366
+ this._encoded = mappings;
367
+ this._decoded = undefined;
368
+ }
369
+ else {
370
+ this._encoded = undefined;
371
+ this._decoded = maybeSort(mappings, isString);
372
+ }
373
+ }
374
+ }
375
+ (() => {
376
+ encodedMappings = (map) => {
377
+ var _a;
378
+ return ((_a = map._encoded) !== null && _a !== void 0 ? _a : (map._encoded = encode(map._decoded)));
379
+ };
380
+ decodedMappings = (map) => {
381
+ return (map._decoded || (map._decoded = decode(map._encoded)));
382
+ };
383
+ traceSegment = (map, line, column) => {
384
+ const decoded = decodedMappings(map);
385
+ // It's common for parent source maps to have pointers to lines that have no
386
+ // mapping (like a "//# sourceMappingURL=") at the end of the child file.
387
+ if (line >= decoded.length)
388
+ return null;
389
+ return traceSegmentInternal(decoded[line], map._decodedMemo, line, column, GREATEST_LOWER_BOUND);
390
+ };
391
+ originalPositionFor = (map, { line, column, bias }) => {
392
+ line--;
393
+ if (line < 0)
394
+ throw new Error(LINE_GTR_ZERO);
395
+ if (column < 0)
396
+ throw new Error(COL_GTR_EQ_ZERO);
397
+ const decoded = decodedMappings(map);
398
+ // It's common for parent source maps to have pointers to lines that have no
399
+ // mapping (like a "//# sourceMappingURL=") at the end of the child file.
400
+ if (line >= decoded.length)
401
+ return INVALID_ORIGINAL_MAPPING;
402
+ const segment = traceSegmentInternal(decoded[line], map._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
403
+ if (segment == null)
404
+ return INVALID_ORIGINAL_MAPPING;
405
+ if (segment.length == 1)
406
+ return INVALID_ORIGINAL_MAPPING;
407
+ const { names, resolvedSources } = map;
408
+ return {
409
+ source: resolvedSources[segment[SOURCES_INDEX]],
410
+ line: segment[SOURCE_LINE] + 1,
411
+ column: segment[SOURCE_COLUMN],
412
+ name: segment.length === 5 ? names[segment[NAMES_INDEX]] : null,
413
+ };
414
+ };
415
+ generatedPositionFor = (map, { source, line, column, bias }) => {
416
+ line--;
417
+ if (line < 0)
418
+ throw new Error(LINE_GTR_ZERO);
419
+ if (column < 0)
420
+ throw new Error(COL_GTR_EQ_ZERO);
421
+ const { sources, resolvedSources } = map;
422
+ let sourceIndex = sources.indexOf(source);
423
+ if (sourceIndex === -1)
424
+ sourceIndex = resolvedSources.indexOf(source);
425
+ if (sourceIndex === -1)
426
+ return INVALID_GENERATED_MAPPING;
427
+ const generated = (map._bySources || (map._bySources = buildBySources(decodedMappings(map), (map._bySourceMemos = sources.map(memoizedState)))));
428
+ const memos = map._bySourceMemos;
429
+ const segments = generated[sourceIndex][line];
430
+ if (segments == null)
431
+ return INVALID_GENERATED_MAPPING;
432
+ const segment = traceSegmentInternal(segments, memos[sourceIndex], line, column, bias || GREATEST_LOWER_BOUND);
433
+ if (segment == null)
434
+ return INVALID_GENERATED_MAPPING;
435
+ return {
436
+ line: segment[REV_GENERATED_LINE] + 1,
437
+ column: segment[REV_GENERATED_COLUMN],
438
+ };
439
+ };
440
+ eachMapping = (map, cb) => {
441
+ const decoded = decodedMappings(map);
442
+ const { names, resolvedSources } = map;
443
+ for (let i = 0; i < decoded.length; i++) {
444
+ const line = decoded[i];
445
+ for (let j = 0; j < line.length; j++) {
446
+ const seg = line[j];
447
+ const generatedLine = i + 1;
448
+ const generatedColumn = seg[0];
449
+ let source = null;
450
+ let originalLine = null;
451
+ let originalColumn = null;
452
+ let name = null;
453
+ if (seg.length !== 1) {
454
+ source = resolvedSources[seg[1]];
455
+ originalLine = seg[2] + 1;
456
+ originalColumn = seg[3];
457
+ }
458
+ if (seg.length === 5)
459
+ name = names[seg[4]];
460
+ cb({
461
+ generatedLine,
462
+ generatedColumn,
463
+ source,
464
+ originalLine,
465
+ originalColumn,
466
+ name,
467
+ });
468
+ }
469
+ }
470
+ };
471
+ presortedDecodedMap = (map, mapUrl) => {
472
+ const clone = Object.assign({}, map);
473
+ clone.mappings = [];
474
+ const tracer = new TraceMap(clone, mapUrl);
475
+ tracer._decoded = map.mappings;
476
+ return tracer;
477
+ };
478
+ decodedMap = (map) => {
479
+ return {
480
+ version: 3,
481
+ file: map.file,
482
+ names: map.names,
483
+ sourceRoot: map.sourceRoot,
484
+ sources: map.sources,
485
+ sourcesContent: map.sourcesContent,
486
+ mappings: decodedMappings(map),
487
+ };
488
+ };
489
+ encodedMap = (map) => {
490
+ return {
491
+ version: 3,
492
+ file: map.file,
493
+ names: map.names,
494
+ sourceRoot: map.sourceRoot,
495
+ sources: map.sources,
496
+ sourcesContent: map.sourcesContent,
497
+ mappings: encodedMappings(map),
498
+ };
499
+ };
500
+ })();
501
+ function traceSegmentInternal(segments, memo, line, column, bias) {
502
+ let index = memoizedBinarySearch(segments, column, memo, line);
503
+ if (found) {
504
+ index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
505
+ }
506
+ else if (bias === LEAST_UPPER_BOUND)
507
+ index++;
508
+ if (index === -1 || index === segments.length)
509
+ return null;
510
+ return segments[index];
511
+ }
512
+
513
+ export { AnyMap, GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap, decodedMap, decodedMappings, eachMapping, encodedMap, encodedMappings, generatedPositionFor, originalPositionFor, presortedDecodedMap, traceSegment };
514
+ //# sourceMappingURL=trace-mapping.mjs.map
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"trace-mapping.mjs","sources":["../../src/resolve.ts","../../src/strip-filename.ts","../../src/sourcemap-segment.ts","../../src/sort.ts","../../src/binary-search.ts","../../src/by-source.ts","../../src/any-map.ts","../../src/trace-map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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@jridgewell/sourcemap-codec'), require('@jridgewell/resolve-uri')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@jridgewell/sourcemap-codec', '@jridgewell/resolve-uri'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.traceMapping = {}, global.sourcemapCodec, global.resolveURI));
5
+ })(this, (function (exports, sourcemapCodec, resolveUri) { 'use strict';
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var resolveUri__default = /*#__PURE__*/_interopDefaultLegacy(resolveUri);
10
+
11
+ function resolve(input, base) {
12
+ // The base is always treated as a directory, if it's not empty.
13
+ // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327
14
+ // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401
15
+ if (base && !base.endsWith('/'))
16
+ base += '/';
17
+ return resolveUri__default["default"](input, base);
18
+ }
19
+
20
+ /**
21
+ * Removes everything after the last "/", but leaves the slash.
22
+ */
23
+ function stripFilename(path) {
24
+ if (!path)
25
+ return '';
26
+ const index = path.lastIndexOf('/');
27
+ return path.slice(0, index + 1);
28
+ }
29
+
30
+ const COLUMN = 0;
31
+ const SOURCES_INDEX = 1;
32
+ const SOURCE_LINE = 2;
33
+ const SOURCE_COLUMN = 3;
34
+ const NAMES_INDEX = 4;
35
+ const REV_GENERATED_LINE = 1;
36
+ const REV_GENERATED_COLUMN = 2;
37
+
38
+ function maybeSort(mappings, owned) {
39
+ const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
40
+ if (unsortedIndex === mappings.length)
41
+ return mappings;
42
+ // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If
43
+ // not, we do not want to modify the consumer's input array.
44
+ if (!owned)
45
+ mappings = mappings.slice();
46
+ for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {
47
+ mappings[i] = sortSegments(mappings[i], owned);
48
+ }
49
+ return mappings;
50
+ }
51
+ function nextUnsortedSegmentLine(mappings, start) {
52
+ for (let i = start; i < mappings.length; i++) {
53
+ if (!isSorted(mappings[i]))
54
+ return i;
55
+ }
56
+ return mappings.length;
57
+ }
58
+ function isSorted(line) {
59
+ for (let j = 1; j < line.length; j++) {
60
+ if (line[j][COLUMN] < line[j - 1][COLUMN]) {
61
+ return false;
62
+ }
63
+ }
64
+ return true;
65
+ }
66
+ function sortSegments(line, owned) {
67
+ if (!owned)
68
+ line = line.slice();
69
+ return line.sort(sortComparator);
70
+ }
71
+ function sortComparator(a, b) {
72
+ return a[COLUMN] - b[COLUMN];
73
+ }
74
+
75
+ let found = false;
76
+ /**
77
+ * A binary search implementation that returns the index if a match is found.
78
+ * If no match is found, then the left-index (the index associated with the item that comes just
79
+ * before the desired index) is returned. To maintain proper sort order, a splice would happen at
80
+ * the next index:
81
+ *
82
+ * ```js
83
+ * const array = [1, 3];
84
+ * const needle = 2;
85
+ * const index = binarySearch(array, needle, (item, needle) => item - needle);
86
+ *
87
+ * assert.equal(index, 0);
88
+ * array.splice(index + 1, 0, needle);
89
+ * assert.deepEqual(array, [1, 2, 3]);
90
+ * ```
91
+ */
92
+ function binarySearch(haystack, needle, low, high) {
93
+ while (low <= high) {
94
+ const mid = low + ((high - low) >> 1);
95
+ const cmp = haystack[mid][COLUMN] - needle;
96
+ if (cmp === 0) {
97
+ found = true;
98
+ return mid;
99
+ }
100
+ if (cmp < 0) {
101
+ low = mid + 1;
102
+ }
103
+ else {
104
+ high = mid - 1;
105
+ }
106
+ }
107
+ found = false;
108
+ return low - 1;
109
+ }
110
+ function upperBound(haystack, needle, index) {
111
+ for (let i = index + 1; i < haystack.length; i++, index++) {
112
+ if (haystack[i][COLUMN] !== needle)
113
+ break;
114
+ }
115
+ return index;
116
+ }
117
+ function lowerBound(haystack, needle, index) {
118
+ for (let i = index - 1; i >= 0; i--, index--) {
119
+ if (haystack[i][COLUMN] !== needle)
120
+ break;
121
+ }
122
+ return index;
123
+ }
124
+ function memoizedState() {
125
+ return {
126
+ lastKey: -1,
127
+ lastNeedle: -1,
128
+ lastIndex: -1,
129
+ };
130
+ }
131
+ /**
132
+ * This overly complicated beast is just to record the last tested line/column and the resulting
133
+ * index, allowing us to skip a few tests if mappings are monotonically increasing.
134
+ */
135
+ function memoizedBinarySearch(haystack, needle, state, key) {
136
+ const { lastKey, lastNeedle, lastIndex } = state;
137
+ let low = 0;
138
+ let high = haystack.length - 1;
139
+ if (key === lastKey) {
140
+ if (needle === lastNeedle) {
141
+ found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
142
+ return lastIndex;
143
+ }
144
+ if (needle >= lastNeedle) {
145
+ // lastIndex may be -1 if the previous needle was not found.
146
+ low = lastIndex === -1 ? 0 : lastIndex;
147
+ }
148
+ else {
149
+ high = lastIndex;
150
+ }
151
+ }
152
+ state.lastKey = key;
153
+ state.lastNeedle = needle;
154
+ return (state.lastIndex = binarySearch(haystack, needle, low, high));
155
+ }
156
+
157
+ // Rebuilds the original source files, with mappings that are ordered by source line/column instead
158
+ // of generated line/column.
159
+ function buildBySources(decoded, memos) {
160
+ const sources = memos.map(buildNullArray);
161
+ for (let i = 0; i < decoded.length; i++) {
162
+ const line = decoded[i];
163
+ for (let j = 0; j < line.length; j++) {
164
+ const seg = line[j];
165
+ if (seg.length === 1)
166
+ continue;
167
+ const sourceIndex = seg[SOURCES_INDEX];
168
+ const sourceLine = seg[SOURCE_LINE];
169
+ const sourceColumn = seg[SOURCE_COLUMN];
170
+ const originalSource = sources[sourceIndex];
171
+ const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));
172
+ const memo = memos[sourceIndex];
173
+ // The binary search either found a match, or it found the left-index just before where the
174
+ // segment should go. Either way, we want to insert after that. And there may be multiple
175
+ // generated segments associated with an original location, so there may need to move several
176
+ // indexes before we find where we need to insert.
177
+ const index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));
178
+ insert(originalLine, (memo.lastIndex = index + 1), [sourceColumn, i, seg[COLUMN]]);
179
+ }
180
+ }
181
+ return sources;
182
+ }
183
+ function insert(array, index, value) {
184
+ for (let i = array.length; i > index; i--) {
185
+ array[i] = array[i - 1];
186
+ }
187
+ array[index] = value;
188
+ }
189
+ // Null arrays allow us to use ordered index keys without actually allocating contiguous memory like
190
+ // a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.
191
+ // Numeric properties on objects are magically sorted in ascending order by the engine regardless of
192
+ // the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending
193
+ // order when iterating with for-in.
194
+ function buildNullArray() {
195
+ return { __proto__: null };
196
+ }
197
+
198
+ const AnyMap = function (map, mapUrl) {
199
+ const parsed = typeof map === 'string' ? JSON.parse(map) : map;
200
+ if (!('sections' in parsed))
201
+ return new TraceMap(parsed, mapUrl);
202
+ const mappings = [];
203
+ const sources = [];
204
+ const sourcesContent = [];
205
+ const names = [];
206
+ const { sections } = parsed;
207
+ let i = 0;
208
+ for (; i < sections.length - 1; i++) {
209
+ const no = sections[i + 1].offset;
210
+ addSection(sections[i], mapUrl, mappings, sources, sourcesContent, names, no.line, no.column);
211
+ }
212
+ if (sections.length > 0) {
213
+ addSection(sections[i], mapUrl, mappings, sources, sourcesContent, names, Infinity, Infinity);
214
+ }
215
+ const joined = {
216
+ version: 3,
217
+ file: parsed.file,
218
+ names,
219
+ sources,
220
+ sourcesContent,
221
+ mappings,
222
+ };
223
+ return exports.presortedDecodedMap(joined);
224
+ };
225
+ function addSection(section, mapUrl, mappings, sources, sourcesContent, names, stopLine, stopColumn) {
226
+ const map = AnyMap(section.map, mapUrl);
227
+ const { line: lineOffset, column: columnOffset } = section.offset;
228
+ const sourcesOffset = sources.length;
229
+ const namesOffset = names.length;
230
+ const decoded = exports.decodedMappings(map);
231
+ const { resolvedSources } = map;
232
+ append(sources, resolvedSources);
233
+ append(sourcesContent, map.sourcesContent || fillSourcesContent(resolvedSources.length));
234
+ append(names, map.names);
235
+ // If this section jumps forwards several lines, we need to add lines to the output mappings catch up.
236
+ for (let i = mappings.length; i <= lineOffset; i++)
237
+ mappings.push([]);
238
+ // We can only add so many lines before we step into the range that the next section's map
239
+ // controls. When we get to the last line, then we'll start checking the segments to see if
240
+ // they've crossed into the column range.
241
+ const stopI = stopLine - lineOffset;
242
+ const len = Math.min(decoded.length, stopI + 1);
243
+ for (let i = 0; i < len; i++) {
244
+ const line = decoded[i];
245
+ // On the 0th loop, the line will already exist due to a previous section, or the line catch up
246
+ // loop above.
247
+ const out = i === 0 ? mappings[lineOffset] : (mappings[lineOffset + i] = []);
248
+ // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the
249
+ // map can be multiple lines), it doesn't.
250
+ const cOffset = i === 0 ? columnOffset : 0;
251
+ for (let j = 0; j < line.length; j++) {
252
+ const seg = line[j];
253
+ const column = cOffset + seg[COLUMN];
254
+ // If this segment steps into the column range that the next section's map controls, we need
255
+ // to stop early.
256
+ if (i === stopI && column >= stopColumn)
257
+ break;
258
+ if (seg.length === 1) {
259
+ out.push([column]);
260
+ continue;
261
+ }
262
+ const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];
263
+ const sourceLine = seg[SOURCE_LINE];
264
+ const sourceColumn = seg[SOURCE_COLUMN];
265
+ if (seg.length === 4) {
266
+ out.push([column, sourcesIndex, sourceLine, sourceColumn]);
267
+ continue;
268
+ }
269
+ out.push([column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]);
270
+ }
271
+ }
272
+ }
273
+ function append(arr, other) {
274
+ for (let i = 0; i < other.length; i++)
275
+ arr.push(other[i]);
276
+ }
277
+ // Sourcemaps don't need to have sourcesContent, and if they don't, we need to create an array of
278
+ // equal length to the sources. This is because the sources and sourcesContent are paired arrays,
279
+ // where `sourcesContent[i]` is the content of the `sources[i]` file. If we didn't, then joined
280
+ // sourcemap would desynchronize the sources/contents.
281
+ function fillSourcesContent(len) {
282
+ const sourcesContent = [];
283
+ for (let i = 0; i < len; i++)
284
+ sourcesContent[i] = null;
285
+ return sourcesContent;
286
+ }
287
+
288
+ const INVALID_ORIGINAL_MAPPING = Object.freeze({
289
+ source: null,
290
+ line: null,
291
+ column: null,
292
+ name: null,
293
+ });
294
+ const INVALID_GENERATED_MAPPING = Object.freeze({
295
+ line: null,
296
+ column: null,
297
+ });
298
+ const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';
299
+ const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';
300
+ const LEAST_UPPER_BOUND = -1;
301
+ const GREATEST_LOWER_BOUND = 1;
302
+ /**
303
+ * Returns the encoded (VLQ string) form of the SourceMap's mappings field.
304
+ */
305
+ exports.encodedMappings = void 0;
306
+ /**
307
+ * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
308
+ */
309
+ exports.decodedMappings = void 0;
310
+ /**
311
+ * A low-level API to find the segment associated with a generated line/column (think, from a
312
+ * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.
313
+ */
314
+ exports.traceSegment = void 0;
315
+ /**
316
+ * A higher-level API to find the source/line/column associated with a generated line/column
317
+ * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
318
+ * `source-map` library.
319
+ */
320
+ exports.originalPositionFor = void 0;
321
+ /**
322
+ * Finds the source/line/column directly after the mapping returned by originalPositionFor, provided
323
+ * the found mapping is from the same source and line as the originalPositionFor mapping.
324
+ *
325
+ * Eg, in the code `let id = 1`, `originalPositionAfter` could find the mapping associated with `1`
326
+ * using the same needle that would return `id` when calling `originalPositionFor`.
327
+ */
328
+ exports.generatedPositionFor = void 0;
329
+ /**
330
+ * Iterates each mapping in generated position order.
331
+ */
332
+ exports.eachMapping = void 0;
333
+ /**
334
+ * A helper that skips sorting of the input map's mappings array, which can be expensive for larger
335
+ * maps.
336
+ */
337
+ exports.presortedDecodedMap = void 0;
338
+ /**
339
+ * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
340
+ * a sourcemap, or to JSON.stringify.
341
+ */
342
+ exports.decodedMap = void 0;
343
+ /**
344
+ * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
345
+ * a sourcemap, or to JSON.stringify.
346
+ */
347
+ exports.encodedMap = void 0;
348
+ class TraceMap {
349
+ constructor(map, mapUrl) {
350
+ this._decodedMemo = memoizedState();
351
+ this._bySources = undefined;
352
+ this._bySourceMemos = undefined;
353
+ const isString = typeof map === 'string';
354
+ if (!isString && map.constructor === TraceMap)
355
+ return map;
356
+ const parsed = (isString ? JSON.parse(map) : map);
357
+ const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
358
+ this.version = version;
359
+ this.file = file;
360
+ this.names = names;
361
+ this.sourceRoot = sourceRoot;
362
+ this.sources = sources;
363
+ this.sourcesContent = sourcesContent;
364
+ if (sourceRoot || mapUrl) {
365
+ const from = resolve(sourceRoot || '', stripFilename(mapUrl));
366
+ this.resolvedSources = sources.map((s) => resolve(s || '', from));
367
+ }
368
+ else {
369
+ this.resolvedSources = sources.map((s) => s || '');
370
+ }
371
+ const { mappings } = parsed;
372
+ if (typeof mappings === 'string') {
373
+ this._encoded = mappings;
374
+ this._decoded = undefined;
375
+ }
376
+ else {
377
+ this._encoded = undefined;
378
+ this._decoded = maybeSort(mappings, isString);
379
+ }
380
+ }
381
+ }
382
+ (() => {
383
+ exports.encodedMappings = (map) => {
384
+ var _a;
385
+ return ((_a = map._encoded) !== null && _a !== void 0 ? _a : (map._encoded = sourcemapCodec.encode(map._decoded)));
386
+ };
387
+ exports.decodedMappings = (map) => {
388
+ return (map._decoded || (map._decoded = sourcemapCodec.decode(map._encoded)));
389
+ };
390
+ exports.traceSegment = (map, line, column) => {
391
+ const decoded = exports.decodedMappings(map);
392
+ // It's common for parent source maps to have pointers to lines that have no
393
+ // mapping (like a "//# sourceMappingURL=") at the end of the child file.
394
+ if (line >= decoded.length)
395
+ return null;
396
+ return traceSegmentInternal(decoded[line], map._decodedMemo, line, column, GREATEST_LOWER_BOUND);
397
+ };
398
+ exports.originalPositionFor = (map, { line, column, bias }) => {
399
+ line--;
400
+ if (line < 0)
401
+ throw new Error(LINE_GTR_ZERO);
402
+ if (column < 0)
403
+ throw new Error(COL_GTR_EQ_ZERO);
404
+ const decoded = exports.decodedMappings(map);
405
+ // It's common for parent source maps to have pointers to lines that have no
406
+ // mapping (like a "//# sourceMappingURL=") at the end of the child file.
407
+ if (line >= decoded.length)
408
+ return INVALID_ORIGINAL_MAPPING;
409
+ const segment = traceSegmentInternal(decoded[line], map._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
410
+ if (segment == null)
411
+ return INVALID_ORIGINAL_MAPPING;
412
+ if (segment.length == 1)
413
+ return INVALID_ORIGINAL_MAPPING;
414
+ const { names, resolvedSources } = map;
415
+ return {
416
+ source: resolvedSources[segment[SOURCES_INDEX]],
417
+ line: segment[SOURCE_LINE] + 1,
418
+ column: segment[SOURCE_COLUMN],
419
+ name: segment.length === 5 ? names[segment[NAMES_INDEX]] : null,
420
+ };
421
+ };
422
+ exports.generatedPositionFor = (map, { source, line, column, bias }) => {
423
+ line--;
424
+ if (line < 0)
425
+ throw new Error(LINE_GTR_ZERO);
426
+ if (column < 0)
427
+ throw new Error(COL_GTR_EQ_ZERO);
428
+ const { sources, resolvedSources } = map;
429
+ let sourceIndex = sources.indexOf(source);
430
+ if (sourceIndex === -1)
431
+ sourceIndex = resolvedSources.indexOf(source);
432
+ if (sourceIndex === -1)
433
+ return INVALID_GENERATED_MAPPING;
434
+ const generated = (map._bySources || (map._bySources = buildBySources(exports.decodedMappings(map), (map._bySourceMemos = sources.map(memoizedState)))));
435
+ const memos = map._bySourceMemos;
436
+ const segments = generated[sourceIndex][line];
437
+ if (segments == null)
438
+ return INVALID_GENERATED_MAPPING;
439
+ const segment = traceSegmentInternal(segments, memos[sourceIndex], line, column, bias || GREATEST_LOWER_BOUND);
440
+ if (segment == null)
441
+ return INVALID_GENERATED_MAPPING;
442
+ return {
443
+ line: segment[REV_GENERATED_LINE] + 1,
444
+ column: segment[REV_GENERATED_COLUMN],
445
+ };
446
+ };
447
+ exports.eachMapping = (map, cb) => {
448
+ const decoded = exports.decodedMappings(map);
449
+ const { names, resolvedSources } = map;
450
+ for (let i = 0; i < decoded.length; i++) {
451
+ const line = decoded[i];
452
+ for (let j = 0; j < line.length; j++) {
453
+ const seg = line[j];
454
+ const generatedLine = i + 1;
455
+ const generatedColumn = seg[0];
456
+ let source = null;
457
+ let originalLine = null;
458
+ let originalColumn = null;
459
+ let name = null;
460
+ if (seg.length !== 1) {
461
+ source = resolvedSources[seg[1]];
462
+ originalLine = seg[2] + 1;
463
+ originalColumn = seg[3];
464
+ }
465
+ if (seg.length === 5)
466
+ name = names[seg[4]];
467
+ cb({
468
+ generatedLine,
469
+ generatedColumn,
470
+ source,
471
+ originalLine,
472
+ originalColumn,
473
+ name,
474
+ });
475
+ }
476
+ }
477
+ };
478
+ exports.presortedDecodedMap = (map, mapUrl) => {
479
+ const clone = Object.assign({}, map);
480
+ clone.mappings = [];
481
+ const tracer = new TraceMap(clone, mapUrl);
482
+ tracer._decoded = map.mappings;
483
+ return tracer;
484
+ };
485
+ exports.decodedMap = (map) => {
486
+ return {
487
+ version: 3,
488
+ file: map.file,
489
+ names: map.names,
490
+ sourceRoot: map.sourceRoot,
491
+ sources: map.sources,
492
+ sourcesContent: map.sourcesContent,
493
+ mappings: exports.decodedMappings(map),
494
+ };
495
+ };
496
+ exports.encodedMap = (map) => {
497
+ return {
498
+ version: 3,
499
+ file: map.file,
500
+ names: map.names,
501
+ sourceRoot: map.sourceRoot,
502
+ sources: map.sources,
503
+ sourcesContent: map.sourcesContent,
504
+ mappings: exports.encodedMappings(map),
505
+ };
506
+ };
507
+ })();
508
+ function traceSegmentInternal(segments, memo, line, column, bias) {
509
+ let index = memoizedBinarySearch(segments, column, memo, line);
510
+ if (found) {
511
+ index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
512
+ }
513
+ else if (bias === LEAST_UPPER_BOUND)
514
+ index++;
515
+ if (index === -1 || index === segments.length)
516
+ return null;
517
+ return segments[index];
518
+ }
519
+
520
+ exports.AnyMap = AnyMap;
521
+ exports.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND;
522
+ exports.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND;
523
+ exports.TraceMap = TraceMap;
524
+
525
+ Object.defineProperty(exports, '__esModule', { value: true });
526
+
527
+ }));
528
+ //# sourceMappingURL=trace-mapping.umd.js.map
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"trace-mapping.umd.js","sources":["../../src/resolve.ts","../../src/strip-filename.ts","../../src/sourcemap-segment.ts","../../src/sort.ts","../../src/binary-search.ts","../../src/by-source.ts","../../src/any-map.ts","../../src/trace-mapping.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["resolveUri","presortedDecodedMap","decodedMappings","encodedMappings","traceSegment","originalPositionFor","generatedPositionFor","eachMapping","decodedMap","encodedMap","encode","decode","bsFound"],"mappings":";;;;;;;;;;aAEwB,OAAO,CAAC,KAAa,EAAE,IAAwB;;;;QAIrE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,IAAI,IAAI,GAAG,CAAC;QAE7C,OAAOA,8BAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACjC;;ICTA;;;aAGwB,aAAa,CAAC,IAA+B;QACnE,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAClC;;ICQO,MAAM,MAAM,GAAG,CAAC,CAAC;IACjB,MAAM,aAAa,GAAG,CAAC,CAAC;IACxB,MAAM,WAAW,GAAG,CAAC,CAAC;IACtB,MAAM,aAAa,GAAG,CAAC,CAAC;IACxB,MAAM,WAAW,GAAG,CAAC,CAAC;IAEtB,MAAM,kBAAkB,GAAG,CAAC,CAAC;IAC7B,MAAM,oBAAoB,GAAG,CAAC;;aClBb,SAAS,CAC/B,QAA8B,EAC9B,KAAc;QAEd,MAAM,aAAa,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC3D,IAAI,aAAa,KAAK,QAAQ,CAAC,MAAM;YAAE,OAAO,QAAQ,CAAC;;;QAIvD,IAAI,CAAC,KAAK;YAAE,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAExC,KAAK,IAAI,CAAC,GAAG,aAAa,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE;YAC7F,QAAQ,CAAC,CAAC,CAAC,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e,CAAC,GAAG,CAAC;aAC/B,CAAC;SACH,CAAC;IACJ,CAAC,GAAA,CAAA;IAiBH,SAAS,oBAAoB,CAC3B,QAA+C,EAC/C,IAAe,EACf,IAAY,EACZ,MAAc,EACd,IAA4D;QAE5D,IAAI,KAAK,GAAG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC/D,IAAIS,KAAO,EAAE;YACX,KAAK,GAAG,CAAC,IAAI,KAAK,iBAAiB,GAAG,UAAU,GAAG,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;SACzF;aAAM,IAAI,IAAI,KAAK,iBAAiB;YAAE,KAAK,EAAE,CAAC;QAE/C,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,QAAQ,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC3D,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB;;;;;;;;;;;;;"}
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import { TraceMap } from './trace-mapping';
2
+ import type { SectionedSourceMapInput } from './types';
3
+ declare type AnyMap = {
4
+ new (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;
5
+ (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;
6
+ };
7
+ export declare const AnyMap: AnyMap;
8
+ export {};
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment';
2
+ export declare type MemoState = {
3
+ lastKey: number;
4
+ lastNeedle: number;
5
+ lastIndex: number;
6
+ };
7
+ export declare let found: boolean;
8
+ /**
9
+ * A binary search implementation that returns the index if a match is found.
10
+ * If no match is found, then the left-index (the index associated with the item that comes just
11
+ * before the desired index) is returned. To maintain proper sort order, a splice would happen at
12
+ * the next index:
13
+ *
14
+ * ```js
15
+ * const array = [1, 3];
16
+ * const needle = 2;
17
+ * const index = binarySearch(array, needle, (item, needle) => item - needle);
18
+ *
19
+ * assert.equal(index, 0);
20
+ * array.splice(index + 1, 0, needle);
21
+ * assert.deepEqual(array, [1, 2, 3]);
22
+ * ```
23
+ */
24
+ export declare function binarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, low: number, high: number): number;
25
+ export declare function upperBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number;
26
+ export declare function lowerBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number;
27
+ export declare function memoizedState(): MemoState;
28
+ /**
29
+ * This overly complicated beast is just to record the last tested line/column and the resulting
30
+ * index, allowing us to skip a few tests if mappings are monotonically increasing.
31
+ */
32
+ export declare function memoizedBinarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, state: MemoState, key: number): number;
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment';
2
+ import type { MemoState } from './binary-search';
3
+ export declare type Source = {
4
+ __proto__: null;
5
+ [line: number]: Exclude<ReverseSegment, [number]>[];
6
+ };
7
+ export default function buildBySources(decoded: readonly SourceMapSegment[][], memos: MemoState[]): Source[];
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export default function resolve(input: string, base: string | undefined): string;
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { SourceMapSegment } from './sourcemap-segment';
2
+ export default function maybeSort(mappings: SourceMapSegment[][], owned: boolean): SourceMapSegment[][];
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ declare type GeneratedColumn = number;
2
+ declare type SourcesIndex = number;
3
+ declare type SourceLine = number;
4
+ declare type SourceColumn = number;
5
+ declare type NamesIndex = number;
6
+ declare type GeneratedLine = number;
7
+ export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
8
+ export declare type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];
9
+ export declare const COLUMN = 0;
10
+ export declare const SOURCES_INDEX = 1;
11
+ export declare const SOURCE_LINE = 2;
12
+ export declare const SOURCE_COLUMN = 3;
13
+ export declare const NAMES_INDEX = 4;
14
+ export declare const REV_GENERATED_LINE = 1;
15
+ export declare const REV_GENERATED_COLUMN = 2;
16
+ export {};
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ /**
2
+ * Removes everything after the last "/", but leaves the slash.
3
+ */
4
+ export default function stripFilename(path: string | undefined | null): string;
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { SourceMapSegment } from './sourcemap-segment';
2
+ import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping } from './types';
3
+ export type { SourceMapSegment } from './sourcemap-segment';
4
+ export type { SourceMapInput, SectionedSourceMapInput, DecodedSourceMap, EncodedSourceMap, SectionedSourceMap, InvalidOriginalMapping, OriginalMapping as Mapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, EachMapping, } from './types';
5
+ export declare const LEAST_UPPER_BOUND = -1;
6
+ export declare const GREATEST_LOWER_BOUND = 1;
7
+ /**
8
+ * Returns the encoded (VLQ string) form of the SourceMap's mappings field.
9
+ */
10
+ export declare let encodedMappings: (map: TraceMap) => EncodedSourceMap['mappings'];
11
+ /**
12
+ * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
13
+ */
14
+ export declare let decodedMappings: (map: TraceMap) => Readonly<DecodedSourceMap['mappings']>;
15
+ /**
16
+ * A low-level API to find the segment associated with a generated line/column (think, from a
17
+ * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.
18
+ */
19
+ export declare let traceSegment: (map: TraceMap, line: number, column: number) => Readonly<SourceMapSegment> | null;
20
+ /**
21
+ * A higher-level API to find the source/line/column associated with a generated line/column
22
+ * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
23
+ * `source-map` library.
24
+ */
25
+ export declare let originalPositionFor: (map: TraceMap, needle: Needle) => OriginalMapping | InvalidOriginalMapping;
26
+ /**
27
+ * Finds the source/line/column directly after the mapping returned by originalPositionFor, provided
28
+ * the found mapping is from the same source and line as the originalPositionFor mapping.
29
+ *
30
+ * Eg, in the code `let id = 1`, `originalPositionAfter` could find the mapping associated with `1`
31
+ * using the same needle that would return `id` when calling `originalPositionFor`.
32
+ */
33
+ export declare let generatedPositionFor: (map: TraceMap, needle: SourceNeedle) => GeneratedMapping | InvalidGeneratedMapping;
34
+ /**
35
+ * Iterates each mapping in generated position order.
36
+ */
37
+ export declare let eachMapping: (map: TraceMap, cb: (mapping: EachMapping) => void) => void;
38
+ /**
39
+ * A helper that skips sorting of the input map's mappings array, which can be expensive for larger
40
+ * maps.
41
+ */
42
+ export declare let presortedDecodedMap: (map: DecodedSourceMap, mapUrl?: string) => TraceMap;
43
+ /**
44
+ * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
45
+ * a sourcemap, or to JSON.stringify.
46
+ */
47
+ export declare let decodedMap: (map: TraceMap) => Omit<DecodedSourceMap, 'mappings'> & {
48
+ mappings: readonly SourceMapSegment[][];
49
+ };
50
+ /**
51
+ * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
52
+ * a sourcemap, or to JSON.stringify.
53
+ */
54
+ export declare let encodedMap: (map: TraceMap) => EncodedSourceMap;
55
+ export { AnyMap } from './any-map';
56
+ export declare class TraceMap implements SourceMap {
57
+ version: SourceMapV3['version'];
58
+ file: SourceMapV3['file'];
59
+ names: SourceMapV3['names'];
60
+ sourceRoot: SourceMapV3['sourceRoot'];
61
+ sources: SourceMapV3['sources'];
62
+ sourcesContent: SourceMapV3['sourcesContent'];
63
+ resolvedSources: string[];
64
+ private _encoded;
65
+ private _decoded;
66
+ private _decodedMemo;
67
+ private _bySources;
68
+ private _bySourceMemos;
69
+ constructor(map: SourceMapInput, mapUrl?: string | null);
70
+ }
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { SourceMapSegment } from './sourcemap-segment';
2
+ import type { TraceMap } from './trace-mapping';
3
+ export interface SourceMapV3 {
4
+ file?: string | null;
5
+ names: string[];
6
+ sourceRoot?: string;
7
+ sources: (string | null)[];
8
+ sourcesContent?: (string | null)[];
9
+ version: 3;
10
+ }
11
+ export interface EncodedSourceMap extends SourceMapV3 {
12
+ mappings: string;
13
+ }
14
+ export interface DecodedSourceMap extends SourceMapV3 {
15
+ mappings: SourceMapSegment[][];
16
+ }
17
+ export interface Section {
18
+ offset: {
19
+ line: number;
20
+ column: number;
21
+ };
22
+ map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap;
23
+ }
24
+ export interface SectionedSourceMap {
25
+ file?: string | null;
26
+ sections: Section[];
27
+ version: 3;
28
+ }
29
+ export declare type OriginalMapping = {
30
+ source: string | null;
31
+ line: number;
32
+ column: number;
33
+ name: string | null;
34
+ };
35
+ export declare type InvalidOriginalMapping = {
36
+ source: null;
37
+ line: null;
38
+ column: null;
39
+ name: null;
40
+ };
41
+ export declare type GeneratedMapping = {
42
+ line: number;
43
+ column: number;
44
+ };
45
+ export declare type InvalidGeneratedMapping = {
46
+ line: null;
47
+ column: null;
48
+ };
49
+ export declare type SourceMapInput = string | EncodedSourceMap | DecodedSourceMap | TraceMap;
50
+ export declare type SectionedSourceMapInput = SourceMapInput | SectionedSourceMap;
51
+ export declare type Needle = {
52
+ line: number;
53
+ column: number;
54
+ bias?: 1 | -1;
55
+ };
56
+ export declare type SourceNeedle = {
57
+ source: string;
58
+ line: number;
59
+ column: number;
60
+ bias?: 1 | -1;
61
+ };
62
+ export declare type EachMapping = {
63
+ generatedLine: number;
64
+ generatedColumn: number;
65
+ source: null;
66
+ originalLine: null;
67
+ originalColumn: null;
68
+ name: null;
69
+ } | {
70
+ generatedLine: number;
71
+ generatedColumn: number;
72
+ source: string | null;
73
+ originalLine: number;
74
+ originalColumn: number;
75
+ name: string | null;
76
+ };
77
+ export declare abstract class SourceMap {
78
+ version: SourceMapV3['version'];
79
+ file: SourceMapV3['file'];
80
+ names: SourceMapV3['names'];
81
+ sourceRoot: SourceMapV3['sourceRoot'];
82
+ sources: SourceMapV3['sources'];
83
+ sourcesContent: SourceMapV3['sourcesContent'];
84
+ resolvedSources: SourceMapV3['sources'];
85
+ }
ui/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/package.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@jridgewell/trace-mapping",
3
+ "version": "0.3.9",
4
+ "description": "Trace the original position through a source map",
5
+ "keywords": [
6
+ "source",
7
+ "map"
8
+ ],
9
+ "main": "dist/trace-mapping.umd.js",
10
+ "module": "dist/trace-mapping.mjs",
11
+ "typings": "dist/types/trace-mapping.d.ts",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "browser": "./dist/trace-mapping.umd.js",
18
+ "require": "./dist/trace-mapping.umd.js",
19
+ "import": "./dist/trace-mapping.mjs"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "author": "Justin Ridgewell <justin@ridgewell.name>",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/jridgewell/trace-mapping.git"
27
+ },
28
+ "license": "MIT",
29
+ "scripts": {
30
+ "benchmark": "run-s build:rollup benchmark:*",
31
+ "benchmark:install": "cd benchmark && npm install",
32
+ "benchmark:only": "node benchmark/index.mjs",
33
+ "build": "run-s -n build:*",
34
+ "build:rollup": "rollup -c rollup.config.js",
35
+ "build:ts": "tsc --project tsconfig.build.json",
36
+ "lint": "run-s -n lint:*",
37
+ "lint:prettier": "npm run test:lint:prettier -- --write",
38
+ "lint:ts": "npm run test:lint:ts -- --fix",
39
+ "prebuild": "rm -rf dist",
40
+ "prepublishOnly": "npm run preversion",
41
+ "preversion": "run-s test build",
42
+ "test": "run-s -n test:lint test:only",
43
+ "test:debug": "ava debug",
44
+ "test:lint": "run-s -n test:lint:*",
45
+ "test:lint:prettier": "prettier --check '{src,test}/**/*.ts' '**/*.md'",
46
+ "test:lint:ts": "eslint '{src,test}/**/*.ts'",
47
+ "test:only": "c8 ava",
48
+ "test:watch": "ava --watch"
49
+ },
50
+ "devDependencies": {
51
+ "@rollup/plugin-typescript": "8.3.0",
52
+ "@typescript-eslint/eslint-plugin": "5.10.0",
53
+ "@typescript-eslint/parser": "5.10.0",
54
+ "ava": "4.0.1",
55
+ "benchmark": "2.1.4",
56
+ "c8": "7.11.0",
57
+ "esbuild": "0.14.14",
58
+ "esbuild-node-loader": "0.6.4",
59
+ "eslint": "8.7.0",
60
+ "eslint-config-prettier": "8.3.0",
61
+ "npm-run-all": "4.1.5",
62
+ "prettier": "2.5.1",
63
+ "rollup": "2.64.0",
64
+ "typescript": "4.5.4"
65
+ },
66
+ "dependencies": {
67
+ "@jridgewell/resolve-uri": "^3.0.3",
68
+ "@jridgewell/sourcemap-codec": "^1.4.10"
69
+ }
70
+ }
ui/node_modules/@cspotcode/source-map-support/package.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@cspotcode/source-map-support",
3
+ "description": "Fixes stack traces for files with source maps",
4
+ "version": "0.8.1",
5
+ "main": "./source-map-support.js",
6
+ "types": "./source-map-support.d.ts",
7
+ "scripts": {
8
+ "build": "node build.js",
9
+ "serve-tests": "http-server -p 1336",
10
+ "test": "mocha"
11
+ },
12
+ "files": [
13
+ "/register.d.ts",
14
+ "/register.js",
15
+ "/register-hook-require.d.ts",
16
+ "/register-hook-require.js",
17
+ "/source-map-support.d.ts",
18
+ "/source-map-support.js",
19
+ "/browser-source-map-support.js"
20
+ ],
21
+ "dependencies": {
22
+ "@jridgewell/trace-mapping": "0.3.9"
23
+ },
24
+ "devDependencies": {
25
+ "@types/lodash": "^4.14.182",
26
+ "browserify": "^4.2.3",
27
+ "coffeescript": "^1.12.7",
28
+ "http-server": "^0.11.1",
29
+ "lodash": "^4.17.21",
30
+ "mocha": "^3.5.3",
31
+ "semver": "^7.3.7",
32
+ "source-map": "0.6.1",
33
+ "webpack": "^1.15.0"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/cspotcode/node-source-map-support"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/cspotcode/node-source-map-support/issues"
41
+ },
42
+ "license": "MIT",
43
+ "engines": {
44
+ "node": ">=12"
45
+ },
46
+ "volta": {
47
+ "node": "16.11.0",
48
+ "npm": "7.24.2"
49
+ }
50
+ }
ui/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ // tslint:disable:no-useless-files
2
+
3
+ // For following usage:
4
+ // import '@cspotcode/source-map-support/register-hook-require'
5
+ // Instead of:
6
+ // import sourceMapSupport from '@cspotcode/source-map-support'
7
+ // sourceMapSupport.install({hookRequire: true})
ui/node_modules/@cspotcode/source-map-support/register-hook-require.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ require('./').install({
2
+ hookRequire: true
3
+ });
ui/node_modules/@cspotcode/source-map-support/register.d.ts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ // tslint:disable:no-useless-files
2
+
3
+ // For following usage:
4
+ // import '@cspotcode/source-map-support/register'
5
+ // Instead of:
6
+ // import sourceMapSupport from '@cspotcode/source-map-support'
7
+ // sourceMapSupport.install()
ui/node_modules/@cspotcode/source-map-support/register.js ADDED
@@ -0,0 +1 @@
 
 
1
+ require('./').install();
ui/node_modules/@cspotcode/source-map-support/source-map-support.d.ts ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Type definitions for source-map-support 0.5
2
+ // Project: https://github.com/evanw/node-source-map-support
3
+ // Definitions by: Bart van der Schoor <https://github.com/Bartvds>
4
+ // Jason Cheatham <https://github.com/jason0x43>
5
+ // Alcedo Nathaniel De Guzman Jr <https://github.com/natealcedo>
6
+ // Griffin Yourick <https://github.com/tough-griff>
7
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
8
+
9
+ export interface RawSourceMap {
10
+ version: 3;
11
+ sources: string[];
12
+ names: string[];
13
+ sourceRoot?: string;
14
+ sourcesContent?: string[];
15
+ mappings: string;
16
+ file: string;
17
+ }
18
+
19
+ /**
20
+ * Output of retrieveSourceMap().
21
+ * From source-map-support:
22
+ * The map field may be either a string or the parsed JSON object (i.e.,
23
+ * it must be a valid argument to the SourceMapConsumer constructor).
24
+ */
25
+ export interface UrlAndMap {
26
+ url: string;
27
+ map: string | RawSourceMap;
28
+ }
29
+
30
+ /**
31
+ * Options to install().
32
+ */
33
+ export interface Options {
34
+ handleUncaughtExceptions?: boolean | undefined;
35
+ hookRequire?: boolean | undefined;
36
+ emptyCacheBetweenOperations?: boolean | undefined;
37
+ environment?: 'auto' | 'browser' | 'node' | undefined;
38
+ overrideRetrieveFile?: boolean | undefined;
39
+ overrideRetrieveSourceMap?: boolean | undefined;
40
+ retrieveFile?(path: string): string;
41
+ retrieveSourceMap?(source: string): UrlAndMap | null;
42
+ /**
43
+ * Set false to disable redirection of require / import `source-map-support` to `@cspotcode/source-map-support`
44
+ */
45
+ redirectConflictingLibrary?: boolean;
46
+ /**
47
+ * Callback will be called every time we redirect due to `redirectConflictingLibrary`
48
+ * This allows consumers to log helpful warnings if they choose.
49
+ * @param parent NodeJS.Module which made the require() or require.resolve() call
50
+ * @param options options object internally passed to node's `_resolveFilename` hook
51
+ */
52
+ onConflictingLibraryRedirect?: (request: string, parent: any, isMain: boolean, options: any, redirectedRequest: string) => void;
53
+ }
54
+
55
+ export interface Position {
56
+ source: string;
57
+ line: number;
58
+ column: number;
59
+ }
60
+
61
+ export function wrapCallSite(frame: any /* StackFrame */): any /* StackFrame */;
62
+ export function getErrorSource(error: Error): string | null;
63
+ export function mapSourcePosition(position: Position): Position;
64
+ export function retrieveSourceMap(source: string): UrlAndMap | null;
65
+ export function resetRetrieveHandlers(): void;
66
+
67
+ /**
68
+ * Install SourceMap support.
69
+ * @param options Can be used to e.g. disable uncaughtException handler.
70
+ */
71
+ export function install(options?: Options): void;
72
+
73
+ /**
74
+ * Uninstall SourceMap support.
75
+ */
76
+ export function uninstall(): void;
ui/node_modules/@cspotcode/source-map-support/source-map-support.js ADDED
@@ -0,0 +1,938 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const { TraceMap, originalPositionFor, AnyMap } = require('@jridgewell/trace-mapping');
2
+ var path = require('path');
3
+ const { fileURLToPath, pathToFileURL } = require('url');
4
+ var util = require('util');
5
+
6
+ var fs;
7
+ try {
8
+ fs = require('fs');
9
+ if (!fs.existsSync || !fs.readFileSync) {
10
+ // fs doesn't have all methods we need
11
+ fs = null;
12
+ }
13
+ } catch (err) {
14
+ /* nop */
15
+ }
16
+
17
+ /**
18
+ * Requires a module which is protected against bundler minification.
19
+ *
20
+ * @param {NodeModule} mod
21
+ * @param {string} request
22
+ */
23
+ function dynamicRequire(mod, request) {
24
+ return mod.require(request);
25
+ }
26
+
27
+ /**
28
+ * @typedef {{
29
+ * enabled: boolean;
30
+ * originalValue: any;
31
+ * installedValue: any;
32
+ * }} HookState
33
+ * Used for installing and uninstalling hooks
34
+ */
35
+
36
+ // Increment this if the format of sharedData changes in a breaking way.
37
+ var sharedDataVersion = 1;
38
+
39
+ /**
40
+ * @template T
41
+ * @param {T} defaults
42
+ * @returns {T}
43
+ */
44
+ function initializeSharedData(defaults) {
45
+ var sharedDataKey = 'source-map-support/sharedData';
46
+ if (typeof Symbol !== 'undefined') {
47
+ sharedDataKey = Symbol.for(sharedDataKey);
48
+ }
49
+ var sharedData = this[sharedDataKey];
50
+ if (!sharedData) {
51
+ sharedData = { version: sharedDataVersion };
52
+ if (Object.defineProperty) {
53
+ Object.defineProperty(this, sharedDataKey, { value: sharedData });
54
+ } else {
55
+ this[sharedDataKey] = sharedData;
56
+ }
57
+ }
58
+ if (sharedDataVersion !== sharedData.version) {
59
+ throw new Error("Multiple incompatible instances of source-map-support were loaded");
60
+ }
61
+ for (var key in defaults) {
62
+ if (!(key in sharedData)) {
63
+ sharedData[key] = defaults[key];
64
+ }
65
+ }
66
+ return sharedData;
67
+ }
68
+
69
+ // If multiple instances of source-map-support are loaded into the same
70
+ // context, they shouldn't overwrite each other. By storing handlers, caches,
71
+ // and other state on a shared object, different instances of
72
+ // source-map-support can work together in a limited way. This does require
73
+ // that future versions of source-map-support continue to support the fields on
74
+ // this object. If this internal contract ever needs to be broken, increment
75
+ // sharedDataVersion. (This version number is not the same as any of the
76
+ // package's version numbers, which should reflect the *external* API of
77
+ // source-map-support.)
78
+ var sharedData = initializeSharedData({
79
+
80
+ // Only install once if called multiple times
81
+ // Remember how the environment looked before installation so we can restore if able
82
+ /** @type {HookState} */
83
+ errorPrepareStackTraceHook: undefined,
84
+ /** @type {HookState} */
85
+ processEmitHook: undefined,
86
+ /** @type {HookState} */
87
+ moduleResolveFilenameHook: undefined,
88
+
89
+ /** @type {Array<(request: string, parent: any, isMain: boolean, options: any, redirectedRequest: string) => void>} */
90
+ onConflictingLibraryRedirectArr: [],
91
+
92
+ // If true, the caches are reset before a stack trace formatting operation
93
+ emptyCacheBetweenOperations: false,
94
+
95
+ // Maps a file path to a string containing the file contents
96
+ fileContentsCache: Object.create(null),
97
+
98
+ // Maps a file path to a source map for that file
99
+ /** @type {Record<string, {url: string, map: TraceMap}} */
100
+ sourceMapCache: Object.create(null),
101
+
102
+ // Priority list of retrieve handlers
103
+ retrieveFileHandlers: [],
104
+ retrieveMapHandlers: [],
105
+
106
+ // Priority list of internally-implemented handlers.
107
+ // When resetting state, we must keep these.
108
+ internalRetrieveFileHandlers: [],
109
+ internalRetrieveMapHandlers: [],
110
+
111
+ });
112
+
113
+ // Supports {browser, node, auto}
114
+ var environment = "auto";
115
+
116
+ // Regex for detecting source maps
117
+ var reSourceMap = /^data:application\/json[^,]+base64,/;
118
+
119
+ function isInBrowser() {
120
+ if (environment === "browser")
121
+ return true;
122
+ if (environment === "node")
123
+ return false;
124
+ return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer"));
125
+ }
126
+
127
+ function hasGlobalProcessEventEmitter() {
128
+ return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function'));
129
+ }
130
+
131
+ function tryFileURLToPath(v) {
132
+ if(isFileUrl(v)) {
133
+ return fileURLToPath(v);
134
+ }
135
+ return v;
136
+ }
137
+
138
+ // TODO un-copy these from resolve-uri; see if they can be exported from that lib
139
+ function isFileUrl(input) {
140
+ return input.startsWith('file:');
141
+ }
142
+ function isAbsoluteUrl(input) {
143
+ return schemeRegex.test(input);
144
+ }
145
+ // Matches the scheme of a URL, eg "http://"
146
+ const schemeRegex = /^[\w+.-]+:\/\//;
147
+ function isSchemeRelativeUrl(input) {
148
+ return input.startsWith('//');
149
+ }
150
+
151
+ // #region Caches
152
+ /** @param {string} pathOrFileUrl */
153
+ function getCacheKey(pathOrFileUrl) {
154
+ if(pathOrFileUrl.startsWith('node:')) return pathOrFileUrl;
155
+ if(isFileUrl(pathOrFileUrl)) {
156
+ // Must normalize spaces to %20, stuff like that
157
+ return new URL(pathOrFileUrl).toString();
158
+ } else {
159
+ try {
160
+ return pathToFileURL(pathOrFileUrl).toString();
161
+ } catch {
162
+ return pathOrFileUrl;
163
+ }
164
+ }
165
+ }
166
+ function getFileContentsCache(key) {
167
+ return sharedData.fileContentsCache[getCacheKey(key)];
168
+ }
169
+ function hasFileContentsCacheFromKey(key) {
170
+ return Object.prototype.hasOwnProperty.call(sharedData.fileContentsCache, key);
171
+ }
172
+ function getFileContentsCacheFromKey(key) {
173
+ return sharedData.fileContentsCache[key];
174
+ }
175
+ function setFileContentsCache(key, value) {
176
+ return sharedData.fileContentsCache[getCacheKey(key)] = value;
177
+ }
178
+ function getSourceMapCache(key) {
179
+ return sharedData.sourceMapCache[getCacheKey(key)];
180
+ }
181
+ function setSourceMapCache(key, value) {
182
+ return sharedData.sourceMapCache[getCacheKey(key)] = value;
183
+ }
184
+ function clearCaches() {
185
+ sharedData.fileContentsCache = Object.create(null);
186
+ sharedData.sourceMapCache = Object.create(null);
187
+ }
188
+ // #endregion Caches
189
+
190
+ function handlerExec(list, internalList) {
191
+ return function(arg) {
192
+ for (var i = 0; i < list.length; i++) {
193
+ var ret = list[i](arg);
194
+ if (ret) {
195
+ return ret;
196
+ }
197
+ }
198
+ for (var i = 0; i < internalList.length; i++) {
199
+ var ret = internalList[i](arg);
200
+ if (ret) {
201
+ return ret;
202
+ }
203
+ }
204
+ return null;
205
+ };
206
+ }
207
+
208
+ var retrieveFile = handlerExec(sharedData.retrieveFileHandlers, sharedData.internalRetrieveFileHandlers);
209
+
210
+ sharedData.internalRetrieveFileHandlers.push(function(path) {
211
+ // Trim the path to make sure there is no extra whitespace.
212
+ path = path.trim();
213
+ if (/^file:/.test(path)) {
214
+ // existsSync/readFileSync can't handle file protocol, but once stripped, it works
215
+ path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
216
+ return drive ?
217
+ '' : // file:///C:/dir/file -> C:/dir/file
218
+ '/'; // file:///root-dir/file -> /root-dir/file
219
+ });
220
+ }
221
+ const key = getCacheKey(path);
222
+ if(hasFileContentsCacheFromKey(key)) {
223
+ return getFileContentsCacheFromKey(key);
224
+ }
225
+
226
+ var contents = '';
227
+ try {
228
+ if (!fs) {
229
+ // Use SJAX if we are in the browser
230
+ var xhr = new XMLHttpRequest();
231
+ xhr.open('GET', path, /** async */ false);
232
+ xhr.send(null);
233
+ if (xhr.readyState === 4 && xhr.status === 200) {
234
+ contents = xhr.responseText;
235
+ }
236
+ } else if (fs.existsSync(path)) {
237
+ // Otherwise, use the filesystem
238
+ contents = fs.readFileSync(path, 'utf8');
239
+ }
240
+ } catch (er) {
241
+ /* ignore any errors */
242
+ }
243
+
244
+ return setFileContentsCache(path, contents);
245
+ });
246
+
247
+ // Support URLs relative to a directory, but be careful about a protocol prefix
248
+ // in case we are in the browser (i.e. directories may start with "http://" or "file:///")
249
+ function supportRelativeURL(file, url) {
250
+ if(!file) return url;
251
+ // given that this happens within error formatting codepath, probably best to
252
+ // fallback instead of throwing if anything goes wrong
253
+ try {
254
+ // if should output a URL
255
+ if(isAbsoluteUrl(file) || isSchemeRelativeUrl(file)) {
256
+ if(isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
257
+ return new URL(url, file).toString();
258
+ }
259
+ if(path.isAbsolute(url)) {
260
+ return new URL(pathToFileURL(url), file).toString();
261
+ }
262
+ // url is relative path or URL
263
+ return new URL(url.replace(/\\/g, '/'), file).toString();
264
+ }
265
+ // if should output a path (unless URL is something like https://)
266
+ if(path.isAbsolute(file)) {
267
+ if(isFileUrl(url)) {
268
+ return fileURLToPath(url);
269
+ }
270
+ if(isSchemeRelativeUrl(url)) {
271
+ return fileURLToPath(new URL(url, 'file://'));
272
+ }
273
+ if(isAbsoluteUrl(url)) {
274
+ // url is a non-file URL
275
+ // Go with the URL
276
+ return url;
277
+ }
278
+ if(path.isAbsolute(url)) {
279
+ // Normalize at all? decodeURI or normalize slashes?
280
+ return path.normalize(url);
281
+ }
282
+ // url is relative path or URL
283
+ return path.join(file, '..', decodeURI(url));
284
+ }
285
+ // If we get here, file is relative.
286
+ // Shouldn't happen since node identifies modules with absolute paths or URLs.
287
+ // But we can take a stab at returning something meaningful anyway.
288
+ if(isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
289
+ return url;
290
+ }
291
+ return path.join(file, '..', url);
292
+ } catch(e) {
293
+ return url;
294
+ }
295
+ }
296
+
297
+ // Return pathOrUrl in the same style as matchStyleOf: either a file URL or a native path
298
+ function matchStyleOfPathOrUrl(matchStyleOf, pathOrUrl) {
299
+ try {
300
+ if(isAbsoluteUrl(matchStyleOf) || isSchemeRelativeUrl(matchStyleOf)) {
301
+ if(isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) return pathOrUrl;
302
+ if(path.isAbsolute(pathOrUrl)) return pathToFileURL(pathOrUrl).toString();
303
+ } else if(path.isAbsolute(matchStyleOf)) {
304
+ if(isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) {
305
+ return fileURLToPath(new URL(pathOrUrl, 'file://'));
306
+ }
307
+ }
308
+ return pathOrUrl;
309
+ } catch(e) {
310
+ return pathOrUrl;
311
+ }
312
+ }
313
+
314
+ function retrieveSourceMapURL(source) {
315
+ var fileData;
316
+
317
+ if (isInBrowser()) {
318
+ try {
319
+ var xhr = new XMLHttpRequest();
320
+ xhr.open('GET', source, false);
321
+ xhr.send(null);
322
+ fileData = xhr.readyState === 4 ? xhr.responseText : null;
323
+
324
+ // Support providing a sourceMappingURL via the SourceMap header
325
+ var sourceMapHeader = xhr.getResponseHeader("SourceMap") ||
326
+ xhr.getResponseHeader("X-SourceMap");
327
+ if (sourceMapHeader) {
328
+ return sourceMapHeader;
329
+ }
330
+ } catch (e) {
331
+ }
332
+ }
333
+
334
+ // Get the URL of the source map
335
+ fileData = retrieveFile(tryFileURLToPath(source));
336
+ var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
337
+ // Keep executing the search to find the *last* sourceMappingURL to avoid
338
+ // picking up sourceMappingURLs from comments, strings, etc.
339
+ var lastMatch, match;
340
+ while (match = re.exec(fileData)) lastMatch = match;
341
+ if (!lastMatch) return null;
342
+ return lastMatch[1];
343
+ };
344
+
345
+ // Can be overridden by the retrieveSourceMap option to install. Takes a
346
+ // generated source filename; returns a {map, optional url} object, or null if
347
+ // there is no source map. The map field may be either a string or the parsed
348
+ // JSON object (ie, it must be a valid argument to the SourceMapConsumer
349
+ // constructor).
350
+ /** @type {(source: string) => import('./source-map-support').UrlAndMap | null} */
351
+ var retrieveSourceMap = handlerExec(sharedData.retrieveMapHandlers, sharedData.internalRetrieveMapHandlers);
352
+ sharedData.internalRetrieveMapHandlers.push(function(source) {
353
+ var sourceMappingURL = retrieveSourceMapURL(source);
354
+ if (!sourceMappingURL) return null;
355
+
356
+ // Read the contents of the source map
357
+ var sourceMapData;
358
+ if (reSourceMap.test(sourceMappingURL)) {
359
+ // Support source map URL as a data url
360
+ var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
361
+ sourceMapData = Buffer.from(rawData, "base64").toString();
362
+ sourceMappingURL = source;
363
+ } else {
364
+ // Support source map URLs relative to the source URL
365
+ sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
366
+ sourceMapData = retrieveFile(tryFileURLToPath(sourceMappingURL));
367
+ }
368
+
369
+ if (!sourceMapData) {
370
+ return null;
371
+ }
372
+
373
+ return {
374
+ url: sourceMappingURL,
375
+ map: sourceMapData
376
+ };
377
+ });
378
+
379
+ function mapSourcePosition(position) {
380
+ var sourceMap = getSourceMapCache(position.source);
381
+ if (!sourceMap) {
382
+ // Call the (overrideable) retrieveSourceMap function to get the source map.
383
+ var urlAndMap = retrieveSourceMap(position.source);
384
+ if (urlAndMap) {
385
+ sourceMap = setSourceMapCache(position.source, {
386
+ url: urlAndMap.url,
387
+ map: new AnyMap(urlAndMap.map, urlAndMap.url)
388
+ });
389
+
390
+ // Overwrite trace-mapping's resolutions, because they do not handle
391
+ // Windows paths the way we want.
392
+ // TODO Remove now that windows path support was added to resolve-uri and thus trace-mapping?
393
+ sourceMap.map.resolvedSources = sourceMap.map.sources.map(s => supportRelativeURL(sourceMap.url, s));
394
+
395
+ // Load all sources stored inline with the source map into the file cache
396
+ // to pretend like they are already loaded. They may not exist on disk.
397
+ if (sourceMap.map.sourcesContent) {
398
+ sourceMap.map.resolvedSources.forEach(function(resolvedSource, i) {
399
+ var contents = sourceMap.map.sourcesContent[i];
400
+ if (contents) {
401
+ setFileContentsCache(resolvedSource, contents);
402
+ }
403
+ });
404
+ }
405
+ } else {
406
+ sourceMap = setSourceMapCache(position.source, {
407
+ url: null,
408
+ map: null
409
+ });
410
+ }
411
+ }
412
+
413
+ // Resolve the source URL relative to the URL of the source map
414
+ if (sourceMap && sourceMap.map) {
415
+ var originalPosition = originalPositionFor(sourceMap.map, position);
416
+
417
+ // Only return the original position if a matching line was found. If no
418
+ // matching line is found then we return position instead, which will cause
419
+ // the stack trace to print the path and line for the compiled file. It is
420
+ // better to give a precise location in the compiled file than a vague
421
+ // location in the original file.
422
+ if (originalPosition.source !== null) {
423
+ // originalPosition.source has *already* been resolved against sourceMap.url
424
+ // so is *already* as absolute as possible.
425
+ // However, we want to ensure we output in same format as input: URL or native path
426
+ originalPosition.source = matchStyleOfPathOrUrl(
427
+ position.source, originalPosition.source);
428
+ return originalPosition;
429
+ }
430
+ }
431
+
432
+ return position;
433
+ }
434
+
435
+ // Parses code generated by FormatEvalOrigin(), a function inside V8:
436
+ // https://code.google.com/p/v8/source/browse/trunk/src/messages.js
437
+ function mapEvalOrigin(origin) {
438
+ // Most eval() calls are in this format
439
+ var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
440
+ if (match) {
441
+ var position = mapSourcePosition({
442
+ source: match[2],
443
+ line: +match[3],
444
+ column: match[4] - 1
445
+ });
446
+ return 'eval at ' + match[1] + ' (' + position.source + ':' +
447
+ position.line + ':' + (position.column + 1) + ')';
448
+ }
449
+
450
+ // Parse nested eval() calls using recursion
451
+ match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
452
+ if (match) {
453
+ return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
454
+ }
455
+
456
+ // Make sure we still return useful information if we didn't find anything
457
+ return origin;
458
+ }
459
+
460
+ // This is copied almost verbatim from the V8 source code at
461
+ // https://code.google.com/p/v8/source/browse/trunk/src/messages.js
462
+ // Update 2022-04-29:
463
+ // https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/builtins/builtins-callsite.cc#L175-L179
464
+ // https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/objects/call-site-info.cc#L795-L804
465
+ // https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/objects/call-site-info.cc#L717-L750
466
+ // The implementation of wrapCallSite() used to just forward to the actual source
467
+ // code of CallSite.prototype.toString but unfortunately a new release of V8
468
+ // did something to the prototype chain and broke the shim. The only fix I
469
+ // could find was copy/paste.
470
+ function CallSiteToString() {
471
+ var fileName;
472
+ var fileLocation = "";
473
+ if (this.isNative()) {
474
+ fileLocation = "native";
475
+ } else {
476
+ fileName = this.getScriptNameOrSourceURL();
477
+ if (!fileName && this.isEval()) {
478
+ fileLocation = this.getEvalOrigin();
479
+ fileLocation += ", "; // Expecting source position to follow.
480
+ }
481
+
482
+ if (fileName) {
483
+ fileLocation += fileName;
484
+ } else {
485
+ // Source code does not originate from a file and is not native, but we
486
+ // can still get the source position inside the source string, e.g. in
487
+ // an eval string.
488
+ fileLocation += "<anonymous>";
489
+ }
490
+ var lineNumber = this.getLineNumber();
491
+ if (lineNumber != null) {
492
+ fileLocation += ":" + lineNumber;
493
+ var columnNumber = this.getColumnNumber();
494
+ if (columnNumber) {
495
+ fileLocation += ":" + columnNumber;
496
+ }
497
+ }
498
+ }
499
+
500
+ var line = "";
501
+ var isAsync = this.isAsync ? this.isAsync() : false;
502
+ if(isAsync) {
503
+ line += 'async ';
504
+ var isPromiseAll = this.isPromiseAll ? this.isPromiseAll() : false;
505
+ var isPromiseAny = this.isPromiseAny ? this.isPromiseAny() : false;
506
+ if(isPromiseAny || isPromiseAll) {
507
+ line += isPromiseAll ? 'Promise.all (index ' : 'Promise.any (index ';
508
+ var promiseIndex = this.getPromiseIndex();
509
+ line += promiseIndex + ')';
510
+ }
511
+ }
512
+ var functionName = this.getFunctionName();
513
+ var addSuffix = true;
514
+ var isConstructor = this.isConstructor();
515
+ var isMethodCall = !(this.isToplevel() || isConstructor);
516
+ if (isMethodCall) {
517
+ var typeName = this.getTypeName();
518
+ // Fixes shim to be backward compatable with Node v0 to v4
519
+ if (typeName === "[object Object]") {
520
+ typeName = "null";
521
+ }
522
+ var methodName = this.getMethodName();
523
+ if (functionName) {
524
+ if (typeName && functionName.indexOf(typeName) != 0) {
525
+ line += typeName + ".";
526
+ }
527
+ line += functionName;
528
+ if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
529
+ line += " [as " + methodName + "]";
530
+ }
531
+ } else {
532
+ line += typeName + "." + (methodName || "<anonymous>");
533
+ }
534
+ } else if (isConstructor) {
535
+ line += "new " + (functionName || "<anonymous>");
536
+ } else if (functionName) {
537
+ line += functionName;
538
+ } else {
539
+ line += fileLocation;
540
+ addSuffix = false;
541
+ }
542
+ if (addSuffix) {
543
+ line += " (" + fileLocation + ")";
544
+ }
545
+ return line;
546
+ }
547
+
548
+ function cloneCallSite(frame) {
549
+ var object = {};
550
+ Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
551
+ object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
552
+ });
553
+ object.toString = CallSiteToString;
554
+ return object;
555
+ }
556
+
557
+ function wrapCallSite(frame, state) {
558
+ // provides interface backward compatibility
559
+ if (state === undefined) {
560
+ state = { nextPosition: null, curPosition: null }
561
+ }
562
+ if(frame.isNative()) {
563
+ state.curPosition = null;
564
+ return frame;
565
+ }
566
+
567
+ // Most call sites will return the source file from getFileName(), but code
568
+ // passed to eval() ending in "//# sourceURL=..." will return the source file
569
+ // from getScriptNameOrSourceURL() instead
570
+ var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
571
+ if (source) {
572
+ // v8 does not expose its internal isWasm, etc methods, so we do this instead.
573
+ if(source.startsWith('wasm://')) {
574
+ state.curPosition = null;
575
+ return frame;
576
+ }
577
+
578
+ var line = frame.getLineNumber();
579
+ var column = frame.getColumnNumber() - 1;
580
+
581
+ // Fix position in Node where some (internal) code is prepended.
582
+ // See https://github.com/evanw/node-source-map-support/issues/36
583
+ // Header removed in node at ^10.16 || >=11.11.0
584
+ // v11 is not an LTS candidate, we can just test the one version with it.
585
+ // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11
586
+ var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
587
+ var headerLength = noHeader.test(process.version) ? 0 : 62;
588
+ if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
589
+ column -= headerLength;
590
+ }
591
+
592
+ var position = mapSourcePosition({
593
+ source: source,
594
+ line: line,
595
+ column: column
596
+ });
597
+ state.curPosition = position;
598
+ frame = cloneCallSite(frame);
599
+ var originalFunctionName = frame.getFunctionName;
600
+ frame.getFunctionName = function() {
601
+ if (state.nextPosition == null) {
602
+ return originalFunctionName();
603
+ }
604
+ return state.nextPosition.name || originalFunctionName();
605
+ };
606
+ frame.getFileName = function() { return position.source; };
607
+ frame.getLineNumber = function() { return position.line; };
608
+ frame.getColumnNumber = function() { return position.column + 1; };
609
+ frame.getScriptNameOrSourceURL = function() { return position.source; };
610
+ return frame;
611
+ }
612
+
613
+ // Code called using eval() needs special handling
614
+ var origin = frame.isEval() && frame.getEvalOrigin();
615
+ if (origin) {
616
+ origin = mapEvalOrigin(origin);
617
+ frame = cloneCallSite(frame);
618
+ frame.getEvalOrigin = function() { return origin; };
619
+ return frame;
620
+ }
621
+
622
+ // If we get here then we were unable to change the source position
623
+ return frame;
624
+ }
625
+
626
+ var kIsNodeError = undefined;
627
+ try {
628
+ // Get a deliberate ERR_INVALID_ARG_TYPE
629
+ // TODO is there a better way to reliably get an instance of NodeError?
630
+ path.resolve(123);
631
+ } catch(e) {
632
+ const symbols = Object.getOwnPropertySymbols(e);
633
+ const symbol = symbols.find(function (s) {return s.toString().indexOf('kIsNodeError') >= 0});
634
+ if(symbol) kIsNodeError = symbol;
635
+ }
636
+
637
+ const ErrorPrototypeToString = (err) =>Error.prototype.toString.call(err);
638
+
639
+ /** @param {HookState} hookState */
640
+ function createPrepareStackTrace(hookState) {
641
+ return prepareStackTrace;
642
+
643
+ // This function is part of the V8 stack trace API, for more info see:
644
+ // https://v8.dev/docs/stack-trace-api
645
+ function prepareStackTrace(error, stack) {
646
+ if(!hookState.enabled) return hookState.originalValue.apply(this, arguments);
647
+
648
+ if (sharedData.emptyCacheBetweenOperations) {
649
+ clearCaches();
650
+ }
651
+
652
+ // node gives its own errors special treatment. Mimic that behavior
653
+ // https://github.com/nodejs/node/blob/3cbaabc4622df1b4009b9d026a1a970bdbae6e89/lib/internal/errors.js#L118-L128
654
+ // https://github.com/nodejs/node/pull/39182
655
+ var errorString;
656
+ if (kIsNodeError) {
657
+ if(kIsNodeError in error) {
658
+ errorString = `${error.name} [${error.code}]: ${error.message}`;
659
+ } else {
660
+ errorString = ErrorPrototypeToString(error);
661
+ }
662
+ } else {
663
+ var name = error.name || 'Error';
664
+ var message = error.message || '';
665
+ errorString = message ? name + ": " + message : name;
666
+ }
667
+
668
+ var state = { nextPosition: null, curPosition: null };
669
+ var processedStack = [];
670
+ for (var i = stack.length - 1; i >= 0; i--) {
671
+ processedStack.push('\n at ' + wrapCallSite(stack[i], state));
672
+ state.nextPosition = state.curPosition;
673
+ }
674
+ state.curPosition = state.nextPosition = null;
675
+ return errorString + processedStack.reverse().join('');
676
+ }
677
+ }
678
+
679
+ // Generate position and snippet of original source with pointer
680
+ function getErrorSource(error) {
681
+ var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
682
+ if (match) {
683
+ var source = match[1];
684
+ var line = +match[2];
685
+ var column = +match[3];
686
+
687
+ // Support the inline sourceContents inside the source map
688
+ var contents = getFileContentsCache(source);
689
+
690
+ const sourceAsPath = tryFileURLToPath(source);
691
+
692
+ // Support files on disk
693
+ if (!contents && fs && fs.existsSync(sourceAsPath)) {
694
+ try {
695
+ contents = fs.readFileSync(sourceAsPath, 'utf8');
696
+ } catch (er) {
697
+ contents = '';
698
+ }
699
+ }
700
+
701
+ // Format the line from the original source code like node does
702
+ if (contents) {
703
+ var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
704
+ if (code) {
705
+ return source + ':' + line + '\n' + code + '\n' +
706
+ new Array(column).join(' ') + '^';
707
+ }
708
+ }
709
+ }
710
+ return null;
711
+ }
712
+
713
+ function printFatalErrorUponExit (error) {
714
+ var source = getErrorSource(error);
715
+
716
+ // Ensure error is printed synchronously and not truncated
717
+ if (process.stderr._handle && process.stderr._handle.setBlocking) {
718
+ process.stderr._handle.setBlocking(true);
719
+ }
720
+
721
+ if (source) {
722
+ console.error(source);
723
+ }
724
+
725
+ // Matches node's behavior for colorized output
726
+ console.error(
727
+ util.inspect(error, {
728
+ customInspect: false,
729
+ colors: process.stderr.isTTY
730
+ })
731
+ );
732
+ }
733
+
734
+ function shimEmitUncaughtException () {
735
+ const originalValue = process.emit;
736
+ var hook = sharedData.processEmitHook = {
737
+ enabled: true,
738
+ originalValue,
739
+ installedValue: undefined
740
+ };
741
+ var isTerminatingDueToFatalException = false;
742
+ var fatalException;
743
+
744
+ process.emit = sharedData.processEmitHook.installedValue = function (type) {
745
+ const hadListeners = originalValue.apply(this, arguments);
746
+ if(hook.enabled) {
747
+ if (type === 'uncaughtException' && !hadListeners) {
748
+ isTerminatingDueToFatalException = true;
749
+ fatalException = arguments[1];
750
+ process.exit(1);
751
+ }
752
+ if (type === 'exit' && isTerminatingDueToFatalException) {
753
+ printFatalErrorUponExit(fatalException);
754
+ }
755
+ }
756
+ return hadListeners;
757
+ };
758
+ }
759
+
760
+ var originalRetrieveFileHandlers = sharedData.retrieveFileHandlers.slice(0);
761
+ var originalRetrieveMapHandlers = sharedData.retrieveMapHandlers.slice(0);
762
+
763
+ exports.wrapCallSite = wrapCallSite;
764
+ exports.getErrorSource = getErrorSource;
765
+ exports.mapSourcePosition = mapSourcePosition;
766
+ exports.retrieveSourceMap = retrieveSourceMap;
767
+
768
+ exports.install = function(options) {
769
+ options = options || {};
770
+
771
+ if (options.environment) {
772
+ environment = options.environment;
773
+ if (["node", "browser", "auto"].indexOf(environment) === -1) {
774
+ throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}")
775
+ }
776
+ }
777
+
778
+ // Use dynamicRequire to avoid including in browser bundles
779
+ var Module = dynamicRequire(module, 'module');
780
+
781
+ // Redirect subsequent imports of "source-map-support"
782
+ // to this package
783
+ const {redirectConflictingLibrary = true, onConflictingLibraryRedirect} = options;
784
+ if(redirectConflictingLibrary) {
785
+ if (!sharedData.moduleResolveFilenameHook) {
786
+ const originalValue = Module._resolveFilename;
787
+ const moduleResolveFilenameHook = sharedData.moduleResolveFilenameHook = {
788
+ enabled: true,
789
+ originalValue,
790
+ installedValue: undefined,
791
+ }
792
+ Module._resolveFilename = sharedData.moduleResolveFilenameHook.installedValue = function (request, parent, isMain, options) {
793
+ if (moduleResolveFilenameHook.enabled) {
794
+ // Match all source-map-support entrypoints: source-map-support, source-map-support/register
795
+ let requestRedirect;
796
+ if (request === 'source-map-support') {
797
+ requestRedirect = './';
798
+ } else if (request === 'source-map-support/register') {
799
+ requestRedirect = './register';
800
+ }
801
+
802
+ if (requestRedirect !== undefined) {
803
+ const newRequest = require.resolve(requestRedirect);
804
+ for (const cb of sharedData.onConflictingLibraryRedirectArr) {
805
+ cb(request, parent, isMain, options, newRequest);
806
+ }
807
+ request = newRequest;
808
+ }
809
+ }
810
+
811
+ return originalValue.call(this, request, parent, isMain, options);
812
+ }
813
+ }
814
+ if (onConflictingLibraryRedirect) {
815
+ sharedData.onConflictingLibraryRedirectArr.push(onConflictingLibraryRedirect);
816
+ }
817
+ }
818
+
819
+ // Allow sources to be found by methods other than reading the files
820
+ // directly from disk.
821
+ if (options.retrieveFile) {
822
+ if (options.overrideRetrieveFile) {
823
+ sharedData.retrieveFileHandlers.length = 0;
824
+ }
825
+
826
+ sharedData.retrieveFileHandlers.unshift(options.retrieveFile);
827
+ }
828
+
829
+ // Allow source maps to be found by methods other than reading the files
830
+ // directly from disk.
831
+ if (options.retrieveSourceMap) {
832
+ if (options.overrideRetrieveSourceMap) {
833
+ sharedData.retrieveMapHandlers.length = 0;
834
+ }
835
+
836
+ sharedData.retrieveMapHandlers.unshift(options.retrieveSourceMap);
837
+ }
838
+
839
+ // Support runtime transpilers that include inline source maps
840
+ if (options.hookRequire && !isInBrowser()) {
841
+ var $compile = Module.prototype._compile;
842
+
843
+ if (!$compile.__sourceMapSupport) {
844
+ Module.prototype._compile = function(content, filename) {
845
+ setFileContentsCache(filename, content);
846
+ setSourceMapCache(filename, undefined);
847
+ return $compile.call(this, content, filename);
848
+ };
849
+
850
+ Module.prototype._compile.__sourceMapSupport = true;
851
+ }
852
+ }
853
+
854
+ // Configure options
855
+ if (!sharedData.emptyCacheBetweenOperations) {
856
+ sharedData.emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ?
857
+ options.emptyCacheBetweenOperations : false;
858
+ }
859
+
860
+
861
+ // Install the error reformatter
862
+ if (!sharedData.errorPrepareStackTraceHook) {
863
+ const originalValue = Error.prepareStackTrace;
864
+ sharedData.errorPrepareStackTraceHook = {
865
+ enabled: true,
866
+ originalValue,
867
+ installedValue: undefined
868
+ };
869
+ Error.prepareStackTrace = sharedData.errorPrepareStackTraceHook.installedValue = createPrepareStackTrace(sharedData.errorPrepareStackTraceHook);
870
+ }
871
+
872
+ if (!sharedData.processEmitHook) {
873
+ var installHandler = 'handleUncaughtExceptions' in options ?
874
+ options.handleUncaughtExceptions : true;
875
+
876
+ // Do not override 'uncaughtException' with our own handler in Node.js
877
+ // Worker threads. Workers pass the error to the main thread as an event,
878
+ // rather than printing something to stderr and exiting.
879
+ try {
880
+ // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify.
881
+ var worker_threads = dynamicRequire(module, 'worker_threads');
882
+ if (worker_threads.isMainThread === false) {
883
+ installHandler = false;
884
+ }
885
+ } catch(e) {}
886
+
887
+ // Provide the option to not install the uncaught exception handler. This is
888
+ // to support other uncaught exception handlers (in test frameworks, for
889
+ // example). If this handler is not installed and there are no other uncaught
890
+ // exception handlers, uncaught exceptions will be caught by node's built-in
891
+ // exception handler and the process will still be terminated. However, the
892
+ // generated JavaScript code will be shown above the stack trace instead of
893
+ // the original source code.
894
+ if (installHandler && hasGlobalProcessEventEmitter()) {
895
+ shimEmitUncaughtException();
896
+ }
897
+ }
898
+ };
899
+
900
+ exports.uninstall = function() {
901
+ if(sharedData.processEmitHook) {
902
+ // Disable behavior
903
+ sharedData.processEmitHook.enabled = false;
904
+ // If possible, remove our hook function. May not be possible if subsequent third-party hooks have wrapped around us.
905
+ if(process.emit === sharedData.processEmitHook.installedValue) {
906
+ process.emit = sharedData.processEmitHook.originalValue;
907
+ }
908
+ sharedData.processEmitHook = undefined;
909
+ }
910
+ if(sharedData.errorPrepareStackTraceHook) {
911
+ // Disable behavior
912
+ sharedData.errorPrepareStackTraceHook.enabled = false;
913
+ // If possible or necessary, remove our hook function.
914
+ // In vanilla environments, prepareStackTrace is `undefined`.
915
+ // We cannot delegate to `undefined` the way we can to a function w/`.apply()`; our only option is to remove the function.
916
+ // If we are the *first* hook installed, and another was installed on top of us, we have no choice but to remove both.
917
+ if(Error.prepareStackTrace === sharedData.errorPrepareStackTraceHook.installedValue || typeof sharedData.errorPrepareStackTraceHook.originalValue !== 'function') {
918
+ Error.prepareStackTrace = sharedData.errorPrepareStackTraceHook.originalValue;
919
+ }
920
+ sharedData.errorPrepareStackTraceHook = undefined;
921
+ }
922
+ if (sharedData.moduleResolveFilenameHook) {
923
+ // Disable behavior
924
+ sharedData.moduleResolveFilenameHook.enabled = false;
925
+ // If possible, remove our hook function. May not be possible if subsequent third-party hooks have wrapped around us.
926
+ var Module = dynamicRequire(module, 'module');
927
+ if(Module._resolveFilename === sharedData.moduleResolveFilenameHook.installedValue) {
928
+ Module._resolveFilename = sharedData.moduleResolveFilenameHook.originalValue;
929
+ }
930
+ sharedData.moduleResolveFilenameHook = undefined;
931
+ }
932
+ sharedData.onConflictingLibraryRedirectArr.length = 0;
933
+ }
934
+
935
+ exports.resetRetrieveHandlers = function() {
936
+ sharedData.retrieveFileHandlers.length = 0;
937
+ sharedData.retrieveMapHandlers.length = 0;
938
+ }
ui/node_modules/@react-stately/utils/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2019 Adobe
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
ui/node_modules/@react-stately/utils/README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # @react-stately/utils
2
+
3
+ This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
ui/node_modules/@react-stately/utils/dist/import.mjs ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import {useControlledState as $458b0a5536c1a7cf$export$40bfa8c7b0832715} from "./useControlledState.mjs";
2
+ import {clamp as $9446cca9a3875146$export$7d15b64cf5a3a4c4, snapValueToStep as $9446cca9a3875146$export$cb6e0bb50bc19463, toFixedNumber as $9446cca9a3875146$export$b6268554fba451f} from "./number.mjs";
3
+
4
+ /*
5
+ * Copyright 2020 Adobe. All rights reserved.
6
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License. You may obtain a copy
8
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software distributed under
11
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ * OF ANY KIND, either express or implied. See the License for the specific language
13
+ * governing permissions and limitations under the License.
14
+ */
15
+
16
+
17
+
18
+ export {$458b0a5536c1a7cf$export$40bfa8c7b0832715 as useControlledState, $9446cca9a3875146$export$7d15b64cf5a3a4c4 as clamp, $9446cca9a3875146$export$cb6e0bb50bc19463 as snapValueToStep, $9446cca9a3875146$export$b6268554fba451f as toFixedNumber};
19
+ //# sourceMappingURL=module.js.map
ui/node_modules/@react-stately/utils/dist/main.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var $8d8fdfab47455712$exports = require("./useControlledState.main.js");
2
+ var $ac8e4d4816275668$exports = require("./number.main.js");
3
+
4
+
5
+ function $parcel$export(e, n, v, s) {
6
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
+ }
8
+
9
+ $parcel$export(module.exports, "useControlledState", () => $8d8fdfab47455712$exports.useControlledState);
10
+ $parcel$export(module.exports, "clamp", () => $ac8e4d4816275668$exports.clamp);
11
+ $parcel$export(module.exports, "snapValueToStep", () => $ac8e4d4816275668$exports.snapValueToStep);
12
+ $parcel$export(module.exports, "toFixedNumber", () => $ac8e4d4816275668$exports.toFixedNumber);
13
+ /*
14
+ * Copyright 2020 Adobe. All rights reserved.
15
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
+ * you may not use this file except in compliance with the License. You may obtain a copy
17
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software distributed under
20
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
21
+ * OF ANY KIND, either express or implied. See the License for the specific language
22
+ * governing permissions and limitations under the License.
23
+ */
24
+
25
+
26
+
27
+ //# sourceMappingURL=main.js.map
ui/node_modules/@react-stately/utils/dist/main.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/utils/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useControlledState} from './useControlledState';\nexport {clamp, snapValueToStep, toFixedNumber} from './number';\n"],"names":[],"version":3,"file":"main.js.map"}
ui/node_modules/@react-stately/utils/dist/module.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import {useControlledState as $458b0a5536c1a7cf$export$40bfa8c7b0832715} from "./useControlledState.module.js";
2
+ import {clamp as $9446cca9a3875146$export$7d15b64cf5a3a4c4, snapValueToStep as $9446cca9a3875146$export$cb6e0bb50bc19463, toFixedNumber as $9446cca9a3875146$export$b6268554fba451f} from "./number.module.js";
3
+
4
+ /*
5
+ * Copyright 2020 Adobe. All rights reserved.
6
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License. You may obtain a copy
8
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software distributed under
11
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12
+ * OF ANY KIND, either express or implied. See the License for the specific language
13
+ * governing permissions and limitations under the License.
14
+ */
15
+
16
+
17
+
18
+ export {$458b0a5536c1a7cf$export$40bfa8c7b0832715 as useControlledState, $9446cca9a3875146$export$7d15b64cf5a3a4c4 as clamp, $9446cca9a3875146$export$cb6e0bb50bc19463 as snapValueToStep, $9446cca9a3875146$export$b6268554fba451f as toFixedNumber};
19
+ //# sourceMappingURL=module.js.map
ui/node_modules/@react-stately/utils/dist/module.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"mappings":";;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/utils/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useControlledState} from './useControlledState';\nexport {clamp, snapValueToStep, toFixedNumber} from './number';\n"],"names":[],"version":3,"file":"module.js.map"}
ui/node_modules/@react-stately/utils/dist/number.main.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "clamp", () => $ac8e4d4816275668$export$7d15b64cf5a3a4c4);
7
+ $parcel$export(module.exports, "snapValueToStep", () => $ac8e4d4816275668$export$cb6e0bb50bc19463);
8
+ $parcel$export(module.exports, "toFixedNumber", () => $ac8e4d4816275668$export$b6268554fba451f);
9
+ /*
10
+ * Copyright 2020 Adobe. All rights reserved.
11
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License. You may obtain a copy
13
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software distributed under
16
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
+ * OF ANY KIND, either express or implied. See the License for the specific language
18
+ * governing permissions and limitations under the License.
19
+ */ /**
20
+ * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.
21
+ */ function $ac8e4d4816275668$export$7d15b64cf5a3a4c4(value, min = -Infinity, max = Infinity) {
22
+ let newValue = Math.min(Math.max(value, min), max);
23
+ return newValue;
24
+ }
25
+ function $ac8e4d4816275668$export$e1a7b8e69ef6c52f(value, step) {
26
+ let roundedValue = value;
27
+ let stepString = step.toString();
28
+ let pointIndex = stepString.indexOf('.');
29
+ let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
30
+ if (precision > 0) {
31
+ let pow = Math.pow(10, precision);
32
+ roundedValue = Math.round(roundedValue * pow) / pow;
33
+ }
34
+ return roundedValue;
35
+ }
36
+ function $ac8e4d4816275668$export$cb6e0bb50bc19463(value, min, max, step) {
37
+ min = Number(min);
38
+ max = Number(max);
39
+ let remainder = (value - (isNaN(min) ? 0 : min)) % step;
40
+ let snappedValue = $ac8e4d4816275668$export$e1a7b8e69ef6c52f(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
41
+ if (!isNaN(min)) {
42
+ if (snappedValue < min) snappedValue = min;
43
+ else if (!isNaN(max) && snappedValue > max) snappedValue = min + Math.floor($ac8e4d4816275668$export$e1a7b8e69ef6c52f((max - min) / step, step)) * step;
44
+ } else if (!isNaN(max) && snappedValue > max) snappedValue = Math.floor($ac8e4d4816275668$export$e1a7b8e69ef6c52f(max / step, step)) * step;
45
+ // correct floating point behavior by rounding to step precision
46
+ snappedValue = $ac8e4d4816275668$export$e1a7b8e69ef6c52f(snappedValue, step);
47
+ return snappedValue;
48
+ }
49
+ function $ac8e4d4816275668$export$b6268554fba451f(value, digits, base = 10) {
50
+ const pow = Math.pow(base, digits);
51
+ return Math.round(value * pow) / pow;
52
+ }
53
+
54
+
55
+ //# sourceMappingURL=number.main.js.map
ui/node_modules/@react-stately/utils/dist/number.main.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED;;CAEC,GACM,SAAS,0CAAM,KAAa,EAAE,MAAc,CAAC,QAAQ,EAAE,MAAc,QAAQ;IAClF,IAAI,WAAW,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,MAAM;IAC9C,OAAO;AACT;AAEO,SAAS,0CAAqB,KAAa,EAAE,IAAY;IAC9D,IAAI,eAAe;IACnB,IAAI,aAAa,KAAK,QAAQ;IAC9B,IAAI,aAAa,WAAW,OAAO,CAAC;IACpC,IAAI,YAAY,cAAc,IAAI,WAAW,MAAM,GAAG,aAAa;IACnE,IAAI,YAAY,GAAG;QACjB,IAAI,MAAM,KAAK,GAAG,CAAC,IAAI;QACvB,eAAe,KAAK,KAAK,CAAC,eAAe,OAAO;IAClD;IACA,OAAO;AACT;AAEO,SAAS,0CAAgB,KAAa,EAAE,GAAuB,EAAE,GAAuB,EAAE,IAAY;IAC3G,MAAM,OAAO;IACb,MAAM,OAAO;IACb,IAAI,YAAa,AAAC,CAAA,QAAS,CAAA,MAAM,OAAO,IAAI,GAAE,CAAC,IAAK;IACpD,IAAI,eAAe,0CAAqB,KAAK,GAAG,CAAC,aAAa,KAAK,OAC/D,QAAQ,KAAK,IAAI,CAAC,aAAc,CAAA,OAAO,KAAK,GAAG,CAAC,UAAS,IACzD,QAAQ,WAAW;IAEvB,IAAI,CAAC,MAAM,MAAM;QACf,IAAI,eAAe,KACjB,eAAe;aACV,IAAI,CAAC,MAAM,QAAQ,eAAe,KACvC,eAAe,MAAM,KAAK,KAAK,CAAC,0CAAqB,AAAC,CAAA,MAAM,GAAE,IAAK,MAAM,SAAS;IAEtF,OAAO,IAAI,CAAC,MAAM,QAAQ,eAAe,KACvC,eAAe,KAAK,KAAK,CAAC,0CAAqB,MAAM,MAAM,SAAS;IAGtE,gEAAgE;IAChE,eAAe,0CAAqB,cAAc;IAElD,OAAO;AACT;AAGO,SAAS,yCAAc,KAAa,EAAE,MAAc,EAAE,OAAe,EAAE;IAC5E,MAAM,MAAM,KAAK,GAAG,CAAC,MAAM;IAE3B,OAAO,KAAK,KAAK,CAAC,QAAQ,OAAO;AACnC","sources":["packages/@react-stately/utils/src/number.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.\n */\nexport function clamp(value: number, min: number = -Infinity, max: number = Infinity): number {\n let newValue = Math.min(Math.max(value, min), max);\n return newValue;\n}\n\nexport function roundToStepPrecision(value: number, step: number) {\n let roundedValue = value;\n let stepString = step.toString();\n let pointIndex = stepString.indexOf('.');\n let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;\n if (precision > 0) {\n let pow = Math.pow(10, precision);\n roundedValue = Math.round(roundedValue * pow) / pow;\n }\n return roundedValue;\n}\n\nexport function snapValueToStep(value: number, min: number | undefined, max: number | undefined, step: number): number {\n min = Number(min);\n max = Number(max);\n let remainder = ((value - (isNaN(min) ? 0 : min)) % step);\n let snappedValue = roundToStepPrecision(Math.abs(remainder) * 2 >= step\n ? value + Math.sign(remainder) * (step - Math.abs(remainder))\n : value - remainder, step);\n\n if (!isNaN(min)) {\n if (snappedValue < min) {\n snappedValue = min;\n } else if (!isNaN(max) && snappedValue > max) {\n snappedValue = min + Math.floor(roundToStepPrecision((max - min) / step, step)) * step;\n }\n } else if (!isNaN(max) && snappedValue > max) {\n snappedValue = Math.floor(roundToStepPrecision(max / step, step)) * step;\n }\n\n // correct floating point behavior by rounding to step precision\n snappedValue = roundToStepPrecision(snappedValue, step);\n\n return snappedValue;\n}\n\n/* Takes a value and rounds off to the number of digits. */\nexport function toFixedNumber(value: number, digits: number, base: number = 10): number {\n const pow = Math.pow(base, digits);\n\n return Math.round(value * pow) / pow;\n}\n"],"names":[],"version":3,"file":"number.main.js.map"}
ui/node_modules/@react-stately/utils/dist/number.mjs ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */ /**
12
+ * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.
13
+ */ function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min = -Infinity, max = Infinity) {
14
+ let newValue = Math.min(Math.max(value, min), max);
15
+ return newValue;
16
+ }
17
+ function $9446cca9a3875146$export$e1a7b8e69ef6c52f(value, step) {
18
+ let roundedValue = value;
19
+ let stepString = step.toString();
20
+ let pointIndex = stepString.indexOf('.');
21
+ let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
22
+ if (precision > 0) {
23
+ let pow = Math.pow(10, precision);
24
+ roundedValue = Math.round(roundedValue * pow) / pow;
25
+ }
26
+ return roundedValue;
27
+ }
28
+ function $9446cca9a3875146$export$cb6e0bb50bc19463(value, min, max, step) {
29
+ min = Number(min);
30
+ max = Number(max);
31
+ let remainder = (value - (isNaN(min) ? 0 : min)) % step;
32
+ let snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
33
+ if (!isNaN(min)) {
34
+ if (snappedValue < min) snappedValue = min;
35
+ else if (!isNaN(max) && snappedValue > max) snappedValue = min + Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f((max - min) / step, step)) * step;
36
+ } else if (!isNaN(max) && snappedValue > max) snappedValue = Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f(max / step, step)) * step;
37
+ // correct floating point behavior by rounding to step precision
38
+ snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(snappedValue, step);
39
+ return snappedValue;
40
+ }
41
+ function $9446cca9a3875146$export$b6268554fba451f(value, digits, base = 10) {
42
+ const pow = Math.pow(base, digits);
43
+ return Math.round(value * pow) / pow;
44
+ }
45
+
46
+
47
+ export {$9446cca9a3875146$export$7d15b64cf5a3a4c4 as clamp, $9446cca9a3875146$export$e1a7b8e69ef6c52f as roundToStepPrecision, $9446cca9a3875146$export$cb6e0bb50bc19463 as snapValueToStep, $9446cca9a3875146$export$b6268554fba451f as toFixedNumber};
48
+ //# sourceMappingURL=number.module.js.map
ui/node_modules/@react-stately/utils/dist/number.module.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */ /**
12
+ * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.
13
+ */ function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min = -Infinity, max = Infinity) {
14
+ let newValue = Math.min(Math.max(value, min), max);
15
+ return newValue;
16
+ }
17
+ function $9446cca9a3875146$export$e1a7b8e69ef6c52f(value, step) {
18
+ let roundedValue = value;
19
+ let stepString = step.toString();
20
+ let pointIndex = stepString.indexOf('.');
21
+ let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
22
+ if (precision > 0) {
23
+ let pow = Math.pow(10, precision);
24
+ roundedValue = Math.round(roundedValue * pow) / pow;
25
+ }
26
+ return roundedValue;
27
+ }
28
+ function $9446cca9a3875146$export$cb6e0bb50bc19463(value, min, max, step) {
29
+ min = Number(min);
30
+ max = Number(max);
31
+ let remainder = (value - (isNaN(min) ? 0 : min)) % step;
32
+ let snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
33
+ if (!isNaN(min)) {
34
+ if (snappedValue < min) snappedValue = min;
35
+ else if (!isNaN(max) && snappedValue > max) snappedValue = min + Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f((max - min) / step, step)) * step;
36
+ } else if (!isNaN(max) && snappedValue > max) snappedValue = Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f(max / step, step)) * step;
37
+ // correct floating point behavior by rounding to step precision
38
+ snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(snappedValue, step);
39
+ return snappedValue;
40
+ }
41
+ function $9446cca9a3875146$export$b6268554fba451f(value, digits, base = 10) {
42
+ const pow = Math.pow(base, digits);
43
+ return Math.round(value * pow) / pow;
44
+ }
45
+
46
+
47
+ export {$9446cca9a3875146$export$7d15b64cf5a3a4c4 as clamp, $9446cca9a3875146$export$e1a7b8e69ef6c52f as roundToStepPrecision, $9446cca9a3875146$export$cb6e0bb50bc19463 as snapValueToStep, $9446cca9a3875146$export$b6268554fba451f as toFixedNumber};
48
+ //# sourceMappingURL=number.module.js.map
ui/node_modules/@react-stately/utils/dist/number.module.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"mappings":"AAAA;;;;;;;;;;CAUC,GAED;;CAEC,GACM,SAAS,0CAAM,KAAa,EAAE,MAAc,CAAC,QAAQ,EAAE,MAAc,QAAQ;IAClF,IAAI,WAAW,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,MAAM;IAC9C,OAAO;AACT;AAEO,SAAS,0CAAqB,KAAa,EAAE,IAAY;IAC9D,IAAI,eAAe;IACnB,IAAI,aAAa,KAAK,QAAQ;IAC9B,IAAI,aAAa,WAAW,OAAO,CAAC;IACpC,IAAI,YAAY,cAAc,IAAI,WAAW,MAAM,GAAG,aAAa;IACnE,IAAI,YAAY,GAAG;QACjB,IAAI,MAAM,KAAK,GAAG,CAAC,IAAI;QACvB,eAAe,KAAK,KAAK,CAAC,eAAe,OAAO;IAClD;IACA,OAAO;AACT;AAEO,SAAS,0CAAgB,KAAa,EAAE,GAAuB,EAAE,GAAuB,EAAE,IAAY;IAC3G,MAAM,OAAO;IACb,MAAM,OAAO;IACb,IAAI,YAAa,AAAC,CAAA,QAAS,CAAA,MAAM,OAAO,IAAI,GAAE,CAAC,IAAK;IACpD,IAAI,eAAe,0CAAqB,KAAK,GAAG,CAAC,aAAa,KAAK,OAC/D,QAAQ,KAAK,IAAI,CAAC,aAAc,CAAA,OAAO,KAAK,GAAG,CAAC,UAAS,IACzD,QAAQ,WAAW;IAEvB,IAAI,CAAC,MAAM,MAAM;QACf,IAAI,eAAe,KACjB,eAAe;aACV,IAAI,CAAC,MAAM,QAAQ,eAAe,KACvC,eAAe,MAAM,KAAK,KAAK,CAAC,0CAAqB,AAAC,CAAA,MAAM,GAAE,IAAK,MAAM,SAAS;IAEtF,OAAO,IAAI,CAAC,MAAM,QAAQ,eAAe,KACvC,eAAe,KAAK,KAAK,CAAC,0CAAqB,MAAM,MAAM,SAAS;IAGtE,gEAAgE;IAChE,eAAe,0CAAqB,cAAc;IAElD,OAAO;AACT;AAGO,SAAS,yCAAc,KAAa,EAAE,MAAc,EAAE,OAAe,EAAE;IAC5E,MAAM,MAAM,KAAK,GAAG,CAAC,MAAM;IAE3B,OAAO,KAAK,KAAK,CAAC,QAAQ,OAAO;AACnC","sources":["packages/@react-stately/utils/src/number.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.\n */\nexport function clamp(value: number, min: number = -Infinity, max: number = Infinity): number {\n let newValue = Math.min(Math.max(value, min), max);\n return newValue;\n}\n\nexport function roundToStepPrecision(value: number, step: number) {\n let roundedValue = value;\n let stepString = step.toString();\n let pointIndex = stepString.indexOf('.');\n let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;\n if (precision > 0) {\n let pow = Math.pow(10, precision);\n roundedValue = Math.round(roundedValue * pow) / pow;\n }\n return roundedValue;\n}\n\nexport function snapValueToStep(value: number, min: number | undefined, max: number | undefined, step: number): number {\n min = Number(min);\n max = Number(max);\n let remainder = ((value - (isNaN(min) ? 0 : min)) % step);\n let snappedValue = roundToStepPrecision(Math.abs(remainder) * 2 >= step\n ? value + Math.sign(remainder) * (step - Math.abs(remainder))\n : value - remainder, step);\n\n if (!isNaN(min)) {\n if (snappedValue < min) {\n snappedValue = min;\n } else if (!isNaN(max) && snappedValue > max) {\n snappedValue = min + Math.floor(roundToStepPrecision((max - min) / step, step)) * step;\n }\n } else if (!isNaN(max) && snappedValue > max) {\n snappedValue = Math.floor(roundToStepPrecision(max / step, step)) * step;\n }\n\n // correct floating point behavior by rounding to step precision\n snappedValue = roundToStepPrecision(snappedValue, step);\n\n return snappedValue;\n}\n\n/* Takes a value and rounds off to the number of digits. */\nexport function toFixedNumber(value: number, digits: number, base: number = 10): number {\n const pow = Math.pow(base, digits);\n\n return Math.round(value * pow) / pow;\n}\n"],"names":[],"version":3,"file":"number.module.js.map"}