@shriyanss/js-recon 1.1.0-beta.1 → 1.1.0-beta.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 (120) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  3. package/.github/workflows/{prettier.yaml → build-and-prettify.yaml} +23 -2
  4. package/.github/workflows/npm-publish.yml +2 -2
  5. package/CHANGELOG.md +26 -0
  6. package/README.md +1 -0
  7. package/build/api_gateway/genReq.js +0 -3
  8. package/build/api_gateway/genReq.js.map +1 -1
  9. package/build/api_gateway/index.js +5 -7
  10. package/build/api_gateway/index.js.map +1 -1
  11. package/build/endpoints/gen_report/gen_markdown.js.map +1 -1
  12. package/build/endpoints/index.js.map +1 -1
  13. package/build/endpoints/next_js/client_jsFilesHref.js +1 -0
  14. package/build/endpoints/next_js/client_jsFilesHref.js.map +1 -1
  15. package/build/endpoints/next_js/client_jsonParse.js +5 -1
  16. package/build/endpoints/next_js/client_jsonParse.js.map +1 -1
  17. package/build/endpoints/next_js/client_subsequentRequests.js +2 -1
  18. package/build/endpoints/next_js/client_subsequentRequests.js.map +1 -1
  19. package/build/endpoints/next_js/getWebpacks.js +1 -0
  20. package/build/endpoints/next_js/getWebpacks.js.map +1 -1
  21. package/build/globalConfig.js +1 -1
  22. package/build/lazyLoad/globals.js +0 -3
  23. package/build/lazyLoad/globals.js.map +1 -1
  24. package/build/lazyLoad/index.js +0 -1
  25. package/build/lazyLoad/index.js.map +1 -1
  26. package/build/lazyLoad/next_js/next_GetJSScript.js.map +1 -1
  27. package/build/lazyLoad/next_js/next_GetLazyResources.js +1 -0
  28. package/build/lazyLoad/next_js/next_GetLazyResources.js.map +1 -1
  29. package/build/lazyLoad/next_js/next_SubsequentRequests.js.map +1 -1
  30. package/build/lazyLoad/nuxt_js/nuxt_astParse.js +1 -0
  31. package/build/lazyLoad/nuxt_js/nuxt_astParse.js.map +1 -1
  32. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +1 -0
  33. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js.map +1 -1
  34. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js +1 -0
  35. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js.map +1 -1
  36. package/build/map/next_js/getFetchInstances.js +5 -1
  37. package/build/map/next_js/getFetchInstances.js.map +1 -1
  38. package/build/map/next_js/getWebpackConnections.js +14 -3
  39. package/build/map/next_js/getWebpackConnections.js.map +1 -1
  40. package/build/map/next_js/interactive.js +4 -3
  41. package/build/map/next_js/interactive.js.map +1 -1
  42. package/build/map/next_js/interactive_helpers/commandHandler.js +179 -138
  43. package/build/map/next_js/interactive_helpers/commandHandler.js.map +1 -1
  44. package/build/map/next_js/interactive_helpers/commandHelpers.js +31 -3
  45. package/build/map/next_js/interactive_helpers/commandHelpers.js.map +1 -1
  46. package/build/map/next_js/interactive_helpers/helpMenu.js +2 -2
  47. package/build/map/next_js/interactive_helpers/helpMenu.js.map +1 -1
  48. package/build/map/next_js/interactive_helpers/printer.js +1 -1
  49. package/build/map/next_js/interactive_helpers/printer.js.map +1 -1
  50. package/build/map/next_js/interactive_helpers/ui.js +0 -1
  51. package/build/map/next_js/interactive_helpers/ui.js.map +1 -1
  52. package/build/map/next_js/resolveFetch.js.map +1 -1
  53. package/build/run/index.js +5 -0
  54. package/build/run/index.js.map +1 -1
  55. package/build/strings/index.js +6 -1
  56. package/build/strings/index.js.map +1 -1
  57. package/build/techDetect/index.js +6 -1
  58. package/build/techDetect/index.js.map +1 -1
  59. package/build/utility/makeReq.js +2 -2
  60. package/build/utility/makeReq.js.map +1 -1
  61. package/docs/CNAME +1 -0
  62. package/docs/interactive-mode.md +1 -0
  63. package/docs/robots.txt +2 -0
  64. package/package.json +2 -1
  65. package/.api_gateway_config.json +0 -1
  66. package/.resp_cache.json +0 -1
  67. package/.vscode/launch.json +0 -27
  68. package/endpoints.json +0 -77
  69. package/extracted_urls-openapi.json +0 -225
  70. package/extracted_urls-swagger.json +0 -225
  71. package/extracted_urls.json +0 -47
  72. package/extracted_urls.txt +0 -296
  73. package/mapped.json +0 -3413
  74. package/output/ss0x00.com/_next/data/k7xKVnxmboK4SktY2dZWt/index.json +0 -971
  75. package/output/ss0x00.com/_next/static/chunks/12.7e6d2ac6e1808fc2.js +0 -247
  76. package/output/ss0x00.com/_next/static/chunks/128.160aa801ef0445bc.js +0 -1074
  77. package/output/ss0x00.com/_next/static/chunks/132.55df84f7707fc278.js +0 -102
  78. package/output/ss0x00.com/_next/static/chunks/142.77038c55d9ec10ba.js +0 -96
  79. package/output/ss0x00.com/_next/static/chunks/215.321479e91d330bfa.js +0 -228
  80. package/output/ss0x00.com/_next/static/chunks/229.097c396d86b4a882.js +0 -458
  81. package/output/ss0x00.com/_next/static/chunks/257.5fd052aa4ef06ef9.js +0 -1327
  82. package/output/ss0x00.com/_next/static/chunks/268.72cb3779f66db70b.js +0 -10520
  83. package/output/ss0x00.com/_next/static/chunks/320.57d528b0e9bf86f0.js +0 -186
  84. package/output/ss0x00.com/_next/static/chunks/325.302a44b604c35f17.js +0 -88
  85. package/output/ss0x00.com/_next/static/chunks/328.e4a0307a4fddf318.js +0 -248
  86. package/output/ss0x00.com/_next/static/chunks/432.3621f17504ef18f2.js +0 -443
  87. package/output/ss0x00.com/_next/static/chunks/44.e90dd963003a3d43.js +0 -1094
  88. package/output/ss0x00.com/_next/static/chunks/442.8c054f100f9e5e50.js +0 -1082
  89. package/output/ss0x00.com/_next/static/chunks/460.f8db9a5142598e2c.js +0 -466
  90. package/output/ss0x00.com/_next/static/chunks/487.05ca55420459c002.js +0 -78
  91. package/output/ss0x00.com/_next/static/chunks/567.1909a6b0a920114b.js +0 -1374
  92. package/output/ss0x00.com/_next/static/chunks/586.802fc9214d87fb29.js +0 -752
  93. package/output/ss0x00.com/_next/static/chunks/620.a2a3a6b94d30a4c8.js +0 -1037
  94. package/output/ss0x00.com/_next/static/chunks/642.6b3e487c9604cbb8.js +0 -1628
  95. package/output/ss0x00.com/_next/static/chunks/673.e5d77887e5c6a68c.js +0 -1045
  96. package/output/ss0x00.com/_next/static/chunks/684.8b8e52baca70524b.js +0 -96
  97. package/output/ss0x00.com/_next/static/chunks/686.79480519e5ccfb77.js +0 -296
  98. package/output/ss0x00.com/_next/static/chunks/756.7a3878a2e6765be7.js +0 -504
  99. package/output/ss0x00.com/_next/static/chunks/761.7bea7516c5d22b2a.js +0 -1485
  100. package/output/ss0x00.com/_next/static/chunks/794.e079ef369b41a3c5.js +0 -1350
  101. package/output/ss0x00.com/_next/static/chunks/826.31ba213e1d023c68.js +0 -1031
  102. package/output/ss0x00.com/_next/static/chunks/847.d8397a73efc81848.js +0 -1068
  103. package/output/ss0x00.com/_next/static/chunks/848.5feaeee1e2624aea.js +0 -132
  104. package/output/ss0x00.com/_next/static/chunks/850.ecc7c3c3d787ee03.js +0 -1472
  105. package/output/ss0x00.com/_next/static/chunks/853.50b9eb60b7d0e83c.js +0 -1472
  106. package/output/ss0x00.com/_next/static/chunks/856.7a7bb6c3c7bfc2ba.js +0 -1320
  107. package/output/ss0x00.com/_next/static/chunks/859.df4bd45c03a65f53.js +0 -1306
  108. package/output/ss0x00.com/_next/static/chunks/867.e8633955a147c978.js +0 -541
  109. package/output/ss0x00.com/_next/static/chunks/921.c3123f20a4c8d53c.js +0 -96
  110. package/output/ss0x00.com/_next/static/chunks/932.25cb421c466c99cb.js +0 -999
  111. package/output/ss0x00.com/_next/static/chunks/framework-64ad27b21261a9ce.js +0 -9189
  112. package/output/ss0x00.com/_next/static/chunks/main-710ab85aa9a8f10d.js +0 -6583
  113. package/output/ss0x00.com/_next/static/chunks/pages/5D-af5a23529ce3c337.js +0 -486
  114. package/output/ss0x00.com/_next/static/chunks/pages/_app-c449865c8af1faa0.js +0 -39
  115. package/output/ss0x00.com/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -6383
  116. package/output/ss0x00.com/_next/static/chunks/webpack-efff35ee26971294.js +0 -271
  117. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_buildManifest.js +0 -8
  118. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_ssgManifest.js +0 -3
  119. package/output/ss0x00.com/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js +0 -82
  120. package/strings.json +0 -7407
@@ -1,1374 +0,0 @@
1
- // JS Source: https://ss0x00.com/_next/static/chunks/567.1909a6b0a920114b.js
2
- (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
- [567],
4
- {
5
- 6319: function (e, t, r) {
6
- "use strict";
7
- r.d(t, {
8
- Z: function () {
9
- return a;
10
- },
11
- });
12
- var n = r(5893);
13
- r(7294);
14
- var l = r(3967),
15
- i = r.n(l),
16
- o = r(9754);
17
- function a(e) {
18
- let { backgroundSize: t = "full", ...r } = e;
19
- return "inset" === t
20
- ? (0, n.jsx)(c, { ...r })
21
- : (0, n.jsx)(s, { ...r });
22
- }
23
- function c(e) {
24
- var t, r, l, a;
25
- let {
26
- type: c,
27
- elementId: s,
28
- colors: d = "colors-f",
29
- styles: u = {},
30
- children: p,
31
- } = e,
32
- f = c && c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
33
- return (0, n.jsx)("div", {
34
- id: s || null,
35
- className: i()(
36
- "sb-component",
37
- "sb-component-section",
38
- f && "sb-component-".concat(f),
39
- "flex",
40
- (0, o.G)({
41
- justifyContent:
42
- null !== (t = u.justifyContent) && void 0 !== t ? t : "center",
43
- }),
44
- u.margin,
45
- ),
46
- children: (0, n.jsx)("div", {
47
- className: i()(
48
- d,
49
- "flex",
50
- "flex-col",
51
- "justify-center",
52
- "relative",
53
- "w-full",
54
- (0, o.G)({
55
- width: null !== (r = u.width) && void 0 !== r ? r : "wide",
56
- }),
57
- (0, o.G)({
58
- height: null !== (l = u.height) && void 0 !== l ? l : "auto",
59
- }),
60
- null !== (a = u.padding) && void 0 !== a ? a : "py-12 px-4",
61
- u.borderColor,
62
- u.borderStyle ? (0, o.G)({ borderStyle: u.borderStyle }) : null,
63
- u.borderRadius
64
- ? (0, o.G)({ borderRadius: u.borderRadius })
65
- : null,
66
- ),
67
- style: {
68
- borderWidth: u.borderWidth
69
- ? "".concat(u.borderWidth, "px")
70
- : null,
71
- },
72
- children: (0, n.jsx)("div", {
73
- className: "relative w-full",
74
- children: p,
75
- }),
76
- }),
77
- });
78
- }
79
- function s(e) {
80
- var t, r, l, a;
81
- let {
82
- type: c,
83
- elementId: s,
84
- colors: d = "colors-f",
85
- styles: u = {},
86
- children: p,
87
- } = e,
88
- f = c && c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
89
- return (0, n.jsx)("div", {
90
- id: s || null,
91
- className: i()(
92
- "sb-component",
93
- "sb-component-section",
94
- f && "sb-component-".concat(f),
95
- d,
96
- "flex",
97
- "flex-col",
98
- "justify-center",
99
- (0, o.G)({
100
- height: null !== (t = u.height) && void 0 !== t ? t : "auto",
101
- }),
102
- u.margin,
103
- null !== (r = u.padding) && void 0 !== r ? r : "py-12 px-4",
104
- u.borderColor,
105
- u.borderStyle ? (0, o.G)({ borderStyle: u.borderStyle }) : null,
106
- u.borderRadius ? (0, o.G)({ borderRadius: u.borderRadius }) : null,
107
- ),
108
- style: {
109
- borderWidth: u.borderWidth ? "".concat(u.borderWidth, "px") : null,
110
- },
111
- children: (0, n.jsx)("div", {
112
- className: i()(
113
- "flex",
114
- "w-full",
115
- (0, o.G)({
116
- justifyContent:
117
- null !== (l = u.justifyContent) && void 0 !== l
118
- ? l
119
- : "center",
120
- }),
121
- ),
122
- children: (0, n.jsx)("div", {
123
- className: i()(
124
- "relative",
125
- "w-full",
126
- (0, o.G)({
127
- width: null !== (a = u.width) && void 0 !== a ? a : "wide",
128
- }),
129
- ),
130
- children: p,
131
- }),
132
- }),
133
- });
134
- }
135
- },
136
- 4567: function (e, t, r) {
137
- "use strict";
138
- (r.r(t),
139
- r.d(t, {
140
- default: function () {
141
- return s;
142
- },
143
- }));
144
- var n = r(5893);
145
- r(7294);
146
- var l = r(5576),
147
- i = r(3967),
148
- o = r.n(i),
149
- a = r(9754),
150
- c = r(6319);
151
- function s(e) {
152
- let {
153
- type: t,
154
- elementId: r,
155
- colors: l,
156
- variant: i,
157
- title: o,
158
- subtitle: a,
159
- text: s,
160
- styles: u = {},
161
- } = e;
162
- return (0, n.jsx)(c.Z, {
163
- type: t,
164
- elementId: r,
165
- colors: l,
166
- styles: u.self,
167
- children: (0, n.jsx)(d, {
168
- variant: i,
169
- title: o,
170
- subtitle: a,
171
- text: s,
172
- styles: u,
173
- }),
174
- });
175
- }
176
- function d(e) {
177
- let { variant: t = "variant-a", ...r } = e;
178
- switch (t) {
179
- case "variant-a":
180
- return (0, n.jsx)(u, { ...r });
181
- case "variant-b":
182
- return (0, n.jsx)(p, { ...r });
183
- default:
184
- return null;
185
- }
186
- }
187
- function u(e) {
188
- let { title: t, subtitle: r, text: i, styles: c = {} } = e;
189
- return (0, n.jsxs)("div", {
190
- children: [
191
- t &&
192
- (0, n.jsx)("h2", {
193
- className: o()(c.title ? (0, a.G)(c.title) : null),
194
- children: t,
195
- }),
196
- r &&
197
- (0, n.jsx)("p", {
198
- className: o()(
199
- "text-xl",
200
- "sm:text-2xl",
201
- c.subtitle ? (0, a.G)(c.subtitle) : null,
202
- { "mt-2": t },
203
- ),
204
- children: r,
205
- }),
206
- i &&
207
- (0, n.jsx)(l.ZP, {
208
- options: { forceBlock: !0, forceWrapper: !0 },
209
- className: o()(
210
- "sb-markdown",
211
- "sm:text-lg",
212
- c.text ? (0, a.G)(c.text) : null,
213
- { "mt-6": t || r },
214
- ),
215
- children: i,
216
- }),
217
- ],
218
- });
219
- }
220
- function p(e) {
221
- let { title: t, subtitle: r, text: i, styles: c = {} } = e;
222
- return (0, n.jsxs)("div", {
223
- className: "flex flex-wrap",
224
- children: [
225
- (t || r) &&
226
- (0, n.jsxs)("div", {
227
- className: o()("w-full", { "lg:w-1/3 lg:pr-3": i }),
228
- children: [
229
- t &&
230
- (0, n.jsx)("h2", {
231
- className: o()(c.title ? (0, a.G)(c.title) : null),
232
- children: t,
233
- }),
234
- r &&
235
- (0, n.jsx)("p", {
236
- className: o()(
237
- "text-xl",
238
- "sm:text-2xl",
239
- c.subtitle ? (0, a.G)(c.subtitle) : null,
240
- { "mt-2": t },
241
- ),
242
- children: r,
243
- }),
244
- ],
245
- }),
246
- i &&
247
- (0, n.jsx)("div", {
248
- className: o()("w-full", {
249
- "mt-12 lg:mt-0 lg:w-2/3 lg:pl-3": t || r,
250
- }),
251
- children: (0, n.jsx)(l.ZP, {
252
- options: { forceBlock: !0, forceWrapper: !0 },
253
- className: o()(
254
- "sb-markdown",
255
- "sm:text-lg",
256
- c.text ? (0, a.G)(c.text) : null,
257
- ),
258
- children: i,
259
- }),
260
- }),
261
- ],
262
- });
263
- }
264
- },
265
- 9754: function (e, t, r) {
266
- "use strict";
267
- r.d(t, {
268
- G: function () {
269
- return l;
270
- },
271
- });
272
- let n = {
273
- alignItems: {
274
- "flex-start": "items-start",
275
- "flex-end": "items-end",
276
- center: "items-center",
277
- },
278
- backgroundPosition: {
279
- bottom: "bg-bottom",
280
- center: "bg-center",
281
- left: "bg-left",
282
- "left-bottom": "bg-left-bottom",
283
- "left-top": "bg-left-top",
284
- right: "bg-right",
285
- "right-bottom": "bg-right-bottom",
286
- "right-top": "bg-right-top",
287
- top: "bg-top",
288
- },
289
- backgroundRepeat: {
290
- repeat: "bg-repeat",
291
- "repeat-x": "bg-repeat-x",
292
- "repeat-y": "bg-repeat-y",
293
- "no-repeat": "bg-no-repeat",
294
- },
295
- backgroundSize: {
296
- auto: "bg-auto",
297
- cover: "bg-cover",
298
- contain: "bg-contain",
299
- },
300
- borderRadius: {
301
- none: "rounded-none",
302
- "xx-small": "rounded-sm",
303
- "x-small": "rounded",
304
- small: "rounded-md",
305
- medium: "rounded-lg",
306
- large: "rounded-xl",
307
- "x-large": "rounded-2xl",
308
- "xx-large": "rounded-3xl",
309
- full: "rounded-full",
310
- },
311
- borderStyle: {
312
- none: "border-none",
313
- solid: "border-solid",
314
- dashed: "border-dashed",
315
- dotted: "border-dotted",
316
- double: "border-double",
317
- },
318
- fontStyle: { italic: "italic" },
319
- fontWeight: {
320
- 400: "font-normal",
321
- 500: "font-medium",
322
- 700: "font-bold",
323
- },
324
- height: { auto: "min-h-0", screen: "min-h-screen" },
325
- justifyContent: {
326
- "flex-start": "justify-start",
327
- "flex-end": "justify-end",
328
- center: "justify-center",
329
- },
330
- margin: function (e) {
331
- return Array.isArray(e)
332
- ? e.join(" ")
333
- : (console.warn(
334
- 'cannot convert "margin" style field value to class name',
335
- ),
336
- "");
337
- },
338
- padding: function (e) {
339
- return Array.isArray(e)
340
- ? e.join(" ")
341
- : (console.warn(
342
- 'cannot convert "padding" style field value to class name',
343
- ),
344
- "");
345
- },
346
- textAlign: {
347
- left: "text-left",
348
- center: "text-center",
349
- right: "text-right",
350
- justify: "text-justify",
351
- },
352
- textDecoration: {
353
- underline: "underline",
354
- "line-through": "line-through",
355
- },
356
- width: { narrow: "max-w-5xl", wide: "max-w-7xl", full: "max-w-full" },
357
- };
358
- function l(e) {
359
- return Object.entries(e)
360
- .map((e) => {
361
- let [t, r] = e;
362
- return t in n
363
- ? "function" == typeof n[t]
364
- ? n[t](r)
365
- : r in n[t]
366
- ? n[t][r]
367
- : void 0
368
- : r;
369
- })
370
- .join(" ");
371
- }
372
- },
373
- 3967: function (e, t) {
374
- var r;
375
- !(function () {
376
- "use strict";
377
- var n = {}.hasOwnProperty;
378
- function l() {
379
- for (var e = "", t = 0; t < arguments.length; t++) {
380
- var r = arguments[t];
381
- r &&
382
- (e = i(
383
- e,
384
- (function (e) {
385
- if ("string" == typeof e || "number" == typeof e) return e;
386
- if ("object" != typeof e) return "";
387
- if (Array.isArray(e)) return l.apply(null, e);
388
- if (
389
- e.toString !== Object.prototype.toString &&
390
- !e.toString.toString().includes("[native code]")
391
- )
392
- return e.toString();
393
- var t = "";
394
- for (var r in e) n.call(e, r) && e[r] && (t = i(t, r));
395
- return t;
396
- })(r),
397
- ));
398
- }
399
- return e;
400
- }
401
- function i(e, t) {
402
- return t ? (e ? e + " " + t : e + t) : e;
403
- }
404
- e.exports
405
- ? ((l.default = l), (e.exports = l))
406
- : void 0 !==
407
- (r = function () {
408
- return l;
409
- }.apply(t, [])) && (e.exports = r);
410
- })();
411
- },
412
- 5576: function (e, t, r) {
413
- "use strict";
414
- var n,
415
- l,
416
- i,
417
- o,
418
- a = r(7294);
419
- function c() {
420
- return (c = Object.assign
421
- ? Object.assign.bind()
422
- : function (e) {
423
- for (var t = 1; t < arguments.length; t++) {
424
- var r = arguments[t];
425
- for (var n in r)
426
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
427
- }
428
- return e;
429
- }).apply(this, arguments);
430
- }
431
- let s = ["children", "options"];
432
- (((n = i || (i = {})).blockQuote = "0"),
433
- (n.breakLine = "1"),
434
- (n.breakThematic = "2"),
435
- (n.codeBlock = "3"),
436
- (n.codeFenced = "4"),
437
- (n.codeInline = "5"),
438
- (n.footnote = "6"),
439
- (n.footnoteReference = "7"),
440
- (n.gfmTask = "8"),
441
- (n.heading = "9"),
442
- (n.headingSetext = "10"),
443
- (n.htmlBlock = "11"),
444
- (n.htmlComment = "12"),
445
- (n.htmlSelfClosing = "13"),
446
- (n.image = "14"),
447
- (n.link = "15"),
448
- (n.linkAngleBraceStyleDetector = "16"),
449
- (n.linkBareUrlDetector = "17"),
450
- (n.linkMailtoDetector = "18"),
451
- (n.newlineCoalescer = "19"),
452
- (n.orderedList = "20"),
453
- (n.paragraph = "21"),
454
- (n.ref = "22"),
455
- (n.refImage = "23"),
456
- (n.refLink = "24"),
457
- (n.table = "25"),
458
- (n.tableSeparator = "26"),
459
- (n.text = "27"),
460
- (n.textBolded = "28"),
461
- (n.textEmphasized = "29"),
462
- (n.textEscaped = "30"),
463
- (n.textMarked = "31"),
464
- (n.textStrikethroughed = "32"),
465
- (n.unorderedList = "33"),
466
- ((l = o || (o = {}))[(l.MAX = 0)] = "MAX"),
467
- (l[(l.HIGH = 1)] = "HIGH"),
468
- (l[(l.MED = 2)] = "MED"),
469
- (l[(l.LOW = 3)] = "LOW"),
470
- (l[(l.MIN = 4)] = "MIN"));
471
- let d = [
472
- "allowFullScreen",
473
- "allowTransparency",
474
- "autoComplete",
475
- "autoFocus",
476
- "autoPlay",
477
- "cellPadding",
478
- "cellSpacing",
479
- "charSet",
480
- "className",
481
- "classId",
482
- "colSpan",
483
- "contentEditable",
484
- "contextMenu",
485
- "crossOrigin",
486
- "encType",
487
- "formAction",
488
- "formEncType",
489
- "formMethod",
490
- "formNoValidate",
491
- "formTarget",
492
- "frameBorder",
493
- "hrefLang",
494
- "inputMode",
495
- "keyParams",
496
- "keyType",
497
- "marginHeight",
498
- "marginWidth",
499
- "maxLength",
500
- "mediaGroup",
501
- "minLength",
502
- "noValidate",
503
- "radioGroup",
504
- "readOnly",
505
- "rowSpan",
506
- "spellCheck",
507
- "srcDoc",
508
- "srcLang",
509
- "srcSet",
510
- "tabIndex",
511
- "useMap",
512
- ].reduce((e, t) => ((e[t.toLowerCase()] = t), e), { for: "htmlFor" }),
513
- u = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: "\xa0", quot: "“" },
514
- p = ["style", "script"],
515
- f =
516
- /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,
517
- h = /mailto:/i,
518
- m = /\n{2,}$/,
519
- g = /^(\s*>[\s\S]*?)(?=\n{2,})/,
520
- y = /^ *> ?/gm,
521
- x = /^ {2,}\n/,
522
- b = /^(?:( *[-*_])){3,} *(?:\n *)+\n/,
523
- k =
524
- /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,
525
- v = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,
526
- j = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
527
- w = /^(?:\n *)*\n/,
528
- S = /\r\n?/g,
529
- $ = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,
530
- C = /^\[\^([^\]]+)]/,
531
- E = /\f/g,
532
- A = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,
533
- N = /^\s*?\[(x|\s)\]/,
534
- R = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
535
- G = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
536
- O = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,
537
- L =
538
- /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,
539
- z = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,
540
- T = /^<!--[\s\S]*?(?:-->)/,
541
- W = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/,
542
- I =
543
- /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,
544
- M = /^\{.*\}$/,
545
- P = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
546
- Z = /^<([^ >]+@[^ >]+)>/,
547
- B = /^<([^ >]+:\/[^ >]+)>/,
548
- _ = /-([a-z])?/gi,
549
- U = /^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,
550
- D = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,
551
- H = /^!\[([^\]]*)\] ?\[([^\]]*)\]/,
552
- F = /^\[([^\]]*)\] ?\[([^\]]*)\]/,
553
- q = /(\[|\])/g,
554
- V = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,
555
- X = /\t/g,
556
- Q = /(^ *\||\| *$)/g,
557
- J = /^ *:-+: *$/,
558
- K = /^ *:-+ *$/,
559
- Y = /^ *-+: *$/,
560
- ee =
561
- "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",
562
- et = RegExp(`^([*_])\\1${ee}\\1\\1(?!\\1)`),
563
- er = RegExp(`^([*_])${ee}\\1(?!\\1|\\w)`),
564
- en = RegExp(`^==${ee}==`),
565
- el = RegExp(`^~~${ee}~~`),
566
- ei = /^\\([^0-9A-Za-z\s])/,
567
- eo =
568
- /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,
569
- ea = /^\n+/,
570
- ec = /^([ \t]*)/,
571
- es = /\\([^\\])/g,
572
- ed = / *\n+$/,
573
- eu = /(?:^|\n)( *)$/,
574
- ep = "(?:\\d+\\.)",
575
- ef = "(?:[*+-])";
576
- function eh(e) {
577
- return "( *)(" + (1 === e ? ep : ef) + ") +";
578
- }
579
- let em = eh(1),
580
- eg = eh(2);
581
- function ey(e) {
582
- return RegExp("^" + (1 === e ? em : eg));
583
- }
584
- let ex = ey(1),
585
- eb = ey(2);
586
- function ek(e) {
587
- return RegExp(
588
- "^" +
589
- (1 === e ? em : eg) +
590
- "[^\\n]*(?:\\n(?!\\1" +
591
- (1 === e ? ep : ef) +
592
- " )[^\\n]*)*(\\n|$)",
593
- "gm",
594
- );
595
- }
596
- let ev = ek(1),
597
- ej = ek(2);
598
- function ew(e) {
599
- let t = 1 === e ? ep : ef;
600
- return RegExp(
601
- "^( *)(" +
602
- t +
603
- ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" +
604
- t +
605
- " (?!" +
606
- t +
607
- " ))\\n*|\\s*\\n*$)",
608
- );
609
- }
610
- let eS = ew(1),
611
- e$ = ew(2);
612
- function eC(e, t) {
613
- let r = 1 === t,
614
- n = r ? eS : e$,
615
- l = r ? ev : ej,
616
- i = r ? ex : eb;
617
- return {
618
- match(e, t, r) {
619
- let l = eu.exec(r);
620
- return l && (t.list || (!t.inline && !t.simple))
621
- ? n.exec((e = l[1] + e))
622
- : null;
623
- },
624
- order: 1,
625
- parse(e, t, n) {
626
- let o = r ? +e[2] : void 0,
627
- a = e[0].replace(m, "\n").match(l),
628
- c = !1;
629
- return {
630
- items: a.map(function (e, r) {
631
- let l;
632
- let o = RegExp("^ {1," + i.exec(e)[0].length + "}", "gm"),
633
- s = e.replace(o, "").replace(i, ""),
634
- d = r === a.length - 1,
635
- u = -1 !== s.indexOf("\n\n") || (d && c);
636
- c = u;
637
- let p = n.inline,
638
- f = n.list;
639
- ((n.list = !0),
640
- u
641
- ? ((n.inline = !1), (l = s.replace(ed, "\n\n")))
642
- : ((n.inline = !0), (l = s.replace(ed, ""))));
643
- let h = t(l, n);
644
- return ((n.inline = p), (n.list = f), h);
645
- }),
646
- ordered: r,
647
- start: o,
648
- };
649
- },
650
- render: (t, r, n) =>
651
- e(
652
- t.ordered ? "ol" : "ul",
653
- { key: n.key, start: "20" === t.type ? t.start : void 0 },
654
- t.items.map(function (t, l) {
655
- return e("li", { key: l }, r(t, n));
656
- }),
657
- ),
658
- };
659
- }
660
- let eE = RegExp(
661
- "^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)",
662
- ),
663
- eA = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,
664
- eN = [g, k, v, R, O, G, T, U, ev, eS, ej, e$],
665
- eR = [...eN, /^[^\n]+(?: \n|\n{2,})/, L, I];
666
- function eG(e) {
667
- return e
668
- .replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a")
669
- .replace(/[çÇ]/g, "c")
670
- .replace(/[ðÐ]/g, "d")
671
- .replace(/[ÈÉÊËéèêë]/g, "e")
672
- .replace(/[ÏïÎîÍíÌì]/g, "i")
673
- .replace(/[Ññ]/g, "n")
674
- .replace(/[øØœŒÕõÔôÓóÒò]/g, "o")
675
- .replace(/[ÜüÛûÚúÙù]/g, "u")
676
- .replace(/[ŸÿÝý]/g, "y")
677
- .replace(/[^a-z0-9- ]/gi, "")
678
- .replace(/ /gi, "-")
679
- .toLowerCase();
680
- }
681
- function eO(e) {
682
- return Y.test(e)
683
- ? "right"
684
- : J.test(e)
685
- ? "center"
686
- : K.test(e)
687
- ? "left"
688
- : null;
689
- }
690
- function eL(e, t, r, n) {
691
- let l = r.inTable;
692
- r.inTable = !0;
693
- let i = e
694
- .trim()
695
- .split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/)
696
- .reduce(
697
- (e, l) => (
698
- "|" === l.trim()
699
- ? e.push(n ? { type: "26" } : { type: "27", text: l })
700
- : "" !== l && e.push.apply(e, t(l, r)),
701
- e
702
- ),
703
- [],
704
- );
705
- r.inTable = l;
706
- let o = [[]];
707
- return (
708
- i.forEach(function (e, t) {
709
- "26" === e.type
710
- ? 0 !== t && t !== i.length - 1 && o.push([])
711
- : ("27" !== e.type ||
712
- (null != i[t + 1] && "26" !== i[t + 1].type) ||
713
- (e.text = e.text.trimEnd()),
714
- o[o.length - 1].push(e));
715
- }),
716
- o
717
- );
718
- }
719
- function ez(e, t, r) {
720
- r.inline = !0;
721
- let n = e[2] ? e[2].replace(Q, "").split("|").map(eO) : [],
722
- l = e[3]
723
- ? e[3]
724
- .trim()
725
- .split("\n")
726
- .map(function (e) {
727
- return eL(e, t, r, !0);
728
- })
729
- : [],
730
- i = eL(e[1], t, r, !!l.length);
731
- return (
732
- (r.inline = !1),
733
- l.length
734
- ? { align: n, cells: l, header: i, type: "25" }
735
- : { children: i, type: "21" }
736
- );
737
- }
738
- function eT(e, t) {
739
- return null == e.align[t] ? {} : { textAlign: e.align[t] };
740
- }
741
- function eW(e) {
742
- return function (t, r) {
743
- return r.inline ? e.exec(t) : null;
744
- };
745
- }
746
- function eI(e) {
747
- return function (t, r) {
748
- return r.inline || r.simple ? e.exec(t) : null;
749
- };
750
- }
751
- function eM(e) {
752
- return function (t, r) {
753
- return r.inline || r.simple ? null : e.exec(t);
754
- };
755
- }
756
- function eP(e) {
757
- return function (t) {
758
- return e.exec(t);
759
- };
760
- }
761
- function eZ(e, t, r) {
762
- if (t.inline || t.simple || (r && !r.endsWith("\n"))) return null;
763
- let n = "";
764
- e.split("\n").every(
765
- (e) => !eN.some((t) => t.test(e)) && ((n += e + "\n"), e.trim()),
766
- );
767
- let l = n.trimEnd();
768
- return "" == l ? null : [n, l];
769
- }
770
- function eB(e) {
771
- try {
772
- if (
773
- decodeURIComponent(e)
774
- .replace(/[^A-Za-z0-9/:]/g, "")
775
- .match(/^\s*(javascript|vbscript|data(?!:image)):/i)
776
- )
777
- return;
778
- } catch (e) {
779
- return null;
780
- }
781
- return e;
782
- }
783
- function e_(e) {
784
- return e.replace(es, "$1");
785
- }
786
- function eU(e, t, r) {
787
- let n = r.inline || !1,
788
- l = r.simple || !1;
789
- ((r.inline = !0), (r.simple = !0));
790
- let i = e(t, r);
791
- return ((r.inline = n), (r.simple = l), i);
792
- }
793
- function eD(e, t, r) {
794
- let n = r.inline || !1;
795
- r.inline = !1;
796
- let l = e(t, r);
797
- return ((r.inline = n), l);
798
- }
799
- let eH = (e, t, r) => ({ children: eU(t, e[1], r) });
800
- function eF() {
801
- return {};
802
- }
803
- function eq() {
804
- return null;
805
- }
806
- function eV(e, t, r) {
807
- let n = e,
808
- l = t.split(".");
809
- for (; l.length && void 0 !== (n = n[l[0]]); ) l.shift();
810
- return n || r;
811
- }
812
- t.ZP = (e) => {
813
- let { children: t = "", options: r } = e,
814
- n = (function (e, t) {
815
- if (null == e) return {};
816
- var r,
817
- n,
818
- l = {},
819
- i = Object.keys(e);
820
- for (n = 0; n < i.length; n++)
821
- t.indexOf((r = i[n])) >= 0 || (l[r] = e[r]);
822
- return l;
823
- })(e, s);
824
- return a.cloneElement(
825
- (function (e = "", t = {}) {
826
- var r, n;
827
- let l;
828
- ((t.overrides = t.overrides || {}),
829
- (t.slugify = t.slugify || eG),
830
- (t.namedCodesToUnicode = t.namedCodesToUnicode
831
- ? c({}, u, t.namedCodesToUnicode)
832
- : u));
833
- let i = t.createElement || a.createElement;
834
- function o(e, r, ...n) {
835
- let l = eV(t.overrides, `${e}.props`, {});
836
- return i(
837
- (function (e, t) {
838
- let r = eV(t, e);
839
- return r
840
- ? "function" == typeof r ||
841
- ("object" == typeof r && "render" in r)
842
- ? r
843
- : eV(t, `${e}.component`, e)
844
- : e;
845
- })(e, t.overrides),
846
- c({}, r, l, {
847
- className:
848
- (function (...e) {
849
- return e.filter(Boolean).join(" ");
850
- })(null == r ? void 0 : r.className, l.className) || void 0,
851
- }),
852
- ...n,
853
- );
854
- }
855
- function s(e) {
856
- let r;
857
- e = e.replace(A, "");
858
- let n = !1;
859
- t.forceInline ? (n = !0) : t.forceBlock || (n = !1 === V.test(e));
860
- let l = ee(
861
- Y(
862
- n
863
- ? e
864
- : `${e.trimEnd().replace(ea, "")}
865
-
866
- `,
867
- { inline: n },
868
- ),
869
- );
870
- for (
871
- ;
872
- "string" == typeof l[l.length - 1] && !l[l.length - 1].trim();
873
-
874
- )
875
- l.pop();
876
- if (null === t.wrapper) return l;
877
- let i = t.wrapper || (n ? "span" : "div");
878
- if (l.length > 1 || t.forceWrapper) r = l;
879
- else {
880
- if (1 === l.length)
881
- return "string" == typeof (r = l[0])
882
- ? o("span", { key: "outer" }, r)
883
- : r;
884
- r = null;
885
- }
886
- return a.createElement(i, { key: "outer" }, r);
887
- }
888
- function m(e) {
889
- let t = e.match(f);
890
- return t
891
- ? t.reduce(function (e, t, r) {
892
- let n = t.indexOf("=");
893
- if (-1 !== n) {
894
- var l, i;
895
- let o = (-1 !== (l = t.slice(0, n)).indexOf("-") &&
896
- null === l.match(W) &&
897
- (l = l.replace(_, function (e, t) {
898
- return t.toUpperCase();
899
- })),
900
- l).trim(),
901
- c = (function (e) {
902
- let t = e[0];
903
- return ('"' === t || "'" === t) &&
904
- e.length >= 2 &&
905
- e[e.length - 1] === t
906
- ? e.slice(1, -1)
907
- : e;
908
- })(t.slice(n + 1).trim()),
909
- u = d[o] || o,
910
- p = (e[u] =
911
- ((i = c),
912
- "style" === o
913
- ? i.split(/;\s?/).reduce(function (e, t) {
914
- let r = t.slice(0, t.indexOf(":"));
915
- return (
916
- (e[
917
- r
918
- .trim()
919
- .replace(/(-[a-z])/g, (e) =>
920
- e[1].toUpperCase(),
921
- )
922
- ] = t.slice(r.length + 1).trim()),
923
- e
924
- );
925
- }, {})
926
- : "href" === o || "src" === o
927
- ? eB(i)
928
- : (i.match(M) && (i = i.slice(1, i.length - 1)),
929
- "true" === i || ("false" !== i && i))));
930
- "string" == typeof p &&
931
- (L.test(p) || I.test(p)) &&
932
- (e[u] = a.cloneElement(s(p.trim()), { key: r }));
933
- } else "style" !== t && (e[d[t] || t] = !0);
934
- return e;
935
- }, {})
936
- : null;
937
- }
938
- let Q = [],
939
- J = {},
940
- K = {
941
- 0: {
942
- match: eM(g),
943
- order: 1,
944
- parse: (e, t, r) => ({ children: t(e[0].replace(y, ""), r) }),
945
- render: (e, t, r) =>
946
- o("blockquote", { key: r.key }, t(e.children, r)),
947
- },
948
- 1: {
949
- match: eP(x),
950
- order: 1,
951
- parse: eF,
952
- render: (e, t, r) => o("br", { key: r.key }),
953
- },
954
- 2: {
955
- match: eM(b),
956
- order: 1,
957
- parse: eF,
958
- render: (e, t, r) => o("hr", { key: r.key }),
959
- },
960
- 3: {
961
- match: eM(v),
962
- order: 0,
963
- parse: (e) => ({
964
- lang: void 0,
965
- text: e[0].replace(/^ {4}/gm, "").replace(/\n+$/, ""),
966
- }),
967
- render: (e, t, r) =>
968
- o(
969
- "pre",
970
- { key: r.key },
971
- o(
972
- "code",
973
- c({}, e.attrs, {
974
- className: e.lang ? `lang-${e.lang}` : "",
975
- }),
976
- e.text,
977
- ),
978
- ),
979
- },
980
- 4: {
981
- match: eM(k),
982
- order: 0,
983
- parse: (e) => ({
984
- attrs: m(e[3] || ""),
985
- lang: e[2] || void 0,
986
- text: e[4],
987
- type: "3",
988
- }),
989
- },
990
- 5: {
991
- match: eI(j),
992
- order: 3,
993
- parse: (e) => ({ text: e[2] }),
994
- render: (e, t, r) => o("code", { key: r.key }, e.text),
995
- },
996
- 6: {
997
- match: eM($),
998
- order: 0,
999
- parse: (e) => (
1000
- Q.push({ footnote: e[2], identifier: e[1] }),
1001
- {}
1002
- ),
1003
- render: eq,
1004
- },
1005
- 7: {
1006
- match: eW(C),
1007
- order: 1,
1008
- parse: (e) => ({ target: `#${t.slugify(e[1])}`, text: e[1] }),
1009
- render: (e, t, r) =>
1010
- o(
1011
- "a",
1012
- { key: r.key, href: eB(e.target) },
1013
- o("sup", { key: r.key }, e.text),
1014
- ),
1015
- },
1016
- 8: {
1017
- match: eW(N),
1018
- order: 1,
1019
- parse: (e) => ({ completed: "x" === e[1].toLowerCase() }),
1020
- render: (e, t, r) =>
1021
- o("input", {
1022
- checked: e.completed,
1023
- key: r.key,
1024
- readOnly: !0,
1025
- type: "checkbox",
1026
- }),
1027
- },
1028
- 9: {
1029
- match: eM(t.enforceAtxHeadings ? G : R),
1030
- order: 1,
1031
- parse: (e, r, n) => ({
1032
- children: eU(r, e[2], n),
1033
- id: t.slugify(e[2]),
1034
- level: e[1].length,
1035
- }),
1036
- render: (e, t, r) =>
1037
- o(
1038
- `h${e.level}`,
1039
- { id: e.id, key: r.key },
1040
- t(e.children, r),
1041
- ),
1042
- },
1043
- 10: {
1044
- match: eM(O),
1045
- order: 0,
1046
- parse: (e, t, r) => ({
1047
- children: eU(t, e[1], r),
1048
- level: "=" === e[2] ? 1 : 2,
1049
- type: "9",
1050
- }),
1051
- },
1052
- 11: {
1053
- match: eP(L),
1054
- order: 1,
1055
- parse(e, t, r) {
1056
- let [, n] = e[3].match(ec),
1057
- l = RegExp(`^${n}`, "gm"),
1058
- i = e[3].replace(l, ""),
1059
- o = eR.some((e) => e.test(i)) ? eD : eU,
1060
- a = e[1].toLowerCase(),
1061
- c = -1 !== p.indexOf(a),
1062
- s = {
1063
- attrs: m(e[2]),
1064
- noInnerParse: c,
1065
- tag: (c ? a : e[1]).trim(),
1066
- };
1067
- return (
1068
- (r.inAnchor = r.inAnchor || "a" === a),
1069
- c ? (s.text = e[3]) : (s.children = o(t, i, r)),
1070
- (r.inAnchor = !1),
1071
- s
1072
- );
1073
- },
1074
- render: (e, t, r) =>
1075
- o(
1076
- e.tag,
1077
- c({ key: r.key }, e.attrs),
1078
- e.text || t(e.children, r),
1079
- ),
1080
- },
1081
- 13: {
1082
- match: eP(I),
1083
- order: 1,
1084
- parse: (e) => ({ attrs: m(e[2] || ""), tag: e[1].trim() }),
1085
- render: (e, t, r) => o(e.tag, c({}, e.attrs, { key: r.key })),
1086
- },
1087
- 12: { match: eP(T), order: 1, parse: () => ({}), render: eq },
1088
- 14: {
1089
- match: eI(eA),
1090
- order: 1,
1091
- parse: (e) => ({ alt: e[1], target: e_(e[2]), title: e[3] }),
1092
- render: (e, t, r) =>
1093
- o("img", {
1094
- key: r.key,
1095
- alt: e.alt || void 0,
1096
- title: e.title || void 0,
1097
- src: eB(e.target),
1098
- }),
1099
- },
1100
- 15: {
1101
- match: eW(eE),
1102
- order: 3,
1103
- parse: (e, t, r) => ({
1104
- children: (function (e, t, r) {
1105
- let n = r.inline || !1,
1106
- l = r.simple || !1;
1107
- ((r.inline = !1), (r.simple = !0));
1108
- let i = e(t, r);
1109
- return ((r.inline = n), (r.simple = l), i);
1110
- })(t, e[1], r),
1111
- target: e_(e[2]),
1112
- title: e[3],
1113
- }),
1114
- render: (e, t, r) =>
1115
- o(
1116
- "a",
1117
- { key: r.key, href: eB(e.target), title: e.title },
1118
- t(e.children, r),
1119
- ),
1120
- },
1121
- 16: {
1122
- match: eW(B),
1123
- order: 0,
1124
- parse: (e) => ({
1125
- children: [{ text: e[1], type: "27" }],
1126
- target: e[1],
1127
- type: "15",
1128
- }),
1129
- },
1130
- 17: {
1131
- match: (e, t) => (t.inAnchor ? null : eW(P)(e, t)),
1132
- order: 0,
1133
- parse: (e) => ({
1134
- children: [{ text: e[1], type: "27" }],
1135
- target: e[1],
1136
- title: void 0,
1137
- type: "15",
1138
- }),
1139
- },
1140
- 18: {
1141
- match: eW(Z),
1142
- order: 0,
1143
- parse(e) {
1144
- let t = e[1],
1145
- r = e[1];
1146
- return (
1147
- h.test(r) || (r = "mailto:" + r),
1148
- {
1149
- children: [
1150
- { text: t.replace("mailto:", ""), type: "27" },
1151
- ],
1152
- target: r,
1153
- type: "15",
1154
- }
1155
- );
1156
- },
1157
- },
1158
- 20: eC(o, 1),
1159
- 33: eC(o, 2),
1160
- 19: { match: eM(w), order: 3, parse: eF, render: () => "\n" },
1161
- 21: {
1162
- match: eZ,
1163
- order: 3,
1164
- parse: eH,
1165
- render: (e, t, r) => o("p", { key: r.key }, t(e.children, r)),
1166
- },
1167
- 22: {
1168
- match: eW(D),
1169
- order: 0,
1170
- parse: (e) => ((J[e[1]] = { target: e[2], title: e[4] }), {}),
1171
- render: eq,
1172
- },
1173
- 23: {
1174
- match: eI(H),
1175
- order: 0,
1176
- parse: (e) => ({ alt: e[1] || void 0, ref: e[2] }),
1177
- render: (e, t, r) =>
1178
- J[e.ref]
1179
- ? o("img", {
1180
- key: r.key,
1181
- alt: e.alt,
1182
- src: eB(J[e.ref].target),
1183
- title: J[e.ref].title,
1184
- })
1185
- : null,
1186
- },
1187
- 24: {
1188
- match: eW(F),
1189
- order: 0,
1190
- parse: (e, t, r) => ({
1191
- children: t(e[1], r),
1192
- fallbackChildren: t(e[0].replace(q, "\\$1"), r),
1193
- ref: e[2],
1194
- }),
1195
- render: (e, t, r) =>
1196
- J[e.ref]
1197
- ? o(
1198
- "a",
1199
- {
1200
- key: r.key,
1201
- href: eB(J[e.ref].target),
1202
- title: J[e.ref].title,
1203
- },
1204
- t(e.children, r),
1205
- )
1206
- : o("span", { key: r.key }, t(e.fallbackChildren, r)),
1207
- },
1208
- 25: {
1209
- match: eM(U),
1210
- order: 1,
1211
- parse: ez,
1212
- render: (e, t, r) =>
1213
- o(
1214
- "table",
1215
- { key: r.key },
1216
- o(
1217
- "thead",
1218
- null,
1219
- o(
1220
- "tr",
1221
- null,
1222
- e.header.map(function (n, l) {
1223
- return o(
1224
- "th",
1225
- { key: l, style: eT(e, l) },
1226
- t(n, r),
1227
- );
1228
- }),
1229
- ),
1230
- ),
1231
- o(
1232
- "tbody",
1233
- null,
1234
- e.cells.map(function (n, l) {
1235
- return o(
1236
- "tr",
1237
- { key: l },
1238
- n.map(function (n, l) {
1239
- return o(
1240
- "td",
1241
- { key: l, style: eT(e, l) },
1242
- t(n, r),
1243
- );
1244
- }),
1245
- );
1246
- }),
1247
- ),
1248
- ),
1249
- },
1250
- 27: {
1251
- match: eP(eo),
1252
- order: 4,
1253
- parse: (e) => ({
1254
- text: e[0].replace(z, (e, r) =>
1255
- t.namedCodesToUnicode[r] ? t.namedCodesToUnicode[r] : e,
1256
- ),
1257
- }),
1258
- render: (e) => e.text,
1259
- },
1260
- 28: {
1261
- match: eI(et),
1262
- order: 2,
1263
- parse: (e, t, r) => ({ children: t(e[2], r) }),
1264
- render: (e, t, r) =>
1265
- o("strong", { key: r.key }, t(e.children, r)),
1266
- },
1267
- 29: {
1268
- match: eI(er),
1269
- order: 3,
1270
- parse: (e, t, r) => ({ children: t(e[2], r) }),
1271
- render: (e, t, r) =>
1272
- o("em", { key: r.key }, t(e.children, r)),
1273
- },
1274
- 30: {
1275
- match: eI(ei),
1276
- order: 1,
1277
- parse: (e) => ({ text: e[1], type: "27" }),
1278
- },
1279
- 31: {
1280
- match: eI(en),
1281
- order: 3,
1282
- parse: eH,
1283
- render: (e, t, r) =>
1284
- o("mark", { key: r.key }, t(e.children, r)),
1285
- },
1286
- 32: {
1287
- match: eI(el),
1288
- order: 3,
1289
- parse: eH,
1290
- render: (e, t, r) =>
1291
- o("del", { key: r.key }, t(e.children, r)),
1292
- },
1293
- };
1294
- !0 === t.disableParsingRawHTML && (delete K[11], delete K[13]);
1295
- let Y =
1296
- ((l = Object.keys(K)).sort(function (e, t) {
1297
- let r = K[e].order,
1298
- n = K[t].order;
1299
- return r !== n ? r - n : e < t ? -1 : 1;
1300
- }),
1301
- function (e, t) {
1302
- return (function e(t, r) {
1303
- let n = [],
1304
- i = "";
1305
- for (; t; ) {
1306
- let o = 0;
1307
- for (; o < l.length; ) {
1308
- let a = l[o],
1309
- c = K[a],
1310
- s = c.match(t, r, i);
1311
- if (s) {
1312
- let l = s[0];
1313
- t = t.substring(l.length);
1314
- let o = c.parse(s, e, r);
1315
- (null == o.type && (o.type = a), n.push(o), (i = l));
1316
- break;
1317
- }
1318
- o++;
1319
- }
1320
- }
1321
- return n;
1322
- })(e.replace(S, "\n").replace(E, "").replace(X, " "), t);
1323
- }),
1324
- ee =
1325
- ((n = t.renderRule),
1326
- (r = function (e, t, r) {
1327
- let l = K[e.type].render;
1328
- return n ? n(() => l(e, t, r), e, t, r) : l(e, t, r);
1329
- }),
1330
- function e(t, n = {}) {
1331
- if (Array.isArray(t)) {
1332
- let r = n.key,
1333
- l = [],
1334
- i = !1;
1335
- for (let r = 0; r < t.length; r++) {
1336
- n.key = r;
1337
- let o = e(t[r], n),
1338
- a = "string" == typeof o;
1339
- (a && i
1340
- ? (l[l.length - 1] += o)
1341
- : null !== o && l.push(o),
1342
- (i = a));
1343
- }
1344
- return ((n.key = r), l);
1345
- }
1346
- return r(t, e, n);
1347
- }),
1348
- es = s(e);
1349
- return Q.length
1350
- ? o(
1351
- "div",
1352
- null,
1353
- es,
1354
- o(
1355
- "footer",
1356
- { key: "footer" },
1357
- Q.map(function (e) {
1358
- return o(
1359
- "div",
1360
- { id: t.slugify(e.identifier), key: e.identifier },
1361
- e.identifier,
1362
- ee(Y(e.footnote, { inline: !0 })),
1363
- );
1364
- }),
1365
- ),
1366
- )
1367
- : es;
1368
- })(t, r),
1369
- n,
1370
- );
1371
- };
1372
- },
1373
- },
1374
- ]);