@scrabble-solver/scrabble-solver 2.13.2 → 2.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +16 -16
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/eslint/.cache_8dgz12 +1 -1
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/edge-server-production/0.pack +0 -0
  8. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/next-minimal-server.js.nft.json +1 -0
  12. package/.next/next-server.js.nft.json +1 -1
  13. package/.next/prerender-manifest.js +1 -0
  14. package/.next/prerender-manifest.json +1 -1
  15. package/.next/required-server-files.json +1 -1
  16. package/.next/routes-manifest.json +1 -1
  17. package/.next/server/InjectManifest.js.nft.json +1 -1
  18. package/.next/server/chunks/28.js +1 -0
  19. package/.next/server/chunks/331.js +6 -0
  20. package/.next/server/chunks/577.js +1 -0
  21. package/.next/server/chunks/911.js +1 -1083
  22. package/.next/server/chunks/977.js +1 -0
  23. package/.next/server/functions-config-manifest.json +1 -0
  24. package/.next/server/middleware-build-manifest.js +1 -1
  25. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  26. package/.next/server/next-font-manifest.js +1 -1
  27. package/.next/server/next-font-manifest.json +1 -6
  28. package/.next/server/pages/404.html +1 -1
  29. package/.next/server/pages/404.js.nft.json +1 -1
  30. package/.next/server/pages/500.html +1 -1
  31. package/.next/server/pages/_app.js +1 -380
  32. package/.next/server/pages/_app.js.nft.json +1 -1
  33. package/.next/server/pages/_document.js +1 -212
  34. package/.next/server/pages/_document.js.nft.json +1 -1
  35. package/.next/server/pages/_error.js +1 -166
  36. package/.next/server/pages/_error.js.nft.json +1 -1
  37. package/.next/server/pages/api/dictionary/[locale]/[word].js +2 -836
  38. package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  39. package/.next/server/pages/api/dictionary/[locale].js +1 -192
  40. package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  41. package/.next/server/pages/api/solve.js +1 -1121
  42. package/.next/server/pages/api/solve.js.nft.json +1 -1
  43. package/.next/server/pages/api/verify.js +1 -213
  44. package/.next/server/pages/api/verify.js.nft.json +1 -1
  45. package/.next/server/pages/api/visit.js +1 -131
  46. package/.next/server/pages/api/visit.js.nft.json +1 -1
  47. package/.next/server/pages/index.html +1 -1
  48. package/.next/server/pages/index.js +1 -2088
  49. package/.next/server/pages/index.js.nft.json +1 -1
  50. package/.next/server/pages/index.json +1 -1
  51. package/.next/server/pages-manifest.json +1 -12
  52. package/.next/server/webpack-api-runtime.js +1 -172
  53. package/.next/server/webpack-runtime.js +1 -229
  54. package/.next/static/chunks/framework-1728d40275bc359a.js +49 -0
  55. package/.next/static/chunks/main-5fb7abbfc135de15.js +1 -0
  56. package/.next/static/chunks/pages/404-b6e238bb4117d451.js +1 -0
  57. package/.next/static/chunks/pages/_app-b95404c40a0092e6.js +17 -0
  58. package/.next/static/chunks/pages/_error-db043fa3544f8809.js +1 -0
  59. package/.next/static/chunks/pages/index-59d569ef79bc2580.js +1 -0
  60. package/.next/static/css/8fa2fb99b90e109e.css +1 -0
  61. package/.next/static/css/c80ebc6fd13311f1.css +2 -0
  62. package/.next/static/r00VHxlMI-jbGWpg3nm2M/_buildManifest.js +1 -0
  63. package/.next/trace +44 -51
  64. package/package.json +31 -32
  65. package/src/state/slices/boardSlice.ts +4 -4
  66. package/src/state/store.ts +1 -1
  67. package/.next/cache/next-server.js.nft.json +0 -1
  68. package/.next/server/chunks/210.js +0 -109
  69. package/.next/server/chunks/277.js +0 -11942
  70. package/.next/server/chunks/44.js +0 -1838
  71. package/.next/server/chunks/50.js +0 -12119
  72. package/.next/server/chunks/636.js +0 -286
  73. package/.next/server/chunks/675.js +0 -572
  74. package/.next/server/chunks/859.js +0 -835
  75. package/.next/server/chunks/865.js +0 -20424
  76. package/.next/server/chunks/907.js +0 -42530
  77. package/.next/server/chunks/987.js +0 -91
  78. package/.next/static/16S6EJJ0_LRmtRPwnUIw5/_buildManifest.js +0 -1
  79. package/.next/static/chunks/framework-2c29dc3cd933590b.js +0 -49
  80. package/.next/static/chunks/main-4dcb7f9b52833aba.js +0 -1
  81. package/.next/static/chunks/pages/404-b4b5ce15153d4825.js +0 -1
  82. package/.next/static/chunks/pages/_app-122dc8ecfa0220d5.js +0 -32
  83. package/.next/static/chunks/pages/_error-54de1933a164a1ff.js +0 -1
  84. package/.next/static/chunks/pages/index-f56eaa969a831c70.js +0 -1
  85. package/.next/static/css/4e8b47fe382a8a8f.css +0 -2
  86. package/.next/static/css/cfae5256f1689f57.css +0 -1
  87. /package/.next/static/{16S6EJJ0_LRmtRPwnUIw5 → r00VHxlMI-jbGWpg3nm2M}/_ssgManifest.js +0 -0
@@ -1,835 +0,0 @@
1
- exports.id = 859;
2
- exports.ids = [859];
3
- exports.modules = {
4
-
5
- /***/ 82940:
6
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
-
8
- "use strict";
9
- var __webpack_unused_export__;
10
-
11
- __webpack_unused_export__ = ({
12
- value: true
13
- });
14
- exports.Html = Html;
15
- exports.Main = Main;
16
- exports["default"] = void 0;
17
- var _react = _interopRequireWildcard(__webpack_require__(16689));
18
- var _constants = __webpack_require__(56724);
19
- var _getPageFiles = __webpack_require__(94140);
20
- var _htmlescape = __webpack_require__(89716);
21
- var _isError = _interopRequireDefault(__webpack_require__(80676));
22
- var _htmlContext = __webpack_require__(18743);
23
- class Document extends _react.default.Component {
24
- /**
25
- * `getInitialProps` hook returns the context object with the addition of `renderPage`.
26
- * `renderPage` callback executes `React` rendering logic synchronously to support server-rendering wrappers
27
- */ static getInitialProps(ctx) {
28
- return ctx.defaultGetInitialProps(ctx);
29
- }
30
- render() {
31
- return /*#__PURE__*/ _react.default.createElement(Html, null, /*#__PURE__*/ _react.default.createElement(Head, null), /*#__PURE__*/ _react.default.createElement("body", null, /*#__PURE__*/ _react.default.createElement(Main, null), /*#__PURE__*/ _react.default.createElement(NextScript, null)));
32
- }
33
- }
34
- exports["default"] = Document;
35
- function _interopRequireDefault(obj) {
36
- return obj && obj.__esModule ? obj : {
37
- default: obj
38
- };
39
- }
40
- function _getRequireWildcardCache() {
41
- if (typeof WeakMap !== "function") return null;
42
- var cache = new WeakMap();
43
- _getRequireWildcardCache = function() {
44
- return cache;
45
- };
46
- return cache;
47
- }
48
- function _interopRequireWildcard(obj) {
49
- if (obj && obj.__esModule) {
50
- return obj;
51
- }
52
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
53
- return {
54
- default: obj
55
- };
56
- }
57
- var cache = _getRequireWildcardCache();
58
- if (cache && cache.has(obj)) {
59
- return cache.get(obj);
60
- }
61
- var newObj = {};
62
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
63
- for(var key in obj){
64
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
65
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
66
- if (desc && (desc.get || desc.set)) {
67
- Object.defineProperty(newObj, key, desc);
68
- } else {
69
- newObj[key] = obj[key];
70
- }
71
- }
72
- }
73
- newObj.default = obj;
74
- if (cache) {
75
- cache.set(obj, newObj);
76
- }
77
- return newObj;
78
- }
79
- /** Set of pages that have triggered a large data warning on production mode. */ const largePageDataWarnings = new Set();
80
- function getDocumentFiles(buildManifest, pathname, inAmpMode) {
81
- const sharedFiles = (0, _getPageFiles).getPageFiles(buildManifest, "/_app");
82
- const pageFiles = true && inAmpMode ? [] : (0, _getPageFiles).getPageFiles(buildManifest, pathname);
83
- return {
84
- sharedFiles,
85
- pageFiles,
86
- allFiles: [
87
- ...new Set([
88
- ...sharedFiles,
89
- ...pageFiles
90
- ])
91
- ]
92
- };
93
- }
94
- function getPolyfillScripts(context, props) {
95
- // polyfills.js has to be rendered as nomodule without async
96
- // It also has to be the first script to load
97
- const { assetPrefix , buildManifest , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin } = context;
98
- return buildManifest.polyfillFiles.filter((polyfill)=>polyfill.endsWith(".js") && !polyfill.endsWith(".module.js")).map((polyfill)=>/*#__PURE__*/ _react.default.createElement("script", {
99
- key: polyfill,
100
- defer: !disableOptimizedLoading,
101
- nonce: props.nonce,
102
- crossOrigin: props.crossOrigin || crossOrigin,
103
- noModule: true,
104
- src: `${assetPrefix}/_next/${polyfill}${devOnlyCacheBusterQueryString}`
105
- }));
106
- }
107
- function hasComponentProps(child) {
108
- return !!child && !!child.props;
109
- }
110
- function AmpStyles({ styles }) {
111
- if (!styles) return null;
112
- // try to parse styles from fragment for backwards compat
113
- const curStyles = Array.isArray(styles) ? styles : [];
114
- if (styles.props && // @ts-ignore Property 'props' does not exist on type ReactElement
115
- Array.isArray(styles.props.children)) {
116
- const hasStyles = (el)=>{
117
- var ref, ref1;
118
- return el == null ? void 0 : (ref = el.props) == null ? void 0 : (ref1 = ref.dangerouslySetInnerHTML) == null ? void 0 : ref1.__html;
119
- };
120
- // @ts-ignore Property 'props' does not exist on type ReactElement
121
- styles.props.children.forEach((child)=>{
122
- if (Array.isArray(child)) {
123
- child.forEach((el)=>hasStyles(el) && curStyles.push(el));
124
- } else if (hasStyles(child)) {
125
- curStyles.push(child);
126
- }
127
- });
128
- }
129
- /* Add custom styles before AMP styles to prevent accidental overrides */ return /*#__PURE__*/ _react.default.createElement("style", {
130
- "amp-custom": "",
131
- dangerouslySetInnerHTML: {
132
- __html: curStyles.map((style)=>style.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g, "").replace(/\/\*@ sourceURL=.*?\*\//g, "")
133
- }
134
- });
135
- }
136
- function getDynamicChunks(context, props, files) {
137
- const { dynamicImports , assetPrefix , isDevelopment , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin } = context;
138
- return dynamicImports.map((file)=>{
139
- if (!file.endsWith(".js") || files.allFiles.includes(file)) return null;
140
- return /*#__PURE__*/ _react.default.createElement("script", {
141
- async: !isDevelopment && disableOptimizedLoading,
142
- defer: !disableOptimizedLoading,
143
- key: file,
144
- src: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
145
- nonce: props.nonce,
146
- crossOrigin: props.crossOrigin || crossOrigin
147
- });
148
- });
149
- }
150
- function getScripts(context, props, files) {
151
- var ref;
152
- const { assetPrefix , buildManifest , isDevelopment , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin } = context;
153
- const normalScripts = files.allFiles.filter((file)=>file.endsWith(".js"));
154
- const lowPriorityScripts = (ref = buildManifest.lowPriorityFiles) == null ? void 0 : ref.filter((file)=>file.endsWith(".js"));
155
- return [
156
- ...normalScripts,
157
- ...lowPriorityScripts
158
- ].map((file)=>{
159
- return /*#__PURE__*/ _react.default.createElement("script", {
160
- key: file,
161
- src: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
162
- nonce: props.nonce,
163
- async: !isDevelopment && disableOptimizedLoading,
164
- defer: !disableOptimizedLoading,
165
- crossOrigin: props.crossOrigin || crossOrigin
166
- });
167
- });
168
- }
169
- function getPreNextWorkerScripts(context, props) {
170
- const { assetPrefix , scriptLoader , crossOrigin , nextScriptWorkers } = context;
171
- // disable `nextScriptWorkers` in edge runtime
172
- if (!nextScriptWorkers || "nodejs" === "edge") return null;
173
- try {
174
- let { partytownSnippet } = require("@builder.io/partytown/integration");
175
- const children = Array.isArray(props.children) ? props.children : [
176
- props.children
177
- ];
178
- // Check to see if the user has defined their own Partytown configuration
179
- const userDefinedConfig = children.find((child)=>{
180
- var ref, ref2;
181
- return hasComponentProps(child) && (child == null ? void 0 : (ref = child.props) == null ? void 0 : (ref2 = ref.dangerouslySetInnerHTML) == null ? void 0 : ref2.__html.length) && "data-partytown-config" in child.props;
182
- });
183
- return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, !userDefinedConfig && /*#__PURE__*/ _react.default.createElement("script", {
184
- "data-partytown-config": "",
185
- dangerouslySetInnerHTML: {
186
- __html: `
187
- partytown = {
188
- lib: "${assetPrefix}/_next/static/~partytown/"
189
- };
190
- `
191
- }
192
- }), /*#__PURE__*/ _react.default.createElement("script", {
193
- "data-partytown": "",
194
- dangerouslySetInnerHTML: {
195
- __html: partytownSnippet()
196
- }
197
- }), (scriptLoader.worker || []).map((file, index)=>{
198
- const { strategy , src , children: scriptChildren , dangerouslySetInnerHTML , ...scriptProps } = file;
199
- let srcProps = {};
200
- if (src) {
201
- // Use external src if provided
202
- srcProps.src = src;
203
- } else if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html) {
204
- // Embed inline script if provided with dangerouslySetInnerHTML
205
- srcProps.dangerouslySetInnerHTML = {
206
- __html: dangerouslySetInnerHTML.__html
207
- };
208
- } else if (scriptChildren) {
209
- // Embed inline script if provided with children
210
- srcProps.dangerouslySetInnerHTML = {
211
- __html: typeof scriptChildren === "string" ? scriptChildren : Array.isArray(scriptChildren) ? scriptChildren.join("") : ""
212
- };
213
- } else {
214
- throw new Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");
215
- }
216
- return /*#__PURE__*/ _react.default.createElement("script", Object.assign({}, srcProps, scriptProps, {
217
- type: "text/partytown",
218
- key: src || index,
219
- nonce: props.nonce,
220
- "data-nscript": "worker",
221
- crossOrigin: props.crossOrigin || crossOrigin
222
- }));
223
- }));
224
- } catch (err) {
225
- if ((0, _isError).default(err) && err.code !== "MODULE_NOT_FOUND") {
226
- console.warn(`Warning: ${err.message}`);
227
- }
228
- return null;
229
- }
230
- }
231
- function getPreNextScripts(context, props) {
232
- const { scriptLoader , disableOptimizedLoading , crossOrigin } = context;
233
- const webWorkerScripts = getPreNextWorkerScripts(context, props);
234
- const beforeInteractiveScripts = (scriptLoader.beforeInteractive || []).filter((script)=>script.src).map((file, index)=>{
235
- const { strategy , ...scriptProps } = file;
236
- return /*#__PURE__*/ _react.default.createElement("script", Object.assign({}, scriptProps, {
237
- key: scriptProps.src || index,
238
- defer: scriptProps.defer ?? !disableOptimizedLoading,
239
- nonce: props.nonce,
240
- "data-nscript": "beforeInteractive",
241
- crossOrigin: props.crossOrigin || crossOrigin
242
- }));
243
- });
244
- return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, webWorkerScripts, beforeInteractiveScripts);
245
- }
246
- function getHeadHTMLProps(props) {
247
- const { crossOrigin , nonce , ...restProps } = props;
248
- // This assignment is necessary for additional type checking to avoid unsupported attributes in <head>
249
- const headProps = restProps;
250
- return headProps;
251
- }
252
- function getAmpPath(ampPath, asPath) {
253
- return ampPath || `${asPath}${asPath.includes("?") ? "&" : "?"}amp=1`;
254
- }
255
- function getNextFontLinkTags(nextFontManifest, dangerousAsPath, assetPrefix = "") {
256
- if (!nextFontManifest) {
257
- return {
258
- preconnect: null,
259
- preload: null
260
- };
261
- }
262
- const appFontsEntry = nextFontManifest.pages["/_app"];
263
- const pageFontsEntry = nextFontManifest.pages[dangerousAsPath];
264
- const preloadedFontFiles = [
265
- ...appFontsEntry ?? [],
266
- ...pageFontsEntry ?? []
267
- ];
268
- // If no font files should preload but there's an entry for the path, add a preconnect tag.
269
- const preconnectToSelf = !!(preloadedFontFiles.length === 0 && (appFontsEntry || pageFontsEntry));
270
- return {
271
- preconnect: preconnectToSelf ? /*#__PURE__*/ _react.default.createElement("link", {
272
- "data-next-font": nextFontManifest.pagesUsingSizeAdjust ? "size-adjust" : "",
273
- rel: "preconnect",
274
- href: "/",
275
- crossOrigin: "anonymous"
276
- }) : null,
277
- preload: preloadedFontFiles ? preloadedFontFiles.map((fontFile)=>{
278
- const ext = /\.(woff|woff2|eot|ttf|otf)$/.exec(fontFile)[1];
279
- return /*#__PURE__*/ _react.default.createElement("link", {
280
- key: fontFile,
281
- rel: "preload",
282
- href: `${assetPrefix}/_next/${encodeURI(fontFile)}`,
283
- as: "font",
284
- type: `font/${ext}`,
285
- crossOrigin: "anonymous",
286
- "data-next-font": fontFile.includes("-s") ? "size-adjust" : ""
287
- });
288
- }) : null
289
- };
290
- }
291
- class Head extends _react.default.Component {
292
- static{
293
- this.contextType = _htmlContext.HtmlContext;
294
- }
295
- getCssLinks(files) {
296
- const { assetPrefix , devOnlyCacheBusterQueryString , dynamicImports , crossOrigin , optimizeCss , optimizeFonts } = this.context;
297
- const cssFiles = files.allFiles.filter((f)=>f.endsWith(".css"));
298
- const sharedFiles = new Set(files.sharedFiles);
299
- // Unmanaged files are CSS files that will be handled directly by the
300
- // webpack runtime (`mini-css-extract-plugin`).
301
- let unmangedFiles = new Set([]);
302
- let dynamicCssFiles = Array.from(new Set(dynamicImports.filter((file)=>file.endsWith(".css"))));
303
- if (dynamicCssFiles.length) {
304
- const existing = new Set(cssFiles);
305
- dynamicCssFiles = dynamicCssFiles.filter((f)=>!(existing.has(f) || sharedFiles.has(f)));
306
- unmangedFiles = new Set(dynamicCssFiles);
307
- cssFiles.push(...dynamicCssFiles);
308
- }
309
- let cssLinkElements = [];
310
- cssFiles.forEach((file)=>{
311
- const isSharedFile = sharedFiles.has(file);
312
- if (!optimizeCss) {
313
- cssLinkElements.push(/*#__PURE__*/ _react.default.createElement("link", {
314
- key: `${file}-preload`,
315
- nonce: this.props.nonce,
316
- rel: "preload",
317
- href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
318
- as: "style",
319
- crossOrigin: this.props.crossOrigin || crossOrigin
320
- }));
321
- }
322
- const isUnmanagedFile = unmangedFiles.has(file);
323
- cssLinkElements.push(/*#__PURE__*/ _react.default.createElement("link", {
324
- key: file,
325
- nonce: this.props.nonce,
326
- rel: "stylesheet",
327
- href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
328
- crossOrigin: this.props.crossOrigin || crossOrigin,
329
- "data-n-g": isUnmanagedFile ? undefined : isSharedFile ? "" : undefined,
330
- "data-n-p": isUnmanagedFile ? undefined : isSharedFile ? undefined : ""
331
- }));
332
- });
333
- if ( true && optimizeFonts) {
334
- cssLinkElements = this.makeStylesheetInert(cssLinkElements);
335
- }
336
- return cssLinkElements.length === 0 ? null : cssLinkElements;
337
- }
338
- getPreloadDynamicChunks() {
339
- const { dynamicImports , assetPrefix , devOnlyCacheBusterQueryString , crossOrigin } = this.context;
340
- return dynamicImports.map((file)=>{
341
- if (!file.endsWith(".js")) {
342
- return null;
343
- }
344
- return /*#__PURE__*/ _react.default.createElement("link", {
345
- rel: "preload",
346
- key: file,
347
- href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
348
- as: "script",
349
- nonce: this.props.nonce,
350
- crossOrigin: this.props.crossOrigin || crossOrigin
351
- });
352
- }) // Filter out nulled scripts
353
- .filter(Boolean);
354
- }
355
- getPreloadMainLinks(files) {
356
- const { assetPrefix , devOnlyCacheBusterQueryString , scriptLoader , crossOrigin } = this.context;
357
- const preloadFiles = files.allFiles.filter((file)=>{
358
- return file.endsWith(".js");
359
- });
360
- return [
361
- ...(scriptLoader.beforeInteractive || []).map((file)=>/*#__PURE__*/ _react.default.createElement("link", {
362
- key: file.src,
363
- nonce: this.props.nonce,
364
- rel: "preload",
365
- href: file.src,
366
- as: "script",
367
- crossOrigin: this.props.crossOrigin || crossOrigin
368
- })),
369
- ...preloadFiles.map((file)=>/*#__PURE__*/ _react.default.createElement("link", {
370
- key: file,
371
- nonce: this.props.nonce,
372
- rel: "preload",
373
- href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
374
- as: "script",
375
- crossOrigin: this.props.crossOrigin || crossOrigin
376
- }))
377
- ];
378
- }
379
- getBeforeInteractiveInlineScripts() {
380
- const { scriptLoader } = this.context;
381
- const { nonce , crossOrigin } = this.props;
382
- return (scriptLoader.beforeInteractive || []).filter((script)=>!script.src && (script.dangerouslySetInnerHTML || script.children)).map((file, index)=>{
383
- const { strategy , children , dangerouslySetInnerHTML , src , ...scriptProps } = file;
384
- let html = "";
385
- if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html) {
386
- html = dangerouslySetInnerHTML.__html;
387
- } else if (children) {
388
- html = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : "";
389
- }
390
- return /*#__PURE__*/ _react.default.createElement("script", Object.assign({}, scriptProps, {
391
- dangerouslySetInnerHTML: {
392
- __html: html
393
- },
394
- key: scriptProps.id || index,
395
- nonce: nonce,
396
- "data-nscript": "beforeInteractive",
397
- crossOrigin: crossOrigin || undefined
398
- }));
399
- });
400
- }
401
- getDynamicChunks(files) {
402
- return getDynamicChunks(this.context, this.props, files);
403
- }
404
- getPreNextScripts() {
405
- return getPreNextScripts(this.context, this.props);
406
- }
407
- getScripts(files) {
408
- return getScripts(this.context, this.props, files);
409
- }
410
- getPolyfillScripts() {
411
- return getPolyfillScripts(this.context, this.props);
412
- }
413
- makeStylesheetInert(node) {
414
- return _react.default.Children.map(node, (c)=>{
415
- var ref5, ref3;
416
- if ((c == null ? void 0 : c.type) === "link" && (c == null ? void 0 : (ref5 = c.props) == null ? void 0 : ref5.href) && _constants.OPTIMIZED_FONT_PROVIDERS.some(({ url })=>{
417
- var ref, ref4;
418
- return c == null ? void 0 : (ref = c.props) == null ? void 0 : (ref4 = ref.href) == null ? void 0 : ref4.startsWith(url);
419
- })) {
420
- const newProps = {
421
- ...c.props || {},
422
- "data-href": c.props.href,
423
- href: undefined
424
- };
425
- return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
426
- } else if (c == null ? void 0 : (ref3 = c.props) == null ? void 0 : ref3.children) {
427
- const newProps = {
428
- ...c.props || {},
429
- children: this.makeStylesheetInert(c.props.children)
430
- };
431
- return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
432
- }
433
- return c;
434
- }).filter(Boolean);
435
- }
436
- render() {
437
- const { styles , ampPath , inAmpMode , hybridAmp , canonicalBase , __NEXT_DATA__ , dangerousAsPath , headTags , unstable_runtimeJS , unstable_JsPreload , disableOptimizedLoading , optimizeCss , optimizeFonts , assetPrefix , nextFontManifest } = this.context;
438
- const disableRuntimeJS = unstable_runtimeJS === false;
439
- const disableJsPreload = unstable_JsPreload === false || !disableOptimizedLoading;
440
- this.context.docComponentsRendered.Head = true;
441
- let { head } = this.context;
442
- let cssPreloads = [];
443
- let otherHeadElements = [];
444
- if (head) {
445
- head.forEach((c)=>{
446
- let metaTag;
447
- if (this.context.strictNextHead) {
448
- metaTag = /*#__PURE__*/ _react.default.createElement("meta", {
449
- name: "next-head",
450
- content: "1"
451
- });
452
- }
453
- if (c && c.type === "link" && c.props["rel"] === "preload" && c.props["as"] === "style") {
454
- metaTag && cssPreloads.push(metaTag);
455
- cssPreloads.push(c);
456
- } else {
457
- if (c) {
458
- if (metaTag && (c.type !== "meta" || !c.props["charSet"])) {
459
- otherHeadElements.push(metaTag);
460
- }
461
- otherHeadElements.push(c);
462
- }
463
- }
464
- });
465
- head = cssPreloads.concat(otherHeadElements);
466
- }
467
- let children = _react.default.Children.toArray(this.props.children).filter(Boolean);
468
- // show a warning if Head contains <title> (only in development)
469
- if (false) {}
470
- if ( true && optimizeFonts && !( true && inAmpMode)) {
471
- children = this.makeStylesheetInert(children);
472
- }
473
- let hasAmphtmlRel = false;
474
- let hasCanonicalRel = false;
475
- // show warning and remove conflicting amp head tags
476
- head = _react.default.Children.map(head || [], (child)=>{
477
- if (!child) return child;
478
- const { type , props } = child;
479
- if ( true && inAmpMode) {
480
- let badProp = "";
481
- if (type === "meta" && props.name === "viewport") {
482
- badProp = 'name="viewport"';
483
- } else if (type === "link" && props.rel === "canonical") {
484
- hasCanonicalRel = true;
485
- } else if (type === "script") {
486
- // only block if
487
- // 1. it has a src and isn't pointing to ampproject's CDN
488
- // 2. it is using dangerouslySetInnerHTML without a type or
489
- // a type of text/javascript
490
- if (props.src && props.src.indexOf("ampproject") < -1 || props.dangerouslySetInnerHTML && (!props.type || props.type === "text/javascript")) {
491
- badProp = "<script";
492
- Object.keys(props).forEach((prop)=>{
493
- badProp += ` ${prop}="${props[prop]}"`;
494
- });
495
- badProp += "/>";
496
- }
497
- }
498
- if (badProp) {
499
- console.warn(`Found conflicting amp tag "${child.type}" with conflicting prop ${badProp} in ${__NEXT_DATA__.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`);
500
- return null;
501
- }
502
- } else {
503
- // non-amp mode
504
- if (type === "link" && props.rel === "amphtml") {
505
- hasAmphtmlRel = true;
506
- }
507
- }
508
- return child;
509
- });
510
- const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, true && inAmpMode);
511
- const nextFontLinkTags = getNextFontLinkTags(nextFontManifest, dangerousAsPath, assetPrefix);
512
- return /*#__PURE__*/ _react.default.createElement("head", Object.assign({}, getHeadHTMLProps(this.props)), this.context.isDevelopment && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement("style", {
513
- "data-next-hide-fouc": true,
514
- "data-ampdevmode": true && inAmpMode ? "true" : undefined,
515
- dangerouslySetInnerHTML: {
516
- __html: `body{display:none}`
517
- }
518
- }), /*#__PURE__*/ _react.default.createElement("noscript", {
519
- "data-next-hide-fouc": true,
520
- "data-ampdevmode": true && inAmpMode ? "true" : undefined
521
- }, /*#__PURE__*/ _react.default.createElement("style", {
522
- dangerouslySetInnerHTML: {
523
- __html: `body{display:block}`
524
- }
525
- }))), head, this.context.strictNextHead ? null : /*#__PURE__*/ _react.default.createElement("meta", {
526
- name: "next-head-count",
527
- content: _react.default.Children.count(head || []).toString()
528
- }), children, optimizeFonts && /*#__PURE__*/ _react.default.createElement("meta", {
529
- name: "next-font-preconnect"
530
- }), nextFontLinkTags.preconnect, nextFontLinkTags.preload, true && inAmpMode && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement("meta", {
531
- name: "viewport",
532
- content: "width=device-width,minimum-scale=1,initial-scale=1"
533
- }), !hasCanonicalRel && /*#__PURE__*/ _react.default.createElement("link", {
534
- rel: "canonical",
535
- href: canonicalBase + (__webpack_require__(76368).cleanAmpPath)(dangerousAsPath)
536
- }), /*#__PURE__*/ _react.default.createElement("link", {
537
- rel: "preload",
538
- as: "script",
539
- href: "https://cdn.ampproject.org/v0.js"
540
- }), /*#__PURE__*/ _react.default.createElement(AmpStyles, {
541
- styles: styles
542
- }), /*#__PURE__*/ _react.default.createElement("style", {
543
- "amp-boilerplate": "",
544
- dangerouslySetInnerHTML: {
545
- __html: `body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}`
546
- }
547
- }), /*#__PURE__*/ _react.default.createElement("noscript", null, /*#__PURE__*/ _react.default.createElement("style", {
548
- "amp-boilerplate": "",
549
- dangerouslySetInnerHTML: {
550
- __html: `body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}`
551
- }
552
- })), /*#__PURE__*/ _react.default.createElement("script", {
553
- async: true,
554
- src: "https://cdn.ampproject.org/v0.js"
555
- })), !( true && inAmpMode) && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, !hasAmphtmlRel && hybridAmp && /*#__PURE__*/ _react.default.createElement("link", {
556
- rel: "amphtml",
557
- href: canonicalBase + getAmpPath(ampPath, dangerousAsPath)
558
- }), this.getBeforeInteractiveInlineScripts(), !optimizeCss && this.getCssLinks(files), !optimizeCss && /*#__PURE__*/ _react.default.createElement("noscript", {
559
- "data-n-css": this.props.nonce ?? ""
560
- }), !disableRuntimeJS && !disableJsPreload && this.getPreloadDynamicChunks(), !disableRuntimeJS && !disableJsPreload && this.getPreloadMainLinks(files), !disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(), !disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(), !disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files), !disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files), optimizeCss && this.getCssLinks(files), optimizeCss && /*#__PURE__*/ _react.default.createElement("noscript", {
561
- "data-n-css": this.props.nonce ?? ""
562
- }), this.context.isDevelopment && // this element is used to mount development styles so the
563
- // ordering matches production
564
- // (by default, style-loader injects at the bottom of <head />)
565
- /*#__PURE__*/ _react.default.createElement("noscript", {
566
- id: "__next_css__DO_NOT_USE__"
567
- }), styles || null), /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, {}, ...headTags || []));
568
- }
569
- }
570
- exports.Head = Head;
571
- function handleDocumentScriptLoaderItems(scriptLoader, __NEXT_DATA__, props) {
572
- var ref10, ref7, ref8, ref9;
573
- if (!props.children) return;
574
- const scriptLoaderItems = [];
575
- const children = Array.isArray(props.children) ? props.children : [
576
- props.children
577
- ];
578
- const headChildren = (ref10 = children.find((child)=>child.type === Head)) == null ? void 0 : (ref7 = ref10.props) == null ? void 0 : ref7.children;
579
- const bodyChildren = (ref8 = children.find((child)=>child.type === "body")) == null ? void 0 : (ref9 = ref8.props) == null ? void 0 : ref9.children;
580
- // Scripts with beforeInteractive can be placed inside Head or <body> so children of both needs to be traversed
581
- const combinedChildren = [
582
- ...Array.isArray(headChildren) ? headChildren : [
583
- headChildren
584
- ],
585
- ...Array.isArray(bodyChildren) ? bodyChildren : [
586
- bodyChildren
587
- ]
588
- ];
589
- _react.default.Children.forEach(combinedChildren, (child)=>{
590
- var ref;
591
- if (!child) return;
592
- // When using the `next/script` component, register it in script loader.
593
- if ((ref = child.type) == null ? void 0 : ref.__nextScript) {
594
- if (child.props.strategy === "beforeInteractive") {
595
- scriptLoader.beforeInteractive = (scriptLoader.beforeInteractive || []).concat([
596
- {
597
- ...child.props
598
- }
599
- ]);
600
- return;
601
- } else if ([
602
- "lazyOnload",
603
- "afterInteractive",
604
- "worker"
605
- ].includes(child.props.strategy)) {
606
- scriptLoaderItems.push(child.props);
607
- return;
608
- }
609
- }
610
- });
611
- __NEXT_DATA__.scriptLoader = scriptLoaderItems;
612
- }
613
- class NextScript extends _react.default.Component {
614
- static{
615
- this.contextType = _htmlContext.HtmlContext;
616
- }
617
- getDynamicChunks(files) {
618
- return getDynamicChunks(this.context, this.props, files);
619
- }
620
- getPreNextScripts() {
621
- return getPreNextScripts(this.context, this.props);
622
- }
623
- getScripts(files) {
624
- return getScripts(this.context, this.props, files);
625
- }
626
- getPolyfillScripts() {
627
- return getPolyfillScripts(this.context, this.props);
628
- }
629
- static getInlineScriptSource(context) {
630
- const { __NEXT_DATA__ , largePageDataBytes } = context;
631
- try {
632
- const data = JSON.stringify(__NEXT_DATA__);
633
- if (largePageDataWarnings.has(__NEXT_DATA__.page)) {
634
- return (0, _htmlescape).htmlEscapeJsonString(data);
635
- }
636
- const bytes = false ? 0 : Buffer.from(data).byteLength;
637
- const prettyBytes = (__webpack_require__(95955)/* ["default"] */ .Z);
638
- if (largePageDataBytes && bytes > largePageDataBytes) {
639
- if (true) {
640
- largePageDataWarnings.add(__NEXT_DATA__.page);
641
- }
642
- console.warn(`Warning: data for page "${__NEXT_DATA__.page}"${__NEXT_DATA__.page === context.dangerousAsPath ? "" : ` (path "${context.dangerousAsPath}")`} is ${prettyBytes(bytes)} which exceeds the threshold of ${prettyBytes(largePageDataBytes)}, this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data`);
643
- }
644
- return (0, _htmlescape).htmlEscapeJsonString(data);
645
- } catch (err) {
646
- if ((0, _isError).default(err) && err.message.indexOf("circular structure") !== -1) {
647
- throw new Error(`Circular structure in "getInitialProps" result of page "${__NEXT_DATA__.page}". https://nextjs.org/docs/messages/circular-structure`);
648
- }
649
- throw err;
650
- }
651
- }
652
- render() {
653
- const { assetPrefix , inAmpMode , buildManifest , unstable_runtimeJS , docComponentsRendered , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin } = this.context;
654
- const disableRuntimeJS = unstable_runtimeJS === false;
655
- docComponentsRendered.NextScript = true;
656
- if ( true && inAmpMode) {
657
- if (true) {
658
- return null;
659
- }
660
- const ampDevFiles = [
661
- ...buildManifest.devFiles,
662
- ...buildManifest.polyfillFiles,
663
- ...buildManifest.ampDevFiles
664
- ];
665
- return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, disableRuntimeJS ? null : /*#__PURE__*/ _react.default.createElement("script", {
666
- id: "__NEXT_DATA__",
667
- type: "application/json",
668
- nonce: this.props.nonce,
669
- crossOrigin: this.props.crossOrigin || crossOrigin,
670
- dangerouslySetInnerHTML: {
671
- __html: NextScript.getInlineScriptSource(this.context)
672
- },
673
- "data-ampdevmode": true
674
- }), ampDevFiles.map((file)=>/*#__PURE__*/ _react.default.createElement("script", {
675
- key: file,
676
- src: `${assetPrefix}/_next/${file}${devOnlyCacheBusterQueryString}`,
677
- nonce: this.props.nonce,
678
- crossOrigin: this.props.crossOrigin || crossOrigin,
679
- "data-ampdevmode": true
680
- })));
681
- }
682
- if (false) {}
683
- const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, true && inAmpMode);
684
- return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, !disableRuntimeJS && buildManifest.devFiles ? buildManifest.devFiles.map((file)=>/*#__PURE__*/ _react.default.createElement("script", {
685
- key: file,
686
- src: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`,
687
- nonce: this.props.nonce,
688
- crossOrigin: this.props.crossOrigin || crossOrigin
689
- })) : null, disableRuntimeJS ? null : /*#__PURE__*/ _react.default.createElement("script", {
690
- id: "__NEXT_DATA__",
691
- type: "application/json",
692
- nonce: this.props.nonce,
693
- crossOrigin: this.props.crossOrigin || crossOrigin,
694
- dangerouslySetInnerHTML: {
695
- __html: NextScript.getInlineScriptSource(this.context)
696
- }
697
- }), disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(), disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(), disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files), disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files));
698
- }
699
- }
700
- exports.NextScript = NextScript;
701
- function Html(props) {
702
- const { inAmpMode , docComponentsRendered , locale , scriptLoader , __NEXT_DATA__ } = (0, _react).useContext(_htmlContext.HtmlContext);
703
- docComponentsRendered.Html = true;
704
- handleDocumentScriptLoaderItems(scriptLoader, __NEXT_DATA__, props);
705
- return /*#__PURE__*/ _react.default.createElement("html", Object.assign({}, props, {
706
- lang: props.lang || locale || undefined,
707
- amp: true && inAmpMode ? "" : undefined,
708
- "data-ampdevmode": true && inAmpMode && "production" !== "production" ? 0 : undefined
709
- }));
710
- }
711
- function Main() {
712
- const { docComponentsRendered } = (0, _react).useContext(_htmlContext.HtmlContext);
713
- docComponentsRendered.Main = true;
714
- // @ts-ignore
715
- return /*#__PURE__*/ _react.default.createElement("next-js-internal-body-render-target", null);
716
- }
717
- // Add a special property to the built-in `Document` component so later we can
718
- // identify if a user customized `Document` is used or not.
719
- const InternalFunctionDocument = function InternalFunctionDocument() {
720
- return /*#__PURE__*/ _react.default.createElement(Html, null, /*#__PURE__*/ _react.default.createElement(Head, null), /*#__PURE__*/ _react.default.createElement("body", null, /*#__PURE__*/ _react.default.createElement(Main, null), /*#__PURE__*/ _react.default.createElement(NextScript, null)));
721
- };
722
- Document[_constants.NEXT_BUILTIN_DOCUMENT] = InternalFunctionDocument; //# sourceMappingURL=_document.js.map
723
-
724
-
725
- /***/ }),
726
-
727
- /***/ 80676:
728
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
729
-
730
- "use strict";
731
-
732
- Object.defineProperty(exports, "__esModule", ({
733
- value: true
734
- }));
735
- exports["default"] = isError;
736
- exports.getProperError = getProperError;
737
- var _isPlainObject = __webpack_require__(78524);
738
- function isError(err) {
739
- return typeof err === "object" && err !== null && "name" in err && "message" in err;
740
- }
741
- function getProperError(err) {
742
- if (isError(err)) {
743
- return err;
744
- }
745
- if (false) {}
746
- return new Error((0, _isPlainObject).isPlainObject(err) ? JSON.stringify(err) : err + "");
747
- }
748
-
749
- //# sourceMappingURL=is-error.js.map
750
-
751
- /***/ }),
752
-
753
- /***/ 95955:
754
- /***/ ((__unused_webpack_module, exports) => {
755
-
756
- "use strict";
757
- var __webpack_unused_export__;
758
-
759
- __webpack_unused_export__ = ({
760
- value: true
761
- });
762
- exports.Z = prettyBytes;
763
- function prettyBytes(number, options) {
764
- if (!Number.isFinite(number)) {
765
- throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
766
- }
767
- options = Object.assign({}, options);
768
- if (options.signed && number === 0) {
769
- return " 0 B";
770
- }
771
- const isNegative = number < 0;
772
- const prefix = isNegative ? "-" : options.signed ? "+" : "";
773
- if (isNegative) {
774
- number = -number;
775
- }
776
- if (number < 1) {
777
- const numberString = toLocaleString(number, options.locale);
778
- return prefix + numberString + " B";
779
- }
780
- const exponent = Math.min(Math.floor(Math.log10(number) / 3), UNITS.length - 1);
781
- number = Number((number / Math.pow(1000, exponent)).toPrecision(3));
782
- const numberString = toLocaleString(number, options.locale);
783
- const unit = UNITS[exponent];
784
- return prefix + numberString + " " + unit;
785
- }
786
- /*
787
- MIT License
788
-
789
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
790
-
791
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
792
-
793
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
794
-
795
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
796
- */ const UNITS = [
797
- "B",
798
- "kB",
799
- "MB",
800
- "GB",
801
- "TB",
802
- "PB",
803
- "EB",
804
- "ZB",
805
- "YB"
806
- ];
807
- /*
808
- Formats the given number using `Number#toLocaleString`.
809
- - If locale is a string, the value is expected to be a locale-key (for example: `de`).
810
- - If locale is true, the system default locale is used for translation.
811
- - If no value for locale is specified, the number is returned unmodified.
812
- */ const toLocaleString = (number, locale)=>{
813
- let result = number;
814
- if (typeof locale === "string") {
815
- result = number.toLocaleString(locale);
816
- } else if (locale === true) {
817
- result = number.toLocaleString();
818
- }
819
- return result;
820
- };
821
-
822
- //# sourceMappingURL=pretty-bytes.js.map
823
-
824
- /***/ }),
825
-
826
- /***/ 56859:
827
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
828
-
829
- module.exports = __webpack_require__(82940)
830
-
831
-
832
- /***/ })
833
-
834
- };
835
- ;