@andre1502/react-utilities 1.0.6 → 1.0.8

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 (200) hide show
  1. package/README.md +74 -51
  2. package/dist/EnvironmentEnum-F4hjulGN.js +12 -0
  3. package/dist/EnvironmentEnum-F4hjulGN.js.map +1 -0
  4. package/dist/Utils-Bb2yUYbQ.js +14 -0
  5. package/dist/Utils-Bb2yUYbQ.js.map +1 -0
  6. package/dist/config-cli-CY_z5CYp.js +1493 -0
  7. package/dist/config-cli-CY_z5CYp.js.map +1 -0
  8. package/dist/config-cli.js +3 -229
  9. package/dist/enums/CurrencySymbolEnum.d.ts +6 -5
  10. package/dist/enums/DeviceEnum.d.ts +5 -4
  11. package/dist/enums/EnvironmentEnum.d.ts +8 -5
  12. package/dist/format-DOgTlvp7.js +65549 -0
  13. package/dist/format-DOgTlvp7.js.map +1 -0
  14. package/dist/format.d.ts +26 -26
  15. package/dist/format.js +2 -55
  16. package/dist/hooks-BBCIHhac.js +78 -0
  17. package/dist/hooks-BBCIHhac.js.map +1 -0
  18. package/dist/hooks.js +2 -86
  19. package/dist/i18n-CJthsaWo.js +1819 -0
  20. package/dist/i18n-CJthsaWo.js.map +1 -0
  21. package/dist/i18n.js +4 -28
  22. package/dist/index-cli.d.ts +0 -1
  23. package/dist/index-cli.js +3 -28
  24. package/dist/index-rn.js +6 -39
  25. package/dist/index.js +7 -61
  26. package/dist/sentry-rn-DNJphpGY.js +743 -0
  27. package/dist/sentry-rn-DNJphpGY.js.map +1 -0
  28. package/dist/sentry-rn.js +2 -28
  29. package/dist/sentry.js +39 -26
  30. package/dist/sentry.js.map +1 -1
  31. package/dist/utils.js +45 -37
  32. package/dist/utils.js.map +1 -1
  33. package/package.json +56 -86
  34. package/src/Config/Config.ts +1 -1
  35. package/src/Config/GoogleAuth.ts +1 -1
  36. package/src/Sentry/React.ts +2 -4
  37. package/src/Sentry/ReactNative.ts +2 -4
  38. package/src/enums/CurrencySymbolEnum.ts +8 -5
  39. package/src/enums/DeviceEnum.ts +6 -4
  40. package/src/enums/EnvironmentEnum.ts +10 -5
  41. package/src/format.ts +32 -32
  42. package/src/index-cli.ts +0 -1
  43. package/dist/Config/Config.js +0 -249
  44. package/dist/Config/Config.js.map +0 -1
  45. package/dist/Config/GoogleAuth.js +0 -68
  46. package/dist/Config/GoogleAuth.js.map +0 -1
  47. package/dist/Config/Locales.js +0 -62
  48. package/dist/Config/Locales.js.map +0 -1
  49. package/dist/Config/Output.js +0 -36
  50. package/dist/Config/Output.js.map +0 -1
  51. package/dist/Config/Sitemap.js +0 -72
  52. package/dist/Config/Sitemap.js.map +0 -1
  53. package/dist/EnvironmentEnum-BjXsfSRZ.js +0 -9
  54. package/dist/EnvironmentEnum-BjXsfSRZ.js.map +0 -1
  55. package/dist/EnvironmentEnum-UcQ6Il1O.js +0 -9
  56. package/dist/EnvironmentEnum-UcQ6Il1O.js.map +0 -1
  57. package/dist/Format/NumberFormat.js +0 -77
  58. package/dist/Format/NumberFormat.js.map +0 -1
  59. package/dist/Format/NumberParser.js +0 -51
  60. package/dist/Format/NumberParser.js.map +0 -1
  61. package/dist/Hooks/useDevice.js +0 -47
  62. package/dist/Hooks/useDevice.js.map +0 -1
  63. package/dist/Hooks/useSound.js +0 -47
  64. package/dist/Hooks/useSound.js.map +0 -1
  65. package/dist/Hooks/useWebSocket.js +0 -120
  66. package/dist/Hooks/useWebSocket.js.map +0 -1
  67. package/dist/I18n/I18n.js +0 -134
  68. package/dist/I18n/I18n.js.map +0 -1
  69. package/dist/NumberFormat-CvvBWhHc.js +0 -89
  70. package/dist/NumberFormat-CvvBWhHc.js.map +0 -1
  71. package/dist/NumberFormat-glmpbk7E.js +0 -94
  72. package/dist/NumberFormat-glmpbk7E.js.map +0 -1
  73. package/dist/React-BaJ1KfGF.js +0 -87
  74. package/dist/React-BaJ1KfGF.js.map +0 -1
  75. package/dist/React-qUl0CBmE.js +0 -109
  76. package/dist/React-qUl0CBmE.js.map +0 -1
  77. package/dist/ReactNative-B4gt8nBr.js +0 -1790
  78. package/dist/ReactNative-B4gt8nBr.js.map +0 -1
  79. package/dist/ReactNative-CDMfQFfN.js +0 -1812
  80. package/dist/ReactNative-CDMfQFfN.js.map +0 -1
  81. package/dist/Sentry/Build.d.ts +0 -9
  82. package/dist/Sentry/Build.js +0 -87
  83. package/dist/Sentry/Build.js.map +0 -1
  84. package/dist/Sentry/React.js +0 -103
  85. package/dist/Sentry/React.js.map +0 -1
  86. package/dist/Sentry/ReactNative.js +0 -113
  87. package/dist/Sentry/ReactNative.js.map +0 -1
  88. package/dist/Sentry/Utils.js +0 -24
  89. package/dist/Sentry/Utils.js.map +0 -1
  90. package/dist/Utils/Array.js +0 -26
  91. package/dist/Utils/Array.js.map +0 -1
  92. package/dist/Utils/Files.js +0 -51
  93. package/dist/Utils/Files.js.map +0 -1
  94. package/dist/Utils/Pagination.js +0 -32
  95. package/dist/Utils/Pagination.js.map +0 -1
  96. package/dist/Utils/Utils.js +0 -101
  97. package/dist/Utils/Utils.js.map +0 -1
  98. package/dist/Utils-BC1fDy39.js +0 -74
  99. package/dist/Utils-BC1fDy39.js.map +0 -1
  100. package/dist/Utils-Cq948gfa.js +0 -20
  101. package/dist/Utils-Cq948gfa.js.map +0 -1
  102. package/dist/Utils-D7KRF8VU.js +0 -64
  103. package/dist/Utils-D7KRF8VU.js.map +0 -1
  104. package/dist/Utils-Dilye04y.js +0 -22
  105. package/dist/Utils-Dilye04y.js.map +0 -1
  106. package/dist/config-cli.cjs +0 -532
  107. package/dist/config-cli.cjs.map +0 -1
  108. package/dist/config-cli.js.map +0 -1
  109. package/dist/config-cli.mjs +0 -500
  110. package/dist/config-cli.mjs.map +0 -1
  111. package/dist/enums/CurrencySymbolEnum.js +0 -15
  112. package/dist/enums/CurrencySymbolEnum.js.map +0 -1
  113. package/dist/enums/DeviceEnum.js +0 -12
  114. package/dist/enums/DeviceEnum.js.map +0 -1
  115. package/dist/enums/EnvironmentEnum.js +0 -13
  116. package/dist/enums/EnvironmentEnum.js.map +0 -1
  117. package/dist/format.cjs +0 -43
  118. package/dist/format.cjs.map +0 -1
  119. package/dist/format.js.map +0 -1
  120. package/dist/format.mjs +0 -30
  121. package/dist/format.mjs.map +0 -1
  122. package/dist/hooks.cjs +0 -13
  123. package/dist/hooks.cjs.map +0 -1
  124. package/dist/hooks.js.map +0 -1
  125. package/dist/hooks.mjs +0 -4
  126. package/dist/hooks.mjs.map +0 -1
  127. package/dist/i18n.cjs +0 -3039
  128. package/dist/i18n.cjs.map +0 -1
  129. package/dist/i18n.js.map +0 -1
  130. package/dist/i18n.mjs +0 -3032
  131. package/dist/i18n.mjs.map +0 -1
  132. package/dist/index-cli.cjs +0 -31
  133. package/dist/index-cli.cjs.map +0 -1
  134. package/dist/index-cli.js.map +0 -1
  135. package/dist/index-cli.mjs +0 -14
  136. package/dist/index-cli.mjs.map +0 -1
  137. package/dist/index-rn.cjs +0 -57
  138. package/dist/index-rn.cjs.map +0 -1
  139. package/dist/index-rn.js.map +0 -1
  140. package/dist/index-rn.mjs +0 -36
  141. package/dist/index-rn.mjs.map +0 -1
  142. package/dist/index.cjs +0 -79
  143. package/dist/index.cjs.map +0 -1
  144. package/dist/index.js.map +0 -1
  145. package/dist/index.mjs +0 -40
  146. package/dist/index.mjs.map +0 -1
  147. package/dist/interfaces/Config/ConfigOptions.js +0 -6
  148. package/dist/interfaces/Config/ConfigOptions.js.map +0 -1
  149. package/dist/interfaces/Config/EntryOptions.js +0 -6
  150. package/dist/interfaces/Config/EntryOptions.js.map +0 -1
  151. package/dist/interfaces/Config/OutputMap.js +0 -6
  152. package/dist/interfaces/Config/OutputMap.js.map +0 -1
  153. package/dist/interfaces/Config/OutputOptions.js +0 -6
  154. package/dist/interfaces/Config/OutputOptions.js.map +0 -1
  155. package/dist/interfaces/Config/SitemapMap.js +0 -6
  156. package/dist/interfaces/Config/SitemapMap.js.map +0 -1
  157. package/dist/interfaces/Config/StringMap.js +0 -6
  158. package/dist/interfaces/Config/StringMap.js.map +0 -1
  159. package/dist/interfaces/Format/FormatOptions.js +0 -6
  160. package/dist/interfaces/Format/FormatOptions.js.map +0 -1
  161. package/dist/interfaces/Sentry/InitOptions.js +0 -6
  162. package/dist/interfaces/Sentry/InitOptions.js.map +0 -1
  163. package/dist/interfaces/Sentry/InitOptionsRN.js +0 -6
  164. package/dist/interfaces/Sentry/InitOptionsRN.js.map +0 -1
  165. package/dist/interfaces/Sentry/SourceMapOptions.d.ts +0 -7
  166. package/dist/interfaces/Sentry/SourceMapOptions.js +0 -6
  167. package/dist/interfaces/Sentry/SourceMapOptions.js.map +0 -1
  168. package/dist/sentry-cli.cjs +0 -119
  169. package/dist/sentry-cli.cjs.map +0 -1
  170. package/dist/sentry-cli.d.ts +0 -9
  171. package/dist/sentry-cli.js +0 -49
  172. package/dist/sentry-cli.js.map +0 -1
  173. package/dist/sentry-cli.mjs +0 -98
  174. package/dist/sentry-cli.mjs.map +0 -1
  175. package/dist/sentry-rn.cjs +0 -11
  176. package/dist/sentry-rn.cjs.map +0 -1
  177. package/dist/sentry-rn.js.map +0 -1
  178. package/dist/sentry-rn.mjs +0 -4
  179. package/dist/sentry-rn.mjs.map +0 -1
  180. package/dist/sentry.cjs +0 -11
  181. package/dist/sentry.cjs.map +0 -1
  182. package/dist/sentry.mjs +0 -4
  183. package/dist/sentry.mjs.map +0 -1
  184. package/dist/types/Config/OptionType.js +0 -6
  185. package/dist/types/Config/OptionType.js.map +0 -1
  186. package/dist/types/Format/OptionType.js +0 -6
  187. package/dist/types/Format/OptionType.js.map +0 -1
  188. package/dist/types/Sentry/OptionType.js +0 -6
  189. package/dist/types/Sentry/OptionType.js.map +0 -1
  190. package/dist/useWebSocket-B_B6kWXM.js +0 -167
  191. package/dist/useWebSocket-B_B6kWXM.js.map +0 -1
  192. package/dist/useWebSocket-YQWaiBz9.js +0 -172
  193. package/dist/useWebSocket-YQWaiBz9.js.map +0 -1
  194. package/dist/utils.cjs +0 -59
  195. package/dist/utils.cjs.map +0 -1
  196. package/dist/utils.mjs +0 -43
  197. package/dist/utils.mjs.map +0 -1
  198. package/src/Sentry/Build.ts +0 -67
  199. package/src/interfaces/Sentry/SourceMapOptions.ts +0 -7
  200. package/src/sentry-cli.ts +0 -16
@@ -0,0 +1,1493 @@
1
+ import { t as e } from "./EnvironmentEnum-F4hjulGN.js";
2
+ import { isHiddenKey as t } from "./utils.js";
3
+ import { copyFile as n, existsSync as r, mkdirSync as i, writeFile as a } from "fs";
4
+ import { isNull as o } from "lodash-es";
5
+ import { GoogleAuth as s } from "google-auth-library";
6
+ import { google as c } from "googleapis";
7
+ import * as l from "path";
8
+ import * as u from "process";
9
+ import { Transform as d, Writable as f } from "node:stream";
10
+ import { statSync as p } from "node:fs";
11
+ import "node:readline";
12
+ import { URL as m } from "node:url";
13
+ import "node:path";
14
+ import "node:child_process";
15
+ import { Readable as ee } from "stream";
16
+ import "node:zlib";
17
+ import "node:stream/promises";
18
+ //#region \0rolldown/runtime.js
19
+ var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), te = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
20
+ if (typeof require < "u") return require.apply(this, arguments);
21
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
22
+ }), g = (e, t) => {
23
+ let n = t.filename;
24
+ t.isFilenameLowercase && (n = n.toLowerCase());
25
+ let o = `${t.folder}/${n}`;
26
+ r(t.folder) || i(t.folder, { recursive: !0 }), a(o, e, {
27
+ encoding: "utf-8",
28
+ flag: "w"
29
+ }, function(t) {
30
+ if (t) throw t;
31
+ console.log(o, e);
32
+ });
33
+ }, ne = (e) => {
34
+ let t = {}, n = e[0].map((e) => e);
35
+ return e.forEach((e, r) => {
36
+ r !== 0 && (t = _(e, n, t));
37
+ }), t;
38
+ }, _ = (e, t, n) => {
39
+ let r = e[0];
40
+ return n[r] = {}, t.forEach((t, i) => {
41
+ i === 0 || e[i] === void 0 || e[i] === "" || (n[r][t] = y(e[i]));
42
+ }), n;
43
+ }, v = (e) => {
44
+ try {
45
+ JSON.parse(e);
46
+ } catch {
47
+ return !1;
48
+ }
49
+ return !0;
50
+ }, y = (e) => ["TRUE", "FALSE"].includes(e.toUpperCase()) ? e === "TRUE" : v(e) ? JSON.parse(e) : e, re = (e, t) => {
51
+ let n = { params: e }, r = "";
52
+ switch (t.exportAs) {
53
+ case "ts":
54
+ r = "export default " + JSON.stringify(n, null, 2), t.filename = `${t.filename}.ts`;
55
+ break;
56
+ case "json":
57
+ r = JSON.stringify(n, null, 2), t.filename = `${t.filename}.json`;
58
+ break;
59
+ case "js":
60
+ r = `module.exports = ${JSON.stringify(n, null, 2)}`, t.filename = `${t.filename}.js`;
61
+ break;
62
+ default: throw Error(`exportAs ${t.exportAs} not supported.`);
63
+ }
64
+ g(r, t);
65
+ }, b = (t) => {
66
+ let n;
67
+ switch (t) {
68
+ case "dev":
69
+ case "develop":
70
+ case "development":
71
+ n = e.DEV;
72
+ break;
73
+ case "stg":
74
+ case "stag":
75
+ case "staging":
76
+ n = e.STAGING;
77
+ break;
78
+ case "prd":
79
+ case "prod":
80
+ case "production":
81
+ n = e.PRODUCTION;
82
+ break;
83
+ default: n = t;
84
+ }
85
+ return n;
86
+ }, x = (e, t, n) => {
87
+ let r = "";
88
+ switch (n) {
89
+ case "ts":
90
+ o(t) ? r += `export const ${e}: string | null = ${t};\n` : typeof t == "boolean" ? r += `export const ${e}: boolean = ${t};\n` : r += `export const ${e} = '${t}';\n`;
91
+ break;
92
+ case "js":
93
+ r += `export const ${e} = "${t}";\n`;
94
+ break;
95
+ case "env":
96
+ r += `${e} = "${t}"\n`;
97
+ break;
98
+ default: throw Error(`exportAs ${n} not supported.`);
99
+ }
100
+ return r;
101
+ }, S = (e, n, r, i) => {
102
+ let a = x(r ? `${r}ENV` : "ENV", b(n), i.exportAs);
103
+ Object.keys(e).forEach((o) => {
104
+ let s = r && !t(o) ? `${r}${o}` : o;
105
+ if (o === "BASE_PROJECT" || o === "__BASE_PROJECT") {
106
+ let t = [
107
+ `.${e[o]}.js`,
108
+ `.${e[o]}.jsx`,
109
+ `.${e[o]}.ts`,
110
+ `.${e[o]}.tsx`,
111
+ `.${e[o]}.css`,
112
+ `.${e[o]}.json`,
113
+ `.${e[o]}.scss`
114
+ ];
115
+ a += x(s, t.join(","), i.exportAs);
116
+ return;
117
+ }
118
+ if (o === "SITEMAP" || o === "__SITEMAP") {
119
+ a += x(s, JSON.stringify(e[o]), i.exportAs);
120
+ return;
121
+ }
122
+ if (Array.isArray(e[o])) {
123
+ a += x(s, e[o].join(","), i.exportAs);
124
+ return;
125
+ }
126
+ if (typeof e[o] == "object") {
127
+ e[o].hasOwnProperty(n) ? a += x(s, e[o][n], i.exportAs) : a += x(s, JSON.stringify(e[o]), i.exportAs);
128
+ return;
129
+ }
130
+ a += x(s, e[o], i.exportAs);
131
+ }), g(a, i);
132
+ }, C = (e, t, i) => {
133
+ let a = "index.html", o = "index";
134
+ if (i.excludeVersion.includes(e) || (o = `.${e}.`), i.excludeEnv.includes(t) || (o = `${o}.${t}`), o = `${o}.html`, o !== a && r(o)) {
135
+ n(o, a, (e) => {
136
+ if (e) {
137
+ console.error(e);
138
+ return;
139
+ }
140
+ console.log(`File copied from '${o}' to '${a}' successfully!`);
141
+ });
142
+ return;
143
+ }
144
+ console.log("use current index.html");
145
+ }, w = ["https://www.googleapis.com/auth/spreadsheets.readonly"], T = l.join(u.cwd(), "/google_application_credentials.json"), E = () => {
146
+ let e = r(T), t = { scopes: w };
147
+ return e && (t.keyFile = T), new s(t);
148
+ }, D = async (e, t, n) => (await c.sheets({
149
+ version: "v4",
150
+ auth: e
151
+ }).spreadsheets.values.get({
152
+ spreadsheetId: t,
153
+ range: n,
154
+ majorDimension: "COLUMNS"
155
+ })).data.values, ie = (e) => {
156
+ let t = e[0].map((e) => e), n = {};
157
+ return e.forEach((e, r) => {
158
+ if (r === 0) return;
159
+ let i = {};
160
+ e.forEach((e, n) => {
161
+ n !== 0 && (i[t[n]] = e);
162
+ }), n[e[0]] = i;
163
+ }), n;
164
+ }, O = (e, t) => {
165
+ Object.keys(e).forEach((n) => {
166
+ t.filename = `${n}.${t.exportAs.toLowerCase()}`;
167
+ let r = "";
168
+ switch (t.exportAs) {
169
+ case "ts":
170
+ r = "export default " + JSON.stringify(e[n], null, 2);
171
+ break;
172
+ case "json":
173
+ r = JSON.stringify(e[n], null, 2);
174
+ break;
175
+ default: throw Error(`exportAs ${t.exportAs} not supported.`);
176
+ }
177
+ if (!r) throw Error("empty content, please check remote value.");
178
+ g(r, t);
179
+ });
180
+ }, k = class e extends Error {
181
+ constructor(t) {
182
+ super(t || "URL is required"), this.name = "NoURLError", Error.captureStackTrace(this, e);
183
+ }
184
+ }, A = class e extends Error {
185
+ constructor(t) {
186
+ super(t || "SitemapItem requires a configuration"), this.name = "NoConfigError", Error.captureStackTrace(this, e);
187
+ }
188
+ }, j = class e extends Error {
189
+ constructor(t, n) {
190
+ super(`${t}: changefreq "${n}" is invalid`), this.name = "ChangeFreqInvalidError", Error.captureStackTrace(this, e);
191
+ }
192
+ }, M = class e extends Error {
193
+ constructor(t, n) {
194
+ super(`${t}: priority "${n}" must be a number between 0 and 1 inclusive`), this.name = "PriorityInvalidError", Error.captureStackTrace(this, e);
195
+ }
196
+ }, N = class e extends Error {
197
+ constructor(t) {
198
+ super(`${t} video must include thumbnail_loc, title and description fields for videos`), this.name = "InvalidVideoFormat", Error.captureStackTrace(this, e);
199
+ }
200
+ }, ae = class e extends Error {
201
+ constructor(t, n) {
202
+ super(`${t} duration "${n}" must be an integer of seconds between 0 and 28800`), this.name = "InvalidVideoDuration", Error.captureStackTrace(this, e);
203
+ }
204
+ }, P = class e extends Error {
205
+ constructor(t, n) {
206
+ let r = `${t}: video description is too long ${n} vs limit of 2048 characters.`;
207
+ super(r), this.name = "InvalidVideoDescription", Error.captureStackTrace(this, e);
208
+ }
209
+ }, F = class e extends Error {
210
+ constructor(t, n, r) {
211
+ super(`${t}: video "${n}" rating "${r}" must be between 0 and 5 inclusive`), this.name = "InvalidVideoRating", Error.captureStackTrace(this, e);
212
+ }
213
+ }, I = class e extends Error {
214
+ constructor(t, n, r) {
215
+ super("\"" + n + "\" tested against: " + r + " is not a valid value for attr: \"" + t + "\""), this.name = "InvalidAttrValue", Error.captureStackTrace(this, e);
216
+ }
217
+ }, L = class e extends Error {
218
+ constructor(t) {
219
+ super("\"" + t + "\" is malformed"), this.name = "InvalidAttr", Error.captureStackTrace(this, e);
220
+ }
221
+ }, oe = class e extends Error {
222
+ constructor(t) {
223
+ super(`${t} News must include publication, publication name, publication language, title, and publication_date for news`), this.name = "InvalidNewsFormat", Error.captureStackTrace(this, e);
224
+ }
225
+ }, R = class e extends Error {
226
+ constructor(t, n) {
227
+ super(`${t} News access "${n}" must be either Registration, Subscription or not be present`), this.name = "InvalidNewsAccessValue", Error.captureStackTrace(this, e);
228
+ }
229
+ }, z = class e extends Error {
230
+ constructor(t, n) {
231
+ super(`${t}: video title is too long ${n} vs 100 character limit`), this.name = "InvalidVideoTitle", Error.captureStackTrace(this, e);
232
+ }
233
+ }, se = class e extends Error {
234
+ constructor(t, n) {
235
+ super(`${t}: video view count must be positive, view count was ${n}`), this.name = "InvalidVideoViewCount", Error.captureStackTrace(this, e);
236
+ }
237
+ }, ce = class e extends Error {
238
+ constructor(t, n) {
239
+ super(`${t}: video can have no more than 32 tags, this has ${n}`), this.name = "InvalidVideoTagCount", Error.captureStackTrace(this, e);
240
+ }
241
+ }, le = class e extends Error {
242
+ constructor(t, n) {
243
+ super(`${t}: video category can only be 256 characters but was passed ${n}`), this.name = "InvalidVideoCategory", Error.captureStackTrace(this, e);
244
+ }
245
+ }, ue = class e extends Error {
246
+ constructor(t, n) {
247
+ super(`${t}: video family friendly must be yes or no, was passed "${n}"`), this.name = "InvalidVideoFamilyFriendly", Error.captureStackTrace(this, e);
248
+ }
249
+ }, de = class e extends Error {
250
+ constructor(t, n) {
251
+ super(`${t}: video restriction must be one or more two letter country codes. Was passed "${n}"`), this.name = "InvalidVideoRestriction", Error.captureStackTrace(this, e);
252
+ }
253
+ }, fe = class e extends Error {
254
+ constructor(t, n) {
255
+ super(`${t}: video restriction relationship must be either allow or deny. Was passed "${n}"`), this.name = "InvalidVideoRestrictionRelationship", Error.captureStackTrace(this, e);
256
+ }
257
+ }, pe = class e extends Error {
258
+ constructor(t, n, r) {
259
+ super(n === void 0 && r === "" ? `${t}: video priceType is required when price is not provided` : `${t}: video price type "${n}" is not "rent" or "purchase"`), this.name = "InvalidVideoPriceType", Error.captureStackTrace(this, e);
260
+ }
261
+ }, me = class e extends Error {
262
+ constructor(t, n) {
263
+ super(`${t}: video price resolution "${n}" is not hd or sd`), this.name = "InvalidVideoResolution", Error.captureStackTrace(this, e);
264
+ }
265
+ }, he = class e extends Error {
266
+ constructor(t, n) {
267
+ super(`${t}: video price currency "${n}" must be a three capital letter abbrieviation for the country currency`), this.name = "InvalidVideoPriceCurrency", Error.captureStackTrace(this, e);
268
+ }
269
+ }, ge = class e extends Error {
270
+ constructor() {
271
+ super("You have ended the stream before anything was written. streamToPromise MUST be called before ending the stream."), this.name = "EmptyStream", Error.captureStackTrace(this, e);
272
+ }
273
+ }, _e = class extends Error {
274
+ constructor() {
275
+ super("You ended the stream without writing anything."), this.name = "EmptySitemap", Error.captureStackTrace(this, ge);
276
+ }
277
+ }, B = class e extends Error {
278
+ constructor(t, n) {
279
+ super(`Invalid hostname "${t}": ${n}`), this.name = "InvalidHostnameError", Error.captureStackTrace(this, e);
280
+ }
281
+ }, V = class e extends Error {
282
+ constructor(t, n) {
283
+ super(`Invalid xslUrl "${t}": ${n}`), this.name = "InvalidXSLUrlError", Error.captureStackTrace(this, e);
284
+ }
285
+ }, ve = class e extends Error {
286
+ constructor(t) {
287
+ super(`Invalid XML attribute name "${t}": must contain only alphanumeric characters, hyphens, underscores, and colons`), this.name = "InvalidXMLAttributeNameError", Error.captureStackTrace(this, e);
288
+ }
289
+ }, ye;
290
+ (function(e) {
291
+ e.DAILY = "daily", e.MONTHLY = "monthly", e.ALWAYS = "always", e.HOURLY = "hourly", e.WEEKLY = "weekly", e.YEARLY = "yearly", e.NEVER = "never";
292
+ })(ye ||= {});
293
+ var H;
294
+ (function(e) {
295
+ e.YES = "YES", e.NO = "NO", e.Yes = "Yes", e.No = "No", e.yes = "yes", e.no = "no";
296
+ })(H ||= {});
297
+ var be;
298
+ (function(e) {
299
+ e.ALLOW = "allow", e.DENY = "deny";
300
+ })(be ||= {});
301
+ var U;
302
+ (function(e) {
303
+ e.SILENT = "silent", e.WARN = "warn", e.THROW = "throw";
304
+ })(U ||= {});
305
+ var W;
306
+ (function(e) {
307
+ e.url = "url", e.loc = "loc", e.urlset = "urlset", e.lastmod = "lastmod", e.changefreq = "changefreq", e.priority = "priority", e["video:thumbnail_loc"] = "video:thumbnail_loc", e["video:video"] = "video:video", e["video:title"] = "video:title", e["video:description"] = "video:description", e["video:tag"] = "video:tag", e["video:duration"] = "video:duration", e["video:player_loc"] = "video:player_loc", e["video:content_loc"] = "video:content_loc", e["image:image"] = "image:image", e["image:loc"] = "image:loc", e["image:geo_location"] = "image:geo_location", e["image:license"] = "image:license", e["image:title"] = "image:title", e["image:caption"] = "image:caption", e["video:requires_subscription"] = "video:requires_subscription", e["video:publication_date"] = "video:publication_date", e["video:id"] = "video:id", e["video:restriction"] = "video:restriction", e["video:family_friendly"] = "video:family_friendly", e["video:view_count"] = "video:view_count", e["video:uploader"] = "video:uploader", e["video:expiration_date"] = "video:expiration_date", e["video:platform"] = "video:platform", e["video:price"] = "video:price", e["video:rating"] = "video:rating", e["video:category"] = "video:category", e["video:live"] = "video:live", e["video:gallery_loc"] = "video:gallery_loc", e["news:news"] = "news:news", e["news:publication"] = "news:publication", e["news:name"] = "news:name", e["news:access"] = "news:access", e["news:genres"] = "news:genres", e["news:publication_date"] = "news:publication_date", e["news:title"] = "news:title", e["news:keywords"] = "news:keywords", e["news:stock_tickers"] = "news:stock_tickers", e["news:language"] = "news:language", e["mobile:mobile"] = "mobile:mobile", e["xhtml:link"] = "xhtml:link", e.expires = "expires";
308
+ })(W ||= {});
309
+ var xe;
310
+ (function(e) {
311
+ e.sitemap = "sitemap", e.sitemapindex = "sitemapindex", e.loc = "loc", e.lastmod = "lastmod";
312
+ })(xe ||= {});
313
+ //#endregion
314
+ //#region node_modules/sitemap/dist/esm/lib/sitemap-xml.js
315
+ var Se = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u0084\u0086-\u009F\uD800-\uDFFF\p{NChar}]/gu, Ce = /&/g, we = /</g, Te = />/g, Ee = /'/g, De = /"/g, Oe = /^[a-zA-Z_:][\w:.-]*$/;
316
+ function ke(e) {
317
+ if (!Oe.test(e)) throw new ve(e);
318
+ }
319
+ function Ae(e) {
320
+ if (typeof e != "string") throw TypeError(`text() requires a string, received ${typeof e}: ${String(e)}`);
321
+ return e.replace(Ce, "&amp;").replace(we, "&lt;").replace(Te, "&gt;").replace(Se, "");
322
+ }
323
+ function G(e, t, n = !1) {
324
+ if (typeof e != "string") throw TypeError(`otag() nodeName must be a string, received ${typeof e}: ${String(e)}`);
325
+ let r = "";
326
+ for (let e in t) {
327
+ ke(e);
328
+ let n = t[e];
329
+ if (typeof n != "string") throw TypeError(`otag() attribute "${e}" value must be a string, received ${typeof n}: ${String(n)}`);
330
+ let i = n.replace(Ce, "&amp;").replace(we, "&lt;").replace(Te, "&gt;").replace(Ee, "&apos;").replace(De, "&quot;").replace(Se, "");
331
+ r += ` ${e}="${i}"`;
332
+ }
333
+ return `<${e}${r}${n ? "/" : ""}>`;
334
+ }
335
+ function K(e) {
336
+ if (typeof e != "string") throw TypeError(`ctag() nodeName must be a string, received ${typeof e}: ${String(e)}`);
337
+ return `</${e}>`;
338
+ }
339
+ function q(e, t, n) {
340
+ return typeof t == "string" ? G(e) + Ae(t) + K(e) : n === void 0 ? G(e, t, !0) : G(e, t) + Ae(n) + K(e);
341
+ }
342
+ //#endregion
343
+ //#region node_modules/sitemap/dist/esm/lib/sitemap-item-stream.js
344
+ function J(e, t) {
345
+ return typeof t == "string" && (t = [t]), t.reduce((t, n) => {
346
+ if (e[n] !== void 0) {
347
+ let r = n.split(":");
348
+ if (r.length !== 2) throw new L(n);
349
+ t[r[1]] = e[n];
350
+ }
351
+ return t;
352
+ }, {});
353
+ }
354
+ var je = class extends d {
355
+ level;
356
+ constructor(e = { level: U.WARN }) {
357
+ e.objectMode = !0, super(e), this.level = e.level || U.WARN;
358
+ }
359
+ _transform(e, t, n) {
360
+ this.push(G(W.url)), this.push(q(W.loc, e.url)), e.lastmod && this.push(q(W.lastmod, e.lastmod)), e.changefreq && this.push(q(W.changefreq, e.changefreq)), e.priority !== void 0 && e.priority !== null && (e.fullPrecisionPriority ? this.push(q(W.priority, e.priority.toString())) : this.push(q(W.priority, e.priority.toFixed(1)))), e.video.forEach((e) => {
361
+ if (this.push(G(W["video:video"])), this.push(q(W["video:thumbnail_loc"], e.thumbnail_loc)), this.push(q(W["video:title"], e.title)), this.push(q(W["video:description"], e.description)), e.content_loc && this.push(q(W["video:content_loc"], e.content_loc)), e.player_loc && this.push(q(W["video:player_loc"], J(e, ["player_loc:autoplay", "player_loc:allow_embed"]), e.player_loc)), e.duration && this.push(q(W["video:duration"], e.duration.toString())), e.expiration_date && this.push(q(W["video:expiration_date"], e.expiration_date)), e.rating !== void 0 && this.push(q(W["video:rating"], e.rating.toString())), e.view_count !== void 0 && this.push(q(W["video:view_count"], String(e.view_count))), e.publication_date && this.push(q(W["video:publication_date"], e.publication_date)), e.tag && e.tag.length > 0) for (let t of e.tag) this.push(q(W["video:tag"], t));
362
+ e.category && this.push(q(W["video:category"], e.category)), e.family_friendly && this.push(q(W["video:family_friendly"], e.family_friendly)), e.restriction && this.push(q(W["video:restriction"], J(e, "restriction:relationship"), e.restriction)), e.gallery_loc && this.push(q(W["video:gallery_loc"], J(e, "gallery_loc:title"), e.gallery_loc)), e.price && this.push(q(W["video:price"], J(e, [
363
+ "price:resolution",
364
+ "price:currency",
365
+ "price:type"
366
+ ]), e.price)), e.requires_subscription && this.push(q(W["video:requires_subscription"], e.requires_subscription)), e.uploader && this.push(q(W["video:uploader"], J(e, "uploader:info"), e.uploader)), e.platform && this.push(q(W["video:platform"], J(e, "platform:relationship"), e.platform)), e.live && this.push(q(W["video:live"], e.live)), e.id && this.push(q(W["video:id"], { type: "url" }, e.id)), this.push(K(W["video:video"]));
367
+ }), e.links.forEach((e) => {
368
+ this.push(q(W["xhtml:link"], {
369
+ rel: "alternate",
370
+ hreflang: e.lang || e.hreflang,
371
+ href: e.url
372
+ }));
373
+ }), e.expires && this.push(q(W.expires, new Date(e.expires).toISOString())), e.androidLink && this.push(q(W["xhtml:link"], {
374
+ rel: "alternate",
375
+ href: e.androidLink
376
+ })), e.ampLink && this.push(q(W["xhtml:link"], {
377
+ rel: "amphtml",
378
+ href: e.ampLink
379
+ })), e.news && (this.push(G(W["news:news"])), this.push(G(W["news:publication"])), this.push(q(W["news:name"], e.news.publication.name)), this.push(q(W["news:language"], e.news.publication.language)), this.push(K(W["news:publication"])), e.news.access && this.push(q(W["news:access"], e.news.access)), e.news.genres && this.push(q(W["news:genres"], e.news.genres)), this.push(q(W["news:publication_date"], e.news.publication_date)), this.push(q(W["news:title"], e.news.title)), e.news.keywords && this.push(q(W["news:keywords"], e.news.keywords)), e.news.stock_tickers && this.push(q(W["news:stock_tickers"], e.news.stock_tickers)), this.push(K(W["news:news"]))), e.img.forEach((e) => {
380
+ this.push(G(W["image:image"])), this.push(q(W["image:loc"], e.url)), e.caption && this.push(q(W["image:caption"], e.caption)), e.geoLocation && this.push(q(W["image:geo_location"], e.geoLocation)), e.title && this.push(q(W["image:title"], e.title)), e.license && this.push(q(W["image:license"], e.license)), this.push(K(W["image:image"]));
381
+ }), this.push(K(W.url)), n();
382
+ }
383
+ }, Y = {
384
+ MAX_URL_LENGTH: 2048,
385
+ URL_PROTOCOL_REGEX: /^https?:\/\//i,
386
+ MIN_SITEMAP_ITEM_LIMIT: 1,
387
+ MAX_SITEMAP_ITEM_LIMIT: 5e4,
388
+ MAX_VIDEO_TITLE_LENGTH: 100,
389
+ MAX_VIDEO_DESCRIPTION_LENGTH: 2048,
390
+ MAX_VIDEO_CATEGORY_LENGTH: 256,
391
+ MAX_TAGS_PER_VIDEO: 32,
392
+ MAX_NEWS_TITLE_LENGTH: 200,
393
+ MAX_NEWS_NAME_LENGTH: 256,
394
+ MAX_IMAGE_CAPTION_LENGTH: 512,
395
+ MAX_IMAGE_TITLE_LENGTH: 512,
396
+ MAX_IMAGES_PER_URL: 1e3,
397
+ MAX_VIDEOS_PER_URL: 100,
398
+ MAX_LINKS_PER_URL: 100,
399
+ MAX_URL_ENTRIES: 5e4,
400
+ ISO_DATE_REGEX: /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?([+-]\d{2}:\d{2}|Z)?)?$/,
401
+ MAX_CUSTOM_NAMESPACES: 20,
402
+ MAX_NAMESPACE_LENGTH: 512,
403
+ MAX_PARSER_ERRORS: 100
404
+ }, X = /^(?:allow|deny)$/, Z = {
405
+ "price:currency": /^[A-Z]{3}$/,
406
+ "price:type": /^(?:rent|purchase|RENT|PURCHASE)$/,
407
+ "price:resolution": /^(?:HD|hd|sd|SD)$/,
408
+ "platform:relationship": X,
409
+ "restriction:relationship": X,
410
+ restriction: /^([A-Z]{2}( +[A-Z]{2})*)?$/,
411
+ platform: /^((web|mobile|tv)( (web|mobile|tv))*)?$/,
412
+ language: /^(zh-cn|zh-tw|[a-z]{2,3})$/,
413
+ genres: /^(PressRelease|Satire|Blog|OpEd|Opinion|UserGenerated)(, *(PressRelease|Satire|Blog|OpEd|Opinion|UserGenerated))*$/,
414
+ stock_tickers: /^(\w+:\w+(, *\w+:\w+){0,4})?$/
415
+ };
416
+ function Me(e) {
417
+ return Z["price:type"].test(e);
418
+ }
419
+ function Ne(e) {
420
+ return Z["price:resolution"].test(e);
421
+ }
422
+ var Pe = Object.values(ye);
423
+ function Fe(e) {
424
+ return Pe.includes(e);
425
+ }
426
+ function Ie(e) {
427
+ return /^YES|NO|[Yy]es|[Nn]o$/.test(e);
428
+ }
429
+ function Le(e) {
430
+ return X.test(e);
431
+ }
432
+ function Re(e, t) {
433
+ if (!e || typeof e != "string") throw new B(e, `${t} must be a non-empty string`);
434
+ if (e.length > Y.MAX_URL_LENGTH) throw new B(e, `${t} exceeds maximum length of ${Y.MAX_URL_LENGTH} characters`);
435
+ if (!Y.URL_PROTOCOL_REGEX.test(e)) throw new B(e, `${t} must use http:// or https:// protocol`);
436
+ try {
437
+ new URL(e);
438
+ } catch (n) {
439
+ throw new B(e, `${t} is not a valid URL: ${n instanceof Error ? n.message : String(n)}`);
440
+ }
441
+ }
442
+ function ze(e) {
443
+ if (!e || typeof e != "string") throw new V(e, "must be a non-empty string");
444
+ if (e.length > Y.MAX_URL_LENGTH) throw new V(e, `exceeds maximum length of ${Y.MAX_URL_LENGTH} characters`);
445
+ if (!Y.URL_PROTOCOL_REGEX.test(e)) throw new V(e, "must use http:// or https:// protocol");
446
+ try {
447
+ new URL(e);
448
+ } catch (t) {
449
+ throw new V(e, `is not a valid URL: ${t instanceof Error ? t.message : String(t)}`);
450
+ }
451
+ let t = e.toLowerCase();
452
+ if (t.includes("<script")) throw new V(e, "contains potentially malicious content (<script tag)");
453
+ for (let n of [
454
+ "javascript:",
455
+ "data:",
456
+ "vbscript:",
457
+ "file:",
458
+ "about:"
459
+ ]) if (t.includes(n)) throw new V(e, `contains dangerous protocol: ${n}`);
460
+ for (let n of [
461
+ "%3cscript",
462
+ "%3c%73%63%72%69%70%74",
463
+ "javascript%3a",
464
+ "data%3a"
465
+ ]) if (t.includes(n)) throw new V(e, "contains URL-encoded malicious content");
466
+ if (e.includes("\"") || e.includes("<") || e.includes(">")) throw new V(e, "contains unencoded XML special characters (\" < >); percent-encode them in the URL");
467
+ }
468
+ function Q(e, t, n, r) {
469
+ Object.keys(e).forEach((i) => {
470
+ let a = e[i];
471
+ if (Z[i] && !Z[i].test(a)) {
472
+ if (r === U.THROW) throw new I(i, a, Z[i]);
473
+ console.warn(`${n}: ${t} key ${i} has invalid value: ${a}`);
474
+ }
475
+ });
476
+ }
477
+ function Be(e, t) {
478
+ if (t === U.THROW) throw e;
479
+ t === U.WARN && console.warn(e.name, e.message);
480
+ }
481
+ function Ve(e, t = U.WARN, n = Be) {
482
+ if (!e) throw new A();
483
+ if (t === U.SILENT) return e;
484
+ let { url: r, changefreq: i, priority: a, news: o, video: s } = e;
485
+ return r || n(new k(), t), i && (Fe(i) || n(new j(r, i), t)), a && (a >= 0 && a <= 1 || n(new M(r, a), t)), o && (o.access && o.access !== "Registration" && o.access !== "Subscription" && n(new R(r, o.access), t), (!o.publication || !o.publication.name || !o.publication.language || !o.publication_date || !o.title) && n(new oe(r), t), Q(o, "news", r, t), Q(o.publication, "publication", r, t)), s && s.forEach((e) => {
486
+ e.duration !== void 0 && (e.duration < 0 || e.duration > 28800) && n(new ae(r, e.duration), t), e.rating !== void 0 && (e.rating < 0 || e.rating > 5) && n(new F(r, e.title, e.rating), t), (typeof e != "object" || !e.thumbnail_loc || !e.title || !e.description) && n(new N(r), t), e.title.length > 100 && n(new z(r, e.title.length), t), e.description.length > 2048 && n(new P(r, e.description.length), t), e.view_count !== void 0 && e.view_count < 0 && n(new se(r, e.view_count), t), e.tag.length > 32 && n(new ce(r, e.tag.length), t), e.category !== void 0 && e.category?.length > 256 && n(new le(r, e.category.length), t), e.family_friendly !== void 0 && !Ie(e.family_friendly) && n(new ue(r, e.family_friendly), t), e.restriction && (Z.restriction.test(e.restriction) || n(new de(r, e.restriction), t), (!e["restriction:relationship"] || !Le(e["restriction:relationship"])) && n(new fe(r, e["restriction:relationship"]), t)), (e.price === "" && e["price:type"] === void 0 || e["price:type"] !== void 0 && !Me(e["price:type"])) && n(new pe(r, e["price:type"], e.price), t), e["price:resolution"] !== void 0 && !Ne(e["price:resolution"]) && n(new me(r, e["price:resolution"]), t), e["price:currency"] !== void 0 && !Z["price:currency"].test(e["price:currency"]) && n(new he(r, e["price:currency"]), t), Q(e, "video", r, t);
487
+ }), e;
488
+ }
489
+ //#endregion
490
+ //#region node_modules/sitemap/dist/esm/lib/utils.js
491
+ function $(e) {
492
+ if (e !== void 0) return typeof e == "boolean" ? e ? H.yes : H.no : e;
493
+ }
494
+ function He(e, t, n = !1) {
495
+ let r = {
496
+ img: [],
497
+ video: [],
498
+ links: [],
499
+ url: ""
500
+ };
501
+ if (typeof e == "string") return r.url = new m(e, t).toString(), r;
502
+ let { url: i, img: a, links: o, video: s, lastmodfile: c, lastmodISO: l, lastmod: u, ...d } = e;
503
+ if (Object.assign(r, d), r.url = new m(i, t).toString(), a && (r.img = (Array.isArray(a) ? a : [a]).map((e) => typeof e == "string" ? { url: new m(e, t).toString() } : {
504
+ ...e,
505
+ url: new m(e.url, t).toString()
506
+ })), o && (r.links = o.map((e) => ({
507
+ ...e,
508
+ url: new m(e.url, t).toString()
509
+ }))), s && (r.video = (Array.isArray(s) ? s : [s]).map((t) => {
510
+ let n = {
511
+ ...t,
512
+ family_friendly: $(t.family_friendly),
513
+ live: $(t.live),
514
+ requires_subscription: $(t.requires_subscription),
515
+ tag: [],
516
+ rating: void 0
517
+ };
518
+ if (t.tag !== void 0 && (n.tag = Array.isArray(t.tag) ? t.tag : [t.tag]), t.rating !== void 0) if (typeof t.rating == "string") {
519
+ let r = parseFloat(t.rating);
520
+ if (Number.isNaN(r)) throw Error(`Invalid video rating "${t.rating}" for URL "${e.url}": must be a valid number`);
521
+ n.rating = r;
522
+ } else n.rating = t.rating;
523
+ if (typeof t.view_count == "string") {
524
+ let r = parseInt(t.view_count, 10);
525
+ if (Number.isNaN(r)) throw Error(`Invalid video view_count "${t.view_count}" for URL "${e.url}": must be a valid number`);
526
+ if (r < 0) throw Error(`Invalid video view_count "${t.view_count}" for URL "${e.url}": cannot be negative`);
527
+ n.view_count = r;
528
+ } else typeof t.view_count == "number" && (n.view_count = t.view_count);
529
+ return n;
530
+ })), c) {
531
+ let { mtime: e } = p(c), t = new Date(e);
532
+ if (Number.isNaN(t.getTime())) throw Error(`Invalid date from file stats for URL "${r.url}": file modification time is invalid`);
533
+ r.lastmod = t.toISOString();
534
+ } else if (l) {
535
+ let e = new Date(l);
536
+ if (Number.isNaN(e.getTime())) throw Error(`Invalid lastmodISO "${l}" for URL "${r.url}": must be a valid date string`);
537
+ r.lastmod = e.toISOString();
538
+ } else if (u) {
539
+ let e = new Date(u);
540
+ if (Number.isNaN(e.getTime())) throw Error(`Invalid lastmod "${u}" for URL "${r.url}": must be a valid date string`);
541
+ r.lastmod = e.toISOString();
542
+ }
543
+ return n && r.lastmod && (r.lastmod = r.lastmod.slice(0, 10)), r;
544
+ }
545
+ //#endregion
546
+ //#region node_modules/sitemap/dist/esm/lib/sitemap-stream.js
547
+ var Ue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>", We = (e) => `<?xml-stylesheet type="text/xsl" href="${e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;")}"?>`, Ge = "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"";
548
+ function Ke(e) {
549
+ if (!Array.isArray(e)) throw Error("Custom namespaces must be an array");
550
+ if (e.length > Y.MAX_CUSTOM_NAMESPACES) throw Error(`Too many custom namespaces: ${e.length} exceeds limit of ${Y.MAX_CUSTOM_NAMESPACES}`);
551
+ let t = /^[a-zA-Z_][\w.-]*:[a-zA-Z_][\w.-]*="[^"<>]*"$/;
552
+ for (let n of e) {
553
+ if (typeof n != "string" || n.length === 0) throw Error("Custom namespace must be a non-empty string");
554
+ if (n.length > Y.MAX_NAMESPACE_LENGTH) throw Error(`Custom namespace exceeds maximum length of ${Y.MAX_NAMESPACE_LENGTH} characters: ${n.substring(0, 50)}...`);
555
+ let e = n.toLowerCase();
556
+ if (e.includes("<script") || e.includes("javascript:") || e.includes("data:text/html")) throw Error(`Custom namespace contains potentially malicious content: ${n.substring(0, 50)}`);
557
+ if (!t.test(n)) throw Error(`Invalid namespace format (must be prefix:name="value", e.g., xmlns:prefix="uri" or xsi:schemaLocation="..."): ${n.substring(0, 50)}`);
558
+ }
559
+ }
560
+ var qe = ({ news: e, video: t, image: n, xhtml: r, custom: i }, a) => {
561
+ let o = Ue;
562
+ return a && (o += We(a)), o += Ge, e && (o += " xmlns:news=\"http://www.google.com/schemas/sitemap-news/0.9\""), r && (o += " xmlns:xhtml=\"http://www.w3.org/1999/xhtml\""), n && (o += " xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\""), t && (o += " xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\""), i && (Ke(i), o += " " + i.join(" ")), o + ">";
563
+ }, Je = "</urlset>", Ye = {
564
+ news: !0,
565
+ xhtml: !0,
566
+ image: !0,
567
+ video: !0
568
+ }, Xe = { xmlns: Ye }, Ze = class extends d {
569
+ hostname;
570
+ level;
571
+ hasHeadOutput;
572
+ xmlNS;
573
+ xslUrl;
574
+ errorHandler;
575
+ smiStream;
576
+ lastmodDateOnly;
577
+ constructor(e = Xe) {
578
+ e.objectMode = !0, super(e), e.hostname !== void 0 && Re(e.hostname, "hostname"), e.xslUrl !== void 0 && ze(e.xslUrl), this.hasHeadOutput = !1, this.hostname = e.hostname, this.level = e.level || U.WARN, this.errorHandler = e.errorHandler, this.smiStream = new je({ level: e.level }), this.smiStream.on("data", (e) => this.push(e)), this.lastmodDateOnly = e.lastmodDateOnly || !1, this.xmlNS = e.xmlns || Ye, this.xslUrl = e.xslUrl;
579
+ }
580
+ _transform(e, t, n) {
581
+ this.hasHeadOutput || (this.hasHeadOutput = !0, this.push(qe(this.xmlNS, this.xslUrl))), this.smiStream.write(Ve(He(e, this.hostname, this.lastmodDateOnly), this.level, this.errorHandler)) ? process.nextTick(n) : this.smiStream.once("drain", n);
582
+ }
583
+ _flush(e) {
584
+ this.hasHeadOutput ? (this.push(Je), e()) : e(new _e());
585
+ }
586
+ };
587
+ function Qe(e) {
588
+ return new Promise((t, n) => {
589
+ let r = [];
590
+ e.on("error", n).pipe(new f({ write(e, t, n) {
591
+ r.push(e), n();
592
+ } })).on("error", n).on("finish", () => {
593
+ r.length ? t(Buffer.concat(r)) : n(new ge());
594
+ });
595
+ });
596
+ }
597
+ (/* @__PURE__ */ h(((e) => {
598
+ (function(e) {
599
+ e.parser = function(e, t) {
600
+ return new n(e, t);
601
+ }, e.SAXParser = n, e.SAXStream = u, e.createStream = c, e.MAX_BUFFER_LENGTH = 64 * 1024;
602
+ var t = [
603
+ "comment",
604
+ "sgmlDecl",
605
+ "textNode",
606
+ "tagName",
607
+ "doctype",
608
+ "procInstName",
609
+ "procInstBody",
610
+ "entity",
611
+ "attribName",
612
+ "attribValue",
613
+ "cdata",
614
+ "script"
615
+ ];
616
+ e.EVENTS = [
617
+ "text",
618
+ "processinginstruction",
619
+ "sgmldeclaration",
620
+ "doctype",
621
+ "comment",
622
+ "opentagstart",
623
+ "attribute",
624
+ "opentag",
625
+ "closetag",
626
+ "opencdata",
627
+ "cdata",
628
+ "closecdata",
629
+ "error",
630
+ "end",
631
+ "ready",
632
+ "script",
633
+ "opennamespace",
634
+ "closenamespace"
635
+ ];
636
+ function n(t, r) {
637
+ if (!(this instanceof n)) return new n(t, r);
638
+ var a = this;
639
+ i(a), a.q = a.c = "", a.bufferCheckPosition = e.MAX_BUFFER_LENGTH, a.encoding = null, a.opt = r || {}, a.opt.lowercase = a.opt.lowercase || a.opt.lowercasetags, a.looseCase = a.opt.lowercase ? "toLowerCase" : "toUpperCase", a.opt.maxEntityCount = a.opt.maxEntityCount || 512, a.opt.maxEntityDepth = a.opt.maxEntityDepth || 4, a.entityCount = a.entityDepth = 0, a.tags = [], a.closed = a.closedRoot = a.sawRoot = !1, a.tag = a.error = null, a.strict = !!t, a.noscript = !!(t || a.opt.noscript), a.state = S.BEGIN, a.strictEntities = a.opt.strictEntities, a.ENTITIES = a.strictEntities ? Object.create(e.XML_ENTITIES) : Object.create(e.ENTITIES), a.attribList = [], a.opt.xmlns && (a.ns = Object.create(ee)), a.opt.unquotedAttributeValues === void 0 && (a.opt.unquotedAttributeValues = !t), a.trackPosition = a.opt.position !== !1, a.trackPosition && (a.position = a.line = a.column = 0), w(a, "onready");
640
+ }
641
+ Object.create || (Object.create = function(e) {
642
+ function t() {}
643
+ return t.prototype = e, new t();
644
+ }), Object.keys || (Object.keys = function(e) {
645
+ var t = [];
646
+ for (var n in e) e.hasOwnProperty(n) && t.push(n);
647
+ return t;
648
+ });
649
+ function r(n) {
650
+ for (var r = Math.max(e.MAX_BUFFER_LENGTH, 10), i = 0, a = 0, o = t.length; a < o; a++) {
651
+ var s = n[t[a]].length;
652
+ if (s > r) switch (t[a]) {
653
+ case "textNode":
654
+ k(n);
655
+ break;
656
+ case "cdata":
657
+ O(n, "oncdata", n.cdata), n.cdata = "";
658
+ break;
659
+ case "script":
660
+ O(n, "onscript", n.script), n.script = "";
661
+ break;
662
+ default: j(n, "Max buffer length exceeded: " + t[a]);
663
+ }
664
+ i = Math.max(i, s);
665
+ }
666
+ n.bufferCheckPosition = e.MAX_BUFFER_LENGTH - i + n.position;
667
+ }
668
+ function i(e) {
669
+ for (var n = 0, r = t.length; n < r; n++) e[t[n]] = "";
670
+ }
671
+ function a(e) {
672
+ k(e), e.cdata !== "" && (O(e, "oncdata", e.cdata), e.cdata = ""), e.script !== "" && (O(e, "onscript", e.script), e.script = "");
673
+ }
674
+ n.prototype = {
675
+ end: function() {
676
+ M(this);
677
+ },
678
+ write: se,
679
+ resume: function() {
680
+ return this.error = null, this;
681
+ },
682
+ close: function() {
683
+ return this.write(null);
684
+ },
685
+ flush: function() {
686
+ a(this);
687
+ }
688
+ };
689
+ var o;
690
+ try {
691
+ o = te("stream").Stream;
692
+ } catch {
693
+ o = function() {};
694
+ }
695
+ o ||= function() {};
696
+ var s = e.EVENTS.filter(function(e) {
697
+ return e !== "error" && e !== "end";
698
+ });
699
+ function c(e, t) {
700
+ return new u(e, t);
701
+ }
702
+ function l(e, t) {
703
+ if (e.length >= 2) {
704
+ if (e[0] === 255 && e[1] === 254) return "utf-16le";
705
+ if (e[0] === 254 && e[1] === 255) return "utf-16be";
706
+ }
707
+ return e.length >= 3 && e[0] === 239 && e[1] === 187 && e[2] === 191 ? "utf8" : e.length >= 4 ? e[0] === 60 && e[1] === 0 && e[2] === 63 && e[3] === 0 ? "utf-16le" : e[0] === 0 && e[1] === 60 && e[2] === 0 && e[3] === 63 ? "utf-16be" : "utf8" : t ? "utf8" : null;
708
+ }
709
+ function u(e, t) {
710
+ if (!(this instanceof u)) return new u(e, t);
711
+ o.apply(this), this._parser = new n(e, t), this.writable = !0, this.readable = !0;
712
+ var r = this;
713
+ this._parser.onend = function() {
714
+ r.emit("end");
715
+ }, this._parser.onerror = function(e) {
716
+ r.emit("error", e), r._parser.error = null;
717
+ }, this._decoder = null, this._decoderBuffer = null, s.forEach(function(e) {
718
+ Object.defineProperty(r, "on" + e, {
719
+ get: function() {
720
+ return r._parser["on" + e];
721
+ },
722
+ set: function(t) {
723
+ if (!t) return r.removeAllListeners(e), r._parser["on" + e] = t, t;
724
+ r.on(e, t);
725
+ },
726
+ enumerable: !0,
727
+ configurable: !1
728
+ });
729
+ });
730
+ }
731
+ u.prototype = Object.create(o.prototype, { constructor: { value: u } }), u.prototype._decodeBuffer = function(e, t) {
732
+ if (this._decoderBuffer &&= (e = Buffer.concat([this._decoderBuffer, e]), null), !this._decoder) {
733
+ var n = l(e, t);
734
+ if (!n) return this._decoderBuffer = e, "";
735
+ this._parser.encoding = n, this._decoder = new TextDecoder(n);
736
+ }
737
+ return this._decoder.decode(e, { stream: !t });
738
+ }, u.prototype.write = function(e) {
739
+ if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(e)) e = this._decodeBuffer(e, !1);
740
+ else if (this._decoderBuffer) {
741
+ var t = this._decodeBuffer(Buffer.alloc(0), !0);
742
+ t && (this._parser.write(t), this.emit("data", t));
743
+ }
744
+ return this._parser.write(e.toString()), this.emit("data", e), !0;
745
+ }, u.prototype.end = function(e) {
746
+ if (e && e.length && this.write(e), this._decoderBuffer) {
747
+ var t = this._decodeBuffer(Buffer.alloc(0), !0);
748
+ t && (this._parser.write(t), this.emit("data", t));
749
+ } else if (this._decoder) {
750
+ var n = this._decoder.decode();
751
+ n && (this._parser.write(n), this.emit("data", n));
752
+ }
753
+ return this._parser.end(), !0;
754
+ }, u.prototype.on = function(e, t) {
755
+ var n = this;
756
+ return !n._parser["on" + e] && s.indexOf(e) !== -1 && (n._parser["on" + e] = function() {
757
+ var t = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
758
+ t.splice(0, 0, e), n.emit.apply(n, t);
759
+ }), o.prototype.on.call(n, e, t);
760
+ };
761
+ var d = "[CDATA[", f = "DOCTYPE", p = "http://www.w3.org/XML/1998/namespace", m = "http://www.w3.org/2000/xmlns/", ee = {
762
+ xml: p,
763
+ xmlns: m
764
+ }, h = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, g = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, ne = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, _ = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
765
+ function v(e) {
766
+ return e === " " || e === "\n" || e === "\r" || e === " ";
767
+ }
768
+ function y(e) {
769
+ return e === "\"" || e === "'";
770
+ }
771
+ function re(e) {
772
+ return e === ">" || v(e);
773
+ }
774
+ function b(e, t) {
775
+ return e.test(t);
776
+ }
777
+ function x(e, t) {
778
+ return !b(e, t);
779
+ }
780
+ var S = 0;
781
+ for (var C in e.STATE = {
782
+ BEGIN: S++,
783
+ BEGIN_WHITESPACE: S++,
784
+ TEXT: S++,
785
+ TEXT_ENTITY: S++,
786
+ OPEN_WAKA: S++,
787
+ SGML_DECL: S++,
788
+ SGML_DECL_QUOTED: S++,
789
+ DOCTYPE: S++,
790
+ DOCTYPE_QUOTED: S++,
791
+ DOCTYPE_DTD: S++,
792
+ DOCTYPE_DTD_QUOTED: S++,
793
+ COMMENT_STARTING: S++,
794
+ COMMENT: S++,
795
+ COMMENT_ENDING: S++,
796
+ COMMENT_ENDED: S++,
797
+ CDATA: S++,
798
+ CDATA_ENDING: S++,
799
+ CDATA_ENDING_2: S++,
800
+ PROC_INST: S++,
801
+ PROC_INST_BODY: S++,
802
+ PROC_INST_ENDING: S++,
803
+ OPEN_TAG: S++,
804
+ OPEN_TAG_SLASH: S++,
805
+ ATTRIB: S++,
806
+ ATTRIB_NAME: S++,
807
+ ATTRIB_NAME_SAW_WHITE: S++,
808
+ ATTRIB_VALUE: S++,
809
+ ATTRIB_VALUE_QUOTED: S++,
810
+ ATTRIB_VALUE_CLOSED: S++,
811
+ ATTRIB_VALUE_UNQUOTED: S++,
812
+ ATTRIB_VALUE_ENTITY_Q: S++,
813
+ ATTRIB_VALUE_ENTITY_U: S++,
814
+ CLOSE_TAG: S++,
815
+ CLOSE_TAG_SAW_WHITE: S++,
816
+ SCRIPT: S++,
817
+ SCRIPT_ENDING: S++
818
+ }, e.XML_ENTITIES = {
819
+ amp: "&",
820
+ gt: ">",
821
+ lt: "<",
822
+ quot: "\"",
823
+ apos: "'"
824
+ }, e.ENTITIES = {
825
+ amp: "&",
826
+ gt: ">",
827
+ lt: "<",
828
+ quot: "\"",
829
+ apos: "'",
830
+ AElig: 198,
831
+ Aacute: 193,
832
+ Acirc: 194,
833
+ Agrave: 192,
834
+ Aring: 197,
835
+ Atilde: 195,
836
+ Auml: 196,
837
+ Ccedil: 199,
838
+ ETH: 208,
839
+ Eacute: 201,
840
+ Ecirc: 202,
841
+ Egrave: 200,
842
+ Euml: 203,
843
+ Iacute: 205,
844
+ Icirc: 206,
845
+ Igrave: 204,
846
+ Iuml: 207,
847
+ Ntilde: 209,
848
+ Oacute: 211,
849
+ Ocirc: 212,
850
+ Ograve: 210,
851
+ Oslash: 216,
852
+ Otilde: 213,
853
+ Ouml: 214,
854
+ THORN: 222,
855
+ Uacute: 218,
856
+ Ucirc: 219,
857
+ Ugrave: 217,
858
+ Uuml: 220,
859
+ Yacute: 221,
860
+ aacute: 225,
861
+ acirc: 226,
862
+ aelig: 230,
863
+ agrave: 224,
864
+ aring: 229,
865
+ atilde: 227,
866
+ auml: 228,
867
+ ccedil: 231,
868
+ eacute: 233,
869
+ ecirc: 234,
870
+ egrave: 232,
871
+ eth: 240,
872
+ euml: 235,
873
+ iacute: 237,
874
+ icirc: 238,
875
+ igrave: 236,
876
+ iuml: 239,
877
+ ntilde: 241,
878
+ oacute: 243,
879
+ ocirc: 244,
880
+ ograve: 242,
881
+ oslash: 248,
882
+ otilde: 245,
883
+ ouml: 246,
884
+ szlig: 223,
885
+ thorn: 254,
886
+ uacute: 250,
887
+ ucirc: 251,
888
+ ugrave: 249,
889
+ uuml: 252,
890
+ yacute: 253,
891
+ yuml: 255,
892
+ copy: 169,
893
+ reg: 174,
894
+ nbsp: 160,
895
+ iexcl: 161,
896
+ cent: 162,
897
+ pound: 163,
898
+ curren: 164,
899
+ yen: 165,
900
+ brvbar: 166,
901
+ sect: 167,
902
+ uml: 168,
903
+ ordf: 170,
904
+ laquo: 171,
905
+ not: 172,
906
+ shy: 173,
907
+ macr: 175,
908
+ deg: 176,
909
+ plusmn: 177,
910
+ sup1: 185,
911
+ sup2: 178,
912
+ sup3: 179,
913
+ acute: 180,
914
+ micro: 181,
915
+ para: 182,
916
+ middot: 183,
917
+ cedil: 184,
918
+ ordm: 186,
919
+ raquo: 187,
920
+ frac14: 188,
921
+ frac12: 189,
922
+ frac34: 190,
923
+ iquest: 191,
924
+ times: 215,
925
+ divide: 247,
926
+ OElig: 338,
927
+ oelig: 339,
928
+ Scaron: 352,
929
+ scaron: 353,
930
+ Yuml: 376,
931
+ fnof: 402,
932
+ circ: 710,
933
+ tilde: 732,
934
+ Alpha: 913,
935
+ Beta: 914,
936
+ Gamma: 915,
937
+ Delta: 916,
938
+ Epsilon: 917,
939
+ Zeta: 918,
940
+ Eta: 919,
941
+ Theta: 920,
942
+ Iota: 921,
943
+ Kappa: 922,
944
+ Lambda: 923,
945
+ Mu: 924,
946
+ Nu: 925,
947
+ Xi: 926,
948
+ Omicron: 927,
949
+ Pi: 928,
950
+ Rho: 929,
951
+ Sigma: 931,
952
+ Tau: 932,
953
+ Upsilon: 933,
954
+ Phi: 934,
955
+ Chi: 935,
956
+ Psi: 936,
957
+ Omega: 937,
958
+ alpha: 945,
959
+ beta: 946,
960
+ gamma: 947,
961
+ delta: 948,
962
+ epsilon: 949,
963
+ zeta: 950,
964
+ eta: 951,
965
+ theta: 952,
966
+ iota: 953,
967
+ kappa: 954,
968
+ lambda: 955,
969
+ mu: 956,
970
+ nu: 957,
971
+ xi: 958,
972
+ omicron: 959,
973
+ pi: 960,
974
+ rho: 961,
975
+ sigmaf: 962,
976
+ sigma: 963,
977
+ tau: 964,
978
+ upsilon: 965,
979
+ phi: 966,
980
+ chi: 967,
981
+ psi: 968,
982
+ omega: 969,
983
+ thetasym: 977,
984
+ upsih: 978,
985
+ piv: 982,
986
+ ensp: 8194,
987
+ emsp: 8195,
988
+ thinsp: 8201,
989
+ zwnj: 8204,
990
+ zwj: 8205,
991
+ lrm: 8206,
992
+ rlm: 8207,
993
+ ndash: 8211,
994
+ mdash: 8212,
995
+ lsquo: 8216,
996
+ rsquo: 8217,
997
+ sbquo: 8218,
998
+ ldquo: 8220,
999
+ rdquo: 8221,
1000
+ bdquo: 8222,
1001
+ dagger: 8224,
1002
+ Dagger: 8225,
1003
+ bull: 8226,
1004
+ hellip: 8230,
1005
+ permil: 8240,
1006
+ prime: 8242,
1007
+ Prime: 8243,
1008
+ lsaquo: 8249,
1009
+ rsaquo: 8250,
1010
+ oline: 8254,
1011
+ frasl: 8260,
1012
+ euro: 8364,
1013
+ image: 8465,
1014
+ weierp: 8472,
1015
+ real: 8476,
1016
+ trade: 8482,
1017
+ alefsym: 8501,
1018
+ larr: 8592,
1019
+ uarr: 8593,
1020
+ rarr: 8594,
1021
+ darr: 8595,
1022
+ harr: 8596,
1023
+ crarr: 8629,
1024
+ lArr: 8656,
1025
+ uArr: 8657,
1026
+ rArr: 8658,
1027
+ dArr: 8659,
1028
+ hArr: 8660,
1029
+ forall: 8704,
1030
+ part: 8706,
1031
+ exist: 8707,
1032
+ empty: 8709,
1033
+ nabla: 8711,
1034
+ isin: 8712,
1035
+ notin: 8713,
1036
+ ni: 8715,
1037
+ prod: 8719,
1038
+ sum: 8721,
1039
+ minus: 8722,
1040
+ lowast: 8727,
1041
+ radic: 8730,
1042
+ prop: 8733,
1043
+ infin: 8734,
1044
+ ang: 8736,
1045
+ and: 8743,
1046
+ or: 8744,
1047
+ cap: 8745,
1048
+ cup: 8746,
1049
+ int: 8747,
1050
+ there4: 8756,
1051
+ sim: 8764,
1052
+ cong: 8773,
1053
+ asymp: 8776,
1054
+ ne: 8800,
1055
+ equiv: 8801,
1056
+ le: 8804,
1057
+ ge: 8805,
1058
+ sub: 8834,
1059
+ sup: 8835,
1060
+ nsub: 8836,
1061
+ sube: 8838,
1062
+ supe: 8839,
1063
+ oplus: 8853,
1064
+ otimes: 8855,
1065
+ perp: 8869,
1066
+ sdot: 8901,
1067
+ lceil: 8968,
1068
+ rceil: 8969,
1069
+ lfloor: 8970,
1070
+ rfloor: 8971,
1071
+ lang: 9001,
1072
+ rang: 9002,
1073
+ loz: 9674,
1074
+ spades: 9824,
1075
+ clubs: 9827,
1076
+ hearts: 9829,
1077
+ diams: 9830
1078
+ }, Object.keys(e.ENTITIES).forEach(function(t) {
1079
+ var n = e.ENTITIES[t], r = typeof n == "number" ? String.fromCharCode(n) : n;
1080
+ e.ENTITIES[t] = r;
1081
+ }), e.STATE) e.STATE[e.STATE[C]] = C;
1082
+ S = e.STATE;
1083
+ function w(e, t, n) {
1084
+ e[t] && e[t](n);
1085
+ }
1086
+ function T(e) {
1087
+ var t = e && e.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);
1088
+ return t ? t[2] : null;
1089
+ }
1090
+ function E(e) {
1091
+ return e ? e.toLowerCase().replace(/[^a-z0-9]/g, "") : null;
1092
+ }
1093
+ function D(e, t) {
1094
+ let n = E(e), r = E(t);
1095
+ return !n || !r ? !0 : r === "utf16" ? n === "utf16le" || n === "utf16be" : n === r;
1096
+ }
1097
+ function ie(e, t) {
1098
+ if (!(!e.strict || !e.encoding || !t || t.name !== "xml")) {
1099
+ var n = T(t.body);
1100
+ n && !D(e.encoding, n) && N(e, "XML declaration encoding " + n + " does not match detected stream encoding " + e.encoding.toUpperCase());
1101
+ }
1102
+ }
1103
+ function O(e, t, n) {
1104
+ e.textNode && k(e), w(e, t, n);
1105
+ }
1106
+ function k(e) {
1107
+ e.textNode = A(e.opt, e.textNode), e.textNode && w(e, "ontext", e.textNode), e.textNode = "";
1108
+ }
1109
+ function A(e, t) {
1110
+ return e.trim && (t = t.trim()), e.normalize && (t = t.replace(/\s+/g, " ")), t;
1111
+ }
1112
+ function j(e, t) {
1113
+ return k(e), e.trackPosition && (t += "\nLine: " + e.line + "\nColumn: " + e.column + "\nChar: " + e.c), t = Error(t), e.error = t, w(e, "onerror", t), e;
1114
+ }
1115
+ function M(e) {
1116
+ return e.sawRoot && !e.closedRoot && N(e, "Unclosed root tag"), e.state !== S.BEGIN && e.state !== S.BEGIN_WHITESPACE && e.state !== S.TEXT && j(e, "Unexpected end"), k(e), e.c = "", e.closed = !0, w(e, "onend"), n.call(e, e.strict, e.opt), e;
1117
+ }
1118
+ function N(e, t) {
1119
+ if (typeof e != "object" || !(e instanceof n)) throw Error("bad call to strictFail");
1120
+ e.strict && j(e, t);
1121
+ }
1122
+ function ae(e) {
1123
+ e.strict || (e.tagName = e.tagName[e.looseCase]());
1124
+ var t = e.tags[e.tags.length - 1] || e, n = e.tag = {
1125
+ name: e.tagName,
1126
+ attributes: {}
1127
+ };
1128
+ e.opt.xmlns && (n.ns = t.ns), e.attribList.length = 0, O(e, "onopentagstart", n);
1129
+ }
1130
+ function P(e, t) {
1131
+ var n = e.indexOf(":") < 0 ? ["", e] : e.split(":"), r = n[0], i = n[1];
1132
+ return t && e === "xmlns" && (r = "xmlns", i = ""), {
1133
+ prefix: r,
1134
+ local: i
1135
+ };
1136
+ }
1137
+ function F(e) {
1138
+ if (e.strict || (e.attribName = e.attribName[e.looseCase]()), e.attribList.indexOf(e.attribName) !== -1 || e.tag.attributes.hasOwnProperty(e.attribName)) {
1139
+ e.attribName = e.attribValue = "";
1140
+ return;
1141
+ }
1142
+ if (e.opt.xmlns) {
1143
+ var t = P(e.attribName, !0), n = t.prefix, r = t.local;
1144
+ if (n === "xmlns") if (r === "xml" && e.attribValue !== p) N(e, "xml: prefix must be bound to " + p + "\nActual: " + e.attribValue);
1145
+ else if (r === "xmlns" && e.attribValue !== m) N(e, "xmlns: prefix must be bound to " + m + "\nActual: " + e.attribValue);
1146
+ else {
1147
+ var i = e.tag, a = e.tags[e.tags.length - 1] || e;
1148
+ i.ns === a.ns && (i.ns = Object.create(a.ns)), i.ns[r] = e.attribValue;
1149
+ }
1150
+ e.attribList.push([e.attribName, e.attribValue]);
1151
+ } else e.tag.attributes[e.attribName] = e.attribValue, O(e, "onattribute", {
1152
+ name: e.attribName,
1153
+ value: e.attribValue
1154
+ });
1155
+ e.attribName = e.attribValue = "";
1156
+ }
1157
+ function I(e, t) {
1158
+ if (e.opt.xmlns) {
1159
+ var n = e.tag, r = P(e.tagName);
1160
+ n.prefix = r.prefix, n.local = r.local, n.uri = n.ns[r.prefix] || "", n.prefix && !n.uri && (N(e, "Unbound namespace prefix: " + JSON.stringify(e.tagName)), n.uri = r.prefix);
1161
+ var i = e.tags[e.tags.length - 1] || e;
1162
+ n.ns && i.ns !== n.ns && Object.keys(n.ns).forEach(function(t) {
1163
+ O(e, "onopennamespace", {
1164
+ prefix: t,
1165
+ uri: n.ns[t]
1166
+ });
1167
+ });
1168
+ for (var a = 0, o = e.attribList.length; a < o; a++) {
1169
+ var s = e.attribList[a], c = s[0], l = s[1], u = P(c, !0), d = u.prefix, f = u.local, p = d === "" ? "" : n.ns[d] || "", m = {
1170
+ name: c,
1171
+ value: l,
1172
+ prefix: d,
1173
+ local: f,
1174
+ uri: p
1175
+ };
1176
+ d && d !== "xmlns" && !p && (N(e, "Unbound namespace prefix: " + JSON.stringify(d)), m.uri = d), e.tag.attributes[c] = m, O(e, "onattribute", m);
1177
+ }
1178
+ e.attribList.length = 0;
1179
+ }
1180
+ e.tag.isSelfClosing = !!t, e.sawRoot = !0, e.tags.push(e.tag), O(e, "onopentag", e.tag), t || (!e.noscript && e.tagName.toLowerCase() === "script" ? e.state = S.SCRIPT : e.state = S.TEXT, e.tag = null, e.tagName = ""), e.attribName = e.attribValue = "", e.attribList.length = 0;
1181
+ }
1182
+ function L(e) {
1183
+ if (!e.tagName) {
1184
+ N(e, "Weird empty close tag."), e.textNode += "</>", e.state = S.TEXT;
1185
+ return;
1186
+ }
1187
+ if (e.script) {
1188
+ if (e.tagName !== "script") {
1189
+ e.script += "</" + e.tagName + ">", e.tagName = "", e.state = S.SCRIPT;
1190
+ return;
1191
+ }
1192
+ O(e, "onscript", e.script), e.script = "";
1193
+ }
1194
+ var t = e.tags.length, n = e.tagName;
1195
+ e.strict || (n = n[e.looseCase]());
1196
+ for (var r = n; t-- && e.tags[t].name !== r;) N(e, "Unexpected close tag");
1197
+ if (t < 0) {
1198
+ N(e, "Unmatched closing tag: " + e.tagName), e.textNode += "</" + e.tagName + ">", e.state = S.TEXT;
1199
+ return;
1200
+ }
1201
+ e.tagName = n;
1202
+ for (var i = e.tags.length; i-- > t;) {
1203
+ var a = e.tag = e.tags.pop();
1204
+ e.tagName = e.tag.name, O(e, "onclosetag", e.tagName);
1205
+ var o = {};
1206
+ for (var s in a.ns) o[s] = a.ns[s];
1207
+ var c = e.tags[e.tags.length - 1] || e;
1208
+ e.opt.xmlns && a.ns !== c.ns && Object.keys(a.ns).forEach(function(t) {
1209
+ var n = a.ns[t];
1210
+ O(e, "onclosenamespace", {
1211
+ prefix: t,
1212
+ uri: n
1213
+ });
1214
+ });
1215
+ }
1216
+ t === 0 && (e.closedRoot = !0), e.tagName = e.attribValue = e.attribName = "", e.attribList.length = 0, e.state = S.TEXT;
1217
+ }
1218
+ function oe(e) {
1219
+ var t = e.entity, n = t.toLowerCase(), r, i = "";
1220
+ return e.ENTITIES[t] ? e.ENTITIES[t] : e.ENTITIES[n] ? e.ENTITIES[n] : (t = n, t.charAt(0) === "#" && (t.charAt(1) === "x" ? (t = t.slice(2), r = parseInt(t, 16), i = r.toString(16)) : (t = t.slice(1), r = parseInt(t, 10), i = r.toString(10))), t = t.replace(/^0+/, ""), isNaN(r) || i.toLowerCase() !== t || r < 0 || r > 1114111 ? (N(e, "Invalid character entity"), "&" + e.entity + ";") : String.fromCodePoint(r));
1221
+ }
1222
+ function R(e, t) {
1223
+ t === "<" ? (e.state = S.OPEN_WAKA, e.startTagPosition = e.position) : v(t) || (N(e, "Non-whitespace before first tag."), e.textNode = t, e.state = S.TEXT);
1224
+ }
1225
+ function z(e, t) {
1226
+ var n = "";
1227
+ return t < e.length && (n = e.charAt(t)), n;
1228
+ }
1229
+ function se(t) {
1230
+ var n = this;
1231
+ if (this.error) throw this.error;
1232
+ if (n.closed) return j(n, "Cannot write after close. Assign an onready handler.");
1233
+ if (t === null) return M(n);
1234
+ typeof t == "object" && (t = t.toString());
1235
+ for (var i = 0, a = ""; a = z(t, i++), n.c = a, a;) switch (n.trackPosition && (n.position++, a === "\n" ? (n.line++, n.column = 0) : n.column++), n.state) {
1236
+ case S.BEGIN:
1237
+ if (n.state = S.BEGIN_WHITESPACE, a === "") continue;
1238
+ R(n, a);
1239
+ continue;
1240
+ case S.BEGIN_WHITESPACE:
1241
+ R(n, a);
1242
+ continue;
1243
+ case S.TEXT:
1244
+ if (n.sawRoot && !n.closedRoot) {
1245
+ for (var o = i - 1; a && a !== "<" && a !== "&";) a = z(t, i++), a && n.trackPosition && (n.position++, a === "\n" ? (n.line++, n.column = 0) : n.column++);
1246
+ n.textNode += t.substring(o, i - 1);
1247
+ }
1248
+ a === "<" && !(n.sawRoot && n.closedRoot && !n.strict) ? (n.state = S.OPEN_WAKA, n.startTagPosition = n.position) : (!v(a) && (!n.sawRoot || n.closedRoot) && N(n, "Text data outside of root node."), a === "&" ? n.state = S.TEXT_ENTITY : n.textNode += a);
1249
+ continue;
1250
+ case S.SCRIPT:
1251
+ a === "<" ? n.state = S.SCRIPT_ENDING : n.script += a;
1252
+ continue;
1253
+ case S.SCRIPT_ENDING:
1254
+ a === "/" ? n.state = S.CLOSE_TAG : (n.script += "<" + a, n.state = S.SCRIPT);
1255
+ continue;
1256
+ case S.OPEN_WAKA:
1257
+ if (a === "!") n.state = S.SGML_DECL, n.sgmlDecl = "";
1258
+ else if (!v(a)) if (b(h, a)) n.state = S.OPEN_TAG, n.tagName = a;
1259
+ else if (a === "/") n.state = S.CLOSE_TAG, n.tagName = "";
1260
+ else if (a === "?") n.state = S.PROC_INST, n.procInstName = n.procInstBody = "";
1261
+ else {
1262
+ if (N(n, "Unencoded <"), n.startTagPosition + 1 < n.position) {
1263
+ var s = n.position - n.startTagPosition;
1264
+ a = Array(s).join(" ") + a;
1265
+ }
1266
+ n.textNode += "<" + a, n.state = S.TEXT;
1267
+ }
1268
+ continue;
1269
+ case S.SGML_DECL:
1270
+ if (n.sgmlDecl + a === "--") {
1271
+ n.state = S.COMMENT, n.comment = "", n.sgmlDecl = "";
1272
+ continue;
1273
+ }
1274
+ n.doctype && n.doctype !== !0 && n.sgmlDecl ? (n.state = S.DOCTYPE_DTD, n.doctype += "<!" + n.sgmlDecl + a, n.sgmlDecl = "") : (n.sgmlDecl + a).toUpperCase() === d ? (O(n, "onopencdata"), n.state = S.CDATA, n.sgmlDecl = "", n.cdata = "") : (n.sgmlDecl + a).toUpperCase() === f ? (n.state = S.DOCTYPE, (n.doctype || n.sawRoot) && N(n, "Inappropriately located doctype declaration"), n.doctype = "", n.sgmlDecl = "") : a === ">" ? (O(n, "onsgmldeclaration", n.sgmlDecl), n.sgmlDecl = "", n.state = S.TEXT) : (y(a) && (n.state = S.SGML_DECL_QUOTED), n.sgmlDecl += a);
1275
+ continue;
1276
+ case S.SGML_DECL_QUOTED:
1277
+ a === n.q && (n.state = S.SGML_DECL, n.q = ""), n.sgmlDecl += a;
1278
+ continue;
1279
+ case S.DOCTYPE:
1280
+ a === ">" ? (n.state = S.TEXT, O(n, "ondoctype", n.doctype), n.doctype = !0) : (n.doctype += a, a === "[" ? n.state = S.DOCTYPE_DTD : y(a) && (n.state = S.DOCTYPE_QUOTED, n.q = a));
1281
+ continue;
1282
+ case S.DOCTYPE_QUOTED:
1283
+ n.doctype += a, a === n.q && (n.q = "", n.state = S.DOCTYPE);
1284
+ continue;
1285
+ case S.DOCTYPE_DTD:
1286
+ a === "]" ? (n.doctype += a, n.state = S.DOCTYPE) : a === "<" ? (n.state = S.OPEN_WAKA, n.startTagPosition = n.position) : y(a) ? (n.doctype += a, n.state = S.DOCTYPE_DTD_QUOTED, n.q = a) : n.doctype += a;
1287
+ continue;
1288
+ case S.DOCTYPE_DTD_QUOTED:
1289
+ n.doctype += a, a === n.q && (n.state = S.DOCTYPE_DTD, n.q = "");
1290
+ continue;
1291
+ case S.COMMENT:
1292
+ a === "-" ? n.state = S.COMMENT_ENDING : n.comment += a;
1293
+ continue;
1294
+ case S.COMMENT_ENDING:
1295
+ a === "-" ? (n.state = S.COMMENT_ENDED, n.comment = A(n.opt, n.comment), n.comment && O(n, "oncomment", n.comment), n.comment = "") : (n.comment += "-" + a, n.state = S.COMMENT);
1296
+ continue;
1297
+ case S.COMMENT_ENDED:
1298
+ a === ">" ? n.doctype && n.doctype !== !0 ? n.state = S.DOCTYPE_DTD : n.state = S.TEXT : (N(n, "Malformed comment"), n.comment += "--" + a, n.state = S.COMMENT);
1299
+ continue;
1300
+ case S.CDATA:
1301
+ for (var o = i - 1; a && a !== "]";) a = z(t, i++), a && n.trackPosition && (n.position++, a === "\n" ? (n.line++, n.column = 0) : n.column++);
1302
+ n.cdata += t.substring(o, i - 1), a === "]" && (n.state = S.CDATA_ENDING);
1303
+ continue;
1304
+ case S.CDATA_ENDING:
1305
+ a === "]" ? n.state = S.CDATA_ENDING_2 : (n.cdata += "]" + a, n.state = S.CDATA);
1306
+ continue;
1307
+ case S.CDATA_ENDING_2:
1308
+ a === ">" ? (n.cdata && O(n, "oncdata", n.cdata), O(n, "onclosecdata"), n.cdata = "", n.state = S.TEXT) : a === "]" ? n.cdata += "]" : (n.cdata += "]]" + a, n.state = S.CDATA);
1309
+ continue;
1310
+ case S.PROC_INST:
1311
+ a === "?" ? n.state = S.PROC_INST_ENDING : v(a) ? n.state = S.PROC_INST_BODY : n.procInstName += a;
1312
+ continue;
1313
+ case S.PROC_INST_BODY:
1314
+ if (!n.procInstBody && v(a)) continue;
1315
+ a === "?" ? n.state = S.PROC_INST_ENDING : n.procInstBody += a;
1316
+ continue;
1317
+ case S.PROC_INST_ENDING:
1318
+ if (a === ">") {
1319
+ let e = {
1320
+ name: n.procInstName,
1321
+ body: n.procInstBody
1322
+ };
1323
+ ie(n, e), O(n, "onprocessinginstruction", e), n.procInstName = n.procInstBody = "", n.state = S.TEXT;
1324
+ } else n.procInstBody += "?" + a, n.state = S.PROC_INST_BODY;
1325
+ continue;
1326
+ case S.OPEN_TAG:
1327
+ b(g, a) ? n.tagName += a : (ae(n), a === ">" ? I(n) : a === "/" ? n.state = S.OPEN_TAG_SLASH : (v(a) || N(n, "Invalid character in tag name"), n.state = S.ATTRIB));
1328
+ continue;
1329
+ case S.OPEN_TAG_SLASH:
1330
+ a === ">" ? (I(n, !0), L(n)) : (N(n, "Forward-slash in opening tag not followed by >"), n.state = S.ATTRIB);
1331
+ continue;
1332
+ case S.ATTRIB:
1333
+ if (v(a)) continue;
1334
+ a === ">" ? I(n) : a === "/" ? n.state = S.OPEN_TAG_SLASH : b(h, a) ? (n.attribName = a, n.attribValue = "", n.state = S.ATTRIB_NAME) : N(n, "Invalid attribute name");
1335
+ continue;
1336
+ case S.ATTRIB_NAME:
1337
+ a === "=" ? n.state = S.ATTRIB_VALUE : a === ">" ? (N(n, "Attribute without value"), n.attribValue = n.attribName, F(n), I(n)) : v(a) ? n.state = S.ATTRIB_NAME_SAW_WHITE : b(g, a) ? n.attribName += a : N(n, "Invalid attribute name");
1338
+ continue;
1339
+ case S.ATTRIB_NAME_SAW_WHITE:
1340
+ if (a === "=") n.state = S.ATTRIB_VALUE;
1341
+ else if (v(a)) continue;
1342
+ else N(n, "Attribute without value"), n.tag.attributes[n.attribName] = "", n.attribValue = "", O(n, "onattribute", {
1343
+ name: n.attribName,
1344
+ value: ""
1345
+ }), n.attribName = "", a === ">" ? I(n) : b(h, a) ? (n.attribName = a, n.state = S.ATTRIB_NAME) : (N(n, "Invalid attribute name"), n.state = S.ATTRIB);
1346
+ continue;
1347
+ case S.ATTRIB_VALUE:
1348
+ if (v(a)) continue;
1349
+ y(a) ? (n.q = a, n.state = S.ATTRIB_VALUE_QUOTED) : (n.opt.unquotedAttributeValues || j(n, "Unquoted attribute value"), n.state = S.ATTRIB_VALUE_UNQUOTED, n.attribValue = a);
1350
+ continue;
1351
+ case S.ATTRIB_VALUE_QUOTED:
1352
+ if (a !== n.q) {
1353
+ a === "&" ? n.state = S.ATTRIB_VALUE_ENTITY_Q : n.attribValue += a;
1354
+ continue;
1355
+ }
1356
+ F(n), n.q = "", n.state = S.ATTRIB_VALUE_CLOSED;
1357
+ continue;
1358
+ case S.ATTRIB_VALUE_CLOSED:
1359
+ v(a) ? n.state = S.ATTRIB : a === ">" ? I(n) : a === "/" ? n.state = S.OPEN_TAG_SLASH : b(h, a) ? (N(n, "No whitespace between attributes"), n.attribName = a, n.attribValue = "", n.state = S.ATTRIB_NAME) : N(n, "Invalid attribute name");
1360
+ continue;
1361
+ case S.ATTRIB_VALUE_UNQUOTED:
1362
+ if (!re(a)) {
1363
+ a === "&" ? n.state = S.ATTRIB_VALUE_ENTITY_U : n.attribValue += a;
1364
+ continue;
1365
+ }
1366
+ F(n), a === ">" ? I(n) : n.state = S.ATTRIB;
1367
+ continue;
1368
+ case S.CLOSE_TAG:
1369
+ if (n.tagName) a === ">" ? L(n) : b(g, a) ? n.tagName += a : n.script ? (n.script += "</" + n.tagName + a, n.tagName = "", n.state = S.SCRIPT) : (v(a) || N(n, "Invalid tagname in closing tag"), n.state = S.CLOSE_TAG_SAW_WHITE);
1370
+ else {
1371
+ if (v(a)) continue;
1372
+ x(h, a) ? n.script ? (n.script += "</" + a, n.state = S.SCRIPT) : N(n, "Invalid tagname in closing tag.") : n.tagName = a;
1373
+ }
1374
+ continue;
1375
+ case S.CLOSE_TAG_SAW_WHITE:
1376
+ if (v(a)) continue;
1377
+ a === ">" ? L(n) : N(n, "Invalid characters in closing tag");
1378
+ continue;
1379
+ case S.TEXT_ENTITY:
1380
+ case S.ATTRIB_VALUE_ENTITY_Q:
1381
+ case S.ATTRIB_VALUE_ENTITY_U:
1382
+ var c, l;
1383
+ switch (n.state) {
1384
+ case S.TEXT_ENTITY:
1385
+ c = S.TEXT, l = "textNode";
1386
+ break;
1387
+ case S.ATTRIB_VALUE_ENTITY_Q:
1388
+ c = S.ATTRIB_VALUE_QUOTED, l = "attribValue";
1389
+ break;
1390
+ case S.ATTRIB_VALUE_ENTITY_U:
1391
+ c = S.ATTRIB_VALUE_UNQUOTED, l = "attribValue";
1392
+ break;
1393
+ }
1394
+ if (a === ";") {
1395
+ var u = oe(n);
1396
+ n.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(u) ? ((n.entityCount += 1) > n.opt.maxEntityCount && j(n, "Parsed entity count exceeds max entity count"), (n.entityDepth += 1) > n.opt.maxEntityDepth && j(n, "Parsed entity depth exceeds max entity depth"), n.entity = "", n.state = c, n.write(u), --n.entityDepth) : (n[l] += u, n.entity = "", n.state = c);
1397
+ } else b(n.entity.length ? _ : ne, a) ? n.entity += a : (N(n, "Invalid character in entity name"), n[l] += "&" + n.entity + a, n.entity = "", n.state = c);
1398
+ continue;
1399
+ default: throw Error(n, "Unknown state: " + n.state);
1400
+ }
1401
+ return n.position >= n.bufferCheckPosition && r(n), n;
1402
+ }
1403
+ /* istanbul ignore next */
1404
+ String.fromCodePoint || (function() {
1405
+ var e = String.fromCharCode, t = Math.floor, n = function() {
1406
+ var n = 16384, r = [], i, a, o = -1, s = arguments.length;
1407
+ if (!s) return "";
1408
+ for (var c = ""; ++o < s;) {
1409
+ var l = Number(arguments[o]);
1410
+ if (!isFinite(l) || l < 0 || l > 1114111 || t(l) !== l) throw RangeError("Invalid code point: " + l);
1411
+ l <= 65535 ? r.push(l) : (l -= 65536, i = (l >> 10) + 55296, a = l % 1024 + 56320, r.push(i, a)), (o + 1 === s || r.length > n) && (c += e.apply(null, r), r.length = 0);
1412
+ }
1413
+ return c;
1414
+ };
1415
+ /* istanbul ignore next */
1416
+ Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
1417
+ value: n,
1418
+ configurable: !0,
1419
+ writable: !0
1420
+ }) : String.fromCodePoint = n;
1421
+ })();
1422
+ })(e === void 0 ? e.sax = {} : e);
1423
+ })))();
1424
+ //#endregion
1425
+ //#region src/Config/Sitemap.ts
1426
+ var $e = (e, t) => {
1427
+ let n = [
1428
+ "# https://www.robotstxt.org/robotstxt.html",
1429
+ `Sitemap: ${e}/${t.filename}`,
1430
+ "User-agent: *",
1431
+ "Disallow:"
1432
+ ];
1433
+ t.filename = "robots.txt", g(n.join("\r\n"), t);
1434
+ }, et = async (e, t, n, r) => {
1435
+ let i = new Ze({
1436
+ hostname: e,
1437
+ lastmodDateOnly: !1,
1438
+ xmlns: {
1439
+ news: !1,
1440
+ xhtml: !1,
1441
+ image: !1,
1442
+ video: !1,
1443
+ custom: ["xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"", "xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\""]
1444
+ }
1445
+ });
1446
+ g(await Qe(ee.from(t).pipe(i)).then((e) => e.toString()), r), n && $e(e, r);
1447
+ }, tt = async (e, t) => {
1448
+ let n = await D(e, t.spreadsheetId, t.spreadsheetTab);
1449
+ if (!n || n.length === 0) {
1450
+ console.log("No data found.");
1451
+ return;
1452
+ }
1453
+ O(ie(n), t.output);
1454
+ }, nt = async (e, t) => {
1455
+ let n = await D(e, t.spreadsheetId, t.spreadsheetTab);
1456
+ if (!n || n.length === 0) {
1457
+ console.log("No data found.");
1458
+ return;
1459
+ }
1460
+ re(ne(n), t.output);
1461
+ }, rt = (e) => {
1462
+ try {
1463
+ tt(E(), e);
1464
+ } catch (e) {
1465
+ console.error(e);
1466
+ }
1467
+ }, it = (e) => {
1468
+ try {
1469
+ nt(E(), e);
1470
+ } catch (e) {
1471
+ console.error(e);
1472
+ }
1473
+ }, at = (e) => {
1474
+ try {
1475
+ let t = E();
1476
+ e.forEach((e) => {
1477
+ e.formatAs === "locales" ? tt(t, e) : e.formatAs === "config" && nt(t, e);
1478
+ });
1479
+ } catch (e) {
1480
+ console.error(e);
1481
+ }
1482
+ }, ot = async (e) => {
1483
+ try {
1484
+ return await D(E(), e.spreadsheetId, e.spreadsheetTab);
1485
+ } catch (e) {
1486
+ console.error(e);
1487
+ }
1488
+ return null;
1489
+ };
1490
+ //#endregion
1491
+ export { et as a, ot as i, it as n, C as o, rt as r, S as s, at as t };
1492
+
1493
+ //# sourceMappingURL=config-cli-CY_z5CYp.js.map