vendors-node_modules_taro_weapp_prebundle_react-i18next_js.js 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988
  1. "use strict";
  2. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_react-i18next_js"],{
  3. /***/ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js":
  4. /*!**************************************************************!*\
  5. !*** ./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js ***!
  6. \**************************************************************/
  7. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  8. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9. /* harmony export */ __commonJS: function() { return /* binding */ __commonJS; },
  10. /* harmony export */ __esm: function() { return /* binding */ __esm; },
  11. /* harmony export */ __export: function() { return /* binding */ __export; },
  12. /* harmony export */ __toCommonJS: function() { return /* binding */ __toCommonJS; },
  13. /* harmony export */ __toESM: function() { return /* binding */ __toESM; }
  14. /* harmony export */ });
  15. var __create = Object.create;
  16. var __defProp = Object.defineProperty;
  17. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  18. var __getOwnPropNames = Object.getOwnPropertyNames;
  19. var __getProtoOf = Object.getPrototypeOf;
  20. var __hasOwnProp = Object.prototype.hasOwnProperty;
  21. var __esm = (fn, res)=>function __init() {
  22. return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
  23. };
  24. var __commonJS = (cb, mod)=>function __require() {
  25. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
  26. exports: {}
  27. }).exports, mod), mod.exports;
  28. };
  29. var __export = (target, all)=>{
  30. for(var name in all)__defProp(target, name, {
  31. get: all[name],
  32. enumerable: true
  33. });
  34. };
  35. var __copyProps = (to, from, except, desc)=>{
  36. if (from && typeof from === "object" || typeof from === "function") {
  37. for (let key of __getOwnPropNames(from))if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
  38. get: ()=>from[key],
  39. enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
  40. });
  41. }
  42. return to;
  43. };
  44. var __toESM = (mod, isNodeMode, target)=>(target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
  45. value: mod,
  46. enumerable: true
  47. }) : target, mod));
  48. var __toCommonJS = (mod)=>__copyProps(__defProp({}, "__esModule", {
  49. value: true
  50. }), mod);
  51. /***/ }),
  52. /***/ "./node_modules/.taro/weapp/prebundle/react-i18next.js":
  53. /*!*************************************************************!*\
  54. !*** ./node_modules/.taro/weapp/prebundle/react-i18next.js ***!
  55. \*************************************************************/
  56. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  57. __webpack_require__.r(__webpack_exports__);
  58. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  59. /* harmony export */ I18nContext: function() { return /* binding */ I18nContext; },
  60. /* harmony export */ I18nextProvider: function() { return /* binding */ I18nextProvider; },
  61. /* harmony export */ Trans: function() { return /* binding */ Trans2; },
  62. /* harmony export */ TransWithoutContext: function() { return /* binding */ Trans; },
  63. /* harmony export */ Translation: function() { return /* binding */ Translation; },
  64. /* harmony export */ composeInitialProps: function() { return /* binding */ composeInitialProps; },
  65. /* harmony export */ date: function() { return /* binding */ date; },
  66. /* harmony export */ getDefaults: function() { return /* binding */ getDefaults; },
  67. /* harmony export */ getI18n: function() { return /* binding */ getI18n; },
  68. /* harmony export */ getInitialProps: function() { return /* binding */ getInitialProps; },
  69. /* harmony export */ initReactI18next: function() { return /* binding */ initReactI18next; },
  70. /* harmony export */ number: function() { return /* binding */ number; },
  71. /* harmony export */ plural: function() { return /* binding */ plural; },
  72. /* harmony export */ select: function() { return /* binding */ select; },
  73. /* harmony export */ selectOrdinal: function() { return /* binding */ selectOrdinal; },
  74. /* harmony export */ setDefaults: function() { return /* binding */ setDefaults; },
  75. /* harmony export */ setI18n: function() { return /* binding */ setI18n; },
  76. /* harmony export */ time: function() { return /* binding */ time; },
  77. /* harmony export */ useSSR: function() { return /* binding */ useSSR; },
  78. /* harmony export */ useTranslation: function() { return /* binding */ useTranslation; },
  79. /* harmony export */ withSSR: function() { return /* binding */ withSSR; },
  80. /* harmony export */ withTranslation: function() { return /* binding */ withTranslation; }
  81. /* harmony export */ });
  82. /* harmony import */ var _chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-LNJCN3VW.js */ "./node_modules/.taro/weapp/prebundle/chunk-LNJCN3VW.js");
  83. /* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
  84. function _defineProperty(obj, key, value) {
  85. if (key in obj) {
  86. Object.defineProperty(obj, key, {
  87. value: value,
  88. enumerable: true,
  89. configurable: true,
  90. writable: true
  91. });
  92. } else {
  93. obj[key] = value;
  94. }
  95. return obj;
  96. }
  97. function _objectSpread(target) {
  98. for(var i = 1; i < arguments.length; i++){
  99. var source = arguments[i] != null ? arguments[i] : {};
  100. var ownKeys = Object.keys(source);
  101. if (typeof Object.getOwnPropertySymbols === 'function') {
  102. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
  103. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  104. }));
  105. }
  106. ownKeys.forEach(function(key) {
  107. _defineProperty(target, key, source[key]);
  108. });
  109. }
  110. return target;
  111. }
  112. function ownKeys(object, enumerableOnly) {
  113. var keys = Object.keys(object);
  114. if (Object.getOwnPropertySymbols) {
  115. var symbols = Object.getOwnPropertySymbols(object);
  116. if (enumerableOnly) {
  117. symbols = symbols.filter(function(sym) {
  118. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  119. });
  120. }
  121. keys.push.apply(keys, symbols);
  122. }
  123. return keys;
  124. }
  125. function _objectSpreadProps(target, source) {
  126. source = source != null ? source : {};
  127. if (Object.getOwnPropertyDescriptors) {
  128. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  129. } else {
  130. ownKeys(Object(source)).forEach(function(key) {
  131. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  132. });
  133. }
  134. return target;
  135. }
  136. function _objectWithoutProperties(source, excluded) {
  137. if (source == null) return {};
  138. var target = _objectWithoutPropertiesLoose(source, excluded);
  139. var key, i;
  140. if (Object.getOwnPropertySymbols) {
  141. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  142. for(i = 0; i < sourceSymbolKeys.length; i++){
  143. key = sourceSymbolKeys[i];
  144. if (excluded.indexOf(key) >= 0) continue;
  145. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  146. target[key] = source[key];
  147. }
  148. }
  149. return target;
  150. }
  151. function _objectWithoutPropertiesLoose(source, excluded) {
  152. if (source == null) return {};
  153. var target = {};
  154. var sourceKeys = Object.keys(source);
  155. var key, i;
  156. for(i = 0; i < sourceKeys.length; i++){
  157. key = sourceKeys[i];
  158. if (excluded.indexOf(key) >= 0) continue;
  159. target[key] = source[key];
  160. }
  161. return target;
  162. }
  163. // node_modules/void-elements/index.js
  164. var require_void_elements = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__commonJS)({
  165. "node_modules/void-elements/index.js" (exports, module) {
  166. module.exports = {
  167. "area": true,
  168. "base": true,
  169. "br": true,
  170. "col": true,
  171. "embed": true,
  172. "hr": true,
  173. "img": true,
  174. "input": true,
  175. "link": true,
  176. "meta": true,
  177. "param": true,
  178. "source": true,
  179. "track": true,
  180. "wbr": true
  181. };
  182. }
  183. });
  184. // node_modules/react-i18next/dist/es/Trans.js
  185. var import_react3 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  186. // node_modules/@babel/runtime/helpers/esm/extends.js
  187. function _extends() {
  188. _extends = Object.assign ? Object.assign.bind() : function(target) {
  189. for(var i2 = 1; i2 < arguments.length; i2++){
  190. var source = arguments[i2];
  191. for(var key in source){
  192. if (Object.prototype.hasOwnProperty.call(source, key)) {
  193. target[key] = source[key];
  194. }
  195. }
  196. }
  197. return target;
  198. };
  199. return _extends.apply(this, arguments);
  200. }
  201. // node_modules/react-i18next/dist/es/TransWithoutContext.js
  202. var import_react = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  203. // node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
  204. var import_void_elements = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)(require_void_elements());
  205. var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
  206. function n(n2) {
  207. var r2 = {
  208. type: "tag",
  209. name: "",
  210. voidElement: false,
  211. attrs: {},
  212. children: []
  213. }, i2 = n2.match(/<\/?([^\s]+?)[/\s>]/);
  214. if (i2 && (r2.name = i2[1], (import_void_elements.default[i2[1]] || "/" === n2.charAt(n2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
  215. var s2 = n2.indexOf("-->");
  216. return {
  217. type: "comment",
  218. comment: -1 !== s2 ? n2.slice(4, s2) : ""
  219. };
  220. }
  221. for(var a2 = new RegExp(t), c2 = null; null !== (c2 = a2.exec(n2));)if (c2[0].trim()) if (c2[1]) {
  222. var o = c2[1].trim(), l = [
  223. o,
  224. ""
  225. ];
  226. o.indexOf("=") > -1 && (l = o.split("=")), r2.attrs[l[0]] = l[1], a2.lastIndex--;
  227. } else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
  228. return r2;
  229. }
  230. var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g;
  231. var i = /^\s*$/;
  232. var s = /* @__PURE__ */ Object.create(null);
  233. function a(e2, t2) {
  234. switch(t2.type){
  235. case "text":
  236. return e2 + t2.content;
  237. case "tag":
  238. return e2 += "<" + t2.name + (t2.attrs ? function(e3) {
  239. var t3 = [];
  240. for(var n2 in e3)t3.push(n2 + '="' + e3[n2] + '"');
  241. return t3.length ? " " + t3.join(" ") : "";
  242. }(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(a, "") + "</" + t2.name + ">";
  243. case "comment":
  244. return e2 + "<!--" + t2.comment + "-->";
  245. }
  246. }
  247. var c = {
  248. parse: function(e2, t2) {
  249. t2 || (t2 = {}), t2.components || (t2.components = s);
  250. var a2, c2 = [], o = [], l = -1, m = false;
  251. if (0 !== e2.indexOf("<")) {
  252. var u = e2.indexOf("<");
  253. c2.push({
  254. type: "text",
  255. content: -1 === u ? e2 : e2.substring(0, u)
  256. });
  257. }
  258. return e2.replace(r, function(r2, s2) {
  259. if (m) {
  260. if (r2 !== "</" + a2.name + ">") return;
  261. m = false;
  262. }
  263. var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
  264. if (h) {
  265. var v = n(r2);
  266. return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
  267. }
  268. if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({
  269. type: "text",
  270. content: e2.slice(p, e2.indexOf("<", p))
  271. }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
  272. u2 = -1 === l ? c2 : o[l].children;
  273. var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
  274. i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({
  275. type: "text",
  276. content: g
  277. });
  278. }
  279. }), c2;
  280. },
  281. stringify: function(e2) {
  282. return e2.reduce(function(e3, t2) {
  283. return e3 + a("", t2);
  284. }, "");
  285. }
  286. };
  287. var html_parse_stringify_module_default = c;
  288. // node_modules/react-i18next/dist/es/utils.js
  289. function warn() {
  290. if (console && console.warn) {
  291. for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
  292. args[_key] = arguments[_key];
  293. }
  294. if (typeof args[0] === "string") args[0] = `react-i18next:: ${args[0]}`;
  295. console.warn(...args);
  296. }
  297. }
  298. var alreadyWarned = {};
  299. function warnOnce() {
  300. for(var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++){
  301. args[_key2] = arguments[_key2];
  302. }
  303. if (typeof args[0] === "string" && alreadyWarned[args[0]]) return;
  304. if (typeof args[0] === "string") alreadyWarned[args[0]] = new Date();
  305. warn(...args);
  306. }
  307. var loadedClb = (i18n, cb)=>()=>{
  308. if (i18n.isInitialized) {
  309. cb();
  310. } else {
  311. const initialized = ()=>{
  312. setTimeout(()=>{
  313. i18n.off("initialized", initialized);
  314. }, 0);
  315. cb();
  316. };
  317. i18n.on("initialized", initialized);
  318. }
  319. };
  320. function loadNamespaces(i18n, ns, cb) {
  321. i18n.loadNamespaces(ns, loadedClb(i18n, cb));
  322. }
  323. function loadLanguages(i18n, lng, ns, cb) {
  324. if (typeof ns === "string") ns = [
  325. ns
  326. ];
  327. ns.forEach((n2)=>{
  328. if (i18n.options.ns.indexOf(n2) < 0) i18n.options.ns.push(n2);
  329. });
  330. i18n.loadLanguages(lng, loadedClb(i18n, cb));
  331. }
  332. function oldI18nextHasLoadedNamespace(ns, i18n) {
  333. let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  334. const lng = i18n.languages[0];
  335. const fallbackLng = i18n.options ? i18n.options.fallbackLng : false;
  336. const lastLng = i18n.languages[i18n.languages.length - 1];
  337. if (lng.toLowerCase() === "cimode") return true;
  338. const loadNotPending = (l, n2)=>{
  339. const loadState = i18n.services.backendConnector.state[`${l}|${n2}`];
  340. return loadState === -1 || loadState === 2;
  341. };
  342. if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;
  343. if (i18n.hasResourceBundle(lng, ns)) return true;
  344. if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;
  345. if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
  346. return false;
  347. }
  348. function hasLoadedNamespace(ns, i18n) {
  349. let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  350. if (!i18n.languages || !i18n.languages.length) {
  351. warnOnce("i18n.languages were undefined or empty", i18n.languages);
  352. return true;
  353. }
  354. const isNewerI18next = i18n.options.ignoreJSONStructure !== void 0;
  355. if (!isNewerI18next) {
  356. return oldI18nextHasLoadedNamespace(ns, i18n, options);
  357. }
  358. return i18n.hasLoadedNamespace(ns, {
  359. lng: options.lng,
  360. precheck: (i18nInstance2, loadNotPending)=>{
  361. if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns)) return false;
  362. }
  363. });
  364. }
  365. function getDisplayName(Component) {
  366. return Component.displayName || Component.name || (typeof Component === "string" && Component.length > 0 ? Component : "Unknown");
  367. }
  368. // node_modules/react-i18next/dist/es/unescape.js
  369. var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
  370. var htmlEntities = {
  371. "&amp;": "&",
  372. "&#38;": "&",
  373. "&lt;": "<",
  374. "&#60;": "<",
  375. "&gt;": ">",
  376. "&#62;": ">",
  377. "&apos;": "'",
  378. "&#39;": "'",
  379. "&quot;": '"',
  380. "&#34;": '"',
  381. "&nbsp;": " ",
  382. "&#160;": " ",
  383. "&copy;": "\xA9",
  384. "&#169;": "\xA9",
  385. "&reg;": "\xAE",
  386. "&#174;": "\xAE",
  387. "&hellip;": "\u2026",
  388. "&#8230;": "\u2026",
  389. "&#x2F;": "/",
  390. "&#47;": "/"
  391. };
  392. var unescapeHtmlEntity = (m)=>htmlEntities[m];
  393. var unescape = (text)=>text.replace(matchHtmlEntity, unescapeHtmlEntity);
  394. // node_modules/react-i18next/dist/es/defaults.js
  395. var defaultOptions = {
  396. bindI18n: "languageChanged",
  397. bindI18nStore: "",
  398. transEmptyNodeValue: "",
  399. transSupportBasicHtmlNodes: true,
  400. transWrapTextNodes: "",
  401. transKeepBasicHtmlNodesFor: [
  402. "br",
  403. "strong",
  404. "i",
  405. "p"
  406. ],
  407. useSuspense: true,
  408. unescape
  409. };
  410. function setDefaults() {
  411. let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  412. defaultOptions = _objectSpread({}, defaultOptions, options);
  413. }
  414. function getDefaults() {
  415. return defaultOptions;
  416. }
  417. // node_modules/react-i18next/dist/es/i18nInstance.js
  418. var i18nInstance;
  419. function setI18n(instance) {
  420. i18nInstance = instance;
  421. }
  422. function getI18n() {
  423. return i18nInstance;
  424. }
  425. // node_modules/react-i18next/dist/es/TransWithoutContext.js
  426. function hasChildren(node, checkLength) {
  427. if (!node) return false;
  428. const base = node.props ? node.props.children : node.children;
  429. if (checkLength) return base.length > 0;
  430. return !!base;
  431. }
  432. function getChildren(node) {
  433. if (!node) return [];
  434. const children = node.props ? node.props.children : node.children;
  435. return node.props && node.props.i18nIsDynamicList ? getAsArray(children) : children;
  436. }
  437. function hasValidReactChildren(children) {
  438. if (Object.prototype.toString.call(children) !== "[object Array]") return false;
  439. return children.every((child)=>(0, import_react.isValidElement)(child));
  440. }
  441. function getAsArray(data) {
  442. return Array.isArray(data) ? data : [
  443. data
  444. ];
  445. }
  446. function mergeProps(source, target) {
  447. const newTarget = _objectSpread({}, target);
  448. newTarget.props = Object.assign(source.props, target.props);
  449. return newTarget;
  450. }
  451. function nodesToString(children, i18nOptions) {
  452. if (!children) return "";
  453. let stringNode = "";
  454. const childrenArray = getAsArray(children);
  455. const keepArray = i18nOptions.transSupportBasicHtmlNodes && i18nOptions.transKeepBasicHtmlNodesFor ? i18nOptions.transKeepBasicHtmlNodesFor : [];
  456. childrenArray.forEach((child, childIndex)=>{
  457. if (typeof child === "string") {
  458. stringNode += `${child}`;
  459. } else if ((0, import_react.isValidElement)(child)) {
  460. const childPropsCount = Object.keys(child.props).length;
  461. const shouldKeepChild = keepArray.indexOf(child.type) > -1;
  462. const childChildren = child.props.children;
  463. if (!childChildren && shouldKeepChild && childPropsCount === 0) {
  464. stringNode += `<${child.type}/>`;
  465. } else if (!childChildren && (!shouldKeepChild || childPropsCount !== 0)) {
  466. stringNode += `<${childIndex}></${childIndex}>`;
  467. } else if (child.props.i18nIsDynamicList) {
  468. stringNode += `<${childIndex}></${childIndex}>`;
  469. } else if (shouldKeepChild && childPropsCount === 1 && typeof childChildren === "string") {
  470. stringNode += `<${child.type}>${childChildren}</${child.type}>`;
  471. } else {
  472. const content = nodesToString(childChildren, i18nOptions);
  473. stringNode += `<${childIndex}>${content}</${childIndex}>`;
  474. }
  475. } else if (child === null) {
  476. warn(`Trans: the passed in value is invalid - seems you passed in a null child.`);
  477. } else if (typeof child === "object") {
  478. const { format } = child, clone = _objectWithoutProperties(child, [
  479. "format"
  480. ]);
  481. const keys = Object.keys(clone);
  482. if (keys.length === 1) {
  483. const value = format ? `${keys[0]}, ${format}` : keys[0];
  484. stringNode += `{{${value}}}`;
  485. } else {
  486. warn(`react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.`, child);
  487. }
  488. } else {
  489. warn(`Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.`, child);
  490. }
  491. });
  492. return stringNode;
  493. }
  494. function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) {
  495. if (targetString === "") return [];
  496. const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
  497. const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep)=>`<${keep}`).join("|")).test(targetString);
  498. if (!children && !emptyChildrenButNeedsHandling && !shouldUnescape) return [
  499. targetString
  500. ];
  501. const data = {};
  502. function getData(childs) {
  503. const childrenArray = getAsArray(childs);
  504. childrenArray.forEach((child)=>{
  505. if (typeof child === "string") return;
  506. if (hasChildren(child)) getData(getChildren(child));
  507. else if (typeof child === "object" && !(0, import_react.isValidElement)(child)) Object.assign(data, child);
  508. });
  509. }
  510. getData(children);
  511. const ast = html_parse_stringify_module_default.parse(`<0>${targetString}</0>`);
  512. const opts = _objectSpread({}, data, combinedTOpts);
  513. function renderInner(child, node, rootReactNode) {
  514. const childs = getChildren(child);
  515. const mappedChildren = mapAST(childs, node.children, rootReactNode);
  516. return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props && child.props.i18nIsDynamicList ? childs : mappedChildren;
  517. }
  518. function pushTranslatedJSX(child, inner, mem, i2, isVoid) {
  519. if (child.dummy) {
  520. child.children = inner;
  521. mem.push((0, import_react.cloneElement)(child, {
  522. key: i2
  523. }, isVoid ? void 0 : inner));
  524. } else {
  525. mem.push(...import_react.Children.map([
  526. child
  527. ], (c2)=>{
  528. const props = _objectSpread({}, c2.props);
  529. delete props.i18nIsDynamicList;
  530. return import_react.default.createElement(c2.type, _extends({}, props, {
  531. key: i2,
  532. ref: c2.ref
  533. }, isVoid ? {} : {
  534. children: inner
  535. }));
  536. }));
  537. }
  538. }
  539. function mapAST(reactNode, astNode, rootReactNode) {
  540. const reactNodes = getAsArray(reactNode);
  541. const astNodes = getAsArray(astNode);
  542. return astNodes.reduce((mem, node, i2)=>{
  543. const translationContent = node.children && node.children[0] && node.children[0].content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
  544. if (node.type === "tag") {
  545. let tmp = reactNodes[parseInt(node.name, 10)];
  546. if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
  547. if (!tmp) tmp = {};
  548. const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
  549. props: node.attrs
  550. }, tmp) : tmp;
  551. const isElement = (0, import_react.isValidElement)(child);
  552. const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
  553. const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && typeof child === "object" && child.dummy && !isElement;
  554. const isKnownComponent = typeof children === "object" && children !== null && Object.hasOwnProperty.call(children, node.name);
  555. if (typeof child === "string") {
  556. const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
  557. mem.push(value);
  558. } else if (hasChildren(child) || isValidTranslationWithChildren) {
  559. const inner = renderInner(child, node, rootReactNode);
  560. pushTranslatedJSX(child, inner, mem, i2);
  561. } else if (isEmptyTransWithHTML) {
  562. const inner1 = mapAST(reactNodes, node.children, rootReactNode);
  563. pushTranslatedJSX(child, inner1, mem, i2);
  564. } else if (Number.isNaN(parseFloat(node.name))) {
  565. if (isKnownComponent) {
  566. const inner2 = renderInner(child, node, rootReactNode);
  567. pushTranslatedJSX(child, inner2, mem, i2, node.voidElement);
  568. } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
  569. if (node.voidElement) {
  570. mem.push((0, import_react.createElement)(node.name, {
  571. key: `${node.name}-${i2}`
  572. }));
  573. } else {
  574. const inner3 = mapAST(reactNodes, node.children, rootReactNode);
  575. mem.push((0, import_react.createElement)(node.name, {
  576. key: `${node.name}-${i2}`
  577. }, inner3));
  578. }
  579. } else if (node.voidElement) {
  580. mem.push(`<${node.name} />`);
  581. } else {
  582. const inner4 = mapAST(reactNodes, node.children, rootReactNode);
  583. mem.push(`<${node.name}>${inner4}</${node.name}>`);
  584. }
  585. } else if (typeof child === "object" && !isElement) {
  586. const content = node.children[0] ? translationContent : null;
  587. if (content) mem.push(content);
  588. } else {
  589. pushTranslatedJSX(child, translationContent, mem, i2, node.children.length !== 1 || !translationContent);
  590. }
  591. } else if (node.type === "text") {
  592. const wrapTextNodes = i18nOptions.transWrapTextNodes;
  593. const content1 = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
  594. if (wrapTextNodes) {
  595. mem.push((0, import_react.createElement)(wrapTextNodes, {
  596. key: `${node.name}-${i2}`
  597. }, content1));
  598. } else {
  599. mem.push(content1);
  600. }
  601. }
  602. return mem;
  603. }, []);
  604. }
  605. const result = mapAST([
  606. {
  607. dummy: true,
  608. children: children || []
  609. }
  610. ], ast, getAsArray(children || []));
  611. return getChildren(result[0]);
  612. }
  613. function Trans(_ref) {
  614. let { children , count , parent , i18nKey , context , tOptions ={} , values , defaults , components , ns , i18n: i18nFromProps , t: tFromProps , shouldUnescape } = _ref, additionalProps = _objectWithoutProperties(_ref, [
  615. "children",
  616. "count",
  617. "parent",
  618. "i18nKey",
  619. "context",
  620. "tOptions",
  621. "values",
  622. "defaults",
  623. "components",
  624. "ns",
  625. "i18n",
  626. "t",
  627. "shouldUnescape"
  628. ]);
  629. const i18n = i18nFromProps || getI18n();
  630. if (!i18n) {
  631. warnOnce("You will need to pass in an i18next instance by using i18nextReactModule");
  632. return children;
  633. }
  634. const t2 = tFromProps || i18n.t.bind(i18n) || ((k)=>k);
  635. if (context) tOptions.context = context;
  636. const reactI18nextOptions = _objectSpread({}, getDefaults(), i18n.options && i18n.options.react);
  637. let namespaces = ns || t2.ns || i18n.options && i18n.options.defaultNS;
  638. namespaces = typeof namespaces === "string" ? [
  639. namespaces
  640. ] : namespaces || [
  641. "translation"
  642. ];
  643. const nodeAsString = nodesToString(children, reactI18nextOptions);
  644. const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
  645. const { hashTransKey } = reactI18nextOptions;
  646. const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
  647. const interpolationOverride = values ? tOptions.interpolation : {
  648. interpolation: _objectSpreadProps(_objectSpread({}, tOptions.interpolation), {
  649. prefix: "#$?",
  650. suffix: "?$#"
  651. })
  652. };
  653. const combinedTOpts = _objectSpreadProps(_objectSpread(_objectSpreadProps(_objectSpread({}, tOptions), {
  654. count
  655. }), values, interpolationOverride), {
  656. defaultValue,
  657. ns: namespaces
  658. });
  659. const translation = key ? t2(key, combinedTOpts) : defaultValue;
  660. const content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
  661. const useAsParent = parent !== void 0 ? parent : reactI18nextOptions.defaultTransParent;
  662. return useAsParent ? (0, import_react.createElement)(useAsParent, additionalProps, content) : content;
  663. }
  664. // node_modules/react-i18next/dist/es/context.js
  665. var import_react2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  666. // node_modules/react-i18next/dist/es/initReactI18next.js
  667. var initReactI18next = {
  668. type: "3rdParty",
  669. init (instance) {
  670. setDefaults(instance.options.react);
  671. setI18n(instance);
  672. }
  673. };
  674. // node_modules/react-i18next/dist/es/context.js
  675. var I18nContext = (0, import_react2.createContext)();
  676. var ReportNamespaces = class {
  677. addUsedNamespaces(namespaces) {
  678. namespaces.forEach((ns)=>{
  679. if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
  680. });
  681. }
  682. getUsedNamespaces() {
  683. return Object.keys(this.usedNamespaces);
  684. }
  685. constructor(){
  686. this.usedNamespaces = {};
  687. }
  688. };
  689. function composeInitialProps(ForComponent) {
  690. return (ctx)=>new Promise((resolve)=>{
  691. const i18nInitialProps = getInitialProps();
  692. if (ForComponent.getInitialProps) {
  693. ForComponent.getInitialProps(ctx).then((componentsInitialProps)=>{
  694. resolve(_objectSpread({}, componentsInitialProps, i18nInitialProps));
  695. });
  696. } else {
  697. resolve(i18nInitialProps);
  698. }
  699. });
  700. }
  701. function getInitialProps() {
  702. const i18n = getI18n();
  703. const namespaces = i18n.reportNamespaces ? i18n.reportNamespaces.getUsedNamespaces() : [];
  704. const ret = {};
  705. const initialI18nStore = {};
  706. i18n.languages.forEach((l)=>{
  707. initialI18nStore[l] = {};
  708. namespaces.forEach((ns)=>{
  709. initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};
  710. });
  711. });
  712. ret.initialI18nStore = initialI18nStore;
  713. ret.initialLanguage = i18n.language;
  714. return ret;
  715. }
  716. // node_modules/react-i18next/dist/es/Trans.js
  717. function Trans2(_ref) {
  718. let { children , count , parent , i18nKey , context , tOptions ={} , values , defaults , components , ns , i18n: i18nFromProps , t: tFromProps , shouldUnescape } = _ref, additionalProps = _objectWithoutProperties(_ref, [
  719. "children",
  720. "count",
  721. "parent",
  722. "i18nKey",
  723. "context",
  724. "tOptions",
  725. "values",
  726. "defaults",
  727. "components",
  728. "ns",
  729. "i18n",
  730. "t",
  731. "shouldUnescape"
  732. ]);
  733. const { i18n: i18nFromContext , defaultNS: defaultNSFromContext } = (0, import_react3.useContext)(I18nContext) || {};
  734. const i18n = i18nFromProps || i18nFromContext || getI18n();
  735. const t2 = tFromProps || i18n && i18n.t.bind(i18n);
  736. return Trans(_objectSpread({
  737. children,
  738. count,
  739. parent,
  740. i18nKey,
  741. context,
  742. tOptions,
  743. values,
  744. defaults,
  745. components,
  746. ns: ns || t2 && t2.ns || defaultNSFromContext || i18n && i18n.options && i18n.options.defaultNS,
  747. i18n,
  748. t: tFromProps,
  749. shouldUnescape
  750. }, additionalProps));
  751. }
  752. // node_modules/react-i18next/dist/es/useTranslation.js
  753. var import_react4 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  754. var usePrevious = (value, ignore)=>{
  755. const ref = (0, import_react4.useRef)();
  756. (0, import_react4.useEffect)(()=>{
  757. ref.current = ignore ? ref.current : value;
  758. }, [
  759. value,
  760. ignore
  761. ]);
  762. return ref.current;
  763. };
  764. function useTranslation(ns) {
  765. let props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  766. const { i18n: i18nFromProps } = props;
  767. const { i18n: i18nFromContext , defaultNS: defaultNSFromContext } = (0, import_react4.useContext)(I18nContext) || {};
  768. const i18n = i18nFromProps || i18nFromContext || getI18n();
  769. if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
  770. if (!i18n) {
  771. warnOnce("You will need to pass in an i18next instance by using initReactI18next");
  772. const notReadyT = (k, optsOrDefaultValue)=>{
  773. if (typeof optsOrDefaultValue === "string") return optsOrDefaultValue;
  774. if (optsOrDefaultValue && typeof optsOrDefaultValue === "object" && typeof optsOrDefaultValue.defaultValue === "string") return optsOrDefaultValue.defaultValue;
  775. return Array.isArray(k) ? k[k.length - 1] : k;
  776. };
  777. const retNotReady = [
  778. notReadyT,
  779. {},
  780. false
  781. ];
  782. retNotReady.t = notReadyT;
  783. retNotReady.i18n = {};
  784. retNotReady.ready = false;
  785. return retNotReady;
  786. }
  787. if (i18n.options.react && i18n.options.react.wait !== void 0) warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
  788. const i18nOptions = _objectSpread({}, getDefaults(), i18n.options.react, props);
  789. const { useSuspense , keyPrefix } = i18nOptions;
  790. let namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
  791. namespaces = typeof namespaces === "string" ? [
  792. namespaces
  793. ] : namespaces || [
  794. "translation"
  795. ];
  796. if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
  797. const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n2)=>hasLoadedNamespace(n2, i18n, i18nOptions));
  798. function getT() {
  799. return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
  800. }
  801. const [t2, setT] = (0, import_react4.useState)(getT);
  802. let joinedNS = namespaces.join();
  803. if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
  804. const previousJoinedNS = usePrevious(joinedNS);
  805. const isMounted = (0, import_react4.useRef)(true);
  806. (0, import_react4.useEffect)(()=>{
  807. const { bindI18n , bindI18nStore } = i18nOptions;
  808. isMounted.current = true;
  809. if (!ready && !useSuspense) {
  810. if (props.lng) {
  811. loadLanguages(i18n, props.lng, namespaces, ()=>{
  812. if (isMounted.current) setT(getT);
  813. });
  814. } else {
  815. loadNamespaces(i18n, namespaces, ()=>{
  816. if (isMounted.current) setT(getT);
  817. });
  818. }
  819. }
  820. if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
  821. setT(getT);
  822. }
  823. function boundReset() {
  824. if (isMounted.current) setT(getT);
  825. }
  826. if (bindI18n && i18n) i18n.on(bindI18n, boundReset);
  827. if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);
  828. return ()=>{
  829. isMounted.current = false;
  830. if (bindI18n && i18n) bindI18n.split(" ").forEach((e2)=>i18n.off(e2, boundReset));
  831. if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2)=>i18n.store.off(e2, boundReset));
  832. };
  833. }, [
  834. i18n,
  835. joinedNS
  836. ]);
  837. const isInitial = (0, import_react4.useRef)(true);
  838. (0, import_react4.useEffect)(()=>{
  839. if (isMounted.current && !isInitial.current) {
  840. setT(getT);
  841. }
  842. isInitial.current = false;
  843. }, [
  844. i18n,
  845. keyPrefix
  846. ]);
  847. const ret = [
  848. t2,
  849. i18n,
  850. ready
  851. ];
  852. ret.t = t2;
  853. ret.i18n = i18n;
  854. ret.ready = ready;
  855. if (ready) return ret;
  856. if (!ready && !useSuspense) return ret;
  857. throw new Promise((resolve)=>{
  858. if (props.lng) {
  859. loadLanguages(i18n, props.lng, namespaces, ()=>resolve());
  860. } else {
  861. loadNamespaces(i18n, namespaces, ()=>resolve());
  862. }
  863. });
  864. }
  865. // node_modules/react-i18next/dist/es/withTranslation.js
  866. var import_react5 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  867. function withTranslation(ns) {
  868. let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  869. return function Extend(WrappedComponent) {
  870. function I18nextWithTranslation(_ref) {
  871. let { forwardedRef } = _ref, rest = _objectWithoutProperties(_ref, [
  872. "forwardedRef"
  873. ]);
  874. const [t2, i18n, ready] = useTranslation(ns, _objectSpreadProps(_objectSpread({}, rest), {
  875. keyPrefix: options.keyPrefix
  876. }));
  877. const passDownProps = _objectSpreadProps(_objectSpread({}, rest), {
  878. t: t2,
  879. i18n,
  880. tReady: ready
  881. });
  882. if (options.withRef && forwardedRef) {
  883. passDownProps.ref = forwardedRef;
  884. } else if (!options.withRef && forwardedRef) {
  885. passDownProps.forwardedRef = forwardedRef;
  886. }
  887. return (0, import_react5.createElement)(WrappedComponent, passDownProps);
  888. }
  889. I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;
  890. I18nextWithTranslation.WrappedComponent = WrappedComponent;
  891. const forwardRef = (props, ref)=>(0, import_react5.createElement)(I18nextWithTranslation, Object.assign({}, props, {
  892. forwardedRef: ref
  893. }));
  894. return options.withRef ? (0, import_react5.forwardRef)(forwardRef) : I18nextWithTranslation;
  895. };
  896. }
  897. // node_modules/react-i18next/dist/es/Translation.js
  898. function Translation(props) {
  899. const { ns , children } = props, options = _objectWithoutProperties(props, [
  900. "ns",
  901. "children"
  902. ]);
  903. const [t2, i18n, ready] = useTranslation(ns, options);
  904. return children(t2, {
  905. i18n,
  906. lng: i18n.language
  907. }, ready);
  908. }
  909. // node_modules/react-i18next/dist/es/I18nextProvider.js
  910. var import_react6 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  911. function I18nextProvider(_ref) {
  912. let { i18n , defaultNS , children } = _ref;
  913. const value = (0, import_react6.useMemo)(()=>({
  914. i18n,
  915. defaultNS
  916. }), [
  917. i18n,
  918. defaultNS
  919. ]);
  920. return (0, import_react6.createElement)(I18nContext.Provider, {
  921. value
  922. }, children);
  923. }
  924. // node_modules/react-i18next/dist/es/withSSR.js
  925. var import_react8 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  926. // node_modules/react-i18next/dist/es/useSSR.js
  927. var import_react7 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_1__.__toESM)((0,_chunk_LNJCN3VW_js__WEBPACK_IMPORTED_MODULE_0__.require_react_production_min)(), 1);
  928. function useSSR(initialI18nStore, initialLanguage) {
  929. let props = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  930. const { i18n: i18nFromProps } = props;
  931. const { i18n: i18nFromContext } = (0, import_react7.useContext)(I18nContext) || {};
  932. const i18n = i18nFromProps || i18nFromContext || getI18n();
  933. if (i18n.options && i18n.options.isClone) return;
  934. if (initialI18nStore && !i18n.initializedStoreOnce) {
  935. i18n.services.resourceStore.data = initialI18nStore;
  936. i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources)=>{
  937. Object.keys(lngResources).forEach((ns)=>{
  938. if (mem.indexOf(ns) < 0) mem.push(ns);
  939. });
  940. return mem;
  941. }, i18n.options.ns);
  942. i18n.initializedStoreOnce = true;
  943. i18n.isInitialized = true;
  944. }
  945. if (initialLanguage && !i18n.initializedLanguageOnce) {
  946. i18n.changeLanguage(initialLanguage);
  947. i18n.initializedLanguageOnce = true;
  948. }
  949. }
  950. // node_modules/react-i18next/dist/es/withSSR.js
  951. function withSSR() {
  952. return function Extend(WrappedComponent) {
  953. function I18nextWithSSR(_ref) {
  954. let { initialI18nStore , initialLanguage } = _ref, rest = _objectWithoutProperties(_ref, [
  955. "initialI18nStore",
  956. "initialLanguage"
  957. ]);
  958. useSSR(initialI18nStore, initialLanguage);
  959. return (0, import_react8.createElement)(WrappedComponent, _objectSpread({}, rest));
  960. }
  961. I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);
  962. I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;
  963. I18nextWithSSR.WrappedComponent = WrappedComponent;
  964. return I18nextWithSSR;
  965. };
  966. }
  967. // node_modules/react-i18next/dist/es/index.js
  968. var date = ()=>"";
  969. var time = ()=>"";
  970. var number = ()=>"";
  971. var select = ()=>"";
  972. var plural = ()=>"";
  973. var selectOrdinal = ()=>"";
  974. /***/ })
  975. }]);