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