@sourcegraph/amp 0.0.1748779332-gb5cb75 → 0.0.1748802804-g235c50
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/amp.js +2 -2
- package/dist/{console-BEoM5C3l.js → console-k3nh7b4U.js} +4477 -4461
- package/dist/console-k3nh7b4U.js.map +1 -0
- package/dist/{create_file.node-BFS-uX0h.js → create_file.node-Dxp9NAiW.js} +2 -2
- package/dist/{create_file.node-BFS-uX0h.js.map → create_file.node-Dxp9NAiW.js.map} +1 -1
- package/dist/{edit_file.node-D0utnpOc.js → edit_file.node-BlCpGVR-.js} +3 -3
- package/dist/{edit_file.node-D0utnpOc.js.map → edit_file.node-BlCpGVR-.js.map} +1 -1
- package/dist/{executable-Bm7iL2Wr.js → executable-DTI1_xm7.js} +2 -2
- package/dist/{executable-Bm7iL2Wr.js.map → executable-DTI1_xm7.js.map} +1 -1
- package/dist/{files-8V4d25dw.js → files-DdjDm_B8.js} +2 -2
- package/dist/{files-8V4d25dw.js.map → files-DdjDm_B8.js.map} +1 -1
- package/dist/{glob.node-CxhUfk73.js → glob.node-BnKeKl9M.js} +3 -3
- package/dist/{glob.node-CxhUfk73.js.map → glob.node-BnKeKl9M.js.map} +1 -1
- package/dist/{list_directory.node-BvKQRegC.js → list_directory.node-DDhJZGvT.js} +2 -2
- package/dist/{list_directory.node-BvKQRegC.js.map → list_directory.node-DDhJZGvT.js.map} +1 -1
- package/dist/{load-profile-DRELVkLs.js → load-profile-CWDhvBXX.js} +2 -2
- package/dist/{load-profile-DRELVkLs.js.map → load-profile-CWDhvBXX.js.map} +1 -1
- package/dist/{main-BNsPGXov.js → main-B_IRSDfV.js} +503 -502
- package/dist/main-B_IRSDfV.js.map +1 -0
- package/dist/{node-BuGshbyJ.js → node-3m0J6gBv.js} +3 -3
- package/dist/{node-BuGshbyJ.js.map → node-3m0J6gBv.js.map} +1 -1
- package/dist/{node-DHEAQDoa.js → node-BZlRkYQw.js} +2 -2
- package/dist/{node-DHEAQDoa.js.map → node-BZlRkYQw.js.map} +1 -1
- package/dist/{node-DLBHbpFn.js → node-CeX3AGot.js} +3 -3
- package/dist/{node-DLBHbpFn.js.map → node-CeX3AGot.js.map} +1 -1
- package/dist/{node-Dd5TcLk4.js → node-DXblyBSN.js} +3 -3
- package/dist/{node-Dd5TcLk4.js.map → node-DXblyBSN.js.map} +1 -1
- package/dist/{node-CcCnjzdp.js → node-DuhaU87r.js} +3 -3
- package/dist/{node-CcCnjzdp.js.map → node-DuhaU87r.js.map} +1 -1
- package/dist/{node-xakp4FYv.js → node-w5kFgl6-.js} +2 -2
- package/dist/{node-xakp4FYv.js.map → node-w5kFgl6-.js.map} +1 -1
- package/dist/{read_file.node-Bh95y2qD.js → read_file.node-CsATnmUF.js} +2 -2
- package/dist/{read_file.node-Bh95y2qD.js.map → read_file.node-CsATnmUF.js.map} +1 -1
- package/dist/{stdio-B64CMOKT.js → stdio-CEtFG9QM.js} +3 -3
- package/dist/{stdio-B64CMOKT.js.map → stdio-CEtFG9QM.js.map} +1 -1
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-BZBcJgmC.js → undo_edit.node-CHrrMPkn.js} +2 -2
- package/dist/{undo_edit.node-BZBcJgmC.js.map → undo_edit.node-CHrrMPkn.js.map} +1 -1
- package/package.json +1 -1
- package/dist/console-BEoM5C3l.js.map +0 -1
- package/dist/main-BNsPGXov.js.map +0 -1
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import { B as _i, O as Qt, s as fn, c as UE, a as Jn, b as nc, f as pt, d as ta, p as es, m as Et, e as ha, g as un, h as pa, i as KO, j as qE, k as ic, M as Qn, l as JO, n as ie, N as vu, o as Um, r as Fr, q as qm, t as YO, u as jO, v as Bm, w as ZO, x as QO, y as Jy, z as Ru, A as XO, C as eM, D as tM, E as rM, F as nM, G as iM, H as oM, I as sM, J as aM, K as lM, L as uM, P as cM, Q as fM, R as dM, S as hM, T as pM, U as ku, V as BE, W as mM, X as gM, Y as Sn, Z as vM, _ as yM, $ as vW, a0 as ra, a1 as _M, a2 as wM, a3 as bM, a4 as Zi, a5 as VE, a6 as SM, a7 as wi, a8 as HE, a9 as GE, aa as EM, ab as TM, ac as Yp, ad as CM, ae as AM, af as PM, ag as xM, ah as IM, ai as id, aj as RM, ak as WE, al as Yy, am as kM, an as OM, ao as MM, ap as LM, aq as NM, ar as DM, as as FM, at as $M, au as UM, av as qM, aw as BM, ax as jy, ay as VM, az as HM, aA as GM, aB as zE, aC as jp, aD as Tt, aE as WM, aF as zM, aG as KM, aH as Zy, aI as Qy, aJ as Xy, aK as JM, aL as YM, aM as KE, aN as JE, aO as jM } from "./console-
|
2
|
+
import { B as _i, O as Qt, s as fn, c as UE, a as Jn, b as nc, f as pt, d as ta, p as es, m as Et, e as ha, g as un, h as pa, i as KO, j as qE, k as ic, M as Qn, l as JO, n as ie, N as vu, o as Um, r as Fr, q as qm, t as YO, u as jO, v as Bm, w as ZO, x as QO, y as Jy, z as Ru, A as XO, C as eM, D as tM, E as rM, F as nM, G as iM, H as oM, I as sM, J as aM, K as lM, L as uM, P as cM, Q as fM, R as dM, S as hM, T as pM, U as ku, V as BE, W as mM, X as gM, Y as Sn, Z as vM, _ as yM, $ as vW, a0 as ra, a1 as _M, a2 as wM, a3 as bM, a4 as Zi, a5 as VE, a6 as SM, a7 as wi, a8 as HE, a9 as GE, aa as EM, ab as TM, ac as Yp, ad as CM, ae as AM, af as PM, ag as xM, ah as IM, ai as id, aj as RM, ak as WE, al as Yy, am as kM, an as OM, ao as MM, ap as LM, aq as NM, ar as DM, as as FM, at as $M, au as UM, av as qM, aw as BM, ax as jy, ay as VM, az as HM, aA as GM, aB as zE, aC as jp, aD as Tt, aE as WM, aF as zM, aG as KM, aH as Zy, aI as Qy, aJ as Xy, aK as JM, aL as YM, aM as KE, aN as JE, aO as jM } from "./console-k3nh7b4U.js";
|
3
3
|
import * as ZM from "node:fs/promises";
|
4
4
|
import Yo, { readdir as QM, stat as YE, readFile as bi, mkdir as Ou, writeFile as na, unlink as XM, open as eL, readlink as tL } from "node:fs/promises";
|
5
5
|
import * as rL from "node:path";
|
6
|
-
import nt, { join as jE, dirname as
|
6
|
+
import nt, { join as jE, dirname as e0 } from "node:path";
|
7
7
|
import Vm from "node:events";
|
8
8
|
import * as nL from "node:child_process";
|
9
9
|
import iL, { spawn as oc, exec as zi } from "node:child_process";
|
@@ -17,7 +17,7 @@ import fL from "node:zlib";
|
|
17
17
|
import dL from "node:string_decoder";
|
18
18
|
import hL, { createServer as QE } from "node:http";
|
19
19
|
import pL from "node:https";
|
20
|
-
import { r as mL } from "./executable-
|
20
|
+
import { r as mL } from "./executable-DTI1_xm7.js";
|
21
21
|
function gL() {
|
22
22
|
const i = /* @__PURE__ */ new Set(), e = new _i(i);
|
23
23
|
return {
|
@@ -48,7 +48,7 @@ function vL() {
|
|
48
48
|
};
|
49
49
|
}
|
50
50
|
const Ti = Symbol.for("@@pendingOperation");
|
51
|
-
function
|
51
|
+
function t0(i, e) {
|
52
52
|
return (t) => Qt.from(t).pipe(
|
53
53
|
fn(
|
54
54
|
(n) => n === Ti ? Qt.of(Ti) : i(n).pipe(
|
@@ -107,7 +107,8 @@ function XE({
|
|
107
107
|
),
|
108
108
|
Et((s) => ({
|
109
109
|
...s,
|
110
|
-
url: s.url || n
|
110
|
+
url: s.url || n,
|
111
|
+
"todos.enabled": s["todos.enabled"] ?? !0
|
111
112
|
})),
|
112
113
|
nc(),
|
113
114
|
ha()
|
@@ -203,14 +204,14 @@ var ft;
|
|
203
204
|
}
|
204
205
|
i.joinValues = n, i.jsonStringifyReplacer = (r, o) => typeof o == "bigint" ? o.toString() : o;
|
205
206
|
})(ft || (ft = {}));
|
206
|
-
var
|
207
|
+
var r0;
|
207
208
|
(function(i) {
|
208
209
|
i.mergeShapes = (e, t) => ({
|
209
210
|
...e,
|
210
211
|
...t
|
211
212
|
// second overwrites first
|
212
213
|
});
|
213
|
-
})(
|
214
|
+
})(r0 || (r0 = {}));
|
214
215
|
const Ie = ft.arrayToEnum([
|
215
216
|
"string",
|
216
217
|
"nan",
|
@@ -473,7 +474,7 @@ class gr {
|
|
473
474
|
}
|
474
475
|
const Ge = Object.freeze({
|
475
476
|
status: "aborted"
|
476
|
-
}), Ks = (i) => ({ status: "dirty", value: i }), Xr = (i) => ({ status: "valid", value: i }),
|
477
|
+
}), Ks = (i) => ({ status: "dirty", value: i }), Xr = (i) => ({ status: "valid", value: i }), n0 = (i) => i.status === "aborted", i0 = (i) => i.status === "dirty", rs = (i) => i.status === "valid", Mu = (i) => typeof Promise < "u" && i instanceof Promise;
|
477
478
|
var Le;
|
478
479
|
(function(i) {
|
479
480
|
i.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, i.toString = (e) => typeof e == "string" ? e : e?.message;
|
@@ -496,7 +497,7 @@ class Pn {
|
|
496
497
|
return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
497
498
|
}
|
498
499
|
}
|
499
|
-
const
|
500
|
+
const o0 = (i, e) => {
|
500
501
|
if (rs(e))
|
501
502
|
return { success: !0, data: e.value };
|
502
503
|
if (!i.common.issues.length)
|
@@ -581,7 +582,7 @@ class lt {
|
|
581
582
|
data: e,
|
582
583
|
parsedType: mi(e)
|
583
584
|
}, r = this._parseSync({ data: e, path: n.path, parent: n });
|
584
|
-
return
|
585
|
+
return o0(n, r);
|
585
586
|
}
|
586
587
|
"~validate"(e) {
|
587
588
|
const t = {
|
@@ -634,7 +635,7 @@ class lt {
|
|
634
635
|
data: e,
|
635
636
|
parsedType: mi(e)
|
636
637
|
}, r = this._parse({ data: e, path: n.path, parent: n }), o = await (Mu(r) ? r : Promise.resolve(r));
|
637
|
-
return
|
638
|
+
return o0(n, o);
|
638
639
|
}
|
639
640
|
refine(e, t) {
|
640
641
|
const n = (r) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t;
|
@@ -1561,7 +1562,7 @@ ns.create = (i) => new ns({
|
|
1561
1562
|
typeName: Ve.ZodDate,
|
1562
1563
|
...Qe(i)
|
1563
1564
|
});
|
1564
|
-
class
|
1565
|
+
class s0 extends lt {
|
1565
1566
|
_parse(e) {
|
1566
1567
|
if (this._getType(e) !== Ie.symbol) {
|
1567
1568
|
const n = this._getOrReturnCtx(e);
|
@@ -1574,7 +1575,7 @@ class s_ extends lt {
|
|
1574
1575
|
return Xr(e.data);
|
1575
1576
|
}
|
1576
1577
|
}
|
1577
|
-
|
1578
|
+
s0.create = (i) => new s0({
|
1578
1579
|
typeName: Ve.ZodSymbol,
|
1579
1580
|
...Qe(i)
|
1580
1581
|
});
|
@@ -1650,7 +1651,7 @@ Pi.create = (i) => new Pi({
|
|
1650
1651
|
typeName: Ve.ZodNever,
|
1651
1652
|
...Qe(i)
|
1652
1653
|
});
|
1653
|
-
class
|
1654
|
+
class a0 extends lt {
|
1654
1655
|
_parse(e) {
|
1655
1656
|
if (this._getType(e) !== Ie.undefined) {
|
1656
1657
|
const n = this._getOrReturnCtx(e);
|
@@ -1663,7 +1664,7 @@ class a_ extends lt {
|
|
1663
1664
|
return Xr(e.data);
|
1664
1665
|
}
|
1665
1666
|
}
|
1666
|
-
|
1667
|
+
a0.create = (i) => new a0({
|
1667
1668
|
typeName: Ve.ZodVoid,
|
1668
1669
|
...Qe(i)
|
1669
1670
|
});
|
@@ -2208,10 +2209,10 @@ function rm(i, e) {
|
|
2208
2209
|
class Fu extends lt {
|
2209
2210
|
_parse(e) {
|
2210
2211
|
const { status: t, ctx: n } = this._processInputParams(e), r = (o, s) => {
|
2211
|
-
if (
|
2212
|
+
if (n0(o) || n0(s))
|
2212
2213
|
return Ge;
|
2213
2214
|
const a = rm(o.value, s.value);
|
2214
|
-
return a.valid ? ((
|
2215
|
+
return a.valid ? ((i0(o) || i0(s)) && t.dirty(), { status: t.value, value: a.data }) : (Ae(n, {
|
2215
2216
|
code: Se.invalid_intersection_types
|
2216
2217
|
}), Ge);
|
2217
2218
|
};
|
@@ -2334,7 +2335,7 @@ class $u extends lt {
|
|
2334
2335
|
});
|
2335
2336
|
}
|
2336
2337
|
}
|
2337
|
-
class
|
2338
|
+
class l0 extends lt {
|
2338
2339
|
get keySchema() {
|
2339
2340
|
return this._def.keyType;
|
2340
2341
|
}
|
@@ -2376,7 +2377,7 @@ class l_ extends lt {
|
|
2376
2377
|
}
|
2377
2378
|
}
|
2378
2379
|
}
|
2379
|
-
|
2380
|
+
l0.create = (i, e, t) => new l0({
|
2380
2381
|
valueType: e,
|
2381
2382
|
keyType: i,
|
2382
2383
|
typeName: Ve.ZodMap,
|
@@ -2786,7 +2787,7 @@ Hu.create = (i, e) => new Hu({
|
|
2786
2787
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
2787
2788
|
...Qe(e)
|
2788
2789
|
});
|
2789
|
-
class
|
2790
|
+
class u0 extends lt {
|
2790
2791
|
_parse(e) {
|
2791
2792
|
if (this._getType(e) !== Ie.nan) {
|
2792
2793
|
const n = this._getOrReturnCtx(e);
|
@@ -2799,7 +2800,7 @@ class u_ extends lt {
|
|
2799
2800
|
return { status: "valid", value: e.data };
|
2800
2801
|
}
|
2801
2802
|
}
|
2802
|
-
|
2803
|
+
u0.create = (i) => new u0({
|
2803
2804
|
typeName: Ve.ZodNaN,
|
2804
2805
|
...Qe(i)
|
2805
2806
|
});
|
@@ -2932,7 +2933,7 @@ const ko = {
|
|
2932
2933
|
jsonrpc: ut(uc),
|
2933
2934
|
id: cc,
|
2934
2935
|
result: hn
|
2935
|
-
}).strict(),
|
2936
|
+
}).strict(), c0 = (i) => uT.safeParse(i).success;
|
2936
2937
|
var bn;
|
2937
2938
|
(function(i) {
|
2938
2939
|
i[i.ConnectionClosed = -32e3] = "ConnectionClosed", i[i.RequestTimeout = -32001] = "RequestTimeout", i[i.ParseError = -32700] = "ParseError", i[i.InvalidRequest = -32600] = "InvalidRequest", i[i.MethodNotFound = -32601] = "MethodNotFound", i[i.InvalidParams = -32602] = "InvalidParams", i[i.InternalError = -32603] = "InternalError";
|
@@ -3676,7 +3677,7 @@ class HN {
|
|
3676
3677
|
}, this._transport.onerror = (t) => {
|
3677
3678
|
this._onerror(t);
|
3678
3679
|
}, this._transport.onmessage = (t, n) => {
|
3679
|
-
|
3680
|
+
c0(t) || rN(t) ? this._onresponse(t) : eN(t) ? this._onrequest(t, n) : tN(t) ? this._onnotification(t) : this._onerror(new Error(`Unknown message type: ${JSON.stringify(t)}`));
|
3680
3681
|
}, await this._transport.start();
|
3681
3682
|
}
|
3682
3683
|
_onclose() {
|
@@ -3766,7 +3767,7 @@ class HN {
|
|
3766
3767
|
this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));
|
3767
3768
|
return;
|
3768
3769
|
}
|
3769
|
-
if (this._responseHandlers.delete(t), this._progressHandlers.delete(t), this._cleanupTimeout(t),
|
3770
|
+
if (this._responseHandlers.delete(t), this._progressHandlers.delete(t), this._cleanupTimeout(t), c0(e))
|
3770
3771
|
n(e);
|
3771
3772
|
else {
|
3772
3773
|
const r = new Si(e.error.code, e.error.message, e.error.data);
|
@@ -3894,9 +3895,9 @@ function GN(i, e) {
|
|
3894
3895
|
}
|
3895
3896
|
var js = { exports: {} };
|
3896
3897
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
3897
|
-
var WN = js.exports,
|
3898
|
+
var WN = js.exports, f0;
|
3898
3899
|
function zN() {
|
3899
|
-
return
|
3900
|
+
return f0 || (f0 = 1, function(i, e) {
|
3900
3901
|
(function(t, n) {
|
3901
3902
|
n(e);
|
3902
3903
|
})(WN, function(t) {
|
@@ -4447,9 +4448,9 @@ function zN() {
|
|
4447
4448
|
});
|
4448
4449
|
}(js, js.exports)), js.exports;
|
4449
4450
|
}
|
4450
|
-
var sd,
|
4451
|
+
var sd, d0;
|
4451
4452
|
function jm() {
|
4452
|
-
return
|
4453
|
+
return d0 || (d0 = 1, sd = function i(e, t) {
|
4453
4454
|
if (e === t) return !0;
|
4454
4455
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
4455
4456
|
if (e.constructor !== t.constructor) return !1;
|
@@ -4475,18 +4476,18 @@ function jm() {
|
|
4475
4476
|
return e !== e && t !== t;
|
4476
4477
|
}), sd;
|
4477
4478
|
}
|
4478
|
-
var ad,
|
4479
|
+
var ad, h0;
|
4479
4480
|
function KN() {
|
4480
|
-
return
|
4481
|
+
return h0 || (h0 = 1, ad = function(e) {
|
4481
4482
|
for (var t = 0, n = e.length, r = 0, o; r < n; )
|
4482
4483
|
t++, o = e.charCodeAt(r++), o >= 55296 && o <= 56319 && r < n && (o = e.charCodeAt(r), (o & 64512) == 56320 && r++);
|
4483
4484
|
return t;
|
4484
4485
|
}), ad;
|
4485
4486
|
}
|
4486
|
-
var ld,
|
4487
|
+
var ld, p0;
|
4487
4488
|
function us() {
|
4488
|
-
if (
|
4489
|
-
|
4489
|
+
if (p0) return ld;
|
4490
|
+
p0 = 1, ld = {
|
4490
4491
|
copy: i,
|
4491
4492
|
checkDataType: e,
|
4492
4493
|
checkDataTypes: t,
|
@@ -4641,10 +4642,10 @@ function us() {
|
|
4641
4642
|
}
|
4642
4643
|
return ld;
|
4643
4644
|
}
|
4644
|
-
var ud,
|
4645
|
+
var ud, m0;
|
4645
4646
|
function AT() {
|
4646
|
-
if (
|
4647
|
-
|
4647
|
+
if (m0) return ud;
|
4648
|
+
m0 = 1;
|
4648
4649
|
var i = us();
|
4649
4650
|
ud = e;
|
4650
4651
|
function e(t) {
|
@@ -4652,10 +4653,10 @@ function AT() {
|
|
4652
4653
|
}
|
4653
4654
|
return ud;
|
4654
4655
|
}
|
4655
|
-
var cd = { exports: {} },
|
4656
|
+
var cd = { exports: {} }, g0;
|
4656
4657
|
function JN() {
|
4657
|
-
if (
|
4658
|
-
|
4658
|
+
if (g0) return cd.exports;
|
4659
|
+
g0 = 1;
|
4659
4660
|
var i = cd.exports = function(n, r, o) {
|
4660
4661
|
typeof r == "function" && (o = r, r = {}), o = r.cb || o;
|
4661
4662
|
var s = typeof o == "function" ? o : o.pre || function() {
|
@@ -4723,10 +4724,10 @@ function JN() {
|
|
4723
4724
|
}
|
4724
4725
|
return cd.exports;
|
4725
4726
|
}
|
4726
|
-
var fd,
|
4727
|
+
var fd, v0;
|
4727
4728
|
function Zm() {
|
4728
|
-
if (
|
4729
|
-
|
4729
|
+
if (v0) return fd;
|
4730
|
+
v0 = 1;
|
4730
4731
|
var i = zN(), e = jm(), t = us(), n = AT(), r = JN();
|
4731
4732
|
fd = o, o.normalizeId = p, o.fullPath = _, o.url = S, o.ids = T, o.inlineRef = h, o.schema = s;
|
4732
4733
|
function o(C, A, M) {
|
@@ -4871,10 +4872,10 @@ function Zm() {
|
|
4871
4872
|
}
|
4872
4873
|
return fd;
|
4873
4874
|
}
|
4874
|
-
var dd,
|
4875
|
+
var dd, y0;
|
4875
4876
|
function Qm() {
|
4876
|
-
if (
|
4877
|
-
|
4877
|
+
if (y0) return dd;
|
4878
|
+
y0 = 1;
|
4878
4879
|
var i = Zm();
|
4879
4880
|
dd = {
|
4880
4881
|
Validation: n(e),
|
@@ -4894,9 +4895,9 @@ function Qm() {
|
|
4894
4895
|
}
|
4895
4896
|
return dd;
|
4896
4897
|
}
|
4897
|
-
var hd,
|
4898
|
+
var hd, _0;
|
4898
4899
|
function PT() {
|
4899
|
-
return
|
4900
|
+
return _0 || (_0 = 1, hd = function(i, e) {
|
4900
4901
|
e || (e = {}), typeof e == "function" && (e = { cmp: e });
|
4901
4902
|
var t = typeof e.cycles == "boolean" ? e.cycles : !1, n = e.cmp && /* @__PURE__ */ function(o) {
|
4902
4903
|
return function(s) {
|
@@ -4931,9 +4932,9 @@ function PT() {
|
|
4931
4932
|
}(i);
|
4932
4933
|
}), hd;
|
4933
4934
|
}
|
4934
|
-
var pd,
|
4935
|
+
var pd, w0;
|
4935
4936
|
function xT() {
|
4936
|
-
return
|
4937
|
+
return w0 || (w0 = 1, pd = function(e, t, n) {
|
4937
4938
|
var r = "", o = e.schema.$async === !0, s = e.util.schemaHasRulesExcept(e.schema, e.RULES.all, "$ref"), a = e.self._getId(e.schema);
|
4938
4939
|
if (e.opts.strictKeywords) {
|
4939
4940
|
var u = e.util.schemaUnknownRules(e.schema, e.RULES.keywords);
|
@@ -5081,10 +5082,10 @@ function xT() {
|
|
5081
5082
|
return r;
|
5082
5083
|
}), pd;
|
5083
5084
|
}
|
5084
|
-
var md,
|
5085
|
+
var md, b0;
|
5085
5086
|
function YN() {
|
5086
|
-
if (
|
5087
|
-
|
5087
|
+
if (b0) return md;
|
5088
|
+
b0 = 1;
|
5088
5089
|
var i = Zm(), e = us(), t = Qm(), n = PT(), r = xT(), o = e.ucs2length, s = jm(), a = t.Validation;
|
5089
5090
|
md = u;
|
5090
5091
|
function u(p, S, T, C) {
|
@@ -5294,10 +5295,10 @@ function YN() {
|
|
5294
5295
|
}
|
5295
5296
|
return md;
|
5296
5297
|
}
|
5297
|
-
var gd = { exports: {} },
|
5298
|
+
var gd = { exports: {} }, S0;
|
5298
5299
|
function jN() {
|
5299
|
-
if (
|
5300
|
-
|
5300
|
+
if (S0) return gd.exports;
|
5301
|
+
S0 = 1;
|
5301
5302
|
var i = gd.exports = function() {
|
5302
5303
|
this._cache = {};
|
5303
5304
|
};
|
@@ -5311,10 +5312,10 @@ function jN() {
|
|
5311
5312
|
this._cache = {};
|
5312
5313
|
}, gd.exports;
|
5313
5314
|
}
|
5314
|
-
var vd,
|
5315
|
+
var vd, E0;
|
5315
5316
|
function ZN() {
|
5316
|
-
if (
|
5317
|
-
|
5317
|
+
if (E0) return vd;
|
5318
|
+
E0 = 1;
|
5318
5319
|
var i = us(), e = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, t = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], n = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, r = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, o = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, s = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, a = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, u = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, c = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, d = /^(?:\/(?:[^~/]|~0|~1)*)*$/, h = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, g = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
|
5319
5320
|
vd = v;
|
5320
5321
|
function v($) {
|
@@ -5402,9 +5403,9 @@ function ZN() {
|
|
5402
5403
|
}
|
5403
5404
|
return vd;
|
5404
5405
|
}
|
5405
|
-
var yd,
|
5406
|
+
var yd, T0;
|
5406
5407
|
function QN() {
|
5407
|
-
return
|
5408
|
+
return T0 || (T0 = 1, yd = function(e, t, n) {
|
5408
5409
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.errSchemaPath + "/" + t, c = !e.opts.allErrors, d = "data" + (s || ""), h = "valid" + o, g, v;
|
5409
5410
|
if (a == "#" || a == "#/")
|
5410
5411
|
e.isRoot ? (g = e.async, v = "validate") : (g = e.root.schema.$async === !0, v = "root.refVal[0]");
|
@@ -5447,9 +5448,9 @@ function QN() {
|
|
5447
5448
|
return r;
|
5448
5449
|
}), yd;
|
5449
5450
|
}
|
5450
|
-
var _d,
|
5451
|
+
var _d, C0;
|
5451
5452
|
function XN() {
|
5452
|
-
return
|
5453
|
+
return C0 || (C0 = 1, _d = function(e, t, n) {
|
5453
5454
|
var r = " ", o = e.schema[t], s = e.schemaPath + e.util.getProperty(t), a = e.errSchemaPath + "/" + t, u = !e.opts.allErrors, c = e.util.copy(e), d = "";
|
5454
5455
|
c.level++;
|
5455
5456
|
var h = "valid" + c.level, g = c.baseId, v = !0, _ = o;
|
@@ -5459,9 +5460,9 @@ function XN() {
|
|
5459
5460
|
return u && (v ? r += " if (true) { " : r += " " + d.slice(0, -1) + " "), r;
|
5460
5461
|
}), _d;
|
5461
5462
|
}
|
5462
|
-
var wd,
|
5463
|
+
var wd, A0;
|
5463
5464
|
function eD() {
|
5464
|
-
return
|
5465
|
+
return A0 || (A0 = 1, wd = function(e, t, n) {
|
5465
5466
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = "errs__" + o, _ = e.util.copy(e), w = "";
|
5466
5467
|
_.level++;
|
5467
5468
|
var b = "valid" + _.level, p = a.every(function(x) {
|
@@ -5482,18 +5483,18 @@ function eD() {
|
|
5482
5483
|
return r;
|
5483
5484
|
}), wd;
|
5484
5485
|
}
|
5485
|
-
var bd,
|
5486
|
+
var bd, P0;
|
5486
5487
|
function tD() {
|
5487
|
-
return
|
5488
|
+
return P0 || (P0 = 1, bd = function(e, t, n) {
|
5488
5489
|
var r = " ", o = e.schema[t], s = e.errSchemaPath + "/" + t;
|
5489
5490
|
e.opts.allErrors;
|
5490
5491
|
var a = e.util.toQuotedString(o);
|
5491
5492
|
return e.opts.$comment === !0 ? r += " console.log(" + a + ");" : typeof e.opts.$comment == "function" && (r += " self._opts.$comment(" + a + ", " + e.util.toQuotedString(s) + ", validate.root.schema);"), r;
|
5492
5493
|
}), bd;
|
5493
5494
|
}
|
5494
|
-
var Sd,
|
5495
|
+
var Sd, x0;
|
5495
5496
|
function rD() {
|
5496
|
-
return
|
5497
|
+
return x0 || (x0 = 1, Sd = function(e, t, n) {
|
5497
5498
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = e.opts.$data && a && a.$data;
|
5498
5499
|
v && (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; "), v || (r += " var schema" + o + " = validate.schema" + u + ";"), r += "var " + g + " = equal(" + h + ", schema" + o + "); if (!" + g + ") { ";
|
5499
5500
|
var _ = _ || [];
|
@@ -5502,9 +5503,9 @@ function rD() {
|
|
5502
5503
|
return r = _.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + w + "]); " : r += " validate.errors = [" + w + "]; return false; " : r += " var err = " + w + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " }", d && (r += " else { "), r;
|
5503
5504
|
}), Sd;
|
5504
5505
|
}
|
5505
|
-
var Ed,
|
5506
|
+
var Ed, I0;
|
5506
5507
|
function nD() {
|
5507
|
-
return
|
5508
|
+
return I0 || (I0 = 1, Ed = function(e, t, n) {
|
5508
5509
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = "errs__" + o, _ = e.util.copy(e), w = "";
|
5509
5510
|
_.level++;
|
5510
5511
|
var b = "valid" + _.level, p = "i" + o, S = _.dataLevel = e.dataLevel + 1, T = "data" + S, C = e.baseId, A = e.opts.strictKeywords ? typeof a == "object" && Object.keys(a).length > 0 || a === !1 : e.util.schemaHasRules(a, e.RULES.all);
|
@@ -5523,9 +5524,9 @@ function nD() {
|
|
5523
5524
|
return r = I.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + O + "]); " : r += " validate.errors = [" + O + "]; return false; " : r += " var err = " + O + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } else { ", A && (r += " errors = " + v + "; if (vErrors !== null) { if (" + v + ") vErrors.length = " + v + "; else vErrors = null; } "), e.opts.allErrors && (r += " } "), r;
|
5524
5525
|
}), Ed;
|
5525
5526
|
}
|
5526
|
-
var Td,
|
5527
|
+
var Td, R0;
|
5527
5528
|
function iD() {
|
5528
|
-
return
|
5529
|
+
return R0 || (R0 = 1, Td = function(e, t, n) {
|
5529
5530
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "errs__" + o, v = e.util.copy(e), _ = "";
|
5530
5531
|
v.level++;
|
5531
5532
|
var w = "valid" + v.level, b = {}, p = {}, S = e.opts.ownProperties;
|
@@ -5576,9 +5577,9 @@ function iD() {
|
|
5576
5577
|
return d && (r += " " + _ + " if (" + g + " == errors) {"), r;
|
5577
5578
|
}), Td;
|
5578
5579
|
}
|
5579
|
-
var Cd,
|
5580
|
+
var Cd, k0;
|
5580
5581
|
function oD() {
|
5581
|
-
return
|
5582
|
+
return k0 || (k0 = 1, Cd = function(e, t, n) {
|
5582
5583
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = e.opts.$data && a && a.$data;
|
5583
5584
|
v && (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ");
|
5584
5585
|
var _ = "i" + o, w = "schema" + o;
|
@@ -5589,9 +5590,9 @@ function oD() {
|
|
5589
5590
|
return r = b.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " }", d && (r += " else { "), r;
|
5590
5591
|
}), Cd;
|
5591
5592
|
}
|
5592
|
-
var Ad,
|
5593
|
+
var Ad, O0;
|
5593
5594
|
function sD() {
|
5594
|
-
return
|
5595
|
+
return O0 || (O0 = 1, Ad = function(e, t, n) {
|
5595
5596
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || "");
|
5596
5597
|
if (e.opts.format === !1)
|
5597
5598
|
return d && (r += " if (true) { "), r;
|
@@ -5633,9 +5634,9 @@ function sD() {
|
|
5633
5634
|
return r = A.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + M + "]); " : r += " validate.errors = [" + M + "]; return false; " : r += " var err = " + M + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } ", d && (r += " else { "), r;
|
5634
5635
|
}), Ad;
|
5635
5636
|
}
|
5636
|
-
var Pd,
|
5637
|
+
var Pd, M0;
|
5637
5638
|
function aD() {
|
5638
|
-
return
|
5639
|
+
return M0 || (M0 = 1, Pd = function(e, t, n) {
|
5639
5640
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = "errs__" + o, _ = e.util.copy(e);
|
5640
5641
|
_.level++;
|
5641
5642
|
var w = "valid" + _.level, b = e.schema.then, p = e.schema.else, S = b !== void 0 && (e.opts.strictKeywords ? typeof b == "object" && Object.keys(b).length > 0 || b === !1 : e.util.schemaHasRules(b, e.RULES.all)), T = p !== void 0 && (e.opts.strictKeywords ? typeof p == "object" && Object.keys(p).length > 0 || p === !1 : e.util.schemaHasRules(p, e.RULES.all)), C = _.baseId;
|
@@ -5649,9 +5650,9 @@ function aD() {
|
|
5649
5650
|
return r;
|
5650
5651
|
}), Pd;
|
5651
5652
|
}
|
5652
|
-
var xd,
|
5653
|
+
var xd, L0;
|
5653
5654
|
function lD() {
|
5654
|
-
return
|
5655
|
+
return L0 || (L0 = 1, xd = function(e, t, n) {
|
5655
5656
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = "errs__" + o, _ = e.util.copy(e), w = "";
|
5656
5657
|
_.level++;
|
5657
5658
|
var b = "valid" + _.level, p = "i" + o, S = _.dataLevel = e.dataLevel + 1, T = "data" + S, C = e.baseId;
|
@@ -5694,9 +5695,9 @@ function lD() {
|
|
5694
5695
|
return d && (r += " " + w + " if (" + v + " == errors) {"), r;
|
5695
5696
|
}), xd;
|
5696
5697
|
}
|
5697
|
-
var Id,
|
5698
|
-
function
|
5699
|
-
return
|
5698
|
+
var Id, N0;
|
5699
|
+
function D0() {
|
5700
|
+
return N0 || (N0 = 1, Id = function(e, t, n) {
|
5700
5701
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, C, h = "data" + (s || ""), g = e.opts.$data && a && a.$data, v;
|
5701
5702
|
g ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", v = "schema" + o) : v = a;
|
5702
5703
|
var _ = t == "maximum", w = _ ? "exclusiveMaximum" : "exclusiveMinimum", b = e.schema[w], p = e.opts.$data && b && b.$data, S = _ ? "<" : ">", T = _ ? ">" : "<", C = void 0;
|
@@ -5729,9 +5730,9 @@ function D_() {
|
|
5729
5730
|
return r = N.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + k + "]); " : r += " validate.errors = [" + k + "]; return false; " : r += " var err = " + k + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } ", d && (r += " else { "), r;
|
5730
5731
|
}), Id;
|
5731
5732
|
}
|
5732
|
-
var Rd,
|
5733
|
-
function $
|
5734
|
-
return
|
5733
|
+
var Rd, F0;
|
5734
|
+
function $0() {
|
5735
|
+
return F0 || (F0 = 1, Rd = function(e, t, n) {
|
5735
5736
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, w, h = "data" + (s || ""), g = e.opts.$data && a && a.$data, v;
|
5736
5737
|
if (g ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", v = "schema" + o) : v = a, !(g || typeof a == "number"))
|
5737
5738
|
throw new Error(t + " must be number");
|
@@ -5743,9 +5744,9 @@ function $_() {
|
|
5743
5744
|
return r = b.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", d && (r += " else { "), r;
|
5744
5745
|
}), Rd;
|
5745
5746
|
}
|
5746
|
-
var kd,
|
5747
|
-
function
|
5748
|
-
return
|
5747
|
+
var kd, U0;
|
5748
|
+
function q0() {
|
5749
|
+
return U0 || (U0 = 1, kd = function(e, t, n) {
|
5749
5750
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, w, h = "data" + (s || ""), g = e.opts.$data && a && a.$data, v;
|
5750
5751
|
if (g ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", v = "schema" + o) : v = a, !(g || typeof a == "number"))
|
5751
5752
|
throw new Error(t + " must be number");
|
@@ -5757,9 +5758,9 @@ function q_() {
|
|
5757
5758
|
return r = b.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", d && (r += " else { "), r;
|
5758
5759
|
}), kd;
|
5759
5760
|
}
|
5760
|
-
var Od,
|
5761
|
-
function
|
5762
|
-
return
|
5761
|
+
var Od, B0;
|
5762
|
+
function V0() {
|
5763
|
+
return B0 || (B0 = 1, Od = function(e, t, n) {
|
5763
5764
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, w, h = "data" + (s || ""), g = e.opts.$data && a && a.$data, v;
|
5764
5765
|
if (g ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", v = "schema" + o) : v = a, !(g || typeof a == "number"))
|
5765
5766
|
throw new Error(t + " must be number");
|
@@ -5771,9 +5772,9 @@ function V_() {
|
|
5771
5772
|
return r = b.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", d && (r += " else { "), r;
|
5772
5773
|
}), Od;
|
5773
5774
|
}
|
5774
|
-
var Md,
|
5775
|
+
var Md, H0;
|
5775
5776
|
function uD() {
|
5776
|
-
return
|
5777
|
+
return H0 || (H0 = 1, Md = function(e, t, n) {
|
5777
5778
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = e.opts.$data && a && a.$data, v;
|
5778
5779
|
if (g ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", v = "schema" + o) : v = a, !(g || typeof a == "number"))
|
5779
5780
|
throw new Error(t + " must be number");
|
@@ -5784,9 +5785,9 @@ function uD() {
|
|
5784
5785
|
return r = _.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + w + "]); " : r += " validate.errors = [" + w + "]; return false; " : r += " var err = " + w + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", d && (r += " else { "), r;
|
5785
5786
|
}), Md;
|
5786
5787
|
}
|
5787
|
-
var Ld,
|
5788
|
+
var Ld, G0;
|
5788
5789
|
function cD() {
|
5789
|
-
return
|
5790
|
+
return G0 || (G0 = 1, Ld = function(e, t, n) {
|
5790
5791
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "errs__" + o, v = e.util.copy(e);
|
5791
5792
|
v.level++;
|
5792
5793
|
var _ = "valid" + v.level;
|
@@ -5805,9 +5806,9 @@ function cD() {
|
|
5805
5806
|
return r;
|
5806
5807
|
}), Ld;
|
5807
5808
|
}
|
5808
|
-
var Nd,
|
5809
|
+
var Nd, W0;
|
5809
5810
|
function fD() {
|
5810
|
-
return
|
5811
|
+
return W0 || (W0 = 1, Nd = function(e, t, n) {
|
5811
5812
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = "errs__" + o, _ = e.util.copy(e), w = "";
|
5812
5813
|
_.level++;
|
5813
5814
|
var b = "valid" + _.level, p = _.baseId, S = "prevValid" + o, T = "passingSchemas" + o;
|
@@ -5821,9 +5822,9 @@ function fD() {
|
|
5821
5822
|
return e.compositeRule = _.compositeRule = C, r += "" + w + "if (!" + g + ") { var err = ", e.createErrors !== !1 ? (r += " { keyword: 'oneOf' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(c) + " , params: { passingSchemas: " + T + " } ", e.opts.messages !== !1 && (r += " , message: 'should match exactly one schema in oneOf' "), e.opts.verbose && (r += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + h + " "), r += " } ") : r += " {} ", r += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !e.compositeRule && d && (e.async ? r += " throw new ValidationError(vErrors); " : r += " validate.errors = vErrors; return false; "), r += "} else { errors = " + v + "; if (vErrors !== null) { if (" + v + ") vErrors.length = " + v + "; else vErrors = null; }", e.opts.allErrors && (r += " } "), r;
|
5822
5823
|
}), Nd;
|
5823
5824
|
}
|
5824
|
-
var Dd,
|
5825
|
+
var Dd, z0;
|
5825
5826
|
function dD() {
|
5826
|
-
return
|
5827
|
+
return z0 || (z0 = 1, Dd = function(e, t, n) {
|
5827
5828
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = e.opts.$data && a && a.$data, v;
|
5828
5829
|
g ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", v = "schema" + o) : v = a;
|
5829
5830
|
var _ = g ? "(new RegExp(" + v + "))" : e.usePattern(a);
|
@@ -5834,9 +5835,9 @@ function dD() {
|
|
5834
5835
|
return r = w.pop(), !e.compositeRule && d ? e.async ? r += " throw new ValidationError([" + b + "]); " : r += " validate.errors = [" + b + "]; return false; " : r += " var err = " + b + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", d && (r += " else { "), r;
|
5835
5836
|
}), Dd;
|
5836
5837
|
}
|
5837
|
-
var Fd,
|
5838
|
+
var Fd, K0;
|
5838
5839
|
function hD() {
|
5839
|
-
return
|
5840
|
+
return K0 || (K0 = 1, Fd = function(e, t, n) {
|
5840
5841
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "errs__" + o, v = e.util.copy(e), _ = "";
|
5841
5842
|
v.level++;
|
5842
5843
|
var w = "valid" + v.level, b = "key" + o, p = "idx" + o, S = v.dataLevel = e.dataLevel + 1, T = "data" + S, C = "dataProperties" + o, A = Object.keys(a || {}).filter(F), M = e.schema.patternProperties || {}, $ = Object.keys(M).filter(F), x = e.schema.additionalProperties, I = A.length || $.length, O = x === !1, N = typeof x == "object" && Object.keys(x).length, k = e.opts.removeAdditional, q = O || N || k, K = e.opts.ownProperties, J = e.baseId, U = e.schema.required;
|
@@ -5955,9 +5956,9 @@ function hD() {
|
|
5955
5956
|
return d && (r += " " + _ + " if (" + g + " == errors) {"), r;
|
5956
5957
|
}), Fd;
|
5957
5958
|
}
|
5958
|
-
var $d,
|
5959
|
+
var $d, J0;
|
5959
5960
|
function pD() {
|
5960
|
-
return
|
5961
|
+
return J0 || (J0 = 1, $d = function(e, t, n) {
|
5961
5962
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "errs__" + o, v = e.util.copy(e), _ = "";
|
5962
5963
|
v.level++;
|
5963
5964
|
var w = "valid" + v.level;
|
@@ -5973,9 +5974,9 @@ function pD() {
|
|
5973
5974
|
return d && (r += " " + _ + " if (" + g + " == errors) {"), r;
|
5974
5975
|
}), $d;
|
5975
5976
|
}
|
5976
|
-
var Ud,
|
5977
|
+
var Ud, Y0;
|
5977
5978
|
function mD() {
|
5978
|
-
return
|
5979
|
+
return Y0 || (Y0 = 1, Ud = function(e, t, n) {
|
5979
5980
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = e.opts.$data && a && a.$data;
|
5980
5981
|
v && (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ");
|
5981
5982
|
var _ = "schema" + o;
|
@@ -6036,9 +6037,9 @@ function mD() {
|
|
6036
6037
|
return r;
|
6037
6038
|
}), Ud;
|
6038
6039
|
}
|
6039
|
-
var qd,
|
6040
|
+
var qd, j0;
|
6040
6041
|
function gD() {
|
6041
|
-
return
|
6042
|
+
return j0 || (j0 = 1, qd = function(e, t, n) {
|
6042
6043
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h = "data" + (s || ""), g = "valid" + o, v = e.opts.$data && a && a.$data, _;
|
6043
6044
|
if (v ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", _ = "schema" + o) : _ = a, (a || v) && e.opts.uniqueItems !== !1) {
|
6044
6045
|
v && (r += " var " + g + "; if (" + _ + " === false || " + _ + " === undefined) " + g + " = true; else if (typeof " + _ + " != 'boolean') " + g + " = false; else { "), r += " var i = " + h + ".length , " + g + " = true , j; if (i > 1) { ";
|
@@ -6060,9 +6061,9 @@ function gD() {
|
|
6060
6061
|
return r;
|
6061
6062
|
}), qd;
|
6062
6063
|
}
|
6063
|
-
var Bd,
|
6064
|
+
var Bd, Z0;
|
6064
6065
|
function vD() {
|
6065
|
-
return
|
6066
|
+
return Z0 || (Z0 = 1, Bd = {
|
6066
6067
|
$ref: QN(),
|
6067
6068
|
allOf: XN(),
|
6068
6069
|
anyOf: eD(),
|
@@ -6074,14 +6075,14 @@ function vD() {
|
|
6074
6075
|
format: sD(),
|
6075
6076
|
if: aD(),
|
6076
6077
|
items: lD(),
|
6077
|
-
maximum:
|
6078
|
-
minimum:
|
6079
|
-
maxItems: $
|
6080
|
-
minItems: $
|
6081
|
-
maxLength:
|
6082
|
-
minLength:
|
6083
|
-
maxProperties:
|
6084
|
-
minProperties:
|
6078
|
+
maximum: D0(),
|
6079
|
+
minimum: D0(),
|
6080
|
+
maxItems: $0(),
|
6081
|
+
minItems: $0(),
|
6082
|
+
maxLength: q0(),
|
6083
|
+
minLength: q0(),
|
6084
|
+
maxProperties: V0(),
|
6085
|
+
minProperties: V0(),
|
6085
6086
|
multipleOf: uD(),
|
6086
6087
|
not: cD(),
|
6087
6088
|
oneOf: fD(),
|
@@ -6093,10 +6094,10 @@ function vD() {
|
|
6093
6094
|
validate: xT()
|
6094
6095
|
}), Bd;
|
6095
6096
|
}
|
6096
|
-
var Vd,
|
6097
|
+
var Vd, Q0;
|
6097
6098
|
function yD() {
|
6098
|
-
if (
|
6099
|
-
|
6099
|
+
if (Q0) return Vd;
|
6100
|
+
Q0 = 1;
|
6100
6101
|
var i = vD(), e = us().toHash;
|
6101
6102
|
return Vd = function() {
|
6102
6103
|
var n = [
|
@@ -6171,10 +6172,10 @@ function yD() {
|
|
6171
6172
|
}), n.keywords = e(r.concat(o)), n.custom = {}, n;
|
6172
6173
|
}, Vd;
|
6173
6174
|
}
|
6174
|
-
var Hd,
|
6175
|
+
var Hd, X0;
|
6175
6176
|
function _D() {
|
6176
|
-
if (
|
6177
|
-
|
6177
|
+
if (X0) return Hd;
|
6178
|
+
X0 = 1;
|
6178
6179
|
var i = [
|
6179
6180
|
"multipleOf",
|
6180
6181
|
"maximum",
|
@@ -6215,10 +6216,10 @@ function _D() {
|
|
6215
6216
|
return e;
|
6216
6217
|
}, Hd;
|
6217
6218
|
}
|
6218
|
-
var Gd,
|
6219
|
+
var Gd, e_;
|
6219
6220
|
function wD() {
|
6220
|
-
if (
|
6221
|
-
|
6221
|
+
if (e_) return Gd;
|
6222
|
+
e_ = 1;
|
6222
6223
|
var i = Qm().MissingRef;
|
6223
6224
|
Gd = e;
|
6224
6225
|
function e(t, n, r) {
|
@@ -6270,9 +6271,9 @@ function wD() {
|
|
6270
6271
|
}
|
6271
6272
|
return Gd;
|
6272
6273
|
}
|
6273
|
-
var Wd,
|
6274
|
+
var Wd, t_;
|
6274
6275
|
function bD() {
|
6275
|
-
return
|
6276
|
+
return t_ || (t_ = 1, Wd = function(e, t, n) {
|
6276
6277
|
var r = " ", o = e.level, s = e.dataLevel, a = e.schema[t], u = e.schemaPath + e.util.getProperty(t), c = e.errSchemaPath + "/" + t, d = !e.opts.allErrors, h, g = "data" + (s || ""), v = "valid" + o, _ = "errs__" + o, w = e.opts.$data && a && a.$data, b;
|
6277
6278
|
w ? (r += " var schema" + o + " = " + e.util.getData(a.$data, s, e.dataPathArr) + "; ", b = "schema" + o) : b = a;
|
6278
6279
|
var p = this, S = "definition" + o, T = p.definition, C = "", A, M, $, x, I;
|
@@ -6330,10 +6331,10 @@ const SD = "http://json-schema.org/draft-07/schema#", ED = "http://json-schema.o
|
|
6330
6331
|
properties: PD,
|
6331
6332
|
default: !0
|
6332
6333
|
};
|
6333
|
-
var zd,
|
6334
|
+
var zd, r_;
|
6334
6335
|
function xD() {
|
6335
|
-
if (
|
6336
|
-
|
6336
|
+
if (r_) return zd;
|
6337
|
+
r_ = 1;
|
6337
6338
|
var i = IT;
|
6338
6339
|
return zd = {
|
6339
6340
|
$id: "https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",
|
@@ -6369,10 +6370,10 @@ function xD() {
|
|
6369
6370
|
}
|
6370
6371
|
}, zd;
|
6371
6372
|
}
|
6372
|
-
var Kd,
|
6373
|
+
var Kd, n_;
|
6373
6374
|
function ID() {
|
6374
|
-
if (
|
6375
|
-
|
6375
|
+
if (n_) return Kd;
|
6376
|
+
n_ = 1;
|
6376
6377
|
var i = /^[a-z_$][a-z0-9_$-]*$/i, e = bD(), t = xD();
|
6377
6378
|
Kd = {
|
6378
6379
|
add: n,
|
@@ -6457,10 +6458,10 @@ const RD = "http://json-schema.org/draft-07/schema#", kD = "https://raw.githubus
|
|
6457
6458
|
properties: ND,
|
6458
6459
|
additionalProperties: DD
|
6459
6460
|
};
|
6460
|
-
var Jd,
|
6461
|
+
var Jd, i_;
|
6461
6462
|
function $D() {
|
6462
|
-
if (
|
6463
|
-
|
6463
|
+
if (i_) return Jd;
|
6464
|
+
i_ = 1;
|
6464
6465
|
var i = YN(), e = Zm(), t = jN(), n = AT(), r = PT(), o = ZN(), s = yD(), a = _D(), u = us();
|
6465
6466
|
Jd = _, _.prototype.validate = w, _.prototype.compile = b, _.prototype.addSchema = p, _.prototype.addMetaSchema = S, _.prototype.validateSchema = T, _.prototype.getSchema = A, _.prototype.removeSchema = x, _.prototype.addFormat = W, _.prototype.errorsText = U, _.prototype._addSchema = O, _.prototype._compile = N, _.prototype.compileAsync = wD();
|
6466
6467
|
var c = ID();
|
@@ -6691,7 +6692,7 @@ function $D() {
|
|
6691
6692
|
}
|
6692
6693
|
var UD = $D();
|
6693
6694
|
const qD = /* @__PURE__ */ ic(UD);
|
6694
|
-
class
|
6695
|
+
class o_ extends HN {
|
6695
6696
|
/**
|
6696
6697
|
* Initializes this client with the given name and version information.
|
6697
6698
|
*/
|
@@ -6876,7 +6877,7 @@ class o0 extends HN {
|
|
6876
6877
|
}
|
6877
6878
|
}
|
6878
6879
|
var BD = Object.defineProperty, VD = (i, e, t) => e in i ? BD(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, bl = (i, e, t) => VD(i, typeof e != "symbol" ? e + "" : e, t);
|
6879
|
-
class
|
6880
|
+
class s_ extends Error {
|
6880
6881
|
constructor(e, t) {
|
6881
6882
|
super(e), bl(this, "type"), bl(this, "field"), bl(this, "value"), bl(this, "line"), this.name = "ParseError", this.type = t.type, this.field = t.field, this.value = t.value, this.line = t.line;
|
6882
6883
|
}
|
@@ -6923,7 +6924,7 @@ function HD(i) {
|
|
6923
6924
|
break;
|
6924
6925
|
case "retry":
|
6925
6926
|
/^\d+$/.test(b) ? n(parseInt(b, 10)) : t(
|
6926
|
-
new
|
6927
|
+
new s_(`Invalid \`retry\` value: "${b}"`, {
|
6927
6928
|
type: "invalid-retry",
|
6928
6929
|
value: b,
|
6929
6930
|
line: p
|
@@ -6932,7 +6933,7 @@ function HD(i) {
|
|
6932
6933
|
break;
|
6933
6934
|
default:
|
6934
6935
|
t(
|
6935
|
-
new
|
6936
|
+
new s_(
|
6936
6937
|
`Unknown field "${w.length > 20 ? `${w.slice(0, 20)}…` : w}"`,
|
6937
6938
|
{ type: "unknown-field", field: w, value: b, line: p }
|
6938
6939
|
)
|
@@ -6967,7 +6968,7 @@ function GD(i) {
|
|
6967
6968
|
}
|
6968
6969
|
return [e, t];
|
6969
6970
|
}
|
6970
|
-
class
|
6971
|
+
class a_ extends Event {
|
6971
6972
|
/**
|
6972
6973
|
* Constructs a new `ErrorEvent` instance. This is typically not called directly,
|
6973
6974
|
* but rather emitted by the `EventSource` object when an error occurs.
|
@@ -6992,7 +6993,7 @@ class a0 extends Event {
|
|
6992
6993
|
* @returns A string representation of the error
|
6993
6994
|
*/
|
6994
6995
|
[Symbol.for("nodejs.util.inspect.custom")](e, t, n) {
|
6995
|
-
return n(
|
6996
|
+
return n(l_(this), t);
|
6996
6997
|
}
|
6997
6998
|
/**
|
6998
6999
|
* Deno "hides" the `message` and `code` properties of the `ErrorEvent` instance,
|
@@ -7006,7 +7007,7 @@ class a0 extends Event {
|
|
7006
7007
|
* @returns A string representation of the error
|
7007
7008
|
*/
|
7008
7009
|
[Symbol.for("Deno.customInspect")](e, t) {
|
7009
|
-
return e(
|
7010
|
+
return e(l_(this), t);
|
7010
7011
|
}
|
7011
7012
|
}
|
7012
7013
|
function WD(i) {
|
@@ -7016,7 +7017,7 @@ function WD(i) {
|
|
7016
7017
|
function im(i) {
|
7017
7018
|
return i instanceof Error ? "errors" in i && Array.isArray(i.errors) ? i.errors.map(im).join(", ") : "cause" in i && i.cause instanceof Error ? `${i}: ${im(i.cause)}` : i.message : `${i}`;
|
7018
7019
|
}
|
7019
|
-
function
|
7020
|
+
function l_(i) {
|
7020
7021
|
return {
|
7021
7022
|
type: i.type,
|
7022
7023
|
message: i.message,
|
@@ -7028,7 +7029,7 @@ function l0(i) {
|
|
7028
7029
|
}
|
7029
7030
|
var RT = (i) => {
|
7030
7031
|
throw TypeError(i);
|
7031
|
-
}, Xm = (i, e, t) => e.has(i) || RT("Cannot " + t), ot = (i, e, t) => (Xm(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Zt = (i, e, t) => e.has(i) ? RT("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Lt = (i, e, t, n) => (Xm(i, e, "write to private field"), e.set(i, t), t), Wn = (i, e, t) => (Xm(i, e, "access private method"), t), Cr, Ki, Fo, yu, Wu, ia, Bo, oa, yi, $o, jo, Uo, Zs, ln, om, sm, am,
|
7032
|
+
}, Xm = (i, e, t) => e.has(i) || RT("Cannot " + t), ot = (i, e, t) => (Xm(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Zt = (i, e, t) => e.has(i) ? RT("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Lt = (i, e, t, n) => (Xm(i, e, "write to private field"), e.set(i, t), t), Wn = (i, e, t) => (Xm(i, e, "access private method"), t), Cr, Ki, Fo, yu, Wu, ia, Bo, oa, yi, $o, jo, Uo, Zs, ln, om, sm, am, u_, lm, um, Qs, cm, fm;
|
7032
7033
|
class _u extends EventTarget {
|
7033
7034
|
constructor(e, t) {
|
7034
7035
|
var n, r;
|
@@ -7169,14 +7170,14 @@ Cr = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), Fo = /*
|
|
7169
7170
|
* @internal
|
7170
7171
|
*/
|
7171
7172
|
om = function() {
|
7172
|
-
Lt(this, Cr, this.CONNECTING), Lt(this, yi, new AbortController()), ot(this, Wu)(ot(this, Ki), Wn(this, ln,
|
7173
|
+
Lt(this, Cr, this.CONNECTING), Lt(this, yi, new AbortController()), ot(this, Wu)(ot(this, Ki), Wn(this, ln, u_).call(this)).then(ot(this, sm)).catch(ot(this, am));
|
7173
7174
|
}, sm = /* @__PURE__ */ new WeakMap(), am = /* @__PURE__ */ new WeakMap(), /**
|
7174
7175
|
* Get request options for the `fetch()` request
|
7175
7176
|
*
|
7176
7177
|
* @returns The request options
|
7177
7178
|
* @internal
|
7178
7179
|
*/
|
7179
|
-
|
7180
|
+
u_ = function() {
|
7180
7181
|
var i;
|
7181
7182
|
const e = {
|
7182
7183
|
// [spec] Let `corsAttributeState` be `Anonymous`…
|
@@ -7198,7 +7199,7 @@ u0 = function() {
|
|
7198
7199
|
Qs = function(i, e) {
|
7199
7200
|
var t;
|
7200
7201
|
ot(this, Cr) !== this.CLOSED && Lt(this, Cr, this.CLOSED);
|
7201
|
-
const n = new
|
7202
|
+
const n = new a_("error", { code: e, message: i });
|
7202
7203
|
(t = ot(this, jo)) == null || t.call(this, n), this.dispatchEvent(n);
|
7203
7204
|
}, /**
|
7204
7205
|
* Schedules a reconnection attempt against the EventSource endpoint.
|
@@ -7212,7 +7213,7 @@ cm = function(i, e) {
|
|
7212
7213
|
if (ot(this, Cr) === this.CLOSED)
|
7213
7214
|
return;
|
7214
7215
|
Lt(this, Cr, this.CONNECTING);
|
7215
|
-
const n = new
|
7216
|
+
const n = new a_("error", { code: e, message: i });
|
7216
7217
|
(t = ot(this, jo)) == null || t.call(this, n), this.dispatchEvent(n), Lt(this, Bo, setTimeout(ot(this, fm), ot(this, ia)));
|
7217
7218
|
}, fm = /* @__PURE__ */ new WeakMap(), /**
|
7218
7219
|
* ReadyState representing an EventSource currently trying to connect
|
@@ -7669,14 +7670,14 @@ class f2 {
|
|
7669
7670
|
}
|
7670
7671
|
const Vo = Symbol.for("disabled-client");
|
7671
7672
|
function d2(i, e, t) {
|
7672
|
-
const n = new
|
7673
|
-
|
7673
|
+
const n = new o_({ name: "amp-mcp-client", version: "0.0.0-dev" }), r = Qt.of(void 0).pipe(
|
7674
|
+
t0(
|
7674
7675
|
() => qE(
|
7675
7676
|
es(async () => (await n.close(), await new Promise((c) => setTimeout(c, 100)), h2(i, n, e))),
|
7676
7677
|
vu
|
7677
7678
|
).pipe(
|
7678
7679
|
Um((c) => {
|
7679
|
-
c instanceof
|
7680
|
+
c instanceof o_ && c?.close();
|
7680
7681
|
})
|
7681
7682
|
),
|
7682
7683
|
{
|
@@ -7712,7 +7713,7 @@ function d2(i, e, t) {
|
|
7712
7713
|
}
|
7713
7714
|
)
|
7714
7715
|
).pipe(
|
7715
|
-
|
7716
|
+
t0((c) => c instanceof Error ? Qt.of(c) : c === Vo ? Qt.of([]) : es(async (d) => (await c.listTools({ signal: d })).tools))
|
7716
7717
|
);
|
7717
7718
|
return {
|
7718
7719
|
status: s,
|
@@ -7746,10 +7747,10 @@ async function h2(i, e, t) {
|
|
7746
7747
|
if ("url" in i)
|
7747
7748
|
n = new f2(new URL(i.url));
|
7748
7749
|
else {
|
7749
|
-
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-
|
7750
|
+
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-CWDhvBXX.js"), o = t.loadProfile === "never" || !t.workingDirectory ? process.env : await pt(
|
7750
7751
|
r(t.workingDirectory, t.loadProfile)
|
7751
7752
|
);
|
7752
|
-
n = await import("./stdio-
|
7753
|
+
n = await import("./stdio-CEtFG9QM.js").then(
|
7753
7754
|
({ StdioClientTransport: s }) => new s({
|
7754
7755
|
...i,
|
7755
7756
|
stderr: "pipe",
|
@@ -8128,7 +8129,7 @@ class E2 {
|
|
8128
8129
|
ha(),
|
8129
8130
|
fn((t) => t ? this.exclusiveThreads.get(e) : es(async (n) => {
|
8130
8131
|
let r = await this.storage.get(e);
|
8131
|
-
return n?.throwIfAborted(), r || (r =
|
8132
|
+
return n?.throwIfAborted(), r || (r = c_(e), await this.storage.set(e, r), n?.throwIfAborted()), r;
|
8132
8133
|
})),
|
8133
8134
|
// Throttle to avoid passing very large objects (~1MB+ often) across the RPC boundary,
|
8134
8135
|
// which causes GC pressure.
|
@@ -8148,7 +8149,7 @@ class E2 {
|
|
8148
8149
|
let t = this.exclusiveThreads.get(e);
|
8149
8150
|
if (!t) {
|
8150
8151
|
let o = await this.storage.get(e);
|
8151
|
-
o || (o =
|
8152
|
+
o || (o = c_(e), await this.storage.set(e, o)), t = new _i(o), this.exclusiveThreads.set(e, t), this.exclusiveThreadsChanged.next(), await OT();
|
8152
8153
|
}
|
8153
8154
|
let n = !1;
|
8154
8155
|
return {
|
@@ -8205,7 +8206,7 @@ class E2 {
|
|
8205
8206
|
this.flusher.unsubscribe(), this.exclusiveThreads.clear();
|
8206
8207
|
}
|
8207
8208
|
}
|
8208
|
-
function
|
8209
|
+
function c_(i) {
|
8209
8210
|
return {
|
8210
8211
|
v: 0,
|
8211
8212
|
id: i,
|
@@ -8526,7 +8527,7 @@ This tool converts web content to markdown format for better readability.`,
|
|
8526
8527
|
requiresNetwork: !0
|
8527
8528
|
}
|
8528
8529
|
},
|
8529
|
-
fn: import("./node-
|
8530
|
+
fn: import("./node-w5kFgl6-.js").then(({ nodeReadWebPageTool: i }) => i)
|
8530
8531
|
}, x2 = "web_search", I2 = `Search the web for information.
|
8531
8532
|
|
8532
8533
|
Returns search result titles, associated URLs, and a small summary of the
|
@@ -8574,7 +8575,7 @@ the \`${dm}\` with the url.
|
|
8574
8575
|
requiresNetwork: !0
|
8575
8576
|
}
|
8576
8577
|
},
|
8577
|
-
fn: import("./node-
|
8578
|
+
fn: import("./node-CeX3AGot.js").then(({ nodeWebSearchTool: i }) => i)
|
8578
8579
|
}, k2 = `Execute a routine from your routines.amp.yaml file.
|
8579
8580
|
|
8580
8581
|
This tool allows you to run predefined routines that automate common tasks. You can optionally provide a userInput argument that describes what input should be passed to the routine.
|
@@ -8604,12 +8605,12 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
|
|
8604
8605
|
},
|
8605
8606
|
source: "builtin"
|
8606
8607
|
},
|
8607
|
-
fn: import("./node-
|
8608
|
+
fn: import("./node-DXblyBSN.js").then(({ runRoutine: i }) => i)
|
8608
8609
|
};
|
8609
|
-
let
|
8610
|
+
let f_ = !1;
|
8610
8611
|
async function MT(i, e = !1) {
|
8611
|
-
return
|
8612
|
-
} } : (
|
8612
|
+
return f_ ? { dispose() {
|
8613
|
+
} } : (f_ = !0, await M2(i, e));
|
8613
8614
|
}
|
8614
8615
|
async function M2(i, e = !1) {
|
8615
8616
|
const t = [
|
@@ -8638,10 +8639,10 @@ async function M2(i, e = !1) {
|
|
8638
8639
|
}
|
8639
8640
|
};
|
8640
8641
|
}
|
8641
|
-
var Sl = { exports: {} }, El = {}, Tl = {},
|
8642
|
+
var Sl = { exports: {} }, El = {}, Tl = {}, d_;
|
8642
8643
|
function gc() {
|
8643
|
-
if (
|
8644
|
-
|
8644
|
+
if (d_) return Tl;
|
8645
|
+
d_ = 1;
|
8645
8646
|
class i extends Error {
|
8646
8647
|
/**
|
8647
8648
|
* Constructs the CommanderError class
|
@@ -8666,10 +8667,10 @@ function gc() {
|
|
8666
8667
|
}
|
8667
8668
|
return Tl.CommanderError = i, Tl.InvalidArgumentError = e, Tl;
|
8668
8669
|
}
|
8669
|
-
var
|
8670
|
+
var h_;
|
8670
8671
|
function tg() {
|
8671
|
-
if (
|
8672
|
-
|
8672
|
+
if (h_) return El;
|
8673
|
+
h_ = 1;
|
8673
8674
|
const { InvalidArgumentError: i } = gc();
|
8674
8675
|
class e {
|
8675
8676
|
/**
|
@@ -8759,10 +8760,10 @@ function tg() {
|
|
8759
8760
|
}
|
8760
8761
|
return El.Argument = e, El.humanReadableArgName = t, El;
|
8761
8762
|
}
|
8762
|
-
var Zd = {}, Qd = {},
|
8763
|
+
var Zd = {}, Qd = {}, p_;
|
8763
8764
|
function LT() {
|
8764
|
-
if (
|
8765
|
-
|
8765
|
+
if (p_) return Qd;
|
8766
|
+
p_ = 1;
|
8766
8767
|
const { humanReadableArgName: i } = tg();
|
8767
8768
|
class e {
|
8768
8769
|
constructor() {
|
@@ -9041,10 +9042,10 @@ function LT() {
|
|
9041
9042
|
}
|
9042
9043
|
return Qd.Help = e, Qd;
|
9043
9044
|
}
|
9044
|
-
var qs = {},
|
9045
|
+
var qs = {}, m_;
|
9045
9046
|
function NT() {
|
9046
|
-
if (
|
9047
|
-
|
9047
|
+
if (m_) return qs;
|
9048
|
+
m_ = 1;
|
9048
9049
|
const { InvalidArgumentError: i } = gc();
|
9049
9050
|
class e {
|
9050
9051
|
/**
|
@@ -9246,10 +9247,10 @@ function NT() {
|
|
9246
9247
|
}
|
9247
9248
|
return qs.Option = e, qs.splitOptionFlags = r, qs.DualOptions = t, qs;
|
9248
9249
|
}
|
9249
|
-
var Xd = {},
|
9250
|
+
var Xd = {}, g_;
|
9250
9251
|
function L2() {
|
9251
|
-
if (
|
9252
|
-
|
9252
|
+
if (g_) return Xd;
|
9253
|
+
g_ = 1;
|
9253
9254
|
const i = 3;
|
9254
9255
|
function e(n, r) {
|
9255
9256
|
if (Math.abs(n.length - r.length) > i) return Math.max(n.length, r.length);
|
@@ -9289,10 +9290,10 @@ function L2() {
|
|
9289
9290
|
}
|
9290
9291
|
return Xd.suggestSimilar = t, Xd;
|
9291
9292
|
}
|
9292
|
-
var
|
9293
|
+
var v_;
|
9293
9294
|
function N2() {
|
9294
|
-
if (
|
9295
|
-
|
9295
|
+
if (v_) return Zd;
|
9296
|
+
v_ = 1;
|
9296
9297
|
const i = Vm.EventEmitter, e = iL, t = nt, n = ts, r = aL, { Argument: o, humanReadableArgName: s } = tg(), { CommanderError: a } = gc(), { Help: u } = LT(), { Option: c, splitOptionFlags: d, DualOptions: h } = NT(), { suggestSimilar: g } = L2();
|
9297
9298
|
class v extends i {
|
9298
9299
|
/**
|
@@ -10622,9 +10623,9 @@ Expecting one of '${T.join("', '")}'`);
|
|
10622
10623
|
}
|
10623
10624
|
return Zd.Command = v, Zd;
|
10624
10625
|
}
|
10625
|
-
var
|
10626
|
+
var y_;
|
10626
10627
|
function D2() {
|
10627
|
-
return
|
10628
|
+
return y_ || (y_ = 1, function(i, e) {
|
10628
10629
|
const { Argument: t } = tg(), { Command: n } = N2(), { CommanderError: r, InvalidArgumentError: o } = gc(), { Help: s } = LT(), { Option: a } = NT();
|
10629
10630
|
e = i.exports = new n(), e.program = e, e.Command = n, e.Option = a, e.Argument = t, e.Help = s, e.CommanderError = r, e.InvalidArgumentError = o, e.InvalidOptionArgumentError = o;
|
10630
10631
|
}(Sl, Sl.exports)), Sl.exports;
|
@@ -11262,14 +11263,14 @@ function j2(i) {
|
|
11262
11263
|
if (i.length > 0 && typeof i[0] == "object") {
|
11263
11264
|
const e = [];
|
11264
11265
|
for (const t of i)
|
11265
|
-
typeof t == "object" && t !== null && e.push(
|
11266
|
+
typeof t == "object" && t !== null && e.push(__(t));
|
11266
11267
|
return e;
|
11267
11268
|
}
|
11268
11269
|
}
|
11269
|
-
return typeof i == "object" && i !== null ?
|
11270
|
+
return typeof i == "object" && i !== null ? __(i) : i;
|
11270
11271
|
}
|
11271
11272
|
}
|
11272
|
-
function
|
11273
|
+
function __(i) {
|
11273
11274
|
const e = JSON.parse(JSON.stringify(i));
|
11274
11275
|
for (const t of qT)
|
11275
11276
|
t in e && typeof e[t] == "string" && (e[t] = Zo(e[t]));
|
@@ -11298,10 +11299,10 @@ async function vm(i) {
|
|
11298
11299
|
|
11299
11300
|
`).trimEnd(), usage: n["~debugUsage"] };
|
11300
11301
|
}
|
11301
|
-
var eh = {}, Cl = {}, th,
|
11302
|
+
var eh = {}, Cl = {}, th, w_;
|
11302
11303
|
function qr() {
|
11303
|
-
if (
|
11304
|
-
|
11304
|
+
if (w_) return th;
|
11305
|
+
w_ = 1;
|
11305
11306
|
function i(_) {
|
11306
11307
|
"@babel/helpers - typeof";
|
11307
11308
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(w) {
|
@@ -11405,9 +11406,9 @@ Found: `.concat(b.toString().split(`
|
|
11405
11406
|
return b.Format = w, b;
|
11406
11407
|
}, th;
|
11407
11408
|
}
|
11408
|
-
var Bs = { exports: {} }, rh = { exports: {} }, nh = { exports: {} }, ih = { exports: {} },
|
11409
|
+
var Bs = { exports: {} }, rh = { exports: {} }, nh = { exports: {} }, ih = { exports: {} }, b_;
|
11409
11410
|
function Q2() {
|
11410
|
-
return
|
11411
|
+
return b_ || (b_ = 1, function(i) {
|
11411
11412
|
var e = {};
|
11412
11413
|
i.exports = e;
|
11413
11414
|
var t = {
|
@@ -11469,18 +11470,18 @@ function Q2() {
|
|
11469
11470
|
});
|
11470
11471
|
}(ih)), ih.exports;
|
11471
11472
|
}
|
11472
|
-
var oh,
|
11473
|
+
var oh, S_;
|
11473
11474
|
function X2() {
|
11474
|
-
return
|
11475
|
+
return S_ || (S_ = 1, oh = function(i, e) {
|
11475
11476
|
e = e || process.argv || [];
|
11476
11477
|
var t = e.indexOf("--"), n = /^-{1,2}/.test(i) ? "" : "--", r = e.indexOf(n + i);
|
11477
11478
|
return r !== -1 && (t === -1 ? !0 : r < t);
|
11478
11479
|
}), oh;
|
11479
11480
|
}
|
11480
|
-
var sh,
|
11481
|
+
var sh, E_;
|
11481
11482
|
function eF() {
|
11482
|
-
if (
|
11483
|
-
|
11483
|
+
if (E_) return sh;
|
11484
|
+
E_ = 1;
|
11484
11485
|
var i = ei, e = X2(), t = process.env, n = void 0;
|
11485
11486
|
e("no-color") || e("no-colors") || e("color=false") ? n = !1 : (e("color") || e("colors") || e("color=true") || e("color=always")) && (n = !0), "FORCE_COLOR" in t && (n = t.FORCE_COLOR.length === 0 || parseInt(t.FORCE_COLOR, 10) !== 0);
|
11486
11487
|
function r(a) {
|
@@ -11534,9 +11535,9 @@ function eF() {
|
|
11534
11535
|
stderr: s(process.stderr)
|
11535
11536
|
}, sh;
|
11536
11537
|
}
|
11537
|
-
var ah = { exports: {} },
|
11538
|
+
var ah = { exports: {} }, T_;
|
11538
11539
|
function tF() {
|
11539
|
-
return
|
11540
|
+
return T_ || (T_ = 1, function(i) {
|
11540
11541
|
i.exports = function(t, n) {
|
11541
11542
|
var r = "";
|
11542
11543
|
t = t || "Run the trap, drop the bass", t = t.split("");
|
@@ -11595,9 +11596,9 @@ function tF() {
|
|
11595
11596
|
};
|
11596
11597
|
}(ah)), ah.exports;
|
11597
11598
|
}
|
11598
|
-
var lh = { exports: {} },
|
11599
|
+
var lh = { exports: {} }, C_;
|
11599
11600
|
function rF() {
|
11600
|
-
return
|
11601
|
+
return C_ || (C_ = 1, function(i) {
|
11601
11602
|
i.exports = function(t, n) {
|
11602
11603
|
t = t || " he is here ";
|
11603
11604
|
var r = {
|
@@ -11757,9 +11758,9 @@ function rF() {
|
|
11757
11758
|
};
|
11758
11759
|
}(lh)), lh.exports;
|
11759
11760
|
}
|
11760
|
-
var uh = { exports: {} },
|
11761
|
+
var uh = { exports: {} }, A_;
|
11761
11762
|
function nF() {
|
11762
|
-
return
|
11763
|
+
return A_ || (A_ = 1, function(i) {
|
11763
11764
|
i.exports = function(e) {
|
11764
11765
|
return function(t, n, r) {
|
11765
11766
|
if (t === " ") return t;
|
@@ -11775,9 +11776,9 @@ function nF() {
|
|
11775
11776
|
};
|
11776
11777
|
}(uh)), uh.exports;
|
11777
11778
|
}
|
11778
|
-
var ch = { exports: {} },
|
11779
|
+
var ch = { exports: {} }, P_;
|
11779
11780
|
function iF() {
|
11780
|
-
return
|
11781
|
+
return P_ || (P_ = 1, function(i) {
|
11781
11782
|
i.exports = function(e) {
|
11782
11783
|
return function(t, n, r) {
|
11783
11784
|
return n % 2 === 0 ? t : e.inverse(t);
|
@@ -11785,9 +11786,9 @@ function iF() {
|
|
11785
11786
|
};
|
11786
11787
|
}(ch)), ch.exports;
|
11787
11788
|
}
|
11788
|
-
var fh = { exports: {} },
|
11789
|
+
var fh = { exports: {} }, x_;
|
11789
11790
|
function oF() {
|
11790
|
-
return
|
11791
|
+
return x_ || (x_ = 1, function(i) {
|
11791
11792
|
i.exports = function(e) {
|
11792
11793
|
var t = ["red", "yellow", "green", "blue", "magenta"];
|
11793
11794
|
return function(n, r, o) {
|
@@ -11796,9 +11797,9 @@ function oF() {
|
|
11796
11797
|
};
|
11797
11798
|
}(fh)), fh.exports;
|
11798
11799
|
}
|
11799
|
-
var dh = { exports: {} },
|
11800
|
+
var dh = { exports: {} }, I_;
|
11800
11801
|
function sF() {
|
11801
|
-
return
|
11802
|
+
return I_ || (I_ = 1, function(i) {
|
11802
11803
|
i.exports = function(e) {
|
11803
11804
|
var t = [
|
11804
11805
|
"underline",
|
@@ -11825,9 +11826,9 @@ function sF() {
|
|
11825
11826
|
};
|
11826
11827
|
}(dh)), dh.exports;
|
11827
11828
|
}
|
11828
|
-
var
|
11829
|
+
var R_;
|
11829
11830
|
function aF() {
|
11830
|
-
return
|
11831
|
+
return R_ || (R_ = 1, function(i) {
|
11831
11832
|
var e = {};
|
11832
11833
|
i.exports = e, e.themes = {};
|
11833
11834
|
var t = In, n = e.styles = Q2(), r = Object.defineProperties, o = new RegExp(/[\r\n]+/g);
|
@@ -11922,16 +11923,16 @@ function aF() {
|
|
11922
11923
|
r(e, g());
|
11923
11924
|
}(nh)), nh.exports;
|
11924
11925
|
}
|
11925
|
-
var
|
11926
|
+
var k_;
|
11926
11927
|
function BT() {
|
11927
|
-
return
|
11928
|
+
return k_ || (k_ = 1, function(i) {
|
11928
11929
|
var e = aF();
|
11929
11930
|
i.exports = e;
|
11930
11931
|
}(rh)), rh.exports;
|
11931
11932
|
}
|
11932
|
-
var hh = {}, ph = {}, Al = {},
|
11933
|
+
var hh = {}, ph = {}, Al = {}, O_;
|
11933
11934
|
function lF() {
|
11934
|
-
return
|
11935
|
+
return O_ || (O_ = 1, Al.levels = {
|
11935
11936
|
error: 0,
|
11936
11937
|
warn: 1,
|
11937
11938
|
help: 2,
|
@@ -11955,9 +11956,9 @@ function lF() {
|
|
11955
11956
|
silly: "magenta"
|
11956
11957
|
}), Al;
|
11957
11958
|
}
|
11958
|
-
var Pl = {},
|
11959
|
+
var Pl = {}, M_;
|
11959
11960
|
function uF() {
|
11960
|
-
return
|
11961
|
+
return M_ || (M_ = 1, Pl.levels = {
|
11961
11962
|
error: 0,
|
11962
11963
|
warn: 1,
|
11963
11964
|
info: 2,
|
@@ -11975,9 +11976,9 @@ function uF() {
|
|
11975
11976
|
silly: "magenta"
|
11976
11977
|
}), Pl;
|
11977
11978
|
}
|
11978
|
-
var xl = {},
|
11979
|
+
var xl = {}, L_;
|
11979
11980
|
function cF() {
|
11980
|
-
return
|
11981
|
+
return L_ || (L_ = 1, xl.levels = {
|
11981
11982
|
emerg: 0,
|
11982
11983
|
alert: 1,
|
11983
11984
|
crit: 2,
|
@@ -11997,9 +11998,9 @@ function cF() {
|
|
11997
11998
|
debug: "blue"
|
11998
11999
|
}), xl;
|
11999
12000
|
}
|
12000
|
-
var
|
12001
|
+
var N_;
|
12001
12002
|
function fF() {
|
12002
|
-
return
|
12003
|
+
return N_ || (N_ = 1, function(i) {
|
12003
12004
|
Object.defineProperty(i, "cli", {
|
12004
12005
|
value: lF()
|
12005
12006
|
}), Object.defineProperty(i, "npm", {
|
@@ -12009,9 +12010,9 @@ function fF() {
|
|
12009
12010
|
});
|
12010
12011
|
}(ph)), ph;
|
12011
12012
|
}
|
12012
|
-
var
|
12013
|
+
var D_;
|
12013
12014
|
function Ht() {
|
12014
|
-
return
|
12015
|
+
return D_ || (D_ = 1, function(i) {
|
12015
12016
|
Object.defineProperty(i, "LEVEL", {
|
12016
12017
|
value: Symbol.for("level")
|
12017
12018
|
}), Object.defineProperty(i, "MESSAGE", {
|
@@ -12023,10 +12024,10 @@ function Ht() {
|
|
12023
12024
|
});
|
12024
12025
|
}(hh)), hh;
|
12025
12026
|
}
|
12026
|
-
var
|
12027
|
+
var F_;
|
12027
12028
|
function rg() {
|
12028
|
-
if (
|
12029
|
-
|
12029
|
+
if (F_) return Bs.exports;
|
12030
|
+
F_ = 1;
|
12030
12031
|
function i(g) {
|
12031
12032
|
"@babel/helpers - typeof";
|
12032
12033
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
@@ -12118,28 +12119,28 @@ function rg() {
|
|
12118
12119
|
return new h(g);
|
12119
12120
|
}, Bs.exports.Colorizer = Bs.exports.Format = h, Bs.exports;
|
12120
12121
|
}
|
12121
|
-
var mh, $
|
12122
|
+
var mh, $_;
|
12122
12123
|
function dF() {
|
12123
|
-
if ($
|
12124
|
-
$
|
12124
|
+
if ($_) return mh;
|
12125
|
+
$_ = 1;
|
12125
12126
|
var i = rg(), e = i.Colorizer;
|
12126
12127
|
return mh = function(t) {
|
12127
12128
|
return e.addColors(t.colors || t), t;
|
12128
12129
|
}, mh;
|
12129
12130
|
}
|
12130
|
-
var gh,
|
12131
|
+
var gh, U_;
|
12131
12132
|
function hF() {
|
12132
|
-
if (
|
12133
|
-
|
12133
|
+
if (U_) return gh;
|
12134
|
+
U_ = 1;
|
12134
12135
|
var i = qr();
|
12135
12136
|
return gh = i(function(e) {
|
12136
12137
|
return e.message = " ".concat(e.message), e;
|
12137
12138
|
}), gh;
|
12138
12139
|
}
|
12139
|
-
var Il = { exports: {} }, Vs = { exports: {} },
|
12140
|
+
var Il = { exports: {} }, Vs = { exports: {} }, q_;
|
12140
12141
|
function VT() {
|
12141
|
-
if (
|
12142
|
-
|
12142
|
+
if (q_) return Vs.exports;
|
12143
|
+
q_ = 1;
|
12143
12144
|
function i(p) {
|
12144
12145
|
"@babel/helpers - typeof";
|
12145
12146
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(S) {
|
@@ -12267,10 +12268,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
12267
12268
|
return new b(p);
|
12268
12269
|
}, Vs.exports.Padder = Vs.exports.Format = b, Vs.exports;
|
12269
12270
|
}
|
12270
|
-
var
|
12271
|
+
var B_;
|
12271
12272
|
function pF() {
|
12272
|
-
if (
|
12273
|
-
|
12273
|
+
if (B_) return Il.exports;
|
12274
|
+
B_ = 1;
|
12274
12275
|
function i(_) {
|
12275
12276
|
"@babel/helpers - typeof";
|
12276
12277
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(w) {
|
@@ -12321,10 +12322,10 @@ function pF() {
|
|
12321
12322
|
return new v(_);
|
12322
12323
|
}, Il.exports.Format = v, Il.exports;
|
12323
12324
|
}
|
12324
|
-
var Rl = { exports: {} },
|
12325
|
+
var Rl = { exports: {} }, V_;
|
12325
12326
|
function mF() {
|
12326
|
-
if (
|
12327
|
-
|
12327
|
+
if (V_) return Rl.exports;
|
12328
|
+
V_ = 1;
|
12328
12329
|
var i = qr();
|
12329
12330
|
function e(n) {
|
12330
12331
|
if (n.every(t))
|
@@ -12348,10 +12349,10 @@ function mF() {
|
|
12348
12349
|
return a.Format = s.Format, a;
|
12349
12350
|
}, Rl.exports.cascade = e, Rl.exports;
|
12350
12351
|
}
|
12351
|
-
var vh,
|
12352
|
+
var vh, H_;
|
12352
12353
|
function gF() {
|
12353
|
-
if (
|
12354
|
-
|
12354
|
+
if (H_) return vh;
|
12355
|
+
H_ = 1;
|
12355
12356
|
function i(u) {
|
12356
12357
|
"@babel/helpers - typeof";
|
12357
12358
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(c) {
|
@@ -12391,9 +12392,9 @@ function gF() {
|
|
12391
12392
|
return Object.assign(u, v), u.message = v.message, u[a] = v.message, d && (u.stack = v.stack), h && (u.cause = v.cause), u;
|
12392
12393
|
}), vh;
|
12393
12394
|
}
|
12394
|
-
var kl = { exports: {} },
|
12395
|
+
var kl = { exports: {} }, G_;
|
12395
12396
|
function ba() {
|
12396
|
-
return
|
12397
|
+
return G_ || (G_ = 1, function(i, e) {
|
12397
12398
|
const { hasOwnProperty: t } = Object.prototype, n = p();
|
12398
12399
|
n.configure = p, n.stringify = n, n.default = n, e.stringify = n, e.configure = p, i.exports = n;
|
12399
12400
|
const r = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;
|
@@ -12791,10 +12792,10 @@ ${Z}`), W.pop(), `{${ee}}`;
|
|
12791
12792
|
}
|
12792
12793
|
}(kl, kl.exports)), kl.exports;
|
12793
12794
|
}
|
12794
|
-
var yh,
|
12795
|
+
var yh, W_;
|
12795
12796
|
function vF() {
|
12796
|
-
if (
|
12797
|
-
|
12797
|
+
if (W_) return yh;
|
12798
|
+
W_ = 1;
|
12798
12799
|
var i = qr(), e = Ht(), t = e.MESSAGE, n = ba();
|
12799
12800
|
function r(o, s) {
|
12800
12801
|
return typeof s == "bigint" ? s.toString() : s;
|
@@ -12804,29 +12805,29 @@ function vF() {
|
|
12804
12805
|
return o[t] = a(o, s.replacer || r, s.space), o;
|
12805
12806
|
}), yh;
|
12806
12807
|
}
|
12807
|
-
var _h,
|
12808
|
+
var _h, z_;
|
12808
12809
|
function yF() {
|
12809
|
-
if (
|
12810
|
-
|
12810
|
+
if (z_) return _h;
|
12811
|
+
z_ = 1;
|
12811
12812
|
var i = qr();
|
12812
12813
|
return _h = i(function(e, t) {
|
12813
12814
|
return t.message ? (e.message = "[".concat(t.label, "] ").concat(e.message), e) : (e.label = t.label, e);
|
12814
12815
|
}), _h;
|
12815
12816
|
}
|
12816
|
-
var wh,
|
12817
|
+
var wh, K_;
|
12817
12818
|
function _F() {
|
12818
|
-
if (
|
12819
|
-
|
12819
|
+
if (K_) return wh;
|
12820
|
+
K_ = 1;
|
12820
12821
|
var i = qr(), e = Ht(), t = e.MESSAGE, n = ba();
|
12821
12822
|
return wh = i(function(r) {
|
12822
12823
|
var o = {};
|
12823
12824
|
return r.message && (o["@message"] = r.message, delete r.message), r.timestamp && (o["@timestamp"] = r.timestamp, delete r.timestamp), o["@fields"] = r, r[t] = n(o), r;
|
12824
12825
|
}), wh;
|
12825
12826
|
}
|
12826
|
-
var bh,
|
12827
|
+
var bh, J_;
|
12827
12828
|
function wF() {
|
12828
|
-
if (
|
12829
|
-
|
12829
|
+
if (J_) return bh;
|
12830
|
+
J_ = 1;
|
12830
12831
|
function i(a) {
|
12831
12832
|
"@babel/helpers - typeof";
|
12832
12833
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
|
@@ -12873,10 +12874,10 @@ function wF() {
|
|
12873
12874
|
return !u.fillExcept && !u.fillWith && (d.push("level"), d.push("message")), u.fillExcept && (d = u.fillExcept), d.length > 0 ? o(a, d, c) : u.fillWith ? s(a, u.fillWith, c) : a;
|
12874
12875
|
}), bh;
|
12875
12876
|
}
|
12876
|
-
var Sh,
|
12877
|
+
var Sh, Y_;
|
12877
12878
|
function bF() {
|
12878
|
-
if (
|
12879
|
-
|
12879
|
+
if (Y_) return Sh;
|
12880
|
+
Y_ = 1;
|
12880
12881
|
var i = 1e3, e = i * 60, t = e * 60, n = t * 24, r = n * 7, o = n * 365.25;
|
12881
12882
|
Sh = function(d, h) {
|
12882
12883
|
h = h || {};
|
@@ -12955,30 +12956,30 @@ function bF() {
|
|
12955
12956
|
}
|
12956
12957
|
return Sh;
|
12957
12958
|
}
|
12958
|
-
var Eh,
|
12959
|
+
var Eh, j_;
|
12959
12960
|
function SF() {
|
12960
|
-
if (
|
12961
|
-
|
12961
|
+
if (j_) return Eh;
|
12962
|
+
j_ = 1;
|
12962
12963
|
var i = void 0, e = qr(), t = bF();
|
12963
12964
|
return Eh = e(function(n) {
|
12964
12965
|
var r = +/* @__PURE__ */ new Date();
|
12965
12966
|
return i.diff = r - (i.prevTime || r), i.prevTime = r, n.ms = "+".concat(t(i.diff)), n;
|
12966
12967
|
}), Eh;
|
12967
12968
|
}
|
12968
|
-
var Th,
|
12969
|
+
var Th, Z_;
|
12969
12970
|
function EF() {
|
12970
|
-
if (
|
12971
|
-
|
12971
|
+
if (Z_) return Th;
|
12972
|
+
Z_ = 1;
|
12972
12973
|
var i = In.inspect, e = qr(), t = Ht(), n = t.LEVEL, r = t.MESSAGE, o = t.SPLAT;
|
12973
12974
|
return Th = e(function(s) {
|
12974
12975
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, u = Object.assign({}, s);
|
12975
12976
|
return delete u[n], delete u[r], delete u[o], s[r] = i(u, !1, a.depth || null, a.colorize), s;
|
12976
12977
|
}), Th;
|
12977
12978
|
}
|
12978
|
-
var Hs = { exports: {} },
|
12979
|
+
var Hs = { exports: {} }, Q_;
|
12979
12980
|
function TF() {
|
12980
|
-
if (
|
12981
|
-
|
12981
|
+
if (Q_) return Hs.exports;
|
12982
|
+
Q_ = 1;
|
12982
12983
|
function i(c) {
|
12983
12984
|
"@babel/helpers - typeof";
|
12984
12985
|
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
|
@@ -13028,10 +13029,10 @@ function TF() {
|
|
13028
13029
|
return new u(c);
|
13029
13030
|
}, Hs.exports.Printf = Hs.exports.Format = u, Hs.exports;
|
13030
13031
|
}
|
13031
|
-
var Ch,
|
13032
|
+
var Ch, X_;
|
13032
13033
|
function CF() {
|
13033
|
-
if (
|
13034
|
-
|
13034
|
+
if (X_) return Ch;
|
13035
|
+
X_ = 1;
|
13035
13036
|
var i = qr(), e = Ht(), t = e.MESSAGE, n = ba();
|
13036
13037
|
return Ch = i(function(r) {
|
13037
13038
|
var o = n(Object.assign({}, r, {
|
@@ -22485,10 +22486,10 @@ function X5(i, e) {
|
|
22485
22486
|
const t = {}, n = m(e, ["authConfig"]);
|
22486
22487
|
return n != null && y(t, ["authConfig"], Q5(i, n)), t;
|
22487
22488
|
}
|
22488
|
-
function
|
22489
|
+
function eB() {
|
22489
22490
|
return {};
|
22490
22491
|
}
|
22491
|
-
function
|
22492
|
+
function tB(i, e) {
|
22492
22493
|
const t = {}, n = m(e, [
|
22493
22494
|
"functionDeclarations"
|
22494
22495
|
]);
|
@@ -22507,13 +22508,13 @@ function t9(i, e) {
|
|
22507
22508
|
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
22508
22509
|
if (m(e, ["googleMaps"]) !== void 0)
|
22509
22510
|
throw new Error("googleMaps parameter is not supported in Gemini API.");
|
22510
|
-
m(e, ["urlContext"]) != null && y(t, ["urlContext"],
|
22511
|
+
m(e, ["urlContext"]) != null && y(t, ["urlContext"], eB());
|
22511
22512
|
const a = m(e, [
|
22512
22513
|
"codeExecution"
|
22513
22514
|
]);
|
22514
22515
|
return a != null && y(t, ["codeExecution"], a), t;
|
22515
22516
|
}
|
22516
|
-
function
|
22517
|
+
function rB(i, e) {
|
22517
22518
|
const t = {}, n = m(e, [
|
22518
22519
|
"functionDeclarations"
|
22519
22520
|
]);
|
@@ -22539,13 +22540,13 @@ function r9(i, e) {
|
|
22539
22540
|
]);
|
22540
22541
|
return c != null && y(t, ["codeExecution"], c), t;
|
22541
22542
|
}
|
22542
|
-
function
|
22543
|
+
function nB(i, e) {
|
22543
22544
|
const t = {}, n = m(e, ["handle"]);
|
22544
22545
|
if (n != null && y(t, ["handle"], n), m(e, ["transparent"]) !== void 0)
|
22545
22546
|
throw new Error("transparent parameter is not supported in Gemini API.");
|
22546
22547
|
return t;
|
22547
22548
|
}
|
22548
|
-
function
|
22549
|
+
function iB(i, e) {
|
22549
22550
|
const t = {}, n = m(e, ["handle"]);
|
22550
22551
|
n != null && y(t, ["handle"], n);
|
22551
22552
|
const r = m(e, ["transparent"]);
|
@@ -22557,7 +22558,7 @@ function WS() {
|
|
22557
22558
|
function zS() {
|
22558
22559
|
return {};
|
22559
22560
|
}
|
22560
|
-
function
|
22561
|
+
function oB(i, e) {
|
22561
22562
|
const t = {}, n = m(e, ["disabled"]);
|
22562
22563
|
n != null && y(t, ["disabled"], n);
|
22563
22564
|
const r = m(e, [
|
@@ -22577,7 +22578,7 @@ function o9(i, e) {
|
|
22577
22578
|
]);
|
22578
22579
|
return a != null && y(t, ["silenceDurationMs"], a), t;
|
22579
22580
|
}
|
22580
|
-
function
|
22581
|
+
function sB(i, e) {
|
22581
22582
|
const t = {}, n = m(e, ["disabled"]);
|
22582
22583
|
n != null && y(t, ["disabled"], n);
|
22583
22584
|
const r = m(e, [
|
@@ -22597,11 +22598,11 @@ function s9(i, e) {
|
|
22597
22598
|
]);
|
22598
22599
|
return a != null && y(t, ["silenceDurationMs"], a), t;
|
22599
22600
|
}
|
22600
|
-
function
|
22601
|
+
function aB(i, e) {
|
22601
22602
|
const t = {}, n = m(e, [
|
22602
22603
|
"automaticActivityDetection"
|
22603
22604
|
]);
|
22604
|
-
n != null && y(t, ["automaticActivityDetection"],
|
22605
|
+
n != null && y(t, ["automaticActivityDetection"], oB(i, n));
|
22605
22606
|
const r = m(e, [
|
22606
22607
|
"activityHandling"
|
22607
22608
|
]);
|
@@ -22609,11 +22610,11 @@ function a9(i, e) {
|
|
22609
22610
|
const o = m(e, ["turnCoverage"]);
|
22610
22611
|
return o != null && y(t, ["turnCoverage"], o), t;
|
22611
22612
|
}
|
22612
|
-
function
|
22613
|
+
function lB(i, e) {
|
22613
22614
|
const t = {}, n = m(e, [
|
22614
22615
|
"automaticActivityDetection"
|
22615
22616
|
]);
|
22616
|
-
n != null && y(t, ["automaticActivityDetection"],
|
22617
|
+
n != null && y(t, ["automaticActivityDetection"], sB(i, n));
|
22617
22618
|
const r = m(e, [
|
22618
22619
|
"activityHandling"
|
22619
22620
|
]);
|
@@ -22621,15 +22622,15 @@ function l9(i, e) {
|
|
22621
22622
|
const o = m(e, ["turnCoverage"]);
|
22622
22623
|
return o != null && y(t, ["turnCoverage"], o), t;
|
22623
22624
|
}
|
22624
|
-
function
|
22625
|
+
function uB(i, e) {
|
22625
22626
|
const t = {}, n = m(e, ["targetTokens"]);
|
22626
22627
|
return n != null && y(t, ["targetTokens"], n), t;
|
22627
22628
|
}
|
22628
|
-
function
|
22629
|
+
function cB(i, e) {
|
22629
22630
|
const t = {}, n = m(e, ["targetTokens"]);
|
22630
22631
|
return n != null && y(t, ["targetTokens"], n), t;
|
22631
22632
|
}
|
22632
|
-
function
|
22633
|
+
function fB(i, e) {
|
22633
22634
|
const t = {}, n = m(e, [
|
22634
22635
|
"triggerTokens"
|
22635
22636
|
]);
|
@@ -22637,9 +22638,9 @@ function f9(i, e) {
|
|
22637
22638
|
const r = m(e, [
|
22638
22639
|
"slidingWindow"
|
22639
22640
|
]);
|
22640
|
-
return r != null && y(t, ["slidingWindow"],
|
22641
|
+
return r != null && y(t, ["slidingWindow"], uB(i, r)), t;
|
22641
22642
|
}
|
22642
|
-
function
|
22643
|
+
function dB(i, e) {
|
22643
22644
|
const t = {}, n = m(e, [
|
22644
22645
|
"triggerTokens"
|
22645
22646
|
]);
|
@@ -22647,21 +22648,21 @@ function d9(i, e) {
|
|
22647
22648
|
const r = m(e, [
|
22648
22649
|
"slidingWindow"
|
22649
22650
|
]);
|
22650
|
-
return r != null && y(t, ["slidingWindow"],
|
22651
|
+
return r != null && y(t, ["slidingWindow"], cB(i, r)), t;
|
22651
22652
|
}
|
22652
|
-
function
|
22653
|
+
function hB(i, e) {
|
22653
22654
|
const t = {}, n = m(e, [
|
22654
22655
|
"proactiveAudio"
|
22655
22656
|
]);
|
22656
22657
|
return n != null && y(t, ["proactiveAudio"], n), t;
|
22657
22658
|
}
|
22658
|
-
function
|
22659
|
+
function pB(i, e) {
|
22659
22660
|
const t = {}, n = m(e, [
|
22660
22661
|
"proactiveAudio"
|
22661
22662
|
]);
|
22662
22663
|
return n != null && y(t, ["proactiveAudio"], n), t;
|
22663
22664
|
}
|
22664
|
-
function
|
22665
|
+
function mB(i, e, t) {
|
22665
22666
|
const n = {}, r = m(e, [
|
22666
22667
|
"generationConfig"
|
22667
22668
|
]);
|
@@ -22699,12 +22700,12 @@ function m9(i, e, t) {
|
|
22699
22700
|
const w = m(e, ["tools"]);
|
22700
22701
|
if (t !== void 0 && w != null) {
|
22701
22702
|
let M = bc(i, w);
|
22702
|
-
Array.isArray(M) && (M = M.map(($) =>
|
22703
|
+
Array.isArray(M) && (M = M.map(($) => tB(i, wc(i, $)))), y(t, ["setup", "tools"], M);
|
22703
22704
|
}
|
22704
22705
|
const b = m(e, [
|
22705
22706
|
"sessionResumption"
|
22706
22707
|
]);
|
22707
|
-
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"],
|
22708
|
+
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], nB(i, b));
|
22708
22709
|
const p = m(e, [
|
22709
22710
|
"inputAudioTranscription"
|
22710
22711
|
]);
|
@@ -22716,15 +22717,15 @@ function m9(i, e, t) {
|
|
22716
22717
|
const T = m(e, [
|
22717
22718
|
"realtimeInputConfig"
|
22718
22719
|
]);
|
22719
|
-
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"],
|
22720
|
+
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], aB(i, T));
|
22720
22721
|
const C = m(e, [
|
22721
22722
|
"contextWindowCompression"
|
22722
22723
|
]);
|
22723
|
-
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"],
|
22724
|
+
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], fB(i, C));
|
22724
22725
|
const A = m(e, ["proactivity"]);
|
22725
|
-
return t !== void 0 && A != null && y(t, ["setup", "proactivity"],
|
22726
|
+
return t !== void 0 && A != null && y(t, ["setup", "proactivity"], hB(i, A)), n;
|
22726
22727
|
}
|
22727
|
-
function
|
22728
|
+
function gB(i, e, t) {
|
22728
22729
|
const n = {}, r = m(e, [
|
22729
22730
|
"generationConfig"
|
22730
22731
|
]);
|
@@ -22762,12 +22763,12 @@ function g9(i, e, t) {
|
|
22762
22763
|
const w = m(e, ["tools"]);
|
22763
22764
|
if (t !== void 0 && w != null) {
|
22764
22765
|
let M = bc(i, w);
|
22765
|
-
Array.isArray(M) && (M = M.map(($) =>
|
22766
|
+
Array.isArray(M) && (M = M.map(($) => rB(i, wc(i, $)))), y(t, ["setup", "tools"], M);
|
22766
22767
|
}
|
22767
22768
|
const b = m(e, [
|
22768
22769
|
"sessionResumption"
|
22769
22770
|
]);
|
22770
|
-
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"],
|
22771
|
+
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], iB(i, b));
|
22771
22772
|
const p = m(e, [
|
22772
22773
|
"inputAudioTranscription"
|
22773
22774
|
]);
|
@@ -22779,39 +22780,39 @@ function g9(i, e, t) {
|
|
22779
22780
|
const T = m(e, [
|
22780
22781
|
"realtimeInputConfig"
|
22781
22782
|
]);
|
22782
|
-
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"],
|
22783
|
+
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], lB(i, T));
|
22783
22784
|
const C = m(e, [
|
22784
22785
|
"contextWindowCompression"
|
22785
22786
|
]);
|
22786
|
-
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"],
|
22787
|
+
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], dB(i, C));
|
22787
22788
|
const A = m(e, ["proactivity"]);
|
22788
|
-
return t !== void 0 && A != null && y(t, ["setup", "proactivity"],
|
22789
|
+
return t !== void 0 && A != null && y(t, ["setup", "proactivity"], pB(i, A)), n;
|
22789
22790
|
}
|
22790
|
-
function
|
22791
|
+
function vB(i, e) {
|
22791
22792
|
const t = {}, n = m(e, ["model"]);
|
22792
22793
|
n != null && y(t, ["setup", "model"], Ot(i, n));
|
22793
22794
|
const r = m(e, ["config"]);
|
22794
|
-
return r != null && y(t, ["config"],
|
22795
|
+
return r != null && y(t, ["config"], mB(i, r, t)), t;
|
22795
22796
|
}
|
22796
|
-
function
|
22797
|
+
function yB(i, e) {
|
22797
22798
|
const t = {}, n = m(e, ["model"]);
|
22798
22799
|
n != null && y(t, ["setup", "model"], Ot(i, n));
|
22799
22800
|
const r = m(e, ["config"]);
|
22800
|
-
return r != null && y(t, ["config"],
|
22801
|
+
return r != null && y(t, ["config"], gB(i, r, t)), t;
|
22801
22802
|
}
|
22802
|
-
function
|
22803
|
+
function _B() {
|
22803
22804
|
return {};
|
22804
22805
|
}
|
22805
|
-
function
|
22806
|
+
function wB() {
|
22806
22807
|
return {};
|
22807
22808
|
}
|
22808
|
-
function
|
22809
|
+
function bB() {
|
22809
22810
|
return {};
|
22810
22811
|
}
|
22811
|
-
function
|
22812
|
+
function SB() {
|
22812
22813
|
return {};
|
22813
22814
|
}
|
22814
|
-
function
|
22815
|
+
function EB(i, e) {
|
22815
22816
|
const t = {}, n = m(e, ["media"]);
|
22816
22817
|
n != null && y(t, ["mediaChunks"], CC(i, n));
|
22817
22818
|
const r = m(e, ["audio"]);
|
@@ -22825,9 +22826,9 @@ function E9(i, e) {
|
|
22825
22826
|
const a = m(e, ["text"]);
|
22826
22827
|
return a != null && y(t, ["text"], a), m(e, [
|
22827
22828
|
"activityStart"
|
22828
|
-
]) != null && y(t, ["activityStart"],
|
22829
|
+
]) != null && y(t, ["activityStart"], _B()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], bB()), t;
|
22829
22830
|
}
|
22830
|
-
function
|
22831
|
+
function TB(i, e) {
|
22831
22832
|
const t = {}, n = m(e, ["media"]);
|
22832
22833
|
if (n != null && y(t, ["mediaChunks"], CC(i, n)), m(e, ["audio"]) !== void 0)
|
22833
22834
|
throw new Error("audio parameter is not supported in Vertex AI.");
|
@@ -22840,7 +22841,7 @@ function T9(i, e) {
|
|
22840
22841
|
throw new Error("text parameter is not supported in Vertex AI.");
|
22841
22842
|
return m(e, [
|
22842
22843
|
"activityStart"
|
22843
|
-
]) != null && y(t, ["activityStart"],
|
22844
|
+
]) != null && y(t, ["activityStart"], wB()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], SB()), t;
|
22844
22845
|
}
|
22845
22846
|
function DC(i, e) {
|
22846
22847
|
const t = {}, n = m(e, ["text"]);
|
@@ -22848,7 +22849,7 @@ function DC(i, e) {
|
|
22848
22849
|
const r = m(e, ["weight"]);
|
22849
22850
|
return r != null && y(t, ["weight"], r), t;
|
22850
22851
|
}
|
22851
|
-
function
|
22852
|
+
function CB(i, e) {
|
22852
22853
|
const t = {}, n = m(e, [
|
22853
22854
|
"weightedPrompts"
|
22854
22855
|
]);
|
@@ -22888,7 +22889,7 @@ function FC(i, e) {
|
|
22888
22889
|
]);
|
22889
22890
|
return _ != null && y(t, ["musicGenerationMode"], _), t;
|
22890
22891
|
}
|
22891
|
-
function
|
22892
|
+
function AB(i, e) {
|
22892
22893
|
const t = {}, n = m(e, [
|
22893
22894
|
"musicGenerationConfig"
|
22894
22895
|
]);
|
@@ -22924,13 +22925,13 @@ function Em(i, e) {
|
|
22924
22925
|
]);
|
22925
22926
|
return s != null && y(t, ["playbackControl"], s), t;
|
22926
22927
|
}
|
22927
|
-
function
|
22928
|
+
function PB() {
|
22928
22929
|
return {};
|
22929
22930
|
}
|
22930
|
-
function
|
22931
|
+
function xB() {
|
22931
22932
|
return {};
|
22932
22933
|
}
|
22933
|
-
function
|
22934
|
+
function IB(i, e) {
|
22934
22935
|
const t = {}, n = m(e, ["fps"]);
|
22935
22936
|
n != null && y(t, ["fps"], n);
|
22936
22937
|
const r = m(e, ["endOffset"]);
|
@@ -22938,7 +22939,7 @@ function I9(i, e) {
|
|
22938
22939
|
const o = m(e, ["startOffset"]);
|
22939
22940
|
return o != null && y(t, ["startOffset"], o), t;
|
22940
22941
|
}
|
22941
|
-
function
|
22942
|
+
function RB(i, e) {
|
22942
22943
|
const t = {}, n = m(e, ["fps"]);
|
22943
22944
|
n != null && y(t, ["fps"], n);
|
22944
22945
|
const r = m(e, ["endOffset"]);
|
@@ -22946,13 +22947,13 @@ function R9(i, e) {
|
|
22946
22947
|
const o = m(e, ["startOffset"]);
|
22947
22948
|
return o != null && y(t, ["startOffset"], o), t;
|
22948
22949
|
}
|
22949
|
-
function
|
22950
|
+
function kB(i, e) {
|
22950
22951
|
const t = {}, n = m(e, ["data"]);
|
22951
22952
|
n != null && y(t, ["data"], n);
|
22952
22953
|
const r = m(e, ["mimeType"]);
|
22953
22954
|
return r != null && y(t, ["mimeType"], r), t;
|
22954
22955
|
}
|
22955
|
-
function
|
22956
|
+
function OB(i, e) {
|
22956
22957
|
const t = {}, n = m(e, ["displayName"]);
|
22957
22958
|
n != null && y(t, ["displayName"], n);
|
22958
22959
|
const r = m(e, ["data"]);
|
@@ -22960,15 +22961,15 @@ function O9(i, e) {
|
|
22960
22961
|
const o = m(e, ["mimeType"]);
|
22961
22962
|
return o != null && y(t, ["mimeType"], o), t;
|
22962
22963
|
}
|
22963
|
-
function
|
22964
|
+
function MB(i, e) {
|
22964
22965
|
const t = {}, n = m(e, [
|
22965
22966
|
"videoMetadata"
|
22966
22967
|
]);
|
22967
|
-
n != null && y(t, ["videoMetadata"],
|
22968
|
+
n != null && y(t, ["videoMetadata"], IB(i, n));
|
22968
22969
|
const r = m(e, ["thought"]);
|
22969
22970
|
r != null && y(t, ["thought"], r);
|
22970
22971
|
const o = m(e, ["inlineData"]);
|
22971
|
-
o != null && y(t, ["inlineData"],
|
22972
|
+
o != null && y(t, ["inlineData"], kB(i, o));
|
22972
22973
|
const s = m(e, [
|
22973
22974
|
"codeExecutionResult"
|
22974
22975
|
]);
|
@@ -22988,15 +22989,15 @@ function M9(i, e) {
|
|
22988
22989
|
const h = m(e, ["text"]);
|
22989
22990
|
return h != null && y(t, ["text"], h), t;
|
22990
22991
|
}
|
22991
|
-
function
|
22992
|
+
function LB(i, e) {
|
22992
22993
|
const t = {}, n = m(e, [
|
22993
22994
|
"videoMetadata"
|
22994
22995
|
]);
|
22995
|
-
n != null && y(t, ["videoMetadata"],
|
22996
|
+
n != null && y(t, ["videoMetadata"], RB(i, n));
|
22996
22997
|
const r = m(e, ["thought"]);
|
22997
22998
|
r != null && y(t, ["thought"], r);
|
22998
22999
|
const o = m(e, ["inlineData"]);
|
22999
|
-
o != null && y(t, ["inlineData"],
|
23000
|
+
o != null && y(t, ["inlineData"], OB(i, o));
|
23000
23001
|
const s = m(e, [
|
23001
23002
|
"codeExecutionResult"
|
23002
23003
|
]);
|
@@ -23016,20 +23017,20 @@ function L9(i, e) {
|
|
23016
23017
|
const h = m(e, ["text"]);
|
23017
23018
|
return h != null && y(t, ["text"], h), t;
|
23018
23019
|
}
|
23019
|
-
function
|
23020
|
+
function NB(i, e) {
|
23020
23021
|
const t = {}, n = m(e, ["parts"]);
|
23021
23022
|
if (n != null) {
|
23022
23023
|
let o = n;
|
23023
|
-
Array.isArray(o) && (o = o.map((s) =>
|
23024
|
+
Array.isArray(o) && (o = o.map((s) => MB(i, s))), y(t, ["parts"], o);
|
23024
23025
|
}
|
23025
23026
|
const r = m(e, ["role"]);
|
23026
23027
|
return r != null && y(t, ["role"], r), t;
|
23027
23028
|
}
|
23028
|
-
function
|
23029
|
+
function DB(i, e) {
|
23029
23030
|
const t = {}, n = m(e, ["parts"]);
|
23030
23031
|
if (n != null) {
|
23031
23032
|
let o = n;
|
23032
|
-
Array.isArray(o) && (o = o.map((s) =>
|
23033
|
+
Array.isArray(o) && (o = o.map((s) => LB(i, s))), y(t, ["parts"], o);
|
23033
23034
|
}
|
23034
23035
|
const r = m(e, ["role"]);
|
23035
23036
|
return r != null && y(t, ["role"], r), t;
|
@@ -23046,7 +23047,7 @@ function JS(i, e) {
|
|
23046
23047
|
const r = m(e, ["finished"]);
|
23047
23048
|
return r != null && y(t, ["finished"], r), t;
|
23048
23049
|
}
|
23049
|
-
function
|
23050
|
+
function FB(i, e) {
|
23050
23051
|
const t = {}, n = m(e, ["retrievedUrl"]);
|
23051
23052
|
n != null && y(t, ["retrievedUrl"], n);
|
23052
23053
|
const r = m(e, [
|
@@ -23054,17 +23055,17 @@ function F9(i, e) {
|
|
23054
23055
|
]);
|
23055
23056
|
return r != null && y(t, ["urlRetrievalStatus"], r), t;
|
23056
23057
|
}
|
23057
|
-
function $
|
23058
|
+
function $B(i, e) {
|
23058
23059
|
const t = {}, n = m(e, ["urlMetadata"]);
|
23059
23060
|
if (n != null) {
|
23060
23061
|
let r = n;
|
23061
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23062
|
+
Array.isArray(r) && (r = r.map((o) => FB(i, o))), y(t, ["urlMetadata"], r);
|
23062
23063
|
}
|
23063
23064
|
return t;
|
23064
23065
|
}
|
23065
|
-
function
|
23066
|
+
function UB(i, e) {
|
23066
23067
|
const t = {}, n = m(e, ["modelTurn"]);
|
23067
|
-
n != null && y(t, ["modelTurn"],
|
23068
|
+
n != null && y(t, ["modelTurn"], NB(i, n));
|
23068
23069
|
const r = m(e, ["turnComplete"]);
|
23069
23070
|
r != null && y(t, ["turnComplete"], r);
|
23070
23071
|
const o = m(e, ["interrupted"]);
|
@@ -23088,11 +23089,11 @@ function U9(i, e) {
|
|
23088
23089
|
const d = m(e, [
|
23089
23090
|
"urlContextMetadata"
|
23090
23091
|
]);
|
23091
|
-
return d != null && y(t, ["urlContextMetadata"], $
|
23092
|
+
return d != null && y(t, ["urlContextMetadata"], $B(i, d)), t;
|
23092
23093
|
}
|
23093
|
-
function
|
23094
|
+
function qB(i, e) {
|
23094
23095
|
const t = {}, n = m(e, ["modelTurn"]);
|
23095
|
-
n != null && y(t, ["modelTurn"],
|
23096
|
+
n != null && y(t, ["modelTurn"], DB(i, n));
|
23096
23097
|
const r = m(e, ["turnComplete"]);
|
23097
23098
|
r != null && y(t, ["turnComplete"], r);
|
23098
23099
|
const o = m(e, ["interrupted"]);
|
@@ -23114,7 +23115,7 @@ function q9(i, e) {
|
|
23114
23115
|
]);
|
23115
23116
|
return c != null && y(t, ["outputTranscription"], JS(i, c)), t;
|
23116
23117
|
}
|
23117
|
-
function
|
23118
|
+
function BB(i, e) {
|
23118
23119
|
const t = {}, n = m(e, ["id"]);
|
23119
23120
|
n != null && y(t, ["id"], n);
|
23120
23121
|
const r = m(e, ["args"]);
|
@@ -23122,37 +23123,37 @@ function B9(i, e) {
|
|
23122
23123
|
const o = m(e, ["name"]);
|
23123
23124
|
return o != null && y(t, ["name"], o), t;
|
23124
23125
|
}
|
23125
|
-
function
|
23126
|
+
function VB(i, e) {
|
23126
23127
|
const t = {}, n = m(e, ["args"]);
|
23127
23128
|
n != null && y(t, ["args"], n);
|
23128
23129
|
const r = m(e, ["name"]);
|
23129
23130
|
return r != null && y(t, ["name"], r), t;
|
23130
23131
|
}
|
23131
|
-
function
|
23132
|
+
function HB(i, e) {
|
23132
23133
|
const t = {}, n = m(e, [
|
23133
23134
|
"functionCalls"
|
23134
23135
|
]);
|
23135
23136
|
if (n != null) {
|
23136
23137
|
let r = n;
|
23137
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23138
|
+
Array.isArray(r) && (r = r.map((o) => BB(i, o))), y(t, ["functionCalls"], r);
|
23138
23139
|
}
|
23139
23140
|
return t;
|
23140
23141
|
}
|
23141
|
-
function
|
23142
|
+
function GB(i, e) {
|
23142
23143
|
const t = {}, n = m(e, [
|
23143
23144
|
"functionCalls"
|
23144
23145
|
]);
|
23145
23146
|
if (n != null) {
|
23146
23147
|
let r = n;
|
23147
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23148
|
+
Array.isArray(r) && (r = r.map((o) => VB(i, o))), y(t, ["functionCalls"], r);
|
23148
23149
|
}
|
23149
23150
|
return t;
|
23150
23151
|
}
|
23151
|
-
function
|
23152
|
+
function WB(i, e) {
|
23152
23153
|
const t = {}, n = m(e, ["ids"]);
|
23153
23154
|
return n != null && y(t, ["ids"], n), t;
|
23154
23155
|
}
|
23155
|
-
function
|
23156
|
+
function zB(i, e) {
|
23156
23157
|
const t = {}, n = m(e, ["ids"]);
|
23157
23158
|
return n != null && y(t, ["ids"], n), t;
|
23158
23159
|
}
|
@@ -23168,7 +23169,7 @@ function nu(i, e) {
|
|
23168
23169
|
const r = m(e, ["tokenCount"]);
|
23169
23170
|
return r != null && y(t, ["tokenCount"], r), t;
|
23170
23171
|
}
|
23171
|
-
function
|
23172
|
+
function KB(i, e) {
|
23172
23173
|
const t = {}, n = m(e, [
|
23173
23174
|
"promptTokenCount"
|
23174
23175
|
]);
|
@@ -23223,7 +23224,7 @@ function K9(i, e) {
|
|
23223
23224
|
}
|
23224
23225
|
return t;
|
23225
23226
|
}
|
23226
|
-
function
|
23227
|
+
function JB(i, e) {
|
23227
23228
|
const t = {}, n = m(e, [
|
23228
23229
|
"promptTokenCount"
|
23229
23230
|
]);
|
@@ -23279,15 +23280,15 @@ function J9(i, e) {
|
|
23279
23280
|
const v = m(e, ["trafficType"]);
|
23280
23281
|
return v != null && y(t, ["trafficType"], v), t;
|
23281
23282
|
}
|
23282
|
-
function
|
23283
|
+
function YB(i, e) {
|
23283
23284
|
const t = {}, n = m(e, ["timeLeft"]);
|
23284
23285
|
return n != null && y(t, ["timeLeft"], n), t;
|
23285
23286
|
}
|
23286
|
-
function
|
23287
|
+
function jB(i, e) {
|
23287
23288
|
const t = {}, n = m(e, ["timeLeft"]);
|
23288
23289
|
return n != null && y(t, ["timeLeft"], n), t;
|
23289
23290
|
}
|
23290
|
-
function
|
23291
|
+
function ZB(i, e) {
|
23291
23292
|
const t = {}, n = m(e, ["newHandle"]);
|
23292
23293
|
n != null && y(t, ["newHandle"], n);
|
23293
23294
|
const r = m(e, ["resumable"]);
|
@@ -23297,7 +23298,7 @@ function Z9(i, e) {
|
|
23297
23298
|
]);
|
23298
23299
|
return o != null && y(t, ["lastConsumedClientMessageIndex"], o), t;
|
23299
23300
|
}
|
23300
|
-
function
|
23301
|
+
function QB(i, e) {
|
23301
23302
|
const t = {}, n = m(e, ["newHandle"]);
|
23302
23303
|
n != null && y(t, ["newHandle"], n);
|
23303
23304
|
const r = m(e, ["resumable"]);
|
@@ -23307,78 +23308,78 @@ function Q9(i, e) {
|
|
23307
23308
|
]);
|
23308
23309
|
return o != null && y(t, ["lastConsumedClientMessageIndex"], o), t;
|
23309
23310
|
}
|
23310
|
-
function
|
23311
|
+
function XB(i, e) {
|
23311
23312
|
const t = {};
|
23312
23313
|
m(e, [
|
23313
23314
|
"setupComplete"
|
23314
|
-
]) != null && y(t, ["setupComplete"],
|
23315
|
+
]) != null && y(t, ["setupComplete"], PB());
|
23315
23316
|
const r = m(e, [
|
23316
23317
|
"serverContent"
|
23317
23318
|
]);
|
23318
|
-
r != null && y(t, ["serverContent"],
|
23319
|
+
r != null && y(t, ["serverContent"], UB(i, r));
|
23319
23320
|
const o = m(e, ["toolCall"]);
|
23320
|
-
o != null && y(t, ["toolCall"],
|
23321
|
+
o != null && y(t, ["toolCall"], HB(i, o));
|
23321
23322
|
const s = m(e, [
|
23322
23323
|
"toolCallCancellation"
|
23323
23324
|
]);
|
23324
|
-
s != null && y(t, ["toolCallCancellation"],
|
23325
|
+
s != null && y(t, ["toolCallCancellation"], WB(i, s));
|
23325
23326
|
const a = m(e, [
|
23326
23327
|
"usageMetadata"
|
23327
23328
|
]);
|
23328
|
-
a != null && y(t, ["usageMetadata"],
|
23329
|
+
a != null && y(t, ["usageMetadata"], KB(i, a));
|
23329
23330
|
const u = m(e, ["goAway"]);
|
23330
|
-
u != null && y(t, ["goAway"],
|
23331
|
+
u != null && y(t, ["goAway"], YB(i, u));
|
23331
23332
|
const c = m(e, [
|
23332
23333
|
"sessionResumptionUpdate"
|
23333
23334
|
]);
|
23334
|
-
return c != null && y(t, ["sessionResumptionUpdate"],
|
23335
|
+
return c != null && y(t, ["sessionResumptionUpdate"], ZB(i, c)), t;
|
23335
23336
|
}
|
23336
|
-
function
|
23337
|
+
function e9(i, e) {
|
23337
23338
|
const t = {};
|
23338
23339
|
m(e, [
|
23339
23340
|
"setupComplete"
|
23340
|
-
]) != null && y(t, ["setupComplete"],
|
23341
|
+
]) != null && y(t, ["setupComplete"], xB());
|
23341
23342
|
const r = m(e, [
|
23342
23343
|
"serverContent"
|
23343
23344
|
]);
|
23344
|
-
r != null && y(t, ["serverContent"],
|
23345
|
+
r != null && y(t, ["serverContent"], qB(i, r));
|
23345
23346
|
const o = m(e, ["toolCall"]);
|
23346
|
-
o != null && y(t, ["toolCall"],
|
23347
|
+
o != null && y(t, ["toolCall"], GB(i, o));
|
23347
23348
|
const s = m(e, [
|
23348
23349
|
"toolCallCancellation"
|
23349
23350
|
]);
|
23350
|
-
s != null && y(t, ["toolCallCancellation"],
|
23351
|
+
s != null && y(t, ["toolCallCancellation"], zB(i, s));
|
23351
23352
|
const a = m(e, [
|
23352
23353
|
"usageMetadata"
|
23353
23354
|
]);
|
23354
|
-
a != null && y(t, ["usageMetadata"],
|
23355
|
+
a != null && y(t, ["usageMetadata"], JB(i, a));
|
23355
23356
|
const u = m(e, ["goAway"]);
|
23356
|
-
u != null && y(t, ["goAway"],
|
23357
|
+
u != null && y(t, ["goAway"], jB(i, u));
|
23357
23358
|
const c = m(e, [
|
23358
23359
|
"sessionResumptionUpdate"
|
23359
23360
|
]);
|
23360
|
-
return c != null && y(t, ["sessionResumptionUpdate"],
|
23361
|
+
return c != null && y(t, ["sessionResumptionUpdate"], QB(i, c)), t;
|
23361
23362
|
}
|
23362
|
-
function
|
23363
|
+
function t9() {
|
23363
23364
|
return {};
|
23364
23365
|
}
|
23365
|
-
function
|
23366
|
+
function r9(i, e) {
|
23366
23367
|
const t = {}, n = m(e, ["text"]);
|
23367
23368
|
n != null && y(t, ["text"], n);
|
23368
23369
|
const r = m(e, ["weight"]);
|
23369
23370
|
return r != null && y(t, ["weight"], r), t;
|
23370
23371
|
}
|
23371
|
-
function
|
23372
|
+
function n9(i, e) {
|
23372
23373
|
const t = {}, n = m(e, [
|
23373
23374
|
"weightedPrompts"
|
23374
23375
|
]);
|
23375
23376
|
if (n != null) {
|
23376
23377
|
let r = n;
|
23377
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23378
|
+
Array.isArray(r) && (r = r.map((o) => r9(i, o))), y(t, ["weightedPrompts"], r);
|
23378
23379
|
}
|
23379
23380
|
return t;
|
23380
23381
|
}
|
23381
|
-
function
|
23382
|
+
function i9(i, e) {
|
23382
23383
|
const t = {}, n = m(e, ["temperature"]);
|
23383
23384
|
n != null && y(t, ["temperature"], n);
|
23384
23385
|
const r = m(e, ["topK"]);
|
@@ -23408,17 +23409,17 @@ function iB(i, e) {
|
|
23408
23409
|
]);
|
23409
23410
|
return _ != null && y(t, ["musicGenerationMode"], _), t;
|
23410
23411
|
}
|
23411
|
-
function
|
23412
|
+
function o9(i, e) {
|
23412
23413
|
const t = {}, n = m(e, [
|
23413
23414
|
"clientContent"
|
23414
23415
|
]);
|
23415
|
-
n != null && y(t, ["clientContent"],
|
23416
|
+
n != null && y(t, ["clientContent"], n9(i, n));
|
23416
23417
|
const r = m(e, [
|
23417
23418
|
"musicGenerationConfig"
|
23418
23419
|
]);
|
23419
|
-
return r != null && y(t, ["musicGenerationConfig"],
|
23420
|
+
return r != null && y(t, ["musicGenerationConfig"], i9(i, r)), t;
|
23420
23421
|
}
|
23421
|
-
function
|
23422
|
+
function s9(i, e) {
|
23422
23423
|
const t = {}, n = m(e, ["data"]);
|
23423
23424
|
n != null && y(t, ["data"], n);
|
23424
23425
|
const r = m(e, ["mimeType"]);
|
@@ -23426,17 +23427,17 @@ function sB(i, e) {
|
|
23426
23427
|
const o = m(e, [
|
23427
23428
|
"sourceMetadata"
|
23428
23429
|
]);
|
23429
|
-
return o != null && y(t, ["sourceMetadata"],
|
23430
|
+
return o != null && y(t, ["sourceMetadata"], o9(i, o)), t;
|
23430
23431
|
}
|
23431
|
-
function
|
23432
|
+
function a9(i, e) {
|
23432
23433
|
const t = {}, n = m(e, ["audioChunks"]);
|
23433
23434
|
if (n != null) {
|
23434
23435
|
let r = n;
|
23435
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23436
|
+
Array.isArray(r) && (r = r.map((o) => s9(i, o))), y(t, ["audioChunks"], r);
|
23436
23437
|
}
|
23437
23438
|
return t;
|
23438
23439
|
}
|
23439
|
-
function
|
23440
|
+
function l9(i, e) {
|
23440
23441
|
const t = {}, n = m(e, ["text"]);
|
23441
23442
|
n != null && y(t, ["text"], n);
|
23442
23443
|
const r = m(e, [
|
@@ -23444,26 +23445,26 @@ function lB(i, e) {
|
|
23444
23445
|
]);
|
23445
23446
|
return r != null && y(t, ["filteredReason"], r), t;
|
23446
23447
|
}
|
23447
|
-
function
|
23448
|
+
function u9(i, e) {
|
23448
23449
|
const t = {};
|
23449
23450
|
m(e, [
|
23450
23451
|
"setupComplete"
|
23451
|
-
]) != null && y(t, ["setupComplete"],
|
23452
|
+
]) != null && y(t, ["setupComplete"], t9());
|
23452
23453
|
const r = m(e, [
|
23453
23454
|
"serverContent"
|
23454
23455
|
]);
|
23455
|
-
r != null && y(t, ["serverContent"],
|
23456
|
+
r != null && y(t, ["serverContent"], a9(i, r));
|
23456
23457
|
const o = m(e, [
|
23457
23458
|
"filteredPrompt"
|
23458
23459
|
]);
|
23459
|
-
return o != null && y(t, ["filteredPrompt"],
|
23460
|
+
return o != null && y(t, ["filteredPrompt"], l9(i, o)), t;
|
23460
23461
|
}
|
23461
23462
|
/**
|
23462
23463
|
* @license
|
23463
23464
|
* Copyright 2025 Google LLC
|
23464
23465
|
* SPDX-License-Identifier: Apache-2.0
|
23465
23466
|
*/
|
23466
|
-
function
|
23467
|
+
function c9(i, e) {
|
23467
23468
|
const t = {}, n = m(e, ["fps"]);
|
23468
23469
|
n != null && y(t, ["fps"], n);
|
23469
23470
|
const r = m(e, ["endOffset"]);
|
@@ -23471,7 +23472,7 @@ function cB(i, e) {
|
|
23471
23472
|
const o = m(e, ["startOffset"]);
|
23472
23473
|
return o != null && y(t, ["startOffset"], o), t;
|
23473
23474
|
}
|
23474
|
-
function
|
23475
|
+
function f9(i, e) {
|
23475
23476
|
const t = {};
|
23476
23477
|
if (m(e, ["displayName"]) !== void 0)
|
23477
23478
|
throw new Error("displayName parameter is not supported in Gemini API.");
|
@@ -23480,15 +23481,15 @@ function fB(i, e) {
|
|
23480
23481
|
const r = m(e, ["mimeType"]);
|
23481
23482
|
return r != null && y(t, ["mimeType"], r), t;
|
23482
23483
|
}
|
23483
|
-
function
|
23484
|
+
function d9(i, e) {
|
23484
23485
|
const t = {}, n = m(e, [
|
23485
23486
|
"videoMetadata"
|
23486
23487
|
]);
|
23487
|
-
n != null && y(t, ["videoMetadata"],
|
23488
|
+
n != null && y(t, ["videoMetadata"], c9(i, n));
|
23488
23489
|
const r = m(e, ["thought"]);
|
23489
23490
|
r != null && y(t, ["thought"], r);
|
23490
23491
|
const o = m(e, ["inlineData"]);
|
23491
|
-
o != null && y(t, ["inlineData"],
|
23492
|
+
o != null && y(t, ["inlineData"], f9(i, o));
|
23492
23493
|
const s = m(e, [
|
23493
23494
|
"codeExecutionResult"
|
23494
23495
|
]);
|
@@ -23512,12 +23513,12 @@ function Ec(i, e) {
|
|
23512
23513
|
const t = {}, n = m(e, ["parts"]);
|
23513
23514
|
if (n != null) {
|
23514
23515
|
let o = n;
|
23515
|
-
Array.isArray(o) && (o = o.map((s) =>
|
23516
|
+
Array.isArray(o) && (o = o.map((s) => d9(i, s))), y(t, ["parts"], o);
|
23516
23517
|
}
|
23517
23518
|
const r = m(e, ["role"]);
|
23518
23519
|
return r != null && y(t, ["role"], r), t;
|
23519
23520
|
}
|
23520
|
-
function
|
23521
|
+
function h9(i, e) {
|
23521
23522
|
const t = {};
|
23522
23523
|
if (m(e, ["method"]) !== void 0)
|
23523
23524
|
throw new Error("method parameter is not supported in Gemini API.");
|
@@ -23526,7 +23527,7 @@ function hB(i, e) {
|
|
23526
23527
|
const r = m(e, ["threshold"]);
|
23527
23528
|
return r != null && y(t, ["threshold"], r), t;
|
23528
23529
|
}
|
23529
|
-
function
|
23530
|
+
function p9(i, e) {
|
23530
23531
|
const t = {}, n = m(e, ["behavior"]);
|
23531
23532
|
n != null && y(t, ["behavior"], n);
|
23532
23533
|
const r = m(e, ["description"]);
|
@@ -23538,19 +23539,19 @@ function pB(i, e) {
|
|
23538
23539
|
const a = m(e, ["response"]);
|
23539
23540
|
return a != null && y(t, ["response"], a), t;
|
23540
23541
|
}
|
23541
|
-
function
|
23542
|
+
function m9(i, e) {
|
23542
23543
|
const t = {}, n = m(e, ["startTime"]);
|
23543
23544
|
n != null && y(t, ["startTime"], n);
|
23544
23545
|
const r = m(e, ["endTime"]);
|
23545
23546
|
return r != null && y(t, ["endTime"], r), t;
|
23546
23547
|
}
|
23547
|
-
function
|
23548
|
+
function g9(i, e) {
|
23548
23549
|
const t = {}, n = m(e, [
|
23549
23550
|
"timeRangeFilter"
|
23550
23551
|
]);
|
23551
|
-
return n != null && y(t, ["timeRangeFilter"],
|
23552
|
+
return n != null && y(t, ["timeRangeFilter"], m9(i, n)), t;
|
23552
23553
|
}
|
23553
|
-
function
|
23554
|
+
function v9(i, e) {
|
23554
23555
|
const t = {}, n = m(e, ["mode"]);
|
23555
23556
|
n != null && y(t, ["mode"], n);
|
23556
23557
|
const r = m(e, [
|
@@ -23558,41 +23559,41 @@ function vB(i, e) {
|
|
23558
23559
|
]);
|
23559
23560
|
return r != null && y(t, ["dynamicThreshold"], r), t;
|
23560
23561
|
}
|
23561
|
-
function
|
23562
|
+
function y9(i, e) {
|
23562
23563
|
const t = {}, n = m(e, [
|
23563
23564
|
"dynamicRetrievalConfig"
|
23564
23565
|
]);
|
23565
|
-
return n != null && y(t, ["dynamicRetrievalConfig"],
|
23566
|
+
return n != null && y(t, ["dynamicRetrievalConfig"], v9(i, n)), t;
|
23566
23567
|
}
|
23567
|
-
function
|
23568
|
+
function _9() {
|
23568
23569
|
return {};
|
23569
23570
|
}
|
23570
|
-
function
|
23571
|
+
function w9(i, e) {
|
23571
23572
|
const t = {}, n = m(e, [
|
23572
23573
|
"functionDeclarations"
|
23573
23574
|
]);
|
23574
23575
|
if (n != null) {
|
23575
23576
|
let u = n;
|
23576
|
-
Array.isArray(u) && (u = u.map((c) =>
|
23577
|
+
Array.isArray(u) && (u = u.map((c) => p9(i, c))), y(t, ["functionDeclarations"], u);
|
23577
23578
|
}
|
23578
23579
|
if (m(e, ["retrieval"]) !== void 0)
|
23579
23580
|
throw new Error("retrieval parameter is not supported in Gemini API.");
|
23580
23581
|
const r = m(e, ["googleSearch"]);
|
23581
|
-
r != null && y(t, ["googleSearch"],
|
23582
|
+
r != null && y(t, ["googleSearch"], g9(i, r));
|
23582
23583
|
const o = m(e, [
|
23583
23584
|
"googleSearchRetrieval"
|
23584
23585
|
]);
|
23585
|
-
if (o != null && y(t, ["googleSearchRetrieval"],
|
23586
|
+
if (o != null && y(t, ["googleSearchRetrieval"], y9(i, o)), m(e, ["enterpriseWebSearch"]) !== void 0)
|
23586
23587
|
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
23587
23588
|
if (m(e, ["googleMaps"]) !== void 0)
|
23588
23589
|
throw new Error("googleMaps parameter is not supported in Gemini API.");
|
23589
|
-
m(e, ["urlContext"]) != null && y(t, ["urlContext"],
|
23590
|
+
m(e, ["urlContext"]) != null && y(t, ["urlContext"], _9());
|
23590
23591
|
const a = m(e, [
|
23591
23592
|
"codeExecution"
|
23592
23593
|
]);
|
23593
23594
|
return a != null && y(t, ["codeExecution"], a), t;
|
23594
23595
|
}
|
23595
|
-
function
|
23596
|
+
function b9(i, e) {
|
23596
23597
|
const t = {}, n = m(e, ["mode"]);
|
23597
23598
|
n != null && y(t, ["mode"], n);
|
23598
23599
|
const r = m(e, [
|
@@ -23600,27 +23601,27 @@ function bB(i, e) {
|
|
23600
23601
|
]);
|
23601
23602
|
return r != null && y(t, ["allowedFunctionNames"], r), t;
|
23602
23603
|
}
|
23603
|
-
function
|
23604
|
+
function S9(i, e) {
|
23604
23605
|
const t = {}, n = m(e, ["latitude"]);
|
23605
23606
|
n != null && y(t, ["latitude"], n);
|
23606
23607
|
const r = m(e, ["longitude"]);
|
23607
23608
|
return r != null && y(t, ["longitude"], r), t;
|
23608
23609
|
}
|
23609
|
-
function
|
23610
|
+
function E9(i, e) {
|
23610
23611
|
const t = {}, n = m(e, ["latLng"]);
|
23611
|
-
return n != null && y(t, ["latLng"],
|
23612
|
+
return n != null && y(t, ["latLng"], S9(i, n)), t;
|
23612
23613
|
}
|
23613
|
-
function
|
23614
|
+
function T9(i, e) {
|
23614
23615
|
const t = {}, n = m(e, [
|
23615
23616
|
"functionCallingConfig"
|
23616
23617
|
]);
|
23617
|
-
n != null && y(t, ["functionCallingConfig"],
|
23618
|
+
n != null && y(t, ["functionCallingConfig"], b9(i, n));
|
23618
23619
|
const r = m(e, [
|
23619
23620
|
"retrievalConfig"
|
23620
23621
|
]);
|
23621
|
-
return r != null && y(t, ["retrievalConfig"],
|
23622
|
+
return r != null && y(t, ["retrievalConfig"], E9(i, r)), t;
|
23622
23623
|
}
|
23623
|
-
function
|
23624
|
+
function C9(i, e) {
|
23624
23625
|
const t = {}, n = m(e, ["voiceName"]);
|
23625
23626
|
return n != null && y(t, ["voiceName"], n), t;
|
23626
23627
|
}
|
@@ -23628,35 +23629,35 @@ function qC(i, e) {
|
|
23628
23629
|
const t = {}, n = m(e, [
|
23629
23630
|
"prebuiltVoiceConfig"
|
23630
23631
|
]);
|
23631
|
-
return n != null && y(t, ["prebuiltVoiceConfig"],
|
23632
|
+
return n != null && y(t, ["prebuiltVoiceConfig"], C9(i, n)), t;
|
23632
23633
|
}
|
23633
|
-
function
|
23634
|
+
function A9(i, e) {
|
23634
23635
|
const t = {}, n = m(e, ["speaker"]);
|
23635
23636
|
n != null && y(t, ["speaker"], n);
|
23636
23637
|
const r = m(e, ["voiceConfig"]);
|
23637
23638
|
return r != null && y(t, ["voiceConfig"], qC(i, r)), t;
|
23638
23639
|
}
|
23639
|
-
function
|
23640
|
+
function P9(i, e) {
|
23640
23641
|
const t = {}, n = m(e, [
|
23641
23642
|
"speakerVoiceConfigs"
|
23642
23643
|
]);
|
23643
23644
|
if (n != null) {
|
23644
23645
|
let r = n;
|
23645
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23646
|
+
Array.isArray(r) && (r = r.map((o) => A9(i, o))), y(t, ["speakerVoiceConfigs"], r);
|
23646
23647
|
}
|
23647
23648
|
return t;
|
23648
23649
|
}
|
23649
|
-
function
|
23650
|
+
function x9(i, e) {
|
23650
23651
|
const t = {}, n = m(e, ["voiceConfig"]);
|
23651
23652
|
n != null && y(t, ["voiceConfig"], qC(i, n));
|
23652
23653
|
const r = m(e, [
|
23653
23654
|
"multiSpeakerVoiceConfig"
|
23654
23655
|
]);
|
23655
|
-
r != null && y(t, ["multiSpeakerVoiceConfig"],
|
23656
|
+
r != null && y(t, ["multiSpeakerVoiceConfig"], P9(i, r));
|
23656
23657
|
const o = m(e, ["languageCode"]);
|
23657
23658
|
return o != null && y(t, ["languageCode"], o), t;
|
23658
23659
|
}
|
23659
|
-
function
|
23660
|
+
function I9(i, e) {
|
23660
23661
|
const t = {}, n = m(e, [
|
23661
23662
|
"includeThoughts"
|
23662
23663
|
]);
|
@@ -23666,7 +23667,7 @@ function IB(i, e) {
|
|
23666
23667
|
]);
|
23667
23668
|
return r != null && y(t, ["thinkingBudget"], r), t;
|
23668
23669
|
}
|
23669
|
-
function
|
23670
|
+
function R9(i, e, t) {
|
23670
23671
|
const n = {}, r = m(e, [
|
23671
23672
|
"systemInstruction"
|
23672
23673
|
]);
|
@@ -23721,15 +23722,15 @@ function RB(i, e, t) {
|
|
23721
23722
|
]);
|
23722
23723
|
if (t !== void 0 && S != null) {
|
23723
23724
|
let O = S;
|
23724
|
-
Array.isArray(O) && (O = O.map((N) =>
|
23725
|
+
Array.isArray(O) && (O = O.map((N) => h9(i, N))), y(t, ["safetySettings"], O);
|
23725
23726
|
}
|
23726
23727
|
const T = m(e, ["tools"]);
|
23727
23728
|
if (t !== void 0 && T != null) {
|
23728
23729
|
let O = bc(i, T);
|
23729
|
-
Array.isArray(O) && (O = O.map((N) =>
|
23730
|
+
Array.isArray(O) && (O = O.map((N) => w9(i, wc(i, N)))), y(t, ["tools"], O);
|
23730
23731
|
}
|
23731
23732
|
const C = m(e, ["toolConfig"]);
|
23732
|
-
if (t !== void 0 && C != null && y(t, ["toolConfig"],
|
23733
|
+
if (t !== void 0 && C != null && y(t, ["toolConfig"], T9(i, C)), m(e, ["labels"]) !== void 0)
|
23733
23734
|
throw new Error("labels parameter is not supported in Gemini API.");
|
23734
23735
|
const A = m(e, [
|
23735
23736
|
"cachedContent"
|
@@ -23744,12 +23745,12 @@ function RB(i, e, t) {
|
|
23744
23745
|
]);
|
23745
23746
|
$ != null && y(n, ["mediaResolution"], $);
|
23746
23747
|
const x = m(e, ["speechConfig"]);
|
23747
|
-
if (x != null && y(n, ["speechConfig"],
|
23748
|
+
if (x != null && y(n, ["speechConfig"], x9(i, xC(i, x))), m(e, ["audioTimestamp"]) !== void 0)
|
23748
23749
|
throw new Error("audioTimestamp parameter is not supported in Gemini API.");
|
23749
23750
|
const I = m(e, [
|
23750
23751
|
"thinkingConfig"
|
23751
23752
|
]);
|
23752
|
-
return I != null && y(n, ["thinkingConfig"],
|
23753
|
+
return I != null && y(n, ["thinkingConfig"], I9(i, I)), n;
|
23753
23754
|
}
|
23754
23755
|
function YS(i, e) {
|
23755
23756
|
const t = {}, n = m(e, ["model"]);
|
@@ -23760,9 +23761,9 @@ function YS(i, e) {
|
|
23760
23761
|
Array.isArray(s) && (s = s.map((a) => Ec(i, a))), y(t, ["contents"], s);
|
23761
23762
|
}
|
23762
23763
|
const o = m(e, ["config"]);
|
23763
|
-
return o != null && y(t, ["generationConfig"],
|
23764
|
+
return o != null && y(t, ["generationConfig"], R9(i, o, t)), t;
|
23764
23765
|
}
|
23765
|
-
function
|
23766
|
+
function k9(i, e, t) {
|
23766
23767
|
const n = {}, r = m(e, ["taskType"]);
|
23767
23768
|
t !== void 0 && r != null && y(t, ["requests[]", "taskType"], r);
|
23768
23769
|
const o = m(e, ["title"]);
|
@@ -23776,17 +23777,17 @@ function kB(i, e, t) {
|
|
23776
23777
|
throw new Error("autoTruncate parameter is not supported in Gemini API.");
|
23777
23778
|
return n;
|
23778
23779
|
}
|
23779
|
-
function
|
23780
|
+
function O9(i, e) {
|
23780
23781
|
const t = {}, n = m(e, ["model"]);
|
23781
23782
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23782
23783
|
const r = m(e, ["contents"]);
|
23783
23784
|
r != null && y(t, ["requests[]", "content"], PC(i, r));
|
23784
23785
|
const o = m(e, ["config"]);
|
23785
|
-
o != null && y(t, ["config"],
|
23786
|
+
o != null && y(t, ["config"], k9(i, o, t));
|
23786
23787
|
const s = m(e, ["model"]);
|
23787
23788
|
return s !== void 0 && y(t, ["requests[]", "model"], Ot(i, s)), t;
|
23788
23789
|
}
|
23789
|
-
function
|
23790
|
+
function M9(i, e, t) {
|
23790
23791
|
const n = {};
|
23791
23792
|
if (m(e, ["outputGcsUri"]) !== void 0)
|
23792
23793
|
throw new Error("outputGcsUri parameter is not supported in Gemini API.");
|
@@ -23834,21 +23835,21 @@ function MB(i, e, t) {
|
|
23834
23835
|
throw new Error("enhancePrompt parameter is not supported in Gemini API.");
|
23835
23836
|
return n;
|
23836
23837
|
}
|
23837
|
-
function
|
23838
|
+
function L9(i, e) {
|
23838
23839
|
const t = {}, n = m(e, ["model"]);
|
23839
23840
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23840
23841
|
const r = m(e, ["prompt"]);
|
23841
23842
|
r != null && y(t, ["instances[0]", "prompt"], r);
|
23842
23843
|
const o = m(e, ["config"]);
|
23843
|
-
return o != null && y(t, ["config"],
|
23844
|
+
return o != null && y(t, ["config"], M9(i, o, t)), t;
|
23844
23845
|
}
|
23845
|
-
function
|
23846
|
+
function N9(i, e) {
|
23846
23847
|
const t = {}, n = m(e, ["model"]);
|
23847
23848
|
n != null && y(t, ["_url", "name"], Ot(i, n));
|
23848
23849
|
const r = m(e, ["config"]);
|
23849
23850
|
return r != null && y(t, ["config"], r), t;
|
23850
23851
|
}
|
23851
|
-
function
|
23852
|
+
function D9(i, e, t) {
|
23852
23853
|
const n = {}, r = m(e, ["pageSize"]);
|
23853
23854
|
t !== void 0 && r != null && y(t, ["_query", "pageSize"], r);
|
23854
23855
|
const o = m(e, ["pageToken"]);
|
@@ -23858,11 +23859,11 @@ function DB(i, e, t) {
|
|
23858
23859
|
const a = m(e, ["queryBase"]);
|
23859
23860
|
return t !== void 0 && a != null && y(t, ["_url", "models_url"], OC(i, a)), n;
|
23860
23861
|
}
|
23861
|
-
function
|
23862
|
+
function F9(i, e) {
|
23862
23863
|
const t = {}, n = m(e, ["config"]);
|
23863
|
-
return n != null && y(t, ["config"],
|
23864
|
+
return n != null && y(t, ["config"], D9(i, n, t)), t;
|
23864
23865
|
}
|
23865
|
-
function $
|
23866
|
+
function $9(i, e, t) {
|
23866
23867
|
const n = {}, r = m(e, ["displayName"]);
|
23867
23868
|
t !== void 0 && r != null && y(t, ["displayName"], r);
|
23868
23869
|
const o = m(e, ["description"]);
|
@@ -23872,19 +23873,19 @@ function $B(i, e, t) {
|
|
23872
23873
|
]);
|
23873
23874
|
return t !== void 0 && s != null && y(t, ["defaultCheckpointId"], s), n;
|
23874
23875
|
}
|
23875
|
-
function
|
23876
|
+
function U9(i, e) {
|
23876
23877
|
const t = {}, n = m(e, ["model"]);
|
23877
23878
|
n != null && y(t, ["_url", "name"], Ot(i, n));
|
23878
23879
|
const r = m(e, ["config"]);
|
23879
|
-
return r != null && y(t, ["config"], $
|
23880
|
+
return r != null && y(t, ["config"], $9(i, r, t)), t;
|
23880
23881
|
}
|
23881
|
-
function
|
23882
|
+
function q9(i, e) {
|
23882
23883
|
const t = {}, n = m(e, ["model"]);
|
23883
23884
|
n != null && y(t, ["_url", "name"], Ot(i, n));
|
23884
23885
|
const r = m(e, ["config"]);
|
23885
23886
|
return r != null && y(t, ["config"], r), t;
|
23886
23887
|
}
|
23887
|
-
function
|
23888
|
+
function B9(i, e) {
|
23888
23889
|
const t = {};
|
23889
23890
|
if (m(e, ["systemInstruction"]) !== void 0)
|
23890
23891
|
throw new Error("systemInstruction parameter is not supported in Gemini API.");
|
@@ -23894,7 +23895,7 @@ function BB(i, e) {
|
|
23894
23895
|
throw new Error("generationConfig parameter is not supported in Gemini API.");
|
23895
23896
|
return t;
|
23896
23897
|
}
|
23897
|
-
function
|
23898
|
+
function V9(i, e) {
|
23898
23899
|
const t = {}, n = m(e, ["model"]);
|
23899
23900
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23900
23901
|
const r = m(e, ["contents"]);
|
@@ -23903,9 +23904,9 @@ function VB(i, e) {
|
|
23903
23904
|
Array.isArray(s) && (s = s.map((a) => Ec(i, a))), y(t, ["contents"], s);
|
23904
23905
|
}
|
23905
23906
|
const o = m(e, ["config"]);
|
23906
|
-
return o != null && y(t, ["config"],
|
23907
|
+
return o != null && y(t, ["config"], B9(i, o)), t;
|
23907
23908
|
}
|
23908
|
-
function
|
23909
|
+
function H9(i, e) {
|
23909
23910
|
const t = {};
|
23910
23911
|
if (m(e, ["gcsUri"]) !== void 0)
|
23911
23912
|
throw new Error("gcsUri parameter is not supported in Gemini API.");
|
@@ -23914,7 +23915,7 @@ function HB(i, e) {
|
|
23914
23915
|
const r = m(e, ["mimeType"]);
|
23915
23916
|
return r != null && y(t, ["mimeType"], r), t;
|
23916
23917
|
}
|
23917
|
-
function
|
23918
|
+
function G9(i, e, t) {
|
23918
23919
|
const n = {}, r = m(e, [
|
23919
23920
|
"numberOfVideos"
|
23920
23921
|
]);
|
@@ -23942,17 +23943,17 @@ function GB(i, e, t) {
|
|
23942
23943
|
throw new Error("enhancePrompt parameter is not supported in Gemini API.");
|
23943
23944
|
return n;
|
23944
23945
|
}
|
23945
|
-
function
|
23946
|
+
function W9(i, e) {
|
23946
23947
|
const t = {}, n = m(e, ["model"]);
|
23947
23948
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23948
23949
|
const r = m(e, ["prompt"]);
|
23949
23950
|
r != null && y(t, ["instances[0]", "prompt"], r);
|
23950
23951
|
const o = m(e, ["image"]);
|
23951
|
-
o != null && y(t, ["instances[0]", "image"],
|
23952
|
+
o != null && y(t, ["instances[0]", "image"], H9(i, o));
|
23952
23953
|
const s = m(e, ["config"]);
|
23953
|
-
return s != null && y(t, ["config"],
|
23954
|
+
return s != null && y(t, ["config"], G9(i, s, t)), t;
|
23954
23955
|
}
|
23955
|
-
function
|
23956
|
+
function z9(i, e) {
|
23956
23957
|
const t = {}, n = m(e, ["fps"]);
|
23957
23958
|
n != null && y(t, ["fps"], n);
|
23958
23959
|
const r = m(e, ["endOffset"]);
|
@@ -23960,7 +23961,7 @@ function zB(i, e) {
|
|
23960
23961
|
const o = m(e, ["startOffset"]);
|
23961
23962
|
return o != null && y(t, ["startOffset"], o), t;
|
23962
23963
|
}
|
23963
|
-
function
|
23964
|
+
function K9(i, e) {
|
23964
23965
|
const t = {}, n = m(e, ["displayName"]);
|
23965
23966
|
n != null && y(t, ["displayName"], n);
|
23966
23967
|
const r = m(e, ["data"]);
|
@@ -23968,15 +23969,15 @@ function KB(i, e) {
|
|
23968
23969
|
const o = m(e, ["mimeType"]);
|
23969
23970
|
return o != null && y(t, ["mimeType"], o), t;
|
23970
23971
|
}
|
23971
|
-
function
|
23972
|
+
function J9(i, e) {
|
23972
23973
|
const t = {}, n = m(e, [
|
23973
23974
|
"videoMetadata"
|
23974
23975
|
]);
|
23975
|
-
n != null && y(t, ["videoMetadata"],
|
23976
|
+
n != null && y(t, ["videoMetadata"], z9(i, n));
|
23976
23977
|
const r = m(e, ["thought"]);
|
23977
23978
|
r != null && y(t, ["thought"], r);
|
23978
23979
|
const o = m(e, ["inlineData"]);
|
23979
|
-
o != null && y(t, ["inlineData"],
|
23980
|
+
o != null && y(t, ["inlineData"], K9(i, o));
|
23980
23981
|
const s = m(e, [
|
23981
23982
|
"codeExecutionResult"
|
23982
23983
|
]);
|
@@ -24000,18 +24001,18 @@ function hs(i, e) {
|
|
24000
24001
|
const t = {}, n = m(e, ["parts"]);
|
24001
24002
|
if (n != null) {
|
24002
24003
|
let o = n;
|
24003
|
-
Array.isArray(o) && (o = o.map((s) =>
|
24004
|
+
Array.isArray(o) && (o = o.map((s) => J9(i, s))), y(t, ["parts"], o);
|
24004
24005
|
}
|
24005
24006
|
const r = m(e, ["role"]);
|
24006
24007
|
return r != null && y(t, ["role"], r), t;
|
24007
24008
|
}
|
24008
|
-
function
|
24009
|
+
function Y9(i, e) {
|
24009
24010
|
const t = {}, n = m(e, [
|
24010
24011
|
"featureSelectionPreference"
|
24011
24012
|
]);
|
24012
24013
|
return n != null && y(t, ["featureSelectionPreference"], n), t;
|
24013
24014
|
}
|
24014
|
-
function
|
24015
|
+
function j9(i, e) {
|
24015
24016
|
const t = {}, n = m(e, ["method"]);
|
24016
24017
|
n != null && y(t, ["method"], n);
|
24017
24018
|
const r = m(e, ["category"]);
|
@@ -24019,7 +24020,7 @@ function jB(i, e) {
|
|
24019
24020
|
const o = m(e, ["threshold"]);
|
24020
24021
|
return o != null && y(t, ["threshold"], o), t;
|
24021
24022
|
}
|
24022
|
-
function
|
24023
|
+
function Z9(i, e) {
|
24023
24024
|
const t = {};
|
24024
24025
|
if (m(e, ["behavior"]) !== void 0)
|
24025
24026
|
throw new Error("behavior parameter is not supported in Vertex AI.");
|
@@ -24032,17 +24033,17 @@ function ZB(i, e) {
|
|
24032
24033
|
const s = m(e, ["response"]);
|
24033
24034
|
return s != null && y(t, ["response"], s), t;
|
24034
24035
|
}
|
24035
|
-
function
|
24036
|
+
function Q9(i, e) {
|
24036
24037
|
const t = {}, n = m(e, ["startTime"]);
|
24037
24038
|
n != null && y(t, ["startTime"], n);
|
24038
24039
|
const r = m(e, ["endTime"]);
|
24039
24040
|
return r != null && y(t, ["endTime"], r), t;
|
24040
24041
|
}
|
24041
|
-
function
|
24042
|
+
function X9(i, e) {
|
24042
24043
|
const t = {}, n = m(e, [
|
24043
24044
|
"timeRangeFilter"
|
24044
24045
|
]);
|
24045
|
-
return n != null && y(t, ["timeRangeFilter"],
|
24046
|
+
return n != null && y(t, ["timeRangeFilter"], Q9(i, n)), t;
|
24046
24047
|
}
|
24047
24048
|
function eV(i, e) {
|
24048
24049
|
const t = {}, n = m(e, ["mode"]);
|
@@ -24093,12 +24094,12 @@ function BC(i, e) {
|
|
24093
24094
|
]);
|
24094
24095
|
if (n != null) {
|
24095
24096
|
let d = n;
|
24096
|
-
Array.isArray(d) && (d = d.map((h) =>
|
24097
|
+
Array.isArray(d) && (d = d.map((h) => Z9(i, h))), y(t, ["functionDeclarations"], d);
|
24097
24098
|
}
|
24098
24099
|
const r = m(e, ["retrieval"]);
|
24099
24100
|
r != null && y(t, ["retrieval"], r);
|
24100
24101
|
const o = m(e, ["googleSearch"]);
|
24101
|
-
o != null && y(t, ["googleSearch"],
|
24102
|
+
o != null && y(t, ["googleSearch"], X9(i, o));
|
24102
24103
|
const s = m(e, [
|
24103
24104
|
"googleSearchRetrieval"
|
24104
24105
|
]);
|
@@ -24222,13 +24223,13 @@ function pV(i, e, t) {
|
|
24222
24223
|
const T = m(e, [
|
24223
24224
|
"modelSelectionConfig"
|
24224
24225
|
]);
|
24225
|
-
T != null && y(n, ["modelConfig"],
|
24226
|
+
T != null && y(n, ["modelConfig"], Y9(i, T));
|
24226
24227
|
const C = m(e, [
|
24227
24228
|
"safetySettings"
|
24228
24229
|
]);
|
24229
24230
|
if (t !== void 0 && C != null) {
|
24230
24231
|
let K = C;
|
24231
|
-
Array.isArray(K) && (K = K.map((J) =>
|
24232
|
+
Array.isArray(K) && (K = K.map((J) => j9(i, J))), y(t, ["safetySettings"], K);
|
24232
24233
|
}
|
24233
24234
|
const A = m(e, ["tools"]);
|
24234
24235
|
if (t !== void 0 && A != null) {
|
@@ -25589,7 +25590,7 @@ async function V4(i, e, t) {
|
|
25589
25590
|
const n = new eq();
|
25590
25591
|
let r;
|
25591
25592
|
t.data instanceof Blob ? r = JSON.parse(await t.data.text()) : r = JSON.parse(t.data);
|
25592
|
-
const o =
|
25593
|
+
const o = u9(i, r);
|
25593
25594
|
Object.assign(n, o), e(n);
|
25594
25595
|
}
|
25595
25596
|
class H4 {
|
@@ -25673,7 +25674,7 @@ class G4 {
|
|
25673
25674
|
async setWeightedPrompts(e) {
|
25674
25675
|
if (!e.weightedPrompts || Object.keys(e.weightedPrompts).length === 0)
|
25675
25676
|
throw new Error("Weighted prompts must be set and contain at least one entry.");
|
25676
|
-
const t =
|
25677
|
+
const t = CB(this.apiClient, e), n = UC(this.apiClient, t);
|
25677
25678
|
this.conn.send(JSON.stringify({ clientContent: n }));
|
25678
25679
|
}
|
25679
25680
|
/**
|
@@ -25689,7 +25690,7 @@ class G4 {
|
|
25689
25690
|
*/
|
25690
25691
|
async setMusicGenerationConfig(e) {
|
25691
25692
|
e.musicGenerationConfig || (e.musicGenerationConfig = {});
|
25692
|
-
const t =
|
25693
|
+
const t = AB(this.apiClient, e), n = Em(this.apiClient, t);
|
25693
25694
|
this.conn.send(JSON.stringify(n));
|
25694
25695
|
}
|
25695
25696
|
sendPlaybackControl(e) {
|
@@ -25764,10 +25765,10 @@ async function J4(i, e, t) {
|
|
25764
25765
|
const n = new XU();
|
25765
25766
|
let r;
|
25766
25767
|
if (t.data instanceof Blob ? r = JSON.parse(await t.data.text()) : r = JSON.parse(t.data), i.isVertexAI()) {
|
25767
|
-
const o =
|
25768
|
+
const o = e9(i, r);
|
25768
25769
|
Object.assign(n, o);
|
25769
25770
|
} else {
|
25770
|
-
const o =
|
25771
|
+
const o = XB(i, r);
|
25771
25772
|
Object.assign(n, o);
|
25772
25773
|
}
|
25773
25774
|
e(n);
|
@@ -25869,7 +25870,7 @@ class Y4 {
|
|
25869
25870
|
config: e.config,
|
25870
25871
|
callbacks: e.callbacks
|
25871
25872
|
};
|
25872
|
-
return this.apiClient.isVertexAI() ? A =
|
25873
|
+
return this.apiClient.isVertexAI() ? A = yB(this.apiClient, x) : A = vB(this.apiClient, x), delete A.config, T.send(JSON.stringify(A)), new Z4(T, this.apiClient);
|
25873
25874
|
}
|
25874
25875
|
// TODO: b/416041229 - Abstract this method to a common place.
|
25875
25876
|
isCallableTool(e) {
|
@@ -25994,9 +25995,9 @@ class Z4 {
|
|
25994
25995
|
sendRealtimeInput(e) {
|
25995
25996
|
let t = {};
|
25996
25997
|
this.apiClient.isVertexAI() ? t = {
|
25997
|
-
realtimeInput:
|
25998
|
+
realtimeInput: TB(this.apiClient, e)
|
25998
25999
|
} : t = {
|
25999
|
-
realtimeInput:
|
26000
|
+
realtimeInput: EB(this.apiClient, e)
|
26000
26001
|
}, this.conn.send(JSON.stringify(t));
|
26001
26002
|
}
|
26002
26003
|
/**
|
@@ -26409,7 +26410,7 @@ class eH extends Ca {
|
|
26409
26410
|
return Object.assign(g, h), g;
|
26410
26411
|
});
|
26411
26412
|
} else {
|
26412
|
-
const c =
|
26413
|
+
const c = O9(this.apiClient, e);
|
26413
26414
|
return a = Be("{model}:batchEmbedContents", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26414
26415
|
path: a,
|
26415
26416
|
queryParams: u,
|
@@ -26459,7 +26460,7 @@ class eH extends Ca {
|
|
26459
26460
|
return Object.assign(g, h), g;
|
26460
26461
|
});
|
26461
26462
|
} else {
|
26462
|
-
const c =
|
26463
|
+
const c = L9(this.apiClient, e);
|
26463
26464
|
return a = Be("{model}:predict", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26464
26465
|
path: a,
|
26465
26466
|
queryParams: u,
|
@@ -26533,7 +26534,7 @@ class eH extends Ca {
|
|
26533
26534
|
abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
|
26534
26535
|
}).then((d) => d.json()), s.then((d) => Cm(this.apiClient, d));
|
26535
26536
|
} else {
|
26536
|
-
const c =
|
26537
|
+
const c = N9(this.apiClient, e);
|
26537
26538
|
return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26538
26539
|
path: a,
|
26539
26540
|
queryParams: u,
|
@@ -26561,7 +26562,7 @@ class eH extends Ca {
|
|
26561
26562
|
return Object.assign(g, h), g;
|
26562
26563
|
});
|
26563
26564
|
} else {
|
26564
|
-
const c =
|
26565
|
+
const c = F9(this.apiClient, e);
|
26565
26566
|
return a = Be("{models_url}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26566
26567
|
path: a,
|
26567
26568
|
queryParams: u,
|
@@ -26606,7 +26607,7 @@ class eH extends Ca {
|
|
26606
26607
|
abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
|
26607
26608
|
}).then((d) => d.json()), s.then((d) => Cm(this.apiClient, d));
|
26608
26609
|
} else {
|
26609
|
-
const c =
|
26610
|
+
const c = U9(this.apiClient, e);
|
26610
26611
|
return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26611
26612
|
path: a,
|
26612
26613
|
queryParams: u,
|
@@ -26645,7 +26646,7 @@ class eH extends Ca {
|
|
26645
26646
|
return Object.assign(h, d), h;
|
26646
26647
|
});
|
26647
26648
|
} else {
|
26648
|
-
const c =
|
26649
|
+
const c = q9(this.apiClient, e);
|
26649
26650
|
return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26650
26651
|
path: a,
|
26651
26652
|
queryParams: u,
|
@@ -26692,7 +26693,7 @@ class eH extends Ca {
|
|
26692
26693
|
return Object.assign(g, h), g;
|
26693
26694
|
});
|
26694
26695
|
} else {
|
26695
|
-
const c =
|
26696
|
+
const c = V9(this.apiClient, e);
|
26696
26697
|
return a = Be("{model}:countTokens", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26697
26698
|
path: a,
|
26698
26699
|
queryParams: u,
|
@@ -26780,7 +26781,7 @@ class eH extends Ca {
|
|
26780
26781
|
abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
|
26781
26782
|
}).then((d) => d.json()), s.then((d) => k4(this.apiClient, d));
|
26782
26783
|
} else {
|
26783
|
-
const c =
|
26784
|
+
const c = W9(this.apiClient, e);
|
26784
26785
|
return a = Be("{model}:predictLongRunning", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26785
26786
|
path: a,
|
26786
26787
|
queryParams: u,
|
@@ -36212,7 +36213,7 @@ async function yG(i, e) {
|
|
36212
36213
|
}
|
36213
36214
|
}
|
36214
36215
|
async function _G(i, e) {
|
36215
|
-
return (await import("./list_directory.node-
|
36216
|
+
return (await import("./list_directory.node-DDhJZGvT.js")).resolveArgumentDirectoryNode(i, e);
|
36216
36217
|
}
|
36217
36218
|
function wG(i) {
|
36218
36219
|
if (!i._regex)
|
@@ -37386,7 +37387,7 @@ async function xG({
|
|
37386
37387
|
fileMentions: void 0,
|
37387
37388
|
userState: void 0
|
37388
37389
|
};
|
37389
|
-
const o = (await import("./files-
|
37390
|
+
const o = (await import("./files-DdjDm_B8.js").then(
|
37390
37391
|
({ getFileMentions: a }) => a(
|
37391
37392
|
GE(t.content),
|
37392
37393
|
r,
|
@@ -38197,7 +38198,7 @@ function zs(i = "idle") {
|
|
38197
38198
|
ie.error(`Failed to play notification sound (${i}):`, e);
|
38198
38199
|
}
|
38199
38200
|
}
|
38200
|
-
const RG = import("./node-
|
38201
|
+
const RG = import("./node-BZlRkYQw.js").then(
|
38201
38202
|
({ nodeFileSystem: i }) => i
|
38202
38203
|
);
|
38203
38204
|
async function kG() {
|
@@ -39230,7 +39231,7 @@ async function XG() {
|
|
39230
39231
|
if (e.includes("/node_modules/@sourcegraph/amp/"))
|
39231
39232
|
return ie.debug("Found generic node_modules path, checking for specific patterns"), e.includes("/.local/share/pnpm/") ? (ie.debug("Detected pnpm from node_modules with pnpm-specific path"), "pnpm") : e.includes("/.config/yarn/") ? (ie.debug("Detected yarn from node_modules with yarn-specific path"), "yarn") : e.includes("/.bun/") ? (ie.debug("Detected bun from node_modules with bun-specific path"), "bun") : (ie.debug("Defaulting to npm for generic node_modules path"), "npm");
|
39232
39233
|
ie.debug("No path pattern matched, checking installation directory for lockfiles");
|
39233
|
-
const t =
|
39234
|
+
const t = e0(e0(e));
|
39234
39235
|
ie.debug("Checking installation directory", { installDir: t });
|
39235
39236
|
const n = [
|
39236
39237
|
{ file: "pnpm-lock.yaml", manager: "pnpm" },
|
@@ -40203,7 +40204,7 @@ function Tr() {
|
|
40203
40204
|
}
|
40204
40205
|
async function sW(i, e) {
|
40205
40206
|
try {
|
40206
|
-
const t = await ZG("0.0.
|
40207
|
+
const t = await ZG("0.0.1748802804-g235c50");
|
40207
40208
|
t.hasUpdate && t.latestVersion ? e ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
|
40208
40209
|
try {
|
40209
40210
|
await tW(t.latestVersion), i.next({
|
@@ -40218,7 +40219,7 @@ async function sW(i, e) {
|
|
40218
40219
|
version: t.latestVersion
|
40219
40220
|
});
|
40220
40221
|
}
|
40221
|
-
}, 100)) : ie.info(`New version available: 0.0.
|
40222
|
+
}, 100)) : ie.info(`New version available: 0.0.1748802804-g235c50 → ${t.latestVersion}`) : ie.info("No update available");
|
40222
40223
|
} catch (t) {
|
40223
40224
|
ie.debug("Update check failed", t);
|
40224
40225
|
}
|
@@ -40316,7 +40317,7 @@ async function Iu(i, e) {
|
|
40316
40317
|
cg({
|
40317
40318
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
40318
40319
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
40319
|
-
}), jM("0.0.
|
40320
|
+
}), jM("0.0.1748802804-g235c50");
|
40320
40321
|
const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
40321
40322
|
ie.info("Using settings file", { settingsFile: t });
|
40322
40323
|
const n = wu(), r = $T({ settingsFile: t }), o = process.env.AMP_API_KEY;
|
@@ -40416,7 +40417,7 @@ function dW(i) {
|
|
40416
40417
|
const e = new U2().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
|
40417
40418
|
e.option("-V, --version", "output the version number", () => {
|
40418
40419
|
if (i.isTTY) {
|
40419
|
-
const r = "0.0.
|
40420
|
+
const r = "0.0.1748802804-g235c50".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
|
40420
40421
|
if (r) {
|
40421
40422
|
const [, , o] = r;
|
40422
40423
|
try {
|
@@ -40427,21 +40428,21 @@ function dW(i) {
|
|
40427
40428
|
day: "numeric"
|
40428
40429
|
});
|
40429
40430
|
tt.write(
|
40430
|
-
`0.0.
|
40431
|
+
`0.0.1748802804-g235c50 ${i.printer.print(`(released ${a})`, { foreground: "gray" })}
|
40431
40432
|
`
|
40432
40433
|
);
|
40433
40434
|
} else
|
40434
|
-
tt.write(`0.0.
|
40435
|
+
tt.write(`0.0.1748802804-g235c50
|
40435
40436
|
`);
|
40436
40437
|
} catch {
|
40437
|
-
tt.write(`0.0.
|
40438
|
+
tt.write(`0.0.1748802804-g235c50
|
40438
40439
|
`);
|
40439
40440
|
}
|
40440
40441
|
} else
|
40441
|
-
tt.write(`0.0.
|
40442
|
+
tt.write(`0.0.1748802804-g235c50
|
40442
40443
|
`);
|
40443
40444
|
} else
|
40444
|
-
tt.write(`0.0.
|
40445
|
+
tt.write(`0.0.1748802804-g235c50
|
40445
40446
|
`);
|
40446
40447
|
process.exit(0);
|
40447
40448
|
}), e.addHelpText(
|
@@ -40839,4 +40840,4 @@ export {
|
|
40839
40840
|
ge as s,
|
40840
40841
|
lr as u
|
40841
40842
|
};
|
40842
|
-
//# sourceMappingURL=main-
|
40843
|
+
//# sourceMappingURL=main-B_IRSDfV.js.map
|