llmz 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abort-signal.test.d.ts +1 -0
- package/dist/{chunk-KED57HR5.cjs → chunk-2NEOPXCS.cjs} +14 -14
- package/dist/{chunk-WHNOR4ZU.cjs → chunk-4VYDQ3VF.cjs} +7 -7
- package/dist/{chunk-KMZDFWYZ.cjs → chunk-54G63644.cjs} +3 -3
- package/dist/{chunk-7WRN4E42.js → chunk-5XC6ZMS5.js} +197 -18
- package/dist/{chunk-G3LSBWJT.js → chunk-5YXGNMER.js} +2 -2
- package/dist/{chunk-TOLKC56V.js → chunk-7HBJXJ6W.js} +6 -6
- package/dist/{chunk-VPTFUOIK.js → chunk-E5YW5YQN.js} +2 -2
- package/dist/{chunk-ZORRILUV.js → chunk-EKXZXQJB.js} +1 -1
- package/dist/{chunk-3G3BS5IA.cjs → chunk-F4OZHUMS.cjs} +9 -9
- package/dist/{chunk-GZPN7RGH.cjs → chunk-I3WYQ7CA.cjs} +2 -2
- package/dist/{chunk-4NQXHRJ2.cjs → chunk-K4IVNLQG.cjs} +28 -28
- package/dist/{chunk-6PIIXJNI.js → chunk-L2ZDZKCB.js} +3 -3
- package/dist/{chunk-UQOBUJIQ.cjs → chunk-RKKRSBX3.cjs} +197 -18
- package/dist/{chunk-5FWOHMO4.cjs → chunk-RMIS25AA.cjs} +25 -25
- package/dist/{chunk-ZEGD4BQJ.cjs → chunk-SJWWH25O.cjs} +59 -42
- package/dist/{chunk-RUOMTFUI.cjs → chunk-SZLX27VX.cjs} +18 -18
- package/dist/{chunk-QY2TRWGK.cjs → chunk-TLOQBZKW.cjs} +3 -3
- package/dist/{chunk-HA52ORZL.js → chunk-UOENUUUV.js} +1 -1
- package/dist/{chunk-ORQP26SZ.js → chunk-UOPTKXLE.js} +1 -1
- package/dist/{chunk-3JYCCI4S.js → chunk-VWQUGDHE.js} +1 -1
- package/dist/{chunk-B42FGPCX.js → chunk-YV5N57D3.js} +1 -1
- package/dist/{chunk-V6VEBUMU.js → chunk-ZSZTPETU.js} +24 -7
- package/dist/citations.test.d.ts +1 -0
- package/dist/compiler/compiler.test.d.ts +1 -0
- package/dist/compiler/plugins/html-to-markdown.test.d.ts +1 -0
- package/dist/compiler/plugins/jsx-undefined-vars.test.d.ts +1 -0
- package/dist/compiler/plugins/line-tracking.test.d.ts +1 -0
- package/dist/compiler/plugins/track-tool-calls.test.d.ts +1 -0
- package/dist/compiler/plugins/variable-extraction.test.d.ts +1 -0
- package/dist/{component-EOMTLA64.js → component-GNYIA77X.js} +3 -3
- package/dist/component-J72CVOKY.cjs +18 -0
- package/dist/component.test.d.ts +1 -0
- package/dist/dual-modes-5CQEVSIG.js +12 -0
- package/dist/dual-modes-A2JSHXJU.cjs +12 -0
- package/dist/exit-56DISPLS.js +8 -0
- package/dist/exit-OOGJ3TAS.cjs +8 -0
- package/dist/exit-parser.test.d.ts +1 -0
- package/dist/handlers.test.d.ts +1 -0
- package/dist/hoist.test.d.ts +1 -0
- package/dist/index.cjs +48 -48
- package/dist/index.js +21 -21
- package/dist/inspect.test.d.ts +1 -0
- package/dist/jsx-ENFGHP6S.cjs +13 -0
- package/dist/{jsx-AEHVFB3L.js → jsx-PCXQVMLU.js} +2 -2
- package/dist/{llmz-LCFWXQDP.js → llmz-MIV5CZU5.js} +20 -12
- package/dist/{llmz-VNYSCUF6.cjs → llmz-TR7SDCOC.cjs} +37 -29
- package/dist/llmz.test.d.ts +1 -0
- package/dist/objects.test.d.ts +1 -0
- package/dist/prompts/common.test.d.ts +1 -0
- package/dist/stack-traces.test.d.ts +1 -0
- package/dist/tool-5JXTEQNW.js +11 -0
- package/dist/tool-NAGC3ZMN.cjs +11 -0
- package/dist/tool.test.d.ts +1 -0
- package/dist/transcript.test.d.ts +1 -0
- package/dist/truncator-KI6BAAIH.cjs +10 -0
- package/dist/{truncator-BSP6PQPC.js → truncator-WDLDMAE7.js} +3 -3
- package/dist/truncator.test.d.ts +1 -0
- package/dist/typings-SNGR4WYT.cjs +10 -0
- package/dist/{typings-AQGJAMVH.js → typings-ZO63Z4TF.js} +3 -3
- package/dist/typings.test.d.ts +1 -0
- package/dist/utils-BZUEJT4W.cjs +39 -0
- package/dist/{utils-RQHQ2KOG.js → utils-D3J443FA.js} +2 -2
- package/dist/utils.test.d.ts +1 -0
- package/dist/{vm-Y3WY2627.js → vm-5IM44JHK.js} +3 -3
- package/dist/vm-VYYSPUQ5.cjs +10 -0
- package/dist/vm-jsx.test.d.ts +1 -0
- package/dist/vm.test.d.ts +1 -0
- package/eslint.config.mjs +1 -1
- package/package.json +5 -4
- package/dist/component-AAEMNCHB.cjs +0 -18
- package/dist/dual-modes-KBMP2AAH.js +0 -12
- package/dist/dual-modes-WCJ3HAB3.cjs +0 -12
- package/dist/exit-XAYKJ6TR.cjs +0 -8
- package/dist/exit-YLO7BY7Z.js +0 -8
- package/dist/jsx-AJAXBWFE.cjs +0 -13
- package/dist/tool-M2N7SKNZ.js +0 -11
- package/dist/tool-MRVFOE5N.cjs +0 -11
- package/dist/truncator-W3NXBLYJ.cjs +0 -10
- package/dist/typings-7C2RXO75.cjs +0 -10
- package/dist/utils-L5QAQXV2.cjs +0 -39
- package/dist/vm-VFORKC54.cjs +0 -10
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkSJWWH25Ocjs = require('./chunk-SJWWH25O.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSZLX27VXcjs = require('./chunk-SZLX27VX.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkPK72FAKDcjs = require('./chunk-PK72FAKD.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkF4OZHUMScjs = require('./chunk-F4OZHUMS.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkTLOQBZKWcjs = require('./chunk-TLOQBZKW.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkI3WYQ7CAcjs = require('./chunk-I3WYQ7CA.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkRKKRSBX3cjs = require('./chunk-RKKRSBX3.cjs');
|
|
26
26
|
|
|
27
27
|
// src/exit-parser.ts
|
|
28
28
|
function isValuePrimitive(value) {
|
|
@@ -189,7 +189,7 @@ function parseExit(returnValue, exits) {
|
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
if (!returnExit.zSchema) {
|
|
192
|
-
const otherProps =
|
|
192
|
+
const otherProps = _chunkRKKRSBX3cjs.omit_default.call(void 0, returnValue, "action");
|
|
193
193
|
const value = Object.keys(otherProps).length === 1 ? Object.values(otherProps)[0] : otherProps;
|
|
194
194
|
return {
|
|
195
195
|
success: true,
|
|
@@ -200,7 +200,7 @@ function parseExit(returnValue, exits) {
|
|
|
200
200
|
let valueToValidate = returnValue.value;
|
|
201
201
|
let alternativeValue = void 0;
|
|
202
202
|
if (valueToValidate === void 0) {
|
|
203
|
-
const otherProps =
|
|
203
|
+
const otherProps = _chunkRKKRSBX3cjs.omit_default.call(void 0, returnValue, "action");
|
|
204
204
|
if (Object.keys(otherProps).length > 0) {
|
|
205
205
|
valueToValidate = otherProps;
|
|
206
206
|
if (Object.keys(otherProps).length === 1) {
|
|
@@ -238,7 +238,7 @@ function parseExit(returnValue, exits) {
|
|
|
238
238
|
if (returnValue.value !== void 0) {
|
|
239
239
|
generatedStatement += `, value: ${generatedType}`;
|
|
240
240
|
} else {
|
|
241
|
-
const otherProps =
|
|
241
|
+
const otherProps = _chunkRKKRSBX3cjs.omit_default.call(void 0, returnValue, "action");
|
|
242
242
|
const propKeys = Object.keys(otherProps);
|
|
243
243
|
if (propKeys.length === 1) {
|
|
244
244
|
generatedStatement += `, ${propKeys[0]}: ${generatedType}`;
|
|
@@ -493,10 +493,10 @@ var Snapshot = class _Snapshot {
|
|
|
493
493
|
};
|
|
494
494
|
function parseVariables(variableMap) {
|
|
495
495
|
return Object.entries(variableMap).map(([name, value]) => {
|
|
496
|
-
const type =
|
|
496
|
+
const type = _chunkSJWWH25Ocjs.extractType.call(void 0, value);
|
|
497
497
|
const bytes = JSON.stringify(value || "").length;
|
|
498
498
|
const truncated = bytes > MAX_SNAPSHOT_SIZE_BYTES;
|
|
499
|
-
return truncated ? { name, type, bytes, truncated: true, preview: _nullishCoalesce(
|
|
499
|
+
return truncated ? { name, type, bytes, truncated: true, preview: _nullishCoalesce(_chunkSJWWH25Ocjs.inspect.call(void 0, value, name), () => ( "N/A")) } : { name, type, bytes, truncated: false, value };
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
502
|
|
|
@@ -507,9 +507,9 @@ function getMessagePreview(message) {
|
|
|
507
507
|
return message.content;
|
|
508
508
|
}
|
|
509
509
|
if (message.role === "event") {
|
|
510
|
-
return
|
|
510
|
+
return _chunkSJWWH25Ocjs.inspect.call(void 0, message.payload, message.name, { tokens: 1e3 });
|
|
511
511
|
}
|
|
512
|
-
return
|
|
512
|
+
return _chunkSJWWH25Ocjs.inspect.call(void 0, message, void 0, { tokens: 1e3 });
|
|
513
513
|
}
|
|
514
514
|
function getMessageType(message) {
|
|
515
515
|
if (message.role === "assistant" || message.role === "user" || message.role === "summary") {
|
|
@@ -933,15 +933,15 @@ var HookedArray = class extends Array {
|
|
|
933
933
|
};
|
|
934
934
|
|
|
935
935
|
// src/context.ts
|
|
936
|
-
var ThinkExit = new (0,
|
|
936
|
+
var ThinkExit = new (0, _chunkF4OZHUMScjs.Exit)({
|
|
937
937
|
name: "think",
|
|
938
938
|
description: "Think about the current situation and provide a response"
|
|
939
939
|
});
|
|
940
|
-
var ListenExit = new (0,
|
|
940
|
+
var ListenExit = new (0, _chunkF4OZHUMScjs.Exit)({
|
|
941
941
|
name: "listen",
|
|
942
942
|
description: "Listen to the user and provide a response"
|
|
943
943
|
});
|
|
944
|
-
var DefaultExit = new (0,
|
|
944
|
+
var DefaultExit = new (0, _chunkF4OZHUMScjs.Exit)({
|
|
945
945
|
name: "done",
|
|
946
946
|
description: "When the execution is sucessfully completed or when error recovery is not possible",
|
|
947
947
|
schema: _zui.z.discriminatedUnion("success", [
|
|
@@ -1098,7 +1098,7 @@ var Context = (_class2 = class {
|
|
|
1098
1098
|
|
|
1099
1099
|
|
|
1100
1100
|
|
|
1101
|
-
__init3() {this.version =
|
|
1101
|
+
__init3() {this.version = _chunkSJWWH25Ocjs.DualModePrompt}
|
|
1102
1102
|
__init4() {this.timeout = 6e4}
|
|
1103
1103
|
// Default timeout of 60 seconds
|
|
1104
1104
|
|
|
@@ -1134,12 +1134,12 @@ var Context = (_class2 = class {
|
|
|
1134
1134
|
const variables = {};
|
|
1135
1135
|
if ((lastIteration == null ? void 0 : lastIteration.status.type) === "thinking_requested") {
|
|
1136
1136
|
const lastThinkingVariables = lastIteration.status.thinking_requested.variables;
|
|
1137
|
-
if (
|
|
1138
|
-
Object.assign(variables,
|
|
1137
|
+
if (_chunkRKKRSBX3cjs.isPlainObject_default.call(void 0, lastThinkingVariables)) {
|
|
1138
|
+
Object.assign(variables, _chunkRKKRSBX3cjs.cloneDeep_default.call(void 0, lastThinkingVariables));
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
if (
|
|
1142
|
-
Object.assign(variables,
|
|
1141
|
+
if (_chunkRKKRSBX3cjs.isPlainObject_default.call(void 0, lastIteration == null ? void 0 : lastIteration.variables)) {
|
|
1142
|
+
Object.assign(variables, _chunkRKKRSBX3cjs.cloneDeep_default.call(void 0, _nullishCoalesce((lastIteration == null ? void 0 : lastIteration.variables), () => ( {}))));
|
|
1143
1143
|
}
|
|
1144
1144
|
if (((_a = this.snapshot) == null ? void 0 : _a.status.type) === "resolved") {
|
|
1145
1145
|
for (const v of this.snapshot.variables) {
|
|
@@ -1219,7 +1219,7 @@ var Context = (_class2 = class {
|
|
|
1219
1219
|
...lastIterationMessages,
|
|
1220
1220
|
{
|
|
1221
1221
|
role: "assistant",
|
|
1222
|
-
content:
|
|
1222
|
+
content: _chunkI3WYQ7CAcjs.wrapContent.call(void 0, _nullishCoalesce(((_c = lastIteration.llm) == null ? void 0 : _c.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1223
1223
|
},
|
|
1224
1224
|
await this.version.getThinkingMessage({
|
|
1225
1225
|
reason: lastIteration.status.thinking_requested.reason,
|
|
@@ -1232,7 +1232,7 @@ var Context = (_class2 = class {
|
|
|
1232
1232
|
...lastIterationMessages,
|
|
1233
1233
|
{
|
|
1234
1234
|
role: "assistant",
|
|
1235
|
-
content:
|
|
1235
|
+
content: _chunkI3WYQ7CAcjs.wrapContent.call(void 0, _nullishCoalesce(((_d = lastIteration.llm) == null ? void 0 : _d.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1236
1236
|
},
|
|
1237
1237
|
await this.version.getInvalidCodeMessage({
|
|
1238
1238
|
code: _nullishCoalesce(lastIteration.code, () => ( "// No code generated")),
|
|
@@ -1245,7 +1245,7 @@ var Context = (_class2 = class {
|
|
|
1245
1245
|
...lastIterationMessages,
|
|
1246
1246
|
{
|
|
1247
1247
|
role: "assistant",
|
|
1248
|
-
content:
|
|
1248
|
+
content: _chunkI3WYQ7CAcjs.wrapContent.call(void 0, _nullishCoalesce(((_e = lastIteration.llm) == null ? void 0 : _e.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1249
1249
|
},
|
|
1250
1250
|
await this.version.getInvalidCodeMessage({
|
|
1251
1251
|
code: _nullishCoalesce(lastIteration.code, () => ( "// No code generated")),
|
|
@@ -1258,7 +1258,7 @@ var Context = (_class2 = class {
|
|
|
1258
1258
|
...lastIterationMessages,
|
|
1259
1259
|
{
|
|
1260
1260
|
role: "assistant",
|
|
1261
|
-
content:
|
|
1261
|
+
content: _chunkI3WYQ7CAcjs.wrapContent.call(void 0, _nullishCoalesce(((_f = lastIteration.llm) == null ? void 0 : _f.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1262
1262
|
},
|
|
1263
1263
|
await this.version.getCodeExecutionErrorMessage({
|
|
1264
1264
|
message: lastIteration.status.execution_error.message,
|
|
@@ -1274,7 +1274,7 @@ var Context = (_class2 = class {
|
|
|
1274
1274
|
var _a, _b;
|
|
1275
1275
|
const instructions = await getValue(this.instructions, this);
|
|
1276
1276
|
const transcript = new TranscriptArray(await getValue(_nullishCoalesce(((_a = this.chat) == null ? void 0 : _a.transcript), () => ( [])), this));
|
|
1277
|
-
const tools =
|
|
1277
|
+
const tools = _chunkSZLX27VXcjs.Tool.withUniqueNames(await _asyncNullishCoalesce(await getValue(this.tools, this), async () => ( [])));
|
|
1278
1278
|
const objects = await _asyncNullishCoalesce(await getValue(this.objects, this), async () => ( []));
|
|
1279
1279
|
const exits = await _asyncNullishCoalesce(await getValue(this.exits, this), async () => ( []));
|
|
1280
1280
|
const components = await getValue(_nullishCoalesce(((_b = this.chat) == null ? void 0 : _b.components), () => ( [])), this);
|
|
@@ -1287,7 +1287,7 @@ var Context = (_class2 = class {
|
|
|
1287
1287
|
throw new Error("Too many tools. Expected at most 100 tools.");
|
|
1288
1288
|
}
|
|
1289
1289
|
for (const component of components) {
|
|
1290
|
-
|
|
1290
|
+
_chunkTLOQBZKWcjs.assertValidComponent.call(void 0, component.definition);
|
|
1291
1291
|
}
|
|
1292
1292
|
const ReservedToolNames = [
|
|
1293
1293
|
"think",
|
|
@@ -1306,7 +1306,7 @@ var Context = (_class2 = class {
|
|
|
1306
1306
|
"boolean",
|
|
1307
1307
|
"array"
|
|
1308
1308
|
];
|
|
1309
|
-
const MessageTool = this.chat && components.length ? new (0,
|
|
1309
|
+
const MessageTool = this.chat && components.length ? new (0, _chunkSZLX27VXcjs.Tool)({
|
|
1310
1310
|
name: "Message",
|
|
1311
1311
|
description: "Send a message to the user",
|
|
1312
1312
|
aliases: Array.from(
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTypings
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YV5N57D3.js";
|
|
4
4
|
import {
|
|
5
5
|
convertObjectToZuiLiterals,
|
|
6
6
|
isJsonSchema,
|
|
7
7
|
isValidIdentifier,
|
|
8
8
|
isZuiSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EKXZXQJB.js";
|
|
10
10
|
import {
|
|
11
11
|
isEmpty_default,
|
|
12
12
|
uniq_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5XC6ZMS5.js";
|
|
14
14
|
|
|
15
15
|
// src/tool.ts
|
|
16
16
|
import { z, transforms, ZodObject, ZodType } from "@bpinternal/zui";
|
|
@@ -1185,8 +1185,8 @@ function isKeyable(value) {
|
|
|
1185
1185
|
var isKeyable_default = isKeyable;
|
|
1186
1186
|
|
|
1187
1187
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
|
|
1188
|
-
function getMapData(
|
|
1189
|
-
var data =
|
|
1188
|
+
function getMapData(map2, key) {
|
|
1189
|
+
var data = map2.__data__;
|
|
1190
1190
|
return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1191
1191
|
}
|
|
1192
1192
|
var getMapData_default = getMapData;
|
|
@@ -1364,9 +1364,9 @@ var Uint8Array2 = root_default.Uint8Array;
|
|
|
1364
1364
|
var Uint8Array_default = Uint8Array2;
|
|
1365
1365
|
|
|
1366
1366
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js
|
|
1367
|
-
function mapToArray(
|
|
1368
|
-
var index = -1, result = Array(
|
|
1369
|
-
|
|
1367
|
+
function mapToArray(map2) {
|
|
1368
|
+
var index = -1, result = Array(map2.size);
|
|
1369
|
+
map2.forEach(function(value, key) {
|
|
1370
1370
|
result[++index] = [key, value];
|
|
1371
1371
|
});
|
|
1372
1372
|
return result;
|
|
@@ -2760,6 +2760,33 @@ function uniq(array) {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
var uniq_default = uniq;
|
|
2762
2762
|
|
|
2763
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toFinite.js
|
|
2764
|
+
var INFINITY4 = 1 / 0;
|
|
2765
|
+
var MAX_INTEGER = 17976931348623157e292;
|
|
2766
|
+
function toFinite(value) {
|
|
2767
|
+
if (!value) {
|
|
2768
|
+
return value === 0 ? value : 0;
|
|
2769
|
+
}
|
|
2770
|
+
value = toNumber_default(value);
|
|
2771
|
+
if (value === INFINITY4 || value === -INFINITY4) {
|
|
2772
|
+
var sign = value < 0 ? -1 : 1;
|
|
2773
|
+
return sign * MAX_INTEGER;
|
|
2774
|
+
}
|
|
2775
|
+
return value === value ? value : 0;
|
|
2776
|
+
}
|
|
2777
|
+
var toFinite_default = toFinite;
|
|
2778
|
+
|
|
2779
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toInteger.js
|
|
2780
|
+
function toInteger(value) {
|
|
2781
|
+
var result = toFinite_default(value), remainder = result % 1;
|
|
2782
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
2783
|
+
}
|
|
2784
|
+
var toInteger_default = toInteger;
|
|
2785
|
+
|
|
2786
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_metaMap.js
|
|
2787
|
+
var metaMap = WeakMap_default && new WeakMap_default();
|
|
2788
|
+
var metaMap_default = metaMap;
|
|
2789
|
+
|
|
2763
2790
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLodash.js
|
|
2764
2791
|
function baseLodash() {
|
|
2765
2792
|
}
|
|
@@ -2780,6 +2807,31 @@ LazyWrapper.prototype = baseCreate_default(baseLodash_default.prototype);
|
|
|
2780
2807
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
2781
2808
|
var LazyWrapper_default = LazyWrapper;
|
|
2782
2809
|
|
|
2810
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getData.js
|
|
2811
|
+
var getData = !metaMap_default ? noop_default : function(func) {
|
|
2812
|
+
return metaMap_default.get(func);
|
|
2813
|
+
};
|
|
2814
|
+
var getData_default = getData;
|
|
2815
|
+
|
|
2816
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_realNames.js
|
|
2817
|
+
var realNames = {};
|
|
2818
|
+
var realNames_default = realNames;
|
|
2819
|
+
|
|
2820
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getFuncName.js
|
|
2821
|
+
var objectProto18 = Object.prototype;
|
|
2822
|
+
var hasOwnProperty15 = objectProto18.hasOwnProperty;
|
|
2823
|
+
function getFuncName(func) {
|
|
2824
|
+
var result = func.name + "", array = realNames_default[result], length = hasOwnProperty15.call(realNames_default, result) ? array.length : 0;
|
|
2825
|
+
while (length--) {
|
|
2826
|
+
var data = array[length], otherFunc = data.func;
|
|
2827
|
+
if (otherFunc == null || otherFunc == func) {
|
|
2828
|
+
return data.name;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
return result;
|
|
2832
|
+
}
|
|
2833
|
+
var getFuncName_default = getFuncName;
|
|
2834
|
+
|
|
2783
2835
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_LodashWrapper.js
|
|
2784
2836
|
function LodashWrapper(value, chainAll) {
|
|
2785
2837
|
this.__wrapped__ = value;
|
|
@@ -2806,14 +2858,14 @@ function wrapperClone(wrapper) {
|
|
|
2806
2858
|
var wrapperClone_default = wrapperClone;
|
|
2807
2859
|
|
|
2808
2860
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/wrapperLodash.js
|
|
2809
|
-
var
|
|
2810
|
-
var
|
|
2861
|
+
var objectProto19 = Object.prototype;
|
|
2862
|
+
var hasOwnProperty16 = objectProto19.hasOwnProperty;
|
|
2811
2863
|
function lodash(value) {
|
|
2812
2864
|
if (isObjectLike_default(value) && !isArray_default(value) && !(value instanceof LazyWrapper_default)) {
|
|
2813
2865
|
if (value instanceof LodashWrapper_default) {
|
|
2814
2866
|
return value;
|
|
2815
2867
|
}
|
|
2816
|
-
if (
|
|
2868
|
+
if (hasOwnProperty16.call(value, "__wrapped__")) {
|
|
2817
2869
|
return wrapperClone_default(value);
|
|
2818
2870
|
}
|
|
2819
2871
|
}
|
|
@@ -2823,13 +2875,19 @@ lodash.prototype = baseLodash_default.prototype;
|
|
|
2823
2875
|
lodash.prototype.constructor = lodash;
|
|
2824
2876
|
var wrapperLodash_default = lodash;
|
|
2825
2877
|
|
|
2826
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
2827
|
-
function
|
|
2828
|
-
var
|
|
2829
|
-
|
|
2830
|
-
|
|
2878
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isLaziable.js
|
|
2879
|
+
function isLaziable(func) {
|
|
2880
|
+
var funcName = getFuncName_default(func), other = wrapperLodash_default[funcName];
|
|
2881
|
+
if (typeof other != "function" || !(funcName in LazyWrapper_default.prototype)) {
|
|
2882
|
+
return false;
|
|
2883
|
+
}
|
|
2884
|
+
if (func === other) {
|
|
2885
|
+
return true;
|
|
2886
|
+
}
|
|
2887
|
+
var data = getData_default(other);
|
|
2888
|
+
return !!data && func === data[0];
|
|
2831
2889
|
}
|
|
2832
|
-
var
|
|
2890
|
+
var isLaziable_default = isLaziable;
|
|
2833
2891
|
|
|
2834
2892
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js
|
|
2835
2893
|
var CLONE_DEEP_FLAG3 = 1;
|
|
@@ -2893,10 +2951,10 @@ function createAggregator(setter, initializer) {
|
|
|
2893
2951
|
var createAggregator_default = createAggregator;
|
|
2894
2952
|
|
|
2895
2953
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/countBy.js
|
|
2896
|
-
var
|
|
2897
|
-
var
|
|
2954
|
+
var objectProto20 = Object.prototype;
|
|
2955
|
+
var hasOwnProperty17 = objectProto20.hasOwnProperty;
|
|
2898
2956
|
var countBy = createAggregator_default(function(result, value, key) {
|
|
2899
|
-
if (
|
|
2957
|
+
if (hasOwnProperty17.call(result, key)) {
|
|
2900
2958
|
++result[key];
|
|
2901
2959
|
} else {
|
|
2902
2960
|
baseAssignValue_default(result, key, 1);
|
|
@@ -2904,6 +2962,45 @@ var countBy = createAggregator_default(function(result, value, key) {
|
|
|
2904
2962
|
});
|
|
2905
2963
|
var countBy_default = countBy;
|
|
2906
2964
|
|
|
2965
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToPairs.js
|
|
2966
|
+
function baseToPairs(object, props) {
|
|
2967
|
+
return arrayMap_default(props, function(key) {
|
|
2968
|
+
return [key, object[key]];
|
|
2969
|
+
});
|
|
2970
|
+
}
|
|
2971
|
+
var baseToPairs_default = baseToPairs;
|
|
2972
|
+
|
|
2973
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToPairs.js
|
|
2974
|
+
function setToPairs(set) {
|
|
2975
|
+
var index = -1, result = Array(set.size);
|
|
2976
|
+
set.forEach(function(value) {
|
|
2977
|
+
result[++index] = [value, value];
|
|
2978
|
+
});
|
|
2979
|
+
return result;
|
|
2980
|
+
}
|
|
2981
|
+
var setToPairs_default = setToPairs;
|
|
2982
|
+
|
|
2983
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createToPairs.js
|
|
2984
|
+
var mapTag8 = "[object Map]";
|
|
2985
|
+
var setTag8 = "[object Set]";
|
|
2986
|
+
function createToPairs(keysFunc) {
|
|
2987
|
+
return function(object) {
|
|
2988
|
+
var tag = getTag_default(object);
|
|
2989
|
+
if (tag == mapTag8) {
|
|
2990
|
+
return mapToArray_default(object);
|
|
2991
|
+
}
|
|
2992
|
+
if (tag == setTag8) {
|
|
2993
|
+
return setToPairs_default(object);
|
|
2994
|
+
}
|
|
2995
|
+
return baseToPairs_default(object, keysFunc(object));
|
|
2996
|
+
};
|
|
2997
|
+
}
|
|
2998
|
+
var createToPairs_default = createToPairs;
|
|
2999
|
+
|
|
3000
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPairs.js
|
|
3001
|
+
var toPairs = createToPairs_default(keys_default);
|
|
3002
|
+
var toPairs_default = toPairs;
|
|
3003
|
+
|
|
2907
3004
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.js
|
|
2908
3005
|
function baseFilter(collection, predicate) {
|
|
2909
3006
|
var result = [];
|
|
@@ -2933,6 +3030,74 @@ function baseMap(collection, iteratee) {
|
|
|
2933
3030
|
}
|
|
2934
3031
|
var baseMap_default = baseMap;
|
|
2935
3032
|
|
|
3033
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
|
3034
|
+
function map(collection, iteratee) {
|
|
3035
|
+
var func = isArray_default(collection) ? arrayMap_default : baseMap_default;
|
|
3036
|
+
return func(collection, baseIteratee_default(iteratee, 3));
|
|
3037
|
+
}
|
|
3038
|
+
var map_default = map;
|
|
3039
|
+
|
|
3040
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createFlow.js
|
|
3041
|
+
var FUNC_ERROR_TEXT2 = "Expected a function";
|
|
3042
|
+
var WRAP_CURRY_FLAG = 8;
|
|
3043
|
+
var WRAP_PARTIAL_FLAG = 32;
|
|
3044
|
+
var WRAP_ARY_FLAG = 128;
|
|
3045
|
+
var WRAP_REARG_FLAG = 256;
|
|
3046
|
+
function createFlow(fromRight) {
|
|
3047
|
+
return flatRest_default(function(funcs) {
|
|
3048
|
+
var length = funcs.length, index = length, prereq = LodashWrapper_default.prototype.thru;
|
|
3049
|
+
if (fromRight) {
|
|
3050
|
+
funcs.reverse();
|
|
3051
|
+
}
|
|
3052
|
+
while (index--) {
|
|
3053
|
+
var func = funcs[index];
|
|
3054
|
+
if (typeof func != "function") {
|
|
3055
|
+
throw new TypeError(FUNC_ERROR_TEXT2);
|
|
3056
|
+
}
|
|
3057
|
+
if (prereq && !wrapper && getFuncName_default(func) == "wrapper") {
|
|
3058
|
+
var wrapper = new LodashWrapper_default([], true);
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
index = wrapper ? index : length;
|
|
3062
|
+
while (++index < length) {
|
|
3063
|
+
func = funcs[index];
|
|
3064
|
+
var funcName = getFuncName_default(func), data = funcName == "wrapper" ? getData_default(func) : void 0;
|
|
3065
|
+
if (data && isLaziable_default(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
3066
|
+
wrapper = wrapper[getFuncName_default(data[0])].apply(wrapper, data[3]);
|
|
3067
|
+
} else {
|
|
3068
|
+
wrapper = func.length == 1 && isLaziable_default(func) ? wrapper[funcName]() : wrapper.thru(func);
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
return function() {
|
|
3072
|
+
var args = arguments, value = args[0];
|
|
3073
|
+
if (wrapper && args.length == 1 && isArray_default(value)) {
|
|
3074
|
+
return wrapper.plant(value).value();
|
|
3075
|
+
}
|
|
3076
|
+
var index2 = 0, result = length ? funcs[index2].apply(this, args) : value;
|
|
3077
|
+
while (++index2 < length) {
|
|
3078
|
+
result = funcs[index2].call(this, result);
|
|
3079
|
+
}
|
|
3080
|
+
return result;
|
|
3081
|
+
};
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
var createFlow_default = createFlow;
|
|
3085
|
+
|
|
3086
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flow.js
|
|
3087
|
+
var flow = createFlow_default();
|
|
3088
|
+
var flow_default = flow;
|
|
3089
|
+
|
|
3090
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/fromPairs.js
|
|
3091
|
+
function fromPairs(pairs) {
|
|
3092
|
+
var index = -1, length = pairs == null ? 0 : pairs.length, result = {};
|
|
3093
|
+
while (++index < length) {
|
|
3094
|
+
var pair = pairs[index];
|
|
3095
|
+
result[pair[0]] = pair[1];
|
|
3096
|
+
}
|
|
3097
|
+
return result;
|
|
3098
|
+
}
|
|
3099
|
+
var fromPairs_default = fromPairs;
|
|
3100
|
+
|
|
2936
3101
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNil.js
|
|
2937
3102
|
function isNil(value) {
|
|
2938
3103
|
return value == null;
|
|
@@ -3038,6 +3203,16 @@ function orderBy(collection, iteratees, orders, guard) {
|
|
|
3038
3203
|
}
|
|
3039
3204
|
var orderBy_default = orderBy;
|
|
3040
3205
|
|
|
3206
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/take.js
|
|
3207
|
+
function take(array, n, guard) {
|
|
3208
|
+
if (!(array && array.length)) {
|
|
3209
|
+
return [];
|
|
3210
|
+
}
|
|
3211
|
+
n = guard || n === void 0 ? 1 : toInteger_default(n);
|
|
3212
|
+
return baseSlice_default(array, 0, n < 0 ? 0 : n);
|
|
3213
|
+
}
|
|
3214
|
+
var take_default = take;
|
|
3215
|
+
|
|
3041
3216
|
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
|
|
3042
3217
|
function uniqWith(array, comparator) {
|
|
3043
3218
|
comparator = typeof comparator == "function" ? comparator : void 0;
|
|
@@ -3071,7 +3246,11 @@ var uniqWith_default = uniqWith;
|
|
|
3071
3246
|
|
|
3072
3247
|
|
|
3073
3248
|
|
|
3074
|
-
|
|
3249
|
+
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
|
|
3253
|
+
exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.isFunction_default = isFunction_default; exports.isPlainObject_default = isPlainObject_default; exports.upperFirst_default = upperFirst_default; exports.deburr_default = deburr_default; exports.camelCase_default = camelCase_default; exports.clamp_default = clamp_default; exports.cloneDeep_default = cloneDeep_default; exports.countBy_default = countBy_default; exports.toPairs_default = toPairs_default; exports.filter_default = filter_default; exports.map_default = map_default; exports.flow_default = flow_default; exports.fromPairs_default = fromPairs_default; exports.isString_default = isString_default; exports.isEmpty_default = isEmpty_default; exports.isEqual_default = isEqual_default; exports.isNil_default = isNil_default; exports.mapKeys_default = mapKeys_default; exports.mapValues_default = mapValues_default; exports.maxBy_default = maxBy_default; exports.omit_default = omit_default; exports.pickBy_default = pickBy_default; exports.orderBy_default = orderBy_default; exports.startCase_default = startCase_default; exports.take_default = take_default; exports.uniq_default = uniq_default; exports.uniqWith_default = uniqWith_default;
|
|
3075
3254
|
/*! Bundled license information:
|
|
3076
3255
|
|
|
3077
3256
|
lodash-es/lodash.js:
|