@strapi/plugin-users-permissions 0.0.0-next.f5312617ca16b870c2bf1adcea2c69b676979e29 → 0.0.0-next.f698d55751345c4ca87477ef683475c1a68f310a
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/EditPage.jsx +1 -1
- package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +1 -1
- package/dist/_chunks/{index-BH6NqE8I.js → index-BizuINlB.js} +22 -15
- package/dist/_chunks/{index-BH6NqE8I.js.map → index-BizuINlB.js.map} +1 -1
- package/dist/_chunks/{index-C3i__jX-.js → index-C87o690X.js} +3 -4
- package/dist/_chunks/{index-C3i__jX-.js.map → index-C87o690X.js.map} +1 -1
- package/dist/_chunks/{index-DUWx-KG9-fMZ4nmrb.js → index-CV0X429t-Be9Y8EXt.js} +286 -388
- package/dist/_chunks/index-CV0X429t-Be9Y8EXt.js.map +1 -0
- package/dist/_chunks/{index-DUWx-KG9-C1E7ADbJ.mjs → index-CV0X429t-CkJgvpmE.mjs} +285 -386
- package/dist/_chunks/index-CV0X429t-CkJgvpmE.mjs.map +1 -0
- package/dist/_chunks/{index-PJoz36kJ.mjs → index-CvGkTmmM.mjs} +2 -2
- package/dist/_chunks/{index-PJoz36kJ.mjs.map → index-CvGkTmmM.mjs.map} +1 -1
- package/dist/_chunks/{index-CcWTKtCY.js → index-DIireyZN.js} +7 -8
- package/dist/_chunks/index-DIireyZN.js.map +1 -0
- package/dist/_chunks/{index-XOcQhJMB.mjs → index-DabA66Yf.mjs} +3 -3
- package/dist/_chunks/{index-XOcQhJMB.mjs.map → index-DabA66Yf.mjs.map} +1 -1
- package/dist/_chunks/{index-R4R0dEOv.mjs → index-DkoAEmxi.mjs} +22 -15
- package/dist/_chunks/{index-R4R0dEOv.mjs.map → index-DkoAEmxi.mjs.map} +1 -1
- package/dist/_chunks/{index-CnX2wiLY.mjs → index-Ug631g2_.mjs} +5 -5
- package/dist/_chunks/index-Ug631g2_.mjs.map +1 -0
- package/dist/_chunks/{index-CFzpNgIL.js → index-iA7YEHAe.js} +8 -9
- package/dist/_chunks/{index-CFzpNgIL.js.map → index-iA7YEHAe.js.map} +1 -1
- package/dist/_chunks/{index-DruWuFWL.js → index-k6KOwMF-.js} +6 -7
- package/dist/_chunks/index-k6KOwMF-.js.map +1 -0
- package/dist/_chunks/{index-CJUWqtrZ.mjs → index-pdc-kLHC.mjs} +5 -5
- package/dist/_chunks/index-pdc-kLHC.mjs.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +8 -8
- package/server/graphql/types/index.js +1 -0
- package/server/graphql/types/me.js +1 -0
- package/server/graphql/types/user-input.js +20 -0
- package/dist/_chunks/index-CJUWqtrZ.mjs.map +0 -1
- package/dist/_chunks/index-CcWTKtCY.js.map +0 -1
- package/dist/_chunks/index-CnX2wiLY.mjs.map +0 -1
- package/dist/_chunks/index-DUWx-KG9-C1E7ADbJ.mjs.map +0 -1
- package/dist/_chunks/index-DUWx-KG9-fMZ4nmrb.js.map +0 -1
- package/dist/_chunks/index-DruWuFWL.js.map +0 -1
|
@@ -10,6 +10,7 @@ import { useCallback, useMemo, useDebugValue, useState, useEffect, useRef, useLa
|
|
|
10
10
|
import { useIntl } from "react-intl";
|
|
11
11
|
import { ArrowLeft, Eye, EyeStriked, WarningCircle, Filter, CaretDown } from "@strapi/icons";
|
|
12
12
|
import "@strapi/icons/symbols";
|
|
13
|
+
import "lodash/trimEnd";
|
|
13
14
|
import createNextState2, { enableES5, isDraftable, isDraft, enablePatches, applyPatches, produceWithPatches, original, produce } from "immer";
|
|
14
15
|
import { shallowEqual, batch, useDispatch, useSelector, useStore } from "react-redux";
|
|
15
16
|
import pipe from "lodash/fp/pipe";
|
|
@@ -32,8 +33,7 @@ function getDefaultExportFromCjs(x) {
|
|
|
32
33
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
33
34
|
}
|
|
34
35
|
function getAugmentedNamespace(n) {
|
|
35
|
-
if (n.__esModule)
|
|
36
|
-
return n;
|
|
36
|
+
if (n.__esModule) return n;
|
|
37
37
|
var f2 = n.default;
|
|
38
38
|
if (typeof f2 == "function") {
|
|
39
39
|
var a2 = function a3() {
|
|
@@ -43,8 +43,7 @@ function getAugmentedNamespace(n) {
|
|
|
43
43
|
return f2.apply(this, arguments);
|
|
44
44
|
};
|
|
45
45
|
a2.prototype = f2.prototype;
|
|
46
|
-
} else
|
|
47
|
-
a2 = {};
|
|
46
|
+
} else a2 = {};
|
|
48
47
|
Object.defineProperty(a2, "__esModule", { value: true });
|
|
49
48
|
Object.keys(n).forEach(function(k) {
|
|
50
49
|
var d2 = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -127,11 +126,12 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
127
126
|
return hasSymbolSham();
|
|
128
127
|
};
|
|
129
128
|
var test$1 = {
|
|
129
|
+
__proto__: null,
|
|
130
130
|
foo: {}
|
|
131
131
|
};
|
|
132
132
|
var $Object = Object;
|
|
133
133
|
var hasProto$1 = function hasProto() {
|
|
134
|
-
return { __proto__: test$1 }.foo === test$1.foo && !(
|
|
134
|
+
return { __proto__: test$1 }.foo === test$1.foo && !(test$1 instanceof $Object);
|
|
135
135
|
};
|
|
136
136
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
137
137
|
var toStr$1 = Object.prototype.toString;
|
|
@@ -518,8 +518,7 @@ var callBind$1 = { exports: {} };
|
|
|
518
518
|
var esDefineProperty;
|
|
519
519
|
var hasRequiredEsDefineProperty;
|
|
520
520
|
function requireEsDefineProperty() {
|
|
521
|
-
if (hasRequiredEsDefineProperty)
|
|
522
|
-
return esDefineProperty;
|
|
521
|
+
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
523
522
|
hasRequiredEsDefineProperty = 1;
|
|
524
523
|
var GetIntrinsic3 = getIntrinsic;
|
|
525
524
|
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
@@ -1988,8 +1987,7 @@ var ActionTypes = {
|
|
|
1988
1987
|
}
|
|
1989
1988
|
};
|
|
1990
1989
|
function isPlainObject$3(obj) {
|
|
1991
|
-
if (typeof obj !== "object" || obj === null)
|
|
1992
|
-
return false;
|
|
1990
|
+
if (typeof obj !== "object" || obj === null) return false;
|
|
1993
1991
|
var proto = obj;
|
|
1994
1992
|
while (Object.getPrototypeOf(proto) !== null) {
|
|
1995
1993
|
proto = Object.getPrototypeOf(proto);
|
|
@@ -1997,10 +1995,8 @@ function isPlainObject$3(obj) {
|
|
|
1997
1995
|
return Object.getPrototypeOf(obj) === proto;
|
|
1998
1996
|
}
|
|
1999
1997
|
function miniKindOf(val) {
|
|
2000
|
-
if (val === void 0)
|
|
2001
|
-
|
|
2002
|
-
if (val === null)
|
|
2003
|
-
return "null";
|
|
1998
|
+
if (val === void 0) return "undefined";
|
|
1999
|
+
if (val === null) return "null";
|
|
2004
2000
|
var type2 = typeof val;
|
|
2005
2001
|
switch (type2) {
|
|
2006
2002
|
case "boolean":
|
|
@@ -2011,12 +2007,9 @@ function miniKindOf(val) {
|
|
|
2011
2007
|
return type2;
|
|
2012
2008
|
}
|
|
2013
2009
|
}
|
|
2014
|
-
if (Array.isArray(val))
|
|
2015
|
-
|
|
2016
|
-
if (
|
|
2017
|
-
return "date";
|
|
2018
|
-
if (isError(val))
|
|
2019
|
-
return "error";
|
|
2010
|
+
if (Array.isArray(val)) return "array";
|
|
2011
|
+
if (isDate$1(val)) return "date";
|
|
2012
|
+
if (isError(val)) return "error";
|
|
2020
2013
|
var constructorName = ctorName(val);
|
|
2021
2014
|
switch (constructorName) {
|
|
2022
2015
|
case "Symbol":
|
|
@@ -2036,8 +2029,7 @@ function isError(val) {
|
|
|
2036
2029
|
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
2037
2030
|
}
|
|
2038
2031
|
function isDate$1(val) {
|
|
2039
|
-
if (val instanceof Date)
|
|
2040
|
-
return true;
|
|
2032
|
+
if (val instanceof Date) return true;
|
|
2041
2033
|
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
2042
2034
|
}
|
|
2043
2035
|
function kindOf$1(val) {
|
|
@@ -2071,8 +2063,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|
|
2071
2063
|
unexpectedKeys.forEach(function(key) {
|
|
2072
2064
|
unexpectedKeyCache[key] = true;
|
|
2073
2065
|
});
|
|
2074
|
-
if (action && action.type === ActionTypes.REPLACE)
|
|
2075
|
-
return;
|
|
2066
|
+
if (action && action.type === ActionTypes.REPLACE) return;
|
|
2076
2067
|
if (unexpectedKeys.length > 0) {
|
|
2077
2068
|
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.');
|
|
2078
2069
|
}
|
|
@@ -2332,9 +2323,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2332
2323
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b2) {
|
|
2333
2324
|
d3.__proto__ = b2;
|
|
2334
2325
|
} || function(d3, b2) {
|
|
2335
|
-
for (var p in b2)
|
|
2336
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
2337
|
-
d3[p] = b2[p];
|
|
2326
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d3[p] = b2[p];
|
|
2338
2327
|
};
|
|
2339
2328
|
return extendStatics(d2, b);
|
|
2340
2329
|
};
|
|
@@ -2350,8 +2339,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2350
2339
|
}();
|
|
2351
2340
|
var __generator$1 = function(thisArg, body) {
|
|
2352
2341
|
var _ = { label: 0, sent: function() {
|
|
2353
|
-
if (t[0] & 1)
|
|
2354
|
-
throw t[1];
|
|
2342
|
+
if (t[0] & 1) throw t[1];
|
|
2355
2343
|
return t[1];
|
|
2356
2344
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
2357
2345
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -2363,64 +2351,58 @@ var __generator$1 = function(thisArg, body) {
|
|
|
2363
2351
|
};
|
|
2364
2352
|
}
|
|
2365
2353
|
function step(op) {
|
|
2366
|
-
if (f2)
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2354
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
2355
|
+
while (_) try {
|
|
2356
|
+
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;
|
|
2357
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
2358
|
+
switch (op[0]) {
|
|
2359
|
+
case 0:
|
|
2360
|
+
case 1:
|
|
2361
|
+
t = op;
|
|
2362
|
+
break;
|
|
2363
|
+
case 4:
|
|
2364
|
+
_.label++;
|
|
2365
|
+
return { value: op[1], done: false };
|
|
2366
|
+
case 5:
|
|
2367
|
+
_.label++;
|
|
2368
|
+
y = op[1];
|
|
2369
|
+
op = [0];
|
|
2370
|
+
continue;
|
|
2371
|
+
case 7:
|
|
2372
|
+
op = _.ops.pop();
|
|
2373
|
+
_.trys.pop();
|
|
2374
|
+
continue;
|
|
2375
|
+
default:
|
|
2376
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2377
|
+
_ = 0;
|
|
2378
|
+
continue;
|
|
2379
|
+
}
|
|
2380
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2381
|
+
_.label = op[1];
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2384
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
2385
|
+
_.label = t[1];
|
|
2377
2386
|
t = op;
|
|
2378
2387
|
break;
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
op = _.ops.pop();
|
|
2389
|
-
_.trys.pop();
|
|
2390
|
-
continue;
|
|
2391
|
-
default:
|
|
2392
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2393
|
-
_ = 0;
|
|
2394
|
-
continue;
|
|
2395
|
-
}
|
|
2396
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2397
|
-
_.label = op[1];
|
|
2398
|
-
break;
|
|
2399
|
-
}
|
|
2400
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
2401
|
-
_.label = t[1];
|
|
2402
|
-
t = op;
|
|
2403
|
-
break;
|
|
2404
|
-
}
|
|
2405
|
-
if (t && _.label < t[2]) {
|
|
2406
|
-
_.label = t[2];
|
|
2407
|
-
_.ops.push(op);
|
|
2408
|
-
break;
|
|
2409
|
-
}
|
|
2410
|
-
if (t[2])
|
|
2411
|
-
_.ops.pop();
|
|
2412
|
-
_.trys.pop();
|
|
2413
|
-
continue;
|
|
2414
|
-
}
|
|
2415
|
-
op = body.call(thisArg, _);
|
|
2416
|
-
} catch (e) {
|
|
2417
|
-
op = [6, e];
|
|
2418
|
-
y = 0;
|
|
2419
|
-
} finally {
|
|
2420
|
-
f2 = t = 0;
|
|
2388
|
+
}
|
|
2389
|
+
if (t && _.label < t[2]) {
|
|
2390
|
+
_.label = t[2];
|
|
2391
|
+
_.ops.push(op);
|
|
2392
|
+
break;
|
|
2393
|
+
}
|
|
2394
|
+
if (t[2]) _.ops.pop();
|
|
2395
|
+
_.trys.pop();
|
|
2396
|
+
continue;
|
|
2421
2397
|
}
|
|
2422
|
-
|
|
2423
|
-
|
|
2398
|
+
op = body.call(thisArg, _);
|
|
2399
|
+
} catch (e) {
|
|
2400
|
+
op = [6, e];
|
|
2401
|
+
y = 0;
|
|
2402
|
+
} finally {
|
|
2403
|
+
f2 = t = 0;
|
|
2404
|
+
}
|
|
2405
|
+
if (op[0] & 5) throw op[1];
|
|
2424
2406
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
2425
2407
|
}
|
|
2426
2408
|
};
|
|
@@ -2931,8 +2913,7 @@ var createAsyncThunk = function() {
|
|
|
2931
2913
|
case 0:
|
|
2932
2914
|
_c.trys.push([0, 4, , 5]);
|
|
2933
2915
|
conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState, extra });
|
|
2934
|
-
if (!isThenable$1(conditionResult))
|
|
2935
|
-
return [3, 2];
|
|
2916
|
+
if (!isThenable$1(conditionResult)) return [3, 2];
|
|
2936
2917
|
return [4, conditionResult];
|
|
2937
2918
|
case 1:
|
|
2938
2919
|
conditionResult = _c.sent();
|
|
@@ -3201,8 +3182,7 @@ typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "un
|
|
|
3201
3182
|
enableES5();
|
|
3202
3183
|
var __generator = function(thisArg, body) {
|
|
3203
3184
|
var _ = { label: 0, sent: function() {
|
|
3204
|
-
if (t[0] & 1)
|
|
3205
|
-
throw t[1];
|
|
3185
|
+
if (t[0] & 1) throw t[1];
|
|
3206
3186
|
return t[1];
|
|
3207
3187
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
3208
3188
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -3214,64 +3194,58 @@ var __generator = function(thisArg, body) {
|
|
|
3214
3194
|
};
|
|
3215
3195
|
}
|
|
3216
3196
|
function step(op) {
|
|
3217
|
-
if (f2)
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3197
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
3198
|
+
while (_) try {
|
|
3199
|
+
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;
|
|
3200
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
3201
|
+
switch (op[0]) {
|
|
3202
|
+
case 0:
|
|
3203
|
+
case 1:
|
|
3204
|
+
t = op;
|
|
3205
|
+
break;
|
|
3206
|
+
case 4:
|
|
3207
|
+
_.label++;
|
|
3208
|
+
return { value: op[1], done: false };
|
|
3209
|
+
case 5:
|
|
3210
|
+
_.label++;
|
|
3211
|
+
y = op[1];
|
|
3212
|
+
op = [0];
|
|
3213
|
+
continue;
|
|
3214
|
+
case 7:
|
|
3215
|
+
op = _.ops.pop();
|
|
3216
|
+
_.trys.pop();
|
|
3217
|
+
continue;
|
|
3218
|
+
default:
|
|
3219
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3220
|
+
_ = 0;
|
|
3221
|
+
continue;
|
|
3222
|
+
}
|
|
3223
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3224
|
+
_.label = op[1];
|
|
3225
|
+
break;
|
|
3226
|
+
}
|
|
3227
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
3228
|
+
_.label = t[1];
|
|
3228
3229
|
t = op;
|
|
3229
3230
|
break;
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
op = _.ops.pop();
|
|
3240
|
-
_.trys.pop();
|
|
3241
|
-
continue;
|
|
3242
|
-
default:
|
|
3243
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3244
|
-
_ = 0;
|
|
3245
|
-
continue;
|
|
3246
|
-
}
|
|
3247
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3248
|
-
_.label = op[1];
|
|
3249
|
-
break;
|
|
3250
|
-
}
|
|
3251
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
3252
|
-
_.label = t[1];
|
|
3253
|
-
t = op;
|
|
3254
|
-
break;
|
|
3255
|
-
}
|
|
3256
|
-
if (t && _.label < t[2]) {
|
|
3257
|
-
_.label = t[2];
|
|
3258
|
-
_.ops.push(op);
|
|
3259
|
-
break;
|
|
3260
|
-
}
|
|
3261
|
-
if (t[2])
|
|
3262
|
-
_.ops.pop();
|
|
3263
|
-
_.trys.pop();
|
|
3264
|
-
continue;
|
|
3265
|
-
}
|
|
3266
|
-
op = body.call(thisArg, _);
|
|
3267
|
-
} catch (e) {
|
|
3268
|
-
op = [6, e];
|
|
3269
|
-
y = 0;
|
|
3270
|
-
} finally {
|
|
3271
|
-
f2 = t = 0;
|
|
3231
|
+
}
|
|
3232
|
+
if (t && _.label < t[2]) {
|
|
3233
|
+
_.label = t[2];
|
|
3234
|
+
_.ops.push(op);
|
|
3235
|
+
break;
|
|
3236
|
+
}
|
|
3237
|
+
if (t[2]) _.ops.pop();
|
|
3238
|
+
_.trys.pop();
|
|
3239
|
+
continue;
|
|
3272
3240
|
}
|
|
3273
|
-
|
|
3274
|
-
|
|
3241
|
+
op = body.call(thisArg, _);
|
|
3242
|
+
} catch (e) {
|
|
3243
|
+
op = [6, e];
|
|
3244
|
+
y = 0;
|
|
3245
|
+
} finally {
|
|
3246
|
+
f2 = t = 0;
|
|
3247
|
+
}
|
|
3248
|
+
if (op[0] & 5) throw op[1];
|
|
3275
3249
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
3276
3250
|
}
|
|
3277
3251
|
};
|
|
@@ -3737,13 +3711,11 @@ function buildThunks(_j) {
|
|
|
3737
3711
|
forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0
|
|
3738
3712
|
};
|
|
3739
3713
|
forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0;
|
|
3740
|
-
if (!forceQueryFn)
|
|
3741
|
-
return [3, 2];
|
|
3714
|
+
if (!forceQueryFn) return [3, 2];
|
|
3742
3715
|
result = forceQueryFn();
|
|
3743
3716
|
return [3, 6];
|
|
3744
3717
|
case 2:
|
|
3745
|
-
if (!endpointDefinition.query)
|
|
3746
|
-
return [3, 4];
|
|
3718
|
+
if (!endpointDefinition.query) return [3, 4];
|
|
3747
3719
|
return [4, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)];
|
|
3748
3720
|
case 3:
|
|
3749
3721
|
result = _r.sent();
|
|
@@ -3795,8 +3767,7 @@ function buildThunks(_j) {
|
|
|
3795
3767
|
case 8:
|
|
3796
3768
|
error_1 = _r.sent();
|
|
3797
3769
|
catchedError = error_1;
|
|
3798
|
-
if (!(catchedError instanceof HandledError))
|
|
3799
|
-
return [3, 12];
|
|
3770
|
+
if (!(catchedError instanceof HandledError)) return [3, 12];
|
|
3800
3771
|
transformErrorResponse = defaultTransformResponse;
|
|
3801
3772
|
if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {
|
|
3802
3773
|
transformErrorResponse = endpointDefinition.transformErrorResponse;
|
|
@@ -4035,8 +4006,7 @@ function buildSlice(_j) {
|
|
|
4035
4006
|
}).addCase(queryThunk.rejected, function(draft, _j2) {
|
|
4036
4007
|
var _k2 = _j2.meta, condition = _k2.condition, arg = _k2.arg, requestId = _k2.requestId, error = _j2.error, payload = _j2.payload;
|
|
4037
4008
|
updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) {
|
|
4038
|
-
if (condition)
|
|
4039
|
-
;
|
|
4009
|
+
if (condition) ;
|
|
4040
4010
|
else {
|
|
4041
4011
|
if (substate.requestId !== requestId)
|
|
4042
4012
|
return;
|
|
@@ -5661,6 +5631,9 @@ const getFetchClient = (defaultOptions = {}) => {
|
|
|
5661
5631
|
};
|
|
5662
5632
|
const paramsSerializer = (params) => (url) => {
|
|
5663
5633
|
if (params) {
|
|
5634
|
+
if (typeof params === "string") {
|
|
5635
|
+
return `${url}?${params}`;
|
|
5636
|
+
}
|
|
5664
5637
|
const serializedParams = qs__default.stringify(params, { encode: false });
|
|
5665
5638
|
return `${url}?${serializedParams}`;
|
|
5666
5639
|
}
|
|
@@ -5980,8 +5953,7 @@ function findKey(obj, key) {
|
|
|
5980
5953
|
return null;
|
|
5981
5954
|
}
|
|
5982
5955
|
const _global = (() => {
|
|
5983
|
-
if (typeof globalThis !== "undefined")
|
|
5984
|
-
return globalThis;
|
|
5956
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
5985
5957
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
5986
5958
|
})();
|
|
5987
5959
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
@@ -6035,8 +6007,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
|
6035
6007
|
let prop;
|
|
6036
6008
|
const merged = {};
|
|
6037
6009
|
destObj = destObj || {};
|
|
6038
|
-
if (sourceObj == null)
|
|
6039
|
-
return destObj;
|
|
6010
|
+
if (sourceObj == null) return destObj;
|
|
6040
6011
|
do {
|
|
6041
6012
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
6042
6013
|
i = props.length;
|
|
@@ -6061,13 +6032,10 @@ const endsWith = (str, searchString, position) => {
|
|
|
6061
6032
|
return lastIndex !== -1 && lastIndex === position;
|
|
6062
6033
|
};
|
|
6063
6034
|
const toArray = (thing) => {
|
|
6064
|
-
if (!thing)
|
|
6065
|
-
|
|
6066
|
-
if (isArray(thing))
|
|
6067
|
-
return thing;
|
|
6035
|
+
if (!thing) return null;
|
|
6036
|
+
if (isArray(thing)) return thing;
|
|
6068
6037
|
let i = thing.length;
|
|
6069
|
-
if (!isNumber(i))
|
|
6070
|
-
return null;
|
|
6038
|
+
if (!isNumber(i)) return null;
|
|
6071
6039
|
const arr = new Array(i);
|
|
6072
6040
|
while (i-- > 0) {
|
|
6073
6041
|
arr[i] = thing[i];
|
|
@@ -6124,8 +6092,7 @@ const freezeMethods = (obj) => {
|
|
|
6124
6092
|
return false;
|
|
6125
6093
|
}
|
|
6126
6094
|
const value = obj[name];
|
|
6127
|
-
if (!isFunction(value))
|
|
6128
|
-
return;
|
|
6095
|
+
if (!isFunction(value)) return;
|
|
6129
6096
|
descriptor.enumerable = false;
|
|
6130
6097
|
if ("writable" in descriptor) {
|
|
6131
6098
|
descriptor.writable = false;
|
|
@@ -6352,8 +6319,7 @@ function removeBrackets(key) {
|
|
|
6352
6319
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
6353
6320
|
}
|
|
6354
6321
|
function renderKey(path, key, dots) {
|
|
6355
|
-
if (!path)
|
|
6356
|
-
return key;
|
|
6322
|
+
if (!path) return key;
|
|
6357
6323
|
return path.concat(key).map(function each(token, i) {
|
|
6358
6324
|
token = removeBrackets(token);
|
|
6359
6325
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -6387,8 +6353,7 @@ function toFormData(obj, formData, options) {
|
|
|
6387
6353
|
throw new TypeError("visitor must be a function");
|
|
6388
6354
|
}
|
|
6389
6355
|
function convertValue(value) {
|
|
6390
|
-
if (value === null)
|
|
6391
|
-
return "";
|
|
6356
|
+
if (value === null) return "";
|
|
6392
6357
|
if (utils$1.isDate(value)) {
|
|
6393
6358
|
return value.toISOString();
|
|
6394
6359
|
}
|
|
@@ -6431,8 +6396,7 @@ function toFormData(obj, formData, options) {
|
|
|
6431
6396
|
isVisitable
|
|
6432
6397
|
});
|
|
6433
6398
|
function build(value, path) {
|
|
6434
|
-
if (utils$1.isUndefined(value))
|
|
6435
|
-
return;
|
|
6399
|
+
if (utils$1.isUndefined(value)) return;
|
|
6436
6400
|
if (stack.indexOf(value) !== -1) {
|
|
6437
6401
|
throw Error("Circular reference detected in " + path.join("."));
|
|
6438
6402
|
}
|
|
@@ -6640,8 +6604,7 @@ function arrayToObject2(arr) {
|
|
|
6640
6604
|
function formDataToJSON(formData) {
|
|
6641
6605
|
function buildPath(path, value, target, index) {
|
|
6642
6606
|
let name = path[index++];
|
|
6643
|
-
if (name === "__proto__")
|
|
6644
|
-
return true;
|
|
6607
|
+
if (name === "__proto__") return true;
|
|
6645
6608
|
const isNumericKey = Number.isFinite(+name);
|
|
6646
6609
|
const isLast = index >= path.length;
|
|
6647
6610
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -6682,7 +6645,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
6682
6645
|
}
|
|
6683
6646
|
}
|
|
6684
6647
|
}
|
|
6685
|
-
return (
|
|
6648
|
+
return (0, JSON.stringify)(rawValue);
|
|
6686
6649
|
}
|
|
6687
6650
|
const defaults = {
|
|
6688
6651
|
transitional: transitionalDefaults,
|
|
@@ -6847,8 +6810,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
|
6847
6810
|
if (isHeaderNameFilter) {
|
|
6848
6811
|
value = header;
|
|
6849
6812
|
}
|
|
6850
|
-
if (!utils$1.isString(value))
|
|
6851
|
-
return;
|
|
6813
|
+
if (!utils$1.isString(value)) return;
|
|
6852
6814
|
if (utils$1.isString(filter2)) {
|
|
6853
6815
|
return value.indexOf(filter2) !== -1;
|
|
6854
6816
|
}
|
|
@@ -7526,7 +7488,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
7526
7488
|
};
|
|
7527
7489
|
const streamChunk = function* (chunk, chunkSize) {
|
|
7528
7490
|
let len = chunk.byteLength;
|
|
7529
|
-
if (
|
|
7491
|
+
if (len < chunkSize) {
|
|
7530
7492
|
yield chunk;
|
|
7531
7493
|
return;
|
|
7532
7494
|
}
|
|
@@ -8065,8 +8027,7 @@ class CancelToken {
|
|
|
8065
8027
|
});
|
|
8066
8028
|
const token = this;
|
|
8067
8029
|
this.promise.then((cancel) => {
|
|
8068
|
-
if (!token._listeners)
|
|
8069
|
-
return;
|
|
8030
|
+
if (!token._listeners) return;
|
|
8070
8031
|
let i = token._listeners.length;
|
|
8071
8032
|
while (i-- > 0) {
|
|
8072
8033
|
token._listeners[i](cancel);
|
|
@@ -8260,41 +8221,32 @@ var scheduler_production_min = {};
|
|
|
8260
8221
|
*/
|
|
8261
8222
|
var hasRequiredScheduler_production_min;
|
|
8262
8223
|
function requireScheduler_production_min() {
|
|
8263
|
-
if (hasRequiredScheduler_production_min)
|
|
8264
|
-
return scheduler_production_min;
|
|
8224
|
+
if (hasRequiredScheduler_production_min) return scheduler_production_min;
|
|
8265
8225
|
hasRequiredScheduler_production_min = 1;
|
|
8266
8226
|
(function(exports) {
|
|
8267
8227
|
function f2(a2, b) {
|
|
8268
8228
|
var c = a2.length;
|
|
8269
8229
|
a2.push(b);
|
|
8270
|
-
a:
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
else
|
|
8276
|
-
break a;
|
|
8277
|
-
}
|
|
8230
|
+
a: for (; 0 < c; ) {
|
|
8231
|
+
var d2 = c - 1 >>> 1, e = a2[d2];
|
|
8232
|
+
if (0 < g(e, b)) a2[d2] = b, a2[c] = e, c = d2;
|
|
8233
|
+
else break a;
|
|
8234
|
+
}
|
|
8278
8235
|
}
|
|
8279
8236
|
function h2(a2) {
|
|
8280
8237
|
return 0 === a2.length ? null : a2[0];
|
|
8281
8238
|
}
|
|
8282
8239
|
function k(a2) {
|
|
8283
|
-
if (0 === a2.length)
|
|
8284
|
-
return null;
|
|
8240
|
+
if (0 === a2.length) return null;
|
|
8285
8241
|
var b = a2[0], c = a2.pop();
|
|
8286
8242
|
if (c !== b) {
|
|
8287
8243
|
a2[0] = c;
|
|
8288
|
-
a:
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
a2[d2] = x, a2[n] = c, d2 = n;
|
|
8295
|
-
else
|
|
8296
|
-
break a;
|
|
8297
|
-
}
|
|
8244
|
+
a: for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
|
|
8245
|
+
var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
|
|
8246
|
+
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);
|
|
8247
|
+
else if (n < e && 0 > g(x, c)) a2[d2] = x, a2[n] = c, d2 = n;
|
|
8248
|
+
else break a;
|
|
8249
|
+
}
|
|
8298
8250
|
}
|
|
8299
8251
|
return b;
|
|
8300
8252
|
}
|
|
@@ -8317,25 +8269,20 @@ function requireScheduler_production_min() {
|
|
|
8317
8269
|
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
8318
8270
|
function G(a2) {
|
|
8319
8271
|
for (var b = h2(t); null !== b; ) {
|
|
8320
|
-
if (null === b.callback)
|
|
8321
|
-
|
|
8322
|
-
else
|
|
8323
|
-
k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8324
|
-
else
|
|
8325
|
-
break;
|
|
8272
|
+
if (null === b.callback) k(t);
|
|
8273
|
+
else if (b.startTime <= a2) k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8274
|
+
else break;
|
|
8326
8275
|
b = h2(t);
|
|
8327
8276
|
}
|
|
8328
8277
|
}
|
|
8329
8278
|
function H(a2) {
|
|
8330
8279
|
B = false;
|
|
8331
8280
|
G(a2);
|
|
8332
|
-
if (!A)
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
null !== b && K(H, b.startTime - a2);
|
|
8338
|
-
}
|
|
8281
|
+
if (!A) if (null !== h2(r)) A = true, I(J);
|
|
8282
|
+
else {
|
|
8283
|
+
var b = h2(t);
|
|
8284
|
+
null !== b && K(H, b.startTime - a2);
|
|
8285
|
+
}
|
|
8339
8286
|
}
|
|
8340
8287
|
function J(a2, b) {
|
|
8341
8288
|
A = false;
|
|
@@ -8353,12 +8300,10 @@ function requireScheduler_production_min() {
|
|
|
8353
8300
|
b = exports.unstable_now();
|
|
8354
8301
|
"function" === typeof e ? v2.callback = e : v2 === h2(r) && k(r);
|
|
8355
8302
|
G(b);
|
|
8356
|
-
} else
|
|
8357
|
-
k(r);
|
|
8303
|
+
} else k(r);
|
|
8358
8304
|
v2 = h2(r);
|
|
8359
8305
|
}
|
|
8360
|
-
if (null !== v2)
|
|
8361
|
-
var w = true;
|
|
8306
|
+
if (null !== v2) var w = true;
|
|
8362
8307
|
else {
|
|
8363
8308
|
var m = h2(t);
|
|
8364
8309
|
null !== m && K(H, m.startTime - b);
|
|
@@ -8383,24 +8328,21 @@ function requireScheduler_production_min() {
|
|
|
8383
8328
|
} finally {
|
|
8384
8329
|
b ? S() : (N = false, O = null);
|
|
8385
8330
|
}
|
|
8386
|
-
} else
|
|
8387
|
-
N = false;
|
|
8331
|
+
} else N = false;
|
|
8388
8332
|
}
|
|
8389
8333
|
var S;
|
|
8390
|
-
if ("function" === typeof F)
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
};
|
|
8334
|
+
if ("function" === typeof F) S = function() {
|
|
8335
|
+
F(R);
|
|
8336
|
+
};
|
|
8394
8337
|
else if ("undefined" !== typeof MessageChannel) {
|
|
8395
8338
|
var T = new MessageChannel(), U = T.port2;
|
|
8396
8339
|
T.port1.onmessage = R;
|
|
8397
8340
|
S = function() {
|
|
8398
8341
|
U.postMessage(null);
|
|
8399
8342
|
};
|
|
8400
|
-
} else
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
};
|
|
8343
|
+
} else S = function() {
|
|
8344
|
+
D(R, 0);
|
|
8345
|
+
};
|
|
8404
8346
|
function I(a2) {
|
|
8405
8347
|
O = a2;
|
|
8406
8348
|
N || (N = true, S());
|
|
@@ -8524,8 +8466,7 @@ var scheduler_development = {};
|
|
|
8524
8466
|
*/
|
|
8525
8467
|
var hasRequiredScheduler_development;
|
|
8526
8468
|
function requireScheduler_development() {
|
|
8527
|
-
if (hasRequiredScheduler_development)
|
|
8528
|
-
return scheduler_development;
|
|
8469
|
+
if (hasRequiredScheduler_development) return scheduler_development;
|
|
8529
8470
|
hasRequiredScheduler_development = 1;
|
|
8530
8471
|
(function(exports) {
|
|
8531
8472
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -8680,8 +8621,7 @@ function requireScheduler_development() {
|
|
|
8680
8621
|
var previousPriorityLevel = currentPriorityLevel;
|
|
8681
8622
|
try {
|
|
8682
8623
|
var currentTime;
|
|
8683
|
-
if (enableProfiling)
|
|
8684
|
-
;
|
|
8624
|
+
if (enableProfiling) ;
|
|
8685
8625
|
else {
|
|
8686
8626
|
return workLoop(hasTimeRemaining, initialTime2);
|
|
8687
8627
|
}
|
|
@@ -9004,19 +8944,14 @@ function E(r) {
|
|
|
9004
8944
|
}
|
|
9005
8945
|
function h(e, n) {
|
|
9006
8946
|
const o = useContext(e)[d];
|
|
9007
|
-
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o)
|
|
9008
|
-
throw new Error("useContextSelector requires special context");
|
|
8947
|
+
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o) throw new Error("useContextSelector requires special context");
|
|
9009
8948
|
const { v: { current: c }, n: { current: u }, l: s } = o, i = n(c), [p, l] = useReducer((e2, r) => {
|
|
9010
|
-
if (!r)
|
|
9011
|
-
|
|
9012
|
-
if (
|
|
9013
|
-
throw r.p;
|
|
9014
|
-
if (r.n === u)
|
|
9015
|
-
return Object.is(e2[1], i) ? e2 : [c, i];
|
|
8949
|
+
if (!r) return [c, i];
|
|
8950
|
+
if ("p" in r) throw r.p;
|
|
8951
|
+
if (r.n === u) return Object.is(e2[1], i) ? e2 : [c, i];
|
|
9016
8952
|
try {
|
|
9017
8953
|
if ("v" in r) {
|
|
9018
|
-
if (Object.is(e2[0], r.v))
|
|
9019
|
-
return e2;
|
|
8954
|
+
if (Object.is(e2[0], r.v)) return e2;
|
|
9020
8955
|
const t = n(r.v);
|
|
9021
8956
|
return Object.is(e2[1], t) ? e2 : [r.v, t];
|
|
9022
8957
|
}
|
|
@@ -9575,10 +9510,8 @@ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
|
|
|
9575
9510
|
year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
|
|
9576
9511
|
let y1 = year - 1;
|
|
9577
9512
|
let monthOffset = -2;
|
|
9578
|
-
if (month <= 2)
|
|
9579
|
-
|
|
9580
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9581
|
-
monthOffset = -1;
|
|
9513
|
+
if (month <= 2) monthOffset = 0;
|
|
9514
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
|
|
9582
9515
|
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);
|
|
9583
9516
|
}
|
|
9584
9517
|
function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
|
|
@@ -9643,10 +9576,8 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
9643
9576
|
let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
|
|
9644
9577
|
let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
|
|
9645
9578
|
let leapAdj = 2;
|
|
9646
|
-
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
|
|
9647
|
-
|
|
9648
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9649
|
-
leapAdj = 1;
|
|
9579
|
+
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
|
|
9580
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
|
|
9650
9581
|
let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
|
|
9651
9582
|
let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
|
|
9652
9583
|
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
|
|
@@ -9698,8 +9629,7 @@ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
|
|
|
9698
9629
|
}
|
|
9699
9630
|
let $14e0f24ef4ac5c92$var$localTimeZone = null;
|
|
9700
9631
|
function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
|
|
9701
|
-
if ($14e0f24ef4ac5c92$var$localTimeZone == null)
|
|
9702
|
-
$14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9632
|
+
if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9703
9633
|
return $14e0f24ef4ac5c92$var$localTimeZone;
|
|
9704
9634
|
}
|
|
9705
9635
|
function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
|
|
@@ -9714,10 +9644,8 @@ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, se
|
|
|
9714
9644
|
return date.getTime();
|
|
9715
9645
|
}
|
|
9716
9646
|
function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
|
|
9717
|
-
if (timeZone === "UTC")
|
|
9718
|
-
|
|
9719
|
-
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
|
|
9720
|
-
return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9647
|
+
if (timeZone === "UTC") return 0;
|
|
9648
|
+
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9721
9649
|
let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
|
|
9722
9650
|
let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
9723
9651
|
return utc - Math.floor(ms / 1e3) * 1e3;
|
|
@@ -9741,9 +9669,7 @@ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
|
|
|
9741
9669
|
}
|
|
9742
9670
|
let parts = formatter.formatToParts(new Date(ms));
|
|
9743
9671
|
let namedParts = {};
|
|
9744
|
-
for (let part of parts)
|
|
9745
|
-
if (part.type !== "literal")
|
|
9746
|
-
namedParts[part.type] = part.value;
|
|
9672
|
+
for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
|
|
9747
9673
|
return {
|
|
9748
9674
|
// Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
|
|
9749
9675
|
year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
|
|
@@ -9770,8 +9696,7 @@ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
|
|
|
9770
9696
|
}
|
|
9771
9697
|
function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
|
|
9772
9698
|
let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
|
|
9773
|
-
if (timeZone === "UTC")
|
|
9774
|
-
return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9699
|
+
if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9775
9700
|
if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
|
|
9776
9701
|
dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
9777
9702
|
let date2 = /* @__PURE__ */ new Date();
|
|
@@ -9784,18 +9709,16 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
|
|
|
9784
9709
|
let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9785
9710
|
let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9786
9711
|
let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
|
|
9787
|
-
if (valid.length === 1)
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
throw new RangeError("Multiple possible absolute times found");
|
|
9798
|
-
}
|
|
9712
|
+
if (valid.length === 1) return valid[0];
|
|
9713
|
+
if (valid.length > 1) switch (disambiguation) {
|
|
9714
|
+
case "compatible":
|
|
9715
|
+
case "earlier":
|
|
9716
|
+
return valid[0];
|
|
9717
|
+
case "later":
|
|
9718
|
+
return valid[valid.length - 1];
|
|
9719
|
+
case "reject":
|
|
9720
|
+
throw new RangeError("Multiple possible absolute times found");
|
|
9721
|
+
}
|
|
9799
9722
|
switch (disambiguation) {
|
|
9800
9723
|
case "earlier":
|
|
9801
9724
|
return Math.min(ms - offsetBefore, ms - offsetAfter);
|
|
@@ -9826,17 +9749,13 @@ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
|
|
|
9826
9749
|
}
|
|
9827
9750
|
function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
|
|
9828
9751
|
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
9829
|
-
if ("timeZone" in date)
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
return date;
|
|
9833
|
-
if (time)
|
|
9834
|
-
({ hour, minute, second, millisecond } = time);
|
|
9752
|
+
if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
|
|
9753
|
+
else if ("hour" in date && !time) return date;
|
|
9754
|
+
if (time) ({ hour, minute, second, millisecond } = time);
|
|
9835
9755
|
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
9836
9756
|
}
|
|
9837
9757
|
function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
9838
|
-
if (date.calendar.identifier === calendar.identifier)
|
|
9839
|
-
return date;
|
|
9758
|
+
if (date.calendar.identifier === calendar.identifier) return date;
|
|
9840
9759
|
let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
|
|
9841
9760
|
let copy = date.copy();
|
|
9842
9761
|
copy.calendar = calendar;
|
|
@@ -9849,8 +9768,7 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
|
9849
9768
|
}
|
|
9850
9769
|
function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
|
|
9851
9770
|
if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
|
|
9852
|
-
if (date.timeZone === timeZone)
|
|
9853
|
-
return date;
|
|
9771
|
+
if (date.timeZone === timeZone) return date;
|
|
9854
9772
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
9855
9773
|
}
|
|
9856
9774
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
|
|
@@ -9869,8 +9787,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9869
9787
|
let mutableDate = date.copy();
|
|
9870
9788
|
let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
|
|
9871
9789
|
$735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
|
|
9872
|
-
if (mutableDate.calendar.balanceYearMonth)
|
|
9873
|
-
mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9790
|
+
if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9874
9791
|
mutableDate.month += duration.months || 0;
|
|
9875
9792
|
$735220c2d4774dd3$var$balanceYearMonth(mutableDate);
|
|
9876
9793
|
$735220c2d4774dd3$var$constrainMonthDay(mutableDate);
|
|
@@ -9878,8 +9795,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9878
9795
|
mutableDate.day += duration.days || 0;
|
|
9879
9796
|
mutableDate.day += days;
|
|
9880
9797
|
$735220c2d4774dd3$var$balanceDay(mutableDate);
|
|
9881
|
-
if (mutableDate.calendar.balanceDate)
|
|
9882
|
-
mutableDate.calendar.balanceDate(mutableDate);
|
|
9798
|
+
if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
|
|
9883
9799
|
if (mutableDate.year < 1) {
|
|
9884
9800
|
mutableDate.year = 1;
|
|
9885
9801
|
mutableDate.month = 1;
|
|
@@ -9907,8 +9823,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9907
9823
|
}
|
|
9908
9824
|
function $735220c2d4774dd3$var$addYears(date, years) {
|
|
9909
9825
|
var _date_calendar_isInverseEra, _date_calendar;
|
|
9910
|
-
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
|
|
9911
|
-
years = -years;
|
|
9826
|
+
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;
|
|
9912
9827
|
date.year += years;
|
|
9913
9828
|
}
|
|
9914
9829
|
function $735220c2d4774dd3$var$balanceYearMonth(date) {
|
|
@@ -9939,16 +9854,13 @@ function $735220c2d4774dd3$var$constrainMonthDay(date) {
|
|
|
9939
9854
|
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
|
|
9940
9855
|
}
|
|
9941
9856
|
function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
|
|
9942
|
-
if (date.calendar.constrainDate)
|
|
9943
|
-
date.calendar.constrainDate(date);
|
|
9857
|
+
if (date.calendar.constrainDate) date.calendar.constrainDate(date);
|
|
9944
9858
|
date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
|
|
9945
9859
|
$735220c2d4774dd3$var$constrainMonthDay(date);
|
|
9946
9860
|
}
|
|
9947
9861
|
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
9948
9862
|
let inverseDuration = {};
|
|
9949
|
-
for (let key in duration)
|
|
9950
|
-
if (typeof duration[key] === "number")
|
|
9951
|
-
inverseDuration[key] = -duration[key];
|
|
9863
|
+
for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
|
|
9952
9864
|
return inverseDuration;
|
|
9953
9865
|
}
|
|
9954
9866
|
function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
@@ -9956,27 +9868,19 @@ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
|
9956
9868
|
}
|
|
9957
9869
|
function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
|
|
9958
9870
|
let mutableDate = date.copy();
|
|
9959
|
-
if (fields.era != null)
|
|
9960
|
-
|
|
9961
|
-
if (fields.
|
|
9962
|
-
|
|
9963
|
-
if (fields.month != null)
|
|
9964
|
-
mutableDate.month = fields.month;
|
|
9965
|
-
if (fields.day != null)
|
|
9966
|
-
mutableDate.day = fields.day;
|
|
9871
|
+
if (fields.era != null) mutableDate.era = fields.era;
|
|
9872
|
+
if (fields.year != null) mutableDate.year = fields.year;
|
|
9873
|
+
if (fields.month != null) mutableDate.month = fields.month;
|
|
9874
|
+
if (fields.day != null) mutableDate.day = fields.day;
|
|
9967
9875
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
|
|
9968
9876
|
return mutableDate;
|
|
9969
9877
|
}
|
|
9970
9878
|
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
9971
9879
|
let mutableValue = value.copy();
|
|
9972
|
-
if (fields.hour != null)
|
|
9973
|
-
|
|
9974
|
-
if (fields.
|
|
9975
|
-
|
|
9976
|
-
if (fields.second != null)
|
|
9977
|
-
mutableValue.second = fields.second;
|
|
9978
|
-
if (fields.millisecond != null)
|
|
9979
|
-
mutableValue.millisecond = fields.millisecond;
|
|
9880
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
9881
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
9882
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
9883
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
9980
9884
|
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
9981
9885
|
return mutableValue;
|
|
9982
9886
|
}
|
|
@@ -9999,8 +9903,7 @@ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
|
9999
9903
|
}
|
|
10000
9904
|
function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
|
|
10001
9905
|
let result = a2 % b;
|
|
10002
|
-
if (result < 0)
|
|
10003
|
-
result += b;
|
|
9906
|
+
if (result < 0) result += b;
|
|
10004
9907
|
return result;
|
|
10005
9908
|
}
|
|
10006
9909
|
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
@@ -10016,8 +9919,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10016
9919
|
case "era": {
|
|
10017
9920
|
let eras = value.calendar.getEras();
|
|
10018
9921
|
let eraIndex = eras.indexOf(value.era);
|
|
10019
|
-
if (eraIndex < 0)
|
|
10020
|
-
throw new Error("Invalid era: " + value.era);
|
|
9922
|
+
if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
|
|
10021
9923
|
eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
|
|
10022
9924
|
mutable.era = eras[eraIndex];
|
|
10023
9925
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
@@ -10025,13 +9927,10 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10025
9927
|
}
|
|
10026
9928
|
case "year":
|
|
10027
9929
|
var _mutable_calendar_isInverseEra, _mutable_calendar;
|
|
10028
|
-
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
|
|
10029
|
-
amount = -amount;
|
|
9930
|
+
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;
|
|
10030
9931
|
mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
|
|
10031
|
-
if (mutable.year === -Infinity)
|
|
10032
|
-
|
|
10033
|
-
if (mutable.calendar.balanceYearMonth)
|
|
10034
|
-
mutable.calendar.balanceYearMonth(mutable, value);
|
|
9932
|
+
if (mutable.year === -Infinity) mutable.year = 1;
|
|
9933
|
+
if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
|
|
10035
9934
|
break;
|
|
10036
9935
|
case "month":
|
|
10037
9936
|
mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
|
|
@@ -10042,8 +9941,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10042
9941
|
default:
|
|
10043
9942
|
throw new Error("Unsupported field " + field);
|
|
10044
9943
|
}
|
|
10045
|
-
if (value.calendar.balanceDate)
|
|
10046
|
-
value.calendar.balanceDate(mutable);
|
|
9944
|
+
if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
|
|
10047
9945
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
10048
9946
|
return mutable;
|
|
10049
9947
|
}
|
|
@@ -10079,21 +9977,15 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10079
9977
|
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
|
|
10080
9978
|
if (round) {
|
|
10081
9979
|
value += Math.sign(amount);
|
|
10082
|
-
if (value < min)
|
|
10083
|
-
value = max2;
|
|
9980
|
+
if (value < min) value = max2;
|
|
10084
9981
|
let div = Math.abs(amount);
|
|
10085
|
-
if (amount > 0)
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
value = Math.floor(value / div) * div;
|
|
10089
|
-
if (value > max2)
|
|
10090
|
-
value = min;
|
|
9982
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
9983
|
+
else value = Math.floor(value / div) * div;
|
|
9984
|
+
if (value > max2) value = min;
|
|
10091
9985
|
} else {
|
|
10092
9986
|
value += amount;
|
|
10093
|
-
if (value < min)
|
|
10094
|
-
|
|
10095
|
-
else if (value > max2)
|
|
10096
|
-
value = min + (value - max2 - 1);
|
|
9987
|
+
if (value < min) value = max2 - (min - value - 1);
|
|
9988
|
+
else if (value > max2) value = min + (value - max2 - 1);
|
|
10097
9989
|
}
|
|
10098
9990
|
return value;
|
|
10099
9991
|
}
|
|
@@ -10169,27 +10061,23 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10169
10061
|
function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
|
|
10170
10062
|
let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
|
|
10171
10063
|
let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
|
|
10172
|
-
if (res.compare(plainDateTime) === 0)
|
|
10173
|
-
return dateTime;
|
|
10064
|
+
if (res.compare(plainDateTime) === 0) return dateTime;
|
|
10174
10065
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
|
|
10175
10066
|
return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
|
|
10176
10067
|
}
|
|
10177
10068
|
const $fae977aafc393c5c$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
10178
10069
|
function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
|
|
10179
10070
|
let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
|
|
10180
|
-
if (!m)
|
|
10181
|
-
throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10071
|
+
if (!m) throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10182
10072
|
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);
|
|
10183
10073
|
date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
|
|
10184
10074
|
var _m_;
|
|
10185
|
-
if (m[8])
|
|
10186
|
-
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;
|
|
10075
|
+
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;
|
|
10187
10076
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
10188
10077
|
}
|
|
10189
10078
|
function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
|
|
10190
10079
|
let val = Number(value);
|
|
10191
|
-
if (val < min || val > max2)
|
|
10192
|
-
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10080
|
+
if (val < min || val > max2) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10193
10081
|
return val;
|
|
10194
10082
|
}
|
|
10195
10083
|
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
@@ -10224,8 +10112,7 @@ function _class_private_field_init(obj, privateMap, value) {
|
|
|
10224
10112
|
function $35ea8db9cb2ccb90$var$shiftArgs(args) {
|
|
10225
10113
|
let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
|
|
10226
10114
|
let era;
|
|
10227
|
-
if (typeof args[0] === "string")
|
|
10228
|
-
era = args.shift();
|
|
10115
|
+
if (typeof args[0] === "string") era = args.shift();
|
|
10229
10116
|
else {
|
|
10230
10117
|
let eras = calendar.getEras();
|
|
10231
10118
|
era = eras[eras.length - 1];
|
|
@@ -10245,10 +10132,8 @@ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
|
|
|
10245
10132
|
class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
|
|
10246
10133
|
/** Returns a copy of this date. */
|
|
10247
10134
|
copy() {
|
|
10248
|
-
if (this.era)
|
|
10249
|
-
|
|
10250
|
-
else
|
|
10251
|
-
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10135
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
10136
|
+
else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10252
10137
|
}
|
|
10253
10138
|
/** Returns a new `CalendarDate` with the given duration added to it. */
|
|
10254
10139
|
add(duration) {
|
|
@@ -10299,10 +10184,8 @@ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
|
|
|
10299
10184
|
class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
10300
10185
|
/** Returns a copy of this date. */
|
|
10301
10186
|
copy() {
|
|
10302
|
-
if (this.era)
|
|
10303
|
-
|
|
10304
|
-
else
|
|
10305
|
-
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10187
|
+
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);
|
|
10188
|
+
else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10306
10189
|
}
|
|
10307
10190
|
/** Returns a new `CalendarDateTime` with the given duration added to it. */
|
|
10308
10191
|
add(duration) {
|
|
@@ -10342,8 +10225,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
|
10342
10225
|
/** 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. */
|
|
10343
10226
|
compare(b) {
|
|
10344
10227
|
let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
|
|
10345
|
-
if (res === 0)
|
|
10346
|
-
return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10228
|
+
if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10347
10229
|
return res;
|
|
10348
10230
|
}
|
|
10349
10231
|
constructor(...args) {
|
|
@@ -10368,10 +10250,8 @@ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
|
|
|
10368
10250
|
class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
|
|
10369
10251
|
/** Returns a copy of this date. */
|
|
10370
10252
|
copy() {
|
|
10371
|
-
if (this.era)
|
|
10372
|
-
|
|
10373
|
-
else
|
|
10374
|
-
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);
|
|
10253
|
+
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);
|
|
10254
|
+
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);
|
|
10375
10255
|
}
|
|
10376
10256
|
/** Returns a new `ZonedDateTime` with the given duration added to it. */
|
|
10377
10257
|
add(duration) {
|
|
@@ -10442,32 +10322,44 @@ const [Provider, useHistory] = createContext("History", {
|
|
|
10442
10322
|
throw new Error("You must use the `HistoryProvider` to access the `goBack` function.");
|
|
10443
10323
|
}
|
|
10444
10324
|
});
|
|
10445
|
-
React.forwardRef(
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10325
|
+
React.forwardRef(
|
|
10326
|
+
({ disabled, fallback = "" }, ref2) => {
|
|
10327
|
+
const { formatMessage } = useIntl();
|
|
10328
|
+
const navigate = useNavigate();
|
|
10329
|
+
const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
|
|
10330
|
+
const goBack = useHistory("BackButton", (state) => state.goBack);
|
|
10331
|
+
const history = useHistory("BackButton", (state) => state.history);
|
|
10332
|
+
const currentLocationIndex = useHistory("BackButton", (state) => state.currentLocationIndex);
|
|
10333
|
+
const hasFallback = fallback !== "";
|
|
10334
|
+
const shouldBeDisabled = disabled || !canGoBack && !hasFallback;
|
|
10335
|
+
const handleClick = (e) => {
|
|
10336
|
+
e.preventDefault();
|
|
10337
|
+
if (canGoBack) {
|
|
10338
|
+
goBack();
|
|
10339
|
+
} else if (hasFallback) {
|
|
10340
|
+
navigate(fallback);
|
|
10341
|
+
}
|
|
10342
|
+
};
|
|
10343
|
+
const historyTo = canGoBack ? history.at(currentLocationIndex - 2) : void 0;
|
|
10344
|
+
const toWithFallback = historyTo ?? fallback;
|
|
10345
|
+
return /* @__PURE__ */ jsx(
|
|
10346
|
+
Link,
|
|
10347
|
+
{
|
|
10348
|
+
ref: ref2,
|
|
10349
|
+
tag: NavLink,
|
|
10350
|
+
to: toWithFallback,
|
|
10351
|
+
onClick: handleClick,
|
|
10352
|
+
disabled: shouldBeDisabled,
|
|
10353
|
+
"aria-disabled": shouldBeDisabled,
|
|
10354
|
+
startIcon: /* @__PURE__ */ jsx(ArrowLeft, {}),
|
|
10355
|
+
children: formatMessage({
|
|
10356
|
+
id: "global.back",
|
|
10357
|
+
defaultMessage: "Back"
|
|
10358
|
+
})
|
|
10359
|
+
}
|
|
10360
|
+
);
|
|
10361
|
+
}
|
|
10362
|
+
);
|
|
10471
10363
|
new QueryClient({
|
|
10472
10364
|
defaultOptions: {
|
|
10473
10365
|
queries: {
|
|
@@ -11240,12 +11132,13 @@ const EmailInput = forwardRef(
|
|
|
11240
11132
|
const MemoizedEmailInput = memo(EmailInput);
|
|
11241
11133
|
const EnumerationInput = forwardRef(
|
|
11242
11134
|
({ name, required, label, hint, labelAction, options = [], ...props }, ref2) => {
|
|
11135
|
+
const { formatMessage } = useIntl();
|
|
11243
11136
|
const field = useField(name);
|
|
11244
11137
|
const fieldRef = useFocusInputField(name);
|
|
11245
11138
|
const composedRefs = useComposedRefs(ref2, fieldRef);
|
|
11246
11139
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11247
11140
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11248
|
-
/* @__PURE__ */
|
|
11141
|
+
/* @__PURE__ */ jsxs(
|
|
11249
11142
|
SingleSelect,
|
|
11250
11143
|
{
|
|
11251
11144
|
ref: composedRefs,
|
|
@@ -11254,9 +11147,15 @@ const EnumerationInput = forwardRef(
|
|
|
11254
11147
|
},
|
|
11255
11148
|
value: field.value,
|
|
11256
11149
|
...props,
|
|
11257
|
-
children:
|
|
11258
|
-
|
|
11259
|
-
|
|
11150
|
+
children: [
|
|
11151
|
+
/* @__PURE__ */ jsx(SingleSelectOption, { value: "", disabled: required, hidden: required, children: formatMessage({
|
|
11152
|
+
id: "components.InputSelect.option.placeholder",
|
|
11153
|
+
defaultMessage: "Choose here"
|
|
11154
|
+
}) }),
|
|
11155
|
+
options.map(({ value, label: label2, disabled, hidden }) => {
|
|
11156
|
+
return /* @__PURE__ */ jsx(SingleSelectOption, { value, disabled, hidden, children: label2 ?? value }, value);
|
|
11157
|
+
})
|
|
11158
|
+
]
|
|
11260
11159
|
}
|
|
11261
11160
|
),
|
|
11262
11161
|
/* @__PURE__ */ jsx(Field.Hint, {}),
|
|
@@ -11981,4 +11880,4 @@ export {
|
|
|
11981
11880
|
Layouts as L,
|
|
11982
11881
|
useTracking as u
|
|
11983
11882
|
};
|
|
11984
|
-
//# sourceMappingURL=index-
|
|
11883
|
+
//# sourceMappingURL=index-CV0X429t-CkJgvpmE.mjs.map
|