@powerhousedao/connect 1.0.27-dev.0 → 1.0.28-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-Di6g_N6F.css → app-BDw8v6b_.css} +79 -97
- package/dist/assets/{app-DM9dzrLJ.js → app-QOwargCw.js} +4078 -4763
- package/dist/assets/app-QOwargCw.js.map +1 -0
- package/dist/assets/{app-loader-BRvu6K1P.js → app-loader-BBORG2Po.js} +440 -831
- package/dist/assets/app-loader-BBORG2Po.js.map +1 -0
- package/dist/assets/{app-loader-b43YtazY.css → app-loader-CDW9U8zV.css} +15 -22
- package/dist/assets/{browser-CN7KAmT5.js → browser-lv7NZkGB.js} +45 -35
- package/dist/assets/browser-lv7NZkGB.js.map +1 -0
- package/dist/assets/{ccip-DwuFE3wr.js → ccip-B1kfW0w7.js} +4 -4
- package/dist/assets/ccip-B1kfW0w7.js.map +1 -0
- package/dist/assets/{content-D3a_sdjc.js → content-DQPT3GJr.js} +115 -69
- package/dist/assets/content-DQPT3GJr.js.map +1 -0
- package/dist/assets/{index-X2m_fkrA.js → index-Bg8OsiIv.js} +5 -5
- package/dist/assets/{index-X2m_fkrA.js.map → index-Bg8OsiIv.js.map} +1 -1
- package/dist/assets/{index-ChSgv25m.js → index-DIYYguTp.js} +61 -3463
- package/dist/assets/index-DIYYguTp.js.map +1 -0
- package/dist/assets/{index-C5Vkyh6C.js → index-DMUsfibB.js} +4 -4
- package/dist/assets/{index-C5Vkyh6C.js.map → index-DMUsfibB.js.map} +1 -1
- package/dist/assets/{index-B2kvJNmt.js → index-URwYidL1.js} +4 -4
- package/dist/assets/{index-B2kvJNmt.js.map → index-URwYidL1.js.map} +1 -1
- package/dist/assets/{main.CxTra0ed.js → main.Dk-PL5ss.js} +2 -2
- package/dist/assets/{main.CxTra0ed.js.map → main.Dk-PL5ss.js.map} +1 -1
- package/dist/assets/{reactor-analytics-1gNwMnJ0.js → reactor-analytics-E2iziUB6.js} +6 -6
- package/dist/assets/{reactor-analytics-1gNwMnJ0.js.map → reactor-analytics-E2iziUB6.js.map} +1 -1
- package/dist/assets/{router-DSeCFtDP.js → router-B8sa3ulC.js} +8 -8
- package/dist/assets/{router-DSeCFtDP.js.map → router-B8sa3ulC.js.map} +1 -1
- package/dist/assets/{style-CK8AY-7U.css → style-C0GVbPTL.css} +16 -12
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +9 -9
- package/dist/assets/app-DM9dzrLJ.js.map +0 -1
- package/dist/assets/app-loader-BRvu6K1P.js.map +0 -1
- package/dist/assets/browser-CN7KAmT5.js.map +0 -1
- package/dist/assets/ccip-DwuFE3wr.js.map +0 -1
- package/dist/assets/content-D3a_sdjc.js.map +0 -1
- package/dist/assets/index-ChSgv25m.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-QOwargCw.js","assets/main.Dk-PL5ss.js","assets/app-BDw8v6b_.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -11,7 +11,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11
11
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
12
12
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
13
13
|
var _tags, _levelString, _errorHandler, _ConsoleLogger_instances, levelValue_get, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _a, _ServiceWorkerManager_instances, handleServiceWorkerMessage_fn, handleServiceWorker_fn;
|
|
14
|
-
import { _ as __vitePreload } from "./main.
|
|
14
|
+
import { _ as __vitePreload } from "./main.Dk-PL5ss.js";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
import { useState, useEffect, Suspense, lazy } from "react";
|
|
17
17
|
function _mergeNamespaces(n, m) {
|
|
@@ -1089,7 +1089,8 @@ const cjsModule = /* @__PURE__ */ getDefaultExportFromCjs(safeStableStringifyExp
|
|
|
1089
1089
|
cjsModule.configure;
|
|
1090
1090
|
var util$1;
|
|
1091
1091
|
(function(util2) {
|
|
1092
|
-
util2.assertEqual = (
|
|
1092
|
+
util2.assertEqual = (_) => {
|
|
1093
|
+
};
|
|
1093
1094
|
function assertIs(_arg) {
|
|
1094
1095
|
}
|
|
1095
1096
|
util2.assertIs = assertIs;
|
|
@@ -1133,7 +1134,7 @@ var util$1;
|
|
|
1133
1134
|
}
|
|
1134
1135
|
return void 0;
|
|
1135
1136
|
};
|
|
1136
|
-
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
1137
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
1137
1138
|
function joinValues(array, separator = " | ") {
|
|
1138
1139
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
1139
1140
|
}
|
|
@@ -1185,7 +1186,7 @@ const getParsedType = (data) => {
|
|
|
1185
1186
|
case "string":
|
|
1186
1187
|
return ZodParsedType.string;
|
|
1187
1188
|
case "number":
|
|
1188
|
-
return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
1189
|
+
return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
1189
1190
|
case "boolean":
|
|
1190
1191
|
return ZodParsedType.boolean;
|
|
1191
1192
|
case "function":
|
|
@@ -1236,10 +1237,6 @@ const ZodIssueCode = util$1.arrayToEnum([
|
|
|
1236
1237
|
"not_multiple_of",
|
|
1237
1238
|
"not_finite"
|
|
1238
1239
|
]);
|
|
1239
|
-
const quotelessJson = (obj) => {
|
|
1240
|
-
const json = JSON.stringify(obj, null, 2);
|
|
1241
|
-
return json.replace(/"([^"]+)":/g, "$1:");
|
|
1242
|
-
};
|
|
1243
1240
|
class ZodError extends Error {
|
|
1244
1241
|
get errors() {
|
|
1245
1242
|
return this.issues;
|
|
@@ -1432,9 +1429,6 @@ const errorMap = (issue, _ctx) => {
|
|
|
1432
1429
|
return { message };
|
|
1433
1430
|
};
|
|
1434
1431
|
let overrideErrorMap = errorMap;
|
|
1435
|
-
function setErrorMap(map) {
|
|
1436
|
-
overrideErrorMap = map;
|
|
1437
|
-
}
|
|
1438
1432
|
function getErrorMap() {
|
|
1439
1433
|
return overrideErrorMap;
|
|
1440
1434
|
}
|
|
@@ -1463,7 +1457,6 @@ const makeIssue = (params) => {
|
|
|
1463
1457
|
message: errorMessage
|
|
1464
1458
|
};
|
|
1465
1459
|
};
|
|
1466
|
-
const EMPTY_PATH = [];
|
|
1467
1460
|
function addIssueToContext(ctx, issueData) {
|
|
1468
1461
|
const overrideMap = getErrorMap();
|
|
1469
1462
|
const issue = makeIssue({
|
|
@@ -1546,23 +1539,22 @@ const isAborted = (x) => x.status === "aborted";
|
|
|
1546
1539
|
const isDirty = (x) => x.status === "dirty";
|
|
1547
1540
|
const isValid = (x) => x.status === "valid";
|
|
1548
1541
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
1549
|
-
function __classPrivateFieldGet$1(receiver, state, kind, f) {
|
|
1550
|
-
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1551
|
-
return state.get(receiver);
|
|
1552
|
-
}
|
|
1553
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1554
|
-
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1555
|
-
return state.set(receiver, value), value;
|
|
1556
|
-
}
|
|
1557
|
-
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
1558
|
-
var e = new Error(message);
|
|
1559
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1560
|
-
};
|
|
1561
1542
|
var errorUtil;
|
|
1562
1543
|
(function(errorUtil2) {
|
|
1563
1544
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1564
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message
|
|
1545
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
|
|
1565
1546
|
})(errorUtil || (errorUtil = {}));
|
|
1547
|
+
var __classPrivateFieldGet$1 = function(receiver, state, kind, f) {
|
|
1548
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
1549
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1550
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1551
|
+
};
|
|
1552
|
+
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
1553
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
1554
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
1555
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1556
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1557
|
+
};
|
|
1566
1558
|
var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
1567
1559
|
class ParseInputLazyPath {
|
|
1568
1560
|
constructor(parent, value, path, key) {
|
|
@@ -1574,7 +1566,7 @@ class ParseInputLazyPath {
|
|
|
1574
1566
|
}
|
|
1575
1567
|
get path() {
|
|
1576
1568
|
if (!this._cachedPath.length) {
|
|
1577
|
-
if (this._key
|
|
1569
|
+
if (Array.isArray(this._key)) {
|
|
1578
1570
|
this._cachedPath.push(...this._path, ...this._key);
|
|
1579
1571
|
} else {
|
|
1580
1572
|
this._cachedPath.push(...this._path, this._key);
|
|
@@ -1612,17 +1604,16 @@ function processCreateParams(params) {
|
|
|
1612
1604
|
if (errorMap2)
|
|
1613
1605
|
return { errorMap: errorMap2, description: description2 };
|
|
1614
1606
|
const customMap = (iss, ctx) => {
|
|
1615
|
-
var _a2, _b;
|
|
1616
1607
|
const { message } = params;
|
|
1617
1608
|
if (iss.code === "invalid_enum_value") {
|
|
1618
|
-
return { message: message
|
|
1609
|
+
return { message: message ?? ctx.defaultError };
|
|
1619
1610
|
}
|
|
1620
1611
|
if (typeof ctx.data === "undefined") {
|
|
1621
|
-
return { message:
|
|
1612
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
1622
1613
|
}
|
|
1623
1614
|
if (iss.code !== "invalid_type")
|
|
1624
1615
|
return { message: ctx.defaultError };
|
|
1625
|
-
return { message:
|
|
1616
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
1626
1617
|
};
|
|
1627
1618
|
return { errorMap: customMap, description: description2 };
|
|
1628
1619
|
}
|
|
@@ -1674,14 +1665,13 @@ class ZodType {
|
|
|
1674
1665
|
throw result.error;
|
|
1675
1666
|
}
|
|
1676
1667
|
safeParse(data, params) {
|
|
1677
|
-
var _a2;
|
|
1678
1668
|
const ctx = {
|
|
1679
1669
|
common: {
|
|
1680
1670
|
issues: [],
|
|
1681
|
-
async: (
|
|
1682
|
-
contextualErrorMap: params
|
|
1671
|
+
async: (params == null ? void 0 : params.async) ?? false,
|
|
1672
|
+
contextualErrorMap: params == null ? void 0 : params.errorMap
|
|
1683
1673
|
},
|
|
1684
|
-
path: (params
|
|
1674
|
+
path: (params == null ? void 0 : params.path) || [],
|
|
1685
1675
|
schemaErrorMap: this._def.errorMap,
|
|
1686
1676
|
parent: null,
|
|
1687
1677
|
data,
|
|
@@ -1712,7 +1702,7 @@ class ZodType {
|
|
|
1712
1702
|
issues: ctx.common.issues
|
|
1713
1703
|
};
|
|
1714
1704
|
} catch (err) {
|
|
1715
|
-
if ((_b = (_a2 = err
|
|
1705
|
+
if ((_b = (_a2 = err == null ? void 0 : err.message) == null ? void 0 : _a2.toLowerCase()) == null ? void 0 : _b.includes("encountered")) {
|
|
1716
1706
|
this["~standard"].async = true;
|
|
1717
1707
|
}
|
|
1718
1708
|
ctx.common = {
|
|
@@ -1737,10 +1727,10 @@ class ZodType {
|
|
|
1737
1727
|
const ctx = {
|
|
1738
1728
|
common: {
|
|
1739
1729
|
issues: [],
|
|
1740
|
-
contextualErrorMap: params
|
|
1730
|
+
contextualErrorMap: params == null ? void 0 : params.errorMap,
|
|
1741
1731
|
async: true
|
|
1742
1732
|
},
|
|
1743
|
-
path: (params
|
|
1733
|
+
path: (params == null ? void 0 : params.path) || [],
|
|
1744
1734
|
schemaErrorMap: this._def.errorMap,
|
|
1745
1735
|
parent: null,
|
|
1746
1736
|
data,
|
|
@@ -1969,12 +1959,14 @@ function isValidJWT(jwt, alg) {
|
|
|
1969
1959
|
const decoded = JSON.parse(atob(base64));
|
|
1970
1960
|
if (typeof decoded !== "object" || decoded === null)
|
|
1971
1961
|
return false;
|
|
1972
|
-
if (
|
|
1962
|
+
if ("typ" in decoded && (decoded == null ? void 0 : decoded.typ) !== "JWT")
|
|
1963
|
+
return false;
|
|
1964
|
+
if (!decoded.alg)
|
|
1973
1965
|
return false;
|
|
1974
1966
|
if (alg && decoded.alg !== alg)
|
|
1975
1967
|
return false;
|
|
1976
1968
|
return true;
|
|
1977
|
-
} catch
|
|
1969
|
+
} catch {
|
|
1978
1970
|
return false;
|
|
1979
1971
|
}
|
|
1980
1972
|
}
|
|
@@ -2133,7 +2125,7 @@ class ZodString extends ZodType {
|
|
|
2133
2125
|
} else if (check.kind === "url") {
|
|
2134
2126
|
try {
|
|
2135
2127
|
new URL(input.data);
|
|
2136
|
-
} catch
|
|
2128
|
+
} catch {
|
|
2137
2129
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
2138
2130
|
addIssueToContext(ctx, {
|
|
2139
2131
|
validation: "url",
|
|
@@ -2345,7 +2337,6 @@ class ZodString extends ZodType {
|
|
|
2345
2337
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
2346
2338
|
}
|
|
2347
2339
|
datetime(options) {
|
|
2348
|
-
var _a2, _b;
|
|
2349
2340
|
if (typeof options === "string") {
|
|
2350
2341
|
return this._addCheck({
|
|
2351
2342
|
kind: "datetime",
|
|
@@ -2357,10 +2348,10 @@ class ZodString extends ZodType {
|
|
|
2357
2348
|
}
|
|
2358
2349
|
return this._addCheck({
|
|
2359
2350
|
kind: "datetime",
|
|
2360
|
-
precision: typeof (options
|
|
2361
|
-
offset: (
|
|
2362
|
-
local: (
|
|
2363
|
-
...errorUtil.errToObj(options
|
|
2351
|
+
precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
|
|
2352
|
+
offset: (options == null ? void 0 : options.offset) ?? false,
|
|
2353
|
+
local: (options == null ? void 0 : options.local) ?? false,
|
|
2354
|
+
...errorUtil.errToObj(options == null ? void 0 : options.message)
|
|
2364
2355
|
});
|
|
2365
2356
|
}
|
|
2366
2357
|
date(message) {
|
|
@@ -2376,8 +2367,8 @@ class ZodString extends ZodType {
|
|
|
2376
2367
|
}
|
|
2377
2368
|
return this._addCheck({
|
|
2378
2369
|
kind: "time",
|
|
2379
|
-
precision: typeof (options
|
|
2380
|
-
...errorUtil.errToObj(options
|
|
2370
|
+
precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
|
|
2371
|
+
...errorUtil.errToObj(options == null ? void 0 : options.message)
|
|
2381
2372
|
});
|
|
2382
2373
|
}
|
|
2383
2374
|
duration(message) {
|
|
@@ -2394,8 +2385,8 @@ class ZodString extends ZodType {
|
|
|
2394
2385
|
return this._addCheck({
|
|
2395
2386
|
kind: "includes",
|
|
2396
2387
|
value,
|
|
2397
|
-
position: options
|
|
2398
|
-
...errorUtil.errToObj(options
|
|
2388
|
+
position: options == null ? void 0 : options.position,
|
|
2389
|
+
...errorUtil.errToObj(options == null ? void 0 : options.message)
|
|
2399
2390
|
});
|
|
2400
2391
|
}
|
|
2401
2392
|
startsWith(value, message) {
|
|
@@ -2527,11 +2518,10 @@ class ZodString extends ZodType {
|
|
|
2527
2518
|
}
|
|
2528
2519
|
}
|
|
2529
2520
|
ZodString.create = (params) => {
|
|
2530
|
-
var _a2;
|
|
2531
2521
|
return new ZodString({
|
|
2532
2522
|
checks: [],
|
|
2533
2523
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
2534
|
-
coerce: (
|
|
2524
|
+
coerce: (params == null ? void 0 : params.coerce) ?? false,
|
|
2535
2525
|
...processCreateParams(params)
|
|
2536
2526
|
});
|
|
2537
2527
|
};
|
|
@@ -2539,9 +2529,9 @@ function floatSafeRemainder(val, step) {
|
|
|
2539
2529
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
2540
2530
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
2541
2531
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
2542
|
-
const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
|
|
2543
|
-
const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
|
|
2544
|
-
return valInt % stepInt /
|
|
2532
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
2533
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
2534
|
+
return valInt % stepInt / 10 ** decCount;
|
|
2545
2535
|
}
|
|
2546
2536
|
class ZodNumber extends ZodType {
|
|
2547
2537
|
constructor() {
|
|
@@ -2751,7 +2741,8 @@ class ZodNumber extends ZodType {
|
|
|
2751
2741
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util$1.isInteger(ch.value));
|
|
2752
2742
|
}
|
|
2753
2743
|
get isFinite() {
|
|
2754
|
-
let max = null
|
|
2744
|
+
let max = null;
|
|
2745
|
+
let min = null;
|
|
2755
2746
|
for (const ch of this._def.checks) {
|
|
2756
2747
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
2757
2748
|
return true;
|
|
@@ -2770,7 +2761,7 @@ ZodNumber.create = (params) => {
|
|
|
2770
2761
|
return new ZodNumber({
|
|
2771
2762
|
checks: [],
|
|
2772
2763
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
2773
|
-
coerce: (params
|
|
2764
|
+
coerce: (params == null ? void 0 : params.coerce) || false,
|
|
2774
2765
|
...processCreateParams(params)
|
|
2775
2766
|
});
|
|
2776
2767
|
};
|
|
@@ -2784,7 +2775,7 @@ class ZodBigInt extends ZodType {
|
|
|
2784
2775
|
if (this._def.coerce) {
|
|
2785
2776
|
try {
|
|
2786
2777
|
input.data = BigInt(input.data);
|
|
2787
|
-
} catch
|
|
2778
|
+
} catch {
|
|
2788
2779
|
return this._getInvalidInput(input);
|
|
2789
2780
|
}
|
|
2790
2781
|
}
|
|
@@ -2939,11 +2930,10 @@ class ZodBigInt extends ZodType {
|
|
|
2939
2930
|
}
|
|
2940
2931
|
}
|
|
2941
2932
|
ZodBigInt.create = (params) => {
|
|
2942
|
-
var _a2;
|
|
2943
2933
|
return new ZodBigInt({
|
|
2944
2934
|
checks: [],
|
|
2945
2935
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
2946
|
-
coerce: (
|
|
2936
|
+
coerce: (params == null ? void 0 : params.coerce) ?? false,
|
|
2947
2937
|
...processCreateParams(params)
|
|
2948
2938
|
});
|
|
2949
2939
|
};
|
|
@@ -2968,7 +2958,7 @@ class ZodBoolean extends ZodType {
|
|
|
2968
2958
|
ZodBoolean.create = (params) => {
|
|
2969
2959
|
return new ZodBoolean({
|
|
2970
2960
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
2971
|
-
coerce: (params
|
|
2961
|
+
coerce: (params == null ? void 0 : params.coerce) || false,
|
|
2972
2962
|
...processCreateParams(params)
|
|
2973
2963
|
});
|
|
2974
2964
|
};
|
|
@@ -2987,7 +2977,7 @@ class ZodDate extends ZodType {
|
|
|
2987
2977
|
});
|
|
2988
2978
|
return INVALID;
|
|
2989
2979
|
}
|
|
2990
|
-
if (isNaN(input.data.getTime())) {
|
|
2980
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
2991
2981
|
const ctx2 = this._getOrReturnCtx(input);
|
|
2992
2982
|
addIssueToContext(ctx2, {
|
|
2993
2983
|
code: ZodIssueCode.invalid_date
|
|
@@ -3076,7 +3066,7 @@ class ZodDate extends ZodType {
|
|
|
3076
3066
|
ZodDate.create = (params) => {
|
|
3077
3067
|
return new ZodDate({
|
|
3078
3068
|
checks: [],
|
|
3079
|
-
coerce: (params
|
|
3069
|
+
coerce: (params == null ? void 0 : params.coerce) || false,
|
|
3080
3070
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
3081
3071
|
...processCreateParams(params)
|
|
3082
3072
|
});
|
|
@@ -3351,7 +3341,8 @@ class ZodObject extends ZodType {
|
|
|
3351
3341
|
return this._cached;
|
|
3352
3342
|
const shape = this._def.shape();
|
|
3353
3343
|
const keys = util$1.objectKeys(shape);
|
|
3354
|
-
|
|
3344
|
+
this._cached = { shape, keys };
|
|
3345
|
+
return this._cached;
|
|
3355
3346
|
}
|
|
3356
3347
|
_parse(input) {
|
|
3357
3348
|
const parsedType = this._getType(input);
|
|
@@ -3449,11 +3440,11 @@ class ZodObject extends ZodType {
|
|
|
3449
3440
|
unknownKeys: "strict",
|
|
3450
3441
|
...message !== void 0 ? {
|
|
3451
3442
|
errorMap: (issue, ctx) => {
|
|
3452
|
-
var _a2, _b
|
|
3453
|
-
const defaultError = (
|
|
3443
|
+
var _a2, _b;
|
|
3444
|
+
const defaultError = ((_b = (_a2 = this._def).errorMap) == null ? void 0 : _b.call(_a2, issue, ctx).message) ?? ctx.defaultError;
|
|
3454
3445
|
if (issue.code === "unrecognized_keys")
|
|
3455
3446
|
return {
|
|
3456
|
-
message:
|
|
3447
|
+
message: errorUtil.errToObj(message).message ?? defaultError
|
|
3457
3448
|
};
|
|
3458
3449
|
return {
|
|
3459
3450
|
message: defaultError
|
|
@@ -3584,11 +3575,11 @@ class ZodObject extends ZodType {
|
|
|
3584
3575
|
}
|
|
3585
3576
|
pick(mask) {
|
|
3586
3577
|
const shape = {};
|
|
3587
|
-
util$1.objectKeys(mask)
|
|
3578
|
+
for (const key of util$1.objectKeys(mask)) {
|
|
3588
3579
|
if (mask[key] && this.shape[key]) {
|
|
3589
3580
|
shape[key] = this.shape[key];
|
|
3590
3581
|
}
|
|
3591
|
-
}
|
|
3582
|
+
}
|
|
3592
3583
|
return new ZodObject({
|
|
3593
3584
|
...this._def,
|
|
3594
3585
|
shape: () => shape
|
|
@@ -3596,11 +3587,11 @@ class ZodObject extends ZodType {
|
|
|
3596
3587
|
}
|
|
3597
3588
|
omit(mask) {
|
|
3598
3589
|
const shape = {};
|
|
3599
|
-
util$1.objectKeys(this.shape)
|
|
3590
|
+
for (const key of util$1.objectKeys(this.shape)) {
|
|
3600
3591
|
if (!mask[key]) {
|
|
3601
3592
|
shape[key] = this.shape[key];
|
|
3602
3593
|
}
|
|
3603
|
-
}
|
|
3594
|
+
}
|
|
3604
3595
|
return new ZodObject({
|
|
3605
3596
|
...this._def,
|
|
3606
3597
|
shape: () => shape
|
|
@@ -3614,14 +3605,14 @@ class ZodObject extends ZodType {
|
|
|
3614
3605
|
}
|
|
3615
3606
|
partial(mask) {
|
|
3616
3607
|
const newShape = {};
|
|
3617
|
-
util$1.objectKeys(this.shape)
|
|
3608
|
+
for (const key of util$1.objectKeys(this.shape)) {
|
|
3618
3609
|
const fieldSchema = this.shape[key];
|
|
3619
3610
|
if (mask && !mask[key]) {
|
|
3620
3611
|
newShape[key] = fieldSchema;
|
|
3621
3612
|
} else {
|
|
3622
3613
|
newShape[key] = fieldSchema.optional();
|
|
3623
3614
|
}
|
|
3624
|
-
}
|
|
3615
|
+
}
|
|
3625
3616
|
return new ZodObject({
|
|
3626
3617
|
...this._def,
|
|
3627
3618
|
shape: () => newShape
|
|
@@ -3629,7 +3620,7 @@ class ZodObject extends ZodType {
|
|
|
3629
3620
|
}
|
|
3630
3621
|
required(mask) {
|
|
3631
3622
|
const newShape = {};
|
|
3632
|
-
util$1.objectKeys(this.shape)
|
|
3623
|
+
for (const key of util$1.objectKeys(this.shape)) {
|
|
3633
3624
|
if (mask && !mask[key]) {
|
|
3634
3625
|
newShape[key] = this.shape[key];
|
|
3635
3626
|
} else {
|
|
@@ -3640,7 +3631,7 @@ class ZodObject extends ZodType {
|
|
|
3640
3631
|
}
|
|
3641
3632
|
newShape[key] = newField;
|
|
3642
3633
|
}
|
|
3643
|
-
}
|
|
3634
|
+
}
|
|
3644
3635
|
return new ZodObject({
|
|
3645
3636
|
...this._def,
|
|
3646
3637
|
shape: () => newShape
|
|
@@ -3768,113 +3759,6 @@ ZodUnion.create = (types2, params) => {
|
|
|
3768
3759
|
...processCreateParams(params)
|
|
3769
3760
|
});
|
|
3770
3761
|
};
|
|
3771
|
-
const getDiscriminator = (type2) => {
|
|
3772
|
-
if (type2 instanceof ZodLazy) {
|
|
3773
|
-
return getDiscriminator(type2.schema);
|
|
3774
|
-
} else if (type2 instanceof ZodEffects) {
|
|
3775
|
-
return getDiscriminator(type2.innerType());
|
|
3776
|
-
} else if (type2 instanceof ZodLiteral) {
|
|
3777
|
-
return [type2.value];
|
|
3778
|
-
} else if (type2 instanceof ZodEnum) {
|
|
3779
|
-
return type2.options;
|
|
3780
|
-
} else if (type2 instanceof ZodNativeEnum) {
|
|
3781
|
-
return util$1.objectValues(type2.enum);
|
|
3782
|
-
} else if (type2 instanceof ZodDefault) {
|
|
3783
|
-
return getDiscriminator(type2._def.innerType);
|
|
3784
|
-
} else if (type2 instanceof ZodUndefined) {
|
|
3785
|
-
return [void 0];
|
|
3786
|
-
} else if (type2 instanceof ZodNull) {
|
|
3787
|
-
return [null];
|
|
3788
|
-
} else if (type2 instanceof ZodOptional) {
|
|
3789
|
-
return [void 0, ...getDiscriminator(type2.unwrap())];
|
|
3790
|
-
} else if (type2 instanceof ZodNullable) {
|
|
3791
|
-
return [null, ...getDiscriminator(type2.unwrap())];
|
|
3792
|
-
} else if (type2 instanceof ZodBranded) {
|
|
3793
|
-
return getDiscriminator(type2.unwrap());
|
|
3794
|
-
} else if (type2 instanceof ZodReadonly) {
|
|
3795
|
-
return getDiscriminator(type2.unwrap());
|
|
3796
|
-
} else if (type2 instanceof ZodCatch) {
|
|
3797
|
-
return getDiscriminator(type2._def.innerType);
|
|
3798
|
-
} else {
|
|
3799
|
-
return [];
|
|
3800
|
-
}
|
|
3801
|
-
};
|
|
3802
|
-
class ZodDiscriminatedUnion extends ZodType {
|
|
3803
|
-
_parse(input) {
|
|
3804
|
-
const { ctx } = this._processInputParams(input);
|
|
3805
|
-
if (ctx.parsedType !== ZodParsedType.object) {
|
|
3806
|
-
addIssueToContext(ctx, {
|
|
3807
|
-
code: ZodIssueCode.invalid_type,
|
|
3808
|
-
expected: ZodParsedType.object,
|
|
3809
|
-
received: ctx.parsedType
|
|
3810
|
-
});
|
|
3811
|
-
return INVALID;
|
|
3812
|
-
}
|
|
3813
|
-
const discriminator = this.discriminator;
|
|
3814
|
-
const discriminatorValue = ctx.data[discriminator];
|
|
3815
|
-
const option = this.optionsMap.get(discriminatorValue);
|
|
3816
|
-
if (!option) {
|
|
3817
|
-
addIssueToContext(ctx, {
|
|
3818
|
-
code: ZodIssueCode.invalid_union_discriminator,
|
|
3819
|
-
options: Array.from(this.optionsMap.keys()),
|
|
3820
|
-
path: [discriminator]
|
|
3821
|
-
});
|
|
3822
|
-
return INVALID;
|
|
3823
|
-
}
|
|
3824
|
-
if (ctx.common.async) {
|
|
3825
|
-
return option._parseAsync({
|
|
3826
|
-
data: ctx.data,
|
|
3827
|
-
path: ctx.path,
|
|
3828
|
-
parent: ctx
|
|
3829
|
-
});
|
|
3830
|
-
} else {
|
|
3831
|
-
return option._parseSync({
|
|
3832
|
-
data: ctx.data,
|
|
3833
|
-
path: ctx.path,
|
|
3834
|
-
parent: ctx
|
|
3835
|
-
});
|
|
3836
|
-
}
|
|
3837
|
-
}
|
|
3838
|
-
get discriminator() {
|
|
3839
|
-
return this._def.discriminator;
|
|
3840
|
-
}
|
|
3841
|
-
get options() {
|
|
3842
|
-
return this._def.options;
|
|
3843
|
-
}
|
|
3844
|
-
get optionsMap() {
|
|
3845
|
-
return this._def.optionsMap;
|
|
3846
|
-
}
|
|
3847
|
-
/**
|
|
3848
|
-
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
3849
|
-
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
3850
|
-
* have a different value for each object in the union.
|
|
3851
|
-
* @param discriminator the name of the discriminator property
|
|
3852
|
-
* @param types an array of object schemas
|
|
3853
|
-
* @param params
|
|
3854
|
-
*/
|
|
3855
|
-
static create(discriminator, options, params) {
|
|
3856
|
-
const optionsMap = /* @__PURE__ */ new Map();
|
|
3857
|
-
for (const type2 of options) {
|
|
3858
|
-
const discriminatorValues = getDiscriminator(type2.shape[discriminator]);
|
|
3859
|
-
if (!discriminatorValues.length) {
|
|
3860
|
-
throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
|
|
3861
|
-
}
|
|
3862
|
-
for (const value of discriminatorValues) {
|
|
3863
|
-
if (optionsMap.has(value)) {
|
|
3864
|
-
throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
|
|
3865
|
-
}
|
|
3866
|
-
optionsMap.set(value, type2);
|
|
3867
|
-
}
|
|
3868
|
-
}
|
|
3869
|
-
return new ZodDiscriminatedUnion({
|
|
3870
|
-
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
|
|
3871
|
-
discriminator,
|
|
3872
|
-
options,
|
|
3873
|
-
optionsMap,
|
|
3874
|
-
...processCreateParams(params)
|
|
3875
|
-
});
|
|
3876
|
-
}
|
|
3877
|
-
}
|
|
3878
3762
|
function mergeValues(a, b) {
|
|
3879
3763
|
const aType = getParsedType(a);
|
|
3880
3764
|
const bType = getParsedType(b);
|
|
@@ -4237,121 +4121,6 @@ ZodSet.create = (valueType, params) => {
|
|
|
4237
4121
|
...processCreateParams(params)
|
|
4238
4122
|
});
|
|
4239
4123
|
};
|
|
4240
|
-
class ZodFunction extends ZodType {
|
|
4241
|
-
constructor() {
|
|
4242
|
-
super(...arguments);
|
|
4243
|
-
this.validate = this.implement;
|
|
4244
|
-
}
|
|
4245
|
-
_parse(input) {
|
|
4246
|
-
const { ctx } = this._processInputParams(input);
|
|
4247
|
-
if (ctx.parsedType !== ZodParsedType.function) {
|
|
4248
|
-
addIssueToContext(ctx, {
|
|
4249
|
-
code: ZodIssueCode.invalid_type,
|
|
4250
|
-
expected: ZodParsedType.function,
|
|
4251
|
-
received: ctx.parsedType
|
|
4252
|
-
});
|
|
4253
|
-
return INVALID;
|
|
4254
|
-
}
|
|
4255
|
-
function makeArgsIssue(args, error) {
|
|
4256
|
-
return makeIssue({
|
|
4257
|
-
data: args,
|
|
4258
|
-
path: ctx.path,
|
|
4259
|
-
errorMaps: [
|
|
4260
|
-
ctx.common.contextualErrorMap,
|
|
4261
|
-
ctx.schemaErrorMap,
|
|
4262
|
-
getErrorMap(),
|
|
4263
|
-
errorMap
|
|
4264
|
-
].filter((x) => !!x),
|
|
4265
|
-
issueData: {
|
|
4266
|
-
code: ZodIssueCode.invalid_arguments,
|
|
4267
|
-
argumentsError: error
|
|
4268
|
-
}
|
|
4269
|
-
});
|
|
4270
|
-
}
|
|
4271
|
-
function makeReturnsIssue(returns, error) {
|
|
4272
|
-
return makeIssue({
|
|
4273
|
-
data: returns,
|
|
4274
|
-
path: ctx.path,
|
|
4275
|
-
errorMaps: [
|
|
4276
|
-
ctx.common.contextualErrorMap,
|
|
4277
|
-
ctx.schemaErrorMap,
|
|
4278
|
-
getErrorMap(),
|
|
4279
|
-
errorMap
|
|
4280
|
-
].filter((x) => !!x),
|
|
4281
|
-
issueData: {
|
|
4282
|
-
code: ZodIssueCode.invalid_return_type,
|
|
4283
|
-
returnTypeError: error
|
|
4284
|
-
}
|
|
4285
|
-
});
|
|
4286
|
-
}
|
|
4287
|
-
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
4288
|
-
const fn = ctx.data;
|
|
4289
|
-
if (this._def.returns instanceof ZodPromise) {
|
|
4290
|
-
const me = this;
|
|
4291
|
-
return OK(async function(...args) {
|
|
4292
|
-
const error = new ZodError([]);
|
|
4293
|
-
const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
|
|
4294
|
-
error.addIssue(makeArgsIssue(args, e));
|
|
4295
|
-
throw error;
|
|
4296
|
-
});
|
|
4297
|
-
const result = await Reflect.apply(fn, this, parsedArgs);
|
|
4298
|
-
const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
4299
|
-
error.addIssue(makeReturnsIssue(result, e));
|
|
4300
|
-
throw error;
|
|
4301
|
-
});
|
|
4302
|
-
return parsedReturns;
|
|
4303
|
-
});
|
|
4304
|
-
} else {
|
|
4305
|
-
const me = this;
|
|
4306
|
-
return OK(function(...args) {
|
|
4307
|
-
const parsedArgs = me._def.args.safeParse(args, params);
|
|
4308
|
-
if (!parsedArgs.success) {
|
|
4309
|
-
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
4310
|
-
}
|
|
4311
|
-
const result = Reflect.apply(fn, this, parsedArgs.data);
|
|
4312
|
-
const parsedReturns = me._def.returns.safeParse(result, params);
|
|
4313
|
-
if (!parsedReturns.success) {
|
|
4314
|
-
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
4315
|
-
}
|
|
4316
|
-
return parsedReturns.data;
|
|
4317
|
-
});
|
|
4318
|
-
}
|
|
4319
|
-
}
|
|
4320
|
-
parameters() {
|
|
4321
|
-
return this._def.args;
|
|
4322
|
-
}
|
|
4323
|
-
returnType() {
|
|
4324
|
-
return this._def.returns;
|
|
4325
|
-
}
|
|
4326
|
-
args(...items) {
|
|
4327
|
-
return new ZodFunction({
|
|
4328
|
-
...this._def,
|
|
4329
|
-
args: ZodTuple.create(items).rest(ZodUnknown.create())
|
|
4330
|
-
});
|
|
4331
|
-
}
|
|
4332
|
-
returns(returnType) {
|
|
4333
|
-
return new ZodFunction({
|
|
4334
|
-
...this._def,
|
|
4335
|
-
returns: returnType
|
|
4336
|
-
});
|
|
4337
|
-
}
|
|
4338
|
-
implement(func) {
|
|
4339
|
-
const validatedFunc = this.parse(func);
|
|
4340
|
-
return validatedFunc;
|
|
4341
|
-
}
|
|
4342
|
-
strictImplement(func) {
|
|
4343
|
-
const validatedFunc = this.parse(func);
|
|
4344
|
-
return validatedFunc;
|
|
4345
|
-
}
|
|
4346
|
-
static create(args, returns, params) {
|
|
4347
|
-
return new ZodFunction({
|
|
4348
|
-
args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),
|
|
4349
|
-
returns: returns || ZodUnknown.create(),
|
|
4350
|
-
typeName: ZodFirstPartyTypeKind.ZodFunction,
|
|
4351
|
-
...processCreateParams(params)
|
|
4352
|
-
});
|
|
4353
|
-
}
|
|
4354
|
-
}
|
|
4355
4124
|
class ZodLazy extends ZodType {
|
|
4356
4125
|
get schema() {
|
|
4357
4126
|
return this._def.getter();
|
|
@@ -4416,10 +4185,10 @@ class ZodEnum extends ZodType {
|
|
|
4416
4185
|
});
|
|
4417
4186
|
return INVALID;
|
|
4418
4187
|
}
|
|
4419
|
-
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache)) {
|
|
4420
|
-
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
|
|
4188
|
+
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache, "f")) {
|
|
4189
|
+
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
|
|
4421
4190
|
}
|
|
4422
|
-
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache).has(input.data)) {
|
|
4191
|
+
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache, "f").has(input.data)) {
|
|
4423
4192
|
const ctx = this._getOrReturnCtx(input);
|
|
4424
4193
|
const expectedValues = this._def.values;
|
|
4425
4194
|
addIssueToContext(ctx, {
|
|
@@ -4487,10 +4256,10 @@ class ZodNativeEnum extends ZodType {
|
|
|
4487
4256
|
});
|
|
4488
4257
|
return INVALID;
|
|
4489
4258
|
}
|
|
4490
|
-
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache)) {
|
|
4491
|
-
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util$1.getValidEnumValues(this._def.values)));
|
|
4259
|
+
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache, "f")) {
|
|
4260
|
+
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util$1.getValidEnumValues(this._def.values)), "f");
|
|
4492
4261
|
}
|
|
4493
|
-
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache).has(input.data)) {
|
|
4262
|
+
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache, "f").has(input.data)) {
|
|
4494
4263
|
const expectedValues = util$1.objectValues(nativeEnumValues);
|
|
4495
4264
|
addIssueToContext(ctx, {
|
|
4496
4265
|
received: ctx.data,
|
|
@@ -4656,7 +4425,10 @@ class ZodEffects extends ZodType {
|
|
|
4656
4425
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
4657
4426
|
if (!isValid(base))
|
|
4658
4427
|
return base;
|
|
4659
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
4428
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
4429
|
+
status: status.value,
|
|
4430
|
+
value: result
|
|
4431
|
+
}));
|
|
4660
4432
|
});
|
|
4661
4433
|
}
|
|
4662
4434
|
}
|
|
@@ -4816,7 +4588,6 @@ ZodNaN.create = (params) => {
|
|
|
4816
4588
|
...processCreateParams(params)
|
|
4817
4589
|
});
|
|
4818
4590
|
};
|
|
4819
|
-
const BRAND = Symbol("zod_brand");
|
|
4820
4591
|
class ZodBranded extends ZodType {
|
|
4821
4592
|
_parse(input) {
|
|
4822
4593
|
const { ctx } = this._processInputParams(input);
|
|
@@ -4908,38 +4679,6 @@ ZodReadonly.create = (type2, params) => {
|
|
|
4908
4679
|
...processCreateParams(params)
|
|
4909
4680
|
});
|
|
4910
4681
|
};
|
|
4911
|
-
function cleanParams(params, data) {
|
|
4912
|
-
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
4913
|
-
const p2 = typeof p === "string" ? { message: p } : p;
|
|
4914
|
-
return p2;
|
|
4915
|
-
}
|
|
4916
|
-
function custom(check, _params = {}, fatal) {
|
|
4917
|
-
if (check)
|
|
4918
|
-
return ZodAny.create().superRefine((data, ctx) => {
|
|
4919
|
-
var _a2, _b;
|
|
4920
|
-
const r = check(data);
|
|
4921
|
-
if (r instanceof Promise) {
|
|
4922
|
-
return r.then((r2) => {
|
|
4923
|
-
var _a3, _b2;
|
|
4924
|
-
if (!r2) {
|
|
4925
|
-
const params = cleanParams(_params, data);
|
|
4926
|
-
const _fatal = (_b2 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
4927
|
-
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
4928
|
-
}
|
|
4929
|
-
});
|
|
4930
|
-
}
|
|
4931
|
-
if (!r) {
|
|
4932
|
-
const params = cleanParams(_params, data);
|
|
4933
|
-
const _fatal = (_b = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b !== void 0 ? _b : true;
|
|
4934
|
-
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
4935
|
-
}
|
|
4936
|
-
return;
|
|
4937
|
-
});
|
|
4938
|
-
return ZodAny.create();
|
|
4939
|
-
}
|
|
4940
|
-
const late = {
|
|
4941
|
-
object: ZodObject.lazycreate
|
|
4942
|
-
};
|
|
4943
4682
|
var ZodFirstPartyTypeKind;
|
|
4944
4683
|
(function(ZodFirstPartyTypeKind2) {
|
|
4945
4684
|
ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
|
|
@@ -4979,173 +4718,25 @@ var ZodFirstPartyTypeKind;
|
|
|
4979
4718
|
ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
|
|
4980
4719
|
ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
|
|
4981
4720
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
4982
|
-
const instanceOfType = (cls, params = {
|
|
4983
|
-
message: `Input not instance of ${cls.name}`
|
|
4984
|
-
}) => custom((data) => data instanceof cls, params);
|
|
4985
4721
|
const stringType = ZodString.create;
|
|
4986
4722
|
const numberType = ZodNumber.create;
|
|
4987
|
-
const nanType = ZodNaN.create;
|
|
4988
|
-
const bigIntType = ZodBigInt.create;
|
|
4989
4723
|
const booleanType = ZodBoolean.create;
|
|
4990
|
-
const dateType = ZodDate.create;
|
|
4991
|
-
const symbolType = ZodSymbol.create;
|
|
4992
|
-
const undefinedType = ZodUndefined.create;
|
|
4993
4724
|
const nullType = ZodNull.create;
|
|
4994
4725
|
const anyType = ZodAny.create;
|
|
4995
4726
|
const unknownType = ZodUnknown.create;
|
|
4996
|
-
|
|
4997
|
-
const voidType = ZodVoid.create;
|
|
4727
|
+
ZodNever.create;
|
|
4998
4728
|
const arrayType = ZodArray.create;
|
|
4999
4729
|
const objectType = ZodObject.create;
|
|
5000
|
-
const strictObjectType = ZodObject.strictCreate;
|
|
5001
4730
|
const unionType = ZodUnion.create;
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
const tupleType = ZodTuple.create;
|
|
4731
|
+
ZodIntersection.create;
|
|
4732
|
+
ZodTuple.create;
|
|
5005
4733
|
const recordType = ZodRecord.create;
|
|
5006
|
-
const mapType = ZodMap.create;
|
|
5007
|
-
const setType = ZodSet.create;
|
|
5008
|
-
const functionType = ZodFunction.create;
|
|
5009
4734
|
const lazyType = ZodLazy.create;
|
|
5010
4735
|
const literalType = ZodLiteral.create;
|
|
5011
4736
|
const enumType = ZodEnum.create;
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
const optionalType = ZodOptional.create;
|
|
5016
|
-
const nullableType = ZodNullable.create;
|
|
5017
|
-
const preprocessType = ZodEffects.createWithPreprocess;
|
|
5018
|
-
const pipelineType = ZodPipeline.create;
|
|
5019
|
-
const ostring = () => stringType().optional();
|
|
5020
|
-
const onumber = () => numberType().optional();
|
|
5021
|
-
const oboolean = () => booleanType().optional();
|
|
5022
|
-
const coerce = {
|
|
5023
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
5024
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
5025
|
-
boolean: (arg) => ZodBoolean.create({
|
|
5026
|
-
...arg,
|
|
5027
|
-
coerce: true
|
|
5028
|
-
}),
|
|
5029
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
5030
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
5031
|
-
};
|
|
5032
|
-
const NEVER = INVALID;
|
|
5033
|
-
var z = /* @__PURE__ */ Object.freeze({
|
|
5034
|
-
__proto__: null,
|
|
5035
|
-
defaultErrorMap: errorMap,
|
|
5036
|
-
setErrorMap,
|
|
5037
|
-
getErrorMap,
|
|
5038
|
-
makeIssue,
|
|
5039
|
-
EMPTY_PATH,
|
|
5040
|
-
addIssueToContext,
|
|
5041
|
-
ParseStatus,
|
|
5042
|
-
INVALID,
|
|
5043
|
-
DIRTY,
|
|
5044
|
-
OK,
|
|
5045
|
-
isAborted,
|
|
5046
|
-
isDirty,
|
|
5047
|
-
isValid,
|
|
5048
|
-
isAsync,
|
|
5049
|
-
get util() {
|
|
5050
|
-
return util$1;
|
|
5051
|
-
},
|
|
5052
|
-
get objectUtil() {
|
|
5053
|
-
return objectUtil;
|
|
5054
|
-
},
|
|
5055
|
-
ZodParsedType,
|
|
5056
|
-
getParsedType,
|
|
5057
|
-
ZodType,
|
|
5058
|
-
datetimeRegex,
|
|
5059
|
-
ZodString,
|
|
5060
|
-
ZodNumber,
|
|
5061
|
-
ZodBigInt,
|
|
5062
|
-
ZodBoolean,
|
|
5063
|
-
ZodDate,
|
|
5064
|
-
ZodSymbol,
|
|
5065
|
-
ZodUndefined,
|
|
5066
|
-
ZodNull,
|
|
5067
|
-
ZodAny,
|
|
5068
|
-
ZodUnknown,
|
|
5069
|
-
ZodNever,
|
|
5070
|
-
ZodVoid,
|
|
5071
|
-
ZodArray,
|
|
5072
|
-
ZodObject,
|
|
5073
|
-
ZodUnion,
|
|
5074
|
-
ZodDiscriminatedUnion,
|
|
5075
|
-
ZodIntersection,
|
|
5076
|
-
ZodTuple,
|
|
5077
|
-
ZodRecord,
|
|
5078
|
-
ZodMap,
|
|
5079
|
-
ZodSet,
|
|
5080
|
-
ZodFunction,
|
|
5081
|
-
ZodLazy,
|
|
5082
|
-
ZodLiteral,
|
|
5083
|
-
ZodEnum,
|
|
5084
|
-
ZodNativeEnum,
|
|
5085
|
-
ZodPromise,
|
|
5086
|
-
ZodEffects,
|
|
5087
|
-
ZodTransformer: ZodEffects,
|
|
5088
|
-
ZodOptional,
|
|
5089
|
-
ZodNullable,
|
|
5090
|
-
ZodDefault,
|
|
5091
|
-
ZodCatch,
|
|
5092
|
-
ZodNaN,
|
|
5093
|
-
BRAND,
|
|
5094
|
-
ZodBranded,
|
|
5095
|
-
ZodPipeline,
|
|
5096
|
-
ZodReadonly,
|
|
5097
|
-
custom,
|
|
5098
|
-
Schema: ZodType,
|
|
5099
|
-
ZodSchema: ZodType,
|
|
5100
|
-
late,
|
|
5101
|
-
get ZodFirstPartyTypeKind() {
|
|
5102
|
-
return ZodFirstPartyTypeKind;
|
|
5103
|
-
},
|
|
5104
|
-
coerce,
|
|
5105
|
-
any: anyType,
|
|
5106
|
-
array: arrayType,
|
|
5107
|
-
bigint: bigIntType,
|
|
5108
|
-
boolean: booleanType,
|
|
5109
|
-
date: dateType,
|
|
5110
|
-
discriminatedUnion: discriminatedUnionType,
|
|
5111
|
-
effect: effectsType,
|
|
5112
|
-
"enum": enumType,
|
|
5113
|
-
"function": functionType,
|
|
5114
|
-
"instanceof": instanceOfType,
|
|
5115
|
-
intersection: intersectionType,
|
|
5116
|
-
lazy: lazyType,
|
|
5117
|
-
literal: literalType,
|
|
5118
|
-
map: mapType,
|
|
5119
|
-
nan: nanType,
|
|
5120
|
-
nativeEnum: nativeEnumType,
|
|
5121
|
-
never: neverType,
|
|
5122
|
-
"null": nullType,
|
|
5123
|
-
nullable: nullableType,
|
|
5124
|
-
number: numberType,
|
|
5125
|
-
object: objectType,
|
|
5126
|
-
oboolean,
|
|
5127
|
-
onumber,
|
|
5128
|
-
optional: optionalType,
|
|
5129
|
-
ostring,
|
|
5130
|
-
pipeline: pipelineType,
|
|
5131
|
-
preprocess: preprocessType,
|
|
5132
|
-
promise: promiseType,
|
|
5133
|
-
record: recordType,
|
|
5134
|
-
set: setType,
|
|
5135
|
-
strictObject: strictObjectType,
|
|
5136
|
-
string: stringType,
|
|
5137
|
-
symbol: symbolType,
|
|
5138
|
-
transformer: effectsType,
|
|
5139
|
-
tuple: tupleType,
|
|
5140
|
-
"undefined": undefinedType,
|
|
5141
|
-
union: unionType,
|
|
5142
|
-
unknown: unknownType,
|
|
5143
|
-
"void": voidType,
|
|
5144
|
-
NEVER,
|
|
5145
|
-
ZodIssueCode,
|
|
5146
|
-
quotelessJson,
|
|
5147
|
-
ZodError
|
|
5148
|
-
});
|
|
4737
|
+
ZodPromise.create;
|
|
4738
|
+
ZodOptional.create;
|
|
4739
|
+
ZodNullable.create;
|
|
5149
4740
|
const SET_NAME = "SET_NAME";
|
|
5150
4741
|
const UNDO = "UNDO";
|
|
5151
4742
|
const REDO = "REDO";
|
|
@@ -6630,17 +6221,17 @@ function diffOperations(clearedOperationsA, clearedOperationsB) {
|
|
|
6630
6221
|
return clearedOperationsA.filter((operationA) => !clearedOperationsB.some((operationB) => operationA.index === operationB.index));
|
|
6631
6222
|
}
|
|
6632
6223
|
const isDefinedNonNullAny$2 = (v) => v !== void 0 && v !== null;
|
|
6633
|
-
|
|
6634
|
-
const Load_StateSchema =
|
|
6635
|
-
const PruneSchema =
|
|
6636
|
-
const RedoSchema =
|
|
6637
|
-
const Set_NameSchema =
|
|
6638
|
-
const UndoSchema =
|
|
6224
|
+
anyType().refine((v) => isDefinedNonNullAny$2(v));
|
|
6225
|
+
const Load_StateSchema = enumType(["LOAD_STATE"]);
|
|
6226
|
+
const PruneSchema = enumType(["PRUNE"]);
|
|
6227
|
+
const RedoSchema = enumType(["REDO"]);
|
|
6228
|
+
const Set_NameSchema = enumType(["SET_NAME"]);
|
|
6229
|
+
const UndoSchema = enumType(["UNDO"]);
|
|
6639
6230
|
function OperationScopeSchema$1() {
|
|
6640
|
-
return
|
|
6231
|
+
return literalType("global").or(literalType("local"));
|
|
6641
6232
|
}
|
|
6642
6233
|
function DocumentActionSchema() {
|
|
6643
|
-
return
|
|
6234
|
+
return unionType([
|
|
6644
6235
|
LoadStateActionSchema(),
|
|
6645
6236
|
PruneActionSchema(),
|
|
6646
6237
|
RedoActionSchema(),
|
|
@@ -6649,56 +6240,56 @@ function DocumentActionSchema() {
|
|
|
6649
6240
|
]);
|
|
6650
6241
|
}
|
|
6651
6242
|
function LoadStateActionSchema() {
|
|
6652
|
-
return
|
|
6653
|
-
input:
|
|
6243
|
+
return objectType({
|
|
6244
|
+
input: lazyType(() => LoadStateActionInputSchema()),
|
|
6654
6245
|
type: Load_StateSchema,
|
|
6655
6246
|
scope: OperationScopeSchema$1()
|
|
6656
6247
|
});
|
|
6657
6248
|
}
|
|
6658
6249
|
function LoadStateActionInputSchema() {
|
|
6659
|
-
return
|
|
6660
|
-
operations:
|
|
6661
|
-
state:
|
|
6250
|
+
return objectType({
|
|
6251
|
+
operations: numberType(),
|
|
6252
|
+
state: lazyType(() => LoadStateActionStateInputSchema())
|
|
6662
6253
|
});
|
|
6663
6254
|
}
|
|
6664
6255
|
function LoadStateActionStateInputSchema() {
|
|
6665
|
-
return
|
|
6666
|
-
data:
|
|
6667
|
-
name:
|
|
6256
|
+
return objectType({
|
|
6257
|
+
data: unknownType().nullish(),
|
|
6258
|
+
name: stringType()
|
|
6668
6259
|
});
|
|
6669
6260
|
}
|
|
6670
6261
|
function PruneActionSchema() {
|
|
6671
|
-
return
|
|
6672
|
-
input:
|
|
6262
|
+
return objectType({
|
|
6263
|
+
input: lazyType(() => PruneActionInputSchema()),
|
|
6673
6264
|
type: PruneSchema,
|
|
6674
6265
|
scope: OperationScopeSchema$1()
|
|
6675
6266
|
});
|
|
6676
6267
|
}
|
|
6677
6268
|
function PruneActionInputSchema() {
|
|
6678
|
-
return
|
|
6679
|
-
end:
|
|
6680
|
-
start:
|
|
6269
|
+
return objectType({
|
|
6270
|
+
end: numberType().nullish(),
|
|
6271
|
+
start: numberType().nullish()
|
|
6681
6272
|
});
|
|
6682
6273
|
}
|
|
6683
|
-
const RedoActionInputSchema =
|
|
6274
|
+
const RedoActionInputSchema = numberType;
|
|
6684
6275
|
function RedoActionSchema() {
|
|
6685
|
-
return
|
|
6276
|
+
return objectType({
|
|
6686
6277
|
input: RedoActionInputSchema(),
|
|
6687
6278
|
type: RedoSchema,
|
|
6688
6279
|
scope: OperationScopeSchema$1()
|
|
6689
6280
|
});
|
|
6690
6281
|
}
|
|
6691
|
-
const SetNameActionInputSchema =
|
|
6282
|
+
const SetNameActionInputSchema = stringType;
|
|
6692
6283
|
function SetNameActionSchema() {
|
|
6693
|
-
return
|
|
6284
|
+
return objectType({
|
|
6694
6285
|
input: SetNameActionInputSchema(),
|
|
6695
6286
|
type: Set_NameSchema,
|
|
6696
|
-
scope:
|
|
6287
|
+
scope: literalType("global")
|
|
6697
6288
|
});
|
|
6698
6289
|
}
|
|
6699
|
-
const UndoActionInputSchema =
|
|
6290
|
+
const UndoActionInputSchema = numberType;
|
|
6700
6291
|
function UndoActionSchema() {
|
|
6701
|
-
return
|
|
6292
|
+
return objectType({
|
|
6702
6293
|
input: UndoActionInputSchema(),
|
|
6703
6294
|
type: UndoSchema,
|
|
6704
6295
|
scope: OperationScopeSchema$1()
|
|
@@ -7321,267 +6912,267 @@ function parseResultingState(state) {
|
|
|
7321
6912
|
}
|
|
7322
6913
|
}
|
|
7323
6914
|
const isDefinedNonNullAny$1 = (v) => v !== void 0 && v !== null;
|
|
7324
|
-
|
|
6915
|
+
anyType().refine((v) => isDefinedNonNullAny$1(v));
|
|
7325
6916
|
function AddChangeLogItemInputSchema() {
|
|
7326
|
-
return
|
|
7327
|
-
__typename:
|
|
7328
|
-
content:
|
|
7329
|
-
id:
|
|
7330
|
-
insertBefore:
|
|
6917
|
+
return objectType({
|
|
6918
|
+
__typename: literalType("AddChangeLogItemInput").optional(),
|
|
6919
|
+
content: stringType(),
|
|
6920
|
+
id: stringType(),
|
|
6921
|
+
insertBefore: stringType().nullable()
|
|
7331
6922
|
});
|
|
7332
6923
|
}
|
|
7333
6924
|
function AddModuleInputSchema() {
|
|
7334
|
-
return
|
|
7335
|
-
description:
|
|
7336
|
-
id:
|
|
7337
|
-
name:
|
|
6925
|
+
return objectType({
|
|
6926
|
+
description: stringType().nullish(),
|
|
6927
|
+
id: stringType(),
|
|
6928
|
+
name: stringType()
|
|
7338
6929
|
});
|
|
7339
6930
|
}
|
|
7340
6931
|
function AddOperationErrorInputSchema() {
|
|
7341
|
-
return
|
|
7342
|
-
errorCode:
|
|
7343
|
-
errorDescription:
|
|
7344
|
-
errorName:
|
|
7345
|
-
errorTemplate:
|
|
7346
|
-
id:
|
|
7347
|
-
operationId:
|
|
6932
|
+
return objectType({
|
|
6933
|
+
errorCode: stringType().nullish(),
|
|
6934
|
+
errorDescription: stringType().nullish(),
|
|
6935
|
+
errorName: stringType().nullish(),
|
|
6936
|
+
errorTemplate: stringType().nullish(),
|
|
6937
|
+
id: stringType(),
|
|
6938
|
+
operationId: stringType()
|
|
7348
6939
|
});
|
|
7349
6940
|
}
|
|
7350
6941
|
function AddOperationExampleInputSchema() {
|
|
7351
|
-
return
|
|
7352
|
-
example:
|
|
7353
|
-
id:
|
|
7354
|
-
operationId:
|
|
6942
|
+
return objectType({
|
|
6943
|
+
example: stringType(),
|
|
6944
|
+
id: stringType(),
|
|
6945
|
+
operationId: stringType()
|
|
7355
6946
|
});
|
|
7356
6947
|
}
|
|
7357
6948
|
function AddOperationInputSchema() {
|
|
7358
|
-
return
|
|
7359
|
-
description:
|
|
7360
|
-
id:
|
|
7361
|
-
moduleId:
|
|
7362
|
-
name:
|
|
7363
|
-
reducer:
|
|
7364
|
-
schema:
|
|
7365
|
-
template:
|
|
6949
|
+
return objectType({
|
|
6950
|
+
description: stringType().nullish(),
|
|
6951
|
+
id: stringType(),
|
|
6952
|
+
moduleId: stringType(),
|
|
6953
|
+
name: stringType(),
|
|
6954
|
+
reducer: stringType().nullish(),
|
|
6955
|
+
schema: stringType().nullish(),
|
|
6956
|
+
template: stringType().nullish(),
|
|
7366
6957
|
scope: OperationScopeSchema().nullish()
|
|
7367
6958
|
});
|
|
7368
6959
|
}
|
|
7369
6960
|
function AddStateExampleInputSchema() {
|
|
7370
|
-
return
|
|
7371
|
-
scope:
|
|
7372
|
-
example:
|
|
7373
|
-
id:
|
|
7374
|
-
insertBefore:
|
|
6961
|
+
return objectType({
|
|
6962
|
+
scope: stringType(),
|
|
6963
|
+
example: stringType(),
|
|
6964
|
+
id: stringType(),
|
|
6965
|
+
insertBefore: stringType().nullish()
|
|
7375
6966
|
});
|
|
7376
6967
|
}
|
|
7377
6968
|
function DeleteChangeLogItemInputSchema() {
|
|
7378
|
-
return
|
|
7379
|
-
__typename:
|
|
7380
|
-
id:
|
|
6969
|
+
return objectType({
|
|
6970
|
+
__typename: literalType("DeleteChangeLogItemInput").optional(),
|
|
6971
|
+
id: stringType()
|
|
7381
6972
|
});
|
|
7382
6973
|
}
|
|
7383
6974
|
function DeleteModuleInputSchema() {
|
|
7384
|
-
return
|
|
7385
|
-
id:
|
|
6975
|
+
return objectType({
|
|
6976
|
+
id: stringType()
|
|
7386
6977
|
});
|
|
7387
6978
|
}
|
|
7388
6979
|
function DeleteOperationErrorInputSchema() {
|
|
7389
|
-
return
|
|
7390
|
-
id:
|
|
6980
|
+
return objectType({
|
|
6981
|
+
id: stringType()
|
|
7391
6982
|
});
|
|
7392
6983
|
}
|
|
7393
6984
|
function DeleteOperationExampleInputSchema() {
|
|
7394
|
-
return
|
|
7395
|
-
id:
|
|
6985
|
+
return objectType({
|
|
6986
|
+
id: stringType()
|
|
7396
6987
|
});
|
|
7397
6988
|
}
|
|
7398
6989
|
function DeleteOperationInputSchema() {
|
|
7399
|
-
return
|
|
7400
|
-
id:
|
|
6990
|
+
return objectType({
|
|
6991
|
+
id: stringType()
|
|
7401
6992
|
});
|
|
7402
6993
|
}
|
|
7403
6994
|
function DeleteStateExampleInputSchema() {
|
|
7404
|
-
return
|
|
7405
|
-
scope:
|
|
7406
|
-
id:
|
|
6995
|
+
return objectType({
|
|
6996
|
+
scope: stringType(),
|
|
6997
|
+
id: stringType()
|
|
7407
6998
|
});
|
|
7408
6999
|
}
|
|
7409
7000
|
function OperationScopeSchema() {
|
|
7410
|
-
return
|
|
7001
|
+
return literalType("global").or(literalType("local"));
|
|
7411
7002
|
}
|
|
7412
7003
|
function MoveOperationInputSchema() {
|
|
7413
|
-
return
|
|
7414
|
-
newModuleId:
|
|
7415
|
-
operationId:
|
|
7004
|
+
return objectType({
|
|
7005
|
+
newModuleId: stringType(),
|
|
7006
|
+
operationId: stringType()
|
|
7416
7007
|
});
|
|
7417
7008
|
}
|
|
7418
7009
|
function ReorderChangeLogItemsInputSchema() {
|
|
7419
|
-
return
|
|
7420
|
-
__typename:
|
|
7421
|
-
order:
|
|
7010
|
+
return objectType({
|
|
7011
|
+
__typename: literalType("ReorderChangeLogItemsInput").optional(),
|
|
7012
|
+
order: arrayType(stringType())
|
|
7422
7013
|
});
|
|
7423
7014
|
}
|
|
7424
7015
|
function ReorderModuleOperationsInputSchema() {
|
|
7425
|
-
return
|
|
7426
|
-
moduleId:
|
|
7427
|
-
order:
|
|
7016
|
+
return objectType({
|
|
7017
|
+
moduleId: stringType(),
|
|
7018
|
+
order: arrayType(stringType())
|
|
7428
7019
|
});
|
|
7429
7020
|
}
|
|
7430
7021
|
function ReorderModulesInputSchema() {
|
|
7431
|
-
return
|
|
7432
|
-
order:
|
|
7022
|
+
return objectType({
|
|
7023
|
+
order: arrayType(stringType())
|
|
7433
7024
|
});
|
|
7434
7025
|
}
|
|
7435
7026
|
function ReorderOperationErrorsInputSchema() {
|
|
7436
|
-
return
|
|
7437
|
-
operationId:
|
|
7438
|
-
order:
|
|
7027
|
+
return objectType({
|
|
7028
|
+
operationId: stringType(),
|
|
7029
|
+
order: arrayType(stringType())
|
|
7439
7030
|
});
|
|
7440
7031
|
}
|
|
7441
7032
|
function ReorderOperationExamplesInputSchema() {
|
|
7442
|
-
return
|
|
7443
|
-
operationId:
|
|
7444
|
-
order:
|
|
7033
|
+
return objectType({
|
|
7034
|
+
operationId: stringType(),
|
|
7035
|
+
order: arrayType(stringType())
|
|
7445
7036
|
});
|
|
7446
7037
|
}
|
|
7447
7038
|
function ReorderStateExamplesInputSchema() {
|
|
7448
|
-
return
|
|
7449
|
-
scope:
|
|
7450
|
-
order:
|
|
7039
|
+
return objectType({
|
|
7040
|
+
scope: stringType(),
|
|
7041
|
+
order: arrayType(stringType())
|
|
7451
7042
|
});
|
|
7452
7043
|
}
|
|
7453
7044
|
function SetAuthorNameInputSchema() {
|
|
7454
|
-
return
|
|
7455
|
-
authorName:
|
|
7045
|
+
return objectType({
|
|
7046
|
+
authorName: stringType()
|
|
7456
7047
|
});
|
|
7457
7048
|
}
|
|
7458
7049
|
function SetAuthorWebsiteInputSchema() {
|
|
7459
|
-
return
|
|
7460
|
-
authorWebsite:
|
|
7050
|
+
return objectType({
|
|
7051
|
+
authorWebsite: stringType()
|
|
7461
7052
|
});
|
|
7462
7053
|
}
|
|
7463
7054
|
function SetInitialStateInputSchema() {
|
|
7464
|
-
return
|
|
7465
|
-
scope:
|
|
7466
|
-
initialValue:
|
|
7055
|
+
return objectType({
|
|
7056
|
+
scope: stringType(),
|
|
7057
|
+
initialValue: stringType()
|
|
7467
7058
|
});
|
|
7468
7059
|
}
|
|
7469
7060
|
function SetModelDescriptionInputSchema() {
|
|
7470
|
-
return
|
|
7471
|
-
description:
|
|
7061
|
+
return objectType({
|
|
7062
|
+
description: stringType()
|
|
7472
7063
|
});
|
|
7473
7064
|
}
|
|
7474
7065
|
function SetModelExtensionInputSchema() {
|
|
7475
|
-
return
|
|
7476
|
-
extension:
|
|
7066
|
+
return objectType({
|
|
7067
|
+
extension: stringType()
|
|
7477
7068
|
});
|
|
7478
7069
|
}
|
|
7479
7070
|
function SetModelIdInputSchema() {
|
|
7480
|
-
return
|
|
7481
|
-
id:
|
|
7071
|
+
return objectType({
|
|
7072
|
+
id: stringType()
|
|
7482
7073
|
});
|
|
7483
7074
|
}
|
|
7484
7075
|
function SetModelNameInputSchema() {
|
|
7485
|
-
return
|
|
7486
|
-
name:
|
|
7076
|
+
return objectType({
|
|
7077
|
+
name: stringType()
|
|
7487
7078
|
});
|
|
7488
7079
|
}
|
|
7489
7080
|
function SetModuleDescriptionInputSchema() {
|
|
7490
|
-
return
|
|
7491
|
-
description:
|
|
7492
|
-
id:
|
|
7081
|
+
return objectType({
|
|
7082
|
+
description: stringType().nullish(),
|
|
7083
|
+
id: stringType()
|
|
7493
7084
|
});
|
|
7494
7085
|
}
|
|
7495
7086
|
function SetModuleNameInputSchema() {
|
|
7496
|
-
return
|
|
7497
|
-
id:
|
|
7498
|
-
name:
|
|
7087
|
+
return objectType({
|
|
7088
|
+
id: stringType(),
|
|
7089
|
+
name: stringType().nullish()
|
|
7499
7090
|
});
|
|
7500
7091
|
}
|
|
7501
7092
|
function SetOperationDescriptionInputSchema() {
|
|
7502
|
-
return
|
|
7503
|
-
description:
|
|
7504
|
-
id:
|
|
7093
|
+
return objectType({
|
|
7094
|
+
description: stringType().nullish(),
|
|
7095
|
+
id: stringType()
|
|
7505
7096
|
});
|
|
7506
7097
|
}
|
|
7507
7098
|
function SetOperationErrorCodeInputSchema() {
|
|
7508
|
-
return
|
|
7509
|
-
errorCode:
|
|
7510
|
-
id:
|
|
7099
|
+
return objectType({
|
|
7100
|
+
errorCode: stringType().nullish(),
|
|
7101
|
+
id: stringType()
|
|
7511
7102
|
});
|
|
7512
7103
|
}
|
|
7513
7104
|
function SetOperationErrorDescriptionInputSchema() {
|
|
7514
|
-
return
|
|
7515
|
-
errorDescription:
|
|
7516
|
-
id:
|
|
7105
|
+
return objectType({
|
|
7106
|
+
errorDescription: stringType().nullish(),
|
|
7107
|
+
id: stringType()
|
|
7517
7108
|
});
|
|
7518
7109
|
}
|
|
7519
7110
|
function SetOperationErrorNameInputSchema() {
|
|
7520
|
-
return
|
|
7521
|
-
errorName:
|
|
7522
|
-
id:
|
|
7111
|
+
return objectType({
|
|
7112
|
+
errorName: stringType().nullish(),
|
|
7113
|
+
id: stringType()
|
|
7523
7114
|
});
|
|
7524
7115
|
}
|
|
7525
7116
|
function SetOperationErrorTemplateInputSchema() {
|
|
7526
|
-
return
|
|
7527
|
-
errorTemplate:
|
|
7528
|
-
id:
|
|
7117
|
+
return objectType({
|
|
7118
|
+
errorTemplate: stringType().nullish(),
|
|
7119
|
+
id: stringType()
|
|
7529
7120
|
});
|
|
7530
7121
|
}
|
|
7531
7122
|
function SetOperationNameInputSchema() {
|
|
7532
|
-
return
|
|
7533
|
-
id:
|
|
7534
|
-
name:
|
|
7123
|
+
return objectType({
|
|
7124
|
+
id: stringType(),
|
|
7125
|
+
name: stringType().nullish()
|
|
7535
7126
|
});
|
|
7536
7127
|
}
|
|
7537
7128
|
function SetOperationScopeInputSchema() {
|
|
7538
|
-
return
|
|
7539
|
-
id:
|
|
7129
|
+
return objectType({
|
|
7130
|
+
id: stringType(),
|
|
7540
7131
|
scope: OperationScopeSchema()
|
|
7541
7132
|
});
|
|
7542
7133
|
}
|
|
7543
7134
|
function SetOperationReducerInputSchema() {
|
|
7544
|
-
return
|
|
7545
|
-
id:
|
|
7546
|
-
reducer:
|
|
7135
|
+
return objectType({
|
|
7136
|
+
id: stringType(),
|
|
7137
|
+
reducer: stringType().nullish()
|
|
7547
7138
|
});
|
|
7548
7139
|
}
|
|
7549
7140
|
function SetOperationSchemaInputSchema() {
|
|
7550
|
-
return
|
|
7551
|
-
id:
|
|
7552
|
-
schema:
|
|
7141
|
+
return objectType({
|
|
7142
|
+
id: stringType(),
|
|
7143
|
+
schema: stringType().nullish()
|
|
7553
7144
|
});
|
|
7554
7145
|
}
|
|
7555
7146
|
function SetOperationTemplateInputSchema() {
|
|
7556
|
-
return
|
|
7557
|
-
id:
|
|
7558
|
-
template:
|
|
7147
|
+
return objectType({
|
|
7148
|
+
id: stringType(),
|
|
7149
|
+
template: stringType().nullish()
|
|
7559
7150
|
});
|
|
7560
7151
|
}
|
|
7561
7152
|
function SetStateSchemaInputSchema() {
|
|
7562
|
-
return
|
|
7563
|
-
scope:
|
|
7564
|
-
schema:
|
|
7153
|
+
return objectType({
|
|
7154
|
+
scope: stringType(),
|
|
7155
|
+
schema: stringType()
|
|
7565
7156
|
});
|
|
7566
7157
|
}
|
|
7567
7158
|
function UpdateChangeLogItemInputSchema() {
|
|
7568
|
-
return
|
|
7569
|
-
__typename:
|
|
7570
|
-
id:
|
|
7571
|
-
newContent:
|
|
7159
|
+
return objectType({
|
|
7160
|
+
__typename: literalType("UpdateChangeLogItemInput").optional(),
|
|
7161
|
+
id: stringType(),
|
|
7162
|
+
newContent: stringType()
|
|
7572
7163
|
});
|
|
7573
7164
|
}
|
|
7574
7165
|
function UpdateOperationExampleInputSchema() {
|
|
7575
|
-
return
|
|
7576
|
-
example:
|
|
7577
|
-
id:
|
|
7166
|
+
return objectType({
|
|
7167
|
+
example: stringType(),
|
|
7168
|
+
id: stringType()
|
|
7578
7169
|
});
|
|
7579
7170
|
}
|
|
7580
7171
|
function UpdateStateExampleInputSchema() {
|
|
7581
|
-
return
|
|
7582
|
-
scope:
|
|
7583
|
-
id:
|
|
7584
|
-
newExample:
|
|
7172
|
+
return objectType({
|
|
7173
|
+
scope: stringType(),
|
|
7174
|
+
id: stringType(),
|
|
7175
|
+
newExample: stringType()
|
|
7585
7176
|
});
|
|
7586
7177
|
}
|
|
7587
7178
|
var dist = {};
|
|
@@ -7888,15 +7479,15 @@ function requireJszip_min() {
|
|
|
7888
7479
|
t3 && !r2 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
|
|
7889
7480
|
var S = 0;
|
|
7890
7481
|
t3 && (S |= 8), l || !_ && !g || (S |= 2048);
|
|
7891
|
-
var
|
|
7892
|
-
w && (
|
|
7482
|
+
var z = 0, C = 0;
|
|
7483
|
+
w && (z |= 16), "UNIX" === i2 ? (C = 798, z |= function(e3, t4) {
|
|
7893
7484
|
var r3 = e3;
|
|
7894
7485
|
return e3 || (r3 = t4 ? 16893 : 33204), (65535 & r3) << 16;
|
|
7895
|
-
}(h.unixPermissions, w)) : (C = 20,
|
|
7486
|
+
}(h.unixPermissions, w)) : (C = 20, z |= function(e3) {
|
|
7896
7487
|
return 63 & (e3 || 0);
|
|
7897
7488
|
}(h.dosPermissions)), a = k.getUTCHours(), a <<= 6, a |= k.getUTCMinutes(), a <<= 5, a |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _ && (v = A(1, 1) + A(B(f), 4) + c, b += "up" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p), 4) + m, b += "uc" + A(y.length, 2) + y);
|
|
7898
7489
|
var E = "";
|
|
7899
|
-
return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(
|
|
7490
|
+
return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(z, 4) + A(n2, 4) + f + b + p };
|
|
7900
7491
|
}
|
|
7901
7492
|
var I = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B = e("../crc32"), R = e("../signature");
|
|
7902
7493
|
function s(e2, t3, r2, n2) {
|
|
@@ -9124,7 +8715,7 @@ function requireJszip_min() {
|
|
|
9124
8715
|
return -1 ^ e2;
|
|
9125
8716
|
};
|
|
9126
8717
|
}, {}], 46: [function(e, t2, r) {
|
|
9127
|
-
var h, c = e("../utils/common"), u = e("./trees"), d = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258,
|
|
8718
|
+
var h, c = e("../utils/common"), u = e("./trees"), d = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z = S + x + 1, C = 42, E = 113, A = 1, I = 2, O = 3, B = 4;
|
|
9128
8719
|
function R(e2, t3) {
|
|
9129
8720
|
return e2.msg = n[t3], t3;
|
|
9130
8721
|
}
|
|
@@ -9148,7 +8739,7 @@ function requireJszip_min() {
|
|
|
9148
8739
|
e2.pending_buf[e2.pending++] = t3 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t3;
|
|
9149
8740
|
}
|
|
9150
8741
|
function L(e2, t3) {
|
|
9151
|
-
var r2, n2, i2 = e2.max_chain_length, s2 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size -
|
|
8742
|
+
var r2, n2, i2 = e2.max_chain_length, s2 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size - z ? e2.strstart - (e2.w_size - z) : 0, u2 = e2.window, l2 = e2.w_mask, f2 = e2.prev, c2 = e2.strstart + S, d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2];
|
|
9152
8743
|
e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
|
|
9153
8744
|
do {
|
|
9154
8745
|
if (u2[(r2 = t3) + a2] === p2 && u2[r2 + a2 - 1] === d2 && u2[r2] === u2[s2] && u2[++r2] === u2[s2 + 1]) {
|
|
@@ -9166,22 +8757,22 @@ function requireJszip_min() {
|
|
|
9166
8757
|
function j(e2) {
|
|
9167
8758
|
var t3, r2, n2, i2, s2, a2, o2, h2, u2, l2, f2 = e2.w_size;
|
|
9168
8759
|
do {
|
|
9169
|
-
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f2 + (f2 -
|
|
8760
|
+
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f2 + (f2 - z)) {
|
|
9170
8761
|
for (c.arraySet(e2.window, e2.window, f2, f2, 0), e2.match_start -= f2, e2.strstart -= f2, e2.block_start -= f2, t3 = r2 = e2.hash_size; n2 = e2.head[--t3], e2.head[t3] = f2 <= n2 ? n2 - f2 : 0, --r2; ) ;
|
|
9171
8762
|
for (t3 = r2 = f2; n2 = e2.prev[--t3], e2.prev[t3] = f2 <= n2 ? n2 - f2 : 0, --r2; ) ;
|
|
9172
8763
|
i2 += f2;
|
|
9173
8764
|
}
|
|
9174
8765
|
if (0 === e2.strm.avail_in) break;
|
|
9175
8766
|
if (a2 = e2.strm, o2 = e2.window, h2 = e2.strstart + e2.lookahead, u2 = i2, l2 = void 0, l2 = a2.avail_in, u2 < l2 && (l2 = u2), r2 = 0 === l2 ? 0 : (a2.avail_in -= l2, c.arraySet(o2, a2.input, a2.next_in, l2, h2), 1 === a2.state.wrap ? a2.adler = d(a2.adler, o2, l2, h2) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h2)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r2, e2.lookahead + e2.insert >= x) for (s2 = e2.strstart - e2.insert, e2.ins_h = e2.window[s2], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + x - 1]) & e2.hash_mask, e2.prev[s2 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s2, s2++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
|
|
9176
|
-
} while (e2.lookahead <
|
|
8767
|
+
} while (e2.lookahead < z && 0 !== e2.strm.avail_in);
|
|
9177
8768
|
}
|
|
9178
8769
|
function Z(e2, t3) {
|
|
9179
8770
|
for (var r2, n2; ; ) {
|
|
9180
|
-
if (e2.lookahead <
|
|
9181
|
-
if (j(e2), e2.lookahead <
|
|
8771
|
+
if (e2.lookahead < z) {
|
|
8772
|
+
if (j(e2), e2.lookahead < z && t3 === l) return A;
|
|
9182
8773
|
if (0 === e2.lookahead) break;
|
|
9183
8774
|
}
|
|
9184
|
-
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r2 && e2.strstart - r2 <= e2.w_size -
|
|
8775
|
+
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r2 && e2.strstart - r2 <= e2.w_size - z && (e2.match_length = L(e2, r2)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
|
|
9185
8776
|
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
9186
8777
|
e2.strstart++;
|
|
9187
8778
|
} else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
|
|
@@ -9192,11 +8783,11 @@ function requireJszip_min() {
|
|
|
9192
8783
|
}
|
|
9193
8784
|
function W2(e2, t3) {
|
|
9194
8785
|
for (var r2, n2, i2; ; ) {
|
|
9195
|
-
if (e2.lookahead <
|
|
9196
|
-
if (j(e2), e2.lookahead <
|
|
8786
|
+
if (e2.lookahead < z) {
|
|
8787
|
+
if (j(e2), e2.lookahead < z && t3 === l) return A;
|
|
9197
8788
|
if (0 === e2.lookahead) break;
|
|
9198
8789
|
}
|
|
9199
|
-
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r2 && e2.prev_length < e2.max_lazy_match && e2.strstart - r2 <= e2.w_size -
|
|
8790
|
+
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r2 && e2.prev_length < e2.max_lazy_match && e2.strstart - r2 <= e2.w_size - z && (e2.match_length = L(e2, r2), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
|
|
9200
8791
|
for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
9201
8792
|
if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N(e2, false), 0 === e2.strm.avail_out)) return A;
|
|
9202
8793
|
} else if (e2.match_available) {
|
|
@@ -9239,7 +8830,7 @@ function requireJszip_min() {
|
|
|
9239
8830
|
e2.strstart += e2.lookahead, e2.lookahead = 0;
|
|
9240
8831
|
var n2 = e2.block_start + r2;
|
|
9241
8832
|
if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N(e2, false), 0 === e2.strm.avail_out)) return A;
|
|
9242
|
-
if (e2.strstart - e2.block_start >= e2.w_size -
|
|
8833
|
+
if (e2.strstart - e2.block_start >= e2.w_size - z && (N(e2, false), 0 === e2.strm.avail_out)) return A;
|
|
9243
8834
|
}
|
|
9244
8835
|
return e2.insert = 0, t3 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : (e2.strstart > e2.block_start && (N(e2, false), e2.strm.avail_out), A);
|
|
9245
8836
|
}), new M(4, 4, 8, 4, Z), new M(4, 5, 16, 8, Z), new M(4, 6, 32, 32, Z), new M(4, 4, 16, 16, W2), new M(8, 16, 32, 32, W2), new M(8, 16, 128, 128, W2), new M(8, 32, 128, 256, W2), new M(32, 128, 258, 1024, W2), new M(32, 258, 258, 4096, W2)], r.deflateInit = function(e2, t3) {
|
|
@@ -9334,10 +8925,10 @@ function requireJszip_min() {
|
|
|
9334
8925
|
};
|
|
9335
8926
|
}, {}], 48: [function(e, t2, r) {
|
|
9336
8927
|
t2.exports = function(e2, t3) {
|
|
9337
|
-
var r2, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S,
|
|
9338
|
-
r2 = e2.state, n = e2.next_in,
|
|
8928
|
+
var r2, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z, C;
|
|
8929
|
+
r2 = e2.state, n = e2.next_in, z = e2.input, i = n + (e2.avail_in - 5), s = e2.next_out, C = e2.output, a = s - (t3 - e2.avail_out), o = s + (e2.avail_out - 257), h = r2.dmax, u = r2.wsize, l = r2.whave, f = r2.wnext, c = r2.window, d = r2.hold, p = r2.bits, m = r2.lencode, _ = r2.distcode, g = (1 << r2.lenbits) - 1, b = (1 << r2.distbits) - 1;
|
|
9339
8930
|
e: do {
|
|
9340
|
-
p < 15 && (d +=
|
|
8931
|
+
p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = m[d & g];
|
|
9341
8932
|
t: for (; ; ) {
|
|
9342
8933
|
if (d >>>= y = v >>> 24, p -= y, 0 === (y = v >>> 16 & 255)) C[s++] = 65535 & v;
|
|
9343
8934
|
else {
|
|
@@ -9353,7 +8944,7 @@ function requireJszip_min() {
|
|
|
9353
8944
|
e2.msg = "invalid literal/length code", r2.mode = 30;
|
|
9354
8945
|
break e;
|
|
9355
8946
|
}
|
|
9356
|
-
w = 65535 & v, (y &= 15) && (p < y && (d +=
|
|
8947
|
+
w = 65535 & v, (y &= 15) && (p < y && (d += z[n++] << p, p += 8), w += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = _[d & b];
|
|
9357
8948
|
r: for (; ; ) {
|
|
9358
8949
|
if (d >>>= y = v >>> 24, p -= y, !(16 & (y = v >>> 16 & 255))) {
|
|
9359
8950
|
if (0 == (64 & y)) {
|
|
@@ -9363,7 +8954,7 @@ function requireJszip_min() {
|
|
|
9363
8954
|
e2.msg = "invalid distance code", r2.mode = 30;
|
|
9364
8955
|
break e;
|
|
9365
8956
|
}
|
|
9366
|
-
if (k = 65535 & v, p < (y &= 15) && (d +=
|
|
8957
|
+
if (k = 65535 & v, p < (y &= 15) && (d += z[n++] << p, (p += 8) < y && (d += z[n++] << p, p += 8)), h < (k += d & (1 << y) - 1)) {
|
|
9367
8958
|
e2.msg = "invalid distance too far back", r2.mode = 30;
|
|
9368
8959
|
break e;
|
|
9369
8960
|
}
|
|
@@ -9447,7 +9038,7 @@ function requireJszip_min() {
|
|
|
9447
9038
|
r.inflateReset = o, r.inflateReset2 = h, r.inflateResetKeep = a, r.inflateInit = function(e2) {
|
|
9448
9039
|
return u(e2, 15);
|
|
9449
9040
|
}, r.inflateInit2 = u, r.inflate = function(e2, t3) {
|
|
9450
|
-
var r2, n2, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S,
|
|
9041
|
+
var r2, n2, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S, z, C = 0, E = new I.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
9451
9042
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U;
|
|
9452
9043
|
12 === (r2 = e2.state).mode && (r2.mode = 13), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s2 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r2.hold, l2 = r2.bits, f2 = o2, c2 = h2, x = N;
|
|
9453
9044
|
e: for (; ; ) switch (r2.mode) {
|
|
@@ -9634,7 +9225,7 @@ function requireJszip_min() {
|
|
|
9634
9225
|
if (b < 16) u2 >>>= _, l2 -= _, r2.lens[r2.have++] = b;
|
|
9635
9226
|
else {
|
|
9636
9227
|
if (16 === b) {
|
|
9637
|
-
for (
|
|
9228
|
+
for (z = _ + 2; l2 < z; ) {
|
|
9638
9229
|
if (0 === o2) break e;
|
|
9639
9230
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9640
9231
|
}
|
|
@@ -9644,13 +9235,13 @@ function requireJszip_min() {
|
|
|
9644
9235
|
}
|
|
9645
9236
|
k = r2.lens[r2.have - 1], d = 3 + (3 & u2), u2 >>>= 2, l2 -= 2;
|
|
9646
9237
|
} else if (17 === b) {
|
|
9647
|
-
for (
|
|
9238
|
+
for (z = _ + 3; l2 < z; ) {
|
|
9648
9239
|
if (0 === o2) break e;
|
|
9649
9240
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9650
9241
|
}
|
|
9651
9242
|
l2 -= _, k = 0, d = 3 + (7 & (u2 >>>= _)), u2 >>>= 3, l2 -= 3;
|
|
9652
9243
|
} else {
|
|
9653
|
-
for (
|
|
9244
|
+
for (z = _ + 7; l2 < z; ) {
|
|
9654
9245
|
if (0 === o2) break e;
|
|
9655
9246
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9656
9247
|
}
|
|
@@ -9710,7 +9301,7 @@ function requireJszip_min() {
|
|
|
9710
9301
|
r2.extra = 15 & g, r2.mode = 22;
|
|
9711
9302
|
case 22:
|
|
9712
9303
|
if (r2.extra) {
|
|
9713
|
-
for (
|
|
9304
|
+
for (z = r2.extra; l2 < z; ) {
|
|
9714
9305
|
if (0 === o2) break e;
|
|
9715
9306
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9716
9307
|
}
|
|
@@ -9736,7 +9327,7 @@ function requireJszip_min() {
|
|
|
9736
9327
|
r2.offset = b, r2.extra = 15 & g, r2.mode = 24;
|
|
9737
9328
|
case 24:
|
|
9738
9329
|
if (r2.extra) {
|
|
9739
|
-
for (
|
|
9330
|
+
for (z = r2.extra; l2 < z; ) {
|
|
9740
9331
|
if (0 === o2) break e;
|
|
9741
9332
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9742
9333
|
}
|
|
@@ -9816,14 +9407,14 @@ function requireJszip_min() {
|
|
|
9816
9407
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t2, r) {
|
|
9817
9408
|
var D = e("../utils/common"), F = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
9818
9409
|
t2.exports = function(e2, t3, r2, n, i, s, a, o) {
|
|
9819
|
-
var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0,
|
|
9410
|
+
var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z = 0, C = 0, E = 0, A = null, I = 0, O = new D.Buf16(16), B = new D.Buf16(16), R = null, T = 0;
|
|
9820
9411
|
for (b = 0; b <= 15; b++) O[b] = 0;
|
|
9821
9412
|
for (v = 0; v < n; v++) O[t3[r2 + v]]++;
|
|
9822
9413
|
for (k = g, w = 15; 1 <= w && 0 === O[w]; w--) ;
|
|
9823
9414
|
if (w < k && (k = w), 0 === w) return i[s++] = 20971520, i[s++] = 20971520, o.bits = 1, 0;
|
|
9824
9415
|
for (y = 1; y < w && 0 === O[y]; y++) ;
|
|
9825
|
-
for (k < y && (k = y), b =
|
|
9826
|
-
if (0 <
|
|
9416
|
+
for (k < y && (k = y), b = z = 1; b <= 15; b++) if (z <<= 1, (z -= O[b]) < 0) return -1;
|
|
9417
|
+
if (0 < z && (0 === e2 || 1 !== w)) return -1;
|
|
9827
9418
|
for (B[1] = 0, b = 1; b < 15; b++) B[b + 1] = B[b] + O[b];
|
|
9828
9419
|
for (v = 0; v < n; v++) 0 !== t3[r2 + v] && (a[B[t3[r2 + v]]++] = v);
|
|
9829
9420
|
if (d = 0 === e2 ? (A = R = a, 19) : 1 === e2 ? (A = F, I -= 257, R = N, T -= 257, 256) : (A = U, R = P, -1), b = y, c = s, S = v = E = 0, l = -1, f = (C = 1 << (x = k)) - 1, 1 === e2 && 852 < C || 2 === e2 && 592 < C) return 1;
|
|
@@ -9835,7 +9426,7 @@ function requireJszip_min() {
|
|
|
9835
9426
|
b = t3[r2 + a[v]];
|
|
9836
9427
|
}
|
|
9837
9428
|
if (k < b && (E & f) !== l) {
|
|
9838
|
-
for (0 === S && (S = k), c += y,
|
|
9429
|
+
for (0 === S && (S = k), c += y, z = 1 << (x = b - S); x + S < w && !((z -= O[x + S]) <= 0); ) x++, z <<= 1;
|
|
9839
9430
|
if (C += 1 << x, 1 === e2 && 852 < C || 2 === e2 && 592 < C) return 1;
|
|
9840
9431
|
i[l = E & f] = k << 24 | x << 16 | c - s | 0;
|
|
9841
9432
|
}
|
|
@@ -9849,8 +9440,8 @@ function requireJszip_min() {
|
|
|
9849
9440
|
function n(e2) {
|
|
9850
9441
|
for (var t3 = e2.length; 0 <= --t3; ) e2[t3] = 0;
|
|
9851
9442
|
}
|
|
9852
|
-
var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
|
|
9853
|
-
n(
|
|
9443
|
+
var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (l + 2));
|
|
9444
|
+
n(z);
|
|
9854
9445
|
var C = new Array(2 * f);
|
|
9855
9446
|
n(C);
|
|
9856
9447
|
var E = new Array(512);
|
|
@@ -9958,12 +9549,12 @@ function requireJszip_min() {
|
|
|
9958
9549
|
for (A[r2 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k[n2]; e3++) E[i2++] = n2;
|
|
9959
9550
|
for (i2 >>= 7; n2 < f; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k[n2] - 7; e3++) E[256 + i2++] = n2;
|
|
9960
9551
|
for (t3 = 0; t3 <= g; t3++) s2[t3] = 0;
|
|
9961
|
-
for (e3 = 0; e3 <= 143; )
|
|
9962
|
-
for (; e3 <= 255; )
|
|
9963
|
-
for (; e3 <= 279; )
|
|
9964
|
-
for (; e3 <= 287; )
|
|
9965
|
-
for (Z(
|
|
9966
|
-
O = new D(
|
|
9552
|
+
for (e3 = 0; e3 <= 143; ) z[2 * e3 + 1] = 8, e3++, s2[8]++;
|
|
9553
|
+
for (; e3 <= 255; ) z[2 * e3 + 1] = 9, e3++, s2[9]++;
|
|
9554
|
+
for (; e3 <= 279; ) z[2 * e3 + 1] = 7, e3++, s2[7]++;
|
|
9555
|
+
for (; e3 <= 287; ) z[2 * e3 + 1] = 8, e3++, s2[8]++;
|
|
9556
|
+
for (Z(z, l + 1, s2), e3 = 0; e3 < f; e3++) C[2 * e3 + 1] = 5, C[2 * e3] = j(e3, 5);
|
|
9557
|
+
O = new D(z, w, u + 1, l, g), B = new D(C, k, 0, f, g), R = new D(new Array(0), x, 0, c, p);
|
|
9967
9558
|
}(), q = true), e2.l_desc = new F(e2.dyn_ltree, O), e2.d_desc = new F(e2.dyn_dtree, B), e2.bl_desc = new F(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
9968
9559
|
}, r._tr_stored_block = J, r._tr_flush_block = function(e2, t3, r2, n2) {
|
|
9969
9560
|
var i2, s2, a2 = 0;
|
|
@@ -9977,7 +9568,7 @@ function requireJszip_min() {
|
|
|
9977
9568
|
var t4;
|
|
9978
9569
|
for (X(e3, e3.dyn_ltree, e3.l_desc.max_code), X(e3, e3.dyn_dtree, e3.d_desc.max_code), Y(e3, e3.bl_desc), t4 = c - 1; 3 <= t4 && 0 === e3.bl_tree[2 * S[t4] + 1]; t4--) ;
|
|
9979
9570
|
return e3.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4;
|
|
9980
|
-
}(e2), i2 = e2.opt_len + 3 + 7 >>> 3, (s2 = e2.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r2 + 5, r2 + 4 <= i2 && -1 !== t3 ? J(e2, t3, r2, n2) : 4 === e2.strategy || s2 === i2 ? (P(e2, 2 + (n2 ? 1 : 0), 3), K2(e2,
|
|
9571
|
+
}(e2), i2 = e2.opt_len + 3 + 7 >>> 3, (s2 = e2.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r2 + 5, r2 + 4 <= i2 && -1 !== t3 ? J(e2, t3, r2, n2) : 4 === e2.strategy || s2 === i2 ? (P(e2, 2 + (n2 ? 1 : 0), 3), K2(e2, z, C)) : (P(e2, 4 + (n2 ? 1 : 0), 3), function(e3, t4, r3, n3) {
|
|
9981
9572
|
var i3;
|
|
9982
9573
|
for (P(e3, t4 - 257, 5), P(e3, r3 - 1, 5), P(e3, n3 - 4, 4), i3 = 0; i3 < n3; i3++) P(e3, e3.bl_tree[2 * S[i3] + 1], 3);
|
|
9983
9574
|
V(e3, e3.dyn_ltree, t4 - 1), V(e3, e3.dyn_dtree, r3 - 1);
|
|
@@ -9985,7 +9576,7 @@ function requireJszip_min() {
|
|
|
9985
9576
|
}, r._tr_tally = function(e2, t3, r2) {
|
|
9986
9577
|
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t3 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t3, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r2, e2.last_lit++, 0 === t3 ? e2.dyn_ltree[2 * r2]++ : (e2.matches++, t3--, e2.dyn_ltree[2 * (A[r2] + u + 1)]++, e2.dyn_dtree[2 * N(t3)]++), e2.last_lit === e2.lit_bufsize - 1;
|
|
9987
9578
|
}, r._tr_align = function(e2) {
|
|
9988
|
-
P(e2, 2, 3), L(e2, m,
|
|
9579
|
+
P(e2, 2, 3), L(e2, m, z), function(e3) {
|
|
9989
9580
|
16 === e3.bi_valid ? (U(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
|
|
9990
9581
|
}(e2);
|
|
9991
9582
|
};
|
|
@@ -10106,6 +9697,7 @@ const types = {
|
|
|
10106
9697
|
"application/dash+xml": ["mpd"],
|
|
10107
9698
|
"application/dash-patch+xml": ["mpp"],
|
|
10108
9699
|
"application/davmount+xml": ["davmount"],
|
|
9700
|
+
"application/dicom": ["dcm"],
|
|
10109
9701
|
"application/docbook+xml": ["dbk"],
|
|
10110
9702
|
"application/dssc+der": ["dssc"],
|
|
10111
9703
|
"application/dssc+xml": ["xdssc"],
|
|
@@ -10192,7 +9784,14 @@ const types = {
|
|
|
10192
9784
|
"application/oebps-package+xml": ["opf"],
|
|
10193
9785
|
"application/ogg": ["ogx"],
|
|
10194
9786
|
"application/omdoc+xml": ["omdoc"],
|
|
10195
|
-
"application/onenote": [
|
|
9787
|
+
"application/onenote": [
|
|
9788
|
+
"onetoc",
|
|
9789
|
+
"onetoc2",
|
|
9790
|
+
"onetmp",
|
|
9791
|
+
"onepkg",
|
|
9792
|
+
"one",
|
|
9793
|
+
"onea"
|
|
9794
|
+
],
|
|
10196
9795
|
"application/oxps": ["oxps"],
|
|
10197
9796
|
"application/p2p-overlay+xml": ["relo"],
|
|
10198
9797
|
"application/patch-ops-error+xml": ["xer"],
|
|
@@ -10288,6 +9887,7 @@ const types = {
|
|
|
10288
9887
|
"application/yang": ["yang"],
|
|
10289
9888
|
"application/yin+xml": ["yin"],
|
|
10290
9889
|
"application/zip": ["zip"],
|
|
9890
|
+
"application/zip+dotlottie": ["lottie"],
|
|
10291
9891
|
"audio/3gpp": ["*3gpp"],
|
|
10292
9892
|
"audio/aac": ["adts", "aac"],
|
|
10293
9893
|
"audio/adpcm": ["adp"],
|
|
@@ -10296,7 +9896,7 @@ const types = {
|
|
|
10296
9896
|
"audio/midi": ["mid", "midi", "kar", "rmi"],
|
|
10297
9897
|
"audio/mobile-xmf": ["mxmf"],
|
|
10298
9898
|
"audio/mp3": ["*mp3"],
|
|
10299
|
-
"audio/mp4": ["m4a", "mp4a"],
|
|
9899
|
+
"audio/mp4": ["m4a", "mp4a", "m4b"],
|
|
10300
9900
|
"audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
|
|
10301
9901
|
"audio/ogg": ["oga", "ogg", "spx", "opus"],
|
|
10302
9902
|
"audio/s3m": ["s3m"],
|
|
@@ -10328,11 +9928,12 @@ const types = {
|
|
|
10328
9928
|
"image/heif": ["heif"],
|
|
10329
9929
|
"image/heif-sequence": ["heifs"],
|
|
10330
9930
|
"image/hej2k": ["hej2"],
|
|
10331
|
-
"image/hsj2": ["hsj2"],
|
|
10332
9931
|
"image/ief": ["ief"],
|
|
9932
|
+
"image/jaii": ["jaii"],
|
|
9933
|
+
"image/jais": ["jais"],
|
|
10333
9934
|
"image/jls": ["jls"],
|
|
10334
9935
|
"image/jp2": ["jp2", "jpg2"],
|
|
10335
|
-
"image/jpeg": ["
|
|
9936
|
+
"image/jpeg": ["jpg", "jpeg", "jpe"],
|
|
10336
9937
|
"image/jph": ["jph"],
|
|
10337
9938
|
"image/jphc": ["jhc"],
|
|
10338
9939
|
"image/jpm": ["jpm", "jpgm"],
|
|
@@ -10347,6 +9948,7 @@ const types = {
|
|
|
10347
9948
|
"image/jxss": ["jxss"],
|
|
10348
9949
|
"image/ktx": ["ktx"],
|
|
10349
9950
|
"image/ktx2": ["ktx2"],
|
|
9951
|
+
"image/pjpeg": ["jfif"],
|
|
10350
9952
|
"image/png": ["png"],
|
|
10351
9953
|
"image/sgi": ["sgi"],
|
|
10352
9954
|
"image/svg+xml": ["svg", "svgz"],
|
|
@@ -10360,7 +9962,7 @@ const types = {
|
|
|
10360
9962
|
"message/global-delivery-status": ["u8dsn"],
|
|
10361
9963
|
"message/global-disposition-notification": ["u8mdn"],
|
|
10362
9964
|
"message/global-headers": ["u8hdr"],
|
|
10363
|
-
"message/rfc822": ["eml", "mime"],
|
|
9965
|
+
"message/rfc822": ["eml", "mime", "mht", "mhtml"],
|
|
10364
9966
|
"model/3mf": ["3mf"],
|
|
10365
9967
|
"model/gltf+json": ["gltf"],
|
|
10366
9968
|
"model/gltf-binary": ["glb"],
|
|
@@ -10370,6 +9972,7 @@ const types = {
|
|
|
10370
9972
|
"model/mtl": ["mtl"],
|
|
10371
9973
|
"model/obj": ["obj"],
|
|
10372
9974
|
"model/prc": ["prc"],
|
|
9975
|
+
"model/step": ["step", "stp", "stpnc", "p21", "210"],
|
|
10373
9976
|
"model/step+xml": ["stpx"],
|
|
10374
9977
|
"model/step+zip": ["stpz"],
|
|
10375
9978
|
"model/step-xml+zip": ["stpxz"],
|
|
@@ -10475,8 +10078,8 @@ class Mime {
|
|
|
10475
10078
|
getType(path) {
|
|
10476
10079
|
if (typeof path !== "string")
|
|
10477
10080
|
return null;
|
|
10478
|
-
const last = path.replace(/^.*[/\\]
|
|
10479
|
-
const ext = last.replace(
|
|
10081
|
+
const last = path.replace(/^.*[/\\]/s, "").toLowerCase();
|
|
10082
|
+
const ext = last.replace(/^.*\./s, "").toLowerCase();
|
|
10480
10083
|
const hasPath = last.length < path.length;
|
|
10481
10084
|
const hasDot = ext.length < last.length - 1;
|
|
10482
10085
|
if (!hasDot && hasPath)
|
|
@@ -10735,8 +10338,8 @@ function splitPrefixSuffix(input, options = {}) {
|
|
|
10735
10338
|
];
|
|
10736
10339
|
}
|
|
10737
10340
|
const isDefinedNonNullAny = (v) => v !== void 0 && v !== null;
|
|
10738
|
-
|
|
10739
|
-
const TransmitterTypeSchema =
|
|
10341
|
+
anyType().refine((v) => isDefinedNonNullAny(v));
|
|
10342
|
+
const TransmitterTypeSchema = enumType([
|
|
10740
10343
|
"Internal",
|
|
10741
10344
|
"MatrixConnect",
|
|
10742
10345
|
"PullResponder",
|
|
@@ -10744,133 +10347,133 @@ const TransmitterTypeSchema = z.enum([
|
|
|
10744
10347
|
"SecureConnect",
|
|
10745
10348
|
"SwitchboardPush"
|
|
10746
10349
|
]);
|
|
10747
|
-
const TriggerTypeSchema =
|
|
10350
|
+
const TriggerTypeSchema = enumType(["PullResponder"]);
|
|
10748
10351
|
function AddFileInputSchema() {
|
|
10749
|
-
return
|
|
10750
|
-
document:
|
|
10751
|
-
documentType:
|
|
10752
|
-
id:
|
|
10753
|
-
name:
|
|
10754
|
-
parentFolder:
|
|
10755
|
-
synchronizationUnits:
|
|
10352
|
+
return objectType({
|
|
10353
|
+
document: unknownType().nullish(),
|
|
10354
|
+
documentType: stringType(),
|
|
10355
|
+
id: stringType(),
|
|
10356
|
+
name: stringType(),
|
|
10357
|
+
parentFolder: stringType().nullish(),
|
|
10358
|
+
synchronizationUnits: arrayType(SynchronizationUnitSchema())
|
|
10756
10359
|
});
|
|
10757
10360
|
}
|
|
10758
10361
|
function AddFolderInputSchema() {
|
|
10759
|
-
return
|
|
10760
|
-
id:
|
|
10761
|
-
name:
|
|
10762
|
-
parentFolder:
|
|
10362
|
+
return objectType({
|
|
10363
|
+
id: stringType(),
|
|
10364
|
+
name: stringType(),
|
|
10365
|
+
parentFolder: stringType().nullish()
|
|
10763
10366
|
});
|
|
10764
10367
|
}
|
|
10765
10368
|
function AddListenerInputSchema() {
|
|
10766
|
-
return
|
|
10369
|
+
return objectType({
|
|
10767
10370
|
listener: ListenerSchema()
|
|
10768
10371
|
});
|
|
10769
10372
|
}
|
|
10770
10373
|
function AddTriggerInputSchema() {
|
|
10771
|
-
return
|
|
10374
|
+
return objectType({
|
|
10772
10375
|
trigger: TriggerSchema()
|
|
10773
10376
|
});
|
|
10774
10377
|
}
|
|
10775
10378
|
function CopyNodeInputSchema() {
|
|
10776
|
-
return
|
|
10777
|
-
srcId:
|
|
10778
|
-
synchronizationUnits:
|
|
10779
|
-
targetId:
|
|
10780
|
-
targetName:
|
|
10781
|
-
targetParentFolder:
|
|
10379
|
+
return objectType({
|
|
10380
|
+
srcId: stringType(),
|
|
10381
|
+
synchronizationUnits: arrayType(SynchronizationUnitSchema()).nullish(),
|
|
10382
|
+
targetId: stringType(),
|
|
10383
|
+
targetName: stringType().nullish(),
|
|
10384
|
+
targetParentFolder: stringType().nullish()
|
|
10782
10385
|
});
|
|
10783
10386
|
}
|
|
10784
10387
|
function DeleteNodeInputSchema() {
|
|
10785
|
-
return
|
|
10786
|
-
id:
|
|
10388
|
+
return objectType({
|
|
10389
|
+
id: stringType()
|
|
10787
10390
|
});
|
|
10788
10391
|
}
|
|
10789
10392
|
function ListenerSchema() {
|
|
10790
|
-
return
|
|
10791
|
-
__typename:
|
|
10792
|
-
block:
|
|
10393
|
+
return objectType({
|
|
10394
|
+
__typename: literalType("Listener").optional(),
|
|
10395
|
+
block: booleanType(),
|
|
10793
10396
|
callInfo: ListenerCallInfoSchema().nullable(),
|
|
10794
10397
|
filter: ListenerFilterSchema(),
|
|
10795
|
-
label:
|
|
10796
|
-
listenerId:
|
|
10797
|
-
system:
|
|
10398
|
+
label: stringType().nullable(),
|
|
10399
|
+
listenerId: stringType(),
|
|
10400
|
+
system: booleanType()
|
|
10798
10401
|
});
|
|
10799
10402
|
}
|
|
10800
10403
|
function ListenerCallInfoSchema() {
|
|
10801
|
-
return
|
|
10802
|
-
__typename:
|
|
10803
|
-
data:
|
|
10804
|
-
name:
|
|
10404
|
+
return objectType({
|
|
10405
|
+
__typename: literalType("ListenerCallInfo").optional(),
|
|
10406
|
+
data: stringType().nullable(),
|
|
10407
|
+
name: stringType().nullable(),
|
|
10805
10408
|
transmitterType: TransmitterTypeSchema.nullable()
|
|
10806
10409
|
});
|
|
10807
10410
|
}
|
|
10808
10411
|
function ListenerFilterSchema() {
|
|
10809
|
-
return
|
|
10810
|
-
__typename:
|
|
10811
|
-
branch:
|
|
10812
|
-
documentId:
|
|
10813
|
-
documentType:
|
|
10814
|
-
scope:
|
|
10412
|
+
return objectType({
|
|
10413
|
+
__typename: literalType("ListenerFilter").optional(),
|
|
10414
|
+
branch: arrayType(stringType()).nullable(),
|
|
10415
|
+
documentId: arrayType(stringType()).nullable(),
|
|
10416
|
+
documentType: arrayType(stringType()),
|
|
10417
|
+
scope: arrayType(stringType()).nullable()
|
|
10815
10418
|
});
|
|
10816
10419
|
}
|
|
10817
10420
|
function MoveNodeInputSchema() {
|
|
10818
|
-
return
|
|
10819
|
-
srcFolder:
|
|
10820
|
-
targetParentFolder:
|
|
10421
|
+
return objectType({
|
|
10422
|
+
srcFolder: stringType(),
|
|
10423
|
+
targetParentFolder: stringType().nullish()
|
|
10821
10424
|
});
|
|
10822
10425
|
}
|
|
10823
10426
|
function PullResponderTriggerDataSchema() {
|
|
10824
|
-
return
|
|
10825
|
-
__typename:
|
|
10826
|
-
interval:
|
|
10827
|
-
listenerId:
|
|
10828
|
-
url:
|
|
10427
|
+
return objectType({
|
|
10428
|
+
__typename: literalType("PullResponderTriggerData").optional(),
|
|
10429
|
+
interval: stringType(),
|
|
10430
|
+
listenerId: stringType(),
|
|
10431
|
+
url: stringType()
|
|
10829
10432
|
});
|
|
10830
10433
|
}
|
|
10831
10434
|
function RemoveListenerInputSchema() {
|
|
10832
|
-
return
|
|
10833
|
-
listenerId:
|
|
10435
|
+
return objectType({
|
|
10436
|
+
listenerId: stringType()
|
|
10834
10437
|
});
|
|
10835
10438
|
}
|
|
10836
10439
|
function RemoveTriggerInputSchema() {
|
|
10837
|
-
return
|
|
10838
|
-
triggerId:
|
|
10440
|
+
return objectType({
|
|
10441
|
+
triggerId: stringType()
|
|
10839
10442
|
});
|
|
10840
10443
|
}
|
|
10841
10444
|
function SetAvailableOfflineInputSchema() {
|
|
10842
|
-
return
|
|
10843
|
-
availableOffline:
|
|
10445
|
+
return objectType({
|
|
10446
|
+
availableOffline: booleanType()
|
|
10844
10447
|
});
|
|
10845
10448
|
}
|
|
10846
10449
|
function SetDriveIconInputSchema() {
|
|
10847
|
-
return
|
|
10848
|
-
icon:
|
|
10450
|
+
return objectType({
|
|
10451
|
+
icon: stringType()
|
|
10849
10452
|
});
|
|
10850
10453
|
}
|
|
10851
10454
|
function SetDriveNameInputSchema() {
|
|
10852
|
-
return
|
|
10853
|
-
name:
|
|
10455
|
+
return objectType({
|
|
10456
|
+
name: stringType()
|
|
10854
10457
|
});
|
|
10855
10458
|
}
|
|
10856
10459
|
function SetSharingTypeInputSchema() {
|
|
10857
|
-
return
|
|
10858
|
-
type:
|
|
10460
|
+
return objectType({
|
|
10461
|
+
type: stringType()
|
|
10859
10462
|
});
|
|
10860
10463
|
}
|
|
10861
10464
|
function SynchronizationUnitSchema() {
|
|
10862
|
-
return
|
|
10863
|
-
__typename:
|
|
10864
|
-
branch:
|
|
10865
|
-
scope:
|
|
10866
|
-
syncId:
|
|
10465
|
+
return objectType({
|
|
10466
|
+
__typename: literalType("SynchronizationUnit").optional(),
|
|
10467
|
+
branch: stringType(),
|
|
10468
|
+
scope: stringType(),
|
|
10469
|
+
syncId: stringType()
|
|
10867
10470
|
});
|
|
10868
10471
|
}
|
|
10869
10472
|
function TriggerSchema() {
|
|
10870
|
-
return
|
|
10871
|
-
__typename:
|
|
10473
|
+
return objectType({
|
|
10474
|
+
__typename: literalType("Trigger").optional(),
|
|
10872
10475
|
data: TriggerDataSchema().nullable(),
|
|
10873
|
-
id:
|
|
10476
|
+
id: stringType(),
|
|
10874
10477
|
type: TriggerTypeSchema
|
|
10875
10478
|
});
|
|
10876
10479
|
}
|
|
@@ -10878,18 +10481,18 @@ function TriggerDataSchema() {
|
|
|
10878
10481
|
return PullResponderTriggerDataSchema();
|
|
10879
10482
|
}
|
|
10880
10483
|
function UpdateFileInputSchema() {
|
|
10881
|
-
return
|
|
10882
|
-
documentType:
|
|
10883
|
-
id:
|
|
10884
|
-
name:
|
|
10885
|
-
parentFolder:
|
|
10484
|
+
return objectType({
|
|
10485
|
+
documentType: stringType().nullish(),
|
|
10486
|
+
id: stringType(),
|
|
10487
|
+
name: stringType().nullish(),
|
|
10488
|
+
parentFolder: stringType().nullish()
|
|
10886
10489
|
});
|
|
10887
10490
|
}
|
|
10888
10491
|
function UpdateNodeInputSchema() {
|
|
10889
|
-
return
|
|
10890
|
-
id:
|
|
10891
|
-
name:
|
|
10892
|
-
parentFolder:
|
|
10492
|
+
return objectType({
|
|
10493
|
+
id: stringType(),
|
|
10494
|
+
name: stringType().nullish(),
|
|
10495
|
+
parentFolder: stringType().nullish()
|
|
10893
10496
|
});
|
|
10894
10497
|
}
|
|
10895
10498
|
const reducer$2 = {
|
|
@@ -28149,7 +27752,7 @@ const CLOUD = "CLOUD";
|
|
|
28149
27752
|
const PUBLIC = "PUBLIC";
|
|
28150
27753
|
const name = "@powerhousedao/connect";
|
|
28151
27754
|
const productName = "Powerhouse-Connect";
|
|
28152
|
-
const version$1 = "1.0.
|
|
27755
|
+
const version$1 = "1.0.28-dev.1";
|
|
28153
27756
|
const description = "Powerhouse Connect";
|
|
28154
27757
|
const main = "./dist/index.html";
|
|
28155
27758
|
const type = "module";
|
|
@@ -31324,7 +30927,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31324
30927
|
} else {
|
|
31325
30928
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31326
30929
|
}
|
|
31327
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
30930
|
+
const App = lazy(() => __vitePreload(() => import("./app-QOwargCw.js").then((n) => n.bJ), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31328
30931
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31329
30932
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31330
30933
|
__proto__: null,
|
|
@@ -31430,58 +31033,64 @@ export {
|
|
|
31430
31033
|
isSpecifiedDirective as b2,
|
|
31431
31034
|
isSpecifiedScalarType as b3,
|
|
31432
31035
|
isIntrospectionType as b4,
|
|
31433
|
-
|
|
31434
|
-
|
|
31435
|
-
|
|
31436
|
-
|
|
31437
|
-
|
|
31438
|
-
|
|
31439
|
-
|
|
31440
|
-
|
|
31441
|
-
|
|
31442
|
-
|
|
31443
|
-
|
|
31444
|
-
|
|
31445
|
-
|
|
31446
|
-
|
|
31447
|
-
|
|
31448
|
-
|
|
31449
|
-
|
|
31450
|
-
|
|
31451
|
-
|
|
31452
|
-
|
|
31453
|
-
|
|
31454
|
-
|
|
31455
|
-
|
|
31456
|
-
|
|
31457
|
-
|
|
31458
|
-
|
|
31459
|
-
|
|
31460
|
-
|
|
31461
|
-
|
|
31462
|
-
|
|
31463
|
-
|
|
31464
|
-
|
|
31465
|
-
|
|
31466
|
-
|
|
31467
|
-
|
|
31468
|
-
|
|
31469
|
-
|
|
31470
|
-
|
|
31471
|
-
|
|
31472
|
-
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31036
|
+
GraphQLScalarType as b5,
|
|
31037
|
+
numberType as b6,
|
|
31038
|
+
lazyType as b7,
|
|
31039
|
+
unionType as b8,
|
|
31040
|
+
booleanType as b9,
|
|
31041
|
+
visit as bA,
|
|
31042
|
+
snakeCase as bB,
|
|
31043
|
+
constantCase as bC,
|
|
31044
|
+
literalType as bD,
|
|
31045
|
+
isAbstractType as bE,
|
|
31046
|
+
BREAK as bF,
|
|
31047
|
+
SchemaMetaFieldDef as bG,
|
|
31048
|
+
TypeMetaFieldDef as bH,
|
|
31049
|
+
TypeNameMetaFieldDef as bI,
|
|
31050
|
+
isCompositeType as bJ,
|
|
31051
|
+
isOutputType as bK,
|
|
31052
|
+
isInputType as bL,
|
|
31053
|
+
assertAbstractType as bM,
|
|
31054
|
+
doTypesOverlap as bN,
|
|
31055
|
+
DirectiveLocation as bO,
|
|
31056
|
+
NoUnusedFragmentsRule as bP,
|
|
31057
|
+
ExecutableDefinitionsRule as bQ,
|
|
31058
|
+
validateSchema as bR,
|
|
31059
|
+
sentenceCase as bS,
|
|
31060
|
+
garbageCollect as bT,
|
|
31061
|
+
sortOperations as bU,
|
|
31062
|
+
LZString as bV,
|
|
31063
|
+
undo as bW,
|
|
31064
|
+
redo as bX,
|
|
31065
|
+
openUrl as bY,
|
|
31066
|
+
useDocumentDispatch as bZ,
|
|
31067
|
+
appLoader as b_,
|
|
31068
|
+
nullType as ba,
|
|
31069
|
+
arrayType as bb,
|
|
31070
|
+
specifiedRules as bc,
|
|
31071
|
+
GraphQLID as bd,
|
|
31072
|
+
GraphQLBoolean as be,
|
|
31073
|
+
GraphQLString as bf,
|
|
31074
|
+
GraphQLFloat as bg,
|
|
31075
|
+
GraphQLInt as bh,
|
|
31076
|
+
GraphQLDirective as bi,
|
|
31077
|
+
GraphQLObjectType as bj,
|
|
31078
|
+
GraphQLInterfaceType as bk,
|
|
31079
|
+
GraphQLUnionType as bl,
|
|
31080
|
+
GraphQLInputObjectType as bm,
|
|
31081
|
+
GraphQLEnumType as bn,
|
|
31082
|
+
isListType as bo,
|
|
31083
|
+
GraphQLList as bp,
|
|
31084
|
+
isNonNullType as bq,
|
|
31085
|
+
GraphQLNonNull as br,
|
|
31086
|
+
isNamedType as bs,
|
|
31087
|
+
getNullableType as bt,
|
|
31088
|
+
isLeafType as bu,
|
|
31089
|
+
GraphQLSchema as bv,
|
|
31090
|
+
buildSchema as bw,
|
|
31091
|
+
buildASTSchema as bx,
|
|
31092
|
+
parse as by,
|
|
31093
|
+
validate as bz,
|
|
31485
31094
|
createAction as c,
|
|
31486
31095
|
ReorderModuleOperationsInputSchema as d,
|
|
31487
31096
|
DeleteOperationInputSchema as e,
|
|
@@ -31507,4 +31116,4 @@ export {
|
|
|
31507
31116
|
ReorderModulesInputSchema as y,
|
|
31508
31117
|
DeleteModuleInputSchema as z
|
|
31509
31118
|
};
|
|
31510
|
-
//# sourceMappingURL=app-loader-
|
|
31119
|
+
//# sourceMappingURL=app-loader-BBORG2Po.js.map
|