@prosopo/cli 3.7.23 → 3.7.25

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.
@@ -52,7 +52,24 @@ function d(e) {
52
52
  if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
53
53
  }), e;
54
54
  }
55
- var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
55
+ function f(e) {
56
+ return typeof e == "string" && [
57
+ /<\s*script.*?>/i,
58
+ /<\s*\/\s*script\s*>/i,
59
+ /<\s*img.*?on\w+\s*=/i,
60
+ /<\s*\w+\s*on\w+\s*=.*?>/i,
61
+ /javascript\s*:/i,
62
+ /vbscript\s*:/i,
63
+ /expression\s*\(/i,
64
+ /eval\s*\(/i,
65
+ /alert\s*\(/i,
66
+ /document\.cookie/i,
67
+ /document\.write\s*\(/i,
68
+ /window\.location/i,
69
+ /innerHTML/i
70
+ ].some((t) => t.test(e));
71
+ }
72
+ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
56
73
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
57
74
  if (n.maxAge > 0) {
58
75
  let e = n.maxAge - 0;
@@ -60,11 +77,11 @@ var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
60
77
  r += `; Max-Age=${Math.floor(e)}`;
61
78
  }
62
79
  if (n.domain) {
63
- if (!f.test(n.domain)) throw TypeError("option domain is invalid");
80
+ if (!p.test(n.domain)) throw TypeError("option domain is invalid");
64
81
  r += `; Domain=${n.domain}`;
65
82
  }
66
83
  if (n.path) {
67
- if (!f.test(n.path)) throw TypeError("option path is invalid");
84
+ if (!p.test(n.path)) throw TypeError("option path is invalid");
68
85
  r += `; Path=${n.path}`;
69
86
  }
70
87
  if (n.expires) {
@@ -86,14 +103,14 @@ var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
86
103
  break;
87
104
  default: throw TypeError("option sameSite is invalid");
88
105
  }
89
- return r;
90
- }, p = {
106
+ return n.partitioned && (r += "; Partitioned"), r;
107
+ }, m = {
91
108
  create(e, t, n, r) {
92
109
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
93
110
  path: "/",
94
111
  sameSite: "strict"
95
112
  };
96
- n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = ee(e, encodeURIComponent(t), i);
113
+ n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = ee(e, t, i);
97
114
  },
98
115
  read(e) {
99
116
  let t = `${e}=`, n = document.cookie.split(";");
@@ -104,18 +121,18 @@ var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
104
121
  }
105
122
  return null;
106
123
  },
107
- remove(e) {
108
- this.create(e, "", -1);
124
+ remove(e, t) {
125
+ this.create(e, "", -1, t);
109
126
  }
110
127
  }, te = {
111
128
  name: "cookie",
112
129
  lookup(e) {
113
130
  let { lookupCookie: t } = e;
114
- if (t && typeof document < "u") return p.read(t) || void 0;
131
+ if (t && typeof document < "u") return m.read(t) || void 0;
115
132
  },
116
133
  cacheUserLanguage(e, t) {
117
134
  let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
118
- n && typeof document < "u" && p.create(n, e, r, i, a);
135
+ n && typeof document < "u" && m.create(n, e, r, i, a);
119
136
  }
120
137
  }, ne = {
121
138
  name: "querystring",
@@ -132,45 +149,69 @@ var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
132
149
  }
133
150
  return n;
134
151
  }
135
- }, m = null, h = () => {
136
- if (m !== null) return m;
152
+ }, re = {
153
+ name: "hash",
154
+ lookup(e) {
155
+ let { lookupHash: t, lookupFromHashIndex: n } = e, r;
156
+ if (typeof window < "u") {
157
+ let { hash: e } = window.location;
158
+ if (e && e.length > 2) {
159
+ let i = e.substring(1);
160
+ if (t) {
161
+ let e = i.split("&");
162
+ for (let n = 0; n < e.length; n++) {
163
+ let i = e[n].indexOf("=");
164
+ i > 0 && e[n].substring(0, i) === t && (r = e[n].substring(i + 1));
165
+ }
166
+ }
167
+ if (r) return r;
168
+ if (!r && n > -1) {
169
+ let t = e.match(/\/([a-zA-Z-]*)/g);
170
+ return Array.isArray(t) ? t[typeof n == "number" ? n : 0]?.replace("/", "") : void 0;
171
+ }
172
+ }
173
+ }
174
+ return r;
175
+ }
176
+ }, h = null, g = () => {
177
+ if (h !== null) return h;
137
178
  try {
138
- m = window !== "undefined" && window.localStorage !== null;
179
+ if (h = typeof window < "u" && window.localStorage !== null, !h) return !1;
139
180
  let e = "i18next.translate.boo";
140
181
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
141
182
  } catch {
142
- m = !1;
183
+ h = !1;
143
184
  }
144
- return m;
145
- }, re = {
185
+ return h;
186
+ }, ie = {
146
187
  name: "localStorage",
147
188
  lookup(e) {
148
189
  let { lookupLocalStorage: t } = e;
149
- if (t && h()) return window.localStorage.getItem(t) || void 0;
190
+ if (t && g()) return window.localStorage.getItem(t) || void 0;
150
191
  },
151
192
  cacheUserLanguage(e, t) {
152
193
  let { lookupLocalStorage: n } = t;
153
- n && h() && window.localStorage.setItem(n, e);
194
+ n && g() && window.localStorage.setItem(n, e);
154
195
  }
155
- }, g = null, _ = () => {
156
- if (g !== null) return g;
196
+ }, _ = null, v = () => {
197
+ if (_ !== null) return _;
157
198
  try {
158
- g = window !== "undefined" && window.sessionStorage !== null;
199
+ if (_ = typeof window < "u" && window.sessionStorage !== null, !_) return !1;
159
200
  let e = "i18next.translate.boo";
160
201
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
161
202
  } catch {
162
- g = !1;
203
+ _ = !1;
163
204
  }
164
- return g;
165
- }, ie = {
205
+ return _;
206
+ }, y = {
166
207
  name: "sessionStorage",
167
208
  lookup(e) {
168
209
  let { lookupSessionStorage: t } = e;
169
- if (t && _()) return window.sessionStorage.getItem(t) || void 0;
210
+ if (t && v()) return window.sessionStorage.getItem(t) || void 0;
170
211
  },
171
212
  cacheUserLanguage(e, t) {
172
213
  let { lookupSessionStorage: n } = t;
173
- n && _() && window.sessionStorage.setItem(n, e);
214
+ n && v() && window.sessionStorage.setItem(n, e);
174
215
  }
175
216
  }, ae = {
176
217
  name: "navigator",
@@ -189,7 +230,7 @@ var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
189
230
  let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
190
231
  return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
191
232
  }
192
- }, v = {
233
+ }, se = {
193
234
  name: "path",
194
235
  lookup(e) {
195
236
  let { lookupFromPathIndex: t } = e;
@@ -197,7 +238,7 @@ var f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
197
238
  let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
198
239
  if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
199
240
  }
200
- }, y = {
241
+ }, ce = {
201
242
  name: "subdomain",
202
243
  lookup(e) {
203
244
  let { lookupFromSubdomainIndex: t } = e, n = typeof t == "number" ? t + 1 : 1, r = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
@@ -232,7 +273,7 @@ var S = () => ({
232
273
  }
233
274
  init() {
234
275
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { languageUtils: {} }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
235
- this.services = e, this.options = d(t, this.options || {}, S()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(te), this.addDetector(ne), this.addDetector(re), this.addDetector(ie), this.addDetector(ae), this.addDetector(oe), this.addDetector(v), this.addDetector(y);
276
+ this.services = e, this.options = d(t, this.options || {}, S()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(te), this.addDetector(ne), this.addDetector(ie), this.addDetector(y), this.addDetector(ae), this.addDetector(oe), this.addDetector(se), this.addDetector(ce), this.addDetector(re);
236
277
  }
237
278
  addDetector(e) {
238
279
  return this.detectors[e.name] = e, this;
@@ -244,7 +285,7 @@ var S = () => ({
244
285
  let n = this.detectors[e].lookup(this.options);
245
286
  n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
246
287
  }
247
- }), t = t.map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
288
+ }), t = t.filter((e) => e != null && !f(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
248
289
  }
249
290
  cacheUserLanguage(e) {
250
291
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -256,7 +297,7 @@ var S = () => ({
256
297
  C.type = "languageDetector";
257
298
  //#endregion
258
299
  //#region ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
259
- function se(e, t) {
300
+ function le(e, t) {
260
301
  if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
261
302
  }
262
303
  //#endregion
@@ -271,7 +312,7 @@ function w(e) {
271
312
  }
272
313
  //#endregion
273
314
  //#region ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
274
- function ce(e, t) {
315
+ function ue(e, t) {
275
316
  if (w(e) != "object" || !e) return e;
276
317
  var n = e[Symbol.toPrimitive];
277
318
  if (n !== void 0) {
@@ -283,8 +324,8 @@ function ce(e, t) {
283
324
  }
284
325
  //#endregion
285
326
  //#region ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
286
- function le(e) {
287
- var t = ce(e, "string");
327
+ function de(e) {
328
+ var t = ue(e, "string");
288
329
  return w(t) == "symbol" ? t : t + "";
289
330
  }
290
331
  //#endregion
@@ -292,7 +333,7 @@ function le(e) {
292
333
  function T(e, t) {
293
334
  for (var n = 0; n < t.length; n++) {
294
335
  var r = t[n];
295
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, le(r.key), r);
336
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, de(r.key), r);
296
337
  }
297
338
  }
298
339
  function E(e, t, n) {
@@ -300,16 +341,16 @@ function E(e, t, n) {
300
341
  }
301
342
  //#endregion
302
343
  //#region ../../node_modules/i18next-chained-backend/dist/esm/i18nextChainedBackend.js
303
- var D = [], ue = D.forEach, de = D.slice;
304
- function fe(e) {
305
- return ue.call(de.call(arguments, 1), function(t) {
344
+ var D = [], fe = D.forEach, pe = D.slice;
345
+ function me(e) {
346
+ return fe.call(pe.call(arguments, 1), function(t) {
306
347
  if (t) for (var n in t) e[n] === void 0 && (e[n] = t[n]);
307
348
  }), e;
308
349
  }
309
- function pe(e) {
350
+ function he(e) {
310
351
  return e ? typeof e == "function" ? new e() : e : null;
311
352
  }
312
- function me() {
353
+ function ge() {
313
354
  return {
314
355
  handleEmptyResourcesAsFailed: !0,
315
356
  cacheHitMode: "none"
@@ -333,15 +374,15 @@ function O(e, t, n, r) {
333
374
  var k = /*#__PURE__*/ function() {
334
375
  function e(t) {
335
376
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
336
- se(this, e), this.backends = [], this.type = "backend", this.allOptions = r, this.init(t, n);
377
+ le(this, e), this.backends = [], this.type = "backend", this.allOptions = r, this.init(t, n);
337
378
  }
338
379
  return E(e, [
339
380
  {
340
381
  key: "init",
341
382
  value: function(e) {
342
383
  var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
343
- this.services = e, this.options = fe(n, this.options || {}, me()), this.allOptions = r, this.options.backends && this.options.backends.forEach(function(n, i) {
344
- t.backends[i] = t.backends[i] || pe(n), t.backends[i].init(e, t.options.backendOptions && t.options.backendOptions[i] || {}, r);
384
+ this.services = e, this.options = me(n, this.options || {}, ge()), this.allOptions = r, this.options.backends && this.options.backends.forEach(function(n, i) {
385
+ t.backends[i] = t.backends[i] || he(n), t.backends[i].init(e, t.options.backendOptions && t.options.backendOptions[i] || {}, r);
345
386
  }), this.services && this.options.reloadInterval && setInterval(function() {
346
387
  return t.reload();
347
388
  }, this.options.reloadInterval);
@@ -436,11 +477,11 @@ j.forEach, j.slice;
436
477
  function M() {
437
478
  return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : A(XMLHttpRequest)) === "object";
438
479
  }
439
- function he(e) {
480
+ function _e(e) {
440
481
  return !!e && typeof e.then == "function";
441
482
  }
442
483
  function N(e) {
443
- return he(e) ? e : Promise.resolve(e);
484
+ return _e(e) ? e : Promise.resolve(e);
444
485
  }
445
486
  //#endregion
446
487
  //#region ../../node_modules/i18next-http-backend/esm/request.js
@@ -466,54 +507,54 @@ function F(e) {
466
507
  return e;
467
508
  }
468
509
  function I(e, t, n) {
469
- return (t = L(t)) in e ? Object.defineProperty(e, t, {
510
+ return (t = ve(t)) in e ? Object.defineProperty(e, t, {
470
511
  value: n,
471
512
  enumerable: !0,
472
513
  configurable: !0,
473
514
  writable: !0
474
515
  }) : e[t] = n, e;
475
516
  }
476
- function L(e) {
477
- var t = ge(e, "string");
478
- return R(t) == "symbol" ? t : t + "";
517
+ function ve(e) {
518
+ var t = ye(e, "string");
519
+ return L(t) == "symbol" ? t : t + "";
479
520
  }
480
- function ge(e, t) {
481
- if (R(e) != "object" || !e) return e;
521
+ function ye(e, t) {
522
+ if (L(e) != "object" || !e) return e;
482
523
  var n = e[Symbol.toPrimitive];
483
524
  if (n !== void 0) {
484
525
  var r = n.call(e, t || "default");
485
- if (R(r) != "object") return r;
526
+ if (L(r) != "object") return r;
486
527
  throw TypeError("@@toPrimitive must return a primitive value.");
487
528
  }
488
529
  return (t === "string" ? String : Number)(e);
489
530
  }
490
- function R(e) {
531
+ function L(e) {
491
532
  "@babel/helpers - typeof";
492
- return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
533
+ return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
493
534
  return typeof e;
494
535
  } : function(e) {
495
536
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
496
- }, R(e);
537
+ }, L(e);
497
538
  }
498
- var z = typeof fetch == "function" ? fetch : void 0;
499
- typeof global < "u" && global.fetch ? z = global.fetch : typeof window < "u" && window.fetch && (z = window.fetch);
539
+ var R = typeof fetch == "function" ? fetch : void 0;
540
+ typeof global < "u" && global.fetch ? R = global.fetch : typeof window < "u" && window.fetch && (R = window.fetch);
541
+ var z;
542
+ M() && (typeof global < "u" && global.XMLHttpRequest ? z = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (z = window.XMLHttpRequest));
500
543
  var B;
501
- M() && (typeof global < "u" && global.XMLHttpRequest ? B = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (B = window.XMLHttpRequest));
502
- var V;
503
- if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? V = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (V = window.ActiveXObject)), typeof z != "function" && (z = void 0), !z && !B && !V) try {
544
+ if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? B = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (B = window.ActiveXObject)), typeof R != "function" && (R = void 0), !R && !z && !B) try {
504
545
  import("./node-ponyfill-BXKwLYwg.js").then((e) => /* @__PURE__ */ n(e.default, 1)).then(function(e) {
505
- z = e.default;
546
+ R = e.default;
506
547
  }).catch(function() {});
507
548
  } catch {}
508
- var H = function(e, t) {
509
- if (t && R(t) === "object") {
549
+ var V = function(e, t) {
550
+ if (t && L(t) === "object") {
510
551
  var n = "";
511
552
  for (var r in t) n += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(t[r]);
512
553
  if (!n) return e;
513
554
  e = e + (e.indexOf("?") === -1 ? "?" : "&") + n.slice(1);
514
555
  }
515
556
  return e;
516
- }, U = function(e, t, n, r) {
557
+ }, H = function(e, t, n, r) {
517
558
  var i = function(e) {
518
559
  if (!e.ok) return n(e.statusText || "Error", { status: e.status });
519
560
  e.text().then(function(t) {
@@ -530,32 +571,32 @@ var H = function(e, t) {
530
571
  return;
531
572
  }
532
573
  }
533
- typeof fetch == "function" ? fetch(e, t).then(i).catch(n) : z(e, t).then(i).catch(n);
534
- }, W = !1, _e = function(e, t, n, r) {
535
- e.queryStringParams && (t = H(t, e.queryStringParams));
574
+ typeof fetch == "function" ? fetch(e, t).then(i).catch(n) : R(e, t).then(i).catch(n);
575
+ }, U = !1, be = function(e, t, n, r) {
576
+ e.queryStringParams && (t = V(t, e.queryStringParams));
536
577
  var i = F({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
537
578
  typeof window > "u" && typeof global < "u" && global.process !== void 0 && global.process.versions && global.process.versions.node && (i["User-Agent"] = `i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`), n && (i["Content-Type"] = "application/json");
538
579
  var a = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, o = F({
539
580
  method: n ? "POST" : "GET",
540
581
  body: n ? e.stringify(n) : void 0,
541
582
  headers: i
542
- }, W ? {} : a), s = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
583
+ }, U ? {} : a), s = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
543
584
  try {
544
- U(t, o, r, s);
585
+ H(t, o, r, s);
545
586
  } catch (e) {
546
587
  if (!a || Object.keys(a).length === 0 || !e.message || e.message.indexOf("not implemented") < 0) return r(e);
547
588
  try {
548
589
  Object.keys(a).forEach(function(e) {
549
590
  delete o[e];
550
- }), U(t, o, r, s), W = !0;
591
+ }), H(t, o, r, s), U = !0;
551
592
  } catch (e) {
552
593
  r(e);
553
594
  }
554
595
  }
555
- }, ve = function(e, t, n, r) {
556
- n && R(n) === "object" && (n = H("", n).slice(1)), e.queryStringParams && (t = H(t, e.queryStringParams));
596
+ }, xe = function(e, t, n, r) {
597
+ n && L(n) === "object" && (n = V("", n).slice(1)), e.queryStringParams && (t = V(t, e.queryStringParams));
557
598
  try {
558
- var i = B ? new B() : new V("MSXML2.XMLHTTP.3.0");
599
+ var i = z ? new z() : new B("MSXML2.XMLHTTP.3.0");
559
600
  i.open(n ? "POST" : "GET", t, 1), e.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!e.withCredentials, n && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
560
601
  var a = e.customHeaders;
561
602
  if (a = typeof a == "function" ? a() : a, a) for (var o in a) i.setRequestHeader(o, a[o]);
@@ -568,22 +609,22 @@ var H = function(e, t) {
568
609
  } catch (e) {
569
610
  console && console.log(e);
570
611
  }
571
- }, ye = function(e, t, n, r) {
572
- if (typeof n == "function" && (r = n, n = void 0), r ||= function() {}, z && t.indexOf("file:") !== 0) return _e(e, t, n, r);
573
- if (M() || typeof ActiveXObject == "function") return ve(e, t, n, r);
612
+ }, Se = function(e, t, n, r) {
613
+ if (typeof n == "function" && (r = n, n = void 0), r ||= function() {}, R && t.indexOf("file:") !== 0) return be(e, t, n, r);
614
+ if (M() || typeof ActiveXObject == "function") return xe(e, t, n, r);
574
615
  r(/* @__PURE__ */ Error("No fetch and no xhr implementation found!"));
575
616
  };
576
617
  //#endregion
577
618
  //#region ../../node_modules/i18next-http-backend/esm/index.js
578
- function G(e) {
619
+ function W(e) {
579
620
  "@babel/helpers - typeof";
580
- return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
621
+ return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
581
622
  return typeof e;
582
623
  } : function(e) {
583
624
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
584
- }, G(e);
625
+ }, W(e);
585
626
  }
586
- function K(e, t) {
627
+ function G(e, t) {
587
628
  var n = Object.keys(e);
588
629
  if (Object.getOwnPropertySymbols) {
589
630
  var r = Object.getOwnPropertySymbols(e);
@@ -593,52 +634,52 @@ function K(e, t) {
593
634
  }
594
635
  return n;
595
636
  }
596
- function q(e) {
637
+ function K(e) {
597
638
  for (var t = 1; t < arguments.length; t++) {
598
639
  var n = arguments[t] == null ? {} : arguments[t];
599
- t % 2 ? K(Object(n), !0).forEach(function(t) {
600
- Y(e, t, n[t]);
601
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K(Object(n)).forEach(function(t) {
640
+ t % 2 ? G(Object(n), !0).forEach(function(t) {
641
+ J(e, t, n[t]);
642
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G(Object(n)).forEach(function(t) {
602
643
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
603
644
  });
604
645
  }
605
646
  return e;
606
647
  }
607
- function be(e, t) {
648
+ function Ce(e, t) {
608
649
  if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
609
650
  }
610
- function J(e, t) {
651
+ function q(e, t) {
611
652
  for (var n = 0; n < t.length; n++) {
612
653
  var r = t[n];
613
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, X(r.key), r);
654
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Y(r.key), r);
614
655
  }
615
656
  }
616
- function xe(e, t, n) {
617
- return t && J(e.prototype, t), n && J(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
657
+ function we(e, t, n) {
658
+ return t && q(e.prototype, t), n && q(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
618
659
  }
619
- function Y(e, t, n) {
620
- return (t = X(t)) in e ? Object.defineProperty(e, t, {
660
+ function J(e, t, n) {
661
+ return (t = Y(t)) in e ? Object.defineProperty(e, t, {
621
662
  value: n,
622
663
  enumerable: !0,
623
664
  configurable: !0,
624
665
  writable: !0
625
666
  }) : e[t] = n, e;
626
667
  }
627
- function X(e) {
628
- var t = Se(e, "string");
629
- return G(t) == "symbol" ? t : t + "";
668
+ function Y(e) {
669
+ var t = Te(e, "string");
670
+ return W(t) == "symbol" ? t : t + "";
630
671
  }
631
- function Se(e, t) {
632
- if (G(e) != "object" || !e) return e;
672
+ function Te(e, t) {
673
+ if (W(e) != "object" || !e) return e;
633
674
  var n = e[Symbol.toPrimitive];
634
675
  if (n !== void 0) {
635
676
  var r = n.call(e, t || "default");
636
- if (G(r) != "object") return r;
677
+ if (W(r) != "object") return r;
637
678
  throw TypeError("@@toPrimitive must return a primitive value.");
638
679
  }
639
680
  return (t === "string" ? String : Number)(e);
640
681
  }
641
- var Ce = function() {
682
+ var Ee = function() {
642
683
  return {
643
684
  loadPath: "/locales/{{lng}}/{{ns}}.json",
644
685
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -647,10 +688,10 @@ var Ce = function() {
647
688
  },
648
689
  stringify: JSON.stringify,
649
690
  parsePayload: function(e, t, n) {
650
- return Y({}, t, n || "");
691
+ return J({}, t, n || "");
651
692
  },
652
693
  parseLoadPayload: function(e, t) {},
653
- request: ye,
694
+ request: Se,
654
695
  reloadInterval: typeof window < "u" ? !1 : 3600 * 1e3,
655
696
  customHeaders: {},
656
697
  queryStringParams: {},
@@ -663,21 +704,21 @@ var Ce = function() {
663
704
  cache: "default"
664
705
  }
665
706
  };
666
- }, Z = function() {
707
+ }, X = function() {
667
708
  function e(t) {
668
709
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
669
- be(this, e), this.services = t, this.options = n, this.allOptions = r, this.type = "backend", this.init(t, n, r);
710
+ Ce(this, e), this.services = t, this.options = n, this.allOptions = r, this.type = "backend", this.init(t, n, r);
670
711
  }
671
- return xe(e, [
712
+ return we(e, [
672
713
  {
673
714
  key: "init",
674
715
  value: function(e) {
675
716
  var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
676
- if (this.services = e, this.options = q(q(q({}, Ce()), this.options || {}), n), this.allOptions = r, this.services && this.options.reloadInterval) {
717
+ if (this.services = e, this.options = K(K(K({}, Ee()), this.options || {}), n), this.allOptions = r, this.services && this.options.reloadInterval) {
677
718
  var i = setInterval(function() {
678
719
  return t.reload();
679
720
  }, this.options.reloadInterval);
680
- G(i) === "object" && typeof i.unref == "function" && i.unref();
721
+ W(i) === "object" && typeof i.unref == "function" && i.unref();
681
722
  }
682
723
  }
683
724
  },
@@ -782,14 +823,21 @@ var Ce = function() {
782
823
  }
783
824
  ]);
784
825
  }();
785
- Z.type = "backend";
826
+ X.type = "backend";
786
827
  //#endregion
787
828
  //#region ../../node_modules/i18next-resources-to-backend/dist/esm/index.js
788
- var we = function(e) {
829
+ var De = [
830
+ "__proto__",
831
+ "constructor",
832
+ "prototype"
833
+ ], Z = function(e, t) {
834
+ return !(typeof e != "string" || e.length > 128 || De.indexOf(e) > -1 || e.indexOf("..") > -1 || e.indexOf("\\") > -1 || !t && e.indexOf("/") > -1 || /[\x00-\x1F\x7F]/.test(e));
835
+ }, Oe = function(e) {
789
836
  return {
790
837
  type: "backend",
791
838
  init: function(e, t, n) {},
792
839
  read: function(t, n, r) {
840
+ if (!Z(t, !1) || !Z(n, !0)) return r(/* @__PURE__ */ Error("i18next-resources-to-backend: unsafe language/namespace value"), !1);
793
841
  if (typeof e == "function") {
794
842
  if (e.length < 3) {
795
843
  try {
@@ -808,7 +856,7 @@ var we = function(e) {
808
856
  r(null, e && e[t] && e[t][n]);
809
857
  }
810
858
  };
811
- }, Te = {
859
+ }, ke = {
812
860
  react: { useSuspense: !0 },
813
861
  detection: {
814
862
  order: [
@@ -840,10 +888,10 @@ function $(n, r) {
840
888
  ...e,
841
889
  ...r ? { lng: r } : {},
842
890
  backend: {
843
- backends: [Z, we((e, t) => import(Q(e, t)))],
891
+ backends: [X, Oe((e, t) => import(Q(e, t)))],
844
892
  backendOptions: [{ loadPath: Q("{{lng}}", "{{ns}}") }]
845
893
  },
846
- ...Te
894
+ ...ke
847
895
  });
848
896
  let i = !1;
849
897
  t.on("loaded", () => {
Binary file