@strapi/plugin-users-permissions 5.4.2 → 5.5.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/admin/src/components/Permissions/PermissionRow/SubCategory.jsx +1 -1
- package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +2 -2
- package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +1 -1
- package/dist/_chunks/{index-Bzdgm3YY.js → index-C3iYythL.js} +22 -17
- package/dist/_chunks/{index-Bzdgm3YY.js.map → index-C3iYythL.js.map} +1 -1
- package/dist/_chunks/{index-og30lh2q.mjs → index-CKD-Sp9s.mjs} +3 -3
- package/dist/_chunks/{index-og30lh2q.mjs.map → index-CKD-Sp9s.mjs.map} +1 -1
- package/dist/_chunks/{index-CH7DTQRg.js → index-CLDK4fmy.js} +3 -4
- package/dist/_chunks/{index-CH7DTQRg.js.map → index-CLDK4fmy.js.map} +1 -1
- package/dist/_chunks/{index-DQjBkqk6.mjs → index-CsqdN7DN.mjs} +4 -4
- package/dist/_chunks/index-CsqdN7DN.mjs.map +1 -0
- package/dist/_chunks/{index-DkLfQU9x.js → index-CuvIhX1e.js} +8 -9
- package/dist/_chunks/{index-DkLfQU9x.js.map → index-CuvIhX1e.js.map} +1 -1
- package/dist/_chunks/{index-B31GwOBY.js → index-D0wS054s.js} +5 -6
- package/dist/_chunks/index-D0wS054s.js.map +1 -0
- package/dist/_chunks/{index-rj9z5xOr.mjs → index-DO8lvE2K.mjs} +5 -5
- package/dist/_chunks/index-DO8lvE2K.mjs.map +1 -0
- package/dist/_chunks/{index-DS3khL98.js → index-LdWx-SAe.js} +7 -8
- package/dist/_chunks/index-LdWx-SAe.js.map +1 -0
- package/dist/_chunks/{index-YiI4HHBF.mjs → index-O1ma7Zwx.mjs} +2 -2
- package/dist/_chunks/{index-YiI4HHBF.mjs.map → index-O1ma7Zwx.mjs.map} +1 -1
- package/dist/_chunks/{index-BnX71_B4-BwTVUy-u.js → index-UvlzzkEs-Be9Y8EXt.js} +236 -359
- package/dist/_chunks/index-UvlzzkEs-Be9Y8EXt.js.map +1 -0
- package/dist/_chunks/{index-BnX71_B4-BeiPUoDw.mjs → index-UvlzzkEs-CkJgvpmE.mjs} +235 -357
- package/dist/_chunks/index-UvlzzkEs-CkJgvpmE.mjs.map +1 -0
- package/dist/_chunks/{index-Dby0-3V3.mjs → index-uRurQtZZ.mjs} +22 -17
- package/dist/_chunks/{index-Dby0-3V3.mjs.map → index-uRurQtZZ.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +7 -8
- package/server/graphql/types/me.js +1 -0
- package/dist/_chunks/index-B31GwOBY.js.map +0 -1
- package/dist/_chunks/index-BnX71_B4-BeiPUoDw.mjs.map +0 -1
- package/dist/_chunks/index-BnX71_B4-BwTVUy-u.js.map +0 -1
- package/dist/_chunks/index-DQjBkqk6.mjs.map +0 -1
- package/dist/_chunks/index-DS3khL98.js.map +0 -1
- package/dist/_chunks/index-rj9z5xOr.mjs.map +0 -1
|
@@ -10,6 +10,7 @@ const React = require("react");
|
|
|
10
10
|
const reactIntl = require("react-intl");
|
|
11
11
|
const icons = require("@strapi/icons");
|
|
12
12
|
require("@strapi/icons/symbols");
|
|
13
|
+
require("lodash/trimEnd");
|
|
13
14
|
const createNextState2 = require("immer");
|
|
14
15
|
const reactRedux = require("react-redux");
|
|
15
16
|
const pipe = require("lodash/fp/pipe");
|
|
@@ -29,8 +30,7 @@ require("formik");
|
|
|
29
30
|
require("lodash/throttle");
|
|
30
31
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
31
32
|
function _interopNamespace(e) {
|
|
32
|
-
if (e && e.__esModule)
|
|
33
|
-
return e;
|
|
33
|
+
if (e && e.__esModule) return e;
|
|
34
34
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
35
35
|
if (e) {
|
|
36
36
|
for (const k in e) {
|
|
@@ -58,8 +58,7 @@ function getDefaultExportFromCjs(x) {
|
|
|
58
58
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
59
59
|
}
|
|
60
60
|
function getAugmentedNamespace(n) {
|
|
61
|
-
if (n.__esModule)
|
|
62
|
-
return n;
|
|
61
|
+
if (n.__esModule) return n;
|
|
63
62
|
var f2 = n.default;
|
|
64
63
|
if (typeof f2 == "function") {
|
|
65
64
|
var a2 = function a3() {
|
|
@@ -69,8 +68,7 @@ function getAugmentedNamespace(n) {
|
|
|
69
68
|
return f2.apply(this, arguments);
|
|
70
69
|
};
|
|
71
70
|
a2.prototype = f2.prototype;
|
|
72
|
-
} else
|
|
73
|
-
a2 = {};
|
|
71
|
+
} else a2 = {};
|
|
74
72
|
Object.defineProperty(a2, "__esModule", { value: true });
|
|
75
73
|
Object.keys(n).forEach(function(k) {
|
|
76
74
|
var d2 = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -153,11 +151,12 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
153
151
|
return hasSymbolSham();
|
|
154
152
|
};
|
|
155
153
|
var test$1 = {
|
|
154
|
+
__proto__: null,
|
|
156
155
|
foo: {}
|
|
157
156
|
};
|
|
158
157
|
var $Object = Object;
|
|
159
158
|
var hasProto$1 = function hasProto() {
|
|
160
|
-
return { __proto__: test$1 }.foo === test$1.foo && !(
|
|
159
|
+
return { __proto__: test$1 }.foo === test$1.foo && !(test$1 instanceof $Object);
|
|
161
160
|
};
|
|
162
161
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
163
162
|
var toStr$1 = Object.prototype.toString;
|
|
@@ -544,8 +543,7 @@ var callBind$1 = { exports: {} };
|
|
|
544
543
|
var esDefineProperty;
|
|
545
544
|
var hasRequiredEsDefineProperty;
|
|
546
545
|
function requireEsDefineProperty() {
|
|
547
|
-
if (hasRequiredEsDefineProperty)
|
|
548
|
-
return esDefineProperty;
|
|
546
|
+
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
549
547
|
hasRequiredEsDefineProperty = 1;
|
|
550
548
|
var GetIntrinsic3 = getIntrinsic;
|
|
551
549
|
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
@@ -2014,8 +2012,7 @@ var ActionTypes = {
|
|
|
2014
2012
|
}
|
|
2015
2013
|
};
|
|
2016
2014
|
function isPlainObject$3(obj) {
|
|
2017
|
-
if (typeof obj !== "object" || obj === null)
|
|
2018
|
-
return false;
|
|
2015
|
+
if (typeof obj !== "object" || obj === null) return false;
|
|
2019
2016
|
var proto = obj;
|
|
2020
2017
|
while (Object.getPrototypeOf(proto) !== null) {
|
|
2021
2018
|
proto = Object.getPrototypeOf(proto);
|
|
@@ -2023,10 +2020,8 @@ function isPlainObject$3(obj) {
|
|
|
2023
2020
|
return Object.getPrototypeOf(obj) === proto;
|
|
2024
2021
|
}
|
|
2025
2022
|
function miniKindOf(val) {
|
|
2026
|
-
if (val === void 0)
|
|
2027
|
-
|
|
2028
|
-
if (val === null)
|
|
2029
|
-
return "null";
|
|
2023
|
+
if (val === void 0) return "undefined";
|
|
2024
|
+
if (val === null) return "null";
|
|
2030
2025
|
var type2 = typeof val;
|
|
2031
2026
|
switch (type2) {
|
|
2032
2027
|
case "boolean":
|
|
@@ -2037,12 +2032,9 @@ function miniKindOf(val) {
|
|
|
2037
2032
|
return type2;
|
|
2038
2033
|
}
|
|
2039
2034
|
}
|
|
2040
|
-
if (Array.isArray(val))
|
|
2041
|
-
|
|
2042
|
-
if (
|
|
2043
|
-
return "date";
|
|
2044
|
-
if (isError(val))
|
|
2045
|
-
return "error";
|
|
2035
|
+
if (Array.isArray(val)) return "array";
|
|
2036
|
+
if (isDate$1(val)) return "date";
|
|
2037
|
+
if (isError(val)) return "error";
|
|
2046
2038
|
var constructorName = ctorName(val);
|
|
2047
2039
|
switch (constructorName) {
|
|
2048
2040
|
case "Symbol":
|
|
@@ -2062,8 +2054,7 @@ function isError(val) {
|
|
|
2062
2054
|
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
2063
2055
|
}
|
|
2064
2056
|
function isDate$1(val) {
|
|
2065
|
-
if (val instanceof Date)
|
|
2066
|
-
return true;
|
|
2057
|
+
if (val instanceof Date) return true;
|
|
2067
2058
|
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
2068
2059
|
}
|
|
2069
2060
|
function kindOf$1(val) {
|
|
@@ -2097,8 +2088,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|
|
2097
2088
|
unexpectedKeys.forEach(function(key) {
|
|
2098
2089
|
unexpectedKeyCache[key] = true;
|
|
2099
2090
|
});
|
|
2100
|
-
if (action && action.type === ActionTypes.REPLACE)
|
|
2101
|
-
return;
|
|
2091
|
+
if (action && action.type === ActionTypes.REPLACE) return;
|
|
2102
2092
|
if (unexpectedKeys.length > 0) {
|
|
2103
2093
|
return "Unexpected " + (unexpectedKeys.length > 1 ? "keys" : "key") + " " + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.');
|
|
2104
2094
|
}
|
|
@@ -2358,9 +2348,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2358
2348
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b2) {
|
|
2359
2349
|
d3.__proto__ = b2;
|
|
2360
2350
|
} || function(d3, b2) {
|
|
2361
|
-
for (var p in b2)
|
|
2362
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
2363
|
-
d3[p] = b2[p];
|
|
2351
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d3[p] = b2[p];
|
|
2364
2352
|
};
|
|
2365
2353
|
return extendStatics(d2, b);
|
|
2366
2354
|
};
|
|
@@ -2376,8 +2364,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2376
2364
|
}();
|
|
2377
2365
|
var __generator$1 = function(thisArg, body) {
|
|
2378
2366
|
var _ = { label: 0, sent: function() {
|
|
2379
|
-
if (t[0] & 1)
|
|
2380
|
-
throw t[1];
|
|
2367
|
+
if (t[0] & 1) throw t[1];
|
|
2381
2368
|
return t[1];
|
|
2382
2369
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
2383
2370
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -2389,64 +2376,58 @@ var __generator$1 = function(thisArg, body) {
|
|
|
2389
2376
|
};
|
|
2390
2377
|
}
|
|
2391
2378
|
function step(op) {
|
|
2392
|
-
if (f2)
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2379
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
2380
|
+
while (_) try {
|
|
2381
|
+
if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
2382
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
2383
|
+
switch (op[0]) {
|
|
2384
|
+
case 0:
|
|
2385
|
+
case 1:
|
|
2386
|
+
t = op;
|
|
2387
|
+
break;
|
|
2388
|
+
case 4:
|
|
2389
|
+
_.label++;
|
|
2390
|
+
return { value: op[1], done: false };
|
|
2391
|
+
case 5:
|
|
2392
|
+
_.label++;
|
|
2393
|
+
y = op[1];
|
|
2394
|
+
op = [0];
|
|
2395
|
+
continue;
|
|
2396
|
+
case 7:
|
|
2397
|
+
op = _.ops.pop();
|
|
2398
|
+
_.trys.pop();
|
|
2399
|
+
continue;
|
|
2400
|
+
default:
|
|
2401
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2402
|
+
_ = 0;
|
|
2403
|
+
continue;
|
|
2404
|
+
}
|
|
2405
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2406
|
+
_.label = op[1];
|
|
2407
|
+
break;
|
|
2408
|
+
}
|
|
2409
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
2410
|
+
_.label = t[1];
|
|
2403
2411
|
t = op;
|
|
2404
2412
|
break;
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
op = _.ops.pop();
|
|
2415
|
-
_.trys.pop();
|
|
2416
|
-
continue;
|
|
2417
|
-
default:
|
|
2418
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2419
|
-
_ = 0;
|
|
2420
|
-
continue;
|
|
2421
|
-
}
|
|
2422
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2423
|
-
_.label = op[1];
|
|
2424
|
-
break;
|
|
2425
|
-
}
|
|
2426
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
2427
|
-
_.label = t[1];
|
|
2428
|
-
t = op;
|
|
2429
|
-
break;
|
|
2430
|
-
}
|
|
2431
|
-
if (t && _.label < t[2]) {
|
|
2432
|
-
_.label = t[2];
|
|
2433
|
-
_.ops.push(op);
|
|
2434
|
-
break;
|
|
2435
|
-
}
|
|
2436
|
-
if (t[2])
|
|
2437
|
-
_.ops.pop();
|
|
2438
|
-
_.trys.pop();
|
|
2439
|
-
continue;
|
|
2440
|
-
}
|
|
2441
|
-
op = body.call(thisArg, _);
|
|
2442
|
-
} catch (e) {
|
|
2443
|
-
op = [6, e];
|
|
2444
|
-
y = 0;
|
|
2445
|
-
} finally {
|
|
2446
|
-
f2 = t = 0;
|
|
2413
|
+
}
|
|
2414
|
+
if (t && _.label < t[2]) {
|
|
2415
|
+
_.label = t[2];
|
|
2416
|
+
_.ops.push(op);
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
if (t[2]) _.ops.pop();
|
|
2420
|
+
_.trys.pop();
|
|
2421
|
+
continue;
|
|
2447
2422
|
}
|
|
2448
|
-
|
|
2449
|
-
|
|
2423
|
+
op = body.call(thisArg, _);
|
|
2424
|
+
} catch (e) {
|
|
2425
|
+
op = [6, e];
|
|
2426
|
+
y = 0;
|
|
2427
|
+
} finally {
|
|
2428
|
+
f2 = t = 0;
|
|
2429
|
+
}
|
|
2430
|
+
if (op[0] & 5) throw op[1];
|
|
2450
2431
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
2451
2432
|
}
|
|
2452
2433
|
};
|
|
@@ -2957,8 +2938,7 @@ var createAsyncThunk = function() {
|
|
|
2957
2938
|
case 0:
|
|
2958
2939
|
_c.trys.push([0, 4, , 5]);
|
|
2959
2940
|
conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState, extra });
|
|
2960
|
-
if (!isThenable$1(conditionResult))
|
|
2961
|
-
return [3, 2];
|
|
2941
|
+
if (!isThenable$1(conditionResult)) return [3, 2];
|
|
2962
2942
|
return [4, conditionResult];
|
|
2963
2943
|
case 1:
|
|
2964
2944
|
conditionResult = _c.sent();
|
|
@@ -3227,8 +3207,7 @@ typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "un
|
|
|
3227
3207
|
createNextState2.enableES5();
|
|
3228
3208
|
var __generator = function(thisArg, body) {
|
|
3229
3209
|
var _ = { label: 0, sent: function() {
|
|
3230
|
-
if (t[0] & 1)
|
|
3231
|
-
throw t[1];
|
|
3210
|
+
if (t[0] & 1) throw t[1];
|
|
3232
3211
|
return t[1];
|
|
3233
3212
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
3234
3213
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -3240,64 +3219,58 @@ var __generator = function(thisArg, body) {
|
|
|
3240
3219
|
};
|
|
3241
3220
|
}
|
|
3242
3221
|
function step(op) {
|
|
3243
|
-
if (f2)
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3222
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
3223
|
+
while (_) try {
|
|
3224
|
+
if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
3225
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
3226
|
+
switch (op[0]) {
|
|
3227
|
+
case 0:
|
|
3228
|
+
case 1:
|
|
3229
|
+
t = op;
|
|
3230
|
+
break;
|
|
3231
|
+
case 4:
|
|
3232
|
+
_.label++;
|
|
3233
|
+
return { value: op[1], done: false };
|
|
3234
|
+
case 5:
|
|
3235
|
+
_.label++;
|
|
3236
|
+
y = op[1];
|
|
3237
|
+
op = [0];
|
|
3238
|
+
continue;
|
|
3239
|
+
case 7:
|
|
3240
|
+
op = _.ops.pop();
|
|
3241
|
+
_.trys.pop();
|
|
3242
|
+
continue;
|
|
3243
|
+
default:
|
|
3244
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3245
|
+
_ = 0;
|
|
3246
|
+
continue;
|
|
3247
|
+
}
|
|
3248
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3249
|
+
_.label = op[1];
|
|
3250
|
+
break;
|
|
3251
|
+
}
|
|
3252
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
3253
|
+
_.label = t[1];
|
|
3254
3254
|
t = op;
|
|
3255
3255
|
break;
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
op = _.ops.pop();
|
|
3266
|
-
_.trys.pop();
|
|
3267
|
-
continue;
|
|
3268
|
-
default:
|
|
3269
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3270
|
-
_ = 0;
|
|
3271
|
-
continue;
|
|
3272
|
-
}
|
|
3273
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3274
|
-
_.label = op[1];
|
|
3275
|
-
break;
|
|
3276
|
-
}
|
|
3277
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
3278
|
-
_.label = t[1];
|
|
3279
|
-
t = op;
|
|
3280
|
-
break;
|
|
3281
|
-
}
|
|
3282
|
-
if (t && _.label < t[2]) {
|
|
3283
|
-
_.label = t[2];
|
|
3284
|
-
_.ops.push(op);
|
|
3285
|
-
break;
|
|
3286
|
-
}
|
|
3287
|
-
if (t[2])
|
|
3288
|
-
_.ops.pop();
|
|
3289
|
-
_.trys.pop();
|
|
3290
|
-
continue;
|
|
3291
|
-
}
|
|
3292
|
-
op = body.call(thisArg, _);
|
|
3293
|
-
} catch (e) {
|
|
3294
|
-
op = [6, e];
|
|
3295
|
-
y = 0;
|
|
3296
|
-
} finally {
|
|
3297
|
-
f2 = t = 0;
|
|
3256
|
+
}
|
|
3257
|
+
if (t && _.label < t[2]) {
|
|
3258
|
+
_.label = t[2];
|
|
3259
|
+
_.ops.push(op);
|
|
3260
|
+
break;
|
|
3261
|
+
}
|
|
3262
|
+
if (t[2]) _.ops.pop();
|
|
3263
|
+
_.trys.pop();
|
|
3264
|
+
continue;
|
|
3298
3265
|
}
|
|
3299
|
-
|
|
3300
|
-
|
|
3266
|
+
op = body.call(thisArg, _);
|
|
3267
|
+
} catch (e) {
|
|
3268
|
+
op = [6, e];
|
|
3269
|
+
y = 0;
|
|
3270
|
+
} finally {
|
|
3271
|
+
f2 = t = 0;
|
|
3272
|
+
}
|
|
3273
|
+
if (op[0] & 5) throw op[1];
|
|
3301
3274
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
3302
3275
|
}
|
|
3303
3276
|
};
|
|
@@ -3763,13 +3736,11 @@ function buildThunks(_j) {
|
|
|
3763
3736
|
forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0
|
|
3764
3737
|
};
|
|
3765
3738
|
forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0;
|
|
3766
|
-
if (!forceQueryFn)
|
|
3767
|
-
return [3, 2];
|
|
3739
|
+
if (!forceQueryFn) return [3, 2];
|
|
3768
3740
|
result = forceQueryFn();
|
|
3769
3741
|
return [3, 6];
|
|
3770
3742
|
case 2:
|
|
3771
|
-
if (!endpointDefinition.query)
|
|
3772
|
-
return [3, 4];
|
|
3743
|
+
if (!endpointDefinition.query) return [3, 4];
|
|
3773
3744
|
return [4, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)];
|
|
3774
3745
|
case 3:
|
|
3775
3746
|
result = _r.sent();
|
|
@@ -3821,8 +3792,7 @@ function buildThunks(_j) {
|
|
|
3821
3792
|
case 8:
|
|
3822
3793
|
error_1 = _r.sent();
|
|
3823
3794
|
catchedError = error_1;
|
|
3824
|
-
if (!(catchedError instanceof HandledError))
|
|
3825
|
-
return [3, 12];
|
|
3795
|
+
if (!(catchedError instanceof HandledError)) return [3, 12];
|
|
3826
3796
|
transformErrorResponse = defaultTransformResponse;
|
|
3827
3797
|
if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {
|
|
3828
3798
|
transformErrorResponse = endpointDefinition.transformErrorResponse;
|
|
@@ -4061,8 +4031,7 @@ function buildSlice(_j) {
|
|
|
4061
4031
|
}).addCase(queryThunk.rejected, function(draft, _j2) {
|
|
4062
4032
|
var _k2 = _j2.meta, condition = _k2.condition, arg = _k2.arg, requestId = _k2.requestId, error = _j2.error, payload = _j2.payload;
|
|
4063
4033
|
updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) {
|
|
4064
|
-
if (condition)
|
|
4065
|
-
;
|
|
4034
|
+
if (condition) ;
|
|
4066
4035
|
else {
|
|
4067
4036
|
if (substate.requestId !== requestId)
|
|
4068
4037
|
return;
|
|
@@ -6009,8 +5978,7 @@ function findKey(obj, key) {
|
|
|
6009
5978
|
return null;
|
|
6010
5979
|
}
|
|
6011
5980
|
const _global = (() => {
|
|
6012
|
-
if (typeof globalThis !== "undefined")
|
|
6013
|
-
return globalThis;
|
|
5981
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
6014
5982
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
6015
5983
|
})();
|
|
6016
5984
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
@@ -6064,8 +6032,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
|
6064
6032
|
let prop;
|
|
6065
6033
|
const merged = {};
|
|
6066
6034
|
destObj = destObj || {};
|
|
6067
|
-
if (sourceObj == null)
|
|
6068
|
-
return destObj;
|
|
6035
|
+
if (sourceObj == null) return destObj;
|
|
6069
6036
|
do {
|
|
6070
6037
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
6071
6038
|
i = props.length;
|
|
@@ -6090,13 +6057,10 @@ const endsWith = (str, searchString, position) => {
|
|
|
6090
6057
|
return lastIndex !== -1 && lastIndex === position;
|
|
6091
6058
|
};
|
|
6092
6059
|
const toArray = (thing) => {
|
|
6093
|
-
if (!thing)
|
|
6094
|
-
|
|
6095
|
-
if (isArray(thing))
|
|
6096
|
-
return thing;
|
|
6060
|
+
if (!thing) return null;
|
|
6061
|
+
if (isArray(thing)) return thing;
|
|
6097
6062
|
let i = thing.length;
|
|
6098
|
-
if (!isNumber(i))
|
|
6099
|
-
return null;
|
|
6063
|
+
if (!isNumber(i)) return null;
|
|
6100
6064
|
const arr = new Array(i);
|
|
6101
6065
|
while (i-- > 0) {
|
|
6102
6066
|
arr[i] = thing[i];
|
|
@@ -6153,8 +6117,7 @@ const freezeMethods = (obj) => {
|
|
|
6153
6117
|
return false;
|
|
6154
6118
|
}
|
|
6155
6119
|
const value = obj[name];
|
|
6156
|
-
if (!isFunction(value))
|
|
6157
|
-
return;
|
|
6120
|
+
if (!isFunction(value)) return;
|
|
6158
6121
|
descriptor.enumerable = false;
|
|
6159
6122
|
if ("writable" in descriptor) {
|
|
6160
6123
|
descriptor.writable = false;
|
|
@@ -6381,8 +6344,7 @@ function removeBrackets(key) {
|
|
|
6381
6344
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
6382
6345
|
}
|
|
6383
6346
|
function renderKey(path, key, dots) {
|
|
6384
|
-
if (!path)
|
|
6385
|
-
return key;
|
|
6347
|
+
if (!path) return key;
|
|
6386
6348
|
return path.concat(key).map(function each(token, i) {
|
|
6387
6349
|
token = removeBrackets(token);
|
|
6388
6350
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -6416,8 +6378,7 @@ function toFormData(obj, formData, options) {
|
|
|
6416
6378
|
throw new TypeError("visitor must be a function");
|
|
6417
6379
|
}
|
|
6418
6380
|
function convertValue(value) {
|
|
6419
|
-
if (value === null)
|
|
6420
|
-
return "";
|
|
6381
|
+
if (value === null) return "";
|
|
6421
6382
|
if (utils$1.isDate(value)) {
|
|
6422
6383
|
return value.toISOString();
|
|
6423
6384
|
}
|
|
@@ -6460,8 +6421,7 @@ function toFormData(obj, formData, options) {
|
|
|
6460
6421
|
isVisitable
|
|
6461
6422
|
});
|
|
6462
6423
|
function build(value, path) {
|
|
6463
|
-
if (utils$1.isUndefined(value))
|
|
6464
|
-
return;
|
|
6424
|
+
if (utils$1.isUndefined(value)) return;
|
|
6465
6425
|
if (stack.indexOf(value) !== -1) {
|
|
6466
6426
|
throw Error("Circular reference detected in " + path.join("."));
|
|
6467
6427
|
}
|
|
@@ -6669,8 +6629,7 @@ function arrayToObject2(arr) {
|
|
|
6669
6629
|
function formDataToJSON(formData) {
|
|
6670
6630
|
function buildPath(path, value, target, index) {
|
|
6671
6631
|
let name = path[index++];
|
|
6672
|
-
if (name === "__proto__")
|
|
6673
|
-
return true;
|
|
6632
|
+
if (name === "__proto__") return true;
|
|
6674
6633
|
const isNumericKey = Number.isFinite(+name);
|
|
6675
6634
|
const isLast = index >= path.length;
|
|
6676
6635
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -6711,7 +6670,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
6711
6670
|
}
|
|
6712
6671
|
}
|
|
6713
6672
|
}
|
|
6714
|
-
return (
|
|
6673
|
+
return (0, JSON.stringify)(rawValue);
|
|
6715
6674
|
}
|
|
6716
6675
|
const defaults = {
|
|
6717
6676
|
transitional: transitionalDefaults,
|
|
@@ -6876,8 +6835,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
|
6876
6835
|
if (isHeaderNameFilter) {
|
|
6877
6836
|
value = header;
|
|
6878
6837
|
}
|
|
6879
|
-
if (!utils$1.isString(value))
|
|
6880
|
-
return;
|
|
6838
|
+
if (!utils$1.isString(value)) return;
|
|
6881
6839
|
if (utils$1.isString(filter2)) {
|
|
6882
6840
|
return value.indexOf(filter2) !== -1;
|
|
6883
6841
|
}
|
|
@@ -7555,7 +7513,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
7555
7513
|
};
|
|
7556
7514
|
const streamChunk = function* (chunk, chunkSize) {
|
|
7557
7515
|
let len = chunk.byteLength;
|
|
7558
|
-
if (
|
|
7516
|
+
if (len < chunkSize) {
|
|
7559
7517
|
yield chunk;
|
|
7560
7518
|
return;
|
|
7561
7519
|
}
|
|
@@ -8094,8 +8052,7 @@ class CancelToken {
|
|
|
8094
8052
|
});
|
|
8095
8053
|
const token = this;
|
|
8096
8054
|
this.promise.then((cancel) => {
|
|
8097
|
-
if (!token._listeners)
|
|
8098
|
-
return;
|
|
8055
|
+
if (!token._listeners) return;
|
|
8099
8056
|
let i = token._listeners.length;
|
|
8100
8057
|
while (i-- > 0) {
|
|
8101
8058
|
token._listeners[i](cancel);
|
|
@@ -8289,41 +8246,32 @@ var scheduler_production_min = {};
|
|
|
8289
8246
|
*/
|
|
8290
8247
|
var hasRequiredScheduler_production_min;
|
|
8291
8248
|
function requireScheduler_production_min() {
|
|
8292
|
-
if (hasRequiredScheduler_production_min)
|
|
8293
|
-
return scheduler_production_min;
|
|
8249
|
+
if (hasRequiredScheduler_production_min) return scheduler_production_min;
|
|
8294
8250
|
hasRequiredScheduler_production_min = 1;
|
|
8295
8251
|
(function(exports2) {
|
|
8296
8252
|
function f2(a2, b) {
|
|
8297
8253
|
var c = a2.length;
|
|
8298
8254
|
a2.push(b);
|
|
8299
|
-
a:
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
else
|
|
8305
|
-
break a;
|
|
8306
|
-
}
|
|
8255
|
+
a: for (; 0 < c; ) {
|
|
8256
|
+
var d2 = c - 1 >>> 1, e = a2[d2];
|
|
8257
|
+
if (0 < g(e, b)) a2[d2] = b, a2[c] = e, c = d2;
|
|
8258
|
+
else break a;
|
|
8259
|
+
}
|
|
8307
8260
|
}
|
|
8308
8261
|
function h2(a2) {
|
|
8309
8262
|
return 0 === a2.length ? null : a2[0];
|
|
8310
8263
|
}
|
|
8311
8264
|
function k(a2) {
|
|
8312
|
-
if (0 === a2.length)
|
|
8313
|
-
return null;
|
|
8265
|
+
if (0 === a2.length) return null;
|
|
8314
8266
|
var b = a2[0], c = a2.pop();
|
|
8315
8267
|
if (c !== b) {
|
|
8316
8268
|
a2[0] = c;
|
|
8317
|
-
a:
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
a2[d2] = x, a2[n] = c, d2 = n;
|
|
8324
|
-
else
|
|
8325
|
-
break a;
|
|
8326
|
-
}
|
|
8269
|
+
a: for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
|
|
8270
|
+
var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
|
|
8271
|
+
if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a2[d2] = x, a2[n] = c, d2 = n) : (a2[d2] = C, a2[m] = c, d2 = m);
|
|
8272
|
+
else if (n < e && 0 > g(x, c)) a2[d2] = x, a2[n] = c, d2 = n;
|
|
8273
|
+
else break a;
|
|
8274
|
+
}
|
|
8327
8275
|
}
|
|
8328
8276
|
return b;
|
|
8329
8277
|
}
|
|
@@ -8346,25 +8294,20 @@ function requireScheduler_production_min() {
|
|
|
8346
8294
|
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
8347
8295
|
function G(a2) {
|
|
8348
8296
|
for (var b = h2(t); null !== b; ) {
|
|
8349
|
-
if (null === b.callback)
|
|
8350
|
-
|
|
8351
|
-
else
|
|
8352
|
-
k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8353
|
-
else
|
|
8354
|
-
break;
|
|
8297
|
+
if (null === b.callback) k(t);
|
|
8298
|
+
else if (b.startTime <= a2) k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8299
|
+
else break;
|
|
8355
8300
|
b = h2(t);
|
|
8356
8301
|
}
|
|
8357
8302
|
}
|
|
8358
8303
|
function H(a2) {
|
|
8359
8304
|
B = false;
|
|
8360
8305
|
G(a2);
|
|
8361
|
-
if (!A)
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
null !== b && K(H, b.startTime - a2);
|
|
8367
|
-
}
|
|
8306
|
+
if (!A) if (null !== h2(r)) A = true, I(J);
|
|
8307
|
+
else {
|
|
8308
|
+
var b = h2(t);
|
|
8309
|
+
null !== b && K(H, b.startTime - a2);
|
|
8310
|
+
}
|
|
8368
8311
|
}
|
|
8369
8312
|
function J(a2, b) {
|
|
8370
8313
|
A = false;
|
|
@@ -8382,12 +8325,10 @@ function requireScheduler_production_min() {
|
|
|
8382
8325
|
b = exports2.unstable_now();
|
|
8383
8326
|
"function" === typeof e ? v2.callback = e : v2 === h2(r) && k(r);
|
|
8384
8327
|
G(b);
|
|
8385
|
-
} else
|
|
8386
|
-
k(r);
|
|
8328
|
+
} else k(r);
|
|
8387
8329
|
v2 = h2(r);
|
|
8388
8330
|
}
|
|
8389
|
-
if (null !== v2)
|
|
8390
|
-
var w = true;
|
|
8331
|
+
if (null !== v2) var w = true;
|
|
8391
8332
|
else {
|
|
8392
8333
|
var m = h2(t);
|
|
8393
8334
|
null !== m && K(H, m.startTime - b);
|
|
@@ -8412,24 +8353,21 @@ function requireScheduler_production_min() {
|
|
|
8412
8353
|
} finally {
|
|
8413
8354
|
b ? S() : (N = false, O = null);
|
|
8414
8355
|
}
|
|
8415
|
-
} else
|
|
8416
|
-
N = false;
|
|
8356
|
+
} else N = false;
|
|
8417
8357
|
}
|
|
8418
8358
|
var S;
|
|
8419
|
-
if ("function" === typeof F)
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
};
|
|
8359
|
+
if ("function" === typeof F) S = function() {
|
|
8360
|
+
F(R);
|
|
8361
|
+
};
|
|
8423
8362
|
else if ("undefined" !== typeof MessageChannel) {
|
|
8424
8363
|
var T = new MessageChannel(), U = T.port2;
|
|
8425
8364
|
T.port1.onmessage = R;
|
|
8426
8365
|
S = function() {
|
|
8427
8366
|
U.postMessage(null);
|
|
8428
8367
|
};
|
|
8429
|
-
} else
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
};
|
|
8368
|
+
} else S = function() {
|
|
8369
|
+
D(R, 0);
|
|
8370
|
+
};
|
|
8433
8371
|
function I(a2) {
|
|
8434
8372
|
O = a2;
|
|
8435
8373
|
N || (N = true, S());
|
|
@@ -8553,8 +8491,7 @@ var scheduler_development = {};
|
|
|
8553
8491
|
*/
|
|
8554
8492
|
var hasRequiredScheduler_development;
|
|
8555
8493
|
function requireScheduler_development() {
|
|
8556
|
-
if (hasRequiredScheduler_development)
|
|
8557
|
-
return scheduler_development;
|
|
8494
|
+
if (hasRequiredScheduler_development) return scheduler_development;
|
|
8558
8495
|
hasRequiredScheduler_development = 1;
|
|
8559
8496
|
(function(exports2) {
|
|
8560
8497
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -8709,8 +8646,7 @@ function requireScheduler_development() {
|
|
|
8709
8646
|
var previousPriorityLevel = currentPriorityLevel;
|
|
8710
8647
|
try {
|
|
8711
8648
|
var currentTime;
|
|
8712
|
-
if (enableProfiling)
|
|
8713
|
-
;
|
|
8649
|
+
if (enableProfiling) ;
|
|
8714
8650
|
else {
|
|
8715
8651
|
return workLoop(hasTimeRemaining, initialTime2);
|
|
8716
8652
|
}
|
|
@@ -9033,19 +8969,14 @@ function E(r) {
|
|
|
9033
8969
|
}
|
|
9034
8970
|
function h(e, n) {
|
|
9035
8971
|
const o = React.useContext(e)[d];
|
|
9036
|
-
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o)
|
|
9037
|
-
throw new Error("useContextSelector requires special context");
|
|
8972
|
+
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o) throw new Error("useContextSelector requires special context");
|
|
9038
8973
|
const { v: { current: c }, n: { current: u }, l: s } = o, i = n(c), [p, l] = React.useReducer((e2, r) => {
|
|
9039
|
-
if (!r)
|
|
9040
|
-
|
|
9041
|
-
if (
|
|
9042
|
-
throw r.p;
|
|
9043
|
-
if (r.n === u)
|
|
9044
|
-
return Object.is(e2[1], i) ? e2 : [c, i];
|
|
8974
|
+
if (!r) return [c, i];
|
|
8975
|
+
if ("p" in r) throw r.p;
|
|
8976
|
+
if (r.n === u) return Object.is(e2[1], i) ? e2 : [c, i];
|
|
9045
8977
|
try {
|
|
9046
8978
|
if ("v" in r) {
|
|
9047
|
-
if (Object.is(e2[0], r.v))
|
|
9048
|
-
return e2;
|
|
8979
|
+
if (Object.is(e2[0], r.v)) return e2;
|
|
9049
8980
|
const t = n(r.v);
|
|
9050
8981
|
return Object.is(e2[1], t) ? e2 : [r.v, t];
|
|
9051
8982
|
}
|
|
@@ -9604,10 +9535,8 @@ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
|
|
|
9604
9535
|
year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
|
|
9605
9536
|
let y1 = year - 1;
|
|
9606
9537
|
let monthOffset = -2;
|
|
9607
|
-
if (month <= 2)
|
|
9608
|
-
|
|
9609
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9610
|
-
monthOffset = -1;
|
|
9538
|
+
if (month <= 2) monthOffset = 0;
|
|
9539
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
|
|
9611
9540
|
return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
|
|
9612
9541
|
}
|
|
9613
9542
|
function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
|
|
@@ -9672,10 +9601,8 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
9672
9601
|
let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
|
|
9673
9602
|
let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
|
|
9674
9603
|
let leapAdj = 2;
|
|
9675
|
-
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
|
|
9676
|
-
|
|
9677
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9678
|
-
leapAdj = 1;
|
|
9604
|
+
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
|
|
9605
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
|
|
9679
9606
|
let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
|
|
9680
9607
|
let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
|
|
9681
9608
|
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
|
|
@@ -9727,8 +9654,7 @@ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
|
|
|
9727
9654
|
}
|
|
9728
9655
|
let $14e0f24ef4ac5c92$var$localTimeZone = null;
|
|
9729
9656
|
function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
|
|
9730
|
-
if ($14e0f24ef4ac5c92$var$localTimeZone == null)
|
|
9731
|
-
$14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9657
|
+
if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9732
9658
|
return $14e0f24ef4ac5c92$var$localTimeZone;
|
|
9733
9659
|
}
|
|
9734
9660
|
function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
|
|
@@ -9743,10 +9669,8 @@ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, se
|
|
|
9743
9669
|
return date.getTime();
|
|
9744
9670
|
}
|
|
9745
9671
|
function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
|
|
9746
|
-
if (timeZone === "UTC")
|
|
9747
|
-
|
|
9748
|
-
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
|
|
9749
|
-
return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9672
|
+
if (timeZone === "UTC") return 0;
|
|
9673
|
+
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9750
9674
|
let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
|
|
9751
9675
|
let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
9752
9676
|
return utc - Math.floor(ms / 1e3) * 1e3;
|
|
@@ -9770,9 +9694,7 @@ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
|
|
|
9770
9694
|
}
|
|
9771
9695
|
let parts = formatter.formatToParts(new Date(ms));
|
|
9772
9696
|
let namedParts = {};
|
|
9773
|
-
for (let part of parts)
|
|
9774
|
-
if (part.type !== "literal")
|
|
9775
|
-
namedParts[part.type] = part.value;
|
|
9697
|
+
for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
|
|
9776
9698
|
return {
|
|
9777
9699
|
// Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
|
|
9778
9700
|
year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
|
|
@@ -9799,8 +9721,7 @@ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
|
|
|
9799
9721
|
}
|
|
9800
9722
|
function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
|
|
9801
9723
|
let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
|
|
9802
|
-
if (timeZone === "UTC")
|
|
9803
|
-
return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9724
|
+
if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9804
9725
|
if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
|
|
9805
9726
|
dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
9806
9727
|
let date2 = /* @__PURE__ */ new Date();
|
|
@@ -9813,18 +9734,16 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
|
|
|
9813
9734
|
let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9814
9735
|
let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9815
9736
|
let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
|
|
9816
|
-
if (valid.length === 1)
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
throw new RangeError("Multiple possible absolute times found");
|
|
9827
|
-
}
|
|
9737
|
+
if (valid.length === 1) return valid[0];
|
|
9738
|
+
if (valid.length > 1) switch (disambiguation) {
|
|
9739
|
+
case "compatible":
|
|
9740
|
+
case "earlier":
|
|
9741
|
+
return valid[0];
|
|
9742
|
+
case "later":
|
|
9743
|
+
return valid[valid.length - 1];
|
|
9744
|
+
case "reject":
|
|
9745
|
+
throw new RangeError("Multiple possible absolute times found");
|
|
9746
|
+
}
|
|
9828
9747
|
switch (disambiguation) {
|
|
9829
9748
|
case "earlier":
|
|
9830
9749
|
return Math.min(ms - offsetBefore, ms - offsetAfter);
|
|
@@ -9855,17 +9774,13 @@ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
|
|
|
9855
9774
|
}
|
|
9856
9775
|
function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
|
|
9857
9776
|
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
9858
|
-
if ("timeZone" in date)
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
return date;
|
|
9862
|
-
if (time)
|
|
9863
|
-
({ hour, minute, second, millisecond } = time);
|
|
9777
|
+
if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
|
|
9778
|
+
else if ("hour" in date && !time) return date;
|
|
9779
|
+
if (time) ({ hour, minute, second, millisecond } = time);
|
|
9864
9780
|
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
9865
9781
|
}
|
|
9866
9782
|
function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
9867
|
-
if (date.calendar.identifier === calendar.identifier)
|
|
9868
|
-
return date;
|
|
9783
|
+
if (date.calendar.identifier === calendar.identifier) return date;
|
|
9869
9784
|
let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
|
|
9870
9785
|
let copy = date.copy();
|
|
9871
9786
|
copy.calendar = calendar;
|
|
@@ -9878,8 +9793,7 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
|
9878
9793
|
}
|
|
9879
9794
|
function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
|
|
9880
9795
|
if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
|
|
9881
|
-
if (date.timeZone === timeZone)
|
|
9882
|
-
return date;
|
|
9796
|
+
if (date.timeZone === timeZone) return date;
|
|
9883
9797
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
9884
9798
|
}
|
|
9885
9799
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
|
|
@@ -9898,8 +9812,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9898
9812
|
let mutableDate = date.copy();
|
|
9899
9813
|
let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
|
|
9900
9814
|
$735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
|
|
9901
|
-
if (mutableDate.calendar.balanceYearMonth)
|
|
9902
|
-
mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9815
|
+
if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9903
9816
|
mutableDate.month += duration.months || 0;
|
|
9904
9817
|
$735220c2d4774dd3$var$balanceYearMonth(mutableDate);
|
|
9905
9818
|
$735220c2d4774dd3$var$constrainMonthDay(mutableDate);
|
|
@@ -9907,8 +9820,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9907
9820
|
mutableDate.day += duration.days || 0;
|
|
9908
9821
|
mutableDate.day += days;
|
|
9909
9822
|
$735220c2d4774dd3$var$balanceDay(mutableDate);
|
|
9910
|
-
if (mutableDate.calendar.balanceDate)
|
|
9911
|
-
mutableDate.calendar.balanceDate(mutableDate);
|
|
9823
|
+
if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
|
|
9912
9824
|
if (mutableDate.year < 1) {
|
|
9913
9825
|
mutableDate.year = 1;
|
|
9914
9826
|
mutableDate.month = 1;
|
|
@@ -9936,8 +9848,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9936
9848
|
}
|
|
9937
9849
|
function $735220c2d4774dd3$var$addYears(date, years) {
|
|
9938
9850
|
var _date_calendar_isInverseEra, _date_calendar;
|
|
9939
|
-
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
|
|
9940
|
-
years = -years;
|
|
9851
|
+
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;
|
|
9941
9852
|
date.year += years;
|
|
9942
9853
|
}
|
|
9943
9854
|
function $735220c2d4774dd3$var$balanceYearMonth(date) {
|
|
@@ -9968,16 +9879,13 @@ function $735220c2d4774dd3$var$constrainMonthDay(date) {
|
|
|
9968
9879
|
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
|
|
9969
9880
|
}
|
|
9970
9881
|
function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
|
|
9971
|
-
if (date.calendar.constrainDate)
|
|
9972
|
-
date.calendar.constrainDate(date);
|
|
9882
|
+
if (date.calendar.constrainDate) date.calendar.constrainDate(date);
|
|
9973
9883
|
date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
|
|
9974
9884
|
$735220c2d4774dd3$var$constrainMonthDay(date);
|
|
9975
9885
|
}
|
|
9976
9886
|
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
9977
9887
|
let inverseDuration = {};
|
|
9978
|
-
for (let key in duration)
|
|
9979
|
-
if (typeof duration[key] === "number")
|
|
9980
|
-
inverseDuration[key] = -duration[key];
|
|
9888
|
+
for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
|
|
9981
9889
|
return inverseDuration;
|
|
9982
9890
|
}
|
|
9983
9891
|
function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
@@ -9985,27 +9893,19 @@ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
|
9985
9893
|
}
|
|
9986
9894
|
function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
|
|
9987
9895
|
let mutableDate = date.copy();
|
|
9988
|
-
if (fields.era != null)
|
|
9989
|
-
|
|
9990
|
-
if (fields.
|
|
9991
|
-
|
|
9992
|
-
if (fields.month != null)
|
|
9993
|
-
mutableDate.month = fields.month;
|
|
9994
|
-
if (fields.day != null)
|
|
9995
|
-
mutableDate.day = fields.day;
|
|
9896
|
+
if (fields.era != null) mutableDate.era = fields.era;
|
|
9897
|
+
if (fields.year != null) mutableDate.year = fields.year;
|
|
9898
|
+
if (fields.month != null) mutableDate.month = fields.month;
|
|
9899
|
+
if (fields.day != null) mutableDate.day = fields.day;
|
|
9996
9900
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
|
|
9997
9901
|
return mutableDate;
|
|
9998
9902
|
}
|
|
9999
9903
|
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
10000
9904
|
let mutableValue = value.copy();
|
|
10001
|
-
if (fields.hour != null)
|
|
10002
|
-
|
|
10003
|
-
if (fields.
|
|
10004
|
-
|
|
10005
|
-
if (fields.second != null)
|
|
10006
|
-
mutableValue.second = fields.second;
|
|
10007
|
-
if (fields.millisecond != null)
|
|
10008
|
-
mutableValue.millisecond = fields.millisecond;
|
|
9905
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
9906
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
9907
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
9908
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
10009
9909
|
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
10010
9910
|
return mutableValue;
|
|
10011
9911
|
}
|
|
@@ -10028,8 +9928,7 @@ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
|
10028
9928
|
}
|
|
10029
9929
|
function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
|
|
10030
9930
|
let result = a2 % b;
|
|
10031
|
-
if (result < 0)
|
|
10032
|
-
result += b;
|
|
9931
|
+
if (result < 0) result += b;
|
|
10033
9932
|
return result;
|
|
10034
9933
|
}
|
|
10035
9934
|
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
@@ -10045,8 +9944,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10045
9944
|
case "era": {
|
|
10046
9945
|
let eras = value.calendar.getEras();
|
|
10047
9946
|
let eraIndex = eras.indexOf(value.era);
|
|
10048
|
-
if (eraIndex < 0)
|
|
10049
|
-
throw new Error("Invalid era: " + value.era);
|
|
9947
|
+
if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
|
|
10050
9948
|
eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
|
|
10051
9949
|
mutable.era = eras[eraIndex];
|
|
10052
9950
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
@@ -10054,13 +9952,10 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10054
9952
|
}
|
|
10055
9953
|
case "year":
|
|
10056
9954
|
var _mutable_calendar_isInverseEra, _mutable_calendar;
|
|
10057
|
-
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
|
|
10058
|
-
amount = -amount;
|
|
9955
|
+
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;
|
|
10059
9956
|
mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
|
|
10060
|
-
if (mutable.year === -Infinity)
|
|
10061
|
-
|
|
10062
|
-
if (mutable.calendar.balanceYearMonth)
|
|
10063
|
-
mutable.calendar.balanceYearMonth(mutable, value);
|
|
9957
|
+
if (mutable.year === -Infinity) mutable.year = 1;
|
|
9958
|
+
if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
|
|
10064
9959
|
break;
|
|
10065
9960
|
case "month":
|
|
10066
9961
|
mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
|
|
@@ -10071,8 +9966,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10071
9966
|
default:
|
|
10072
9967
|
throw new Error("Unsupported field " + field);
|
|
10073
9968
|
}
|
|
10074
|
-
if (value.calendar.balanceDate)
|
|
10075
|
-
value.calendar.balanceDate(mutable);
|
|
9969
|
+
if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
|
|
10076
9970
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
10077
9971
|
return mutable;
|
|
10078
9972
|
}
|
|
@@ -10108,21 +10002,15 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10108
10002
|
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
|
|
10109
10003
|
if (round) {
|
|
10110
10004
|
value += Math.sign(amount);
|
|
10111
|
-
if (value < min)
|
|
10112
|
-
value = max2;
|
|
10005
|
+
if (value < min) value = max2;
|
|
10113
10006
|
let div = Math.abs(amount);
|
|
10114
|
-
if (amount > 0)
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
value = Math.floor(value / div) * div;
|
|
10118
|
-
if (value > max2)
|
|
10119
|
-
value = min;
|
|
10007
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
10008
|
+
else value = Math.floor(value / div) * div;
|
|
10009
|
+
if (value > max2) value = min;
|
|
10120
10010
|
} else {
|
|
10121
10011
|
value += amount;
|
|
10122
|
-
if (value < min)
|
|
10123
|
-
|
|
10124
|
-
else if (value > max2)
|
|
10125
|
-
value = min + (value - max2 - 1);
|
|
10012
|
+
if (value < min) value = max2 - (min - value - 1);
|
|
10013
|
+
else if (value > max2) value = min + (value - max2 - 1);
|
|
10126
10014
|
}
|
|
10127
10015
|
return value;
|
|
10128
10016
|
}
|
|
@@ -10198,27 +10086,23 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10198
10086
|
function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
|
|
10199
10087
|
let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
|
|
10200
10088
|
let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
|
|
10201
|
-
if (res.compare(plainDateTime) === 0)
|
|
10202
|
-
return dateTime;
|
|
10089
|
+
if (res.compare(plainDateTime) === 0) return dateTime;
|
|
10203
10090
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
|
|
10204
10091
|
return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
|
|
10205
10092
|
}
|
|
10206
10093
|
const $fae977aafc393c5c$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
10207
10094
|
function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
|
|
10208
10095
|
let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
|
|
10209
|
-
if (!m)
|
|
10210
|
-
throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10096
|
+
if (!m) throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10211
10097
|
let date = new $35ea8db9cb2ccb90$export$d3b7288e7994edea($fae977aafc393c5c$var$parseNumber(m[1], 1, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1e3 : 0);
|
|
10212
10098
|
date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
|
|
10213
10099
|
var _m_;
|
|
10214
|
-
if (m[8])
|
|
10215
|
-
date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10100
|
+
if (m[8]) date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10216
10101
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
10217
10102
|
}
|
|
10218
10103
|
function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
|
|
10219
10104
|
let val = Number(value);
|
|
10220
|
-
if (val < min || val > max2)
|
|
10221
|
-
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10105
|
+
if (val < min || val > max2) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10222
10106
|
return val;
|
|
10223
10107
|
}
|
|
10224
10108
|
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
@@ -10253,8 +10137,7 @@ function _class_private_field_init(obj, privateMap, value) {
|
|
|
10253
10137
|
function $35ea8db9cb2ccb90$var$shiftArgs(args) {
|
|
10254
10138
|
let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
|
|
10255
10139
|
let era;
|
|
10256
|
-
if (typeof args[0] === "string")
|
|
10257
|
-
era = args.shift();
|
|
10140
|
+
if (typeof args[0] === "string") era = args.shift();
|
|
10258
10141
|
else {
|
|
10259
10142
|
let eras = calendar.getEras();
|
|
10260
10143
|
era = eras[eras.length - 1];
|
|
@@ -10274,10 +10157,8 @@ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
|
|
|
10274
10157
|
class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
|
|
10275
10158
|
/** Returns a copy of this date. */
|
|
10276
10159
|
copy() {
|
|
10277
|
-
if (this.era)
|
|
10278
|
-
|
|
10279
|
-
else
|
|
10280
|
-
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10160
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
10161
|
+
else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10281
10162
|
}
|
|
10282
10163
|
/** Returns a new `CalendarDate` with the given duration added to it. */
|
|
10283
10164
|
add(duration) {
|
|
@@ -10328,10 +10209,8 @@ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
|
|
|
10328
10209
|
class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
10329
10210
|
/** Returns a copy of this date. */
|
|
10330
10211
|
copy() {
|
|
10331
|
-
if (this.era)
|
|
10332
|
-
|
|
10333
|
-
else
|
|
10334
|
-
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10212
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10213
|
+
else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10335
10214
|
}
|
|
10336
10215
|
/** Returns a new `CalendarDateTime` with the given duration added to it. */
|
|
10337
10216
|
add(duration) {
|
|
@@ -10371,8 +10250,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
|
10371
10250
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
10372
10251
|
compare(b) {
|
|
10373
10252
|
let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
|
|
10374
|
-
if (res === 0)
|
|
10375
|
-
return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10253
|
+
if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10376
10254
|
return res;
|
|
10377
10255
|
}
|
|
10378
10256
|
constructor(...args) {
|
|
@@ -10397,10 +10275,8 @@ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
|
|
|
10397
10275
|
class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
|
|
10398
10276
|
/** Returns a copy of this date. */
|
|
10399
10277
|
copy() {
|
|
10400
|
-
if (this.era)
|
|
10401
|
-
|
|
10402
|
-
else
|
|
10403
|
-
return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10278
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10279
|
+
else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10404
10280
|
}
|
|
10405
10281
|
/** Returns a new `ZonedDateTime` with the given duration added to it. */
|
|
10406
10282
|
add(duration) {
|
|
@@ -10478,6 +10354,7 @@ React__namespace.forwardRef(
|
|
|
10478
10354
|
const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
|
|
10479
10355
|
const goBack = useHistory("BackButton", (state) => state.goBack);
|
|
10480
10356
|
const history = useHistory("BackButton", (state) => state.history);
|
|
10357
|
+
const currentLocationIndex = useHistory("BackButton", (state) => state.currentLocationIndex);
|
|
10481
10358
|
const hasFallback = fallback !== "";
|
|
10482
10359
|
const shouldBeDisabled = disabled || !canGoBack && !hasFallback;
|
|
10483
10360
|
const handleClick = (e) => {
|
|
@@ -10488,7 +10365,7 @@ React__namespace.forwardRef(
|
|
|
10488
10365
|
navigate(fallback);
|
|
10489
10366
|
}
|
|
10490
10367
|
};
|
|
10491
|
-
const historyTo = canGoBack ? history.at(-
|
|
10368
|
+
const historyTo = canGoBack ? history.at(currentLocationIndex - 2) : void 0;
|
|
10492
10369
|
const toWithFallback = historyTo ?? fallback;
|
|
10493
10370
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10494
10371
|
designSystem.Link,
|
|
@@ -12026,4 +11903,4 @@ adminApi.enhanceEndpoints({
|
|
|
12026
11903
|
});
|
|
12027
11904
|
exports.Layouts = Layouts;
|
|
12028
11905
|
exports.useTracking = useTracking;
|
|
12029
|
-
//# sourceMappingURL=index-
|
|
11906
|
+
//# sourceMappingURL=index-UvlzzkEs-Be9Y8EXt.js.map
|