@zthun/romulator-web 1.3.1 → 1.3.3
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/CHANGELOG.md +16 -0
- package/dist/assets/{index-Dsf8H9t4.js → index-BQrf1M1b.js} +194 -430
- package/dist/index.html +1 -1
- package/package.json +20 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.3](https://github.com/zthun/romulator/compare/v1.3.2...v1.3.3) (2025-09-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zthun/romulator-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.3.2](https://github.com/zthun/romulator/compare/v1.3.1...v1.3.2) (2025-07-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @zthun/romulator-web
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.3.1](https://github.com/zthun/romulator/compare/v1.3.0...v1.3.1) (2025-07-01)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @zthun/romulator-web
|
|
@@ -1,39 +1,31 @@
|
|
|
1
1
|
true &&(function polyfill() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
function processPreload(link) {
|
|
31
|
-
if (link.ep)
|
|
32
|
-
return;
|
|
33
|
-
link.ep = true;
|
|
34
|
-
const fetchOpts = getFetchOpts(link);
|
|
35
|
-
fetch(link.href, fetchOpts);
|
|
36
|
-
}
|
|
2
|
+
const relList = document.createElement("link").relList;
|
|
3
|
+
if (relList && relList.supports && relList.supports("modulepreload")) return;
|
|
4
|
+
for (const link of document.querySelectorAll("link[rel=\"modulepreload\"]")) processPreload(link);
|
|
5
|
+
new MutationObserver((mutations) => {
|
|
6
|
+
for (const mutation of mutations) {
|
|
7
|
+
if (mutation.type !== "childList") continue;
|
|
8
|
+
for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node);
|
|
9
|
+
}
|
|
10
|
+
}).observe(document, {
|
|
11
|
+
childList: true,
|
|
12
|
+
subtree: true
|
|
13
|
+
});
|
|
14
|
+
function getFetchOpts(link) {
|
|
15
|
+
const fetchOpts = {};
|
|
16
|
+
if (link.integrity) fetchOpts.integrity = link.integrity;
|
|
17
|
+
if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
|
|
18
|
+
if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include";
|
|
19
|
+
else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
|
|
20
|
+
else fetchOpts.credentials = "same-origin";
|
|
21
|
+
return fetchOpts;
|
|
22
|
+
}
|
|
23
|
+
function processPreload(link) {
|
|
24
|
+
if (link.ep) return;
|
|
25
|
+
link.ep = true;
|
|
26
|
+
const fetchOpts = getFetchOpts(link);
|
|
27
|
+
fetch(link.href, fetchOpts);
|
|
28
|
+
}
|
|
37
29
|
}());
|
|
38
30
|
|
|
39
31
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -1420,7 +1412,7 @@ function _defineProperties$6$2(target, props) {
|
|
|
1420
1412
|
}
|
|
1421
1413
|
}
|
|
1422
1414
|
function _create_class$6$2(Constructor, protoProps, staticProps) {
|
|
1423
|
-
_defineProperties$6$2(Constructor.prototype, protoProps);
|
|
1415
|
+
if (protoProps) _defineProperties$6$2(Constructor.prototype, protoProps);
|
|
1424
1416
|
return Constructor;
|
|
1425
1417
|
}
|
|
1426
1418
|
function _define_property$5$3(obj, key, value) {
|
|
@@ -1666,7 +1658,7 @@ function _defineProperties$5$2(target, props) {
|
|
|
1666
1658
|
}
|
|
1667
1659
|
}
|
|
1668
1660
|
function _create_class$5$2(Constructor, protoProps, staticProps) {
|
|
1669
|
-
_defineProperties$5$2(Constructor.prototype, protoProps);
|
|
1661
|
+
if (protoProps) _defineProperties$5$2(Constructor.prototype, protoProps);
|
|
1670
1662
|
return Constructor;
|
|
1671
1663
|
}
|
|
1672
1664
|
function _define_property$4$4(obj, key, value) {
|
|
@@ -2019,7 +2011,7 @@ function _defineProperties$3$3(target, props) {
|
|
|
2019
2011
|
}
|
|
2020
2012
|
}
|
|
2021
2013
|
function _create_class$3$3(Constructor, protoProps, staticProps) {
|
|
2022
|
-
_defineProperties$3$3(Constructor.prototype, protoProps);
|
|
2014
|
+
if (protoProps) _defineProperties$3$3(Constructor.prototype, protoProps);
|
|
2023
2015
|
return Constructor;
|
|
2024
2016
|
}
|
|
2025
2017
|
function _define_property$2$6(obj, key, value) {
|
|
@@ -9071,7 +9063,7 @@ function requireReact_production () {
|
|
|
9071
9063
|
react_production.useTransition = function () {
|
|
9072
9064
|
return ReactSharedInternals.H.useTransition();
|
|
9073
9065
|
};
|
|
9074
|
-
react_production.version = "19.1.
|
|
9066
|
+
react_production.version = "19.1.1";
|
|
9075
9067
|
return react_production;
|
|
9076
9068
|
}
|
|
9077
9069
|
|
|
@@ -11793,7 +11785,7 @@ function _defineProperties$j$1(target, props) {
|
|
|
11793
11785
|
}
|
|
11794
11786
|
}
|
|
11795
11787
|
function _create_class$j$1(Constructor, protoProps, staticProps) {
|
|
11796
|
-
_defineProperties$j$1(Constructor.prototype, protoProps);
|
|
11788
|
+
if (protoProps) _defineProperties$j$1(Constructor.prototype, protoProps);
|
|
11797
11789
|
return Constructor;
|
|
11798
11790
|
}
|
|
11799
11791
|
function _define_property$c$1(obj, key, value) {
|
|
@@ -12026,7 +12018,7 @@ function _defineProperties$i$1(target, props) {
|
|
|
12026
12018
|
}
|
|
12027
12019
|
}
|
|
12028
12020
|
function _create_class$i$1(Constructor, protoProps, staticProps) {
|
|
12029
|
-
_defineProperties$i$1(Constructor.prototype, protoProps);
|
|
12021
|
+
if (protoProps) _defineProperties$i$1(Constructor.prototype, protoProps);
|
|
12030
12022
|
return Constructor;
|
|
12031
12023
|
}
|
|
12032
12024
|
function _define_property$b$1(obj, key, value) {
|
|
@@ -12204,7 +12196,7 @@ function _defineProperties$h$1(target, props) {
|
|
|
12204
12196
|
}
|
|
12205
12197
|
}
|
|
12206
12198
|
function _create_class$h$1(Constructor, protoProps, staticProps) {
|
|
12207
|
-
_defineProperties$h$1(Constructor.prototype, protoProps);
|
|
12199
|
+
if (protoProps) _defineProperties$h$1(Constructor.prototype, protoProps);
|
|
12208
12200
|
return Constructor;
|
|
12209
12201
|
}
|
|
12210
12202
|
function _define_property$a$1(obj, key, value) {
|
|
@@ -12373,7 +12365,7 @@ function _defineProperties$g$1(target, props) {
|
|
|
12373
12365
|
}
|
|
12374
12366
|
}
|
|
12375
12367
|
function _create_class$g$1(Constructor, protoProps, staticProps) {
|
|
12376
|
-
_defineProperties$g$1(Constructor.prototype, protoProps);
|
|
12368
|
+
if (protoProps) _defineProperties$g$1(Constructor.prototype, protoProps);
|
|
12377
12369
|
return Constructor;
|
|
12378
12370
|
}
|
|
12379
12371
|
function _define_property$9$1(obj, key, value) {
|
|
@@ -12535,7 +12527,7 @@ function _defineProperties$f$1(target, props) {
|
|
|
12535
12527
|
}
|
|
12536
12528
|
}
|
|
12537
12529
|
function _create_class$f$1(Constructor, protoProps, staticProps) {
|
|
12538
|
-
_defineProperties$f$1(Constructor.prototype, protoProps);
|
|
12530
|
+
if (protoProps) _defineProperties$f$1(Constructor.prototype, protoProps);
|
|
12539
12531
|
return Constructor;
|
|
12540
12532
|
}
|
|
12541
12533
|
/**
|
|
@@ -12616,7 +12608,7 @@ function _defineProperties$e$1(target, props) {
|
|
|
12616
12608
|
}
|
|
12617
12609
|
}
|
|
12618
12610
|
function _create_class$e$1(Constructor, protoProps, staticProps) {
|
|
12619
|
-
_defineProperties$e$1(Constructor.prototype, protoProps);
|
|
12611
|
+
if (protoProps) _defineProperties$e$1(Constructor.prototype, protoProps);
|
|
12620
12612
|
return Constructor;
|
|
12621
12613
|
}
|
|
12622
12614
|
function _iterable_to_array_limit$2(arr, i) {
|
|
@@ -12820,7 +12812,7 @@ function _defineProperties$d$1(target, props) {
|
|
|
12820
12812
|
}
|
|
12821
12813
|
}
|
|
12822
12814
|
function _create_class$d$1(Constructor, protoProps, staticProps) {
|
|
12823
|
-
_defineProperties$d$1(Constructor.prototype, protoProps);
|
|
12815
|
+
if (protoProps) _defineProperties$d$1(Constructor.prototype, protoProps);
|
|
12824
12816
|
return Constructor;
|
|
12825
12817
|
}
|
|
12826
12818
|
/**
|
|
@@ -12872,7 +12864,7 @@ function _defineProperties$c$1(target, props) {
|
|
|
12872
12864
|
}
|
|
12873
12865
|
}
|
|
12874
12866
|
function _create_class$c$1(Constructor, protoProps, staticProps) {
|
|
12875
|
-
_defineProperties$c$1(Constructor.prototype, protoProps);
|
|
12867
|
+
if (protoProps) _defineProperties$c$1(Constructor.prototype, protoProps);
|
|
12876
12868
|
return Constructor;
|
|
12877
12869
|
}
|
|
12878
12870
|
/**
|
|
@@ -12912,7 +12904,7 @@ function _defineProperties$b$1(target, props) {
|
|
|
12912
12904
|
}
|
|
12913
12905
|
}
|
|
12914
12906
|
function _create_class$b$1(Constructor, protoProps, staticProps) {
|
|
12915
|
-
_defineProperties$b$1(Constructor.prototype, protoProps);
|
|
12907
|
+
if (protoProps) _defineProperties$b$1(Constructor.prototype, protoProps);
|
|
12916
12908
|
return Constructor;
|
|
12917
12909
|
}
|
|
12918
12910
|
function _define_property$8$1(obj, key, value) {
|
|
@@ -13026,7 +13018,7 @@ function _defineProperties$6$1(target, props) {
|
|
|
13026
13018
|
}
|
|
13027
13019
|
}
|
|
13028
13020
|
function _create_class$6$1(Constructor, protoProps, staticProps) {
|
|
13029
|
-
_defineProperties$6$1(Constructor.prototype, protoProps);
|
|
13021
|
+
if (protoProps) _defineProperties$6$1(Constructor.prototype, protoProps);
|
|
13030
13022
|
return Constructor;
|
|
13031
13023
|
}
|
|
13032
13024
|
function _define_property$4$2(obj, key, value) {
|
|
@@ -13167,7 +13159,7 @@ function _defineProperties$5$1(target, props) {
|
|
|
13167
13159
|
}
|
|
13168
13160
|
}
|
|
13169
13161
|
function _create_class$5$1(Constructor, protoProps, staticProps) {
|
|
13170
|
-
_defineProperties$5$1(Constructor.prototype, protoProps);
|
|
13162
|
+
if (protoProps) _defineProperties$5$1(Constructor.prototype, protoProps);
|
|
13171
13163
|
return Constructor;
|
|
13172
13164
|
}
|
|
13173
13165
|
function _iterable_to_array_limit$1$2(arr, i) {
|
|
@@ -13280,7 +13272,7 @@ function _defineProperties$4$1(target, props) {
|
|
|
13280
13272
|
}
|
|
13281
13273
|
}
|
|
13282
13274
|
function _create_class$4$1(Constructor, protoProps, staticProps) {
|
|
13283
|
-
_defineProperties$4$1(Constructor.prototype, protoProps);
|
|
13275
|
+
if (protoProps) _defineProperties$4$1(Constructor.prototype, protoProps);
|
|
13284
13276
|
return Constructor;
|
|
13285
13277
|
}
|
|
13286
13278
|
/**
|
|
@@ -13330,7 +13322,7 @@ function _defineProperties$2$2(target, props) {
|
|
|
13330
13322
|
}
|
|
13331
13323
|
}
|
|
13332
13324
|
function _create_class$2$2(Constructor, protoProps, staticProps) {
|
|
13333
|
-
_defineProperties$2$2(Constructor.prototype, protoProps);
|
|
13325
|
+
if (protoProps) _defineProperties$2$2(Constructor.prototype, protoProps);
|
|
13334
13326
|
return Constructor;
|
|
13335
13327
|
}
|
|
13336
13328
|
function _define_property$2$3(obj, key, value) {
|
|
@@ -13534,7 +13526,7 @@ function _defineProperties$1$3(target, props) {
|
|
|
13534
13526
|
}
|
|
13535
13527
|
}
|
|
13536
13528
|
function _create_class$1$3(Constructor, protoProps, staticProps) {
|
|
13537
|
-
_defineProperties$1$3(Constructor.prototype, protoProps);
|
|
13529
|
+
if (protoProps) _defineProperties$1$3(Constructor.prototype, protoProps);
|
|
13538
13530
|
return Constructor;
|
|
13539
13531
|
}
|
|
13540
13532
|
function _define_property$1$3(obj, key, value) {
|
|
@@ -13776,7 +13768,7 @@ function _defineProperties$E(target, props) {
|
|
|
13776
13768
|
}
|
|
13777
13769
|
}
|
|
13778
13770
|
function _create_class$E(Constructor, protoProps, staticProps) {
|
|
13779
|
-
_defineProperties$E(Constructor.prototype, protoProps);
|
|
13771
|
+
if (protoProps) _defineProperties$E(Constructor.prototype, protoProps);
|
|
13780
13772
|
return Constructor;
|
|
13781
13773
|
}
|
|
13782
13774
|
function _define_property$w(obj, key, value) {
|
|
@@ -14590,7 +14582,7 @@ function _defineProperties$D(target, props) {
|
|
|
14590
14582
|
}
|
|
14591
14583
|
}
|
|
14592
14584
|
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
14593
|
-
_defineProperties$D(Constructor.prototype, protoProps);
|
|
14585
|
+
if (protoProps) _defineProperties$D(Constructor.prototype, protoProps);
|
|
14594
14586
|
return Constructor;
|
|
14595
14587
|
}
|
|
14596
14588
|
function _define_property$s(obj, key, value) {
|
|
@@ -15452,256 +15444,16 @@ function rulesheet (callback) {
|
|
|
15452
15444
|
}
|
|
15453
15445
|
}
|
|
15454
15446
|
|
|
15455
|
-
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
/**
|
|
15466
|
-
* RegExp to match cookie-name in RFC 6265 sec 4.1.1
|
|
15467
|
-
* This refers out to the obsoleted definition of token in RFC 2616 sec 2.2
|
|
15468
|
-
* which has been replaced by the token definition in RFC 7230 appendix B.
|
|
15469
|
-
*
|
|
15470
|
-
* cookie-name = token
|
|
15471
|
-
* token = 1*tchar
|
|
15472
|
-
* tchar = "!" / "#" / "$" / "%" / "&" / "'" /
|
|
15473
|
-
* "*" / "+" / "-" / "." / "^" / "_" /
|
|
15474
|
-
* "`" / "|" / "~" / DIGIT / ALPHA
|
|
15475
|
-
*
|
|
15476
|
-
* Note: Allowing more characters - https://github.com/jshttp/cookie/issues/191
|
|
15477
|
-
* Allow same range as cookie value, except `=`, which delimits end of name.
|
|
15478
|
-
*/
|
|
15479
|
-
const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
|
|
15480
|
-
/**
|
|
15481
|
-
* RegExp to match cookie-value in RFC 6265 sec 4.1.1
|
|
15482
|
-
*
|
|
15483
|
-
* cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
|
|
15484
|
-
* cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
|
|
15485
|
-
* ; US-ASCII characters excluding CTLs,
|
|
15486
|
-
* ; whitespace DQUOTE, comma, semicolon,
|
|
15487
|
-
* ; and backslash
|
|
15488
|
-
*
|
|
15489
|
-
* Allowing more characters: https://github.com/jshttp/cookie/issues/191
|
|
15490
|
-
* Comma, backslash, and DQUOTE are not part of the parsing algorithm.
|
|
15491
|
-
*/
|
|
15492
|
-
const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
|
|
15493
|
-
/**
|
|
15494
|
-
* RegExp to match domain-value in RFC 6265 sec 4.1.1
|
|
15495
|
-
*
|
|
15496
|
-
* domain-value = <subdomain>
|
|
15497
|
-
* ; defined in [RFC1034], Section 3.5, as
|
|
15498
|
-
* ; enhanced by [RFC1123], Section 2.1
|
|
15499
|
-
* <subdomain> = <label> | <subdomain> "." <label>
|
|
15500
|
-
* <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]
|
|
15501
|
-
* Labels must be 63 characters or less.
|
|
15502
|
-
* 'let-dig' not 'letter' in the first char, per RFC1123
|
|
15503
|
-
* <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>
|
|
15504
|
-
* <let-dig-hyp> = <let-dig> | "-"
|
|
15505
|
-
* <let-dig> = <letter> | <digit>
|
|
15506
|
-
* <letter> = any one of the 52 alphabetic characters A through Z in
|
|
15507
|
-
* upper case and a through z in lower case
|
|
15508
|
-
* <digit> = any one of the ten digits 0 through 9
|
|
15509
|
-
*
|
|
15510
|
-
* Keep support for leading dot: https://github.com/jshttp/cookie/issues/173
|
|
15511
|
-
*
|
|
15512
|
-
* > (Note that a leading %x2E ("."), if present, is ignored even though that
|
|
15513
|
-
* character is not permitted, but a trailing %x2E ("."), if present, will
|
|
15514
|
-
* cause the user agent to ignore the attribute.)
|
|
15515
|
-
*/
|
|
15516
|
-
const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
|
15517
|
-
/**
|
|
15518
|
-
* RegExp to match path-value in RFC 6265 sec 4.1.1
|
|
15519
|
-
*
|
|
15520
|
-
* path-value = <any CHAR except CTLs or ";">
|
|
15521
|
-
* CHAR = %x01-7F
|
|
15522
|
-
* ; defined in RFC 5234 appendix B.1
|
|
15523
|
-
*/
|
|
15524
|
-
const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
|
15525
|
-
const __toString = Object.prototype.toString;
|
|
15526
|
-
const NullObject = /* @__PURE__ */ (() => {
|
|
15527
|
-
const C = function () { };
|
|
15528
|
-
C.prototype = Object.create(null);
|
|
15529
|
-
return C;
|
|
15530
|
-
})();
|
|
15531
|
-
/**
|
|
15532
|
-
* Parse a cookie header.
|
|
15533
|
-
*
|
|
15534
|
-
* Parse the given cookie header string into an object
|
|
15535
|
-
* The object has the various cookies as keys(names) => values
|
|
15536
|
-
*/
|
|
15537
|
-
function parse(str, options) {
|
|
15538
|
-
const obj = new NullObject();
|
|
15539
|
-
const len = str.length;
|
|
15540
|
-
// RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.
|
|
15541
|
-
if (len < 2)
|
|
15542
|
-
return obj;
|
|
15543
|
-
const dec = options?.decode || decode;
|
|
15544
|
-
let index = 0;
|
|
15545
|
-
do {
|
|
15546
|
-
const eqIdx = str.indexOf("=", index);
|
|
15547
|
-
if (eqIdx === -1)
|
|
15548
|
-
break; // No more cookie pairs.
|
|
15549
|
-
const colonIdx = str.indexOf(";", index);
|
|
15550
|
-
const endIdx = colonIdx === -1 ? len : colonIdx;
|
|
15551
|
-
if (eqIdx > endIdx) {
|
|
15552
|
-
// backtrack on prior semicolon
|
|
15553
|
-
index = str.lastIndexOf(";", eqIdx - 1) + 1;
|
|
15554
|
-
continue;
|
|
15555
|
-
}
|
|
15556
|
-
const keyStartIdx = startIndex(str, index, eqIdx);
|
|
15557
|
-
const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
|
|
15558
|
-
const key = str.slice(keyStartIdx, keyEndIdx);
|
|
15559
|
-
// only assign once
|
|
15560
|
-
if (obj[key] === undefined) {
|
|
15561
|
-
let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
|
|
15562
|
-
let valEndIdx = endIndex(str, endIdx, valStartIdx);
|
|
15563
|
-
const value = dec(str.slice(valStartIdx, valEndIdx));
|
|
15564
|
-
obj[key] = value;
|
|
15565
|
-
}
|
|
15566
|
-
index = endIdx + 1;
|
|
15567
|
-
} while (index < len);
|
|
15568
|
-
return obj;
|
|
15569
|
-
}
|
|
15570
|
-
function startIndex(str, index, max) {
|
|
15571
|
-
do {
|
|
15572
|
-
const code = str.charCodeAt(index);
|
|
15573
|
-
if (code !== 0x20 /* */ && code !== 0x09 /* \t */)
|
|
15574
|
-
return index;
|
|
15575
|
-
} while (++index < max);
|
|
15576
|
-
return max;
|
|
15577
|
-
}
|
|
15578
|
-
function endIndex(str, index, min) {
|
|
15579
|
-
while (index > min) {
|
|
15580
|
-
const code = str.charCodeAt(--index);
|
|
15581
|
-
if (code !== 0x20 /* */ && code !== 0x09 /* \t */)
|
|
15582
|
-
return index + 1;
|
|
15583
|
-
}
|
|
15584
|
-
return min;
|
|
15585
|
-
}
|
|
15586
|
-
/**
|
|
15587
|
-
* Serialize data into a cookie header.
|
|
15588
|
-
*
|
|
15589
|
-
* Serialize a name value pair into a cookie string suitable for
|
|
15590
|
-
* http headers. An optional options object specifies cookie parameters.
|
|
15591
|
-
*
|
|
15592
|
-
* serialize('foo', 'bar', { httpOnly: true })
|
|
15593
|
-
* => "foo=bar; httpOnly"
|
|
15594
|
-
*/
|
|
15595
|
-
function serialize(name, val, options) {
|
|
15596
|
-
const enc = options?.encode || encodeURIComponent;
|
|
15597
|
-
if (!cookieNameRegExp.test(name)) {
|
|
15598
|
-
throw new TypeError(`argument name is invalid: ${name}`);
|
|
15599
|
-
}
|
|
15600
|
-
const value = enc(val);
|
|
15601
|
-
if (!cookieValueRegExp.test(value)) {
|
|
15602
|
-
throw new TypeError(`argument val is invalid: ${val}`);
|
|
15603
|
-
}
|
|
15604
|
-
let str = name + "=" + value;
|
|
15605
|
-
if (!options)
|
|
15606
|
-
return str;
|
|
15607
|
-
if (options.maxAge !== undefined) {
|
|
15608
|
-
if (!Number.isInteger(options.maxAge)) {
|
|
15609
|
-
throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
|
|
15610
|
-
}
|
|
15611
|
-
str += "; Max-Age=" + options.maxAge;
|
|
15612
|
-
}
|
|
15613
|
-
if (options.domain) {
|
|
15614
|
-
if (!domainValueRegExp.test(options.domain)) {
|
|
15615
|
-
throw new TypeError(`option domain is invalid: ${options.domain}`);
|
|
15616
|
-
}
|
|
15617
|
-
str += "; Domain=" + options.domain;
|
|
15618
|
-
}
|
|
15619
|
-
if (options.path) {
|
|
15620
|
-
if (!pathValueRegExp.test(options.path)) {
|
|
15621
|
-
throw new TypeError(`option path is invalid: ${options.path}`);
|
|
15622
|
-
}
|
|
15623
|
-
str += "; Path=" + options.path;
|
|
15624
|
-
}
|
|
15625
|
-
if (options.expires) {
|
|
15626
|
-
if (!isDate(options.expires) ||
|
|
15627
|
-
!Number.isFinite(options.expires.valueOf())) {
|
|
15628
|
-
throw new TypeError(`option expires is invalid: ${options.expires}`);
|
|
15629
|
-
}
|
|
15630
|
-
str += "; Expires=" + options.expires.toUTCString();
|
|
15631
|
-
}
|
|
15632
|
-
if (options.httpOnly) {
|
|
15633
|
-
str += "; HttpOnly";
|
|
15634
|
-
}
|
|
15635
|
-
if (options.secure) {
|
|
15636
|
-
str += "; Secure";
|
|
15637
|
-
}
|
|
15638
|
-
if (options.partitioned) {
|
|
15639
|
-
str += "; Partitioned";
|
|
15640
|
-
}
|
|
15641
|
-
if (options.priority) {
|
|
15642
|
-
const priority = typeof options.priority === "string"
|
|
15643
|
-
? options.priority.toLowerCase()
|
|
15644
|
-
: undefined;
|
|
15645
|
-
switch (priority) {
|
|
15646
|
-
case "low":
|
|
15647
|
-
str += "; Priority=Low";
|
|
15648
|
-
break;
|
|
15649
|
-
case "medium":
|
|
15650
|
-
str += "; Priority=Medium";
|
|
15651
|
-
break;
|
|
15652
|
-
case "high":
|
|
15653
|
-
str += "; Priority=High";
|
|
15654
|
-
break;
|
|
15655
|
-
default:
|
|
15656
|
-
throw new TypeError(`option priority is invalid: ${options.priority}`);
|
|
15657
|
-
}
|
|
15658
|
-
}
|
|
15659
|
-
if (options.sameSite) {
|
|
15660
|
-
const sameSite = typeof options.sameSite === "string"
|
|
15661
|
-
? options.sameSite.toLowerCase()
|
|
15662
|
-
: options.sameSite;
|
|
15663
|
-
switch (sameSite) {
|
|
15664
|
-
case true:
|
|
15665
|
-
case "strict":
|
|
15666
|
-
str += "; SameSite=Strict";
|
|
15667
|
-
break;
|
|
15668
|
-
case "lax":
|
|
15669
|
-
str += "; SameSite=Lax";
|
|
15670
|
-
break;
|
|
15671
|
-
case "none":
|
|
15672
|
-
str += "; SameSite=None";
|
|
15673
|
-
break;
|
|
15674
|
-
default:
|
|
15675
|
-
throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
|
|
15676
|
-
}
|
|
15677
|
-
}
|
|
15678
|
-
return str;
|
|
15679
|
-
}
|
|
15680
|
-
/**
|
|
15681
|
-
* URL-decode string value. Optimized to skip native call when no %.
|
|
15682
|
-
*/
|
|
15683
|
-
function decode(str) {
|
|
15684
|
-
if (str.indexOf("%") === -1)
|
|
15685
|
-
return str;
|
|
15686
|
-
try {
|
|
15687
|
-
return decodeURIComponent(str);
|
|
15688
|
-
}
|
|
15689
|
-
catch (e) {
|
|
15690
|
-
return str;
|
|
15691
|
-
}
|
|
15692
|
-
}
|
|
15693
|
-
/**
|
|
15694
|
-
* Determine if value is a Date.
|
|
15695
|
-
*/
|
|
15696
|
-
function isDate(val) {
|
|
15697
|
-
return __toString.call(val) === "[object Date]";
|
|
15698
|
-
}
|
|
15699
|
-
|
|
15700
|
-
return dist;
|
|
15701
|
-
}
|
|
15702
|
-
|
|
15703
|
-
requireDist();
|
|
15704
|
-
|
|
15447
|
+
/**
|
|
15448
|
+
* react-router v7.8.2
|
|
15449
|
+
*
|
|
15450
|
+
* Copyright (c) Remix Software Inc.
|
|
15451
|
+
*
|
|
15452
|
+
* This source code is licensed under the MIT license found in the
|
|
15453
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
15454
|
+
*
|
|
15455
|
+
* @license MIT
|
|
15456
|
+
*/
|
|
15705
15457
|
var PopStateEventType = "popstate";
|
|
15706
15458
|
function createHashHistory(options = {}) {
|
|
15707
15459
|
function createHashLocation(window2, globalHistory) {
|
|
@@ -15723,13 +15475,13 @@ function createHashHistory(options = {}) {
|
|
|
15723
15475
|
}
|
|
15724
15476
|
function createHashHref(window2, to) {
|
|
15725
15477
|
let base = window2.document.querySelector("base");
|
|
15726
|
-
let
|
|
15478
|
+
let href = "";
|
|
15727
15479
|
if (base && base.getAttribute("href")) {
|
|
15728
15480
|
let url = window2.location.href;
|
|
15729
15481
|
let hashIndex = url.indexOf("#");
|
|
15730
|
-
|
|
15482
|
+
href = hashIndex === -1 ? url : url.slice(0, hashIndex);
|
|
15731
15483
|
}
|
|
15732
|
-
return
|
|
15484
|
+
return href + "#" + (typeof to === "string" ? to : createPath(to));
|
|
15733
15485
|
}
|
|
15734
15486
|
function validateHashLocation(location, to) {
|
|
15735
15487
|
warning(
|
|
@@ -15916,12 +15668,12 @@ function createBrowserURLImpl(to, isAbsolute = false) {
|
|
|
15916
15668
|
base = window.location.origin !== "null" ? window.location.origin : window.location.href;
|
|
15917
15669
|
}
|
|
15918
15670
|
invariant(base, "No window.location.(origin|href) available to create URL");
|
|
15919
|
-
let
|
|
15920
|
-
|
|
15921
|
-
if (!isAbsolute &&
|
|
15922
|
-
|
|
15671
|
+
let href = typeof to === "string" ? to : createPath(to);
|
|
15672
|
+
href = href.replace(/ $/, "%20");
|
|
15673
|
+
if (!isAbsolute && href.startsWith("//")) {
|
|
15674
|
+
href = base + href;
|
|
15923
15675
|
}
|
|
15924
|
-
return new URL(
|
|
15676
|
+
return new URL(href, base);
|
|
15925
15677
|
}
|
|
15926
15678
|
function matchRoutes(routes, locationArg, basename = "/") {
|
|
15927
15679
|
return matchRoutesImpl(routes, locationArg, basename, false);
|
|
@@ -15945,8 +15697,8 @@ function matchRoutesImpl(routes, locationArg, basename, allowPartial) {
|
|
|
15945
15697
|
}
|
|
15946
15698
|
return matches;
|
|
15947
15699
|
}
|
|
15948
|
-
function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "") {
|
|
15949
|
-
let flattenRoute = (route, index, relativePath) => {
|
|
15700
|
+
function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "", _hasParentOptionalSegments = false) {
|
|
15701
|
+
let flattenRoute = (route, index, hasParentOptionalSegments = _hasParentOptionalSegments, relativePath) => {
|
|
15950
15702
|
let meta = {
|
|
15951
15703
|
relativePath: relativePath === void 0 ? route.path || "" : relativePath,
|
|
15952
15704
|
caseSensitive: route.caseSensitive === true,
|
|
@@ -15954,6 +15706,9 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "")
|
|
|
15954
15706
|
route
|
|
15955
15707
|
};
|
|
15956
15708
|
if (meta.relativePath.startsWith("/")) {
|
|
15709
|
+
if (!meta.relativePath.startsWith(parentPath) && hasParentOptionalSegments) {
|
|
15710
|
+
return;
|
|
15711
|
+
}
|
|
15957
15712
|
invariant(
|
|
15958
15713
|
meta.relativePath.startsWith(parentPath),
|
|
15959
15714
|
`Absolute route path "${meta.relativePath}" nested under path "${parentPath}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
@@ -15969,7 +15724,13 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "")
|
|
|
15969
15724
|
route.index !== true,
|
|
15970
15725
|
`Index routes must not have child routes. Please remove all child routes from route path "${path}".`
|
|
15971
15726
|
);
|
|
15972
|
-
flattenRoutes(
|
|
15727
|
+
flattenRoutes(
|
|
15728
|
+
route.children,
|
|
15729
|
+
branches,
|
|
15730
|
+
routesMeta,
|
|
15731
|
+
path,
|
|
15732
|
+
hasParentOptionalSegments
|
|
15733
|
+
);
|
|
15973
15734
|
}
|
|
15974
15735
|
if (route.path == null && !route.index) {
|
|
15975
15736
|
return;
|
|
@@ -15985,7 +15746,7 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "")
|
|
|
15985
15746
|
flattenRoute(route, index);
|
|
15986
15747
|
} else {
|
|
15987
15748
|
for (let exploded of explodeOptionalSegments(route.path)) {
|
|
15988
|
-
flattenRoute(route, index, exploded);
|
|
15749
|
+
flattenRoute(route, index, true, exploded);
|
|
15989
15750
|
}
|
|
15990
15751
|
}
|
|
15991
15752
|
});
|
|
@@ -16149,7 +15910,7 @@ function compilePath(path, caseSensitive = false, end = true) {
|
|
|
16149
15910
|
params.push({ paramName, isOptional: isOptional != null });
|
|
16150
15911
|
return isOptional ? "/?([^\\/]+)?" : "/([^\\/]+)";
|
|
16151
15912
|
}
|
|
16152
|
-
);
|
|
15913
|
+
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
16153
15914
|
if (path.endsWith("*")) {
|
|
16154
15915
|
params.push({ paramName: "*" });
|
|
16155
15916
|
regexpSource += path === "*" || path === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$";
|
|
@@ -16294,6 +16055,7 @@ var DataRouterContext = reactExports.createContext(null);
|
|
|
16294
16055
|
DataRouterContext.displayName = "DataRouter";
|
|
16295
16056
|
var DataRouterStateContext = reactExports.createContext(null);
|
|
16296
16057
|
DataRouterStateContext.displayName = "DataRouterState";
|
|
16058
|
+
reactExports.createContext(false);
|
|
16297
16059
|
var ViewTransitionContext = reactExports.createContext({
|
|
16298
16060
|
isTransitioning: false
|
|
16299
16061
|
});
|
|
@@ -16430,7 +16192,7 @@ function useResolvedPath(to, { relative } = {}) {
|
|
|
16430
16192
|
function useRoutes(routes, locationArg) {
|
|
16431
16193
|
return useRoutesImpl(routes, locationArg);
|
|
16432
16194
|
}
|
|
16433
|
-
function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
16195
|
+
function useRoutesImpl(routes, locationArg, dataRouterState, unstable_onError, future) {
|
|
16434
16196
|
invariant(
|
|
16435
16197
|
useInRouterContext(),
|
|
16436
16198
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -16502,6 +16264,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
16502
16264
|
),
|
|
16503
16265
|
parentMatches,
|
|
16504
16266
|
dataRouterState,
|
|
16267
|
+
unstable_onError,
|
|
16505
16268
|
future
|
|
16506
16269
|
);
|
|
16507
16270
|
if (locationArg && renderedMatches) {
|
|
@@ -16571,11 +16334,14 @@ var RenderErrorBoundary = class extends reactExports.Component {
|
|
|
16571
16334
|
};
|
|
16572
16335
|
}
|
|
16573
16336
|
componentDidCatch(error, errorInfo) {
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16337
|
+
if (this.props.unstable_onError) {
|
|
16338
|
+
this.props.unstable_onError(error, errorInfo);
|
|
16339
|
+
} else {
|
|
16340
|
+
console.error(
|
|
16341
|
+
"React Router caught the following error during render",
|
|
16342
|
+
error
|
|
16343
|
+
);
|
|
16344
|
+
}
|
|
16579
16345
|
}
|
|
16580
16346
|
render() {
|
|
16581
16347
|
return this.state.error !== void 0 ? /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, { value: this.props.routeContext }, /* @__PURE__ */ reactExports.createElement(
|
|
@@ -16594,7 +16360,7 @@ function RenderedRoute({ routeContext, match, children }) {
|
|
|
16594
16360
|
}
|
|
16595
16361
|
return /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, { value: routeContext }, children);
|
|
16596
16362
|
}
|
|
16597
|
-
function _renderMatches(matches, parentMatches = [], dataRouterState = null, future = null) {
|
|
16363
|
+
function _renderMatches(matches, parentMatches = [], dataRouterState = null, unstable_onError = null, future = null) {
|
|
16598
16364
|
if (matches == null) {
|
|
16599
16365
|
if (!dataRouterState) {
|
|
16600
16366
|
return null;
|
|
@@ -16647,68 +16413,72 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, fut
|
|
|
16647
16413
|
}
|
|
16648
16414
|
}
|
|
16649
16415
|
}
|
|
16650
|
-
return renderedMatches.reduceRight(
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
if (
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
}
|
|
16673
|
-
let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
|
|
16674
|
-
let getChildren = () => {
|
|
16675
|
-
let children;
|
|
16676
|
-
if (error) {
|
|
16677
|
-
children = errorElement;
|
|
16678
|
-
} else if (shouldRenderHydrateFallback) {
|
|
16679
|
-
children = hydrateFallbackElement;
|
|
16680
|
-
} else if (match.route.Component) {
|
|
16681
|
-
children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
|
|
16682
|
-
} else if (match.route.element) {
|
|
16683
|
-
children = match.route.element;
|
|
16684
|
-
} else {
|
|
16685
|
-
children = outlet;
|
|
16686
|
-
}
|
|
16687
|
-
return /* @__PURE__ */ reactExports.createElement(
|
|
16688
|
-
RenderedRoute,
|
|
16689
|
-
{
|
|
16690
|
-
match,
|
|
16691
|
-
routeContext: {
|
|
16692
|
-
outlet,
|
|
16693
|
-
matches: matches2,
|
|
16694
|
-
isDataRoute: dataRouterState != null
|
|
16695
|
-
},
|
|
16696
|
-
children
|
|
16416
|
+
return renderedMatches.reduceRight(
|
|
16417
|
+
(outlet, match, index) => {
|
|
16418
|
+
let error;
|
|
16419
|
+
let shouldRenderHydrateFallback = false;
|
|
16420
|
+
let errorElement = null;
|
|
16421
|
+
let hydrateFallbackElement = null;
|
|
16422
|
+
if (dataRouterState) {
|
|
16423
|
+
error = errors && match.route.id ? errors[match.route.id] : void 0;
|
|
16424
|
+
errorElement = match.route.errorElement || defaultErrorElement;
|
|
16425
|
+
if (renderFallback) {
|
|
16426
|
+
if (fallbackIndex < 0 && index === 0) {
|
|
16427
|
+
warningOnce(
|
|
16428
|
+
"route-fallback",
|
|
16429
|
+
false,
|
|
16430
|
+
"No `HydrateFallback` element provided to render during initial hydration"
|
|
16431
|
+
);
|
|
16432
|
+
shouldRenderHydrateFallback = true;
|
|
16433
|
+
hydrateFallbackElement = null;
|
|
16434
|
+
} else if (fallbackIndex === index) {
|
|
16435
|
+
shouldRenderHydrateFallback = true;
|
|
16436
|
+
hydrateFallbackElement = match.route.hydrateFallbackElement || null;
|
|
16437
|
+
}
|
|
16697
16438
|
}
|
|
16698
|
-
);
|
|
16699
|
-
};
|
|
16700
|
-
return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
|
|
16701
|
-
RenderErrorBoundary,
|
|
16702
|
-
{
|
|
16703
|
-
location: dataRouterState.location,
|
|
16704
|
-
revalidation: dataRouterState.revalidation,
|
|
16705
|
-
component: errorElement,
|
|
16706
|
-
error,
|
|
16707
|
-
children: getChildren(),
|
|
16708
|
-
routeContext: { outlet: null, matches: matches2, isDataRoute: true }
|
|
16709
16439
|
}
|
|
16710
|
-
|
|
16711
|
-
|
|
16440
|
+
let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
|
|
16441
|
+
let getChildren = () => {
|
|
16442
|
+
let children;
|
|
16443
|
+
if (error) {
|
|
16444
|
+
children = errorElement;
|
|
16445
|
+
} else if (shouldRenderHydrateFallback) {
|
|
16446
|
+
children = hydrateFallbackElement;
|
|
16447
|
+
} else if (match.route.Component) {
|
|
16448
|
+
children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
|
|
16449
|
+
} else if (match.route.element) {
|
|
16450
|
+
children = match.route.element;
|
|
16451
|
+
} else {
|
|
16452
|
+
children = outlet;
|
|
16453
|
+
}
|
|
16454
|
+
return /* @__PURE__ */ reactExports.createElement(
|
|
16455
|
+
RenderedRoute,
|
|
16456
|
+
{
|
|
16457
|
+
match,
|
|
16458
|
+
routeContext: {
|
|
16459
|
+
outlet,
|
|
16460
|
+
matches: matches2,
|
|
16461
|
+
isDataRoute: dataRouterState != null
|
|
16462
|
+
},
|
|
16463
|
+
children
|
|
16464
|
+
}
|
|
16465
|
+
);
|
|
16466
|
+
};
|
|
16467
|
+
return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
|
|
16468
|
+
RenderErrorBoundary,
|
|
16469
|
+
{
|
|
16470
|
+
location: dataRouterState.location,
|
|
16471
|
+
revalidation: dataRouterState.revalidation,
|
|
16472
|
+
component: errorElement,
|
|
16473
|
+
error,
|
|
16474
|
+
children: getChildren(),
|
|
16475
|
+
routeContext: { outlet: null, matches: matches2, isDataRoute: true },
|
|
16476
|
+
unstable_onError
|
|
16477
|
+
}
|
|
16478
|
+
) : getChildren();
|
|
16479
|
+
},
|
|
16480
|
+
null
|
|
16481
|
+
);
|
|
16712
16482
|
}
|
|
16713
16483
|
function getDataRouterConsoleError(hookName) {
|
|
16714
16484
|
return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
@@ -16796,9 +16566,10 @@ reactExports.memo(DataRoutes);
|
|
|
16796
16566
|
function DataRoutes({
|
|
16797
16567
|
routes,
|
|
16798
16568
|
future,
|
|
16799
|
-
state
|
|
16569
|
+
state,
|
|
16570
|
+
unstable_onError
|
|
16800
16571
|
}) {
|
|
16801
|
-
return useRoutesImpl(routes, void 0, state, future);
|
|
16572
|
+
return useRoutesImpl(routes, void 0, state, unstable_onError, future);
|
|
16802
16573
|
}
|
|
16803
16574
|
function Navigate({
|
|
16804
16575
|
to,
|
|
@@ -16832,7 +16603,7 @@ function Navigate({
|
|
|
16832
16603
|
}, [navigate, jsonPath, relative, replace2, state]);
|
|
16833
16604
|
return null;
|
|
16834
16605
|
}
|
|
16835
|
-
function Route(
|
|
16606
|
+
function Route(props) {
|
|
16836
16607
|
invariant(
|
|
16837
16608
|
false,
|
|
16838
16609
|
`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`
|
|
@@ -17054,11 +16825,28 @@ function getFormSubmissionInfo(target, basename) {
|
|
|
17054
16825
|
}
|
|
17055
16826
|
return { action, method: method.toLowerCase(), encType, formData, body };
|
|
17056
16827
|
}
|
|
16828
|
+
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
17057
16829
|
function invariant2(value, message) {
|
|
17058
16830
|
if (value === false || value === null || typeof value === "undefined") {
|
|
17059
16831
|
throw new Error(message);
|
|
17060
16832
|
}
|
|
17061
16833
|
}
|
|
16834
|
+
function singleFetchUrl(reqUrl, basename, extension) {
|
|
16835
|
+
let url = typeof reqUrl === "string" ? new URL(
|
|
16836
|
+
reqUrl,
|
|
16837
|
+
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
16838
|
+
// don't assume window is available
|
|
16839
|
+
typeof window === "undefined" ? "server://singlefetch/" : window.location.origin
|
|
16840
|
+
) : reqUrl;
|
|
16841
|
+
if (url.pathname === "/") {
|
|
16842
|
+
url.pathname = `_root.${extension}`;
|
|
16843
|
+
} else if (basename && stripBasename(url.pathname, basename) === "/") {
|
|
16844
|
+
url.pathname = `${basename.replace(/\/$/, "")}/_root.${extension}`;
|
|
16845
|
+
} else {
|
|
16846
|
+
url.pathname = `${url.pathname.replace(/\/$/, "")}.${extension}`;
|
|
16847
|
+
}
|
|
16848
|
+
return url;
|
|
16849
|
+
}
|
|
17062
16850
|
async function loadRouteModule(route, routeModulesCache) {
|
|
17063
16851
|
if (route.id in routeModulesCache) {
|
|
17064
16852
|
return routeModulesCache[route.id];
|
|
@@ -17201,24 +16989,6 @@ function dedupeLinkDescriptors(descriptors, preloads) {
|
|
|
17201
16989
|
return deduped;
|
|
17202
16990
|
}, []);
|
|
17203
16991
|
}
|
|
17204
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
17205
|
-
var NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
17206
|
-
function singleFetchUrl(reqUrl, basename) {
|
|
17207
|
-
let url = typeof reqUrl === "string" ? new URL(
|
|
17208
|
-
reqUrl,
|
|
17209
|
-
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
17210
|
-
// don't assume window is available
|
|
17211
|
-
typeof window === "undefined" ? "server://singlefetch/" : window.location.origin
|
|
17212
|
-
) : reqUrl;
|
|
17213
|
-
if (url.pathname === "/") {
|
|
17214
|
-
url.pathname = "_root.data";
|
|
17215
|
-
} else if (basename && stripBasename(url.pathname, basename) === "/") {
|
|
17216
|
-
url.pathname = `${basename.replace(/\/$/, "")}/_root.data`;
|
|
17217
|
-
} else {
|
|
17218
|
-
url.pathname = `${url.pathname.replace(/\/$/, "")}.data`;
|
|
17219
|
-
}
|
|
17220
|
-
return url;
|
|
17221
|
-
}
|
|
17222
16992
|
function useDataRouterContext2() {
|
|
17223
16993
|
let context = reactExports.useContext(DataRouterContext);
|
|
17224
16994
|
invariant2(
|
|
@@ -17311,10 +17081,7 @@ function composeEventHandlers(theirHandler, ourHandler) {
|
|
|
17311
17081
|
}
|
|
17312
17082
|
};
|
|
17313
17083
|
}
|
|
17314
|
-
function PrefetchPageLinks({
|
|
17315
|
-
page,
|
|
17316
|
-
...dataLinkProps
|
|
17317
|
-
}) {
|
|
17084
|
+
function PrefetchPageLinks({ page, ...linkProps }) {
|
|
17318
17085
|
let { router } = useDataRouterContext2();
|
|
17319
17086
|
let matches = reactExports.useMemo(
|
|
17320
17087
|
() => matchRoutes(router.routes, page, router.basename),
|
|
@@ -17323,7 +17090,7 @@ function PrefetchPageLinks({
|
|
|
17323
17090
|
if (!matches) {
|
|
17324
17091
|
return null;
|
|
17325
17092
|
}
|
|
17326
|
-
return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...
|
|
17093
|
+
return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...linkProps });
|
|
17327
17094
|
}
|
|
17328
17095
|
function useKeyedPrefetchLinks(matches) {
|
|
17329
17096
|
let { manifest, routeModules } = useFrameworkContext();
|
|
@@ -17396,7 +17163,7 @@ function PrefetchPageLinksImpl({
|
|
|
17396
17163
|
if (routesParams.size === 0) {
|
|
17397
17164
|
return [];
|
|
17398
17165
|
}
|
|
17399
|
-
let url = singleFetchUrl(page, basename);
|
|
17166
|
+
let url = singleFetchUrl(page, basename, "data");
|
|
17400
17167
|
if (foundOptOutRoute && routesParams.size > 0) {
|
|
17401
17168
|
url.searchParams.set(
|
|
17402
17169
|
"_routes",
|
|
@@ -17419,10 +17186,10 @@ function PrefetchPageLinksImpl({
|
|
|
17419
17186
|
[newMatchesForAssets, manifest]
|
|
17420
17187
|
);
|
|
17421
17188
|
let keyedPrefetchLinks = useKeyedPrefetchLinks(newMatchesForAssets);
|
|
17422
|
-
return /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, dataHrefs.map((
|
|
17189
|
+
return /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ reactExports.createElement("link", { key: href, rel: "prefetch", as: "fetch", href, ...linkProps })), moduleHrefs.map((href) => /* @__PURE__ */ reactExports.createElement("link", { key: href, rel: "modulepreload", href, ...linkProps })), keyedPrefetchLinks.map(({ key, link }) => (
|
|
17423
17190
|
// these don't spread `linkProps` because they are full link descriptors
|
|
17424
17191
|
// already with their own props
|
|
17425
|
-
/* @__PURE__ */ reactExports.createElement("link", { key, ...link })
|
|
17192
|
+
/* @__PURE__ */ reactExports.createElement("link", { key, nonce: linkProps.nonce, ...link })
|
|
17426
17193
|
)));
|
|
17427
17194
|
}
|
|
17428
17195
|
function mergeRefs(...refs) {
|
|
@@ -17439,7 +17206,8 @@ function mergeRefs(...refs) {
|
|
|
17439
17206
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
17440
17207
|
try {
|
|
17441
17208
|
if (isBrowser) {
|
|
17442
|
-
window.__reactRouterVersion =
|
|
17209
|
+
window.__reactRouterVersion = // @ts-expect-error
|
|
17210
|
+
"7.8.2";
|
|
17443
17211
|
}
|
|
17444
17212
|
} catch (e) {
|
|
17445
17213
|
}
|
|
@@ -17511,7 +17279,7 @@ var Link = reactExports.forwardRef(
|
|
|
17511
17279
|
}
|
|
17512
17280
|
}
|
|
17513
17281
|
}
|
|
17514
|
-
let
|
|
17282
|
+
let href = useHref(to, { relative });
|
|
17515
17283
|
let [shouldPrefetch, prefetchRef, prefetchHandlers] = usePrefetchBehavior(
|
|
17516
17284
|
prefetch,
|
|
17517
17285
|
rest
|
|
@@ -17537,7 +17305,7 @@ var Link = reactExports.forwardRef(
|
|
|
17537
17305
|
{
|
|
17538
17306
|
...rest,
|
|
17539
17307
|
...prefetchHandlers,
|
|
17540
|
-
href: absoluteHref ||
|
|
17308
|
+
href: absoluteHref || href,
|
|
17541
17309
|
onClick: isExternal || reloadDocument ? onClick : handleClick,
|
|
17542
17310
|
ref: mergeRefs(forwardedRef, prefetchRef),
|
|
17543
17311
|
target,
|
|
@@ -17545,7 +17313,7 @@ var Link = reactExports.forwardRef(
|
|
|
17545
17313
|
}
|
|
17546
17314
|
)
|
|
17547
17315
|
);
|
|
17548
|
-
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, link, /* @__PURE__ */ reactExports.createElement(PrefetchPageLinks, { page:
|
|
17316
|
+
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, link, /* @__PURE__ */ reactExports.createElement(PrefetchPageLinks, { page: href })) : link;
|
|
17549
17317
|
}
|
|
17550
17318
|
);
|
|
17551
17319
|
Link.displayName = "Link";
|
|
@@ -17784,7 +17552,7 @@ function useFormAction(action, { relative } = {}) {
|
|
|
17784
17552
|
}
|
|
17785
17553
|
return createPath(path);
|
|
17786
17554
|
}
|
|
17787
|
-
function useViewTransitionState(to,
|
|
17555
|
+
function useViewTransitionState(to, { relative } = {}) {
|
|
17788
17556
|
let vtContext = reactExports.useContext(ViewTransitionContext);
|
|
17789
17557
|
invariant(
|
|
17790
17558
|
vtContext != null,
|
|
@@ -17794,7 +17562,7 @@ function useViewTransitionState(to, opts = {}) {
|
|
|
17794
17562
|
"useViewTransitionState"
|
|
17795
17563
|
/* useViewTransitionState */
|
|
17796
17564
|
);
|
|
17797
|
-
let path = useResolvedPath(to, { relative
|
|
17565
|
+
let path = useResolvedPath(to, { relative });
|
|
17798
17566
|
if (!vtContext.isTransitioning) {
|
|
17799
17567
|
return false;
|
|
17800
17568
|
}
|
|
@@ -17802,10 +17570,6 @@ function useViewTransitionState(to, opts = {}) {
|
|
|
17802
17570
|
let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
|
|
17803
17571
|
return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
|
|
17804
17572
|
}
|
|
17805
|
-
/* @__PURE__ */ new Set([
|
|
17806
|
-
...NO_BODY_STATUS_CODES,
|
|
17807
|
-
304
|
|
17808
|
-
]);
|
|
17809
17573
|
|
|
17810
17574
|
var reactDom = {exports: {}};
|
|
17811
17575
|
|
|
@@ -18024,7 +17788,7 @@ function requireReactDom_production () {
|
|
|
18024
17788
|
reactDom_production.useFormStatus = function () {
|
|
18025
17789
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
18026
17790
|
};
|
|
18027
|
-
reactDom_production.version = "19.1.
|
|
17791
|
+
reactDom_production.version = "19.1.1";
|
|
18028
17792
|
return reactDom_production;
|
|
18029
17793
|
}
|
|
18030
17794
|
|
|
@@ -50784,14 +50548,14 @@ function requireReactDomClient_production () {
|
|
|
50784
50548
|
};
|
|
50785
50549
|
var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;
|
|
50786
50550
|
if (
|
|
50787
|
-
"19.1.
|
|
50551
|
+
"19.1.1" !==
|
|
50788
50552
|
isomorphicReactPackageVersion$jscomp$inline_1785
|
|
50789
50553
|
)
|
|
50790
50554
|
throw Error(
|
|
50791
50555
|
formatProdErrorMessage(
|
|
50792
50556
|
527,
|
|
50793
50557
|
isomorphicReactPackageVersion$jscomp$inline_1785,
|
|
50794
|
-
"19.1.
|
|
50558
|
+
"19.1.1"
|
|
50795
50559
|
)
|
|
50796
50560
|
);
|
|
50797
50561
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
@@ -50813,10 +50577,10 @@ function requireReactDomClient_production () {
|
|
|
50813
50577
|
};
|
|
50814
50578
|
var internals$jscomp$inline_2256 = {
|
|
50815
50579
|
bundleType: 0,
|
|
50816
|
-
version: "19.1.
|
|
50580
|
+
version: "19.1.1",
|
|
50817
50581
|
rendererPackageName: "react-dom",
|
|
50818
50582
|
currentDispatcherRef: ReactSharedInternals,
|
|
50819
|
-
reconcilerVersion: "19.1.
|
|
50583
|
+
reconcilerVersion: "19.1.1"
|
|
50820
50584
|
};
|
|
50821
50585
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
50822
50586
|
var hook$jscomp$inline_2257 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -50920,7 +50684,7 @@ function requireReactDomClient_production () {
|
|
|
50920
50684
|
listenToAllSupportedEvents(container);
|
|
50921
50685
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
50922
50686
|
};
|
|
50923
|
-
reactDomClient_production.version = "19.1.
|
|
50687
|
+
reactDomClient_production.version = "19.1.1";
|
|
50924
50688
|
return reactDomClient_production;
|
|
50925
50689
|
}
|
|
50926
50690
|
|
package/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Romulator: Organize your Games</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BQrf1M1b.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="zthunworks-romulator"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/romulator-web",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Romulator frontend",
|
|
5
5
|
"author": "Anthony Bonta",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,31 +18,29 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^24.
|
|
22
|
-
"@
|
|
23
|
-
"@zthun/cirque": "^7.1.
|
|
24
|
-
"@zthun/
|
|
25
|
-
"@zthun/fashion-
|
|
26
|
-
"@zthun/fashion-
|
|
27
|
-
"@zthun/
|
|
28
|
-
"@zthun/helpful-
|
|
29
|
-
"@zthun/helpful-
|
|
30
|
-
"@zthun/
|
|
31
|
-
"@zthun/
|
|
32
|
-
"@zthun/
|
|
33
|
-
"@zthun/webigail-
|
|
34
|
-
"@zthun/webigail-
|
|
35
|
-
"@zthun/webigail-url": "^4.0.4",
|
|
21
|
+
"@types/node": "^24.3.1",
|
|
22
|
+
"@zthun/cirque": "^7.1.7",
|
|
23
|
+
"@zthun/cirque-du-react": "^7.1.7",
|
|
24
|
+
"@zthun/fashion-boutique": "^10.2.5",
|
|
25
|
+
"@zthun/fashion-tailor": "^10.2.5",
|
|
26
|
+
"@zthun/fashion-theme": "^10.2.5",
|
|
27
|
+
"@zthun/helpful-fn": "^9.4.3",
|
|
28
|
+
"@zthun/helpful-query": "^9.4.3",
|
|
29
|
+
"@zthun/helpful-react": "^9.4.3",
|
|
30
|
+
"@zthun/janitor-build-config": "^19.3.3",
|
|
31
|
+
"@zthun/romulator-client": "^1.3.3",
|
|
32
|
+
"@zthun/webigail-http": "^4.0.6",
|
|
33
|
+
"@zthun/webigail-rest": "^4.0.6",
|
|
34
|
+
"@zthun/webigail-url": "^4.0.6",
|
|
36
35
|
"history": "^5.3.0",
|
|
37
36
|
"lodash-es": "^4.17.21",
|
|
38
|
-
"react": "^19.1.
|
|
39
|
-
"react-dom": "^19.1.
|
|
37
|
+
"react": "^19.1.1",
|
|
38
|
+
"react-dom": "^19.1.1",
|
|
40
39
|
"tsconfig-paths": "^4.2.0",
|
|
41
|
-
"typescript": "^5.
|
|
42
|
-
"vite": "^
|
|
43
|
-
"vite-tsconfig-paths": "^5.1.4",
|
|
40
|
+
"typescript": "^5.9.2",
|
|
41
|
+
"vite": "^7.1.4",
|
|
44
42
|
"vitest": "^3.2.4",
|
|
45
43
|
"vitest-mock-extended": "^3.1.0"
|
|
46
44
|
},
|
|
47
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "65983b10014afd7801d107fda4b6a4bfe987e504"
|
|
48
46
|
}
|