@twreporter/react-typescript-components 0.1.0-beta.21 → 0.1.0-beta.22
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/lib/{constants-Npoq7yu0.mjs → constants-5phfWHvb.mjs} +1 -1
- package/lib/{constants-Npoq7yu0.mjs.map → constants-5phfWHvb.mjs.map} +1 -1
- package/lib/{constants-CUzusjTU.js → constants-B_1Vpdib.js} +2 -2
- package/lib/{constants-CUzusjTU.js.map → constants-B_1Vpdib.js.map} +1 -1
- package/lib/{constants-B8QkNSRh.mjs → constants-Br6I254P.mjs} +2 -2
- package/lib/{constants-B8QkNSRh.mjs.map → constants-Br6I254P.mjs.map} +1 -1
- package/lib/{constants-pqSeExjX.js → constants-C2moxnps.js} +1 -1
- package/lib/{constants-pqSeExjX.js.map → constants-C2moxnps.js.map} +1 -1
- package/lib/{constants-R6EfY15A.js → constants-D8wNUvoZ.js} +1 -1
- package/lib/{constants-R6EfY15A.js.map → constants-D8wNUvoZ.js.map} +1 -1
- package/lib/{constants-DKqcALfv.mjs → constants-DRxdMM_X.mjs} +1 -1
- package/lib/{constants-DKqcALfv.mjs.map → constants-DRxdMM_X.mjs.map} +1 -1
- package/lib/{context-C9AuSZIE.mjs → context-BgdqM3zA.mjs} +1 -1
- package/lib/{context-C9AuSZIE.mjs.map → context-BgdqM3zA.mjs.map} +1 -1
- package/lib/{context-vBt5fnU9.js → context-I1lTR5SO.js} +1 -1
- package/lib/{context-vBt5fnU9.js.map → context-I1lTR5SO.js.map} +1 -1
- package/lib/customized-link/index.d.mts +3 -3
- package/lib/customized-link/index.d.ts +3 -3
- package/lib/customized-link/index.js +2 -2
- package/lib/customized-link/index.mjs +2 -2
- package/lib/customized-link/internal-link.js +1 -1
- package/lib/customized-link/internal-link.mjs +1 -1
- package/lib/{customized-link-BDKQVdcH.js → customized-link-BuleQPlC.js} +2 -2
- package/lib/{customized-link-BDKQVdcH.js.map → customized-link-BuleQPlC.js.map} +1 -1
- package/lib/{customized-link-D3p9rjEe.mjs → customized-link-M65Amhsm.mjs} +2 -2
- package/lib/{customized-link-D3p9rjEe.mjs.map → customized-link-M65Amhsm.mjs.map} +1 -1
- package/lib/dropdown-menu/index.js +7 -7
- package/lib/dropdown-menu/index.mjs +7 -7
- package/lib/{dropdown-menu-CTUg6MST.js → dropdown-menu-BAHX8io9.js} +5 -5
- package/lib/{dropdown-menu-CTUg6MST.js.map → dropdown-menu-BAHX8io9.js.map} +1 -1
- package/lib/{dropdown-menu-MOuxtoud.mjs → dropdown-menu-BBodM9gi.mjs} +5 -5
- package/lib/{dropdown-menu-MOuxtoud.mjs.map → dropdown-menu-BBodM9gi.mjs.map} +1 -1
- package/lib/footer/index.js +8 -8
- package/lib/footer/index.mjs +8 -8
- package/lib/footer/links.js +5 -5
- package/lib/footer/links.mjs +5 -5
- package/lib/footer/logo.js +5 -5
- package/lib/footer/logo.mjs +5 -5
- package/lib/hamburger-menu/index.js +11 -11
- package/lib/hamburger-menu/index.mjs +11 -11
- package/lib/{hamburger-menu-B-n_-t91.mjs → hamburger-menu-B8A2Jjyu.mjs} +8 -8
- package/lib/{hamburger-menu-B-n_-t91.mjs.map → hamburger-menu-B8A2Jjyu.mjs.map} +1 -1
- package/lib/{hamburger-menu-CYiCx5_x.js → hamburger-menu-BKiIxEbP.js} +8 -8
- package/lib/{hamburger-menu-CYiCx5_x.js.map → hamburger-menu-BKiIxEbP.js.map} +1 -1
- package/lib/header/index.js +20 -20
- package/lib/header/index.mjs +17 -17
- package/lib/hooks/index.d.mts +3 -3
- package/lib/hooks/index.d.ts +3 -3
- package/lib/hooks/index.js +2 -2
- package/lib/hooks/index.mjs +2 -2
- package/lib/hooks/use-outside-click.d.mts +1 -1
- package/lib/hooks/use-outside-click.d.ts +1 -1
- package/lib/hooks/use-outside-click.js +1 -1
- package/lib/hooks/use-outside-click.mjs +1 -1
- package/lib/{hooks-CYgvBAmt.js → hooks-B0DKeSXi.js} +2 -2
- package/lib/{hooks-CYgvBAmt.js.map → hooks-B0DKeSXi.js.map} +1 -1
- package/lib/{hooks-CcqXFDPN.mjs → hooks-CDCpkU85.mjs} +2 -2
- package/lib/{hooks-CcqXFDPN.mjs.map → hooks-CDCpkU85.mjs.map} +1 -1
- package/lib/icons/constants.js +1 -1
- package/lib/icons/constants.mjs +1 -1
- package/lib/icons/index.js +2 -2
- package/lib/icons/index.mjs +2 -2
- package/lib/{icons-C5UqghX2.mjs → icons-I7T-auOQ.mjs} +2 -2
- package/lib/{icons-C5UqghX2.mjs.map → icons-I7T-auOQ.mjs.map} +1 -1
- package/lib/{icons-BZI6_5JJ.js → icons-qP5oNB0W.js} +2 -2
- package/lib/{icons-BZI6_5JJ.js.map → icons-qP5oNB0W.js.map} +1 -1
- package/lib/input/index.d.mts +2 -2
- package/lib/input/index.d.ts +2 -2
- package/lib/input/index.js +4 -4
- package/lib/input/index.mjs +4 -4
- package/lib/input/theme.js +1 -1
- package/lib/input/theme.mjs +1 -1
- package/lib/{input-BJWcutA3.mjs → input-BU_QJnbj.mjs} +3 -3
- package/lib/{input-BJWcutA3.mjs.map → input-BU_QJnbj.mjs.map} +1 -1
- package/lib/{input-e0a-Wul_.js → input-VmgNb9pm.js} +3 -3
- package/lib/{input-e0a-Wul_.js.map → input-VmgNb9pm.js.map} +1 -1
- package/lib/{internal-link-Bq4yp13E.js → internal-link-DyK4bABh.js} +665 -66
- package/lib/internal-link-DyK4bABh.js.map +1 -0
- package/lib/{internal-link-DCXJvzgx.mjs → internal-link-JeC0sVNF.mjs} +665 -66
- package/lib/internal-link-JeC0sVNF.mjs.map +1 -0
- package/lib/{links-CFjOQl4o.mjs → links-B2pHDaBW.mjs} +2 -2
- package/lib/{links-CFjOQl4o.mjs.map → links-B2pHDaBW.mjs.map} +1 -1
- package/lib/{links-DMd-CuUJ.js → links-Cq5mjJ_J.js} +2 -2
- package/lib/{links-DMd-CuUJ.js.map → links-Cq5mjJ_J.js.map} +1 -1
- package/lib/logo/constants.js +1 -1
- package/lib/logo/constants.mjs +1 -1
- package/lib/logo/index.d.mts +7 -7
- package/lib/logo/index.d.ts +7 -7
- package/lib/logo/index.js +2 -2
- package/lib/logo/index.mjs +2 -2
- package/lib/{logo-B35M1BaX.js → logo-B3GSkN1O.js} +2 -2
- package/lib/{logo-B35M1BaX.js.map → logo-B3GSkN1O.js.map} +1 -1
- package/lib/{logo-lPQ3Apwn.mjs → logo-CUVtS0IX.mjs} +3 -3
- package/lib/{logo-lPQ3Apwn.mjs.map → logo-CUVtS0IX.mjs.map} +1 -1
- package/lib/{logo-CeaVUbIW.js → logo-DlhZVVLN.js} +3 -3
- package/lib/{logo-CeaVUbIW.js.map → logo-DlhZVVLN.js.map} +1 -1
- package/lib/{logo-DkEpjnPV.mjs → logo-NfYCtrtN.mjs} +2 -2
- package/lib/{logo-DkEpjnPV.mjs.map → logo-NfYCtrtN.mjs.map} +1 -1
- package/lib/tab-bar/constants.js +3 -3
- package/lib/tab-bar/constants.mjs +3 -3
- package/lib/tab-bar/index.js +8 -8
- package/lib/tab-bar/index.mjs +8 -8
- package/lib/tab-bar/theme.js +1 -1
- package/lib/tab-bar/theme.mjs +1 -1
- package/lib/{tab-bar-USs-mSXE.js → tab-bar-BiduNX4N.js} +6 -6
- package/lib/{tab-bar-USs-mSXE.js.map → tab-bar-BiduNX4N.js.map} +1 -1
- package/lib/{tab-bar-C_FxNWkG.mjs → tab-bar-Cl1QLEj1.mjs} +6 -6
- package/lib/{tab-bar-C_FxNWkG.mjs.map → tab-bar-Cl1QLEj1.mjs.map} +1 -1
- package/lib/{theme-DURvzYaJ.mjs → theme-Bgd_TUHZ.mjs} +1 -1
- package/lib/{theme-DURvzYaJ.mjs.map → theme-Bgd_TUHZ.mjs.map} +1 -1
- package/lib/{theme-Cf9NG_eL.mjs → theme-CE2RkJwt.mjs} +1 -1
- package/lib/{theme-Cf9NG_eL.mjs.map → theme-CE2RkJwt.mjs.map} +1 -1
- package/lib/{theme-B9k1Udon.js → theme-CmvdSSbX.js} +1 -1
- package/lib/{theme-B9k1Udon.js.map → theme-CmvdSSbX.js.map} +1 -1
- package/lib/{theme-BLdi7Moc.js → theme-Cv8rt4oO.js} +1 -1
- package/lib/{theme-BLdi7Moc.js.map → theme-Cv8rt4oO.js.map} +1 -1
- package/lib/title-bar/index.d.ts +4 -4
- package/lib/title-bar/index.js +2 -2
- package/lib/title-bar/index.mjs +2 -2
- package/lib/{use-outside-click-DnJ0DNZ9.js → use-outside-click-BB1MpRid.js} +1 -1
- package/lib/{use-outside-click-DnJ0DNZ9.js.map → use-outside-click-BB1MpRid.js.map} +1 -1
- package/lib/use-outside-click-CMgRy6Pr.d.mts +7 -0
- package/lib/use-outside-click-CWX94QPE.d.ts +7 -0
- package/lib/{use-outside-click-BfAURk-E.mjs → use-outside-click-DAfe2vPE.mjs} +1 -1
- package/lib/{use-outside-click-BfAURk-E.mjs.map → use-outside-click-DAfe2vPE.mjs.map} +1 -1
- package/package.json +4 -5
- package/lib/internal-link-Bq4yp13E.js.map +0 -1
- package/lib/internal-link-DCXJvzgx.mjs.map +0 -1
- package/lib/use-outside-click-BA-T3hJc.d.ts +0 -7
- package/lib/use-outside-click-E-9eTkfz.d.mts +0 -7
|
@@ -61,13 +61,13 @@ var require__interop_require_wildcard = /* @__PURE__ */ __commonJS({ "../../node
|
|
|
61
61
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/querystring.js
|
|
62
62
|
var require_querystring = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/querystring.js": ((exports) => {
|
|
63
63
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
|
-
function _export$
|
|
64
|
+
function _export$14(target, all) {
|
|
65
65
|
for (var name in all) Object.defineProperty(target, name, {
|
|
66
66
|
enumerable: true,
|
|
67
67
|
get: all[name]
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
_export$
|
|
70
|
+
_export$14(exports, {
|
|
71
71
|
assign: function() {
|
|
72
72
|
return assign;
|
|
73
73
|
},
|
|
@@ -113,13 +113,13 @@ var require_querystring = /* @__PURE__ */ __commonJS({ "../../node_modules/next/
|
|
|
113
113
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/format-url.js
|
|
114
114
|
var require_format_url = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/format-url.js": ((exports) => {
|
|
115
115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116
|
-
function _export$
|
|
116
|
+
function _export$13(target, all) {
|
|
117
117
|
for (var name in all) Object.defineProperty(target, name, {
|
|
118
118
|
enumerable: true,
|
|
119
119
|
get: all[name]
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
_export$
|
|
122
|
+
_export$13(exports, {
|
|
123
123
|
formatUrl: function() {
|
|
124
124
|
return formatUrl;
|
|
125
125
|
},
|
|
@@ -205,13 +205,13 @@ var require_omit = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/sh
|
|
|
205
205
|
//#region ../../node_modules/next/dist/shared/lib/utils.js
|
|
206
206
|
var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/utils.js": ((exports) => {
|
|
207
207
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
208
|
-
function _export$
|
|
208
|
+
function _export$12(target, all) {
|
|
209
209
|
for (var name in all) Object.defineProperty(target, name, {
|
|
210
210
|
enumerable: true,
|
|
211
211
|
get: all[name]
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
_export$
|
|
214
|
+
_export$12(exports, {
|
|
215
215
|
DecodeError: function() {
|
|
216
216
|
return DecodeError;
|
|
217
217
|
},
|
|
@@ -511,13 +511,13 @@ var require_is_local_url = /* @__PURE__ */ __commonJS({ "../../node_modules/next
|
|
|
511
511
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
|
|
512
512
|
var require_sorted_routes = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js": ((exports) => {
|
|
513
513
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
514
|
-
function _export$
|
|
514
|
+
function _export$11(target, all) {
|
|
515
515
|
for (var name in all) Object.defineProperty(target, name, {
|
|
516
516
|
enumerable: true,
|
|
517
517
|
get: all[name]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
_export$
|
|
520
|
+
_export$11(exports, {
|
|
521
521
|
getSortedRouteObjects: function() {
|
|
522
522
|
return getSortedRouteObjects;
|
|
523
523
|
},
|
|
@@ -689,13 +689,13 @@ var require_ensure_leading_slash = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
689
689
|
//#region ../../node_modules/next/dist/shared/lib/segment.js
|
|
690
690
|
var require_segment = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/segment.js": ((exports) => {
|
|
691
691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
692
|
-
function _export$
|
|
692
|
+
function _export$10(target, all) {
|
|
693
693
|
for (var name in all) Object.defineProperty(target, name, {
|
|
694
694
|
enumerable: true,
|
|
695
695
|
get: all[name]
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
_export$
|
|
698
|
+
_export$10(exports, {
|
|
699
699
|
DEFAULT_SEGMENT_KEY: function() {
|
|
700
700
|
return DEFAULT_SEGMENT_KEY;
|
|
701
701
|
},
|
|
@@ -733,13 +733,13 @@ var require_segment = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist
|
|
|
733
733
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/app-paths.js
|
|
734
734
|
var require_app_paths = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/app-paths.js": ((exports) => {
|
|
735
735
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
736
|
-
function _export$
|
|
736
|
+
function _export$9(target, all) {
|
|
737
737
|
for (var name in all) Object.defineProperty(target, name, {
|
|
738
738
|
enumerable: true,
|
|
739
739
|
get: all[name]
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
_export$
|
|
742
|
+
_export$9(exports, {
|
|
743
743
|
normalizeAppPath: function() {
|
|
744
744
|
return normalizeAppPath;
|
|
745
745
|
},
|
|
@@ -767,13 +767,13 @@ var require_app_paths = /* @__PURE__ */ __commonJS({ "../../node_modules/next/di
|
|
|
767
767
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js
|
|
768
768
|
var require_interception_routes = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js": ((exports) => {
|
|
769
769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
770
|
-
function _export$
|
|
770
|
+
function _export$8(target, all) {
|
|
771
771
|
for (var name in all) Object.defineProperty(target, name, {
|
|
772
772
|
enumerable: true,
|
|
773
773
|
get: all[name]
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
_export$
|
|
776
|
+
_export$8(exports, {
|
|
777
777
|
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
778
778
|
return INTERCEPTION_ROUTE_MARKERS;
|
|
779
779
|
},
|
|
@@ -872,13 +872,13 @@ var require_is_dynamic = /* @__PURE__ */ __commonJS({ "../../node_modules/next/d
|
|
|
872
872
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/index.js
|
|
873
873
|
var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/index.js": ((exports) => {
|
|
874
874
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
875
|
-
function _export$
|
|
875
|
+
function _export$7(target, all) {
|
|
876
876
|
for (var name in all) Object.defineProperty(target, name, {
|
|
877
877
|
enumerable: true,
|
|
878
878
|
get: all[name]
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
_export$
|
|
881
|
+
_export$7(exports, {
|
|
882
882
|
getSortedRouteObjects: function() {
|
|
883
883
|
return _sortedroutes.getSortedRouteObjects;
|
|
884
884
|
},
|
|
@@ -893,6 +893,517 @@ var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/s
|
|
|
893
893
|
const _isdynamic = require_is_dynamic();
|
|
894
894
|
}) });
|
|
895
895
|
|
|
896
|
+
//#endregion
|
|
897
|
+
//#region ../../node_modules/next/dist/compiled/path-to-regexp/index.js
|
|
898
|
+
var require_path_to_regexp = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/compiled/path-to-regexp/index.js": ((exports, module) => {
|
|
899
|
+
(() => {
|
|
900
|
+
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
|
|
901
|
+
var e = {};
|
|
902
|
+
(() => {
|
|
903
|
+
var n = e;
|
|
904
|
+
Object.defineProperty(n, "__esModule", { value: true });
|
|
905
|
+
n.pathToRegexp = n.tokensToRegexp = n.regexpToFunction = n.match = n.tokensToFunction = n.compile = n.parse = void 0;
|
|
906
|
+
function lexer(e$1) {
|
|
907
|
+
var n$1 = [];
|
|
908
|
+
var r = 0;
|
|
909
|
+
while (r < e$1.length) {
|
|
910
|
+
var t = e$1[r];
|
|
911
|
+
if (t === "*" || t === "+" || t === "?") {
|
|
912
|
+
n$1.push({
|
|
913
|
+
type: "MODIFIER",
|
|
914
|
+
index: r,
|
|
915
|
+
value: e$1[r++]
|
|
916
|
+
});
|
|
917
|
+
continue;
|
|
918
|
+
}
|
|
919
|
+
if (t === "\\") {
|
|
920
|
+
n$1.push({
|
|
921
|
+
type: "ESCAPED_CHAR",
|
|
922
|
+
index: r++,
|
|
923
|
+
value: e$1[r++]
|
|
924
|
+
});
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
if (t === "{") {
|
|
928
|
+
n$1.push({
|
|
929
|
+
type: "OPEN",
|
|
930
|
+
index: r,
|
|
931
|
+
value: e$1[r++]
|
|
932
|
+
});
|
|
933
|
+
continue;
|
|
934
|
+
}
|
|
935
|
+
if (t === "}") {
|
|
936
|
+
n$1.push({
|
|
937
|
+
type: "CLOSE",
|
|
938
|
+
index: r,
|
|
939
|
+
value: e$1[r++]
|
|
940
|
+
});
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
if (t === ":") {
|
|
944
|
+
var a = "";
|
|
945
|
+
var i = r + 1;
|
|
946
|
+
while (i < e$1.length) {
|
|
947
|
+
var o = e$1.charCodeAt(i);
|
|
948
|
+
if (o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || o === 95) {
|
|
949
|
+
a += e$1[i++];
|
|
950
|
+
continue;
|
|
951
|
+
}
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
if (!a) throw new TypeError("Missing parameter name at ".concat(r));
|
|
955
|
+
n$1.push({
|
|
956
|
+
type: "NAME",
|
|
957
|
+
index: r,
|
|
958
|
+
value: a
|
|
959
|
+
});
|
|
960
|
+
r = i;
|
|
961
|
+
continue;
|
|
962
|
+
}
|
|
963
|
+
if (t === "(") {
|
|
964
|
+
var c = 1;
|
|
965
|
+
var f = "";
|
|
966
|
+
var i = r + 1;
|
|
967
|
+
if (e$1[i] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(i));
|
|
968
|
+
while (i < e$1.length) {
|
|
969
|
+
if (e$1[i] === "\\") {
|
|
970
|
+
f += e$1[i++] + e$1[i++];
|
|
971
|
+
continue;
|
|
972
|
+
}
|
|
973
|
+
if (e$1[i] === ")") {
|
|
974
|
+
c--;
|
|
975
|
+
if (c === 0) {
|
|
976
|
+
i++;
|
|
977
|
+
break;
|
|
978
|
+
}
|
|
979
|
+
} else if (e$1[i] === "(") {
|
|
980
|
+
c++;
|
|
981
|
+
if (e$1[i + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(i));
|
|
982
|
+
}
|
|
983
|
+
f += e$1[i++];
|
|
984
|
+
}
|
|
985
|
+
if (c) throw new TypeError("Unbalanced pattern at ".concat(r));
|
|
986
|
+
if (!f) throw new TypeError("Missing pattern at ".concat(r));
|
|
987
|
+
n$1.push({
|
|
988
|
+
type: "PATTERN",
|
|
989
|
+
index: r,
|
|
990
|
+
value: f
|
|
991
|
+
});
|
|
992
|
+
r = i;
|
|
993
|
+
continue;
|
|
994
|
+
}
|
|
995
|
+
n$1.push({
|
|
996
|
+
type: "CHAR",
|
|
997
|
+
index: r,
|
|
998
|
+
value: e$1[r++]
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
n$1.push({
|
|
1002
|
+
type: "END",
|
|
1003
|
+
index: r,
|
|
1004
|
+
value: ""
|
|
1005
|
+
});
|
|
1006
|
+
return n$1;
|
|
1007
|
+
}
|
|
1008
|
+
function parse(e$1, n$1) {
|
|
1009
|
+
if (n$1 === void 0) n$1 = {};
|
|
1010
|
+
var r = lexer(e$1);
|
|
1011
|
+
var t = n$1.prefixes, a = t === void 0 ? "./" : t, i = n$1.delimiter, o = i === void 0 ? "/#?" : i;
|
|
1012
|
+
var c = [];
|
|
1013
|
+
var f = 0;
|
|
1014
|
+
var u = 0;
|
|
1015
|
+
var p = "";
|
|
1016
|
+
var tryConsume = function(e$2) {
|
|
1017
|
+
if (u < r.length && r[u].type === e$2) return r[u++].value;
|
|
1018
|
+
};
|
|
1019
|
+
var mustConsume = function(e$2) {
|
|
1020
|
+
var n$2 = tryConsume(e$2);
|
|
1021
|
+
if (n$2 !== void 0) return n$2;
|
|
1022
|
+
var t$1 = r[u], a$1 = t$1.type, i$1 = t$1.index;
|
|
1023
|
+
throw new TypeError("Unexpected ".concat(a$1, " at ").concat(i$1, ", expected ").concat(e$2));
|
|
1024
|
+
};
|
|
1025
|
+
var consumeText = function() {
|
|
1026
|
+
var e$2 = "";
|
|
1027
|
+
var n$2;
|
|
1028
|
+
while (n$2 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) e$2 += n$2;
|
|
1029
|
+
return e$2;
|
|
1030
|
+
};
|
|
1031
|
+
var isSafe = function(e$2) {
|
|
1032
|
+
for (var n$2 = 0, r$1 = o; n$2 < r$1.length; n$2++) {
|
|
1033
|
+
var t$1 = r$1[n$2];
|
|
1034
|
+
if (e$2.indexOf(t$1) > -1) return true;
|
|
1035
|
+
}
|
|
1036
|
+
return false;
|
|
1037
|
+
};
|
|
1038
|
+
var safePattern = function(e$2) {
|
|
1039
|
+
var n$2 = c[c.length - 1];
|
|
1040
|
+
var r$1 = e$2 || (n$2 && typeof n$2 === "string" ? n$2 : "");
|
|
1041
|
+
if (n$2 && !r$1) throw new TypeError("Must have text between two parameters, missing text after \"".concat(n$2.name, "\""));
|
|
1042
|
+
if (!r$1 || isSafe(r$1)) return "[^".concat(escapeString(o), "]+?");
|
|
1043
|
+
return "(?:(?!".concat(escapeString(r$1), ")[^").concat(escapeString(o), "])+?");
|
|
1044
|
+
};
|
|
1045
|
+
while (u < r.length) {
|
|
1046
|
+
var v = tryConsume("CHAR");
|
|
1047
|
+
var s = tryConsume("NAME");
|
|
1048
|
+
var d = tryConsume("PATTERN");
|
|
1049
|
+
if (s || d) {
|
|
1050
|
+
var g = v || "";
|
|
1051
|
+
if (a.indexOf(g) === -1) {
|
|
1052
|
+
p += g;
|
|
1053
|
+
g = "";
|
|
1054
|
+
}
|
|
1055
|
+
if (p) {
|
|
1056
|
+
c.push(p);
|
|
1057
|
+
p = "";
|
|
1058
|
+
}
|
|
1059
|
+
c.push({
|
|
1060
|
+
name: s || f++,
|
|
1061
|
+
prefix: g,
|
|
1062
|
+
suffix: "",
|
|
1063
|
+
pattern: d || safePattern(g),
|
|
1064
|
+
modifier: tryConsume("MODIFIER") || ""
|
|
1065
|
+
});
|
|
1066
|
+
continue;
|
|
1067
|
+
}
|
|
1068
|
+
var x = v || tryConsume("ESCAPED_CHAR");
|
|
1069
|
+
if (x) {
|
|
1070
|
+
p += x;
|
|
1071
|
+
continue;
|
|
1072
|
+
}
|
|
1073
|
+
if (p) {
|
|
1074
|
+
c.push(p);
|
|
1075
|
+
p = "";
|
|
1076
|
+
}
|
|
1077
|
+
if (tryConsume("OPEN")) {
|
|
1078
|
+
var g = consumeText();
|
|
1079
|
+
var l = tryConsume("NAME") || "";
|
|
1080
|
+
var m = tryConsume("PATTERN") || "";
|
|
1081
|
+
var T = consumeText();
|
|
1082
|
+
mustConsume("CLOSE");
|
|
1083
|
+
c.push({
|
|
1084
|
+
name: l || (m ? f++ : ""),
|
|
1085
|
+
pattern: l && !m ? safePattern(g) : m,
|
|
1086
|
+
prefix: g,
|
|
1087
|
+
suffix: T,
|
|
1088
|
+
modifier: tryConsume("MODIFIER") || ""
|
|
1089
|
+
});
|
|
1090
|
+
continue;
|
|
1091
|
+
}
|
|
1092
|
+
mustConsume("END");
|
|
1093
|
+
}
|
|
1094
|
+
return c;
|
|
1095
|
+
}
|
|
1096
|
+
n.parse = parse;
|
|
1097
|
+
function compile(e$1, n$1) {
|
|
1098
|
+
return tokensToFunction(parse(e$1, n$1), n$1);
|
|
1099
|
+
}
|
|
1100
|
+
n.compile = compile;
|
|
1101
|
+
function tokensToFunction(e$1, n$1) {
|
|
1102
|
+
if (n$1 === void 0) n$1 = {};
|
|
1103
|
+
var r = flags(n$1);
|
|
1104
|
+
var t = n$1.encode, a = t === void 0 ? function(e$2) {
|
|
1105
|
+
return e$2;
|
|
1106
|
+
} : t, i = n$1.validate, o = i === void 0 ? true : i;
|
|
1107
|
+
var c = e$1.map((function(e$2) {
|
|
1108
|
+
if (typeof e$2 === "object") return new RegExp("^(?:".concat(e$2.pattern, ")$"), r);
|
|
1109
|
+
}));
|
|
1110
|
+
return function(n$2) {
|
|
1111
|
+
var r$1 = "";
|
|
1112
|
+
for (var t$1 = 0; t$1 < e$1.length; t$1++) {
|
|
1113
|
+
var i$1 = e$1[t$1];
|
|
1114
|
+
if (typeof i$1 === "string") {
|
|
1115
|
+
r$1 += i$1;
|
|
1116
|
+
continue;
|
|
1117
|
+
}
|
|
1118
|
+
var f = n$2 ? n$2[i$1.name] : void 0;
|
|
1119
|
+
var u = i$1.modifier === "?" || i$1.modifier === "*";
|
|
1120
|
+
var p = i$1.modifier === "*" || i$1.modifier === "+";
|
|
1121
|
+
if (Array.isArray(f)) {
|
|
1122
|
+
if (!p) throw new TypeError("Expected \"".concat(i$1.name, "\" to not repeat, but got an array"));
|
|
1123
|
+
if (f.length === 0) {
|
|
1124
|
+
if (u) continue;
|
|
1125
|
+
throw new TypeError("Expected \"".concat(i$1.name, "\" to not be empty"));
|
|
1126
|
+
}
|
|
1127
|
+
for (var v = 0; v < f.length; v++) {
|
|
1128
|
+
var s = a(f[v], i$1);
|
|
1129
|
+
if (o && !c[t$1].test(s)) throw new TypeError("Expected all \"".concat(i$1.name, "\" to match \"").concat(i$1.pattern, "\", but got \"").concat(s, "\""));
|
|
1130
|
+
r$1 += i$1.prefix + s + i$1.suffix;
|
|
1131
|
+
}
|
|
1132
|
+
continue;
|
|
1133
|
+
}
|
|
1134
|
+
if (typeof f === "string" || typeof f === "number") {
|
|
1135
|
+
var s = a(String(f), i$1);
|
|
1136
|
+
if (o && !c[t$1].test(s)) throw new TypeError("Expected \"".concat(i$1.name, "\" to match \"").concat(i$1.pattern, "\", but got \"").concat(s, "\""));
|
|
1137
|
+
r$1 += i$1.prefix + s + i$1.suffix;
|
|
1138
|
+
continue;
|
|
1139
|
+
}
|
|
1140
|
+
if (u) continue;
|
|
1141
|
+
var d = p ? "an array" : "a string";
|
|
1142
|
+
throw new TypeError("Expected \"".concat(i$1.name, "\" to be ").concat(d));
|
|
1143
|
+
}
|
|
1144
|
+
return r$1;
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
n.tokensToFunction = tokensToFunction;
|
|
1148
|
+
function match(e$1, n$1) {
|
|
1149
|
+
var r = [];
|
|
1150
|
+
var t = pathToRegexp(e$1, r, n$1);
|
|
1151
|
+
return regexpToFunction(t, r, n$1);
|
|
1152
|
+
}
|
|
1153
|
+
n.match = match;
|
|
1154
|
+
function regexpToFunction(e$1, n$1, r) {
|
|
1155
|
+
if (r === void 0) r = {};
|
|
1156
|
+
var t = r.decode, a = t === void 0 ? function(e$2) {
|
|
1157
|
+
return e$2;
|
|
1158
|
+
} : t;
|
|
1159
|
+
return function(r$1) {
|
|
1160
|
+
var t$1 = e$1.exec(r$1);
|
|
1161
|
+
if (!t$1) return false;
|
|
1162
|
+
var i = t$1[0], o = t$1.index;
|
|
1163
|
+
var c = Object.create(null);
|
|
1164
|
+
var _loop_1 = function(e$2) {
|
|
1165
|
+
if (t$1[e$2] === void 0) return "continue";
|
|
1166
|
+
var r$2 = n$1[e$2 - 1];
|
|
1167
|
+
if (r$2.modifier === "*" || r$2.modifier === "+") c[r$2.name] = t$1[e$2].split(r$2.prefix + r$2.suffix).map((function(e$3) {
|
|
1168
|
+
return a(e$3, r$2);
|
|
1169
|
+
}));
|
|
1170
|
+
else c[r$2.name] = a(t$1[e$2], r$2);
|
|
1171
|
+
};
|
|
1172
|
+
for (var f = 1; f < t$1.length; f++) _loop_1(f);
|
|
1173
|
+
return {
|
|
1174
|
+
path: i,
|
|
1175
|
+
index: o,
|
|
1176
|
+
params: c
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
n.regexpToFunction = regexpToFunction;
|
|
1181
|
+
function escapeString(e$1) {
|
|
1182
|
+
return e$1.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
1183
|
+
}
|
|
1184
|
+
function flags(e$1) {
|
|
1185
|
+
return e$1 && e$1.sensitive ? "" : "i";
|
|
1186
|
+
}
|
|
1187
|
+
function regexpToRegexp(e$1, n$1) {
|
|
1188
|
+
if (!n$1) return e$1;
|
|
1189
|
+
var r = /\((?:\?<(.*?)>)?(?!\?)/g;
|
|
1190
|
+
var t = 0;
|
|
1191
|
+
var a = r.exec(e$1.source);
|
|
1192
|
+
while (a) {
|
|
1193
|
+
n$1.push({
|
|
1194
|
+
name: a[1] || t++,
|
|
1195
|
+
prefix: "",
|
|
1196
|
+
suffix: "",
|
|
1197
|
+
modifier: "",
|
|
1198
|
+
pattern: ""
|
|
1199
|
+
});
|
|
1200
|
+
a = r.exec(e$1.source);
|
|
1201
|
+
}
|
|
1202
|
+
return e$1;
|
|
1203
|
+
}
|
|
1204
|
+
function arrayToRegexp(e$1, n$1, r) {
|
|
1205
|
+
var t = e$1.map((function(e$2) {
|
|
1206
|
+
return pathToRegexp(e$2, n$1, r).source;
|
|
1207
|
+
}));
|
|
1208
|
+
return new RegExp("(?:".concat(t.join("|"), ")"), flags(r));
|
|
1209
|
+
}
|
|
1210
|
+
function stringToRegexp(e$1, n$1, r) {
|
|
1211
|
+
return tokensToRegexp(parse(e$1, r), n$1, r);
|
|
1212
|
+
}
|
|
1213
|
+
function tokensToRegexp(e$1, n$1, r) {
|
|
1214
|
+
if (r === void 0) r = {};
|
|
1215
|
+
var t = r.strict, a = t === void 0 ? false : t, i = r.start, o = i === void 0 ? true : i, c = r.end, f = c === void 0 ? true : c, u = r.encode, p = u === void 0 ? function(e$2) {
|
|
1216
|
+
return e$2;
|
|
1217
|
+
} : u, v = r.delimiter, s = v === void 0 ? "/#?" : v, d = r.endsWith, g = d === void 0 ? "" : d;
|
|
1218
|
+
var x = "[".concat(escapeString(g), "]|$");
|
|
1219
|
+
var h = "[".concat(escapeString(s), "]");
|
|
1220
|
+
var l = o ? "^" : "";
|
|
1221
|
+
for (var m = 0, T = e$1; m < T.length; m++) {
|
|
1222
|
+
var E = T[m];
|
|
1223
|
+
if (typeof E === "string") l += escapeString(p(E));
|
|
1224
|
+
else {
|
|
1225
|
+
var w = escapeString(p(E.prefix));
|
|
1226
|
+
var y = escapeString(p(E.suffix));
|
|
1227
|
+
if (E.pattern) {
|
|
1228
|
+
if (n$1) n$1.push(E);
|
|
1229
|
+
if (w || y) if (E.modifier === "+" || E.modifier === "*") {
|
|
1230
|
+
var R = E.modifier === "*" ? "?" : "";
|
|
1231
|
+
l += "(?:".concat(w, "((?:").concat(E.pattern, ")(?:").concat(y).concat(w, "(?:").concat(E.pattern, "))*)").concat(y, ")").concat(R);
|
|
1232
|
+
} else l += "(?:".concat(w, "(").concat(E.pattern, ")").concat(y, ")").concat(E.modifier);
|
|
1233
|
+
else {
|
|
1234
|
+
if (E.modifier === "+" || E.modifier === "*") throw new TypeError("Can not repeat \"".concat(E.name, "\" without a prefix and suffix"));
|
|
1235
|
+
l += "(".concat(E.pattern, ")").concat(E.modifier);
|
|
1236
|
+
}
|
|
1237
|
+
} else l += "(?:".concat(w).concat(y, ")").concat(E.modifier);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
if (f) {
|
|
1241
|
+
if (!a) l += "".concat(h, "?");
|
|
1242
|
+
l += !r.endsWith ? "$" : "(?=".concat(x, ")");
|
|
1243
|
+
} else {
|
|
1244
|
+
var A = e$1[e$1.length - 1];
|
|
1245
|
+
var _ = typeof A === "string" ? h.indexOf(A[A.length - 1]) > -1 : A === void 0;
|
|
1246
|
+
if (!a) l += "(?:".concat(h, "(?=").concat(x, "))?");
|
|
1247
|
+
if (!_) l += "(?=".concat(h, "|").concat(x, ")");
|
|
1248
|
+
}
|
|
1249
|
+
return new RegExp(l, flags(r));
|
|
1250
|
+
}
|
|
1251
|
+
n.tokensToRegexp = tokensToRegexp;
|
|
1252
|
+
function pathToRegexp(e$1, n$1, r) {
|
|
1253
|
+
if (e$1 instanceof RegExp) return regexpToRegexp(e$1, n$1);
|
|
1254
|
+
if (Array.isArray(e$1)) return arrayToRegexp(e$1, n$1, r);
|
|
1255
|
+
return stringToRegexp(e$1, n$1, r);
|
|
1256
|
+
}
|
|
1257
|
+
n.pathToRegexp = pathToRegexp;
|
|
1258
|
+
})();
|
|
1259
|
+
module.exports = e;
|
|
1260
|
+
})();
|
|
1261
|
+
}) });
|
|
1262
|
+
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region ../../node_modules/next/dist/lib/route-pattern-normalizer.js
|
|
1265
|
+
var require_route_pattern_normalizer = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/lib/route-pattern-normalizer.js": ((exports) => {
|
|
1266
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1267
|
+
function _export$6(target, all) {
|
|
1268
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1269
|
+
enumerable: true,
|
|
1270
|
+
get: all[name]
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
_export$6(exports, {
|
|
1274
|
+
hasAdjacentParameterIssues: function() {
|
|
1275
|
+
return hasAdjacentParameterIssues;
|
|
1276
|
+
},
|
|
1277
|
+
normalizeAdjacentParameters: function() {
|
|
1278
|
+
return normalizeAdjacentParameters;
|
|
1279
|
+
},
|
|
1280
|
+
normalizeTokensForRegexp: function() {
|
|
1281
|
+
return normalizeTokensForRegexp;
|
|
1282
|
+
},
|
|
1283
|
+
stripParameterSeparators: function() {
|
|
1284
|
+
return stripParameterSeparators;
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
/**
|
|
1288
|
+
* Route pattern normalization utilities for path-to-regexp compatibility.
|
|
1289
|
+
*
|
|
1290
|
+
* path-to-regexp 6.3.0+ introduced stricter validation that rejects certain
|
|
1291
|
+
* patterns commonly used in Next.js interception routes. This module provides
|
|
1292
|
+
* normalization functions to make Next.js route patterns compatible with the
|
|
1293
|
+
* updated library while preserving all functionality.
|
|
1294
|
+
*/
|
|
1295
|
+
/**
|
|
1296
|
+
* Internal separator used to normalize adjacent parameter patterns.
|
|
1297
|
+
* This unique marker is inserted between adjacent parameters and stripped out
|
|
1298
|
+
* during parameter extraction to avoid conflicts with real URL content.
|
|
1299
|
+
*/ const PARAM_SEPARATOR = "_NEXTSEP_";
|
|
1300
|
+
function hasAdjacentParameterIssues(route) {
|
|
1301
|
+
if (typeof route !== "string") return false;
|
|
1302
|
+
if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) return true;
|
|
1303
|
+
if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) return true;
|
|
1304
|
+
return false;
|
|
1305
|
+
}
|
|
1306
|
+
function normalizeAdjacentParameters(route) {
|
|
1307
|
+
let normalized = route;
|
|
1308
|
+
normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
|
|
1309
|
+
normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
|
|
1310
|
+
return normalized;
|
|
1311
|
+
}
|
|
1312
|
+
function normalizeTokensForRegexp(tokens) {
|
|
1313
|
+
return tokens.map((token) => {
|
|
1314
|
+
if (typeof token === "object" && token !== null && "modifier" in token && (token.modifier === "*" || token.modifier === "+") && "prefix" in token && "suffix" in token && token.prefix === "" && token.suffix === "") return {
|
|
1315
|
+
...token,
|
|
1316
|
+
prefix: "/"
|
|
1317
|
+
};
|
|
1318
|
+
return token;
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
function stripParameterSeparators(params) {
|
|
1322
|
+
const cleaned = {};
|
|
1323
|
+
for (const [key, value] of Object.entries(params)) if (typeof value === "string") cleaned[key] = value.replace(/* @__PURE__ */ new RegExp(`^${PARAM_SEPARATOR}`), "");
|
|
1324
|
+
else if (Array.isArray(value)) cleaned[key] = value.map((item) => typeof item === "string" ? item.replace(/* @__PURE__ */ new RegExp(`^${PARAM_SEPARATOR}`), "") : item);
|
|
1325
|
+
else cleaned[key] = value;
|
|
1326
|
+
return cleaned;
|
|
1327
|
+
}
|
|
1328
|
+
}) });
|
|
1329
|
+
|
|
1330
|
+
//#endregion
|
|
1331
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/route-match-utils.js
|
|
1332
|
+
var require_route_match_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/route-match-utils.js": ((exports) => {
|
|
1333
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1334
|
+
function _export$5(target, all) {
|
|
1335
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1336
|
+
enumerable: true,
|
|
1337
|
+
get: all[name]
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
_export$5(exports, {
|
|
1341
|
+
safeCompile: function() {
|
|
1342
|
+
return safeCompile;
|
|
1343
|
+
},
|
|
1344
|
+
safePathToRegexp: function() {
|
|
1345
|
+
return safePathToRegexp;
|
|
1346
|
+
},
|
|
1347
|
+
safeRegexpToFunction: function() {
|
|
1348
|
+
return safeRegexpToFunction;
|
|
1349
|
+
},
|
|
1350
|
+
safeRouteMatcher: function() {
|
|
1351
|
+
return safeRouteMatcher;
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
const _pathtoregexp = require_path_to_regexp();
|
|
1355
|
+
const _routepatternnormalizer = require_route_pattern_normalizer();
|
|
1356
|
+
function safePathToRegexp(route, keys, options) {
|
|
1357
|
+
if (typeof route !== "string") return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
|
|
1358
|
+
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
1359
|
+
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
1360
|
+
try {
|
|
1361
|
+
return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
|
|
1362
|
+
} catch (error) {
|
|
1363
|
+
if (!needsNormalization) try {
|
|
1364
|
+
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
1365
|
+
return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
|
|
1366
|
+
} catch (retryError) {
|
|
1367
|
+
throw error;
|
|
1368
|
+
}
|
|
1369
|
+
throw error;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
function safeCompile(route, options) {
|
|
1373
|
+
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
1374
|
+
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
1375
|
+
try {
|
|
1376
|
+
return (0, _pathtoregexp.compile)(routeToUse, options);
|
|
1377
|
+
} catch (error) {
|
|
1378
|
+
if (!needsNormalization) try {
|
|
1379
|
+
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
1380
|
+
return (0, _pathtoregexp.compile)(normalizedRoute, options);
|
|
1381
|
+
} catch (retryError) {
|
|
1382
|
+
throw error;
|
|
1383
|
+
}
|
|
1384
|
+
throw error;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
function safeRegexpToFunction(regexp, keys) {
|
|
1388
|
+
const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
|
|
1389
|
+
return (pathname) => {
|
|
1390
|
+
const result = originalMatcher(pathname);
|
|
1391
|
+
if (!result) return false;
|
|
1392
|
+
return {
|
|
1393
|
+
...result,
|
|
1394
|
+
params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
function safeRouteMatcher(matcherFn) {
|
|
1399
|
+
return (pathname) => {
|
|
1400
|
+
const result = matcherFn(pathname);
|
|
1401
|
+
if (!result) return false;
|
|
1402
|
+
return (0, _routepatternnormalizer.stripParameterSeparators)(result);
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
}) });
|
|
1406
|
+
|
|
896
1407
|
//#endregion
|
|
897
1408
|
//#region ../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js
|
|
898
1409
|
var require_route_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js": ((exports) => {
|
|
@@ -904,9 +1415,10 @@ var require_route_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/nex
|
|
|
904
1415
|
}
|
|
905
1416
|
});
|
|
906
1417
|
const _utils$2 = require_utils$1();
|
|
1418
|
+
const _routematchutils = require_route_match_utils();
|
|
907
1419
|
function getRouteMatcher(param) {
|
|
908
1420
|
let { re, groups } = param;
|
|
909
|
-
|
|
1421
|
+
const rawMatcher = (pathname) => {
|
|
910
1422
|
const routeMatch = re.exec(pathname);
|
|
911
1423
|
if (!routeMatch) return false;
|
|
912
1424
|
const decode = (param$1) => {
|
|
@@ -928,6 +1440,7 @@ var require_route_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/nex
|
|
|
928
1440
|
}
|
|
929
1441
|
return params;
|
|
930
1442
|
};
|
|
1443
|
+
return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
|
|
931
1444
|
}
|
|
932
1445
|
}) });
|
|
933
1446
|
|
|
@@ -935,13 +1448,13 @@ var require_route_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/nex
|
|
|
935
1448
|
//#region ../../node_modules/next/dist/lib/constants.js
|
|
936
1449
|
var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/lib/constants.js": ((exports) => {
|
|
937
1450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
938
|
-
function _export$
|
|
1451
|
+
function _export$4(target, all) {
|
|
939
1452
|
for (var name in all) Object.defineProperty(target, name, {
|
|
940
1453
|
enumerable: true,
|
|
941
1454
|
get: all[name]
|
|
942
1455
|
});
|
|
943
1456
|
}
|
|
944
|
-
_export$
|
|
1457
|
+
_export$4(exports, {
|
|
945
1458
|
ACTION_SUFFIX: function() {
|
|
946
1459
|
return ACTION_SUFFIX;
|
|
947
1460
|
},
|
|
@@ -966,12 +1479,18 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/next/di
|
|
|
966
1479
|
GSSP_NO_RETURNED_VALUE: function() {
|
|
967
1480
|
return GSSP_NO_RETURNED_VALUE;
|
|
968
1481
|
},
|
|
1482
|
+
HTML_CONTENT_TYPE_HEADER: function() {
|
|
1483
|
+
return HTML_CONTENT_TYPE_HEADER;
|
|
1484
|
+
},
|
|
969
1485
|
INFINITE_CACHE: function() {
|
|
970
1486
|
return INFINITE_CACHE;
|
|
971
1487
|
},
|
|
972
1488
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
973
1489
|
return INSTRUMENTATION_HOOK_FILENAME;
|
|
974
1490
|
},
|
|
1491
|
+
JSON_CONTENT_TYPE_HEADER: function() {
|
|
1492
|
+
return JSON_CONTENT_TYPE_HEADER;
|
|
1493
|
+
},
|
|
975
1494
|
MATCHED_PATH_HEADER: function() {
|
|
976
1495
|
return MATCHED_PATH_HEADER;
|
|
977
1496
|
},
|
|
@@ -1053,6 +1572,9 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/next/di
|
|
|
1053
1572
|
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
1054
1573
|
return RSC_CACHE_WRAPPER_ALIAS;
|
|
1055
1574
|
},
|
|
1575
|
+
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
1576
|
+
return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
|
|
1577
|
+
},
|
|
1056
1578
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
1057
1579
|
return RSC_MOD_REF_PROXY_ALIAS;
|
|
1058
1580
|
},
|
|
@@ -1089,6 +1611,9 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/next/di
|
|
|
1089
1611
|
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
1090
1612
|
return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
|
|
1091
1613
|
},
|
|
1614
|
+
TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
|
|
1615
|
+
return TEXT_PLAIN_CONTENT_TYPE_HEADER;
|
|
1616
|
+
},
|
|
1092
1617
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
1093
1618
|
return UNSTABLE_REVALIDATE_RENAME_ERROR;
|
|
1094
1619
|
},
|
|
@@ -1099,6 +1624,9 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/next/di
|
|
|
1099
1624
|
return WEBPACK_RESOURCE_QUERIES;
|
|
1100
1625
|
}
|
|
1101
1626
|
});
|
|
1627
|
+
const TEXT_PLAIN_CONTENT_TYPE_HEADER = "text/plain";
|
|
1628
|
+
const HTML_CONTENT_TYPE_HEADER = "text/html; charset=utf-8";
|
|
1629
|
+
const JSON_CONTENT_TYPE_HEADER = "application/json; charset=utf-8";
|
|
1102
1630
|
const NEXT_QUERY_PARAM_PREFIX = "nxtP";
|
|
1103
1631
|
const NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
|
|
1104
1632
|
const MATCHED_PATH_HEADER = "x-matched-path";
|
|
@@ -1133,6 +1661,7 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/next/di
|
|
|
1133
1661
|
const RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
|
|
1134
1662
|
const RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
|
|
1135
1663
|
const RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
|
|
1664
|
+
const RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = "private-next-rsc-track-dynamic-import";
|
|
1136
1665
|
const RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
|
|
1137
1666
|
const RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
|
|
1138
1667
|
const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`;
|
|
@@ -1233,58 +1762,83 @@ var require_escape_regexp = /* @__PURE__ */ __commonJS({ "../../node_modules/nex
|
|
|
1233
1762
|
}) });
|
|
1234
1763
|
|
|
1235
1764
|
//#endregion
|
|
1236
|
-
//#region ../../node_modules/next/dist/shared/lib/router/utils/
|
|
1237
|
-
var
|
|
1765
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js
|
|
1766
|
+
var require_get_dynamic_param = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js": ((exports) => {
|
|
1238
1767
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1239
|
-
function _export$
|
|
1768
|
+
function _export$3(target, all) {
|
|
1240
1769
|
for (var name in all) Object.defineProperty(target, name, {
|
|
1241
1770
|
enumerable: true,
|
|
1242
1771
|
get: all[name]
|
|
1243
1772
|
});
|
|
1244
1773
|
}
|
|
1245
|
-
_export$
|
|
1246
|
-
|
|
1247
|
-
return
|
|
1774
|
+
_export$3(exports, {
|
|
1775
|
+
PARAMETER_PATTERN: function() {
|
|
1776
|
+
return PARAMETER_PATTERN;
|
|
1248
1777
|
},
|
|
1249
|
-
|
|
1250
|
-
return
|
|
1778
|
+
getDynamicParam: function() {
|
|
1779
|
+
return getDynamicParam;
|
|
1251
1780
|
},
|
|
1252
|
-
|
|
1253
|
-
return
|
|
1781
|
+
parseMatchedParameter: function() {
|
|
1782
|
+
return parseMatchedParameter;
|
|
1254
1783
|
},
|
|
1255
1784
|
parseParameter: function() {
|
|
1256
1785
|
return parseParameter;
|
|
1257
1786
|
}
|
|
1258
1787
|
});
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1788
|
+
function getDynamicParam(params, segmentKey, dynamicParamType, pagePath, fallbackRouteParams) {
|
|
1789
|
+
let value = params[segmentKey];
|
|
1790
|
+
if (fallbackRouteParams && fallbackRouteParams.has(segmentKey)) value = fallbackRouteParams.get(segmentKey);
|
|
1791
|
+
else if (Array.isArray(value)) value = value.map((i) => encodeURIComponent(i));
|
|
1792
|
+
else if (typeof value === "string") value = encodeURIComponent(value);
|
|
1793
|
+
if (!value) {
|
|
1794
|
+
const isCatchall = dynamicParamType === "c";
|
|
1795
|
+
const isOptionalCatchall = dynamicParamType === "oc";
|
|
1796
|
+
if (isCatchall || isOptionalCatchall) {
|
|
1797
|
+
if (isOptionalCatchall) return {
|
|
1798
|
+
param: segmentKey,
|
|
1799
|
+
value: null,
|
|
1800
|
+
type: dynamicParamType,
|
|
1801
|
+
treeSegment: [
|
|
1802
|
+
segmentKey,
|
|
1803
|
+
"",
|
|
1804
|
+
dynamicParamType
|
|
1805
|
+
]
|
|
1806
|
+
};
|
|
1807
|
+
value = pagePath.split("/").slice(1).flatMap((pathSegment) => {
|
|
1808
|
+
const param = parseParameter(pathSegment);
|
|
1809
|
+
var _params_param_key;
|
|
1810
|
+
return (_params_param_key = params[param.key]) != null ? _params_param_key : param.key;
|
|
1811
|
+
});
|
|
1812
|
+
return {
|
|
1813
|
+
param: segmentKey,
|
|
1814
|
+
value,
|
|
1815
|
+
type: dynamicParamType,
|
|
1816
|
+
treeSegment: [
|
|
1817
|
+
segmentKey,
|
|
1818
|
+
value.join("/"),
|
|
1819
|
+
dynamicParamType
|
|
1820
|
+
]
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
return {
|
|
1825
|
+
param: segmentKey,
|
|
1826
|
+
value,
|
|
1827
|
+
treeSegment: [
|
|
1828
|
+
segmentKey,
|
|
1829
|
+
Array.isArray(value) ? value.join("/") : value,
|
|
1830
|
+
dynamicParamType
|
|
1831
|
+
],
|
|
1832
|
+
type: dynamicParamType
|
|
1833
|
+
};
|
|
1834
|
+
}
|
|
1835
|
+
const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
1272
1836
|
function parseParameter(param) {
|
|
1273
1837
|
const match = param.match(PARAMETER_PATTERN);
|
|
1274
1838
|
if (!match) return parseMatchedParameter(param);
|
|
1275
1839
|
return parseMatchedParameter(match[2]);
|
|
1276
1840
|
}
|
|
1277
|
-
|
|
1278
|
-
* Parses a matched parameter from the PARAMETER_PATTERN regex to a data structure that can be used
|
|
1279
|
-
* to generate the parametrized route.
|
|
1280
|
-
* Examples:
|
|
1281
|
-
* - `[...slug]` -> `{ key: 'slug', repeat: true, optional: true }`
|
|
1282
|
-
* - `...slug` -> `{ key: 'slug', repeat: true, optional: false }`
|
|
1283
|
-
* - `[foo]` -> `{ key: 'foo', repeat: false, optional: true }`
|
|
1284
|
-
* - `bar` -> `{ key: 'bar', repeat: false, optional: false }`
|
|
1285
|
-
* @param param - The matched parameter to parse.
|
|
1286
|
-
* @returns The parsed parameter as a data structure.
|
|
1287
|
-
*/ function parseMatchedParameter(param) {
|
|
1841
|
+
function parseMatchedParameter(param) {
|
|
1288
1842
|
const optional = param.startsWith("[") && param.endsWith("]");
|
|
1289
1843
|
if (optional) param = param.slice(1, -1);
|
|
1290
1844
|
const repeat = param.startsWith("...");
|
|
@@ -1295,15 +1849,43 @@ var require_route_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/next/
|
|
|
1295
1849
|
optional
|
|
1296
1850
|
};
|
|
1297
1851
|
}
|
|
1852
|
+
}) });
|
|
1853
|
+
|
|
1854
|
+
//#endregion
|
|
1855
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/route-regex.js
|
|
1856
|
+
var require_route_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/route-regex.js": ((exports) => {
|
|
1857
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1858
|
+
function _export$2(target, all) {
|
|
1859
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1860
|
+
enumerable: true,
|
|
1861
|
+
get: all[name]
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
_export$2(exports, {
|
|
1865
|
+
getNamedMiddlewareRegex: function() {
|
|
1866
|
+
return getNamedMiddlewareRegex;
|
|
1867
|
+
},
|
|
1868
|
+
getNamedRouteRegex: function() {
|
|
1869
|
+
return getNamedRouteRegex;
|
|
1870
|
+
},
|
|
1871
|
+
getRouteRegex: function() {
|
|
1872
|
+
return getRouteRegex;
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
const _constants = require_constants();
|
|
1876
|
+
const _interceptionroutes = require_interception_routes();
|
|
1877
|
+
const _escaperegexp = require_escape_regexp();
|
|
1878
|
+
const _removetrailingslash = require_remove_trailing_slash();
|
|
1879
|
+
const _getdynamicparam = require_get_dynamic_param();
|
|
1298
1880
|
function getParametrizedRoute(route, includeSuffix, includePrefix) {
|
|
1299
1881
|
const groups = {};
|
|
1300
1882
|
let groupIndex = 1;
|
|
1301
1883
|
const segments = [];
|
|
1302
1884
|
for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
1303
1885
|
const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
|
|
1304
|
-
const paramMatches = segment.match(PARAMETER_PATTERN);
|
|
1886
|
+
const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
|
|
1305
1887
|
if (markerMatch && paramMatches && paramMatches[2]) {
|
|
1306
|
-
const { key, optional, repeat } = parseMatchedParameter(paramMatches[2]);
|
|
1888
|
+
const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
|
|
1307
1889
|
groups[key] = {
|
|
1308
1890
|
pos: groupIndex++,
|
|
1309
1891
|
repeat,
|
|
@@ -1311,7 +1893,7 @@ var require_route_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/next/
|
|
|
1311
1893
|
};
|
|
1312
1894
|
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(markerMatch) + "([^/]+?)");
|
|
1313
1895
|
} else if (paramMatches && paramMatches[2]) {
|
|
1314
|
-
const { key, repeat, optional } = parseMatchedParameter(paramMatches[2]);
|
|
1896
|
+
const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
|
|
1315
1897
|
groups[key] = {
|
|
1316
1898
|
pos: groupIndex++,
|
|
1317
1899
|
repeat,
|
|
@@ -1356,7 +1938,7 @@ var require_route_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/next/
|
|
|
1356
1938
|
}
|
|
1357
1939
|
function getSafeKeyFromSegment(param) {
|
|
1358
1940
|
let { interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys } = param;
|
|
1359
|
-
const { key, optional, repeat } = parseMatchedParameter(segment);
|
|
1941
|
+
const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
|
|
1360
1942
|
let cleanedKey = key.replace(/\W/g, "");
|
|
1361
1943
|
if (keyPrefix) cleanedKey = "" + keyPrefix + cleanedKey;
|
|
1362
1944
|
let invalidKey = false;
|
|
@@ -1379,7 +1961,7 @@ var require_route_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/next/
|
|
|
1379
1961
|
const segments = [];
|
|
1380
1962
|
for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
1381
1963
|
const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
|
|
1382
|
-
const paramMatches = segment.match(PARAMETER_PATTERN);
|
|
1964
|
+
const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
|
|
1383
1965
|
if (hasInterceptionMarker && paramMatches && paramMatches[2]) segments.push(getSafeKeyFromSegment({
|
|
1384
1966
|
getSafeRouteKey,
|
|
1385
1967
|
interceptionMarker: paramMatches[1],
|
|
@@ -1438,13 +2020,13 @@ var require_interpolate_as = /* @__PURE__ */ __commonJS({ "../../node_modules/ne
|
|
|
1438
2020
|
return interpolateAs;
|
|
1439
2021
|
}
|
|
1440
2022
|
});
|
|
1441
|
-
const _routematcher = require_route_matcher();
|
|
1442
|
-
const _routeregex = require_route_regex();
|
|
2023
|
+
const _routematcher$1 = require_route_matcher();
|
|
2024
|
+
const _routeregex$1 = require_route_regex();
|
|
1443
2025
|
function interpolateAs(route, asPathname, query) {
|
|
1444
2026
|
let interpolatedRoute = "";
|
|
1445
|
-
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
|
2027
|
+
const dynamicRegex = (0, _routeregex$1.getRouteRegex)(route);
|
|
1446
2028
|
const dynamicGroups = dynamicRegex.groups;
|
|
1447
|
-
const dynamicMatches = (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || query;
|
|
2029
|
+
const dynamicMatches = (asPathname !== route ? (0, _routematcher$1.getRouteMatcher)(dynamicRegex)(asPathname) : "") || query;
|
|
1448
2030
|
interpolatedRoute = route;
|
|
1449
2031
|
const params = Object.keys(dynamicGroups);
|
|
1450
2032
|
if (!params.every((param) => {
|
|
@@ -1480,10 +2062,12 @@ var require_resolve_href = /* @__PURE__ */ __commonJS({ "../../node_modules/next
|
|
|
1480
2062
|
const _islocalurl$1 = require_is_local_url();
|
|
1481
2063
|
const _utils1 = require_utils();
|
|
1482
2064
|
const _interpolateas = require_interpolate_as();
|
|
2065
|
+
const _routeregex = require_route_regex();
|
|
2066
|
+
const _routematcher = require_route_matcher();
|
|
1483
2067
|
function resolveHref(router, href, resolveAs) {
|
|
1484
2068
|
let base;
|
|
1485
2069
|
let urlAsString = typeof href === "string" ? href : (0, _formaturl$1.formatWithValidation)(href);
|
|
1486
|
-
const urlProtoMatch = urlAsString.match(/^[a-
|
|
2070
|
+
const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
|
|
1487
2071
|
const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
|
|
1488
2072
|
if ((urlAsStringNoProto.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
1489
2073
|
console.error("Invalid href '" + urlAsString + "' passed to next/router in page: '" + router.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
@@ -1492,7 +2076,16 @@ var require_resolve_href = /* @__PURE__ */ __commonJS({ "../../node_modules/next
|
|
|
1492
2076
|
}
|
|
1493
2077
|
if (!(0, _islocalurl$1.isLocalURL)(urlAsString)) return resolveAs ? [urlAsString] : urlAsString;
|
|
1494
2078
|
try {
|
|
1495
|
-
|
|
2079
|
+
let baseBase = urlAsString.startsWith("#") ? router.asPath : router.pathname;
|
|
2080
|
+
if (urlAsString.startsWith("?")) {
|
|
2081
|
+
baseBase = router.asPath;
|
|
2082
|
+
if ((0, _utils1.isDynamicRoute)(router.pathname)) {
|
|
2083
|
+
baseBase = router.pathname;
|
|
2084
|
+
const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
|
|
2085
|
+
if (!(0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath)) baseBase = router.asPath;
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
base = new URL(baseBase, "http://n");
|
|
1496
2089
|
} catch (_) {
|
|
1497
2090
|
base = new URL("/", "http://n");
|
|
1498
2091
|
}
|
|
@@ -2126,12 +2719,18 @@ var require_link$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/next/dist/
|
|
|
2126
2719
|
expected: "`function`",
|
|
2127
2720
|
actual: valType
|
|
2128
2721
|
});
|
|
2129
|
-
} else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "
|
|
2722
|
+
} else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
|
|
2130
2723
|
if (props[key] != null && valType !== "boolean") throw createPropError({
|
|
2131
2724
|
key,
|
|
2132
2725
|
expected: "`boolean`",
|
|
2133
2726
|
actual: valType
|
|
2134
2727
|
});
|
|
2728
|
+
} else if (key === "prefetch") {
|
|
2729
|
+
if (props[key] != null && valType !== "boolean" && props[key] !== "auto") throw createPropError({
|
|
2730
|
+
key,
|
|
2731
|
+
expected: "`boolean | \"auto\"`",
|
|
2732
|
+
actual: valType
|
|
2733
|
+
});
|
|
2135
2734
|
}
|
|
2136
2735
|
});
|
|
2137
2736
|
}
|
|
@@ -2298,4 +2897,4 @@ var internal_link_default = InternalLink;
|
|
|
2298
2897
|
|
|
2299
2898
|
//#endregion
|
|
2300
2899
|
export { internal_link_default };
|
|
2301
|
-
//# sourceMappingURL=internal-link-
|
|
2900
|
+
//# sourceMappingURL=internal-link-JeC0sVNF.mjs.map
|