next-tinacms-azure 0.0.0-fd664d8-20250407054012 → 0.0.0-fd7d6a8-20251202025028
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/dist/auth.js +203 -214
- package/dist/delivery-handlers.js +127 -137
- package/dist/handlers.js +126 -139
- package/dist/index.js +138 -141
- package/package.json +6 -6
- package/dist/index.mjs +0 -146
|
@@ -7,10 +7,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
9
|
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
10
|
var __copyProps = (to, from, except, desc) => {
|
|
15
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -27,16 +23,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
23
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
24
|
mod
|
|
29
25
|
));
|
|
30
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
26
|
|
|
32
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
27
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
33
28
|
var require_detect_domain_locale = __commonJS({
|
|
34
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
29
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports) {
|
|
35
30
|
"use strict";
|
|
36
|
-
Object.defineProperty(
|
|
31
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37
32
|
value: true
|
|
38
33
|
});
|
|
39
|
-
Object.defineProperty(
|
|
34
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
40
35
|
enumerable: true,
|
|
41
36
|
get: function() {
|
|
42
37
|
return detectDomainLocale;
|
|
@@ -58,14 +53,14 @@ var require_detect_domain_locale = __commonJS({
|
|
|
58
53
|
}
|
|
59
54
|
});
|
|
60
55
|
|
|
61
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
56
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
62
57
|
var require_remove_trailing_slash = __commonJS({
|
|
63
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
58
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports) {
|
|
64
59
|
"use strict";
|
|
65
|
-
Object.defineProperty(
|
|
60
|
+
Object.defineProperty(exports, "__esModule", {
|
|
66
61
|
value: true
|
|
67
62
|
});
|
|
68
|
-
Object.defineProperty(
|
|
63
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
69
64
|
enumerable: true,
|
|
70
65
|
get: function() {
|
|
71
66
|
return removeTrailingSlash;
|
|
@@ -77,14 +72,14 @@ var require_remove_trailing_slash = __commonJS({
|
|
|
77
72
|
}
|
|
78
73
|
});
|
|
79
74
|
|
|
80
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
75
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
81
76
|
var require_parse_path = __commonJS({
|
|
82
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
77
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports) {
|
|
83
78
|
"use strict";
|
|
84
|
-
Object.defineProperty(
|
|
79
|
+
Object.defineProperty(exports, "__esModule", {
|
|
85
80
|
value: true
|
|
86
81
|
});
|
|
87
|
-
Object.defineProperty(
|
|
82
|
+
Object.defineProperty(exports, "parsePath", {
|
|
88
83
|
enumerable: true,
|
|
89
84
|
get: function() {
|
|
90
85
|
return parsePath;
|
|
@@ -110,14 +105,14 @@ var require_parse_path = __commonJS({
|
|
|
110
105
|
}
|
|
111
106
|
});
|
|
112
107
|
|
|
113
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
108
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
|
|
114
109
|
var require_add_path_prefix = __commonJS({
|
|
115
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
110
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports) {
|
|
116
111
|
"use strict";
|
|
117
|
-
Object.defineProperty(
|
|
112
|
+
Object.defineProperty(exports, "__esModule", {
|
|
118
113
|
value: true
|
|
119
114
|
});
|
|
120
|
-
Object.defineProperty(
|
|
115
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
121
116
|
enumerable: true,
|
|
122
117
|
get: function() {
|
|
123
118
|
return addPathPrefix;
|
|
@@ -134,14 +129,14 @@ var require_add_path_prefix = __commonJS({
|
|
|
134
129
|
}
|
|
135
130
|
});
|
|
136
131
|
|
|
137
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
132
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js
|
|
138
133
|
var require_add_path_suffix = __commonJS({
|
|
139
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
134
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js"(exports) {
|
|
140
135
|
"use strict";
|
|
141
|
-
Object.defineProperty(
|
|
136
|
+
Object.defineProperty(exports, "__esModule", {
|
|
142
137
|
value: true
|
|
143
138
|
});
|
|
144
|
-
Object.defineProperty(
|
|
139
|
+
Object.defineProperty(exports, "addPathSuffix", {
|
|
145
140
|
enumerable: true,
|
|
146
141
|
get: function() {
|
|
147
142
|
return addPathSuffix;
|
|
@@ -158,14 +153,14 @@ var require_add_path_suffix = __commonJS({
|
|
|
158
153
|
}
|
|
159
154
|
});
|
|
160
155
|
|
|
161
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
156
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
162
157
|
var require_path_has_prefix = __commonJS({
|
|
163
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
158
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports) {
|
|
164
159
|
"use strict";
|
|
165
|
-
Object.defineProperty(
|
|
160
|
+
Object.defineProperty(exports, "__esModule", {
|
|
166
161
|
value: true
|
|
167
162
|
});
|
|
168
|
-
Object.defineProperty(
|
|
163
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
169
164
|
enumerable: true,
|
|
170
165
|
get: function() {
|
|
171
166
|
return pathHasPrefix;
|
|
@@ -182,14 +177,14 @@ var require_path_has_prefix = __commonJS({
|
|
|
182
177
|
}
|
|
183
178
|
});
|
|
184
179
|
|
|
185
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
180
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
186
181
|
var require_add_locale = __commonJS({
|
|
187
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
182
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports) {
|
|
188
183
|
"use strict";
|
|
189
|
-
Object.defineProperty(
|
|
184
|
+
Object.defineProperty(exports, "__esModule", {
|
|
190
185
|
value: true
|
|
191
186
|
});
|
|
192
|
-
Object.defineProperty(
|
|
187
|
+
Object.defineProperty(exports, "addLocale", {
|
|
193
188
|
enumerable: true,
|
|
194
189
|
get: function() {
|
|
195
190
|
return addLocale;
|
|
@@ -209,14 +204,14 @@ var require_add_locale = __commonJS({
|
|
|
209
204
|
}
|
|
210
205
|
});
|
|
211
206
|
|
|
212
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
207
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js
|
|
213
208
|
var require_format_next_pathname_info = __commonJS({
|
|
214
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
209
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"(exports) {
|
|
215
210
|
"use strict";
|
|
216
|
-
Object.defineProperty(
|
|
211
|
+
Object.defineProperty(exports, "__esModule", {
|
|
217
212
|
value: true
|
|
218
213
|
});
|
|
219
|
-
Object.defineProperty(
|
|
214
|
+
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
|
220
215
|
enumerable: true,
|
|
221
216
|
get: function() {
|
|
222
217
|
return formatNextPathnameInfo;
|
|
@@ -240,14 +235,14 @@ var require_format_next_pathname_info = __commonJS({
|
|
|
240
235
|
}
|
|
241
236
|
});
|
|
242
237
|
|
|
243
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
238
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/get-hostname.js
|
|
244
239
|
var require_get_hostname = __commonJS({
|
|
245
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
240
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/get-hostname.js"(exports) {
|
|
246
241
|
"use strict";
|
|
247
|
-
Object.defineProperty(
|
|
242
|
+
Object.defineProperty(exports, "__esModule", {
|
|
248
243
|
value: true
|
|
249
244
|
});
|
|
250
|
-
Object.defineProperty(
|
|
245
|
+
Object.defineProperty(exports, "getHostname", {
|
|
251
246
|
enumerable: true,
|
|
252
247
|
get: function() {
|
|
253
248
|
return getHostname;
|
|
@@ -265,14 +260,14 @@ var require_get_hostname = __commonJS({
|
|
|
265
260
|
}
|
|
266
261
|
});
|
|
267
262
|
|
|
268
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
263
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
269
264
|
var require_normalize_locale_path = __commonJS({
|
|
270
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
265
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports) {
|
|
271
266
|
"use strict";
|
|
272
|
-
Object.defineProperty(
|
|
267
|
+
Object.defineProperty(exports, "__esModule", {
|
|
273
268
|
value: true
|
|
274
269
|
});
|
|
275
|
-
Object.defineProperty(
|
|
270
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
276
271
|
enumerable: true,
|
|
277
272
|
get: function() {
|
|
278
273
|
return normalizeLocalePath;
|
|
@@ -298,14 +293,14 @@ var require_normalize_locale_path = __commonJS({
|
|
|
298
293
|
}
|
|
299
294
|
});
|
|
300
295
|
|
|
301
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
296
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js
|
|
302
297
|
var require_remove_path_prefix = __commonJS({
|
|
303
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
298
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"(exports) {
|
|
304
299
|
"use strict";
|
|
305
|
-
Object.defineProperty(
|
|
300
|
+
Object.defineProperty(exports, "__esModule", {
|
|
306
301
|
value: true
|
|
307
302
|
});
|
|
308
|
-
Object.defineProperty(
|
|
303
|
+
Object.defineProperty(exports, "removePathPrefix", {
|
|
309
304
|
enumerable: true,
|
|
310
305
|
get: function() {
|
|
311
306
|
return removePathPrefix;
|
|
@@ -325,14 +320,14 @@ var require_remove_path_prefix = __commonJS({
|
|
|
325
320
|
}
|
|
326
321
|
});
|
|
327
322
|
|
|
328
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
323
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js
|
|
329
324
|
var require_get_next_pathname_info = __commonJS({
|
|
330
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
325
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"(exports) {
|
|
331
326
|
"use strict";
|
|
332
|
-
Object.defineProperty(
|
|
327
|
+
Object.defineProperty(exports, "__esModule", {
|
|
333
328
|
value: true
|
|
334
329
|
});
|
|
335
|
-
Object.defineProperty(
|
|
330
|
+
Object.defineProperty(exports, "getNextPathnameInfo", {
|
|
336
331
|
enumerable: true,
|
|
337
332
|
get: function() {
|
|
338
333
|
return getNextPathnameInfo;
|
|
@@ -379,14 +374,14 @@ var require_get_next_pathname_info = __commonJS({
|
|
|
379
374
|
}
|
|
380
375
|
});
|
|
381
376
|
|
|
382
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
377
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/next-url.js
|
|
383
378
|
var require_next_url = __commonJS({
|
|
384
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
379
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/next-url.js"(exports) {
|
|
385
380
|
"use strict";
|
|
386
|
-
Object.defineProperty(
|
|
381
|
+
Object.defineProperty(exports, "__esModule", {
|
|
387
382
|
value: true
|
|
388
383
|
});
|
|
389
|
-
Object.defineProperty(
|
|
384
|
+
Object.defineProperty(exports, "NextURL", {
|
|
390
385
|
enumerable: true,
|
|
391
386
|
get: function() {
|
|
392
387
|
return NextURL;
|
|
@@ -412,14 +407,13 @@ var require_next_url = __commonJS({
|
|
|
412
407
|
options = opts || baseOrOpts || {};
|
|
413
408
|
}
|
|
414
409
|
this[Internal] = {
|
|
415
|
-
url: parseURL(input, base
|
|
410
|
+
url: parseURL(input, base ?? options.base),
|
|
416
411
|
options,
|
|
417
412
|
basePath: ""
|
|
418
413
|
};
|
|
419
414
|
this.analyze();
|
|
420
415
|
}
|
|
421
416
|
analyze() {
|
|
422
|
-
var _a, _b;
|
|
423
417
|
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig, _this_Internal_domainLocale, _this_Internal_options_nextConfig_i18n1, _this_Internal_options_nextConfig1;
|
|
424
418
|
const info = (0, _getnextpathnameinfo.getNextPathnameInfo)(this[Internal].url.pathname, {
|
|
425
419
|
nextConfig: this[Internal].options.nextConfig,
|
|
@@ -431,9 +425,9 @@ var require_next_url = __commonJS({
|
|
|
431
425
|
const defaultLocale = ((_this_Internal_domainLocale = this[Internal].domainLocale) == null ? void 0 : _this_Internal_domainLocale.defaultLocale) || ((_this_Internal_options_nextConfig1 = this[Internal].options.nextConfig) == null ? void 0 : (_this_Internal_options_nextConfig_i18n1 = _this_Internal_options_nextConfig1.i18n) == null ? void 0 : _this_Internal_options_nextConfig_i18n1.defaultLocale);
|
|
432
426
|
this[Internal].url.pathname = info.pathname;
|
|
433
427
|
this[Internal].defaultLocale = defaultLocale;
|
|
434
|
-
this[Internal].basePath =
|
|
428
|
+
this[Internal].basePath = info.basePath ?? "";
|
|
435
429
|
this[Internal].buildId = info.buildId;
|
|
436
|
-
this[Internal].locale =
|
|
430
|
+
this[Internal].locale = info.locale ?? defaultLocale;
|
|
437
431
|
this[Internal].trailingSlash = info.trailingSlash;
|
|
438
432
|
}
|
|
439
433
|
formatPathname() {
|
|
@@ -456,8 +450,7 @@ var require_next_url = __commonJS({
|
|
|
456
450
|
this[Internal].buildId = buildId;
|
|
457
451
|
}
|
|
458
452
|
get locale() {
|
|
459
|
-
|
|
460
|
-
return (_a = this[Internal].locale) != null ? _a : "";
|
|
453
|
+
return this[Internal].locale ?? "";
|
|
461
454
|
}
|
|
462
455
|
set locale(locale) {
|
|
463
456
|
var _this_Internal_options_nextConfig_i18n, _this_Internal_options_nextConfig;
|
|
@@ -576,11 +569,11 @@ var require_next_url = __commonJS({
|
|
|
576
569
|
}
|
|
577
570
|
});
|
|
578
571
|
|
|
579
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
572
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/utils.js
|
|
580
573
|
var require_utils = __commonJS({
|
|
581
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
574
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/utils.js"(exports) {
|
|
582
575
|
"use strict";
|
|
583
|
-
Object.defineProperty(
|
|
576
|
+
Object.defineProperty(exports, "__esModule", {
|
|
584
577
|
value: true
|
|
585
578
|
});
|
|
586
579
|
function _export(target, all) {
|
|
@@ -589,7 +582,7 @@ var require_utils = __commonJS({
|
|
|
589
582
|
get: all[name]
|
|
590
583
|
});
|
|
591
584
|
}
|
|
592
|
-
_export(
|
|
585
|
+
_export(exports, {
|
|
593
586
|
fromNodeOutgoingHttpHeaders: function() {
|
|
594
587
|
return fromNodeOutgoingHttpHeaders;
|
|
595
588
|
},
|
|
@@ -695,11 +688,11 @@ var require_utils = __commonJS({
|
|
|
695
688
|
}
|
|
696
689
|
});
|
|
697
690
|
|
|
698
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
691
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/error.js
|
|
699
692
|
var require_error = __commonJS({
|
|
700
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
693
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/error.js"(exports) {
|
|
701
694
|
"use strict";
|
|
702
|
-
Object.defineProperty(
|
|
695
|
+
Object.defineProperty(exports, "__esModule", {
|
|
703
696
|
value: true
|
|
704
697
|
});
|
|
705
698
|
function _export(target, all) {
|
|
@@ -708,7 +701,7 @@ var require_error = __commonJS({
|
|
|
708
701
|
get: all[name]
|
|
709
702
|
});
|
|
710
703
|
}
|
|
711
|
-
_export(
|
|
704
|
+
_export(exports, {
|
|
712
705
|
PageSignatureError: function() {
|
|
713
706
|
return PageSignatureError;
|
|
714
707
|
},
|
|
@@ -748,15 +741,15 @@ var require_error = __commonJS({
|
|
|
748
741
|
}
|
|
749
742
|
});
|
|
750
743
|
|
|
751
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
744
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
752
745
|
var require_cookies = __commonJS({
|
|
753
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
746
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
|
|
754
747
|
"use strict";
|
|
755
748
|
var __defProp2 = Object.defineProperty;
|
|
756
749
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
757
750
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
758
751
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
759
|
-
var
|
|
752
|
+
var __export = (target, all) => {
|
|
760
753
|
for (var name in all)
|
|
761
754
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
762
755
|
};
|
|
@@ -768,16 +761,16 @@ var require_cookies = __commonJS({
|
|
|
768
761
|
}
|
|
769
762
|
return to;
|
|
770
763
|
};
|
|
771
|
-
var
|
|
764
|
+
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
772
765
|
var src_exports = {};
|
|
773
|
-
|
|
766
|
+
__export(src_exports, {
|
|
774
767
|
RequestCookies: () => RequestCookies,
|
|
775
768
|
ResponseCookies: () => ResponseCookies,
|
|
776
769
|
parseCookie: () => parseCookie,
|
|
777
770
|
parseSetCookie: () => parseSetCookie,
|
|
778
771
|
stringifyCookie: () => stringifyCookie
|
|
779
772
|
});
|
|
780
|
-
|
|
773
|
+
module.exports = __toCommonJS(src_exports);
|
|
781
774
|
function stringifyCookie(c) {
|
|
782
775
|
var _a;
|
|
783
776
|
const attrs = [
|
|
@@ -1072,11 +1065,11 @@ var require_cookies = __commonJS({
|
|
|
1072
1065
|
}
|
|
1073
1066
|
});
|
|
1074
1067
|
|
|
1075
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1068
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
1076
1069
|
var require_cookies2 = __commonJS({
|
|
1077
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1070
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
|
|
1078
1071
|
"use strict";
|
|
1079
|
-
Object.defineProperty(
|
|
1072
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1080
1073
|
value: true
|
|
1081
1074
|
});
|
|
1082
1075
|
function _export(target, all) {
|
|
@@ -1085,7 +1078,7 @@ var require_cookies2 = __commonJS({
|
|
|
1085
1078
|
get: all[name]
|
|
1086
1079
|
});
|
|
1087
1080
|
}
|
|
1088
|
-
_export(
|
|
1081
|
+
_export(exports, {
|
|
1089
1082
|
RequestCookies: function() {
|
|
1090
1083
|
return _cookies.RequestCookies;
|
|
1091
1084
|
},
|
|
@@ -1100,11 +1093,11 @@ var require_cookies2 = __commonJS({
|
|
|
1100
1093
|
}
|
|
1101
1094
|
});
|
|
1102
1095
|
|
|
1103
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1096
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/request.js
|
|
1104
1097
|
var require_request = __commonJS({
|
|
1105
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1098
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/request.js"(exports) {
|
|
1106
1099
|
"use strict";
|
|
1107
|
-
Object.defineProperty(
|
|
1100
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1108
1101
|
value: true
|
|
1109
1102
|
});
|
|
1110
1103
|
function _export(target, all) {
|
|
@@ -1113,7 +1106,7 @@ var require_request = __commonJS({
|
|
|
1113
1106
|
get: all[name]
|
|
1114
1107
|
});
|
|
1115
1108
|
}
|
|
1116
|
-
_export(
|
|
1109
|
+
_export(exports, {
|
|
1117
1110
|
INTERNALS: function() {
|
|
1118
1111
|
return INTERNALS;
|
|
1119
1112
|
},
|
|
@@ -1202,14 +1195,14 @@ var require_request = __commonJS({
|
|
|
1202
1195
|
}
|
|
1203
1196
|
});
|
|
1204
1197
|
|
|
1205
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1198
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
|
|
1206
1199
|
var require_reflect = __commonJS({
|
|
1207
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1200
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
|
|
1208
1201
|
"use strict";
|
|
1209
|
-
Object.defineProperty(
|
|
1202
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1210
1203
|
value: true
|
|
1211
1204
|
});
|
|
1212
|
-
Object.defineProperty(
|
|
1205
|
+
Object.defineProperty(exports, "ReflectAdapter", {
|
|
1213
1206
|
enumerable: true,
|
|
1214
1207
|
get: function() {
|
|
1215
1208
|
return ReflectAdapter;
|
|
@@ -1236,14 +1229,14 @@ var require_reflect = __commonJS({
|
|
|
1236
1229
|
}
|
|
1237
1230
|
});
|
|
1238
1231
|
|
|
1239
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1232
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/response.js
|
|
1240
1233
|
var require_response = __commonJS({
|
|
1241
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1234
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/response.js"(exports) {
|
|
1242
1235
|
"use strict";
|
|
1243
|
-
Object.defineProperty(
|
|
1236
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1244
1237
|
value: true
|
|
1245
1238
|
});
|
|
1246
|
-
Object.defineProperty(
|
|
1239
|
+
Object.defineProperty(exports, "NextResponse", {
|
|
1247
1240
|
enumerable: true,
|
|
1248
1241
|
get: function() {
|
|
1249
1242
|
return NextResponse2;
|
|
@@ -1332,8 +1325,7 @@ var require_response = __commonJS({
|
|
|
1332
1325
|
return new _NextResponse(response.body, response);
|
|
1333
1326
|
}
|
|
1334
1327
|
static redirect(url, init) {
|
|
1335
|
-
|
|
1336
|
-
const status = typeof init === "number" ? init : (_a = init == null ? void 0 : init.status) != null ? _a : 307;
|
|
1328
|
+
const status = typeof init === "number" ? init : (init == null ? void 0 : init.status) ?? 307;
|
|
1337
1329
|
if (!REDIRECTS.has(status)) {
|
|
1338
1330
|
throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
|
|
1339
1331
|
}
|
|
@@ -1368,14 +1360,14 @@ var require_response = __commonJS({
|
|
|
1368
1360
|
}
|
|
1369
1361
|
});
|
|
1370
1362
|
|
|
1371
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1363
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/image-response.js
|
|
1372
1364
|
var require_image_response = __commonJS({
|
|
1373
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1365
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/image-response.js"(exports) {
|
|
1374
1366
|
"use strict";
|
|
1375
|
-
Object.defineProperty(
|
|
1367
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1376
1368
|
value: true
|
|
1377
1369
|
});
|
|
1378
|
-
Object.defineProperty(
|
|
1370
|
+
Object.defineProperty(exports, "ImageResponse", {
|
|
1379
1371
|
enumerable: true,
|
|
1380
1372
|
get: function() {
|
|
1381
1373
|
return ImageResponse;
|
|
@@ -1387,9 +1379,9 @@ var require_image_response = __commonJS({
|
|
|
1387
1379
|
}
|
|
1388
1380
|
});
|
|
1389
1381
|
|
|
1390
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1382
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js
|
|
1391
1383
|
var require_ua_parser = __commonJS({
|
|
1392
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1384
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js"(exports, module) {
|
|
1393
1385
|
(() => {
|
|
1394
1386
|
var i = { 226: function(i2, e2) {
|
|
1395
1387
|
(function(o2, a) {
|
|
@@ -1607,16 +1599,16 @@ var require_ua_parser = __commonJS({
|
|
|
1607
1599
|
}
|
|
1608
1600
|
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
|
|
1609
1601
|
var o = __nccwpck_require__(226);
|
|
1610
|
-
|
|
1602
|
+
module.exports = o;
|
|
1611
1603
|
})();
|
|
1612
1604
|
}
|
|
1613
1605
|
});
|
|
1614
1606
|
|
|
1615
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1607
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/user-agent.js
|
|
1616
1608
|
var require_user_agent = __commonJS({
|
|
1617
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1609
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/user-agent.js"(exports) {
|
|
1618
1610
|
"use strict";
|
|
1619
|
-
Object.defineProperty(
|
|
1611
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1620
1612
|
value: true
|
|
1621
1613
|
});
|
|
1622
1614
|
function _export(target, all) {
|
|
@@ -1625,7 +1617,7 @@ var require_user_agent = __commonJS({
|
|
|
1625
1617
|
get: all[name]
|
|
1626
1618
|
});
|
|
1627
1619
|
}
|
|
1628
|
-
_export(
|
|
1620
|
+
_export(exports, {
|
|
1629
1621
|
isBot: function() {
|
|
1630
1622
|
return isBot;
|
|
1631
1623
|
},
|
|
@@ -1657,14 +1649,14 @@ var require_user_agent = __commonJS({
|
|
|
1657
1649
|
}
|
|
1658
1650
|
});
|
|
1659
1651
|
|
|
1660
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1652
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/url-pattern.js
|
|
1661
1653
|
var require_url_pattern = __commonJS({
|
|
1662
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1654
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/dist/server/web/spec-extension/url-pattern.js"(exports) {
|
|
1663
1655
|
"use strict";
|
|
1664
|
-
Object.defineProperty(
|
|
1656
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1665
1657
|
value: true
|
|
1666
1658
|
});
|
|
1667
|
-
Object.defineProperty(
|
|
1659
|
+
Object.defineProperty(exports, "URLPattern", {
|
|
1668
1660
|
enumerable: true,
|
|
1669
1661
|
get: function() {
|
|
1670
1662
|
return GlobalURLPattern;
|
|
@@ -1677,9 +1669,9 @@ var require_url_pattern = __commonJS({
|
|
|
1677
1669
|
}
|
|
1678
1670
|
});
|
|
1679
1671
|
|
|
1680
|
-
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1672
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/server.js
|
|
1681
1673
|
var require_server = __commonJS({
|
|
1682
|
-
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@
|
|
1674
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.9_@playwright+test@1.50.1_babel-plugin-macros@3.1.0_react-dom@1_srdzrzs3wtwyenbh4c4ngz5rdm/node_modules/next/server.js"(exports, module) {
|
|
1683
1675
|
var serverExports = {
|
|
1684
1676
|
NextRequest: require_request().NextRequest,
|
|
1685
1677
|
NextResponse: require_response().NextResponse,
|
|
@@ -1688,25 +1680,25 @@ var require_server = __commonJS({
|
|
|
1688
1680
|
userAgent: require_user_agent().userAgent,
|
|
1689
1681
|
URLPattern: require_url_pattern().URLPattern
|
|
1690
1682
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1683
|
+
module.exports = serverExports;
|
|
1684
|
+
exports.NextRequest = serverExports.NextRequest;
|
|
1685
|
+
exports.NextResponse = serverExports.NextResponse;
|
|
1686
|
+
exports.ImageResponse = serverExports.ImageResponse;
|
|
1687
|
+
exports.userAgentFromString = serverExports.userAgentFromString;
|
|
1688
|
+
exports.userAgent = serverExports.userAgent;
|
|
1689
|
+
exports.URLPattern = serverExports.URLPattern;
|
|
1698
1690
|
}
|
|
1699
1691
|
});
|
|
1700
1692
|
|
|
1701
1693
|
// src/delivery-handlers.ts
|
|
1702
|
-
var delivery_handlers_exports = {};
|
|
1703
|
-
__export(delivery_handlers_exports, {
|
|
1704
|
-
createMediaDeliveryHandlers: () => createMediaDeliveryHandlers
|
|
1705
|
-
});
|
|
1706
|
-
module.exports = __toCommonJS(delivery_handlers_exports);
|
|
1707
|
-
var import_storage_blob = require("@azure/storage-blob");
|
|
1708
|
-
var import_sharp = __toESM(require("sharp"));
|
|
1709
1694
|
var import_server = __toESM(require_server());
|
|
1695
|
+
import {
|
|
1696
|
+
BlobServiceClient,
|
|
1697
|
+
generateBlobSASQueryParameters,
|
|
1698
|
+
StorageSharedKeyCredential,
|
|
1699
|
+
BlobSASPermissions
|
|
1700
|
+
} from "@azure/storage-blob";
|
|
1701
|
+
import sharp from "sharp";
|
|
1710
1702
|
var SUPPORTED_IMAGE_TYPES = [
|
|
1711
1703
|
"image/jpeg",
|
|
1712
1704
|
"image/png",
|
|
@@ -1717,7 +1709,6 @@ var SUPPORTED_IMAGE_TYPES = [
|
|
|
1717
1709
|
var createMediaDeliveryHandlers = (config) => {
|
|
1718
1710
|
return {
|
|
1719
1711
|
async GET(req, context) {
|
|
1720
|
-
var _a, _b;
|
|
1721
1712
|
try {
|
|
1722
1713
|
const accountNameMatch = /AccountName=([^;]+)/.exec(
|
|
1723
1714
|
config.connectionString
|
|
@@ -1732,11 +1723,11 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1732
1723
|
}
|
|
1733
1724
|
const accountName = accountNameMatch[1];
|
|
1734
1725
|
const accountKey = accountKeyMatch[1];
|
|
1735
|
-
const sharedKeyCredential = new
|
|
1726
|
+
const sharedKeyCredential = new StorageSharedKeyCredential(
|
|
1736
1727
|
accountName,
|
|
1737
1728
|
accountKey
|
|
1738
1729
|
);
|
|
1739
|
-
const client =
|
|
1730
|
+
const client = BlobServiceClient.fromConnectionString(
|
|
1740
1731
|
config.connectionString
|
|
1741
1732
|
);
|
|
1742
1733
|
const containerClient = client.getContainerClient(config.containerName);
|
|
@@ -1744,13 +1735,13 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1744
1735
|
const blockBlobClient = containerClient.getBlockBlobClient(blobName);
|
|
1745
1736
|
const expiresOn = /* @__PURE__ */ new Date();
|
|
1746
1737
|
expiresOn.setMinutes(expiresOn.getMinutes() + 1);
|
|
1747
|
-
const sasToken =
|
|
1738
|
+
const sasToken = generateBlobSASQueryParameters(
|
|
1748
1739
|
{
|
|
1749
1740
|
containerName: config.containerName,
|
|
1750
1741
|
// The container name
|
|
1751
1742
|
blobName,
|
|
1752
1743
|
// The blob name
|
|
1753
|
-
permissions:
|
|
1744
|
+
permissions: BlobSASPermissions.parse("r"),
|
|
1754
1745
|
// Read permission
|
|
1755
1746
|
expiresOn
|
|
1756
1747
|
// Expiration time
|
|
@@ -1795,7 +1786,7 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1795
1786
|
if (Number.isNaN(quality) || quality < 1 || quality > 100) {
|
|
1796
1787
|
return new import_server.NextResponse("Invalid quality parameter", { status: 400 });
|
|
1797
1788
|
}
|
|
1798
|
-
let processedImage = (
|
|
1789
|
+
let processedImage = sharp(buffer);
|
|
1799
1790
|
if (width || height) {
|
|
1800
1791
|
processedImage = processedImage.resize({
|
|
1801
1792
|
width: width ? Number(width) : void 0,
|
|
@@ -1806,10 +1797,10 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1806
1797
|
}
|
|
1807
1798
|
let outputFormat = "jpeg";
|
|
1808
1799
|
let outputContentType = "image/jpeg";
|
|
1809
|
-
if (format === "webp" || format === "auto" &&
|
|
1800
|
+
if (format === "webp" || format === "auto" && req.headers.get("accept")?.includes("image/webp")) {
|
|
1810
1801
|
outputFormat = "webp";
|
|
1811
1802
|
outputContentType = "image/webp";
|
|
1812
|
-
} else if (format === "avif" || format === "auto" &&
|
|
1803
|
+
} else if (format === "avif" || format === "auto" && req.headers.get("accept")?.includes("image/avif")) {
|
|
1813
1804
|
outputFormat = "avif";
|
|
1814
1805
|
outputContentType = "image/avif";
|
|
1815
1806
|
}
|
|
@@ -1851,7 +1842,6 @@ var createMediaDeliveryHandlers = (config) => {
|
|
|
1851
1842
|
}
|
|
1852
1843
|
};
|
|
1853
1844
|
};
|
|
1854
|
-
|
|
1855
|
-
0 && (module.exports = {
|
|
1845
|
+
export {
|
|
1856
1846
|
createMediaDeliveryHandlers
|
|
1857
|
-
}
|
|
1847
|
+
};
|