storybook 9.0.0-alpha.1 → 9.0.0-alpha.10
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/README.md +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +119 -0
- package/dist/bin/index.js +113 -0
- package/dist/builder-manager/index.cjs +2140 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2162 -0
- package/dist/channels/index.cjs +1913 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1881 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +80 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +64 -0
- package/dist/common/index.cjs +20569 -0
- package/dist/common/index.d.ts +949 -0
- package/dist/common/index.js +20654 -0
- package/dist/components/index.cjs +27924 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +24673 -0
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/manager.js +5545 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +55 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +426 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +38183 -0
- package/dist/core-server/index.d.ts +720 -0
- package/dist/core-server/index.js +38272 -0
- package/dist/core-server/presets/common-manager.js +20 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10231 -0
- package/dist/core-server/presets/common-preset.js +10309 -0
- package/dist/csf/index.cjs +179 -0
- package/dist/csf/index.d.ts +750 -0
- package/dist/csf/index.js +172 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +2891 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +2876 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3485 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4965 -0
- package/dist/manager/globals-module-info.cjs +817 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +804 -0
- package/dist/manager/globals-runtime.js +77536 -0
- package/dist/manager/globals.cjs +47 -0
- package/dist/manager/globals.d.ts +24 -0
- package/dist/manager/globals.js +34 -0
- package/dist/manager/runtime.js +12323 -0
- package/dist/manager-api/index.cjs +11074 -0
- package/dist/manager-api/index.d.ts +1512 -0
- package/dist/manager-api/index.js +4835 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +99 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +38 -0
- package/dist/preview/globals.d.ts +15 -0
- package/dist/preview/globals.js +25 -0
- package/dist/preview/runtime.js +43629 -0
- package/dist/preview-api/index.cjs +5224 -0
- package/dist/preview-api/index.d.ts +1093 -0
- package/dist/preview-api/index.js +5292 -0
- package/dist/preview-errors.cjs +503 -0
- package/dist/preview-errors.d.ts +212 -0
- package/dist/preview-errors.js +449 -0
- package/dist/router/index.cjs +3296 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1843 -0
- package/dist/server-errors.cjs +727 -0
- package/dist/server-errors.d.ts +296 -0
- package/dist/server-errors.js +728 -0
- package/dist/telemetry/index.cjs +2756 -0
- package/dist/telemetry/index.d.ts +133 -0
- package/dist/telemetry/index.js +2797 -0
- package/dist/test/index.cjs +35685 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33751 -0
- package/dist/test/preview.cjs +15869 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14440 -0
- package/dist/test/spy.cjs +257 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +239 -0
- package/dist/theming/create.cjs +232 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +216 -0
- package/dist/theming/index.cjs +2665 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +2485 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2795 -0
- package/dist/types/index.js +7 -0
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/manager.js +400 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +69 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +518 -209
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,3296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var Nr = Object.create;
|
|
3
|
+
var je = Object.defineProperty;
|
|
4
|
+
var Lr = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var _r = Object.getOwnPropertyNames;
|
|
6
|
+
var Mr = Object.getPrototypeOf, Tr = Object.prototype.hasOwnProperty;
|
|
7
|
+
var r = (e, t) => je(e, "name", { value: t, configurable: !0 });
|
|
8
|
+
var ne = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), kr = (e, t) => {
|
|
9
|
+
for (var a in t)
|
|
10
|
+
je(e, a, { get: t[a], enumerable: !0 });
|
|
11
|
+
}, ft = (e, t, a, n) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
13
|
+
for (let l of _r(t))
|
|
14
|
+
!Tr.call(e, l) && l !== a && je(e, l, { get: () => t[l], enumerable: !(n = Lr(t, l)) || n.enumerable });
|
|
15
|
+
return e;
|
|
16
|
+
};
|
|
17
|
+
var we = (e, t, a) => (a = e != null ? Nr(Mr(e)) : {}, ft(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
t || !e || !e.__esModule ? je(a, "default", { value: e, enumerable: !0 }) : a,
|
|
23
|
+
e
|
|
24
|
+
)), Ir = (e) => ft(je({}, "__esModule", { value: !0 }), e);
|
|
25
|
+
|
|
26
|
+
// ../node_modules/map-or-similar/src/similar.js
|
|
27
|
+
var Bt = ne((Fn, It) => {
|
|
28
|
+
function be() {
|
|
29
|
+
return this.list = [], this.lastItem = void 0, this.size = 0, this;
|
|
30
|
+
}
|
|
31
|
+
r(be, "Similar");
|
|
32
|
+
be.prototype.get = function(e) {
|
|
33
|
+
var t;
|
|
34
|
+
if (this.lastItem && this.isEqual(this.lastItem.key, e))
|
|
35
|
+
return this.lastItem.val;
|
|
36
|
+
if (t = this.indexOf(e), t >= 0)
|
|
37
|
+
return this.lastItem = this.list[t], this.list[t].val;
|
|
38
|
+
};
|
|
39
|
+
be.prototype.set = function(e, t) {
|
|
40
|
+
var a;
|
|
41
|
+
return this.lastItem && this.isEqual(this.lastItem.key, e) ? (this.lastItem.val = t, this) : (a = this.indexOf(e), a >= 0 ? (this.lastItem =
|
|
42
|
+
this.list[a], this.list[a].val = t, this) : (this.lastItem = { key: e, val: t }, this.list.push(this.lastItem), this.size++, this));
|
|
43
|
+
};
|
|
44
|
+
be.prototype.delete = function(e) {
|
|
45
|
+
var t;
|
|
46
|
+
if (this.lastItem && this.isEqual(this.lastItem.key, e) && (this.lastItem = void 0), t = this.indexOf(e), t >= 0)
|
|
47
|
+
return this.size--, this.list.splice(t, 1)[0];
|
|
48
|
+
};
|
|
49
|
+
be.prototype.has = function(e) {
|
|
50
|
+
var t;
|
|
51
|
+
return this.lastItem && this.isEqual(this.lastItem.key, e) ? !0 : (t = this.indexOf(e), t >= 0 ? (this.lastItem = this.list[t], !0) : !1);
|
|
52
|
+
};
|
|
53
|
+
be.prototype.forEach = function(e, t) {
|
|
54
|
+
var a;
|
|
55
|
+
for (a = 0; a < this.size; a++)
|
|
56
|
+
e.call(t || this, this.list[a].val, this.list[a].key, this);
|
|
57
|
+
};
|
|
58
|
+
be.prototype.indexOf = function(e) {
|
|
59
|
+
var t;
|
|
60
|
+
for (t = 0; t < this.size; t++)
|
|
61
|
+
if (this.isEqual(this.list[t].key, e))
|
|
62
|
+
return t;
|
|
63
|
+
return -1;
|
|
64
|
+
};
|
|
65
|
+
be.prototype.isEqual = function(e, t) {
|
|
66
|
+
return e === t || e !== e && t !== t;
|
|
67
|
+
};
|
|
68
|
+
It.exports = be;
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// ../node_modules/map-or-similar/src/map-or-similar.js
|
|
72
|
+
var Wt = ne((zn, Dt) => {
|
|
73
|
+
Dt.exports = function(e) {
|
|
74
|
+
if (typeof Map != "function" || e) {
|
|
75
|
+
var t = Bt();
|
|
76
|
+
return new t();
|
|
77
|
+
} else
|
|
78
|
+
return /* @__PURE__ */ new Map();
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// ../node_modules/memoizerific/src/memoizerific.js
|
|
83
|
+
var $t = ne((qn, Ft) => {
|
|
84
|
+
var Ht = Wt();
|
|
85
|
+
Ft.exports = function(e) {
|
|
86
|
+
var t = new Ht(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), a = [];
|
|
87
|
+
return function(n) {
|
|
88
|
+
var l = /* @__PURE__ */ r(function() {
|
|
89
|
+
var v = t, z, B, U = arguments.length - 1, J = Array(U + 1), F = !0, x;
|
|
90
|
+
if ((l.numArgs || l.numArgs === 0) && l.numArgs !== U + 1)
|
|
91
|
+
throw new Error("Memoizerific functions should always be called with the same number of arguments");
|
|
92
|
+
for (x = 0; x < U; x++) {
|
|
93
|
+
if (J[x] = {
|
|
94
|
+
cacheItem: v,
|
|
95
|
+
arg: arguments[x]
|
|
96
|
+
}, v.has(arguments[x])) {
|
|
97
|
+
v = v.get(arguments[x]);
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
F = !1, z = new Ht(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), v.set(arguments[x], z), v = z;
|
|
101
|
+
}
|
|
102
|
+
return F && (v.has(arguments[U]) ? B = v.get(arguments[U]) : F = !1), F || (B = n.apply(null, arguments), v.set(arguments[U], B)), e >
|
|
103
|
+
0 && (J[U] = {
|
|
104
|
+
cacheItem: v,
|
|
105
|
+
arg: arguments[U]
|
|
106
|
+
}, F ? Br(a, J) : a.push(J), a.length > e && Dr(a.shift())), l.wasMemoized = F, l.numArgs = U + 1, B;
|
|
107
|
+
}, "memoizerific");
|
|
108
|
+
return l.limit = e, l.wasMemoized = !1, l.cache = t, l.lru = a, l;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
function Br(e, t) {
|
|
112
|
+
var a = e.length, n = t.length, l, v, z;
|
|
113
|
+
for (v = 0; v < a; v++) {
|
|
114
|
+
for (l = !0, z = 0; z < n; z++)
|
|
115
|
+
if (!Wr(e[v][z].arg, t[z].arg)) {
|
|
116
|
+
l = !1;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
if (l)
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
e.push(e.splice(v, 1)[0]);
|
|
123
|
+
}
|
|
124
|
+
r(Br, "moveToMostRecentLru");
|
|
125
|
+
function Dr(e) {
|
|
126
|
+
var t = e.length, a = e[t - 1], n, l;
|
|
127
|
+
for (a.cacheItem.delete(a.arg), l = t - 2; l >= 0 && (a = e[l], n = a.cacheItem.get(a.arg), !n || !n.size); l--)
|
|
128
|
+
a.cacheItem.delete(a.arg);
|
|
129
|
+
}
|
|
130
|
+
r(Dr, "removeCachedResult");
|
|
131
|
+
function Wr(e, t) {
|
|
132
|
+
return e === t || e !== e && t !== t;
|
|
133
|
+
}
|
|
134
|
+
r(Wr, "isEqual");
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// ../node_modules/picoquery/lib/string-util.js
|
|
138
|
+
var Je = ne((Ke) => {
|
|
139
|
+
"use strict";
|
|
140
|
+
Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
141
|
+
Ke.encodeString = Fr;
|
|
142
|
+
var he = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Hr = new Int8Array([
|
|
143
|
+
0,
|
|
144
|
+
0,
|
|
145
|
+
0,
|
|
146
|
+
0,
|
|
147
|
+
0,
|
|
148
|
+
0,
|
|
149
|
+
0,
|
|
150
|
+
0,
|
|
151
|
+
0,
|
|
152
|
+
0,
|
|
153
|
+
0,
|
|
154
|
+
0,
|
|
155
|
+
0,
|
|
156
|
+
0,
|
|
157
|
+
0,
|
|
158
|
+
0,
|
|
159
|
+
0,
|
|
160
|
+
0,
|
|
161
|
+
0,
|
|
162
|
+
0,
|
|
163
|
+
0,
|
|
164
|
+
0,
|
|
165
|
+
0,
|
|
166
|
+
0,
|
|
167
|
+
0,
|
|
168
|
+
0,
|
|
169
|
+
0,
|
|
170
|
+
0,
|
|
171
|
+
0,
|
|
172
|
+
0,
|
|
173
|
+
0,
|
|
174
|
+
0,
|
|
175
|
+
0,
|
|
176
|
+
1,
|
|
177
|
+
0,
|
|
178
|
+
0,
|
|
179
|
+
0,
|
|
180
|
+
0,
|
|
181
|
+
0,
|
|
182
|
+
1,
|
|
183
|
+
1,
|
|
184
|
+
1,
|
|
185
|
+
1,
|
|
186
|
+
0,
|
|
187
|
+
0,
|
|
188
|
+
1,
|
|
189
|
+
1,
|
|
190
|
+
0,
|
|
191
|
+
1,
|
|
192
|
+
1,
|
|
193
|
+
1,
|
|
194
|
+
1,
|
|
195
|
+
1,
|
|
196
|
+
1,
|
|
197
|
+
1,
|
|
198
|
+
1,
|
|
199
|
+
1,
|
|
200
|
+
1,
|
|
201
|
+
0,
|
|
202
|
+
0,
|
|
203
|
+
0,
|
|
204
|
+
0,
|
|
205
|
+
0,
|
|
206
|
+
0,
|
|
207
|
+
0,
|
|
208
|
+
1,
|
|
209
|
+
1,
|
|
210
|
+
1,
|
|
211
|
+
1,
|
|
212
|
+
1,
|
|
213
|
+
1,
|
|
214
|
+
1,
|
|
215
|
+
1,
|
|
216
|
+
1,
|
|
217
|
+
1,
|
|
218
|
+
1,
|
|
219
|
+
1,
|
|
220
|
+
1,
|
|
221
|
+
1,
|
|
222
|
+
1,
|
|
223
|
+
1,
|
|
224
|
+
1,
|
|
225
|
+
1,
|
|
226
|
+
1,
|
|
227
|
+
1,
|
|
228
|
+
1,
|
|
229
|
+
1,
|
|
230
|
+
1,
|
|
231
|
+
1,
|
|
232
|
+
1,
|
|
233
|
+
1,
|
|
234
|
+
0,
|
|
235
|
+
0,
|
|
236
|
+
0,
|
|
237
|
+
0,
|
|
238
|
+
1,
|
|
239
|
+
0,
|
|
240
|
+
1,
|
|
241
|
+
1,
|
|
242
|
+
1,
|
|
243
|
+
1,
|
|
244
|
+
1,
|
|
245
|
+
1,
|
|
246
|
+
1,
|
|
247
|
+
1,
|
|
248
|
+
1,
|
|
249
|
+
1,
|
|
250
|
+
1,
|
|
251
|
+
1,
|
|
252
|
+
1,
|
|
253
|
+
1,
|
|
254
|
+
1,
|
|
255
|
+
1,
|
|
256
|
+
1,
|
|
257
|
+
1,
|
|
258
|
+
1,
|
|
259
|
+
1,
|
|
260
|
+
1,
|
|
261
|
+
1,
|
|
262
|
+
1,
|
|
263
|
+
1,
|
|
264
|
+
1,
|
|
265
|
+
1,
|
|
266
|
+
0,
|
|
267
|
+
0,
|
|
268
|
+
0,
|
|
269
|
+
1,
|
|
270
|
+
0
|
|
271
|
+
]);
|
|
272
|
+
function Fr(e) {
|
|
273
|
+
let t = e.length;
|
|
274
|
+
if (t === 0)
|
|
275
|
+
return "";
|
|
276
|
+
let a = "", n = 0, l = 0;
|
|
277
|
+
e: for (; l < t; l++) {
|
|
278
|
+
let v = e.charCodeAt(l);
|
|
279
|
+
for (; v < 128; ) {
|
|
280
|
+
if (Hr[v] !== 1 && (n < l && (a += e.slice(n, l)), n = l + 1, a += he[v]), ++l === t)
|
|
281
|
+
break e;
|
|
282
|
+
v = e.charCodeAt(l);
|
|
283
|
+
}
|
|
284
|
+
if (n < l && (a += e.slice(n, l)), v < 2048) {
|
|
285
|
+
n = l + 1, a += he[192 | v >> 6] + he[128 | v & 63];
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
if (v < 55296 || v >= 57344) {
|
|
289
|
+
n = l + 1, a += he[224 | v >> 12] + he[128 | v >> 6 & 63] + he[128 | v & 63];
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if (++l, l >= t)
|
|
293
|
+
throw new Error("URI malformed");
|
|
294
|
+
let z = e.charCodeAt(l) & 1023;
|
|
295
|
+
n = l + 1, v = 65536 + ((v & 1023) << 10 | z), a += he[240 | v >> 18] + he[128 | v >> 12 & 63] + he[128 | v >> 6 & 63] + he[128 | v & 63];
|
|
296
|
+
}
|
|
297
|
+
return n === 0 ? e : n < t ? a + e.slice(n) : a;
|
|
298
|
+
}
|
|
299
|
+
r(Fr, "encodeString");
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
// ../node_modules/picoquery/lib/shared.js
|
|
303
|
+
var Ne = ne((pe) => {
|
|
304
|
+
"use strict";
|
|
305
|
+
Object.defineProperty(pe, "__esModule", { value: !0 });
|
|
306
|
+
pe.defaultOptions = pe.defaultShouldSerializeObject = pe.defaultValueSerializer = void 0;
|
|
307
|
+
var Qe = Je(), $r = /* @__PURE__ */ r((e) => {
|
|
308
|
+
switch (typeof e) {
|
|
309
|
+
case "string":
|
|
310
|
+
return (0, Qe.encodeString)(e);
|
|
311
|
+
case "bigint":
|
|
312
|
+
case "boolean":
|
|
313
|
+
return "" + e;
|
|
314
|
+
case "number":
|
|
315
|
+
if (Number.isFinite(e))
|
|
316
|
+
return e < 1e21 ? "" + e : (0, Qe.encodeString)("" + e);
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
return e instanceof Date ? (0, Qe.encodeString)(e.toISOString()) : "";
|
|
320
|
+
}, "defaultValueSerializer");
|
|
321
|
+
pe.defaultValueSerializer = $r;
|
|
322
|
+
var zr = /* @__PURE__ */ r((e) => e instanceof Date, "defaultShouldSerializeObject");
|
|
323
|
+
pe.defaultShouldSerializeObject = zr;
|
|
324
|
+
var zt = /* @__PURE__ */ r((e) => e, "identityFunc");
|
|
325
|
+
pe.defaultOptions = {
|
|
326
|
+
nesting: !0,
|
|
327
|
+
nestingSyntax: "dot",
|
|
328
|
+
arrayRepeat: !1,
|
|
329
|
+
arrayRepeatSyntax: "repeat",
|
|
330
|
+
delimiter: 38,
|
|
331
|
+
valueDeserializer: zt,
|
|
332
|
+
valueSerializer: pe.defaultValueSerializer,
|
|
333
|
+
keyDeserializer: zt,
|
|
334
|
+
shouldSerializeObject: pe.defaultShouldSerializeObject
|
|
335
|
+
};
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
// ../node_modules/picoquery/lib/object-util.js
|
|
339
|
+
var Ye = ne((Le) => {
|
|
340
|
+
"use strict";
|
|
341
|
+
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
342
|
+
Le.getDeepObject = Vr;
|
|
343
|
+
Le.stringifyObject = qt;
|
|
344
|
+
var Pe = Ne(), qr = Je();
|
|
345
|
+
function Ur(e) {
|
|
346
|
+
return e === "__proto__" || e === "constructor" || e === "prototype";
|
|
347
|
+
}
|
|
348
|
+
r(Ur, "isPrototypeKey");
|
|
349
|
+
function Vr(e, t, a, n, l) {
|
|
350
|
+
if (Ur(t))
|
|
351
|
+
return e;
|
|
352
|
+
let v = e[t];
|
|
353
|
+
return typeof v == "object" && v !== null ? v : !n && (l || typeof a == "number" || typeof a == "string" && a * 0 === 0 && a.indexOf(".") ===
|
|
354
|
+
-1) ? e[t] = [] : e[t] = {};
|
|
355
|
+
}
|
|
356
|
+
r(Vr, "getDeepObject");
|
|
357
|
+
var Kr = 20, Jr = "[]", Qr = "[", Yr = "]", Xr = ".";
|
|
358
|
+
function qt(e, t, a = 0, n, l) {
|
|
359
|
+
let { nestingSyntax: v = Pe.defaultOptions.nestingSyntax, arrayRepeat: z = Pe.defaultOptions.arrayRepeat, arrayRepeatSyntax: B = Pe.defaultOptions.
|
|
360
|
+
arrayRepeatSyntax, nesting: U = Pe.defaultOptions.nesting, delimiter: J = Pe.defaultOptions.delimiter, valueSerializer: F = Pe.defaultOptions.
|
|
361
|
+
valueSerializer, shouldSerializeObject: x = Pe.defaultOptions.shouldSerializeObject } = t, O = typeof J == "number" ? String.fromCharCode(
|
|
362
|
+
J) : J, j = l === !0 && z, E = v === "dot" || v === "js" && !l;
|
|
363
|
+
if (a > Kr)
|
|
364
|
+
return "";
|
|
365
|
+
let L = "", s = !0, i = !1;
|
|
366
|
+
for (let h in e) {
|
|
367
|
+
let c = e[h], y;
|
|
368
|
+
n ? (y = n, j ? B === "bracket" && (y += Jr) : E ? (y += Xr, y += h) : (y += Qr, y += h, y += Yr)) : y = h, s || (L += O), typeof c ==
|
|
369
|
+
"object" && c !== null && !x(c) ? (i = c.pop !== void 0, (U || z && i) && (L += qt(c, t, a + 1, y, i))) : (L += (0, qr.encodeString)(y),
|
|
370
|
+
L += "=", L += F(c, h)), s && (s = !1);
|
|
371
|
+
}
|
|
372
|
+
return L;
|
|
373
|
+
}
|
|
374
|
+
r(qt, "stringifyObject");
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
// ../node_modules/fast-decode-uri-component/index.js
|
|
378
|
+
var Jt = ne((Gn, Kt) => {
|
|
379
|
+
"use strict";
|
|
380
|
+
var Ut = 12, Gr = 0, Xe = [
|
|
381
|
+
// The first part of the table maps bytes to character to a transition.
|
|
382
|
+
0,
|
|
383
|
+
0,
|
|
384
|
+
0,
|
|
385
|
+
0,
|
|
386
|
+
0,
|
|
387
|
+
0,
|
|
388
|
+
0,
|
|
389
|
+
0,
|
|
390
|
+
0,
|
|
391
|
+
0,
|
|
392
|
+
0,
|
|
393
|
+
0,
|
|
394
|
+
0,
|
|
395
|
+
0,
|
|
396
|
+
0,
|
|
397
|
+
0,
|
|
398
|
+
0,
|
|
399
|
+
0,
|
|
400
|
+
0,
|
|
401
|
+
0,
|
|
402
|
+
0,
|
|
403
|
+
0,
|
|
404
|
+
0,
|
|
405
|
+
0,
|
|
406
|
+
0,
|
|
407
|
+
0,
|
|
408
|
+
0,
|
|
409
|
+
0,
|
|
410
|
+
0,
|
|
411
|
+
0,
|
|
412
|
+
0,
|
|
413
|
+
0,
|
|
414
|
+
0,
|
|
415
|
+
0,
|
|
416
|
+
0,
|
|
417
|
+
0,
|
|
418
|
+
0,
|
|
419
|
+
0,
|
|
420
|
+
0,
|
|
421
|
+
0,
|
|
422
|
+
0,
|
|
423
|
+
0,
|
|
424
|
+
0,
|
|
425
|
+
0,
|
|
426
|
+
0,
|
|
427
|
+
0,
|
|
428
|
+
0,
|
|
429
|
+
0,
|
|
430
|
+
0,
|
|
431
|
+
0,
|
|
432
|
+
0,
|
|
433
|
+
0,
|
|
434
|
+
0,
|
|
435
|
+
0,
|
|
436
|
+
0,
|
|
437
|
+
0,
|
|
438
|
+
0,
|
|
439
|
+
0,
|
|
440
|
+
0,
|
|
441
|
+
0,
|
|
442
|
+
0,
|
|
443
|
+
0,
|
|
444
|
+
0,
|
|
445
|
+
0,
|
|
446
|
+
0,
|
|
447
|
+
0,
|
|
448
|
+
0,
|
|
449
|
+
0,
|
|
450
|
+
0,
|
|
451
|
+
0,
|
|
452
|
+
0,
|
|
453
|
+
0,
|
|
454
|
+
0,
|
|
455
|
+
0,
|
|
456
|
+
0,
|
|
457
|
+
0,
|
|
458
|
+
0,
|
|
459
|
+
0,
|
|
460
|
+
0,
|
|
461
|
+
0,
|
|
462
|
+
0,
|
|
463
|
+
0,
|
|
464
|
+
0,
|
|
465
|
+
0,
|
|
466
|
+
0,
|
|
467
|
+
0,
|
|
468
|
+
0,
|
|
469
|
+
0,
|
|
470
|
+
0,
|
|
471
|
+
0,
|
|
472
|
+
0,
|
|
473
|
+
0,
|
|
474
|
+
0,
|
|
475
|
+
0,
|
|
476
|
+
0,
|
|
477
|
+
0,
|
|
478
|
+
0,
|
|
479
|
+
0,
|
|
480
|
+
0,
|
|
481
|
+
0,
|
|
482
|
+
0,
|
|
483
|
+
0,
|
|
484
|
+
0,
|
|
485
|
+
0,
|
|
486
|
+
0,
|
|
487
|
+
0,
|
|
488
|
+
0,
|
|
489
|
+
0,
|
|
490
|
+
0,
|
|
491
|
+
0,
|
|
492
|
+
0,
|
|
493
|
+
0,
|
|
494
|
+
0,
|
|
495
|
+
0,
|
|
496
|
+
0,
|
|
497
|
+
0,
|
|
498
|
+
0,
|
|
499
|
+
0,
|
|
500
|
+
0,
|
|
501
|
+
0,
|
|
502
|
+
0,
|
|
503
|
+
0,
|
|
504
|
+
0,
|
|
505
|
+
0,
|
|
506
|
+
0,
|
|
507
|
+
0,
|
|
508
|
+
0,
|
|
509
|
+
0,
|
|
510
|
+
1,
|
|
511
|
+
1,
|
|
512
|
+
1,
|
|
513
|
+
1,
|
|
514
|
+
1,
|
|
515
|
+
1,
|
|
516
|
+
1,
|
|
517
|
+
1,
|
|
518
|
+
1,
|
|
519
|
+
1,
|
|
520
|
+
1,
|
|
521
|
+
1,
|
|
522
|
+
1,
|
|
523
|
+
1,
|
|
524
|
+
1,
|
|
525
|
+
1,
|
|
526
|
+
2,
|
|
527
|
+
2,
|
|
528
|
+
2,
|
|
529
|
+
2,
|
|
530
|
+
2,
|
|
531
|
+
2,
|
|
532
|
+
2,
|
|
533
|
+
2,
|
|
534
|
+
2,
|
|
535
|
+
2,
|
|
536
|
+
2,
|
|
537
|
+
2,
|
|
538
|
+
2,
|
|
539
|
+
2,
|
|
540
|
+
2,
|
|
541
|
+
2,
|
|
542
|
+
3,
|
|
543
|
+
3,
|
|
544
|
+
3,
|
|
545
|
+
3,
|
|
546
|
+
3,
|
|
547
|
+
3,
|
|
548
|
+
3,
|
|
549
|
+
3,
|
|
550
|
+
3,
|
|
551
|
+
3,
|
|
552
|
+
3,
|
|
553
|
+
3,
|
|
554
|
+
3,
|
|
555
|
+
3,
|
|
556
|
+
3,
|
|
557
|
+
3,
|
|
558
|
+
3,
|
|
559
|
+
3,
|
|
560
|
+
3,
|
|
561
|
+
3,
|
|
562
|
+
3,
|
|
563
|
+
3,
|
|
564
|
+
3,
|
|
565
|
+
3,
|
|
566
|
+
3,
|
|
567
|
+
3,
|
|
568
|
+
3,
|
|
569
|
+
3,
|
|
570
|
+
3,
|
|
571
|
+
3,
|
|
572
|
+
3,
|
|
573
|
+
3,
|
|
574
|
+
4,
|
|
575
|
+
4,
|
|
576
|
+
5,
|
|
577
|
+
5,
|
|
578
|
+
5,
|
|
579
|
+
5,
|
|
580
|
+
5,
|
|
581
|
+
5,
|
|
582
|
+
5,
|
|
583
|
+
5,
|
|
584
|
+
5,
|
|
585
|
+
5,
|
|
586
|
+
5,
|
|
587
|
+
5,
|
|
588
|
+
5,
|
|
589
|
+
5,
|
|
590
|
+
5,
|
|
591
|
+
5,
|
|
592
|
+
5,
|
|
593
|
+
5,
|
|
594
|
+
5,
|
|
595
|
+
5,
|
|
596
|
+
5,
|
|
597
|
+
5,
|
|
598
|
+
5,
|
|
599
|
+
5,
|
|
600
|
+
5,
|
|
601
|
+
5,
|
|
602
|
+
5,
|
|
603
|
+
5,
|
|
604
|
+
5,
|
|
605
|
+
5,
|
|
606
|
+
6,
|
|
607
|
+
7,
|
|
608
|
+
7,
|
|
609
|
+
7,
|
|
610
|
+
7,
|
|
611
|
+
7,
|
|
612
|
+
7,
|
|
613
|
+
7,
|
|
614
|
+
7,
|
|
615
|
+
7,
|
|
616
|
+
7,
|
|
617
|
+
7,
|
|
618
|
+
7,
|
|
619
|
+
8,
|
|
620
|
+
7,
|
|
621
|
+
7,
|
|
622
|
+
10,
|
|
623
|
+
9,
|
|
624
|
+
9,
|
|
625
|
+
9,
|
|
626
|
+
11,
|
|
627
|
+
4,
|
|
628
|
+
4,
|
|
629
|
+
4,
|
|
630
|
+
4,
|
|
631
|
+
4,
|
|
632
|
+
4,
|
|
633
|
+
4,
|
|
634
|
+
4,
|
|
635
|
+
4,
|
|
636
|
+
4,
|
|
637
|
+
4,
|
|
638
|
+
// The second part of the table maps a state to a new state when adding a
|
|
639
|
+
// transition.
|
|
640
|
+
0,
|
|
641
|
+
0,
|
|
642
|
+
0,
|
|
643
|
+
0,
|
|
644
|
+
0,
|
|
645
|
+
0,
|
|
646
|
+
0,
|
|
647
|
+
0,
|
|
648
|
+
0,
|
|
649
|
+
0,
|
|
650
|
+
0,
|
|
651
|
+
0,
|
|
652
|
+
12,
|
|
653
|
+
0,
|
|
654
|
+
0,
|
|
655
|
+
0,
|
|
656
|
+
0,
|
|
657
|
+
24,
|
|
658
|
+
36,
|
|
659
|
+
48,
|
|
660
|
+
60,
|
|
661
|
+
72,
|
|
662
|
+
84,
|
|
663
|
+
96,
|
|
664
|
+
0,
|
|
665
|
+
12,
|
|
666
|
+
12,
|
|
667
|
+
12,
|
|
668
|
+
0,
|
|
669
|
+
0,
|
|
670
|
+
0,
|
|
671
|
+
0,
|
|
672
|
+
0,
|
|
673
|
+
0,
|
|
674
|
+
0,
|
|
675
|
+
0,
|
|
676
|
+
0,
|
|
677
|
+
0,
|
|
678
|
+
0,
|
|
679
|
+
24,
|
|
680
|
+
0,
|
|
681
|
+
0,
|
|
682
|
+
0,
|
|
683
|
+
0,
|
|
684
|
+
0,
|
|
685
|
+
0,
|
|
686
|
+
0,
|
|
687
|
+
0,
|
|
688
|
+
0,
|
|
689
|
+
24,
|
|
690
|
+
24,
|
|
691
|
+
24,
|
|
692
|
+
0,
|
|
693
|
+
0,
|
|
694
|
+
0,
|
|
695
|
+
0,
|
|
696
|
+
0,
|
|
697
|
+
0,
|
|
698
|
+
0,
|
|
699
|
+
0,
|
|
700
|
+
0,
|
|
701
|
+
24,
|
|
702
|
+
24,
|
|
703
|
+
0,
|
|
704
|
+
0,
|
|
705
|
+
0,
|
|
706
|
+
0,
|
|
707
|
+
0,
|
|
708
|
+
0,
|
|
709
|
+
0,
|
|
710
|
+
0,
|
|
711
|
+
0,
|
|
712
|
+
0,
|
|
713
|
+
48,
|
|
714
|
+
48,
|
|
715
|
+
48,
|
|
716
|
+
0,
|
|
717
|
+
0,
|
|
718
|
+
0,
|
|
719
|
+
0,
|
|
720
|
+
0,
|
|
721
|
+
0,
|
|
722
|
+
0,
|
|
723
|
+
0,
|
|
724
|
+
0,
|
|
725
|
+
0,
|
|
726
|
+
48,
|
|
727
|
+
48,
|
|
728
|
+
0,
|
|
729
|
+
0,
|
|
730
|
+
0,
|
|
731
|
+
0,
|
|
732
|
+
0,
|
|
733
|
+
0,
|
|
734
|
+
0,
|
|
735
|
+
0,
|
|
736
|
+
0,
|
|
737
|
+
48,
|
|
738
|
+
0,
|
|
739
|
+
0,
|
|
740
|
+
0,
|
|
741
|
+
0,
|
|
742
|
+
0,
|
|
743
|
+
0,
|
|
744
|
+
0,
|
|
745
|
+
0,
|
|
746
|
+
0,
|
|
747
|
+
0,
|
|
748
|
+
// The third part maps the current transition to a mask that needs to apply
|
|
749
|
+
// to the byte.
|
|
750
|
+
127,
|
|
751
|
+
63,
|
|
752
|
+
63,
|
|
753
|
+
63,
|
|
754
|
+
0,
|
|
755
|
+
31,
|
|
756
|
+
15,
|
|
757
|
+
15,
|
|
758
|
+
15,
|
|
759
|
+
7,
|
|
760
|
+
7,
|
|
761
|
+
7
|
|
762
|
+
];
|
|
763
|
+
function Zr(e) {
|
|
764
|
+
var t = e.indexOf("%");
|
|
765
|
+
if (t === -1) return e;
|
|
766
|
+
for (var a = e.length, n = "", l = 0, v = 0, z = t, B = Ut; t > -1 && t < a; ) {
|
|
767
|
+
var U = Vt(e[t + 1], 4), J = Vt(e[t + 2], 0), F = U | J, x = Xe[F];
|
|
768
|
+
if (B = Xe[256 + B + x], v = v << 6 | F & Xe[364 + x], B === Ut)
|
|
769
|
+
n += e.slice(l, z), n += v <= 65535 ? String.fromCharCode(v) : String.fromCharCode(
|
|
770
|
+
55232 + (v >> 10),
|
|
771
|
+
56320 + (v & 1023)
|
|
772
|
+
), v = 0, l = t + 3, t = z = e.indexOf("%", l);
|
|
773
|
+
else {
|
|
774
|
+
if (B === Gr)
|
|
775
|
+
return null;
|
|
776
|
+
if (t += 3, t < a && e.charCodeAt(t) === 37) continue;
|
|
777
|
+
return null;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
return n + e.slice(l);
|
|
781
|
+
}
|
|
782
|
+
r(Zr, "decodeURIComponent");
|
|
783
|
+
var en = {
|
|
784
|
+
0: 0,
|
|
785
|
+
1: 1,
|
|
786
|
+
2: 2,
|
|
787
|
+
3: 3,
|
|
788
|
+
4: 4,
|
|
789
|
+
5: 5,
|
|
790
|
+
6: 6,
|
|
791
|
+
7: 7,
|
|
792
|
+
8: 8,
|
|
793
|
+
9: 9,
|
|
794
|
+
a: 10,
|
|
795
|
+
A: 10,
|
|
796
|
+
b: 11,
|
|
797
|
+
B: 11,
|
|
798
|
+
c: 12,
|
|
799
|
+
C: 12,
|
|
800
|
+
d: 13,
|
|
801
|
+
D: 13,
|
|
802
|
+
e: 14,
|
|
803
|
+
E: 14,
|
|
804
|
+
f: 15,
|
|
805
|
+
F: 15
|
|
806
|
+
};
|
|
807
|
+
function Vt(e, t) {
|
|
808
|
+
var a = en[e];
|
|
809
|
+
return a === void 0 ? 255 : a << t;
|
|
810
|
+
}
|
|
811
|
+
r(Vt, "hexCodeToInt");
|
|
812
|
+
Kt.exports = Zr;
|
|
813
|
+
});
|
|
814
|
+
|
|
815
|
+
// ../node_modules/picoquery/lib/parse.js
|
|
816
|
+
var Gt = ne((ye) => {
|
|
817
|
+
"use strict";
|
|
818
|
+
var tn = ye && ye.__importDefault || function(e) {
|
|
819
|
+
return e && e.__esModule ? e : { default: e };
|
|
820
|
+
};
|
|
821
|
+
Object.defineProperty(ye, "__esModule", { value: !0 });
|
|
822
|
+
ye.numberValueDeserializer = ye.numberKeyDeserializer = void 0;
|
|
823
|
+
ye.parse = an;
|
|
824
|
+
var _e = Ye(), Oe = Ne(), Qt = tn(Jt()), rn = /* @__PURE__ */ r((e) => {
|
|
825
|
+
let t = Number(e);
|
|
826
|
+
return Number.isNaN(t) ? e : t;
|
|
827
|
+
}, "numberKeyDeserializer");
|
|
828
|
+
ye.numberKeyDeserializer = rn;
|
|
829
|
+
var nn = /* @__PURE__ */ r((e) => {
|
|
830
|
+
let t = Number(e);
|
|
831
|
+
return Number.isNaN(t) ? e : t;
|
|
832
|
+
}, "numberValueDeserializer");
|
|
833
|
+
ye.numberValueDeserializer = nn;
|
|
834
|
+
var Yt = /\+/g, Xt = /* @__PURE__ */ r(function() {
|
|
835
|
+
}, "Empty");
|
|
836
|
+
Xt.prototype = /* @__PURE__ */ Object.create(null);
|
|
837
|
+
function Me(e, t, a, n, l) {
|
|
838
|
+
let v = e.substring(t, a);
|
|
839
|
+
return n && (v = v.replace(Yt, " ")), l && (v = (0, Qt.default)(v) || v), v;
|
|
840
|
+
}
|
|
841
|
+
r(Me, "computeKeySlice");
|
|
842
|
+
function an(e, t) {
|
|
843
|
+
let { valueDeserializer: a = Oe.defaultOptions.valueDeserializer, keyDeserializer: n = Oe.defaultOptions.keyDeserializer, arrayRepeatSyntax: l = Oe.
|
|
844
|
+
defaultOptions.arrayRepeatSyntax, nesting: v = Oe.defaultOptions.nesting, arrayRepeat: z = Oe.defaultOptions.arrayRepeat, nestingSyntax: B = Oe.
|
|
845
|
+
defaultOptions.nestingSyntax, delimiter: U = Oe.defaultOptions.delimiter } = t ?? {}, J = typeof U == "string" ? U.charCodeAt(0) : U, F = B ===
|
|
846
|
+
"js", x = new Xt();
|
|
847
|
+
if (typeof e != "string")
|
|
848
|
+
return x;
|
|
849
|
+
let O = e.length, j = "", E = -1, L = -1, s = -1, i = x, h, c = "", y = "", S = !1, N = !1, I = !1, W = !1, Y = !1, _ = !1, V = !1, $ = 0,
|
|
850
|
+
w = -1, P = -1, H = -1;
|
|
851
|
+
for (let o = 0; o < O + 1; o++) {
|
|
852
|
+
if ($ = o !== O ? e.charCodeAt(o) : J, $ === J) {
|
|
853
|
+
if (V = L > E, V || (L = o), s !== L - 1 && (y = Me(e, s + 1, w > -1 ? w : L, I, S), c = n(y), h !== void 0 && (i = (0, _e.getDeepObject)(
|
|
854
|
+
i, h, c, F && Y, F && _))), V || c !== "") {
|
|
855
|
+
V && (j = e.slice(L + 1, o), W && (j = j.replace(Yt, " ")), N && (j = (0, Qt.default)(j) || j));
|
|
856
|
+
let u = a(j, c);
|
|
857
|
+
if (z) {
|
|
858
|
+
let g = i[c];
|
|
859
|
+
g === void 0 ? w > -1 ? i[c] = [u] : i[c] = u : g.pop ? g.push(u) : i[c] = [g, u];
|
|
860
|
+
} else
|
|
861
|
+
i[c] = u;
|
|
862
|
+
}
|
|
863
|
+
j = "", E = o, L = o, S = !1, N = !1, I = !1, W = !1, Y = !1, _ = !1, w = -1, s = o, i = x, h = void 0, c = "";
|
|
864
|
+
} else $ === 93 ? (z && l === "bracket" && H === 91 && (w = P), v && (B === "index" || F) && L <= E && (s !== P && (y = Me(e, s + 1, o,
|
|
865
|
+
I, S), c = n(y), h !== void 0 && (i = (0, _e.getDeepObject)(i, h, c, void 0, F)), h = c, I = !1, S = !1), s = o, _ = !0, Y = !1)) : $ ===
|
|
866
|
+
46 ? v && (B === "dot" || F) && L <= E && (s !== P && (y = Me(e, s + 1, o, I, S), c = n(y), h !== void 0 && (i = (0, _e.getDeepObject)(
|
|
867
|
+
i, h, c, F)), h = c, I = !1, S = !1), Y = !0, _ = !1, s = o) : $ === 91 ? v && (B === "index" || F) && L <= E && (s !== P && (y = Me(e,
|
|
868
|
+
s + 1, o, I, S), c = n(y), F && h !== void 0 && (i = (0, _e.getDeepObject)(i, h, c, F)), h = c, I = !1, S = !1, Y = !1, _ = !0), s = o) :
|
|
869
|
+
$ === 61 ? L <= E ? L = o : N = !0 : $ === 43 ? L > E ? W = !0 : I = !0 : $ === 37 && (L > E ? N = !0 : S = !0);
|
|
870
|
+
P = o, H = $;
|
|
871
|
+
}
|
|
872
|
+
return x;
|
|
873
|
+
}
|
|
874
|
+
r(an, "parse");
|
|
875
|
+
});
|
|
876
|
+
|
|
877
|
+
// ../node_modules/picoquery/lib/stringify.js
|
|
878
|
+
var Zt = ne((Ge) => {
|
|
879
|
+
"use strict";
|
|
880
|
+
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
881
|
+
Ge.stringify = sn;
|
|
882
|
+
var on = Ye();
|
|
883
|
+
function sn(e, t) {
|
|
884
|
+
if (e === null || typeof e != "object")
|
|
885
|
+
return "";
|
|
886
|
+
let a = t ?? {};
|
|
887
|
+
return (0, on.stringifyObject)(e, a);
|
|
888
|
+
}
|
|
889
|
+
r(sn, "stringify");
|
|
890
|
+
});
|
|
891
|
+
|
|
892
|
+
// ../node_modules/picoquery/lib/main.js
|
|
893
|
+
var er = ne((fe) => {
|
|
894
|
+
"use strict";
|
|
895
|
+
var un = fe && fe.__createBinding || (Object.create ? function(e, t, a, n) {
|
|
896
|
+
n === void 0 && (n = a);
|
|
897
|
+
var l = Object.getOwnPropertyDescriptor(t, a);
|
|
898
|
+
(!l || ("get" in l ? !t.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
899
|
+
return t[a];
|
|
900
|
+
}, "get") }), Object.defineProperty(e, n, l);
|
|
901
|
+
} : function(e, t, a, n) {
|
|
902
|
+
n === void 0 && (n = a), e[n] = t[a];
|
|
903
|
+
}), ln = fe && fe.__exportStar || function(e, t) {
|
|
904
|
+
for (var a in e) a !== "default" && !Object.prototype.hasOwnProperty.call(t, a) && un(t, e, a);
|
|
905
|
+
};
|
|
906
|
+
Object.defineProperty(fe, "__esModule", { value: !0 });
|
|
907
|
+
fe.stringify = fe.parse = void 0;
|
|
908
|
+
var cn = Gt();
|
|
909
|
+
Object.defineProperty(fe, "parse", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
910
|
+
return cn.parse;
|
|
911
|
+
}, "get") });
|
|
912
|
+
var fn = Zt();
|
|
913
|
+
Object.defineProperty(fe, "stringify", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
914
|
+
return fn.stringify;
|
|
915
|
+
}, "get") });
|
|
916
|
+
ln(Ne(), fe);
|
|
917
|
+
});
|
|
918
|
+
|
|
919
|
+
// ../node_modules/ts-dedent/dist/index.js
|
|
920
|
+
var rr = ne((Se) => {
|
|
921
|
+
"use strict";
|
|
922
|
+
Object.defineProperty(Se, "__esModule", { value: !0 });
|
|
923
|
+
Se.dedent = void 0;
|
|
924
|
+
function tr(e) {
|
|
925
|
+
for (var t = [], a = 1; a < arguments.length; a++)
|
|
926
|
+
t[a - 1] = arguments[a];
|
|
927
|
+
var n = Array.from(typeof e == "string" ? [e] : e);
|
|
928
|
+
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
929
|
+
var l = n.reduce(function(B, U) {
|
|
930
|
+
var J = U.match(/\n([\t ]+|(?!\s).)/g);
|
|
931
|
+
return J ? B.concat(J.map(function(F) {
|
|
932
|
+
var x, O;
|
|
933
|
+
return (O = (x = F.match(/[\t ]/g)) === null || x === void 0 ? void 0 : x.length) !== null && O !== void 0 ? O : 0;
|
|
934
|
+
})) : B;
|
|
935
|
+
}, []);
|
|
936
|
+
if (l.length) {
|
|
937
|
+
var v = new RegExp(`
|
|
938
|
+
[ ]{` + Math.min.apply(Math, l) + "}", "g");
|
|
939
|
+
n = n.map(function(B) {
|
|
940
|
+
return B.replace(v, `
|
|
941
|
+
`);
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
n[0] = n[0].replace(/^\r?\n/, "");
|
|
945
|
+
var z = n[0];
|
|
946
|
+
return t.forEach(function(B, U) {
|
|
947
|
+
var J = z.match(/(?:^|\n)( *)$/), F = J ? J[1] : "", x = B;
|
|
948
|
+
typeof B == "string" && B.includes(`
|
|
949
|
+
`) && (x = String(B).split(`
|
|
950
|
+
`).map(function(O, j) {
|
|
951
|
+
return j === 0 ? O : "" + F + O;
|
|
952
|
+
}).join(`
|
|
953
|
+
`)), z += x + n[U + 1];
|
|
954
|
+
}), z;
|
|
955
|
+
}
|
|
956
|
+
r(tr, "dedent");
|
|
957
|
+
Se.dedent = tr;
|
|
958
|
+
Se.default = tr;
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
// ../node_modules/history/umd/history.production.min.js
|
|
962
|
+
var lr = ne((Ie, ur) => {
|
|
963
|
+
(function(e, t) {
|
|
964
|
+
typeof Ie == "object" && typeof ur < "u" ? t(Ie) : typeof define == "function" && define.amd ? define(["exports"], t) : t((e = typeof globalThis <
|
|
965
|
+
"u" ? globalThis : e || self).HistoryLibrary = {});
|
|
966
|
+
})(Ie, function(e) {
|
|
967
|
+
"use strict";
|
|
968
|
+
function t() {
|
|
969
|
+
return (t = Object.assign || function(x) {
|
|
970
|
+
for (var O = 1; O < arguments.length; O++) {
|
|
971
|
+
var j = arguments[O];
|
|
972
|
+
for (var E in j) Object.prototype.hasOwnProperty.call(j, E) && (x[E] = j[E]);
|
|
973
|
+
}
|
|
974
|
+
return x;
|
|
975
|
+
}).apply(this, arguments);
|
|
976
|
+
}
|
|
977
|
+
r(t, "n");
|
|
978
|
+
var a;
|
|
979
|
+
e.Action = void 0, (a = e.Action || (e.Action = {})).Pop = "POP", a.Push = "PUSH", a.Replace = "REPLACE";
|
|
980
|
+
var n = "beforeunload", l = "popstate";
|
|
981
|
+
function v(x, O, j) {
|
|
982
|
+
return Math.min(Math.max(x, O), j);
|
|
983
|
+
}
|
|
984
|
+
r(v, "a");
|
|
985
|
+
function z(x) {
|
|
986
|
+
x.preventDefault(), x.returnValue = "";
|
|
987
|
+
}
|
|
988
|
+
r(z, "i");
|
|
989
|
+
function B() {
|
|
990
|
+
var x = [];
|
|
991
|
+
return { get length() {
|
|
992
|
+
return x.length;
|
|
993
|
+
}, push: /* @__PURE__ */ r(function(O) {
|
|
994
|
+
return x.push(O), function() {
|
|
995
|
+
x = x.filter(function(j) {
|
|
996
|
+
return j !== O;
|
|
997
|
+
});
|
|
998
|
+
};
|
|
999
|
+
}, "push"), call: /* @__PURE__ */ r(function(O) {
|
|
1000
|
+
x.forEach(function(j) {
|
|
1001
|
+
return j && j(O);
|
|
1002
|
+
});
|
|
1003
|
+
}, "call") };
|
|
1004
|
+
}
|
|
1005
|
+
r(B, "c");
|
|
1006
|
+
function U() {
|
|
1007
|
+
return Math.random().toString(36).substr(2, 8);
|
|
1008
|
+
}
|
|
1009
|
+
r(U, "u");
|
|
1010
|
+
function J(x) {
|
|
1011
|
+
var O = x.pathname, j = O === void 0 ? "/" : O, E = x.search, L = E === void 0 ? "" : E, s = x.hash, i = s === void 0 ? "" : s;
|
|
1012
|
+
return L && L !== "?" && (j += L.charAt(0) === "?" ? L : "?" + L), i && i !== "#" && (j += i.charAt(0) === "#" ? i : "#" + i), j;
|
|
1013
|
+
}
|
|
1014
|
+
r(J, "l");
|
|
1015
|
+
function F(x) {
|
|
1016
|
+
var O = {};
|
|
1017
|
+
if (x) {
|
|
1018
|
+
var j = x.indexOf("#");
|
|
1019
|
+
j >= 0 && (O.hash = x.substr(j), x = x.substr(0, j));
|
|
1020
|
+
var E = x.indexOf("?");
|
|
1021
|
+
E >= 0 && (O.search = x.substr(E), x = x.substr(0, E)), x && (O.pathname = x);
|
|
1022
|
+
}
|
|
1023
|
+
return O;
|
|
1024
|
+
}
|
|
1025
|
+
r(F, "f"), e.createBrowserHistory = function(x) {
|
|
1026
|
+
x === void 0 && (x = {});
|
|
1027
|
+
var O = x.window, j = O === void 0 ? document.defaultView : O, E = j.history;
|
|
1028
|
+
function L() {
|
|
1029
|
+
var w = j.location, P = w.pathname, H = w.search, o = w.hash, u = E.state || {};
|
|
1030
|
+
return [u.idx, { pathname: P, search: H, hash: o, state: u.usr || null, key: u.key || "default" }];
|
|
1031
|
+
}
|
|
1032
|
+
r(L, "p");
|
|
1033
|
+
var s = null;
|
|
1034
|
+
j.addEventListener(l, function() {
|
|
1035
|
+
if (s) N.call(s), s = null;
|
|
1036
|
+
else {
|
|
1037
|
+
var w = e.Action.Pop, P = L(), H = P[0], o = P[1];
|
|
1038
|
+
if (N.length) {
|
|
1039
|
+
if (H != null) {
|
|
1040
|
+
var u = c - H;
|
|
1041
|
+
u && (s = { action: w, location: o, retry: /* @__PURE__ */ r(function() {
|
|
1042
|
+
$(-1 * u);
|
|
1043
|
+
}, "retry") }, $(u));
|
|
1044
|
+
}
|
|
1045
|
+
} else V(w);
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
var i = e.Action.Pop, h = L(), c = h[0], y = h[1], S = B(), N = B();
|
|
1049
|
+
function I(w) {
|
|
1050
|
+
return typeof w == "string" ? w : J(w);
|
|
1051
|
+
}
|
|
1052
|
+
r(I, "P");
|
|
1053
|
+
function W(w, P) {
|
|
1054
|
+
return P === void 0 && (P = null), t({ pathname: y.pathname, hash: "", search: "" }, typeof w == "string" ? F(w) : w, { state: P, key: U() });
|
|
1055
|
+
}
|
|
1056
|
+
r(W, "k");
|
|
1057
|
+
function Y(w, P) {
|
|
1058
|
+
return [{ usr: w.state, key: w.key, idx: P }, I(w)];
|
|
1059
|
+
}
|
|
1060
|
+
r(Y, "x");
|
|
1061
|
+
function _(w, P, H) {
|
|
1062
|
+
return !N.length || (N.call({ action: w, location: P, retry: H }), !1);
|
|
1063
|
+
}
|
|
1064
|
+
r(_, "w");
|
|
1065
|
+
function V(w) {
|
|
1066
|
+
i = w;
|
|
1067
|
+
var P = L();
|
|
1068
|
+
c = P[0], y = P[1], S.call({ action: i, location: y });
|
|
1069
|
+
}
|
|
1070
|
+
r(V, "E");
|
|
1071
|
+
function $(w) {
|
|
1072
|
+
E.go(w);
|
|
1073
|
+
}
|
|
1074
|
+
return r($, "H"), c == null && (c = 0, E.replaceState(t({}, E.state, { idx: c }), "")), { get action() {
|
|
1075
|
+
return i;
|
|
1076
|
+
}, get location() {
|
|
1077
|
+
return y;
|
|
1078
|
+
}, createHref: I, push: /* @__PURE__ */ r(function w(P, H) {
|
|
1079
|
+
var o = e.Action.Push, u = W(P, H);
|
|
1080
|
+
if (_(o, u, function() {
|
|
1081
|
+
w(P, H);
|
|
1082
|
+
})) {
|
|
1083
|
+
var g = Y(u, c + 1), d = g[0], m = g[1];
|
|
1084
|
+
try {
|
|
1085
|
+
E.pushState(d, "", m);
|
|
1086
|
+
} catch {
|
|
1087
|
+
j.location.assign(m);
|
|
1088
|
+
}
|
|
1089
|
+
V(o);
|
|
1090
|
+
}
|
|
1091
|
+
}, "n"), replace: /* @__PURE__ */ r(function w(P, H) {
|
|
1092
|
+
var o = e.Action.Replace, u = W(P, H);
|
|
1093
|
+
if (_(o, u, function() {
|
|
1094
|
+
w(P, H);
|
|
1095
|
+
})) {
|
|
1096
|
+
var g = Y(u, c), d = g[0], m = g[1];
|
|
1097
|
+
E.replaceState(d, "", m), V(o);
|
|
1098
|
+
}
|
|
1099
|
+
}, "n"), go: $, back: /* @__PURE__ */ r(function() {
|
|
1100
|
+
$(-1);
|
|
1101
|
+
}, "back"), forward: /* @__PURE__ */ r(function() {
|
|
1102
|
+
$(1);
|
|
1103
|
+
}, "forward"), listen: /* @__PURE__ */ r(function(w) {
|
|
1104
|
+
return S.push(w);
|
|
1105
|
+
}, "listen"), block: /* @__PURE__ */ r(function(w) {
|
|
1106
|
+
var P = N.push(w);
|
|
1107
|
+
return N.length === 1 && j.addEventListener(n, z), function() {
|
|
1108
|
+
P(), N.length || j.removeEventListener(n, z);
|
|
1109
|
+
};
|
|
1110
|
+
}, "block") };
|
|
1111
|
+
}, e.createHashHistory = function(x) {
|
|
1112
|
+
x === void 0 && (x = {});
|
|
1113
|
+
var O = x.window, j = O === void 0 ? document.defaultView : O, E = j.history;
|
|
1114
|
+
function L() {
|
|
1115
|
+
var P = F(j.location.hash.substr(1)), H = P.pathname, o = H === void 0 ? "/" : H, u = P.search, g = u === void 0 ? "" : u, d = P.hash,
|
|
1116
|
+
m = d === void 0 ? "" : d, T = E.state || {};
|
|
1117
|
+
return [T.idx, { pathname: o, search: g, hash: m, state: T.usr || null, key: T.key || "default" }];
|
|
1118
|
+
}
|
|
1119
|
+
r(L, "p");
|
|
1120
|
+
var s = null;
|
|
1121
|
+
function i() {
|
|
1122
|
+
if (s) I.call(s), s = null;
|
|
1123
|
+
else {
|
|
1124
|
+
var P = e.Action.Pop, H = L(), o = H[0], u = H[1];
|
|
1125
|
+
if (I.length) {
|
|
1126
|
+
if (o != null) {
|
|
1127
|
+
var g = y - o;
|
|
1128
|
+
g && (s = { action: P, location: u, retry: /* @__PURE__ */ r(function() {
|
|
1129
|
+
w(-1 * g);
|
|
1130
|
+
}, "retry") }, w(g));
|
|
1131
|
+
}
|
|
1132
|
+
} else $(P);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
r(i, "d"), j.addEventListener(l, i), j.addEventListener("hashchange", function() {
|
|
1136
|
+
J(L()[1]) !== J(S) && i();
|
|
1137
|
+
});
|
|
1138
|
+
var h = e.Action.Pop, c = L(), y = c[0], S = c[1], N = B(), I = B();
|
|
1139
|
+
function W(P) {
|
|
1140
|
+
return function() {
|
|
1141
|
+
var H = document.querySelector("base"), o = "";
|
|
1142
|
+
if (H && H.getAttribute("href")) {
|
|
1143
|
+
var u = j.location.href, g = u.indexOf("#");
|
|
1144
|
+
o = g === -1 ? u : u.slice(0, g);
|
|
1145
|
+
}
|
|
1146
|
+
return o;
|
|
1147
|
+
}() + "#" + (typeof P == "string" ? P : J(P));
|
|
1148
|
+
}
|
|
1149
|
+
r(W, "k");
|
|
1150
|
+
function Y(P, H) {
|
|
1151
|
+
return H === void 0 && (H = null), t({ pathname: S.pathname, hash: "", search: "" }, typeof P == "string" ? F(P) : P, { state: H, key: U() });
|
|
1152
|
+
}
|
|
1153
|
+
r(Y, "x");
|
|
1154
|
+
function _(P, H) {
|
|
1155
|
+
return [{ usr: P.state, key: P.key, idx: H }, W(P)];
|
|
1156
|
+
}
|
|
1157
|
+
r(_, "w");
|
|
1158
|
+
function V(P, H, o) {
|
|
1159
|
+
return !I.length || (I.call({ action: P, location: H, retry: o }), !1);
|
|
1160
|
+
}
|
|
1161
|
+
r(V, "E");
|
|
1162
|
+
function $(P) {
|
|
1163
|
+
h = P;
|
|
1164
|
+
var H = L();
|
|
1165
|
+
y = H[0], S = H[1], N.call({ action: h, location: S });
|
|
1166
|
+
}
|
|
1167
|
+
r($, "H");
|
|
1168
|
+
function w(P) {
|
|
1169
|
+
E.go(P);
|
|
1170
|
+
}
|
|
1171
|
+
return r(w, "L"), y == null && (y = 0, E.replaceState(t({}, E.state, { idx: y }), "")), { get action() {
|
|
1172
|
+
return h;
|
|
1173
|
+
}, get location() {
|
|
1174
|
+
return S;
|
|
1175
|
+
}, createHref: W, push: /* @__PURE__ */ r(function P(H, o) {
|
|
1176
|
+
var u = e.Action.Push, g = Y(H, o);
|
|
1177
|
+
if (V(u, g, function() {
|
|
1178
|
+
P(H, o);
|
|
1179
|
+
})) {
|
|
1180
|
+
var d = _(g, y + 1), m = d[0], T = d[1];
|
|
1181
|
+
try {
|
|
1182
|
+
E.pushState(m, "", T);
|
|
1183
|
+
} catch {
|
|
1184
|
+
j.location.assign(T);
|
|
1185
|
+
}
|
|
1186
|
+
$(u);
|
|
1187
|
+
}
|
|
1188
|
+
}, "n"), replace: /* @__PURE__ */ r(function P(H, o) {
|
|
1189
|
+
var u = e.Action.Replace, g = Y(H, o);
|
|
1190
|
+
if (V(u, g, function() {
|
|
1191
|
+
P(H, o);
|
|
1192
|
+
})) {
|
|
1193
|
+
var d = _(g, y), m = d[0], T = d[1];
|
|
1194
|
+
E.replaceState(m, "", T), $(u);
|
|
1195
|
+
}
|
|
1196
|
+
}, "n"), go: w, back: /* @__PURE__ */ r(function() {
|
|
1197
|
+
w(-1);
|
|
1198
|
+
}, "back"), forward: /* @__PURE__ */ r(function() {
|
|
1199
|
+
w(1);
|
|
1200
|
+
}, "forward"), listen: /* @__PURE__ */ r(function(P) {
|
|
1201
|
+
return N.push(P);
|
|
1202
|
+
}, "listen"), block: /* @__PURE__ */ r(function(P) {
|
|
1203
|
+
var H = I.push(P);
|
|
1204
|
+
return I.length === 1 && j.addEventListener(n, z), function() {
|
|
1205
|
+
H(), I.length || j.removeEventListener(n, z);
|
|
1206
|
+
};
|
|
1207
|
+
}, "block") };
|
|
1208
|
+
}, e.createMemoryHistory = function(x) {
|
|
1209
|
+
x === void 0 && (x = {});
|
|
1210
|
+
var O = x, j = O.initialEntries, E = j === void 0 ? ["/"] : j, L = O.initialIndex, s = E.map(function(_) {
|
|
1211
|
+
return t({ pathname: "/", search: "", hash: "", state: null, key: U() }, typeof _ == "string" ? F(_) : _);
|
|
1212
|
+
}), i = v(L ?? s.length - 1, 0, s.length - 1), h = e.Action.Pop, c = s[i], y = B(), S = B();
|
|
1213
|
+
function N(_, V) {
|
|
1214
|
+
return V === void 0 && (V = null), t({ pathname: c.pathname, search: "", hash: "" }, typeof _ == "string" ? F(_) : _, { state: V, key: U() });
|
|
1215
|
+
}
|
|
1216
|
+
r(N, "m");
|
|
1217
|
+
function I(_, V, $) {
|
|
1218
|
+
return !S.length || (S.call({ action: _, location: V, retry: $ }), !1);
|
|
1219
|
+
}
|
|
1220
|
+
r(I, "b");
|
|
1221
|
+
function W(_, V) {
|
|
1222
|
+
h = _, c = V, y.call({ action: h, location: c });
|
|
1223
|
+
}
|
|
1224
|
+
r(W, "A");
|
|
1225
|
+
function Y(_) {
|
|
1226
|
+
var V = v(i + _, 0, s.length - 1), $ = e.Action.Pop, w = s[V];
|
|
1227
|
+
I($, w, function() {
|
|
1228
|
+
Y(_);
|
|
1229
|
+
}) && (i = V, W($, w));
|
|
1230
|
+
}
|
|
1231
|
+
return r(Y, "P"), { get index() {
|
|
1232
|
+
return i;
|
|
1233
|
+
}, get action() {
|
|
1234
|
+
return h;
|
|
1235
|
+
}, get location() {
|
|
1236
|
+
return c;
|
|
1237
|
+
}, createHref: /* @__PURE__ */ r(function(_) {
|
|
1238
|
+
return typeof _ == "string" ? _ : J(_);
|
|
1239
|
+
}, "createHref"), push: /* @__PURE__ */ r(function _(V, $) {
|
|
1240
|
+
var w = e.Action.Push, P = N(V, $);
|
|
1241
|
+
I(w, P, function() {
|
|
1242
|
+
_(V, $);
|
|
1243
|
+
}) && (i += 1, s.splice(i, s.length, P), W(w, P));
|
|
1244
|
+
}, "n"), replace: /* @__PURE__ */ r(function _(V, $) {
|
|
1245
|
+
var w = e.Action.Replace, P = N(V, $);
|
|
1246
|
+
I(w, P, function() {
|
|
1247
|
+
_(V, $);
|
|
1248
|
+
}) && (s[i] = P, W(w, P));
|
|
1249
|
+
}, "n"), go: Y, back: /* @__PURE__ */ r(function() {
|
|
1250
|
+
Y(-1);
|
|
1251
|
+
}, "back"), forward: /* @__PURE__ */ r(function() {
|
|
1252
|
+
Y(1);
|
|
1253
|
+
}, "forward"), listen: /* @__PURE__ */ r(function(_) {
|
|
1254
|
+
return y.push(_);
|
|
1255
|
+
}, "listen"), block: /* @__PURE__ */ r(function(_) {
|
|
1256
|
+
return S.push(_);
|
|
1257
|
+
}, "block") };
|
|
1258
|
+
}, e.createPath = J, e.parsePath = F, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1259
|
+
});
|
|
1260
|
+
});
|
|
1261
|
+
|
|
1262
|
+
// ../node_modules/history/umd/history.development.js
|
|
1263
|
+
var fr = ne((Be, cr) => {
|
|
1264
|
+
(function(e, t) {
|
|
1265
|
+
typeof Be == "object" && typeof cr < "u" ? t(Be) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis <
|
|
1266
|
+
"u" ? globalThis : e || self, t(e.HistoryLibrary = {}));
|
|
1267
|
+
})(Be, function(e) {
|
|
1268
|
+
"use strict";
|
|
1269
|
+
function t() {
|
|
1270
|
+
return t = Object.assign || function(s) {
|
|
1271
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1272
|
+
var h = arguments[i];
|
|
1273
|
+
for (var c in h)
|
|
1274
|
+
Object.prototype.hasOwnProperty.call(h, c) && (s[c] = h[c]);
|
|
1275
|
+
}
|
|
1276
|
+
return s;
|
|
1277
|
+
}, t.apply(this, arguments);
|
|
1278
|
+
}
|
|
1279
|
+
r(t, "_extends"), e.Action = void 0, function(s) {
|
|
1280
|
+
s.Pop = "POP", s.Push = "PUSH", s.Replace = "REPLACE";
|
|
1281
|
+
}(e.Action || (e.Action = {}));
|
|
1282
|
+
var a = /* @__PURE__ */ r(function(s) {
|
|
1283
|
+
return Object.freeze(s);
|
|
1284
|
+
}, "readOnly");
|
|
1285
|
+
function n(s, i) {
|
|
1286
|
+
if (!s) {
|
|
1287
|
+
typeof console < "u" && console.warn(i);
|
|
1288
|
+
try {
|
|
1289
|
+
throw new Error(i);
|
|
1290
|
+
} catch {
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
r(n, "warning");
|
|
1295
|
+
var l = "beforeunload", v = "hashchange", z = "popstate";
|
|
1296
|
+
function B(s) {
|
|
1297
|
+
s === void 0 && (s = {});
|
|
1298
|
+
var i = s, h = i.window, c = h === void 0 ? document.defaultView : h, y = c.history;
|
|
1299
|
+
function S() {
|
|
1300
|
+
var C = c.location, p = C.pathname, R = C.search, K = C.hash, q = y.state || {};
|
|
1301
|
+
return [q.idx, a({
|
|
1302
|
+
pathname: p,
|
|
1303
|
+
search: R,
|
|
1304
|
+
hash: K,
|
|
1305
|
+
state: q.usr || null,
|
|
1306
|
+
key: q.key || "default"
|
|
1307
|
+
})];
|
|
1308
|
+
}
|
|
1309
|
+
r(S, "getIndexAndLocation");
|
|
1310
|
+
var N = null;
|
|
1311
|
+
function I() {
|
|
1312
|
+
if (N)
|
|
1313
|
+
w.call(N), N = null;
|
|
1314
|
+
else {
|
|
1315
|
+
var C = e.Action.Pop, p = S(), R = p[0], K = p[1];
|
|
1316
|
+
if (w.length)
|
|
1317
|
+
if (R != null) {
|
|
1318
|
+
var q = _ - R;
|
|
1319
|
+
q && (N = {
|
|
1320
|
+
action: C,
|
|
1321
|
+
location: K,
|
|
1322
|
+
retry: /* @__PURE__ */ r(function() {
|
|
1323
|
+
T(q * -1);
|
|
1324
|
+
}, "retry")
|
|
1325
|
+
}, T(q));
|
|
1326
|
+
} else
|
|
1327
|
+
n(
|
|
1328
|
+
!1,
|
|
1329
|
+
// TODO: Write up a doc that explains our blocking strategy in
|
|
1330
|
+
// detail and link to it here so people can understand better what
|
|
1331
|
+
// is going on and how to avoid it.
|
|
1332
|
+
"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail sil\
|
|
1333
|
+
ently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directl\
|
|
1334
|
+
y) to avoid this situation."
|
|
1335
|
+
);
|
|
1336
|
+
else
|
|
1337
|
+
g(C);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
r(I, "handlePop"), c.addEventListener(z, I);
|
|
1341
|
+
var W = e.Action.Pop, Y = S(), _ = Y[0], V = Y[1], $ = O(), w = O();
|
|
1342
|
+
_ == null && (_ = 0, y.replaceState(t({}, y.state, {
|
|
1343
|
+
idx: _
|
|
1344
|
+
}), ""));
|
|
1345
|
+
function P(C) {
|
|
1346
|
+
return typeof C == "string" ? C : E(C);
|
|
1347
|
+
}
|
|
1348
|
+
r(P, "createHref");
|
|
1349
|
+
function H(C, p) {
|
|
1350
|
+
return p === void 0 && (p = null), a(t({
|
|
1351
|
+
pathname: V.pathname,
|
|
1352
|
+
hash: "",
|
|
1353
|
+
search: ""
|
|
1354
|
+
}, typeof C == "string" ? L(C) : C, {
|
|
1355
|
+
state: p,
|
|
1356
|
+
key: j()
|
|
1357
|
+
}));
|
|
1358
|
+
}
|
|
1359
|
+
r(H, "getNextLocation");
|
|
1360
|
+
function o(C, p) {
|
|
1361
|
+
return [{
|
|
1362
|
+
usr: C.state,
|
|
1363
|
+
key: C.key,
|
|
1364
|
+
idx: p
|
|
1365
|
+
}, P(C)];
|
|
1366
|
+
}
|
|
1367
|
+
r(o, "getHistoryStateAndUrl");
|
|
1368
|
+
function u(C, p, R) {
|
|
1369
|
+
return !w.length || (w.call({
|
|
1370
|
+
action: C,
|
|
1371
|
+
location: p,
|
|
1372
|
+
retry: R
|
|
1373
|
+
}), !1);
|
|
1374
|
+
}
|
|
1375
|
+
r(u, "allowTx");
|
|
1376
|
+
function g(C) {
|
|
1377
|
+
W = C;
|
|
1378
|
+
var p = S();
|
|
1379
|
+
_ = p[0], V = p[1], $.call({
|
|
1380
|
+
action: W,
|
|
1381
|
+
location: V
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
r(g, "applyTx");
|
|
1385
|
+
function d(C, p) {
|
|
1386
|
+
var R = e.Action.Push, K = H(C, p);
|
|
1387
|
+
function q() {
|
|
1388
|
+
d(C, p);
|
|
1389
|
+
}
|
|
1390
|
+
if (r(q, "retry"), u(R, K, q)) {
|
|
1391
|
+
var Z = o(K, _ + 1), re = Z[0], ae = Z[1];
|
|
1392
|
+
try {
|
|
1393
|
+
y.pushState(re, "", ae);
|
|
1394
|
+
} catch {
|
|
1395
|
+
c.location.assign(ae);
|
|
1396
|
+
}
|
|
1397
|
+
g(R);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
r(d, "push");
|
|
1401
|
+
function m(C, p) {
|
|
1402
|
+
var R = e.Action.Replace, K = H(C, p);
|
|
1403
|
+
function q() {
|
|
1404
|
+
m(C, p);
|
|
1405
|
+
}
|
|
1406
|
+
if (r(q, "retry"), u(R, K, q)) {
|
|
1407
|
+
var Z = o(K, _), re = Z[0], ae = Z[1];
|
|
1408
|
+
y.replaceState(re, "", ae), g(R);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
r(m, "replace");
|
|
1412
|
+
function T(C) {
|
|
1413
|
+
y.go(C);
|
|
1414
|
+
}
|
|
1415
|
+
r(T, "go");
|
|
1416
|
+
var M = {
|
|
1417
|
+
get action() {
|
|
1418
|
+
return W;
|
|
1419
|
+
},
|
|
1420
|
+
get location() {
|
|
1421
|
+
return V;
|
|
1422
|
+
},
|
|
1423
|
+
createHref: P,
|
|
1424
|
+
push: d,
|
|
1425
|
+
replace: m,
|
|
1426
|
+
go: T,
|
|
1427
|
+
back: /* @__PURE__ */ r(function() {
|
|
1428
|
+
T(-1);
|
|
1429
|
+
}, "back"),
|
|
1430
|
+
forward: /* @__PURE__ */ r(function() {
|
|
1431
|
+
T(1);
|
|
1432
|
+
}, "forward"),
|
|
1433
|
+
listen: /* @__PURE__ */ r(function(p) {
|
|
1434
|
+
return $.push(p);
|
|
1435
|
+
}, "listen"),
|
|
1436
|
+
block: /* @__PURE__ */ r(function(p) {
|
|
1437
|
+
var R = w.push(p);
|
|
1438
|
+
return w.length === 1 && c.addEventListener(l, x), function() {
|
|
1439
|
+
R(), w.length || c.removeEventListener(l, x);
|
|
1440
|
+
};
|
|
1441
|
+
}, "block")
|
|
1442
|
+
};
|
|
1443
|
+
return M;
|
|
1444
|
+
}
|
|
1445
|
+
r(B, "createBrowserHistory");
|
|
1446
|
+
function U(s) {
|
|
1447
|
+
s === void 0 && (s = {});
|
|
1448
|
+
var i = s, h = i.window, c = h === void 0 ? document.defaultView : h, y = c.history;
|
|
1449
|
+
function S() {
|
|
1450
|
+
var p = L(c.location.hash.substr(1)), R = p.pathname, K = R === void 0 ? "/" : R, q = p.search, Z = q === void 0 ? "" : q, re = p.hash,
|
|
1451
|
+
ae = re === void 0 ? "" : re, ie = y.state || {};
|
|
1452
|
+
return [ie.idx, a({
|
|
1453
|
+
pathname: K,
|
|
1454
|
+
search: Z,
|
|
1455
|
+
hash: ae,
|
|
1456
|
+
state: ie.usr || null,
|
|
1457
|
+
key: ie.key || "default"
|
|
1458
|
+
})];
|
|
1459
|
+
}
|
|
1460
|
+
r(S, "getIndexAndLocation");
|
|
1461
|
+
var N = null;
|
|
1462
|
+
function I() {
|
|
1463
|
+
if (N)
|
|
1464
|
+
w.call(N), N = null;
|
|
1465
|
+
else {
|
|
1466
|
+
var p = e.Action.Pop, R = S(), K = R[0], q = R[1];
|
|
1467
|
+
if (w.length)
|
|
1468
|
+
if (K != null) {
|
|
1469
|
+
var Z = _ - K;
|
|
1470
|
+
Z && (N = {
|
|
1471
|
+
action: p,
|
|
1472
|
+
location: q,
|
|
1473
|
+
retry: /* @__PURE__ */ r(function() {
|
|
1474
|
+
M(Z * -1);
|
|
1475
|
+
}, "retry")
|
|
1476
|
+
}, M(Z));
|
|
1477
|
+
} else
|
|
1478
|
+
n(
|
|
1479
|
+
!1,
|
|
1480
|
+
// TODO: Write up a doc that explains our blocking strategy in
|
|
1481
|
+
// detail and link to it here so people can understand better
|
|
1482
|
+
// what is going on and how to avoid it.
|
|
1483
|
+
"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail sil\
|
|
1484
|
+
ently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directl\
|
|
1485
|
+
y) to avoid this situation."
|
|
1486
|
+
);
|
|
1487
|
+
else
|
|
1488
|
+
d(p);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
r(I, "handlePop"), c.addEventListener(z, I), c.addEventListener(v, function() {
|
|
1492
|
+
var p = S(), R = p[1];
|
|
1493
|
+
E(R) !== E(V) && I();
|
|
1494
|
+
});
|
|
1495
|
+
var W = e.Action.Pop, Y = S(), _ = Y[0], V = Y[1], $ = O(), w = O();
|
|
1496
|
+
_ == null && (_ = 0, y.replaceState(t({}, y.state, {
|
|
1497
|
+
idx: _
|
|
1498
|
+
}), ""));
|
|
1499
|
+
function P() {
|
|
1500
|
+
var p = document.querySelector("base"), R = "";
|
|
1501
|
+
if (p && p.getAttribute("href")) {
|
|
1502
|
+
var K = c.location.href, q = K.indexOf("#");
|
|
1503
|
+
R = q === -1 ? K : K.slice(0, q);
|
|
1504
|
+
}
|
|
1505
|
+
return R;
|
|
1506
|
+
}
|
|
1507
|
+
r(P, "getBaseHref");
|
|
1508
|
+
function H(p) {
|
|
1509
|
+
return P() + "#" + (typeof p == "string" ? p : E(p));
|
|
1510
|
+
}
|
|
1511
|
+
r(H, "createHref");
|
|
1512
|
+
function o(p, R) {
|
|
1513
|
+
return R === void 0 && (R = null), a(t({
|
|
1514
|
+
pathname: V.pathname,
|
|
1515
|
+
hash: "",
|
|
1516
|
+
search: ""
|
|
1517
|
+
}, typeof p == "string" ? L(p) : p, {
|
|
1518
|
+
state: R,
|
|
1519
|
+
key: j()
|
|
1520
|
+
}));
|
|
1521
|
+
}
|
|
1522
|
+
r(o, "getNextLocation");
|
|
1523
|
+
function u(p, R) {
|
|
1524
|
+
return [{
|
|
1525
|
+
usr: p.state,
|
|
1526
|
+
key: p.key,
|
|
1527
|
+
idx: R
|
|
1528
|
+
}, H(p)];
|
|
1529
|
+
}
|
|
1530
|
+
r(u, "getHistoryStateAndUrl");
|
|
1531
|
+
function g(p, R, K) {
|
|
1532
|
+
return !w.length || (w.call({
|
|
1533
|
+
action: p,
|
|
1534
|
+
location: R,
|
|
1535
|
+
retry: K
|
|
1536
|
+
}), !1);
|
|
1537
|
+
}
|
|
1538
|
+
r(g, "allowTx");
|
|
1539
|
+
function d(p) {
|
|
1540
|
+
W = p;
|
|
1541
|
+
var R = S();
|
|
1542
|
+
_ = R[0], V = R[1], $.call({
|
|
1543
|
+
action: W,
|
|
1544
|
+
location: V
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
r(d, "applyTx");
|
|
1548
|
+
function m(p, R) {
|
|
1549
|
+
var K = e.Action.Push, q = o(p, R);
|
|
1550
|
+
function Z() {
|
|
1551
|
+
m(p, R);
|
|
1552
|
+
}
|
|
1553
|
+
if (r(Z, "retry"), n(q.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(p) +
|
|
1554
|
+
")"), g(K, q, Z)) {
|
|
1555
|
+
var re = u(q, _ + 1), ae = re[0], ie = re[1];
|
|
1556
|
+
try {
|
|
1557
|
+
y.pushState(ae, "", ie);
|
|
1558
|
+
} catch {
|
|
1559
|
+
c.location.assign(ie);
|
|
1560
|
+
}
|
|
1561
|
+
d(K);
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
r(m, "push");
|
|
1565
|
+
function T(p, R) {
|
|
1566
|
+
var K = e.Action.Replace, q = o(p, R);
|
|
1567
|
+
function Z() {
|
|
1568
|
+
T(p, R);
|
|
1569
|
+
}
|
|
1570
|
+
if (r(Z, "retry"), n(q.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(
|
|
1571
|
+
p) + ")"), g(K, q, Z)) {
|
|
1572
|
+
var re = u(q, _), ae = re[0], ie = re[1];
|
|
1573
|
+
y.replaceState(ae, "", ie), d(K);
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
r(T, "replace");
|
|
1577
|
+
function M(p) {
|
|
1578
|
+
y.go(p);
|
|
1579
|
+
}
|
|
1580
|
+
r(M, "go");
|
|
1581
|
+
var C = {
|
|
1582
|
+
get action() {
|
|
1583
|
+
return W;
|
|
1584
|
+
},
|
|
1585
|
+
get location() {
|
|
1586
|
+
return V;
|
|
1587
|
+
},
|
|
1588
|
+
createHref: H,
|
|
1589
|
+
push: m,
|
|
1590
|
+
replace: T,
|
|
1591
|
+
go: M,
|
|
1592
|
+
back: /* @__PURE__ */ r(function() {
|
|
1593
|
+
M(-1);
|
|
1594
|
+
}, "back"),
|
|
1595
|
+
forward: /* @__PURE__ */ r(function() {
|
|
1596
|
+
M(1);
|
|
1597
|
+
}, "forward"),
|
|
1598
|
+
listen: /* @__PURE__ */ r(function(R) {
|
|
1599
|
+
return $.push(R);
|
|
1600
|
+
}, "listen"),
|
|
1601
|
+
block: /* @__PURE__ */ r(function(R) {
|
|
1602
|
+
var K = w.push(R);
|
|
1603
|
+
return w.length === 1 && c.addEventListener(l, x), function() {
|
|
1604
|
+
K(), w.length || c.removeEventListener(l, x);
|
|
1605
|
+
};
|
|
1606
|
+
}, "block")
|
|
1607
|
+
};
|
|
1608
|
+
return C;
|
|
1609
|
+
}
|
|
1610
|
+
r(U, "createHashHistory");
|
|
1611
|
+
function J(s) {
|
|
1612
|
+
s === void 0 && (s = {});
|
|
1613
|
+
var i = s, h = i.initialEntries, c = h === void 0 ? ["/"] : h, y = i.initialIndex, S = c.map(function(d) {
|
|
1614
|
+
var m = a(t({
|
|
1615
|
+
pathname: "/",
|
|
1616
|
+
search: "",
|
|
1617
|
+
hash: "",
|
|
1618
|
+
state: null,
|
|
1619
|
+
key: j()
|
|
1620
|
+
}, typeof d == "string" ? L(d) : d));
|
|
1621
|
+
return n(m.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid ent\
|
|
1622
|
+
ry: " + JSON.stringify(d) + ")"), m;
|
|
1623
|
+
}), N = F(y ?? S.length - 1, 0, S.length - 1), I = e.Action.Pop, W = S[N], Y = O(), _ = O();
|
|
1624
|
+
function V(d) {
|
|
1625
|
+
return typeof d == "string" ? d : E(d);
|
|
1626
|
+
}
|
|
1627
|
+
r(V, "createHref");
|
|
1628
|
+
function $(d, m) {
|
|
1629
|
+
return m === void 0 && (m = null), a(t({
|
|
1630
|
+
pathname: W.pathname,
|
|
1631
|
+
search: "",
|
|
1632
|
+
hash: ""
|
|
1633
|
+
}, typeof d == "string" ? L(d) : d, {
|
|
1634
|
+
state: m,
|
|
1635
|
+
key: j()
|
|
1636
|
+
}));
|
|
1637
|
+
}
|
|
1638
|
+
r($, "getNextLocation");
|
|
1639
|
+
function w(d, m, T) {
|
|
1640
|
+
return !_.length || (_.call({
|
|
1641
|
+
action: d,
|
|
1642
|
+
location: m,
|
|
1643
|
+
retry: T
|
|
1644
|
+
}), !1);
|
|
1645
|
+
}
|
|
1646
|
+
r(w, "allowTx");
|
|
1647
|
+
function P(d, m) {
|
|
1648
|
+
I = d, W = m, Y.call({
|
|
1649
|
+
action: I,
|
|
1650
|
+
location: W
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
r(P, "applyTx");
|
|
1654
|
+
function H(d, m) {
|
|
1655
|
+
var T = e.Action.Push, M = $(d, m);
|
|
1656
|
+
function C() {
|
|
1657
|
+
H(d, m);
|
|
1658
|
+
}
|
|
1659
|
+
r(C, "retry"), n(W.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(d) + "\
|
|
1660
|
+
)"), w(T, M, C) && (N += 1, S.splice(N, S.length, M), P(T, M));
|
|
1661
|
+
}
|
|
1662
|
+
r(H, "push");
|
|
1663
|
+
function o(d, m) {
|
|
1664
|
+
var T = e.Action.Replace, M = $(d, m);
|
|
1665
|
+
function C() {
|
|
1666
|
+
o(d, m);
|
|
1667
|
+
}
|
|
1668
|
+
r(C, "retry"), n(W.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(d) +
|
|
1669
|
+
")"), w(T, M, C) && (S[N] = M, P(T, M));
|
|
1670
|
+
}
|
|
1671
|
+
r(o, "replace");
|
|
1672
|
+
function u(d) {
|
|
1673
|
+
var m = F(N + d, 0, S.length - 1), T = e.Action.Pop, M = S[m];
|
|
1674
|
+
function C() {
|
|
1675
|
+
u(d);
|
|
1676
|
+
}
|
|
1677
|
+
r(C, "retry"), w(T, M, C) && (N = m, P(T, M));
|
|
1678
|
+
}
|
|
1679
|
+
r(u, "go");
|
|
1680
|
+
var g = {
|
|
1681
|
+
get index() {
|
|
1682
|
+
return N;
|
|
1683
|
+
},
|
|
1684
|
+
get action() {
|
|
1685
|
+
return I;
|
|
1686
|
+
},
|
|
1687
|
+
get location() {
|
|
1688
|
+
return W;
|
|
1689
|
+
},
|
|
1690
|
+
createHref: V,
|
|
1691
|
+
push: H,
|
|
1692
|
+
replace: o,
|
|
1693
|
+
go: u,
|
|
1694
|
+
back: /* @__PURE__ */ r(function() {
|
|
1695
|
+
u(-1);
|
|
1696
|
+
}, "back"),
|
|
1697
|
+
forward: /* @__PURE__ */ r(function() {
|
|
1698
|
+
u(1);
|
|
1699
|
+
}, "forward"),
|
|
1700
|
+
listen: /* @__PURE__ */ r(function(m) {
|
|
1701
|
+
return Y.push(m);
|
|
1702
|
+
}, "listen"),
|
|
1703
|
+
block: /* @__PURE__ */ r(function(m) {
|
|
1704
|
+
return _.push(m);
|
|
1705
|
+
}, "block")
|
|
1706
|
+
};
|
|
1707
|
+
return g;
|
|
1708
|
+
}
|
|
1709
|
+
r(J, "createMemoryHistory");
|
|
1710
|
+
function F(s, i, h) {
|
|
1711
|
+
return Math.min(Math.max(s, i), h);
|
|
1712
|
+
}
|
|
1713
|
+
r(F, "clamp");
|
|
1714
|
+
function x(s) {
|
|
1715
|
+
s.preventDefault(), s.returnValue = "";
|
|
1716
|
+
}
|
|
1717
|
+
r(x, "promptBeforeUnload");
|
|
1718
|
+
function O() {
|
|
1719
|
+
var s = [];
|
|
1720
|
+
return {
|
|
1721
|
+
get length() {
|
|
1722
|
+
return s.length;
|
|
1723
|
+
},
|
|
1724
|
+
push: /* @__PURE__ */ r(function(h) {
|
|
1725
|
+
return s.push(h), function() {
|
|
1726
|
+
s = s.filter(function(c) {
|
|
1727
|
+
return c !== h;
|
|
1728
|
+
});
|
|
1729
|
+
};
|
|
1730
|
+
}, "push"),
|
|
1731
|
+
call: /* @__PURE__ */ r(function(h) {
|
|
1732
|
+
s.forEach(function(c) {
|
|
1733
|
+
return c && c(h);
|
|
1734
|
+
});
|
|
1735
|
+
}, "call")
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
r(O, "createEvents");
|
|
1739
|
+
function j() {
|
|
1740
|
+
return Math.random().toString(36).substr(2, 8);
|
|
1741
|
+
}
|
|
1742
|
+
r(j, "createKey");
|
|
1743
|
+
function E(s) {
|
|
1744
|
+
var i = s.pathname, h = i === void 0 ? "/" : i, c = s.search, y = c === void 0 ? "" : c, S = s.hash, N = S === void 0 ? "" : S;
|
|
1745
|
+
return y && y !== "?" && (h += y.charAt(0) === "?" ? y : "?" + y), N && N !== "#" && (h += N.charAt(0) === "#" ? N : "#" + N), h;
|
|
1746
|
+
}
|
|
1747
|
+
r(E, "createPath");
|
|
1748
|
+
function L(s) {
|
|
1749
|
+
var i = {};
|
|
1750
|
+
if (s) {
|
|
1751
|
+
var h = s.indexOf("#");
|
|
1752
|
+
h >= 0 && (i.hash = s.substr(h), s = s.substr(0, h));
|
|
1753
|
+
var c = s.indexOf("?");
|
|
1754
|
+
c >= 0 && (i.search = s.substr(c), s = s.substr(0, c)), s && (i.pathname = s);
|
|
1755
|
+
}
|
|
1756
|
+
return i;
|
|
1757
|
+
}
|
|
1758
|
+
r(L, "parsePath"), e.createBrowserHistory = B, e.createHashHistory = U, e.createMemoryHistory = J, e.createPath = E, e.parsePath = L, Object.
|
|
1759
|
+
defineProperty(e, "__esModule", { value: !0 });
|
|
1760
|
+
});
|
|
1761
|
+
});
|
|
1762
|
+
|
|
1763
|
+
// ../node_modules/history/main.js
|
|
1764
|
+
var Ee = ne((pa, at) => {
|
|
1765
|
+
"use strict";
|
|
1766
|
+
process.env.NODE_ENV === "production" ? at.exports = lr() : at.exports = fr();
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
// ../node_modules/react-router/umd/react-router.production.min.js
|
|
1770
|
+
var pr = ne((De, hr) => {
|
|
1771
|
+
(function(e, t) {
|
|
1772
|
+
typeof De == "object" && typeof hr < "u" ? t(De, require("react"), Ee()) : typeof define == "function" && define.amd ? define(["exports",
|
|
1773
|
+
"react", "history"], t) : t((e = e || self).ReactRouter = {}, e.React, e.HistoryLibrary);
|
|
1774
|
+
})(De, function(e, t, a) {
|
|
1775
|
+
"use strict";
|
|
1776
|
+
function n(o, u) {
|
|
1777
|
+
if (!o) throw new Error(u);
|
|
1778
|
+
}
|
|
1779
|
+
r(n, "a");
|
|
1780
|
+
let l = t.createContext(null), v = t.createContext(null), z = t.createContext({ outlet: null, matches: [] });
|
|
1781
|
+
function B(o) {
|
|
1782
|
+
return j();
|
|
1783
|
+
}
|
|
1784
|
+
r(B, "s");
|
|
1785
|
+
function U(o) {
|
|
1786
|
+
n(!1);
|
|
1787
|
+
}
|
|
1788
|
+
r(U, "o");
|
|
1789
|
+
function J(o) {
|
|
1790
|
+
let { basename: u = "/", children: g = null, location: d, navigationType: m = a.Action.Pop, navigator: T, static: M = !1 } = o;
|
|
1791
|
+
F() && n(!1);
|
|
1792
|
+
let C = w(u), p = t.useMemo(() => ({ basename: C, navigator: T, static: M }), [C, T, M]);
|
|
1793
|
+
typeof d == "string" && (d = a.parsePath(d));
|
|
1794
|
+
let { pathname: R = "/", search: K = "", hash: q = "", state: Z = null, key: re = "default" } = d, ae = t.useMemo(() => {
|
|
1795
|
+
let ie = V(R, C);
|
|
1796
|
+
return ie == null ? null : { pathname: ie, search: K, hash: q, state: Z, key: re };
|
|
1797
|
+
}, [C, R, K, q, Z, re]);
|
|
1798
|
+
return ae == null ? null : t.createElement(l.Provider, { value: p }, t.createElement(v.Provider, { children: g, value: { location: ae,
|
|
1799
|
+
navigationType: m } }));
|
|
1800
|
+
}
|
|
1801
|
+
r(J, "u");
|
|
1802
|
+
function F() {
|
|
1803
|
+
return t.useContext(v) != null;
|
|
1804
|
+
}
|
|
1805
|
+
r(F, "c");
|
|
1806
|
+
function x() {
|
|
1807
|
+
return F() || n(!1), t.useContext(v).location;
|
|
1808
|
+
}
|
|
1809
|
+
r(x, "h");
|
|
1810
|
+
function O() {
|
|
1811
|
+
F() || n(!1);
|
|
1812
|
+
let { basename: o, navigator: u } = t.useContext(l), { matches: g } = t.useContext(z), { pathname: d } = x(), m = JSON.stringify(g.map(
|
|
1813
|
+
(M) => M.pathnameBase)), T = t.useRef(!1);
|
|
1814
|
+
return t.useEffect(() => {
|
|
1815
|
+
T.current = !0;
|
|
1816
|
+
}), t.useCallback(function(M, C) {
|
|
1817
|
+
if (C === void 0 && (C = {}), !T.current) return;
|
|
1818
|
+
if (typeof M == "number") return void u.go(M);
|
|
1819
|
+
let p = _(M, JSON.parse(m), d);
|
|
1820
|
+
o !== "/" && (p.pathname = $([o, p.pathname])), (C.replace ? u.replace : u.push)(p, C.state);
|
|
1821
|
+
}, [o, u, m, d]);
|
|
1822
|
+
}
|
|
1823
|
+
r(O, "p");
|
|
1824
|
+
function j() {
|
|
1825
|
+
return t.useContext(z).outlet;
|
|
1826
|
+
}
|
|
1827
|
+
r(j, "f");
|
|
1828
|
+
function E(o) {
|
|
1829
|
+
let { matches: u } = t.useContext(z), { pathname: g } = x(), d = JSON.stringify(u.map((m) => m.pathnameBase));
|
|
1830
|
+
return t.useMemo(() => _(o, JSON.parse(d), g), [o, d, g]);
|
|
1831
|
+
}
|
|
1832
|
+
r(E, "m");
|
|
1833
|
+
function L(o, u) {
|
|
1834
|
+
F() || n(!1);
|
|
1835
|
+
let g, { matches: d } = t.useContext(z), m = d[d.length - 1], T = m ? m.params : {}, M = (m && m.pathname, m ? m.pathnameBase : "/"), C = (m &&
|
|
1836
|
+
m.route, x());
|
|
1837
|
+
if (u) {
|
|
1838
|
+
var p;
|
|
1839
|
+
let q = typeof u == "string" ? a.parsePath(u) : u;
|
|
1840
|
+
M === "/" || (p = q.pathname) != null && p.startsWith(M) || n(!1), g = q;
|
|
1841
|
+
} else g = C;
|
|
1842
|
+
let R = g.pathname || "/", K = i(o, { pathname: M === "/" ? R : R.slice(M.length) || "/" });
|
|
1843
|
+
return I(K && K.map((q) => Object.assign({}, q, { params: Object.assign({}, T, q.params), pathname: $([M, q.pathname]), pathnameBase: q.
|
|
1844
|
+
pathnameBase === "/" ? M : $([M, q.pathnameBase]) })), d);
|
|
1845
|
+
}
|
|
1846
|
+
r(L, "d");
|
|
1847
|
+
function s(o) {
|
|
1848
|
+
let u = [];
|
|
1849
|
+
return t.Children.forEach(o, (g) => {
|
|
1850
|
+
if (!t.isValidElement(g)) return;
|
|
1851
|
+
if (g.type === t.Fragment) return void u.push.apply(u, s(g.props.children));
|
|
1852
|
+
g.type !== U && n(!1);
|
|
1853
|
+
let d = { caseSensitive: g.props.caseSensitive, element: g.props.element, index: g.props.index, path: g.props.path };
|
|
1854
|
+
g.props.children && (d.children = s(g.props.children)), u.push(d);
|
|
1855
|
+
}), u;
|
|
1856
|
+
}
|
|
1857
|
+
r(s, "g");
|
|
1858
|
+
function i(o, u, g) {
|
|
1859
|
+
g === void 0 && (g = "/");
|
|
1860
|
+
let d = V((typeof u == "string" ? a.parsePath(u) : u).pathname || "/", g);
|
|
1861
|
+
if (d == null) return null;
|
|
1862
|
+
let m = h(o);
|
|
1863
|
+
(function(M) {
|
|
1864
|
+
M.sort((C, p) => C.score !== p.score ? p.score - C.score : function(R, K) {
|
|
1865
|
+
return R.length === K.length && R.slice(0, -1).every((q, Z) => q === K[Z]) ? R[R.length - 1] - K[K.length - 1] : 0;
|
|
1866
|
+
}(C.routesMeta.map((R) => R.childrenIndex), p.routesMeta.map((R) => R.childrenIndex)));
|
|
1867
|
+
})(m);
|
|
1868
|
+
let T = null;
|
|
1869
|
+
for (let M = 0; T == null && M < m.length; ++M) T = N(m[M], o, d);
|
|
1870
|
+
return T;
|
|
1871
|
+
}
|
|
1872
|
+
r(i, "v");
|
|
1873
|
+
function h(o, u, g, d) {
|
|
1874
|
+
return u === void 0 && (u = []), g === void 0 && (g = []), d === void 0 && (d = ""), o.forEach((m, T) => {
|
|
1875
|
+
let M = { relativePath: m.path || "", caseSensitive: m.caseSensitive === !0, childrenIndex: T };
|
|
1876
|
+
M.relativePath.startsWith("/") && (M.relativePath.startsWith(d) || n(!1), M.relativePath = M.relativePath.slice(d.length));
|
|
1877
|
+
let C = $([d, M.relativePath]), p = g.concat(M);
|
|
1878
|
+
m.children && m.children.length > 0 && (m.index === !0 && n(!1), h(m.children, u, p, C)), (m.path != null || m.index) && u.push({ path: C,
|
|
1879
|
+
score: S(C, m.index), routesMeta: p });
|
|
1880
|
+
}), u;
|
|
1881
|
+
}
|
|
1882
|
+
r(h, "y");
|
|
1883
|
+
let c = /^:\w+$/, y = /* @__PURE__ */ r((o) => o === "*", "C");
|
|
1884
|
+
function S(o, u) {
|
|
1885
|
+
let g = o.split("/"), d = g.length;
|
|
1886
|
+
return g.some(y) && (d += -2), u && (d += 2), g.filter((m) => !y(m)).reduce((m, T) => m + (c.test(T) ? 3 : T === "" ? 1 : 10), d);
|
|
1887
|
+
}
|
|
1888
|
+
r(S, "P");
|
|
1889
|
+
function N(o, u, g) {
|
|
1890
|
+
let d = u, { routesMeta: m } = o, T = {}, M = "/", C = [];
|
|
1891
|
+
for (let p = 0; p < m.length; ++p) {
|
|
1892
|
+
let R = m[p], K = p === m.length - 1, q = M === "/" ? g : g.slice(M.length) || "/", Z = W({ path: R.relativePath, caseSensitive: R.caseSensitive,
|
|
1893
|
+
end: K }, q);
|
|
1894
|
+
if (!Z) return null;
|
|
1895
|
+
Object.assign(T, Z.params);
|
|
1896
|
+
let re = d[R.childrenIndex];
|
|
1897
|
+
C.push({ params: T, pathname: $([M, Z.pathname]), pathnameBase: $([M, Z.pathnameBase]), route: re }), Z.pathnameBase !== "/" && (M =
|
|
1898
|
+
$([M, Z.pathnameBase])), d = re.children;
|
|
1899
|
+
}
|
|
1900
|
+
return C;
|
|
1901
|
+
}
|
|
1902
|
+
r(N, "E");
|
|
1903
|
+
function I(o, u) {
|
|
1904
|
+
return u === void 0 && (u = []), o == null ? null : o.reduceRight((g, d, m) => t.createElement(z.Provider, { children: d.route.element !==
|
|
1905
|
+
void 0 ? d.route.element : t.createElement(B, null), value: { outlet: g, matches: u.concat(o.slice(0, m + 1)) } }), null);
|
|
1906
|
+
}
|
|
1907
|
+
r(I, "R");
|
|
1908
|
+
function W(o, u) {
|
|
1909
|
+
typeof o == "string" && (o = { path: o, caseSensitive: !1, end: !0 });
|
|
1910
|
+
let [g, d] = function(p, R, K) {
|
|
1911
|
+
R === void 0 && (R = !1), K === void 0 && (K = !0);
|
|
1912
|
+
let q = [], Z = "^" + p.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^$?{}|()[\]]/g, "\\$&").replace(/:(\w+)/g, (re, ae) => (q.
|
|
1913
|
+
push(ae), "([^\\/]+)"));
|
|
1914
|
+
return p.endsWith("*") ? (q.push("*"), Z += p === "*" || p === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : Z += K ? "\\/*$" : "(?:\\b|$)",
|
|
1915
|
+
[new RegExp(Z, R ? void 0 : "i"), q];
|
|
1916
|
+
}(o.path, o.caseSensitive, o.end), m = u.match(g);
|
|
1917
|
+
if (!m) return null;
|
|
1918
|
+
let T = m[0], M = T.replace(/(.)\/+$/, "$1"), C = m.slice(1);
|
|
1919
|
+
return { params: d.reduce((p, R, K) => {
|
|
1920
|
+
if (R === "*") {
|
|
1921
|
+
let q = C[K] || "";
|
|
1922
|
+
M = T.slice(0, T.length - q.length).replace(/(.)\/+$/, "$1");
|
|
1923
|
+
}
|
|
1924
|
+
return p[R] = function(q, Z) {
|
|
1925
|
+
try {
|
|
1926
|
+
return decodeURIComponent(q);
|
|
1927
|
+
} catch {
|
|
1928
|
+
return q;
|
|
1929
|
+
}
|
|
1930
|
+
}(C[K] || ""), p;
|
|
1931
|
+
}, {}), pathname: T, pathnameBase: M, pattern: o };
|
|
1932
|
+
}
|
|
1933
|
+
r(W, "S");
|
|
1934
|
+
function Y(o, u) {
|
|
1935
|
+
u === void 0 && (u = "/");
|
|
1936
|
+
let { pathname: g, search: d = "", hash: m = "" } = typeof o == "string" ? a.parsePath(o) : o;
|
|
1937
|
+
return { pathname: g ? g.startsWith("/") ? g : function(M, C) {
|
|
1938
|
+
let p = C.replace(/\/+$/, "").split("/");
|
|
1939
|
+
return M.split("/").forEach((R) => {
|
|
1940
|
+
R === ".." ? p.length > 1 && p.pop() : R !== "." && p.push(R);
|
|
1941
|
+
}), p.length > 1 ? p.join("/") : "/";
|
|
1942
|
+
}(g, u) : u, search: P(d), hash: H(m) };
|
|
1943
|
+
}
|
|
1944
|
+
r(Y, "b");
|
|
1945
|
+
function _(o, u, g) {
|
|
1946
|
+
let d, m = typeof o == "string" ? a.parsePath(o) : o, T = o === "" || m.pathname === "" ? "/" : m.pathname;
|
|
1947
|
+
if (T == null) d = g;
|
|
1948
|
+
else {
|
|
1949
|
+
let C = u.length - 1;
|
|
1950
|
+
if (T.startsWith("..")) {
|
|
1951
|
+
let p = T.split("/");
|
|
1952
|
+
for (; p[0] === ".."; ) p.shift(), C -= 1;
|
|
1953
|
+
m.pathname = p.join("/");
|
|
1954
|
+
}
|
|
1955
|
+
d = C >= 0 ? u[C] : "/";
|
|
1956
|
+
}
|
|
1957
|
+
let M = Y(m, d);
|
|
1958
|
+
return T && T !== "/" && T.endsWith("/") && !M.pathname.endsWith("/") && (M.pathname += "/"), M;
|
|
1959
|
+
}
|
|
1960
|
+
r(_, "$");
|
|
1961
|
+
function V(o, u) {
|
|
1962
|
+
if (u === "/") return o;
|
|
1963
|
+
if (!o.toLowerCase().startsWith(u.toLowerCase())) return null;
|
|
1964
|
+
let g = o.charAt(u.length);
|
|
1965
|
+
return g && g !== "/" ? null : o.slice(u.length) || "/";
|
|
1966
|
+
}
|
|
1967
|
+
r(V, "M");
|
|
1968
|
+
let $ = /* @__PURE__ */ r((o) => o.join("/").replace(/\/\/+/g, "/"), "W"), w = /* @__PURE__ */ r((o) => o.replace(/\/+$/, "").replace(/^\/*/,
|
|
1969
|
+
"/"), "B"), P = /* @__PURE__ */ r((o) => o && o !== "?" ? o.startsWith("?") ? o : "?" + o : "", "N"), H = /* @__PURE__ */ r((o) => o && o !==
|
|
1970
|
+
"#" ? o.startsWith("#") ? o : "#" + o : "", "O");
|
|
1971
|
+
e.MemoryRouter = function(o) {
|
|
1972
|
+
let { basename: u, children: g, initialEntries: d, initialIndex: m } = o, T = t.useRef();
|
|
1973
|
+
T.current == null && (T.current = a.createMemoryHistory({ initialEntries: d, initialIndex: m }));
|
|
1974
|
+
let M = T.current, [C, p] = t.useState({ action: M.action, location: M.location });
|
|
1975
|
+
return t.useLayoutEffect(() => M.listen(p), [M]), t.createElement(J, { basename: u, children: g, location: C.location, navigationType: C.
|
|
1976
|
+
action, navigator: M });
|
|
1977
|
+
}, e.Navigate = function(o) {
|
|
1978
|
+
let { to: u, replace: g, state: d } = o;
|
|
1979
|
+
F() || n(!1);
|
|
1980
|
+
let m = O();
|
|
1981
|
+
return t.useEffect(() => {
|
|
1982
|
+
m(u, { replace: g, state: d });
|
|
1983
|
+
}), null;
|
|
1984
|
+
}, e.Outlet = B, e.Route = U, e.Router = J, e.Routes = function(o) {
|
|
1985
|
+
let { children: u, location: g } = o;
|
|
1986
|
+
return L(s(u), g);
|
|
1987
|
+
}, e.UNSAFE_LocationContext = v, e.UNSAFE_NavigationContext = l, e.UNSAFE_RouteContext = z, e.createRoutesFromChildren = s, e.generatePath =
|
|
1988
|
+
function(o, u) {
|
|
1989
|
+
return u === void 0 && (u = {}), o.replace(/:(\w+)/g, (g, d) => (u[d] == null && n(!1), u[d])).replace(/\/*\*$/, (g) => u["*"] == null ?
|
|
1990
|
+
"" : u["*"].replace(/^\/*/, "/"));
|
|
1991
|
+
}, e.matchPath = W, e.matchRoutes = i, e.renderMatches = function(o) {
|
|
1992
|
+
return I(o);
|
|
1993
|
+
}, e.resolvePath = Y, e.useHref = function(o) {
|
|
1994
|
+
F() || n(!1);
|
|
1995
|
+
let { basename: u, navigator: g } = t.useContext(l), { hash: d, pathname: m, search: T } = E(o), M = m;
|
|
1996
|
+
if (u !== "/") {
|
|
1997
|
+
let C = function(R) {
|
|
1998
|
+
return R === "" || R.pathname === "" ? "/" : typeof R == "string" ? a.parsePath(R).pathname : R.pathname;
|
|
1999
|
+
}(o), p = C != null && C.endsWith("/");
|
|
2000
|
+
M = m === "/" ? u + (p ? "/" : "") : $([u, m]);
|
|
2001
|
+
}
|
|
2002
|
+
return g.createHref({ pathname: M, search: T, hash: d });
|
|
2003
|
+
}, e.useInRouterContext = F, e.useLocation = x, e.useMatch = function(o) {
|
|
2004
|
+
return F() || n(!1), W(o, x().pathname);
|
|
2005
|
+
}, e.useNavigate = O, e.useNavigationType = function() {
|
|
2006
|
+
return t.useContext(v).navigationType;
|
|
2007
|
+
}, e.useOutlet = j, e.useParams = function() {
|
|
2008
|
+
let { matches: o } = t.useContext(z), u = o[o.length - 1];
|
|
2009
|
+
return u ? u.params : {};
|
|
2010
|
+
}, e.useResolvedPath = E, e.useRoutes = L, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2011
|
+
});
|
|
2012
|
+
});
|
|
2013
|
+
|
|
2014
|
+
// ../node_modules/react-router/umd/react-router.development.js
|
|
2015
|
+
var mr = ne((We, dr) => {
|
|
2016
|
+
(function(e, t) {
|
|
2017
|
+
typeof We == "object" && typeof dr < "u" ? t(We, require("react"), Ee()) : typeof define == "function" && define.amd ? define(["exports",
|
|
2018
|
+
"react", "history"], t) : (e = e || self, t(e.ReactRouter = {}, e.React, e.HistoryLibrary));
|
|
2019
|
+
})(We, function(e, t, a) {
|
|
2020
|
+
"use strict";
|
|
2021
|
+
function n(f, b) {
|
|
2022
|
+
if (!f) throw new Error(b);
|
|
2023
|
+
}
|
|
2024
|
+
r(n, "invariant");
|
|
2025
|
+
function l(f, b) {
|
|
2026
|
+
if (!f) {
|
|
2027
|
+
typeof console < "u" && console.warn(b);
|
|
2028
|
+
try {
|
|
2029
|
+
throw new Error(b);
|
|
2030
|
+
} catch {
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
r(l, "warning");
|
|
2035
|
+
let v = {};
|
|
2036
|
+
function z(f, b, A) {
|
|
2037
|
+
!b && !v[f] && (v[f] = !0, l(!1, A));
|
|
2038
|
+
}
|
|
2039
|
+
r(z, "warningOnce");
|
|
2040
|
+
let B = /* @__PURE__ */ t.createContext(null);
|
|
2041
|
+
B.displayName = "Navigation";
|
|
2042
|
+
let U = /* @__PURE__ */ t.createContext(null);
|
|
2043
|
+
U.displayName = "Location";
|
|
2044
|
+
let J = /* @__PURE__ */ t.createContext({
|
|
2045
|
+
outlet: null,
|
|
2046
|
+
matches: []
|
|
2047
|
+
});
|
|
2048
|
+
J.displayName = "Route";
|
|
2049
|
+
function F(f) {
|
|
2050
|
+
let {
|
|
2051
|
+
basename: b,
|
|
2052
|
+
children: A,
|
|
2053
|
+
initialEntries: k,
|
|
2054
|
+
initialIndex: D
|
|
2055
|
+
} = f, G = t.useRef();
|
|
2056
|
+
G.current == null && (G.current = a.createMemoryHistory({
|
|
2057
|
+
initialEntries: k,
|
|
2058
|
+
initialIndex: D
|
|
2059
|
+
}));
|
|
2060
|
+
let Q = G.current, [X, ee] = t.useState({
|
|
2061
|
+
action: Q.action,
|
|
2062
|
+
location: Q.location
|
|
2063
|
+
});
|
|
2064
|
+
return t.useLayoutEffect(() => Q.listen(ee), [Q]), /* @__PURE__ */ t.createElement(E, {
|
|
2065
|
+
basename: b,
|
|
2066
|
+
children: A,
|
|
2067
|
+
location: X.location,
|
|
2068
|
+
navigationType: X.action,
|
|
2069
|
+
navigator: Q
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
r(F, "MemoryRouter");
|
|
2073
|
+
function x(f) {
|
|
2074
|
+
let {
|
|
2075
|
+
to: b,
|
|
2076
|
+
replace: A,
|
|
2077
|
+
state: k
|
|
2078
|
+
} = f;
|
|
2079
|
+
i() || n(
|
|
2080
|
+
!1,
|
|
2081
|
+
// TODO: This error is probably because they somehow have 2 versions of
|
|
2082
|
+
// the router loaded. We can help them understand how to avoid that.
|
|
2083
|
+
"<Navigate> may be used only in the context of a <Router> component."
|
|
2084
|
+
), l(!t.useContext(B).static, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should \
|
|
2085
|
+
modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
2086
|
+
let D = S();
|
|
2087
|
+
return t.useEffect(() => {
|
|
2088
|
+
D(b, {
|
|
2089
|
+
replace: A,
|
|
2090
|
+
state: k
|
|
2091
|
+
});
|
|
2092
|
+
}), null;
|
|
2093
|
+
}
|
|
2094
|
+
r(x, "Navigate");
|
|
2095
|
+
function O(f) {
|
|
2096
|
+
return N();
|
|
2097
|
+
}
|
|
2098
|
+
r(O, "Outlet");
|
|
2099
|
+
function j(f) {
|
|
2100
|
+
n(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Rou\
|
|
2101
|
+
tes>.");
|
|
2102
|
+
}
|
|
2103
|
+
r(j, "Route");
|
|
2104
|
+
function E(f) {
|
|
2105
|
+
let {
|
|
2106
|
+
basename: b = "/",
|
|
2107
|
+
children: A = null,
|
|
2108
|
+
location: k,
|
|
2109
|
+
navigationType: D = a.Action.Pop,
|
|
2110
|
+
navigator: G,
|
|
2111
|
+
static: Q = !1
|
|
2112
|
+
} = f;
|
|
2113
|
+
i() && n(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
2114
|
+
let X = Ar(b), ee = t.useMemo(() => ({
|
|
2115
|
+
basename: X,
|
|
2116
|
+
navigator: G,
|
|
2117
|
+
static: Q
|
|
2118
|
+
}), [X, G, Q]);
|
|
2119
|
+
typeof k == "string" && (k = a.parsePath(k));
|
|
2120
|
+
let {
|
|
2121
|
+
pathname: te = "/",
|
|
2122
|
+
search: ue = "",
|
|
2123
|
+
hash: ce = "",
|
|
2124
|
+
state: se = null,
|
|
2125
|
+
key: le = "default"
|
|
2126
|
+
} = k, oe = t.useMemo(() => {
|
|
2127
|
+
let ct = lt(te, X);
|
|
2128
|
+
return ct == null ? null : {
|
|
2129
|
+
pathname: ct,
|
|
2130
|
+
search: ue,
|
|
2131
|
+
hash: ce,
|
|
2132
|
+
state: se,
|
|
2133
|
+
key: le
|
|
2134
|
+
};
|
|
2135
|
+
}, [X, te, ue, ce, se, le]);
|
|
2136
|
+
return l(oe != null, '<Router basename="' + X + '"> is not able to match the URL ' + ('"' + te + ue + ce + '" because it does not star\
|
|
2137
|
+
t with the ') + "basename, so the <Router> won't render anything."), oe == null ? null : /* @__PURE__ */ t.createElement(B.Provider, {
|
|
2138
|
+
value: ee
|
|
2139
|
+
}, /* @__PURE__ */ t.createElement(U.Provider, {
|
|
2140
|
+
children: A,
|
|
2141
|
+
value: {
|
|
2142
|
+
location: oe,
|
|
2143
|
+
navigationType: D
|
|
2144
|
+
}
|
|
2145
|
+
}));
|
|
2146
|
+
}
|
|
2147
|
+
r(E, "Router");
|
|
2148
|
+
function L(f) {
|
|
2149
|
+
let {
|
|
2150
|
+
children: b,
|
|
2151
|
+
location: A
|
|
2152
|
+
} = f;
|
|
2153
|
+
return Y(_(b), A);
|
|
2154
|
+
}
|
|
2155
|
+
r(L, "Routes");
|
|
2156
|
+
function s(f) {
|
|
2157
|
+
i() || n(
|
|
2158
|
+
!1,
|
|
2159
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2160
|
+
// router loaded. We can help them understand how to avoid that.
|
|
2161
|
+
"useHref() may be used only in the context of a <Router> component."
|
|
2162
|
+
);
|
|
2163
|
+
let {
|
|
2164
|
+
basename: b,
|
|
2165
|
+
navigator: A
|
|
2166
|
+
} = t.useContext(B), {
|
|
2167
|
+
hash: k,
|
|
2168
|
+
pathname: D,
|
|
2169
|
+
search: G
|
|
2170
|
+
} = W(f), Q = D;
|
|
2171
|
+
if (b !== "/") {
|
|
2172
|
+
let X = Rr(f), ee = X != null && X.endsWith("/");
|
|
2173
|
+
Q = D === "/" ? b + (ee ? "/" : "") : ve([b, D]);
|
|
2174
|
+
}
|
|
2175
|
+
return A.createHref({
|
|
2176
|
+
pathname: Q,
|
|
2177
|
+
search: G,
|
|
2178
|
+
hash: k
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
r(s, "useHref");
|
|
2182
|
+
function i() {
|
|
2183
|
+
return t.useContext(U) != null;
|
|
2184
|
+
}
|
|
2185
|
+
r(i, "useInRouterContext");
|
|
2186
|
+
function h() {
|
|
2187
|
+
return i() || n(
|
|
2188
|
+
!1,
|
|
2189
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2190
|
+
// router loaded. We can help them understand how to avoid that.
|
|
2191
|
+
"useLocation() may be used only in the context of a <Router> component."
|
|
2192
|
+
), t.useContext(U).location;
|
|
2193
|
+
}
|
|
2194
|
+
r(h, "useLocation");
|
|
2195
|
+
function c() {
|
|
2196
|
+
return t.useContext(U).navigationType;
|
|
2197
|
+
}
|
|
2198
|
+
r(c, "useNavigationType");
|
|
2199
|
+
function y(f) {
|
|
2200
|
+
return i() || n(
|
|
2201
|
+
!1,
|
|
2202
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2203
|
+
// router loaded. We can help them understand how to avoid that.
|
|
2204
|
+
"useMatch() may be used only in the context of a <Router> component."
|
|
2205
|
+
), q(f, h().pathname);
|
|
2206
|
+
}
|
|
2207
|
+
r(y, "useMatch");
|
|
2208
|
+
function S() {
|
|
2209
|
+
i() || n(
|
|
2210
|
+
!1,
|
|
2211
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2212
|
+
// router loaded. We can help them understand how to avoid that.
|
|
2213
|
+
"useNavigate() may be used only in the context of a <Router> component."
|
|
2214
|
+
);
|
|
2215
|
+
let {
|
|
2216
|
+
basename: f,
|
|
2217
|
+
navigator: b
|
|
2218
|
+
} = t.useContext(B), {
|
|
2219
|
+
matches: A
|
|
2220
|
+
} = t.useContext(J), {
|
|
2221
|
+
pathname: k
|
|
2222
|
+
} = h(), D = JSON.stringify(A.map((X) => X.pathnameBase)), G = t.useRef(!1);
|
|
2223
|
+
return t.useEffect(() => {
|
|
2224
|
+
G.current = !0;
|
|
2225
|
+
}), t.useCallback(function(X, ee) {
|
|
2226
|
+
if (ee === void 0 && (ee = {}), l(G.current, "You should call navigate() in a React.useEffect(), not when your component is first re\
|
|
2227
|
+
ndered."), !G.current) return;
|
|
2228
|
+
if (typeof X == "number") {
|
|
2229
|
+
b.go(X);
|
|
2230
|
+
return;
|
|
2231
|
+
}
|
|
2232
|
+
let te = $e(X, JSON.parse(D), k);
|
|
2233
|
+
f !== "/" && (te.pathname = ve([f, te.pathname])), (ee.replace ? b.replace : b.push)(te, ee.state);
|
|
2234
|
+
}, [f, b, D, k]);
|
|
2235
|
+
}
|
|
2236
|
+
r(S, "useNavigate");
|
|
2237
|
+
function N() {
|
|
2238
|
+
return t.useContext(J).outlet;
|
|
2239
|
+
}
|
|
2240
|
+
r(N, "useOutlet");
|
|
2241
|
+
function I() {
|
|
2242
|
+
let {
|
|
2243
|
+
matches: f
|
|
2244
|
+
} = t.useContext(J), b = f[f.length - 1];
|
|
2245
|
+
return b ? b.params : {};
|
|
2246
|
+
}
|
|
2247
|
+
r(I, "useParams");
|
|
2248
|
+
function W(f) {
|
|
2249
|
+
let {
|
|
2250
|
+
matches: b
|
|
2251
|
+
} = t.useContext(J), {
|
|
2252
|
+
pathname: A
|
|
2253
|
+
} = h(), k = JSON.stringify(b.map((D) => D.pathnameBase));
|
|
2254
|
+
return t.useMemo(() => $e(f, JSON.parse(k), A), [f, k, A]);
|
|
2255
|
+
}
|
|
2256
|
+
r(W, "useResolvedPath");
|
|
2257
|
+
function Y(f, b) {
|
|
2258
|
+
i() || n(
|
|
2259
|
+
!1,
|
|
2260
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2261
|
+
// router loaded. We can help them understand how to avoid that.
|
|
2262
|
+
"useRoutes() may be used only in the context of a <Router> component."
|
|
2263
|
+
);
|
|
2264
|
+
let {
|
|
2265
|
+
matches: A
|
|
2266
|
+
} = t.useContext(J), k = A[A.length - 1], D = k ? k.params : {}, G = k ? k.pathname : "/", Q = k ? k.pathnameBase : "/", X = k && k.route;
|
|
2267
|
+
{
|
|
2268
|
+
let oe = X && X.path || "";
|
|
2269
|
+
z(G, !X || oe.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + G + '" (under <Route path="' +
|
|
2270
|
+
oe + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and\
|
|
2271
|
+
therefore the child routes will never render.
|
|
2272
|
+
|
|
2273
|
+
` + ('Please change the parent <Route path="' + oe + '"> to <Route ') + ('path="' + oe + '/*">.'));
|
|
2274
|
+
}
|
|
2275
|
+
let ee = h(), te;
|
|
2276
|
+
if (b) {
|
|
2277
|
+
var ue;
|
|
2278
|
+
let oe = typeof b == "string" ? a.parsePath(b) : b;
|
|
2279
|
+
Q === "/" || (ue = oe.pathname) != null && ue.startsWith(Q) || n(!1, "When overriding the location using `<Routes location>` or `use\
|
|
2280
|
+
Routes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes\
|
|
2281
|
+
. The current pathname base is "' + Q + '" ') + ('but pathname "' + oe.pathname + '" was given in the `location` prop.')), te = oe;
|
|
2282
|
+
} else
|
|
2283
|
+
te = ee;
|
|
2284
|
+
let ce = te.pathname || "/", se = Q === "/" ? ce : ce.slice(Q.length) || "/", le = $(f, {
|
|
2285
|
+
pathname: se
|
|
2286
|
+
});
|
|
2287
|
+
return l(X || le != null, 'No routes matched location "' + te.pathname + te.search + te.hash + '" '), l(le == null || le[le.length - 1].
|
|
2288
|
+
route.element !== void 0, 'Matched leaf route at location "' + te.pathname + te.search + te.hash + '" does not have an element. This m\
|
|
2289
|
+
eans it will render an <Outlet /> with a null value by default resulting in an "empty" page.'), K(le && le.map((oe) => Object.assign({}, oe,
|
|
2290
|
+
{
|
|
2291
|
+
params: Object.assign({}, D, oe.params),
|
|
2292
|
+
pathname: ve([Q, oe.pathname]),
|
|
2293
|
+
pathnameBase: oe.pathnameBase === "/" ? Q : ve([Q, oe.pathnameBase])
|
|
2294
|
+
})), A);
|
|
2295
|
+
}
|
|
2296
|
+
r(Y, "useRoutes");
|
|
2297
|
+
function _(f) {
|
|
2298
|
+
let b = [];
|
|
2299
|
+
return t.Children.forEach(f, (A) => {
|
|
2300
|
+
if (!/* @__PURE__ */ t.isValidElement(A))
|
|
2301
|
+
return;
|
|
2302
|
+
if (A.type === t.Fragment) {
|
|
2303
|
+
b.push.apply(b, _(A.props.children));
|
|
2304
|
+
return;
|
|
2305
|
+
}
|
|
2306
|
+
A.type !== j && n(!1, "[" + (typeof A.type == "string" ? A.type : A.type.name) + "] is not a <Route> component. All component childr\
|
|
2307
|
+
en of <Routes> must be a <Route> or <React.Fragment>");
|
|
2308
|
+
let k = {
|
|
2309
|
+
caseSensitive: A.props.caseSensitive,
|
|
2310
|
+
element: A.props.element,
|
|
2311
|
+
index: A.props.index,
|
|
2312
|
+
path: A.props.path
|
|
2313
|
+
};
|
|
2314
|
+
A.props.children && (k.children = _(A.props.children)), b.push(k);
|
|
2315
|
+
}), b;
|
|
2316
|
+
}
|
|
2317
|
+
r(_, "createRoutesFromChildren");
|
|
2318
|
+
function V(f, b) {
|
|
2319
|
+
return b === void 0 && (b = {}), f.replace(/:(\w+)/g, (A, k) => (b[k] == null && n(!1, 'Missing ":' + k + '" param'), b[k])).replace(/\/*\*$/,
|
|
2320
|
+
(A) => b["*"] == null ? "" : b["*"].replace(/^\/*/, "/"));
|
|
2321
|
+
}
|
|
2322
|
+
r(V, "generatePath");
|
|
2323
|
+
function $(f, b, A) {
|
|
2324
|
+
A === void 0 && (A = "/");
|
|
2325
|
+
let k = typeof b == "string" ? a.parsePath(b) : b, D = lt(k.pathname || "/", A);
|
|
2326
|
+
if (D == null)
|
|
2327
|
+
return null;
|
|
2328
|
+
let G = w(f);
|
|
2329
|
+
P(G);
|
|
2330
|
+
let Q = null;
|
|
2331
|
+
for (let X = 0; Q == null && X < G.length; ++X)
|
|
2332
|
+
Q = p(G[X], f, D);
|
|
2333
|
+
return Q;
|
|
2334
|
+
}
|
|
2335
|
+
r($, "matchRoutes");
|
|
2336
|
+
function w(f, b, A, k) {
|
|
2337
|
+
return b === void 0 && (b = []), A === void 0 && (A = []), k === void 0 && (k = ""), f.forEach((D, G) => {
|
|
2338
|
+
let Q = {
|
|
2339
|
+
relativePath: D.path || "",
|
|
2340
|
+
caseSensitive: D.caseSensitive === !0,
|
|
2341
|
+
childrenIndex: G
|
|
2342
|
+
};
|
|
2343
|
+
Q.relativePath.startsWith("/") && (Q.relativePath.startsWith(k) || n(!1, 'Absolute route path "' + Q.relativePath + '" nested under \
|
|
2344
|
+
path ' + ('"' + k + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), Q.relativePath =
|
|
2345
|
+
Q.relativePath.slice(k.length));
|
|
2346
|
+
let X = ve([k, Q.relativePath]), ee = A.concat(Q);
|
|
2347
|
+
D.children && D.children.length > 0 && (D.index === !0 && n(!1, "Index routes must not have child routes. Please remove " + ('all ch\
|
|
2348
|
+
ild routes from route path "' + X + '".')), w(D.children, b, ee, X)), !(D.path == null && !D.index) && b.push({
|
|
2349
|
+
path: X,
|
|
2350
|
+
score: M(X, D.index),
|
|
2351
|
+
routesMeta: ee
|
|
2352
|
+
});
|
|
2353
|
+
}), b;
|
|
2354
|
+
}
|
|
2355
|
+
r(w, "flattenRoutes");
|
|
2356
|
+
function P(f) {
|
|
2357
|
+
f.sort((b, A) => b.score !== A.score ? A.score - b.score : C(b.routesMeta.map((k) => k.childrenIndex), A.routesMeta.map((k) => k.childrenIndex)));
|
|
2358
|
+
}
|
|
2359
|
+
r(P, "rankRouteBranches");
|
|
2360
|
+
let H = /^:\w+$/, o = 3, u = 2, g = 1, d = 10, m = -2, T = /* @__PURE__ */ r((f) => f === "*", "isSplat");
|
|
2361
|
+
function M(f, b) {
|
|
2362
|
+
let A = f.split("/"), k = A.length;
|
|
2363
|
+
return A.some(T) && (k += m), b && (k += u), A.filter((D) => !T(D)).reduce((D, G) => D + (H.test(G) ? o : G === "" ? g : d), k);
|
|
2364
|
+
}
|
|
2365
|
+
r(M, "computeScore");
|
|
2366
|
+
function C(f, b) {
|
|
2367
|
+
return f.length === b.length && f.slice(0, -1).every((k, D) => k === b[D]) ? (
|
|
2368
|
+
// If two routes are siblings, we should try to match the earlier sibling
|
|
2369
|
+
// first. This allows people to have fine-grained control over the matching
|
|
2370
|
+
// behavior by simply putting routes with identical paths in the order they
|
|
2371
|
+
// want them tried.
|
|
2372
|
+
f[f.length - 1] - b[b.length - 1]
|
|
2373
|
+
) : (
|
|
2374
|
+
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
2375
|
+
// so they sort equally.
|
|
2376
|
+
0
|
|
2377
|
+
);
|
|
2378
|
+
}
|
|
2379
|
+
r(C, "compareIndexes");
|
|
2380
|
+
function p(f, b, A) {
|
|
2381
|
+
let k = b, {
|
|
2382
|
+
routesMeta: D
|
|
2383
|
+
} = f, G = {}, Q = "/", X = [];
|
|
2384
|
+
for (let ee = 0; ee < D.length; ++ee) {
|
|
2385
|
+
let te = D[ee], ue = ee === D.length - 1, ce = Q === "/" ? A : A.slice(Q.length) || "/", se = q({
|
|
2386
|
+
path: te.relativePath,
|
|
2387
|
+
caseSensitive: te.caseSensitive,
|
|
2388
|
+
end: ue
|
|
2389
|
+
}, ce);
|
|
2390
|
+
if (!se) return null;
|
|
2391
|
+
Object.assign(G, se.params);
|
|
2392
|
+
let le = k[te.childrenIndex];
|
|
2393
|
+
X.push({
|
|
2394
|
+
params: G,
|
|
2395
|
+
pathname: ve([Q, se.pathname]),
|
|
2396
|
+
pathnameBase: ve([Q, se.pathnameBase]),
|
|
2397
|
+
route: le
|
|
2398
|
+
}), se.pathnameBase !== "/" && (Q = ve([Q, se.pathnameBase])), k = le.children;
|
|
2399
|
+
}
|
|
2400
|
+
return X;
|
|
2401
|
+
}
|
|
2402
|
+
r(p, "matchRouteBranch");
|
|
2403
|
+
function R(f) {
|
|
2404
|
+
return K(f);
|
|
2405
|
+
}
|
|
2406
|
+
r(R, "renderMatches");
|
|
2407
|
+
function K(f, b) {
|
|
2408
|
+
return b === void 0 && (b = []), f == null ? null : f.reduceRight((A, k, D) => /* @__PURE__ */ t.createElement(J.Provider, {
|
|
2409
|
+
children: k.route.element !== void 0 ? k.route.element : /* @__PURE__ */ t.createElement(O, null),
|
|
2410
|
+
value: {
|
|
2411
|
+
outlet: A,
|
|
2412
|
+
matches: b.concat(f.slice(0, D + 1))
|
|
2413
|
+
}
|
|
2414
|
+
}), null);
|
|
2415
|
+
}
|
|
2416
|
+
r(K, "_renderMatches");
|
|
2417
|
+
function q(f, b) {
|
|
2418
|
+
typeof f == "string" && (f = {
|
|
2419
|
+
path: f,
|
|
2420
|
+
caseSensitive: !1,
|
|
2421
|
+
end: !0
|
|
2422
|
+
});
|
|
2423
|
+
let [A, k] = Z(f.path, f.caseSensitive, f.end), D = b.match(A);
|
|
2424
|
+
if (!D) return null;
|
|
2425
|
+
let G = D[0], Q = G.replace(/(.)\/+$/, "$1"), X = D.slice(1);
|
|
2426
|
+
return {
|
|
2427
|
+
params: k.reduce((te, ue, ce) => {
|
|
2428
|
+
if (ue === "*") {
|
|
2429
|
+
let se = X[ce] || "";
|
|
2430
|
+
Q = G.slice(0, G.length - se.length).replace(/(.)\/+$/, "$1");
|
|
2431
|
+
}
|
|
2432
|
+
return te[ue] = re(X[ce] || "", ue), te;
|
|
2433
|
+
}, {}),
|
|
2434
|
+
pathname: G,
|
|
2435
|
+
pathnameBase: Q,
|
|
2436
|
+
pattern: f
|
|
2437
|
+
};
|
|
2438
|
+
}
|
|
2439
|
+
r(q, "matchPath");
|
|
2440
|
+
function Z(f, b, A) {
|
|
2441
|
+
b === void 0 && (b = !1), A === void 0 && (A = !0), l(f === "*" || !f.endsWith("*") || f.endsWith("/*"), 'Route path "' + f + '" will \
|
|
2442
|
+
be treated as if it were ' + ('"' + f.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To \
|
|
2443
|
+
get rid of this warning, " + ('please change the route path to "' + f.replace(/\*$/, "/*") + '".'));
|
|
2444
|
+
let k = [], D = "^" + f.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^$?{}|()[\]]/g, "\\$&").replace(/:(\w+)/g, (Q, X) => (k.
|
|
2445
|
+
push(X), "([^\\/]+)"));
|
|
2446
|
+
return f.endsWith("*") ? (k.push("*"), D += f === "*" || f === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : D += A ? "\\/*$" : (
|
|
2447
|
+
// Otherwise, at least match a word boundary. This restricts parent
|
|
2448
|
+
// routes to matching only their own words and nothing more, e.g. parent
|
|
2449
|
+
// route "/home" should not match "/home2".
|
|
2450
|
+
"(?:\\b|$)"
|
|
2451
|
+
), [new RegExp(D, b ? void 0 : "i"), k];
|
|
2452
|
+
}
|
|
2453
|
+
r(Z, "compilePath");
|
|
2454
|
+
function re(f, b) {
|
|
2455
|
+
try {
|
|
2456
|
+
return decodeURIComponent(f);
|
|
2457
|
+
} catch (A) {
|
|
2458
|
+
return l(!1, 'The value for the URL param "' + b + '" will not be decoded because' + (' the string "' + f + '" is a malformed URL se\
|
|
2459
|
+
gment. This is probably') + (" due to a bad percent encoding (" + A + ").")), f;
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
r(re, "safelyDecodeURIComponent");
|
|
2463
|
+
function ae(f, b) {
|
|
2464
|
+
b === void 0 && (b = "/");
|
|
2465
|
+
let {
|
|
2466
|
+
pathname: A,
|
|
2467
|
+
search: k = "",
|
|
2468
|
+
hash: D = ""
|
|
2469
|
+
} = typeof f == "string" ? a.parsePath(f) : f;
|
|
2470
|
+
return {
|
|
2471
|
+
pathname: A ? A.startsWith("/") ? A : ie(A, b) : b,
|
|
2472
|
+
search: Er(k),
|
|
2473
|
+
hash: Cr(D)
|
|
2474
|
+
};
|
|
2475
|
+
}
|
|
2476
|
+
r(ae, "resolvePath");
|
|
2477
|
+
function ie(f, b) {
|
|
2478
|
+
let A = b.replace(/\/+$/, "").split("/");
|
|
2479
|
+
return f.split("/").forEach((D) => {
|
|
2480
|
+
D === ".." ? A.length > 1 && A.pop() : D !== "." && A.push(D);
|
|
2481
|
+
}), A.length > 1 ? A.join("/") : "/";
|
|
2482
|
+
}
|
|
2483
|
+
r(ie, "resolvePathname");
|
|
2484
|
+
function $e(f, b, A) {
|
|
2485
|
+
let k = typeof f == "string" ? a.parsePath(f) : f, D = f === "" || k.pathname === "" ? "/" : k.pathname, G;
|
|
2486
|
+
if (D == null)
|
|
2487
|
+
G = A;
|
|
2488
|
+
else {
|
|
2489
|
+
let X = b.length - 1;
|
|
2490
|
+
if (D.startsWith("..")) {
|
|
2491
|
+
let ee = D.split("/");
|
|
2492
|
+
for (; ee[0] === ".."; )
|
|
2493
|
+
ee.shift(), X -= 1;
|
|
2494
|
+
k.pathname = ee.join("/");
|
|
2495
|
+
}
|
|
2496
|
+
G = X >= 0 ? b[X] : "/";
|
|
2497
|
+
}
|
|
2498
|
+
let Q = ae(k, G);
|
|
2499
|
+
return D && D !== "/" && D.endsWith("/") && !Q.pathname.endsWith("/") && (Q.pathname += "/"), Q;
|
|
2500
|
+
}
|
|
2501
|
+
r($e, "resolveTo");
|
|
2502
|
+
function Rr(f) {
|
|
2503
|
+
return f === "" || f.pathname === "" ? "/" : typeof f == "string" ? a.parsePath(f).pathname : f.pathname;
|
|
2504
|
+
}
|
|
2505
|
+
r(Rr, "getToPathname");
|
|
2506
|
+
function lt(f, b) {
|
|
2507
|
+
if (b === "/") return f;
|
|
2508
|
+
if (!f.toLowerCase().startsWith(b.toLowerCase()))
|
|
2509
|
+
return null;
|
|
2510
|
+
let A = f.charAt(b.length);
|
|
2511
|
+
return A && A !== "/" ? null : f.slice(b.length) || "/";
|
|
2512
|
+
}
|
|
2513
|
+
r(lt, "stripBasename");
|
|
2514
|
+
let ve = /* @__PURE__ */ r((f) => f.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Ar = /* @__PURE__ */ r((f) => f.replace(/\/+$/, "").
|
|
2515
|
+
replace(/^\/*/, "/"), "normalizePathname"), Er = /* @__PURE__ */ r((f) => !f || f === "?" ? "" : f.startsWith("?") ? f : "?" + f, "norma\
|
|
2516
|
+
lizeSearch"), Cr = /* @__PURE__ */ r((f) => !f || f === "#" ? "" : f.startsWith("#") ? f : "#" + f, "normalizeHash");
|
|
2517
|
+
e.MemoryRouter = F, e.Navigate = x, e.Outlet = O, e.Route = j, e.Router = E, e.Routes = L, e.UNSAFE_LocationContext = U, e.UNSAFE_NavigationContext =
|
|
2518
|
+
B, e.UNSAFE_RouteContext = J, e.createRoutesFromChildren = _, e.generatePath = V, e.matchPath = q, e.matchRoutes = $, e.renderMatches = R,
|
|
2519
|
+
e.resolvePath = ae, e.useHref = s, e.useInRouterContext = i, e.useLocation = h, e.useMatch = y, e.useNavigate = S, e.useNavigationType =
|
|
2520
|
+
c, e.useOutlet = N, e.useParams = I, e.useResolvedPath = W, e.useRoutes = Y, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2521
|
+
});
|
|
2522
|
+
});
|
|
2523
|
+
|
|
2524
|
+
// ../node_modules/react-router/main.js
|
|
2525
|
+
var ot = ne((ga, gr) => {
|
|
2526
|
+
"use strict";
|
|
2527
|
+
gr.exports = process.env.NODE_ENV === "production" ? pr() : mr();
|
|
2528
|
+
});
|
|
2529
|
+
|
|
2530
|
+
// ../node_modules/react-router-dom/umd/react-router-dom.production.min.js
|
|
2531
|
+
var vr = ne((He, yr) => {
|
|
2532
|
+
(function(e, t) {
|
|
2533
|
+
typeof He == "object" && typeof yr < "u" ? t(He, require("react"), Ee(), ot()) : typeof define == "function" && define.amd ? define(["ex\
|
|
2534
|
+
ports", "react", "history", "react-router"], t) : t((e = e || self).ReactRouterDOM = {}, e.React, e.HistoryLibrary, e.ReactRouter);
|
|
2535
|
+
})(He, function(e, t, a, n) {
|
|
2536
|
+
"use strict";
|
|
2537
|
+
function l() {
|
|
2538
|
+
return l = Object.assign || function(O) {
|
|
2539
|
+
for (var j = 1; j < arguments.length; j++) {
|
|
2540
|
+
var E = arguments[j];
|
|
2541
|
+
for (var L in E) Object.prototype.hasOwnProperty.call(E, L) && (O[L] = E[L]);
|
|
2542
|
+
}
|
|
2543
|
+
return O;
|
|
2544
|
+
}, l.apply(this, arguments);
|
|
2545
|
+
}
|
|
2546
|
+
r(l, "a");
|
|
2547
|
+
function v(O, j) {
|
|
2548
|
+
if (O == null) return {};
|
|
2549
|
+
var E, L, s = {}, i = Object.keys(O);
|
|
2550
|
+
for (L = 0; L < i.length; L++) E = i[L], j.indexOf(E) >= 0 || (s[E] = O[E]);
|
|
2551
|
+
return s;
|
|
2552
|
+
}
|
|
2553
|
+
r(v, "o");
|
|
2554
|
+
let z = ["onClick", "reloadDocument", "replace", "state", "target", "to"], B = ["aria-current", "caseSensitive", "className", "end", "st\
|
|
2555
|
+
yle", "to"], U = t.forwardRef(function(O, j) {
|
|
2556
|
+
let { onClick: E, reloadDocument: L, replace: s = !1, state: i, target: h, to: c } = O, y = v(O, z), S = n.useHref(c), N = F(c, { replace: s,
|
|
2557
|
+
state: i, target: h });
|
|
2558
|
+
return t.createElement("a", l({}, y, { href: S, onClick: /* @__PURE__ */ r(function(I) {
|
|
2559
|
+
E && E(I), I.defaultPrevented || L || N(I);
|
|
2560
|
+
}, "onClick"), ref: j, target: h }));
|
|
2561
|
+
}), J = t.forwardRef(function(O, j) {
|
|
2562
|
+
let { "aria-current": E = "page", caseSensitive: L = !1, className: s = "", end: i = !1, style: h, to: c } = O, y = v(O, B), S = n.useLocation(),
|
|
2563
|
+
N = n.useResolvedPath(c), I = S.pathname, W = N.pathname;
|
|
2564
|
+
L || (I = I.toLowerCase(), W = W.toLowerCase());
|
|
2565
|
+
let Y, _ = I === W || !i && I.startsWith(W) && I.charAt(W.length) === "/", V = _ ? E : void 0;
|
|
2566
|
+
Y = typeof s == "function" ? s({ isActive: _ }) : [s, _ ? "active" : null].filter(Boolean).join(" ");
|
|
2567
|
+
let $ = typeof h == "function" ? h({ isActive: _ }) : h;
|
|
2568
|
+
return t.createElement(U, l({}, y, { "aria-current": V, className: Y, ref: j, style: $, to: c }));
|
|
2569
|
+
});
|
|
2570
|
+
function F(O, j) {
|
|
2571
|
+
let { target: E, replace: L, state: s } = j === void 0 ? {} : j, i = n.useNavigate(), h = n.useLocation(), c = n.useResolvedPath(O);
|
|
2572
|
+
return t.useCallback((y) => {
|
|
2573
|
+
if (!(y.button !== 0 || E && E !== "_self" || function(S) {
|
|
2574
|
+
return !!(S.metaKey || S.altKey || S.ctrlKey || S.shiftKey);
|
|
2575
|
+
}(y))) {
|
|
2576
|
+
y.preventDefault();
|
|
2577
|
+
let S = !!L || a.createPath(h) === a.createPath(c);
|
|
2578
|
+
i(O, { replace: S, state: s });
|
|
2579
|
+
}
|
|
2580
|
+
}, [h, i, c, L, s, E, O]);
|
|
2581
|
+
}
|
|
2582
|
+
r(F, "l");
|
|
2583
|
+
function x(O) {
|
|
2584
|
+
return O === void 0 && (O = ""), new URLSearchParams(typeof O == "string" || Array.isArray(O) || O instanceof URLSearchParams ? O : Object.
|
|
2585
|
+
keys(O).reduce((j, E) => {
|
|
2586
|
+
let L = O[E];
|
|
2587
|
+
return j.concat(Array.isArray(L) ? L.map((s) => [E, s]) : [[E, L]]);
|
|
2588
|
+
}, []));
|
|
2589
|
+
}
|
|
2590
|
+
r(x, "f"), Object.defineProperty(e, "MemoryRouter", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2591
|
+
return n.MemoryRouter;
|
|
2592
|
+
}, "get") }), Object.defineProperty(e, "Navigate", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2593
|
+
return n.Navigate;
|
|
2594
|
+
}, "get") }), Object.defineProperty(e, "Outlet", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2595
|
+
return n.Outlet;
|
|
2596
|
+
}, "get") }), Object.defineProperty(e, "Route", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2597
|
+
return n.Route;
|
|
2598
|
+
}, "get") }), Object.defineProperty(e, "Router", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2599
|
+
return n.Router;
|
|
2600
|
+
}, "get") }), Object.defineProperty(e, "Routes", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2601
|
+
return n.Routes;
|
|
2602
|
+
}, "get") }), Object.defineProperty(e, "UNSAFE_LocationContext", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2603
|
+
return n.UNSAFE_LocationContext;
|
|
2604
|
+
}, "get") }), Object.defineProperty(e, "UNSAFE_NavigationContext", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2605
|
+
return n.UNSAFE_NavigationContext;
|
|
2606
|
+
}, "get") }), Object.defineProperty(e, "UNSAFE_RouteContext", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2607
|
+
return n.UNSAFE_RouteContext;
|
|
2608
|
+
}, "get") }), Object.defineProperty(e, "createRoutesFromChildren", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2609
|
+
return n.createRoutesFromChildren;
|
|
2610
|
+
}, "get") }), Object.defineProperty(e, "generatePath", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2611
|
+
return n.generatePath;
|
|
2612
|
+
}, "get") }), Object.defineProperty(e, "matchPath", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2613
|
+
return n.matchPath;
|
|
2614
|
+
}, "get") }), Object.defineProperty(e, "matchRoutes", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2615
|
+
return n.matchRoutes;
|
|
2616
|
+
}, "get") }), Object.defineProperty(e, "renderMatches", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2617
|
+
return n.renderMatches;
|
|
2618
|
+
}, "get") }), Object.defineProperty(e, "resolvePath", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2619
|
+
return n.resolvePath;
|
|
2620
|
+
}, "get") }), Object.defineProperty(e, "useHref", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2621
|
+
return n.useHref;
|
|
2622
|
+
}, "get") }), Object.defineProperty(e, "useInRouterContext", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2623
|
+
return n.useInRouterContext;
|
|
2624
|
+
}, "get") }), Object.defineProperty(e, "useLocation", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2625
|
+
return n.useLocation;
|
|
2626
|
+
}, "get") }), Object.defineProperty(e, "useMatch", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2627
|
+
return n.useMatch;
|
|
2628
|
+
}, "get") }), Object.defineProperty(e, "useNavigate", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2629
|
+
return n.useNavigate;
|
|
2630
|
+
}, "get") }), Object.defineProperty(e, "useNavigationType", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2631
|
+
return n.useNavigationType;
|
|
2632
|
+
}, "get") }), Object.defineProperty(e, "useOutlet", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2633
|
+
return n.useOutlet;
|
|
2634
|
+
}, "get") }), Object.defineProperty(e, "useParams", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2635
|
+
return n.useParams;
|
|
2636
|
+
}, "get") }), Object.defineProperty(e, "useResolvedPath", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2637
|
+
return n.useResolvedPath;
|
|
2638
|
+
}, "get") }), Object.defineProperty(e, "useRoutes", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2639
|
+
return n.useRoutes;
|
|
2640
|
+
}, "get") }), e.BrowserRouter = function(O) {
|
|
2641
|
+
let { basename: j, children: E, window: L } = O, s = t.useRef();
|
|
2642
|
+
s.current == null && (s.current = a.createBrowserHistory({ window: L }));
|
|
2643
|
+
let i = s.current, [h, c] = t.useState({ action: i.action, location: i.location });
|
|
2644
|
+
return t.useLayoutEffect(() => i.listen(c), [i]), t.createElement(n.Router, { basename: j, children: E, location: h.location, navigationType: h.
|
|
2645
|
+
action, navigator: i });
|
|
2646
|
+
}, e.HashRouter = function(O) {
|
|
2647
|
+
let { basename: j, children: E, window: L } = O, s = t.useRef();
|
|
2648
|
+
s.current == null && (s.current = a.createHashHistory({ window: L }));
|
|
2649
|
+
let i = s.current, [h, c] = t.useState({ action: i.action, location: i.location });
|
|
2650
|
+
return t.useLayoutEffect(() => i.listen(c), [i]), t.createElement(n.Router, { basename: j, children: E, location: h.location, navigationType: h.
|
|
2651
|
+
action, navigator: i });
|
|
2652
|
+
}, e.Link = U, e.NavLink = J, e.createSearchParams = x, e.useLinkClickHandler = F, e.useSearchParams = function(O) {
|
|
2653
|
+
let j = t.useRef(x(O)), E = n.useLocation(), L = t.useMemo(() => {
|
|
2654
|
+
let i = x(E.search);
|
|
2655
|
+
for (let h of j.current.keys()) i.has(h) || j.current.getAll(h).forEach((c) => {
|
|
2656
|
+
i.append(h, c);
|
|
2657
|
+
});
|
|
2658
|
+
return i;
|
|
2659
|
+
}, [E.search]), s = n.useNavigate();
|
|
2660
|
+
return [L, t.useCallback((i, h) => {
|
|
2661
|
+
s("?" + x(i), h);
|
|
2662
|
+
}, [s])];
|
|
2663
|
+
}, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2664
|
+
});
|
|
2665
|
+
});
|
|
2666
|
+
|
|
2667
|
+
// ../node_modules/react-router-dom/umd/react-router-dom.development.js
|
|
2668
|
+
var xr = ne((Fe, br) => {
|
|
2669
|
+
(function(e, t) {
|
|
2670
|
+
typeof Fe == "object" && typeof br < "u" ? t(Fe, require("react"), Ee(), ot()) : typeof define == "function" && define.amd ? define(["ex\
|
|
2671
|
+
ports", "react", "history", "react-router"], t) : (e = e || self, t(e.ReactRouterDOM = {}, e.React, e.HistoryLibrary, e.ReactRouter));
|
|
2672
|
+
})(Fe, function(e, t, a, n) {
|
|
2673
|
+
"use strict";
|
|
2674
|
+
function l() {
|
|
2675
|
+
return l = Object.assign || function(i) {
|
|
2676
|
+
for (var h = 1; h < arguments.length; h++) {
|
|
2677
|
+
var c = arguments[h];
|
|
2678
|
+
for (var y in c)
|
|
2679
|
+
Object.prototype.hasOwnProperty.call(c, y) && (i[y] = c[y]);
|
|
2680
|
+
}
|
|
2681
|
+
return i;
|
|
2682
|
+
}, l.apply(this, arguments);
|
|
2683
|
+
}
|
|
2684
|
+
r(l, "_extends");
|
|
2685
|
+
function v(i, h) {
|
|
2686
|
+
if (i == null) return {};
|
|
2687
|
+
var c = {}, y = Object.keys(i), S, N;
|
|
2688
|
+
for (N = 0; N < y.length; N++)
|
|
2689
|
+
S = y[N], !(h.indexOf(S) >= 0) && (c[S] = i[S]);
|
|
2690
|
+
return c;
|
|
2691
|
+
}
|
|
2692
|
+
r(v, "_objectWithoutPropertiesLoose");
|
|
2693
|
+
let z = ["onClick", "reloadDocument", "replace", "state", "target", "to"], B = ["aria-current", "caseSensitive", "className", "end", "st\
|
|
2694
|
+
yle", "to"];
|
|
2695
|
+
function U(i, h) {
|
|
2696
|
+
if (!i) {
|
|
2697
|
+
typeof console < "u" && console.warn(h);
|
|
2698
|
+
try {
|
|
2699
|
+
throw new Error(h);
|
|
2700
|
+
} catch {
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
r(U, "warning");
|
|
2705
|
+
function J(i) {
|
|
2706
|
+
let {
|
|
2707
|
+
basename: h,
|
|
2708
|
+
children: c,
|
|
2709
|
+
window: y
|
|
2710
|
+
} = i, S = t.useRef();
|
|
2711
|
+
S.current == null && (S.current = a.createBrowserHistory({
|
|
2712
|
+
window: y
|
|
2713
|
+
}));
|
|
2714
|
+
let N = S.current, [I, W] = t.useState({
|
|
2715
|
+
action: N.action,
|
|
2716
|
+
location: N.location
|
|
2717
|
+
});
|
|
2718
|
+
return t.useLayoutEffect(() => N.listen(W), [N]), /* @__PURE__ */ t.createElement(n.Router, {
|
|
2719
|
+
basename: h,
|
|
2720
|
+
children: c,
|
|
2721
|
+
location: I.location,
|
|
2722
|
+
navigationType: I.action,
|
|
2723
|
+
navigator: N
|
|
2724
|
+
});
|
|
2725
|
+
}
|
|
2726
|
+
r(J, "BrowserRouter");
|
|
2727
|
+
function F(i) {
|
|
2728
|
+
let {
|
|
2729
|
+
basename: h,
|
|
2730
|
+
children: c,
|
|
2731
|
+
window: y
|
|
2732
|
+
} = i, S = t.useRef();
|
|
2733
|
+
S.current == null && (S.current = a.createHashHistory({
|
|
2734
|
+
window: y
|
|
2735
|
+
}));
|
|
2736
|
+
let N = S.current, [I, W] = t.useState({
|
|
2737
|
+
action: N.action,
|
|
2738
|
+
location: N.location
|
|
2739
|
+
});
|
|
2740
|
+
return t.useLayoutEffect(() => N.listen(W), [N]), /* @__PURE__ */ t.createElement(n.Router, {
|
|
2741
|
+
basename: h,
|
|
2742
|
+
children: c,
|
|
2743
|
+
location: I.location,
|
|
2744
|
+
navigationType: I.action,
|
|
2745
|
+
navigator: N
|
|
2746
|
+
});
|
|
2747
|
+
}
|
|
2748
|
+
r(F, "HashRouter");
|
|
2749
|
+
function x(i) {
|
|
2750
|
+
return !!(i.metaKey || i.altKey || i.ctrlKey || i.shiftKey);
|
|
2751
|
+
}
|
|
2752
|
+
r(x, "isModifiedEvent");
|
|
2753
|
+
let O = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ r(function(h, c) {
|
|
2754
|
+
let {
|
|
2755
|
+
onClick: y,
|
|
2756
|
+
reloadDocument: S,
|
|
2757
|
+
replace: N = !1,
|
|
2758
|
+
state: I,
|
|
2759
|
+
target: W,
|
|
2760
|
+
to: Y
|
|
2761
|
+
} = h, _ = v(h, z), V = n.useHref(Y), $ = E(Y, {
|
|
2762
|
+
replace: N,
|
|
2763
|
+
state: I,
|
|
2764
|
+
target: W
|
|
2765
|
+
});
|
|
2766
|
+
function w(P) {
|
|
2767
|
+
y && y(P), !P.defaultPrevented && !S && $(P);
|
|
2768
|
+
}
|
|
2769
|
+
return r(w, "handleClick"), // eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
2770
|
+
/* @__PURE__ */ t.createElement("a", l({}, _, {
|
|
2771
|
+
href: V,
|
|
2772
|
+
onClick: w,
|
|
2773
|
+
ref: c,
|
|
2774
|
+
target: W
|
|
2775
|
+
}));
|
|
2776
|
+
}, "LinkWithRef"));
|
|
2777
|
+
O.displayName = "Link";
|
|
2778
|
+
let j = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ r(function(h, c) {
|
|
2779
|
+
let {
|
|
2780
|
+
"aria-current": y = "page",
|
|
2781
|
+
caseSensitive: S = !1,
|
|
2782
|
+
className: N = "",
|
|
2783
|
+
end: I = !1,
|
|
2784
|
+
style: W,
|
|
2785
|
+
to: Y
|
|
2786
|
+
} = h, _ = v(h, B), V = n.useLocation(), $ = n.useResolvedPath(Y), w = V.pathname, P = $.pathname;
|
|
2787
|
+
S || (w = w.toLowerCase(), P = P.toLowerCase());
|
|
2788
|
+
let H = w === P || !I && w.startsWith(P) && w.charAt(P.length) === "/", o = H ? y : void 0, u;
|
|
2789
|
+
typeof N == "function" ? u = N({
|
|
2790
|
+
isActive: H
|
|
2791
|
+
}) : u = [N, H ? "active" : null].filter(Boolean).join(" ");
|
|
2792
|
+
let g = typeof W == "function" ? W({
|
|
2793
|
+
isActive: H
|
|
2794
|
+
}) : W;
|
|
2795
|
+
return /* @__PURE__ */ t.createElement(O, l({}, _, {
|
|
2796
|
+
"aria-current": o,
|
|
2797
|
+
className: u,
|
|
2798
|
+
ref: c,
|
|
2799
|
+
style: g,
|
|
2800
|
+
to: Y
|
|
2801
|
+
}));
|
|
2802
|
+
}, "NavLinkWithRef"));
|
|
2803
|
+
j.displayName = "NavLink";
|
|
2804
|
+
function E(i, h) {
|
|
2805
|
+
let {
|
|
2806
|
+
target: c,
|
|
2807
|
+
replace: y,
|
|
2808
|
+
state: S
|
|
2809
|
+
} = h === void 0 ? {} : h, N = n.useNavigate(), I = n.useLocation(), W = n.useResolvedPath(i);
|
|
2810
|
+
return t.useCallback((Y) => {
|
|
2811
|
+
if (Y.button === 0 && // Ignore everything but left clicks
|
|
2812
|
+
(!c || c === "_self") && // Let browser handle "target=_blank" etc.
|
|
2813
|
+
!x(Y)) {
|
|
2814
|
+
Y.preventDefault();
|
|
2815
|
+
let _ = !!y || a.createPath(I) === a.createPath(W);
|
|
2816
|
+
N(i, {
|
|
2817
|
+
replace: _,
|
|
2818
|
+
state: S
|
|
2819
|
+
});
|
|
2820
|
+
}
|
|
2821
|
+
}, [I, N, W, y, S, c, i]);
|
|
2822
|
+
}
|
|
2823
|
+
r(E, "useLinkClickHandler");
|
|
2824
|
+
function L(i) {
|
|
2825
|
+
U(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API.\
|
|
2826
|
+
If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params\n\nIf you're\
|
|
2827
|
+
unsure how to load polyfills, we recommend you check out https://polyfill.io/v3/ which provides some recommendations about how to load poly\
|
|
2828
|
+
fills only for users that need them, instead of for every user.");
|
|
2829
|
+
let h = t.useRef(s(i)), c = n.useLocation(), y = t.useMemo(() => {
|
|
2830
|
+
let I = s(c.search);
|
|
2831
|
+
for (let W of h.current.keys())
|
|
2832
|
+
I.has(W) || h.current.getAll(W).forEach((Y) => {
|
|
2833
|
+
I.append(W, Y);
|
|
2834
|
+
});
|
|
2835
|
+
return I;
|
|
2836
|
+
}, [c.search]), S = n.useNavigate(), N = t.useCallback((I, W) => {
|
|
2837
|
+
S("?" + s(I), W);
|
|
2838
|
+
}, [S]);
|
|
2839
|
+
return [y, N];
|
|
2840
|
+
}
|
|
2841
|
+
r(L, "useSearchParams");
|
|
2842
|
+
function s(i) {
|
|
2843
|
+
return i === void 0 && (i = ""), new URLSearchParams(typeof i == "string" || Array.isArray(i) || i instanceof URLSearchParams ? i : Object.
|
|
2844
|
+
keys(i).reduce((h, c) => {
|
|
2845
|
+
let y = i[c];
|
|
2846
|
+
return h.concat(Array.isArray(y) ? y.map((S) => [c, S]) : [[c, y]]);
|
|
2847
|
+
}, []));
|
|
2848
|
+
}
|
|
2849
|
+
r(s, "createSearchParams"), Object.defineProperty(e, "MemoryRouter", {
|
|
2850
|
+
enumerable: !0,
|
|
2851
|
+
get: /* @__PURE__ */ r(function() {
|
|
2852
|
+
return n.MemoryRouter;
|
|
2853
|
+
}, "get")
|
|
2854
|
+
}), Object.defineProperty(e, "Navigate", {
|
|
2855
|
+
enumerable: !0,
|
|
2856
|
+
get: /* @__PURE__ */ r(function() {
|
|
2857
|
+
return n.Navigate;
|
|
2858
|
+
}, "get")
|
|
2859
|
+
}), Object.defineProperty(e, "Outlet", {
|
|
2860
|
+
enumerable: !0,
|
|
2861
|
+
get: /* @__PURE__ */ r(function() {
|
|
2862
|
+
return n.Outlet;
|
|
2863
|
+
}, "get")
|
|
2864
|
+
}), Object.defineProperty(e, "Route", {
|
|
2865
|
+
enumerable: !0,
|
|
2866
|
+
get: /* @__PURE__ */ r(function() {
|
|
2867
|
+
return n.Route;
|
|
2868
|
+
}, "get")
|
|
2869
|
+
}), Object.defineProperty(e, "Router", {
|
|
2870
|
+
enumerable: !0,
|
|
2871
|
+
get: /* @__PURE__ */ r(function() {
|
|
2872
|
+
return n.Router;
|
|
2873
|
+
}, "get")
|
|
2874
|
+
}), Object.defineProperty(e, "Routes", {
|
|
2875
|
+
enumerable: !0,
|
|
2876
|
+
get: /* @__PURE__ */ r(function() {
|
|
2877
|
+
return n.Routes;
|
|
2878
|
+
}, "get")
|
|
2879
|
+
}), Object.defineProperty(e, "UNSAFE_LocationContext", {
|
|
2880
|
+
enumerable: !0,
|
|
2881
|
+
get: /* @__PURE__ */ r(function() {
|
|
2882
|
+
return n.UNSAFE_LocationContext;
|
|
2883
|
+
}, "get")
|
|
2884
|
+
}), Object.defineProperty(e, "UNSAFE_NavigationContext", {
|
|
2885
|
+
enumerable: !0,
|
|
2886
|
+
get: /* @__PURE__ */ r(function() {
|
|
2887
|
+
return n.UNSAFE_NavigationContext;
|
|
2888
|
+
}, "get")
|
|
2889
|
+
}), Object.defineProperty(e, "UNSAFE_RouteContext", {
|
|
2890
|
+
enumerable: !0,
|
|
2891
|
+
get: /* @__PURE__ */ r(function() {
|
|
2892
|
+
return n.UNSAFE_RouteContext;
|
|
2893
|
+
}, "get")
|
|
2894
|
+
}), Object.defineProperty(e, "createRoutesFromChildren", {
|
|
2895
|
+
enumerable: !0,
|
|
2896
|
+
get: /* @__PURE__ */ r(function() {
|
|
2897
|
+
return n.createRoutesFromChildren;
|
|
2898
|
+
}, "get")
|
|
2899
|
+
}), Object.defineProperty(e, "generatePath", {
|
|
2900
|
+
enumerable: !0,
|
|
2901
|
+
get: /* @__PURE__ */ r(function() {
|
|
2902
|
+
return n.generatePath;
|
|
2903
|
+
}, "get")
|
|
2904
|
+
}), Object.defineProperty(e, "matchPath", {
|
|
2905
|
+
enumerable: !0,
|
|
2906
|
+
get: /* @__PURE__ */ r(function() {
|
|
2907
|
+
return n.matchPath;
|
|
2908
|
+
}, "get")
|
|
2909
|
+
}), Object.defineProperty(e, "matchRoutes", {
|
|
2910
|
+
enumerable: !0,
|
|
2911
|
+
get: /* @__PURE__ */ r(function() {
|
|
2912
|
+
return n.matchRoutes;
|
|
2913
|
+
}, "get")
|
|
2914
|
+
}), Object.defineProperty(e, "renderMatches", {
|
|
2915
|
+
enumerable: !0,
|
|
2916
|
+
get: /* @__PURE__ */ r(function() {
|
|
2917
|
+
return n.renderMatches;
|
|
2918
|
+
}, "get")
|
|
2919
|
+
}), Object.defineProperty(e, "resolvePath", {
|
|
2920
|
+
enumerable: !0,
|
|
2921
|
+
get: /* @__PURE__ */ r(function() {
|
|
2922
|
+
return n.resolvePath;
|
|
2923
|
+
}, "get")
|
|
2924
|
+
}), Object.defineProperty(e, "useHref", {
|
|
2925
|
+
enumerable: !0,
|
|
2926
|
+
get: /* @__PURE__ */ r(function() {
|
|
2927
|
+
return n.useHref;
|
|
2928
|
+
}, "get")
|
|
2929
|
+
}), Object.defineProperty(e, "useInRouterContext", {
|
|
2930
|
+
enumerable: !0,
|
|
2931
|
+
get: /* @__PURE__ */ r(function() {
|
|
2932
|
+
return n.useInRouterContext;
|
|
2933
|
+
}, "get")
|
|
2934
|
+
}), Object.defineProperty(e, "useLocation", {
|
|
2935
|
+
enumerable: !0,
|
|
2936
|
+
get: /* @__PURE__ */ r(function() {
|
|
2937
|
+
return n.useLocation;
|
|
2938
|
+
}, "get")
|
|
2939
|
+
}), Object.defineProperty(e, "useMatch", {
|
|
2940
|
+
enumerable: !0,
|
|
2941
|
+
get: /* @__PURE__ */ r(function() {
|
|
2942
|
+
return n.useMatch;
|
|
2943
|
+
}, "get")
|
|
2944
|
+
}), Object.defineProperty(e, "useNavigate", {
|
|
2945
|
+
enumerable: !0,
|
|
2946
|
+
get: /* @__PURE__ */ r(function() {
|
|
2947
|
+
return n.useNavigate;
|
|
2948
|
+
}, "get")
|
|
2949
|
+
}), Object.defineProperty(e, "useNavigationType", {
|
|
2950
|
+
enumerable: !0,
|
|
2951
|
+
get: /* @__PURE__ */ r(function() {
|
|
2952
|
+
return n.useNavigationType;
|
|
2953
|
+
}, "get")
|
|
2954
|
+
}), Object.defineProperty(e, "useOutlet", {
|
|
2955
|
+
enumerable: !0,
|
|
2956
|
+
get: /* @__PURE__ */ r(function() {
|
|
2957
|
+
return n.useOutlet;
|
|
2958
|
+
}, "get")
|
|
2959
|
+
}), Object.defineProperty(e, "useParams", {
|
|
2960
|
+
enumerable: !0,
|
|
2961
|
+
get: /* @__PURE__ */ r(function() {
|
|
2962
|
+
return n.useParams;
|
|
2963
|
+
}, "get")
|
|
2964
|
+
}), Object.defineProperty(e, "useResolvedPath", {
|
|
2965
|
+
enumerable: !0,
|
|
2966
|
+
get: /* @__PURE__ */ r(function() {
|
|
2967
|
+
return n.useResolvedPath;
|
|
2968
|
+
}, "get")
|
|
2969
|
+
}), Object.defineProperty(e, "useRoutes", {
|
|
2970
|
+
enumerable: !0,
|
|
2971
|
+
get: /* @__PURE__ */ r(function() {
|
|
2972
|
+
return n.useRoutes;
|
|
2973
|
+
}, "get")
|
|
2974
|
+
}), e.BrowserRouter = J, e.HashRouter = F, e.Link = O, e.NavLink = j, e.createSearchParams = s, e.useLinkClickHandler = E, e.useSearchParams =
|
|
2975
|
+
L, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2976
|
+
});
|
|
2977
|
+
});
|
|
2978
|
+
|
|
2979
|
+
// ../node_modules/react-router-dom/main.js
|
|
2980
|
+
var Or = ne((ba, Pr) => {
|
|
2981
|
+
"use strict";
|
|
2982
|
+
Pr.exports = process.env.NODE_ENV === "production" ? vr() : xr();
|
|
2983
|
+
});
|
|
2984
|
+
|
|
2985
|
+
// src/router/index.ts
|
|
2986
|
+
var jn = {};
|
|
2987
|
+
kr(jn, {
|
|
2988
|
+
BaseLocationProvider: () => On,
|
|
2989
|
+
DEEPLY_EQUAL: () => Re,
|
|
2990
|
+
Link: () => wr,
|
|
2991
|
+
Location: () => st,
|
|
2992
|
+
LocationProvider: () => Pn,
|
|
2993
|
+
Match: () => ut,
|
|
2994
|
+
Route: () => Sr,
|
|
2995
|
+
buildArgsParam: () => gn,
|
|
2996
|
+
deepDiff: () => Te,
|
|
2997
|
+
getMatch: () => nt,
|
|
2998
|
+
parsePath: () => tt,
|
|
2999
|
+
queryFromLocation: () => rt,
|
|
3000
|
+
stringifyQuery: () => vn,
|
|
3001
|
+
useNavigate: () => xn
|
|
3002
|
+
});
|
|
3003
|
+
module.exports = Ir(jn);
|
|
3004
|
+
|
|
3005
|
+
// src/router/utils.ts
|
|
3006
|
+
var ar = require("storybook/internal/client-logger");
|
|
3007
|
+
|
|
3008
|
+
// ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
3009
|
+
function me(e) {
|
|
3010
|
+
if (typeof e != "object" || e == null)
|
|
3011
|
+
return !1;
|
|
3012
|
+
if (Object.getPrototypeOf(e) === null)
|
|
3013
|
+
return !0;
|
|
3014
|
+
if (e.toString() !== "[object Object]")
|
|
3015
|
+
return !1;
|
|
3016
|
+
let t = e;
|
|
3017
|
+
for (; Object.getPrototypeOf(t) !== null; )
|
|
3018
|
+
t = Object.getPrototypeOf(t);
|
|
3019
|
+
return Object.getPrototypeOf(e) === t;
|
|
3020
|
+
}
|
|
3021
|
+
r(me, "isPlainObject");
|
|
3022
|
+
|
|
3023
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
3024
|
+
var ht = "[object RegExp]", pt = "[object String]", dt = "[object Number]", mt = "[object Boolean]", ze = "[object Arguments]", gt = "[objec\
|
|
3025
|
+
t Symbol]", yt = "[object Date]", vt = "[object Map]", bt = "[object Set]", xt = "[object Array]", Pt = "[object Function]", Ot = "[object A\
|
|
3026
|
+
rrayBuffer]", Ce = "[object Object]", jt = "[object Error]", wt = "[object DataView]", St = "[object Uint8Array]", Rt = "[object Uint8Clampe\
|
|
3027
|
+
dArray]", At = "[object Uint16Array]", Et = "[object Uint32Array]", Ct = "[object BigUint64Array]", Nt = "[object Int8Array]", Lt = "[object\
|
|
3028
|
+
Int16Array]", _t = "[object Int32Array]", Mt = "[object BigInt64Array]", Tt = "[object Float32Array]", kt = "[object Float64Array]";
|
|
3029
|
+
|
|
3030
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
3031
|
+
function qe(e) {
|
|
3032
|
+
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
3033
|
+
}
|
|
3034
|
+
r(qe, "getSymbols");
|
|
3035
|
+
|
|
3036
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
3037
|
+
function Ue(e) {
|
|
3038
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
3039
|
+
}
|
|
3040
|
+
r(Ue, "getTag");
|
|
3041
|
+
|
|
3042
|
+
// ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
3043
|
+
function Ve(e, t) {
|
|
3044
|
+
if (typeof e == typeof t)
|
|
3045
|
+
switch (typeof e) {
|
|
3046
|
+
case "bigint":
|
|
3047
|
+
case "string":
|
|
3048
|
+
case "boolean":
|
|
3049
|
+
case "symbol":
|
|
3050
|
+
case "undefined":
|
|
3051
|
+
return e === t;
|
|
3052
|
+
case "number":
|
|
3053
|
+
return e === t || Object.is(e, t);
|
|
3054
|
+
case "function":
|
|
3055
|
+
return e === t;
|
|
3056
|
+
case "object":
|
|
3057
|
+
return ge(e, t);
|
|
3058
|
+
}
|
|
3059
|
+
return ge(e, t);
|
|
3060
|
+
}
|
|
3061
|
+
r(Ve, "isEqual");
|
|
3062
|
+
function ge(e, t, a) {
|
|
3063
|
+
if (Object.is(e, t))
|
|
3064
|
+
return !0;
|
|
3065
|
+
let n = Ue(e), l = Ue(t);
|
|
3066
|
+
if (n === ze && (n = Ce), l === ze && (l = Ce), n !== l)
|
|
3067
|
+
return !1;
|
|
3068
|
+
switch (n) {
|
|
3069
|
+
case pt:
|
|
3070
|
+
return e.toString() === t.toString();
|
|
3071
|
+
case dt: {
|
|
3072
|
+
let B = e.valueOf(), U = t.valueOf();
|
|
3073
|
+
return B === U || Number.isNaN(B) && Number.isNaN(U);
|
|
3074
|
+
}
|
|
3075
|
+
case mt:
|
|
3076
|
+
case yt:
|
|
3077
|
+
case gt:
|
|
3078
|
+
return Object.is(e.valueOf(), t.valueOf());
|
|
3079
|
+
case ht:
|
|
3080
|
+
return e.source === t.source && e.flags === t.flags;
|
|
3081
|
+
case Pt:
|
|
3082
|
+
return e === t;
|
|
3083
|
+
}
|
|
3084
|
+
a = a ?? /* @__PURE__ */ new Map();
|
|
3085
|
+
let v = a.get(e), z = a.get(t);
|
|
3086
|
+
if (v != null && z != null)
|
|
3087
|
+
return v === t;
|
|
3088
|
+
a.set(e, t), a.set(t, e);
|
|
3089
|
+
try {
|
|
3090
|
+
switch (n) {
|
|
3091
|
+
case vt: {
|
|
3092
|
+
if (e.size !== t.size)
|
|
3093
|
+
return !1;
|
|
3094
|
+
for (let [B, U] of e.entries())
|
|
3095
|
+
if (!t.has(B) || !ge(U, t.get(B), a))
|
|
3096
|
+
return !1;
|
|
3097
|
+
return !0;
|
|
3098
|
+
}
|
|
3099
|
+
case bt: {
|
|
3100
|
+
if (e.size !== t.size)
|
|
3101
|
+
return !1;
|
|
3102
|
+
let B = Array.from(e.values()), U = Array.from(t.values());
|
|
3103
|
+
for (let J = 0; J < B.length; J++) {
|
|
3104
|
+
let F = B[J], x = U.findIndex((O) => ge(F, O, a));
|
|
3105
|
+
if (x === -1)
|
|
3106
|
+
return !1;
|
|
3107
|
+
U.splice(x, 1);
|
|
3108
|
+
}
|
|
3109
|
+
return !0;
|
|
3110
|
+
}
|
|
3111
|
+
case xt:
|
|
3112
|
+
case St:
|
|
3113
|
+
case Rt:
|
|
3114
|
+
case At:
|
|
3115
|
+
case Et:
|
|
3116
|
+
case Ct:
|
|
3117
|
+
case Nt:
|
|
3118
|
+
case Lt:
|
|
3119
|
+
case _t:
|
|
3120
|
+
case Mt:
|
|
3121
|
+
case Tt:
|
|
3122
|
+
case kt: {
|
|
3123
|
+
if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
|
|
3124
|
+
return !1;
|
|
3125
|
+
for (let B = 0; B < e.length; B++)
|
|
3126
|
+
if (!ge(e[B], t[B], a))
|
|
3127
|
+
return !1;
|
|
3128
|
+
return !0;
|
|
3129
|
+
}
|
|
3130
|
+
case Ot:
|
|
3131
|
+
return e.byteLength !== t.byteLength ? !1 : ge(new Uint8Array(e), new Uint8Array(t), a);
|
|
3132
|
+
case wt:
|
|
3133
|
+
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : ge(e.buffer, t.buffer, a);
|
|
3134
|
+
case jt:
|
|
3135
|
+
return e.name === t.name && e.message === t.message;
|
|
3136
|
+
case Ce: {
|
|
3137
|
+
if (!(ge(e.constructor, t.constructor, a) || me(e) && me(t)))
|
|
3138
|
+
return !1;
|
|
3139
|
+
let U = [...Object.keys(e), ...qe(e)], J = [...Object.keys(t), ...qe(t)];
|
|
3140
|
+
if (U.length !== J.length)
|
|
3141
|
+
return !1;
|
|
3142
|
+
for (let F = 0; F < U.length; F++) {
|
|
3143
|
+
let x = U[F], O = e[x];
|
|
3144
|
+
if (!Object.prototype.hasOwnProperty.call(t, x))
|
|
3145
|
+
return !1;
|
|
3146
|
+
let j = t[x];
|
|
3147
|
+
if (!ge(O, j, a))
|
|
3148
|
+
return !1;
|
|
3149
|
+
}
|
|
3150
|
+
return !0;
|
|
3151
|
+
}
|
|
3152
|
+
default:
|
|
3153
|
+
return !1;
|
|
3154
|
+
}
|
|
3155
|
+
} finally {
|
|
3156
|
+
a.delete(e), a.delete(t);
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
r(ge, "areObjectsEqual");
|
|
3160
|
+
|
|
3161
|
+
// src/router/utils.ts
|
|
3162
|
+
var ke = we($t(), 1), Ae = we(er(), 1), or = we(rr(), 1);
|
|
3163
|
+
var hn = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, tt = (0, ke.default)(1e3)((e) => {
|
|
3164
|
+
let t = {
|
|
3165
|
+
viewMode: void 0,
|
|
3166
|
+
storyId: void 0,
|
|
3167
|
+
refId: void 0
|
|
3168
|
+
};
|
|
3169
|
+
if (e) {
|
|
3170
|
+
let [, a, n, l] = e.toLowerCase().match(hn) || [];
|
|
3171
|
+
a && Object.assign(t, {
|
|
3172
|
+
viewMode: a,
|
|
3173
|
+
storyId: l,
|
|
3174
|
+
refId: n
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3177
|
+
return t;
|
|
3178
|
+
}), Re = Symbol("Deeply equal"), Te = /* @__PURE__ */ r((e, t) => {
|
|
3179
|
+
if (typeof e != typeof t)
|
|
3180
|
+
return t;
|
|
3181
|
+
if (Ve(e, t))
|
|
3182
|
+
return Re;
|
|
3183
|
+
if (Array.isArray(e) && Array.isArray(t)) {
|
|
3184
|
+
let a = t.reduce((n, l, v) => {
|
|
3185
|
+
let z = Te(e[v], l);
|
|
3186
|
+
return z !== Re && (n[v] = z), n;
|
|
3187
|
+
}, new Array(t.length));
|
|
3188
|
+
return t.length >= e.length ? a : a.concat(new Array(e.length - t.length).fill(void 0));
|
|
3189
|
+
}
|
|
3190
|
+
return me(e) && me(t) ? Object.keys({ ...e, ...t }).reduce((a, n) => {
|
|
3191
|
+
let l = Te(e?.[n], t?.[n]);
|
|
3192
|
+
return l === Re ? a : Object.assign(a, { [n]: l });
|
|
3193
|
+
}, {}) : t;
|
|
3194
|
+
}, "deepDiff"), nr = /^[a-zA-Z0-9 _-]*$/, pn = /^-?[0-9]+(\.[0-9]+)?$/, ir = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, sr = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
|
|
3195
|
+
Ze = /* @__PURE__ */ r((e = "", t) => e === null || e === "" || !nr.test(e) ? !1 : t == null || t instanceof Date || typeof t == "number" ||
|
|
3196
|
+
typeof t == "boolean" ? !0 : typeof t == "string" ? nr.test(t) || pn.test(t) || ir.test(t) || sr.test(t) : Array.isArray(t) ? t.every((a) => Ze(
|
|
3197
|
+
e, a)) : me(t) ? Object.entries(t).every(([a, n]) => Ze(a, n)) : !1, "validateArgs"), et = /* @__PURE__ */ r((e) => e === void 0 ? "!undefin\
|
|
3198
|
+
ed" : e === null ? "!null" : typeof e == "string" ? ir.test(e) ? `!hex(${e.slice(1)})` : sr.test(e) ? `!${e.replace(/[\s%]/g, "")}` : e : typeof e ==
|
|
3199
|
+
"boolean" ? `!${e}` : e instanceof Date ? `!date(${e.toISOString()})` : Array.isArray(e) ? e.map(et) : me(e) ? Object.entries(e).reduce(
|
|
3200
|
+
(t, [a, n]) => Object.assign(t, { [a]: et(n) }),
|
|
3201
|
+
{}
|
|
3202
|
+
) : e, "encodeSpecialValues"), dn = /* @__PURE__ */ r((e) => {
|
|
3203
|
+
switch (e) {
|
|
3204
|
+
case "%20":
|
|
3205
|
+
return "+";
|
|
3206
|
+
case "%5B":
|
|
3207
|
+
return "[";
|
|
3208
|
+
case "%5D":
|
|
3209
|
+
return "]";
|
|
3210
|
+
case "%2C":
|
|
3211
|
+
return ",";
|
|
3212
|
+
case "%3A":
|
|
3213
|
+
return ":";
|
|
3214
|
+
}
|
|
3215
|
+
return e;
|
|
3216
|
+
}, "decodeKnownQueryChar"), mn = /%[0-9A-F]{2}/g, gn = /* @__PURE__ */ r((e, t) => {
|
|
3217
|
+
let a = Te(e, t);
|
|
3218
|
+
if (!a || a === Re)
|
|
3219
|
+
return "";
|
|
3220
|
+
let n = Object.entries(a).reduce((l, [v, z]) => Ze(v, z) ? Object.assign(l, { [v]: z }) : (ar.once.warn(or.dedent`
|
|
3221
|
+
Omitted potentially unsafe URL args.
|
|
3222
|
+
|
|
3223
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
|
|
3224
|
+
`), l), {});
|
|
3225
|
+
return (0, Ae.stringify)(et(n), {
|
|
3226
|
+
delimiter: ";",
|
|
3227
|
+
// we don't actually create multiple query params
|
|
3228
|
+
nesting: !0,
|
|
3229
|
+
nestingSyntax: "js"
|
|
3230
|
+
// encode objects using dot notation: obj.key=val
|
|
3231
|
+
}).replace(mn, dn).split(";").map((l) => l.replace("=", ":")).join(";");
|
|
3232
|
+
}, "buildArgsParam"), yn = (0, ke.default)(1e3)((e) => e !== void 0 ? (0, Ae.parse)(e) : {}), rt = /* @__PURE__ */ r((e) => yn(e.search ? e.
|
|
3233
|
+
search.slice(1) : ""), "queryFromLocation"), vn = /* @__PURE__ */ r((e) => {
|
|
3234
|
+
let t = (0, Ae.stringify)(e);
|
|
3235
|
+
return t ? "?" + t : "";
|
|
3236
|
+
}, "stringifyQuery"), nt = (0, ke.default)(1e3)((e, t, a = !0) => {
|
|
3237
|
+
if (a) {
|
|
3238
|
+
if (typeof t != "string")
|
|
3239
|
+
throw new Error("startsWith only works with string targets");
|
|
3240
|
+
return e && e.startsWith(t) ? { path: e } : null;
|
|
3241
|
+
}
|
|
3242
|
+
let n = typeof t == "string" && e === t, l = e && t && e.match(t);
|
|
3243
|
+
return n || l ? { path: e } : null;
|
|
3244
|
+
});
|
|
3245
|
+
|
|
3246
|
+
// src/router/router.tsx
|
|
3247
|
+
var xe = we(require("react"), 1), jr = require("@storybook/global"), de = we(Or(), 1);
|
|
3248
|
+
var { document: it } = jr.global, bn = /* @__PURE__ */ r(() => `${it.location.pathname}?`, "getBase"), xn = /* @__PURE__ */ r(() => {
|
|
3249
|
+
let e = de.useNavigate();
|
|
3250
|
+
return (0, xe.useCallback)((t, { plain: a, ...n } = {}) => {
|
|
3251
|
+
if (typeof t == "string" && t.startsWith("#")) {
|
|
3252
|
+
t === "#" ? e(it.location.search) : it.location.hash = t;
|
|
3253
|
+
return;
|
|
3254
|
+
}
|
|
3255
|
+
if (typeof t == "string") {
|
|
3256
|
+
let l = a ? t : `?path=${t}`;
|
|
3257
|
+
return e(l, n);
|
|
3258
|
+
}
|
|
3259
|
+
if (typeof t == "number")
|
|
3260
|
+
return e(t);
|
|
3261
|
+
}, []);
|
|
3262
|
+
}, "useNavigate"), wr = /* @__PURE__ */ r(({ to: e, children: t, ...a }) => /* @__PURE__ */ xe.default.createElement(de.Link, { to: `${bn()}\
|
|
3263
|
+
path=${e}`, ...a }, t), "Link");
|
|
3264
|
+
wr.displayName = "QueryLink";
|
|
3265
|
+
var st = /* @__PURE__ */ r(({ children: e }) => {
|
|
3266
|
+
let t = de.useLocation(), { path: a, singleStory: n } = rt(t), { viewMode: l, storyId: v, refId: z } = tt(a);
|
|
3267
|
+
return /* @__PURE__ */ xe.default.createElement(xe.default.Fragment, null, e({
|
|
3268
|
+
path: a || "/",
|
|
3269
|
+
location: t,
|
|
3270
|
+
viewMode: l,
|
|
3271
|
+
storyId: v,
|
|
3272
|
+
refId: z,
|
|
3273
|
+
singleStory: n === "true"
|
|
3274
|
+
}));
|
|
3275
|
+
}, "Location");
|
|
3276
|
+
st.displayName = "QueryLocation";
|
|
3277
|
+
function ut({
|
|
3278
|
+
children: e,
|
|
3279
|
+
path: t,
|
|
3280
|
+
startsWith: a = !1
|
|
3281
|
+
}) {
|
|
3282
|
+
return /* @__PURE__ */ xe.default.createElement(st, null, ({ path: n, ...l }) => e({
|
|
3283
|
+
match: nt(n, t, a),
|
|
3284
|
+
...l
|
|
3285
|
+
}));
|
|
3286
|
+
}
|
|
3287
|
+
r(ut, "Match");
|
|
3288
|
+
ut.displayName = "QueryMatch";
|
|
3289
|
+
function Sr(e) {
|
|
3290
|
+
let { children: t, ...a } = e;
|
|
3291
|
+
return a.startsWith === void 0 && (a.startsWith = !1), /* @__PURE__ */ xe.default.createElement(ut, { ...a }, ({ match: l }) => l ? t : null);
|
|
3292
|
+
}
|
|
3293
|
+
r(Sr, "Route");
|
|
3294
|
+
Sr.displayName = "Route";
|
|
3295
|
+
var Pn = /* @__PURE__ */ r((...e) => de.BrowserRouter(...e), "LocationProvider"), On = /* @__PURE__ */ r((...e) => de.Router(...e), "BaseLoc\
|
|
3296
|
+
ationProvider");
|