@pie-element/placement-ordering 14.1.1 → 14.1.2-next.0

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 (306) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/choice-editor.d.ts +39 -0
  4. package/dist/author/choice-editor.js +157 -0
  5. package/dist/author/choice-tile.d.ts +40 -0
  6. package/dist/author/choice-tile.js +132 -0
  7. package/dist/author/defaults.d.ts +213 -0
  8. package/dist/author/defaults.js +159 -0
  9. package/dist/author/design.d.ts +21 -0
  10. package/dist/author/design.js +274 -0
  11. package/dist/author/help.d.ts +11 -0
  12. package/dist/author/index.d.ts +45 -0
  13. package/dist/author/index.js +85 -0
  14. package/dist/author/utils.d.ts +15 -0
  15. package/dist/author/utils.js +62 -0
  16. package/dist/browser/author/index.js +40986 -0
  17. package/dist/browser/author/index.js.map +1 -0
  18. package/dist/browser/browser-CvJkn_Ec.js +1019 -0
  19. package/dist/browser/browser-CvJkn_Ec.js.map +1 -0
  20. package/dist/browser/controller/index.js +319 -0
  21. package/dist/browser/controller/index.js.map +1 -0
  22. package/dist/browser/delivery/index.js +1032 -0
  23. package/dist/browser/delivery/index.js.map +1 -0
  24. package/dist/browser/dist-BTHiIs74.js +1610 -0
  25. package/dist/browser/dist-BTHiIs74.js.map +1 -0
  26. package/dist/browser/drag-provider-DaPxkh4j.js +10833 -0
  27. package/dist/browser/drag-provider-DaPxkh4j.js.map +1 -0
  28. package/dist/browser/last-D7N4Qfx4.js +9 -0
  29. package/dist/browser/last-D7N4Qfx4.js.map +1 -0
  30. package/dist/browser/placement-ordering.css +2 -0
  31. package/dist/controller/defaults.d.ts +31 -0
  32. package/dist/controller/defaults.js +25 -0
  33. package/dist/controller/index.d.ts +29 -0
  34. package/dist/controller/index.js +128 -0
  35. package/dist/controller/scoring.d.ts +27 -0
  36. package/dist/controller/scoring.js +32 -0
  37. package/dist/delivery/index.d.ts +26 -0
  38. package/dist/delivery/index.js +70 -0
  39. package/dist/delivery/main.d.ts +19 -0
  40. package/dist/delivery/main.js +22 -0
  41. package/dist/delivery/ordering.d.ts +18 -0
  42. package/dist/delivery/ordering.js +96 -0
  43. package/dist/delivery/placement-ordering.d.ts +28 -0
  44. package/dist/delivery/placement-ordering.js +215 -0
  45. package/dist/delivery/tile.d.ts +28 -0
  46. package/dist/delivery/tile.js +165 -0
  47. package/dist/delivery/tiler.d.ts +42 -0
  48. package/dist/delivery/tiler.js +89 -0
  49. package/dist/delivery/utils.d.ts +9 -0
  50. package/dist/delivery/utils.js +8 -0
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.iife.d.ts +8 -0
  53. package/dist/index.iife.js +152 -0
  54. package/dist/index.js +2 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEvery.js +7 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +8 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayShuffle.js +8 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +23 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEvery.js +10 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +11 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRandom.js +7 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseShuffle.js +8 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseValues.js +9 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +15 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shuffleSelf.js +12 -0
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/assign.js +16 -0
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/compact.js +10 -0
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/difference.js +10 -0
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +12 -0
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/every.js +12 -0
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  233. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  234. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  235. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  236. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  237. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  238. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  239. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  240. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +7 -0
  241. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -0
  242. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  243. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
  244. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
  245. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
  246. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/shuffle.js +9 -0
  247. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  248. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  249. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  250. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +7 -0
  251. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqueId.js +9 -0
  252. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/values.js +8 -0
  253. package/package.json +81 -17
  254. package/CHANGELOG.json +0 -1312
  255. package/CHANGELOG.md +0 -2432
  256. package/LICENSE.md +0 -5
  257. package/README.md +0 -57
  258. package/configure/CHANGELOG.json +0 -952
  259. package/configure/CHANGELOG.md +0 -2127
  260. package/configure/lib/choice-editor.js +0 -252
  261. package/configure/lib/choice-editor.js.map +0 -1
  262. package/configure/lib/choice-tile.js +0 -205
  263. package/configure/lib/choice-tile.js.map +0 -1
  264. package/configure/lib/defaults.js +0 -211
  265. package/configure/lib/defaults.js.map +0 -1
  266. package/configure/lib/design.js +0 -427
  267. package/configure/lib/design.js.map +0 -1
  268. package/configure/lib/help.js +0 -14
  269. package/configure/lib/help.js.map +0 -1
  270. package/configure/lib/index.js +0 -155
  271. package/configure/lib/index.js.map +0 -1
  272. package/configure/lib/utils.js +0 -108
  273. package/configure/lib/utils.js.map +0 -1
  274. package/configure/package.json +0 -26
  275. package/controller/CHANGELOG.json +0 -517
  276. package/controller/CHANGELOG.md +0 -1518
  277. package/controller/lib/defaults.js +0 -29
  278. package/controller/lib/defaults.js.map +0 -1
  279. package/controller/lib/index.js +0 -285
  280. package/controller/lib/index.js.map +0 -1
  281. package/controller/lib/scoring.js +0 -109
  282. package/controller/lib/scoring.js.map +0 -1
  283. package/controller/package.json +0 -15
  284. package/docs/config-schema.json +0 -2964
  285. package/docs/config-schema.json.md +0 -2190
  286. package/docs/demo/config.js +0 -8
  287. package/docs/demo/generate.js +0 -50
  288. package/docs/demo/index.html +0 -1
  289. package/docs/demo/session.js +0 -7
  290. package/docs/pie-schema.json +0 -1613
  291. package/docs/pie-schema.json.md +0 -973
  292. package/icon.png +0 -0
  293. package/lib/index.js +0 -122
  294. package/lib/index.js.map +0 -1
  295. package/lib/main.js +0 -32
  296. package/lib/main.js.map +0 -1
  297. package/lib/ordering.js +0 -165
  298. package/lib/ordering.js.map +0 -1
  299. package/lib/placement-ordering.js +0 -419
  300. package/lib/placement-ordering.js.map +0 -1
  301. package/lib/tile.js +0 -259
  302. package/lib/tile.js.map +0 -1
  303. package/lib/tiler.js +0 -165
  304. package/lib/tiler.js.map +0 -1
  305. package/lib/utils.js +0 -18
  306. package/lib/utils.js.map +0 -1
@@ -0,0 +1,1610 @@
1
+ import { B as e, C as t, D as n, F as r, J as i, N as a, O as o, S as s, T as c, W as l, X as u, Y as d, Z as f, a as p, l as m, o as h, s as g, u as _, w as v, y, z as b } from "./browser-CvJkn_Ec.js";
2
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
3
+ function x(e, t, n, r) {
4
+ for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
5
+ return -1;
6
+ }
7
+ //#endregion
8
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
9
+ function ee(e) {
10
+ return e !== e;
11
+ }
12
+ //#endregion
13
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
14
+ function S(e, t, n) {
15
+ for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
16
+ return -1;
17
+ }
18
+ //#endregion
19
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
20
+ function C(e, t, n) {
21
+ return t === t ? S(e, t, n) : x(e, ee, n);
22
+ }
23
+ //#endregion
24
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
25
+ function w(e, t) {
26
+ return !!(e != null && e.length) && C(e, t, 0) > -1;
27
+ }
28
+ //#endregion
29
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
30
+ var T = 1, te = 2;
31
+ function E(e, t, n, r) {
32
+ var i = n.length, a = i, o = !r;
33
+ if (e == null) return !a;
34
+ for (e = Object(e); i--;) {
35
+ var s = n[i];
36
+ if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
37
+ }
38
+ for (; ++i < a;) {
39
+ s = n[i];
40
+ var c = s[0], l = e[c], u = s[1];
41
+ if (o && s[2]) {
42
+ if (l === void 0 && !(c in e)) return !1;
43
+ } else {
44
+ var d = new y();
45
+ if (r) var f = r(l, u, c, e, t, d);
46
+ if (!(f === void 0 ? g(u, l, T | te, r, d) : f)) return !1;
47
+ }
48
+ }
49
+ return !0;
50
+ }
51
+ //#endregion
52
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
53
+ function D(e) {
54
+ return e === e && !d(e);
55
+ }
56
+ //#endregion
57
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
58
+ function ne(e) {
59
+ for (var t = o(e), n = t.length; n--;) {
60
+ var r = t[n], i = e[r];
61
+ t[n] = [
62
+ r,
63
+ i,
64
+ D(i)
65
+ ];
66
+ }
67
+ return t;
68
+ }
69
+ //#endregion
70
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
71
+ function O(e, t) {
72
+ return function(n) {
73
+ return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
74
+ };
75
+ }
76
+ //#endregion
77
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
78
+ function re(e) {
79
+ var t = ne(e);
80
+ return t.length == 1 && t[0][2] ? O(t[0][0], t[0][1]) : function(n) {
81
+ return n === e || E(n, e, t);
82
+ };
83
+ }
84
+ //#endregion
85
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
86
+ function ie(e, t) {
87
+ return e != null && t in Object(e);
88
+ }
89
+ //#endregion
90
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
91
+ function ae(t, n, i) {
92
+ n = c(n, t);
93
+ for (var a = -1, o = n.length, s = !1; ++a < o;) {
94
+ var d = v(n[a]);
95
+ if (!(s = t != null && i(t, d))) break;
96
+ t = t[d];
97
+ }
98
+ return s || ++a != o ? s : (o = t == null ? 0 : t.length, !!o && e(o) && l(d, o) && (u(t) || r(t)));
99
+ }
100
+ //#endregion
101
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
102
+ function oe(e, t) {
103
+ return e != null && ae(e, t, ie);
104
+ }
105
+ //#endregion
106
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
107
+ var se = 1, ce = 2;
108
+ function le(e, t) {
109
+ return n(e) && D(t) ? O(v(e), t) : function(n) {
110
+ var r = s(n, e);
111
+ return r === void 0 && r === t ? oe(n, e) : g(t, r, se | ce);
112
+ };
113
+ }
114
+ //#endregion
115
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
116
+ function ue(e) {
117
+ return function(n) {
118
+ return t(n, e);
119
+ };
120
+ }
121
+ //#endregion
122
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js
123
+ function de(e) {
124
+ return n(e) ? h(v(e)) : ue(e);
125
+ }
126
+ //#endregion
127
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
128
+ function k(e) {
129
+ return typeof e == "function" ? e : e == null ? i : typeof e == "object" ? u(e) ? le(e[0], e[1]) : re(e) : de(e);
130
+ }
131
+ //#endregion
132
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js
133
+ function fe(e, t) {
134
+ return e && p(e, t, o);
135
+ }
136
+ //#endregion
137
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js
138
+ function pe(e, t) {
139
+ return function(n, r) {
140
+ if (n == null) return n;
141
+ if (!b(n)) return e(n, r);
142
+ for (var i = n.length, a = t ? i : -1, o = Object(n); (t ? a-- : ++a < i) && r(o[a], a, o) !== !1;);
143
+ return n;
144
+ };
145
+ }
146
+ //#endregion
147
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js
148
+ var me = pe(fe);
149
+ //#endregion
150
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
151
+ function A(e, t, n) {
152
+ for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
153
+ return !1;
154
+ }
155
+ //#endregion
156
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js
157
+ var he = 200;
158
+ function ge(e, t, n, r) {
159
+ var i = -1, o = w, s = !0, c = e.length, l = [], u = t.length;
160
+ if (!c) return l;
161
+ n && (t = f(t, a(n))), r ? (o = A, s = !1) : t.length >= he && (o = m, s = !1, t = new _(t));
162
+ outer: for (; ++i < c;) {
163
+ var d = e[i], p = n == null ? d : n(d);
164
+ if (d = r || d !== 0 ? d : 0, s && p === p) {
165
+ for (var h = u; h--;) if (t[h] === p) continue outer;
166
+ l.push(d);
167
+ } else o(t, p, r) || l.push(d);
168
+ }
169
+ return l;
170
+ }
171
+ //#endregion
172
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js
173
+ function _e(e, t) {
174
+ var n = -1, r = b(e) ? Array(e.length) : [];
175
+ return me(e, function(e, i, a) {
176
+ r[++n] = t(e, i, a);
177
+ }), r;
178
+ }
179
+ //#endregion
180
+ //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js
181
+ function ve(e, t) {
182
+ return (u(e) ? f : _e)(e, k(t, 3));
183
+ }
184
+ //#endregion
185
+ //#region ../../lib-react/translator/dist/en.js
186
+ var ye = {
187
+ translation: {
188
+ categorize: {
189
+ limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
190
+ maxChoicesPerCategoryRestriction: "To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."
191
+ },
192
+ ebsr: { part: "Part {{index}}" },
193
+ numberLine: {
194
+ addElementLimit_one: "You can only add {{count}} element",
195
+ addElementLimit_other: "You can only add {{count}} elements",
196
+ clearAll: "Clear all"
197
+ },
198
+ imageClozeAssociation: {
199
+ reachedLimit_one: "You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",
200
+ reachedLimit_other: "Full"
201
+ },
202
+ drawingResponse: {
203
+ fillColor: "Fill color",
204
+ outlineColor: "Outline color",
205
+ noFill: "No fill",
206
+ lightblue: "Light blue",
207
+ lightyellow: "Light yellow",
208
+ red: "Red",
209
+ orange: "Orange",
210
+ yellow: "Yellow",
211
+ violet: "Violet",
212
+ blue: "Blue",
213
+ green: "Green",
214
+ white: "White",
215
+ black: "Black",
216
+ onDoubleClick: "Double click to edit this text. Press Enter to submit."
217
+ },
218
+ charting: {
219
+ addCategory: "Add category",
220
+ actions: "Actions",
221
+ add: "Add",
222
+ delete: "Delete",
223
+ newLabel: "New label",
224
+ reachedLimit_other: "There can't be more than {{count}} categories.",
225
+ keyLegend: {
226
+ incorrectAnswer: "Student incorrect answer",
227
+ correctAnswer: "Student correct answer",
228
+ correctKeyAnswer: "Answer key correct"
229
+ }
230
+ },
231
+ graphing: {
232
+ point: "Point",
233
+ circle: "Circle",
234
+ line: "Line",
235
+ parabola: "Parabola",
236
+ absolute: "Absolute Value",
237
+ exponential: "Exponential",
238
+ polygon: "Polygon",
239
+ ray: "Ray",
240
+ segment: "Segment",
241
+ sine: "Sine",
242
+ vector: "Vector",
243
+ label: "Label",
244
+ redo: "Redo",
245
+ reset: "Reset"
246
+ },
247
+ mathInline: { primaryCorrectWithAlternates: "Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct." },
248
+ multipleChoice: {
249
+ minSelections: "Select at least {{minSelections}}.",
250
+ maxSelections_one: "Only {{maxSelections}} answer is allowed.",
251
+ maxSelections_other: "Only {{maxSelections}} answers are allowed.",
252
+ minmaxSelections_equal: "Select {{minSelections}}.",
253
+ minmaxSelections_range: "Select between {{minSelections}} and {{maxSelections}}."
254
+ },
255
+ selectText: {
256
+ correctAnswerSelected: "Correct",
257
+ correctAnswerNotSelected: "Correct Answer Not Selected",
258
+ incorrectSelection: "Incorrect Selection",
259
+ key: "Key"
260
+ }
261
+ },
262
+ common: {
263
+ undo: "Undo",
264
+ clearAll: "Clear all",
265
+ correct: "Correct",
266
+ incorrect: "Incorrect",
267
+ showCorrectAnswer: "Show correct answer",
268
+ hideCorrectAnswer: "Hide correct answer",
269
+ commonCorrectAnswerWithAlternates: "Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",
270
+ warning: "Warning",
271
+ showNote: "Show Note",
272
+ hideNote: "Hide Note",
273
+ cancel: "Cancel"
274
+ }
275
+ }, be = {
276
+ translation: {
277
+ categorize: {
278
+ limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
279
+ maxChoicesPerCategoryRestriction: "Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"
280
+ },
281
+ ebsr: { part: "Parte {{index}}" },
282
+ numberLine: {
283
+ addElementLimit_one: "Solo puedes agregar {{count}} elemento",
284
+ addElementLimit_other: "Solo puedes agregar {{count}} elementos",
285
+ clearAll: "Borrar todo"
286
+ },
287
+ imageClozeAssociation: {
288
+ reachedLimit_one: "Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
289
+ reachedLimit_other: "Lleno"
290
+ },
291
+ drawingResponse: {
292
+ fillColor: "Color de relleno",
293
+ outlineColor: "Color del contorno",
294
+ noFill: "Sin relleno",
295
+ lightblue: "Azul claro",
296
+ lightyellow: "Amarillo claro",
297
+ red: "Rojo",
298
+ orange: "Naranja",
299
+ yellow: "Amarillo",
300
+ violet: "Violeta",
301
+ blue: "Azul",
302
+ green: "Verde",
303
+ white: "Blanco",
304
+ black: "Negro",
305
+ onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"
306
+ },
307
+ charting: {
308
+ addCategory: "Añadir categoría",
309
+ actions: "Acciones",
310
+ add: "Añadir",
311
+ delete: "Eliminar",
312
+ newLabel: "Nueva etiqueta",
313
+ reachedLimit_other: "No puede haber más de {{count}} categorías.",
314
+ keyLegend: {
315
+ incorrectAnswer: "Respuesta incorrecta del estudiante",
316
+ correctAnswer: "Respuesta correcta del estudiante",
317
+ correctKeyAnswer: "Clave de respuesta correcta"
318
+ }
319
+ },
320
+ graphing: {
321
+ point: "Punto",
322
+ circle: "Circulo",
323
+ line: "Línea",
324
+ parabola: "Parábola",
325
+ absolute: "Valor absoluto",
326
+ exponential: "Exponencial",
327
+ polygon: "Polígono",
328
+ ray: "Semirrecta",
329
+ segment: "Segmento ",
330
+ sine: "Seno",
331
+ vector: "Vector",
332
+ label: "Etiqueta",
333
+ redo: "Rehacer",
334
+ reset: "Reiniciar"
335
+ },
336
+ mathInline: { primaryCorrectWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas." },
337
+ multipleChoice: {
338
+ minSelections: "Seleccione al menos {{minSelections}}.",
339
+ maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
340
+ maxSelections_other: "Sólo se permiten {{maxSelections}} respuestas.",
341
+ minmaxSelections_equal: "Seleccione {{minSelections}}.",
342
+ minmaxSelections_range: "Seleccione entre {{minSelections}} y {{maxSelections}}."
343
+ },
344
+ selectText: {
345
+ correctAnswerSelected: "Respuesta Correcta",
346
+ correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
347
+ incorrectSelection: "Selección Incorrecta",
348
+ key: "Clave"
349
+ }
350
+ },
351
+ common: {
352
+ undo: "Deshacer",
353
+ clearAll: "Borrar todo",
354
+ correct: "Correct",
355
+ incorrect: "Incorrect",
356
+ showCorrectAnswer: "Mostrar respuesta correcta",
357
+ hideCorrectAnswer: "Ocultar respuesta correcta",
358
+ commonCorrectAnswerWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",
359
+ warning: "Advertencia",
360
+ showNote: "Mostrar Nota",
361
+ hideNote: "Ocultar Nota",
362
+ cancel: "Cancelar"
363
+ }
364
+ }, j = (e) => typeof e == "string", M = () => {
365
+ let e, t, n = new Promise((n, r) => {
366
+ e = n, t = r;
367
+ });
368
+ return n.resolve = e, n.reject = t, n;
369
+ }, N = (e) => e == null ? "" : "" + e, xe = (e, t, n) => {
370
+ e.forEach((e) => {
371
+ t[e] && (n[e] = t[e]);
372
+ });
373
+ }, Se = /###/g, P = (e) => e && e.indexOf("###") > -1 ? e.replace(Se, ".") : e, F = (e) => !e || j(e), I = (e, t, n) => {
374
+ let r = j(t) ? t.split(".") : t, i = 0;
375
+ for (; i < r.length - 1;) {
376
+ if (F(e)) return {};
377
+ let t = P(r[i]);
378
+ !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
379
+ }
380
+ return F(e) ? {} : {
381
+ obj: e,
382
+ k: P(r[i])
383
+ };
384
+ }, Ce = (e, t, n) => {
385
+ let { obj: r, k: i } = I(e, t, Object);
386
+ if (r !== void 0 || t.length === 1) {
387
+ r[i] = n;
388
+ return;
389
+ }
390
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = I(e, o, Object);
391
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = I(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
392
+ s.obj[`${s.k}.${a}`] = n;
393
+ }, we = (e, t, n, r) => {
394
+ let { obj: i, k: a } = I(e, t, Object);
395
+ i[a] = i[a] || [], i[a].push(n);
396
+ }, L = (e, t) => {
397
+ let { obj: n, k: r } = I(e, t);
398
+ if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
399
+ }, Te = (e, t, n) => {
400
+ let r = L(e, n);
401
+ return r === void 0 ? L(t, n) : r;
402
+ }, Ee = (e, t, n) => {
403
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? j(e[r]) || e[r] instanceof String || j(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Ee(e[r], t[r], n) : e[r] = t[r]);
404
+ return e;
405
+ }, R = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), De = {
406
+ "&": "&amp;",
407
+ "<": "&lt;",
408
+ ">": "&gt;",
409
+ "\"": "&quot;",
410
+ "'": "&#39;",
411
+ "/": "&#x2F;"
412
+ }, Oe = (e) => j(e) ? e.replace(/[&<>"'\/]/g, (e) => De[e]) : e, ke = class {
413
+ constructor(e) {
414
+ this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
415
+ }
416
+ getRegExp(e) {
417
+ let t = this.regExpMap.get(e);
418
+ if (t !== void 0) return t;
419
+ let n = new RegExp(e);
420
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
421
+ }
422
+ }, Ae = [
423
+ " ",
424
+ ",",
425
+ "?",
426
+ "!",
427
+ ";"
428
+ ], je = new ke(20), Me = (e, t, n) => {
429
+ t ||= "", n ||= "";
430
+ let r = Ae.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
431
+ if (r.length === 0) return !0;
432
+ let i = je.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
433
+ if (!a) {
434
+ let t = e.indexOf(n);
435
+ t > 0 && !i.test(e.substring(0, t)) && (a = !0);
436
+ }
437
+ return a;
438
+ }, z = (e, t, n = ".") => {
439
+ if (!e) return;
440
+ if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
441
+ let r = t.split(n), i = e;
442
+ for (let e = 0; e < r.length;) {
443
+ if (!i || typeof i != "object") return;
444
+ let t, a = "";
445
+ for (let o = e; o < r.length; ++o) if (o !== e && (a += n), a += r[o], t = i[a], t !== void 0) {
446
+ if ([
447
+ "string",
448
+ "number",
449
+ "boolean"
450
+ ].indexOf(typeof t) > -1 && o < r.length - 1) continue;
451
+ e += o - e + 1;
452
+ break;
453
+ }
454
+ i = t;
455
+ }
456
+ return i;
457
+ }, B = (e) => e?.replace(/_/g, "-"), Ne = {
458
+ type: "logger",
459
+ log(e) {
460
+ this.output("log", e);
461
+ },
462
+ warn(e) {
463
+ this.output("warn", e);
464
+ },
465
+ error(e) {
466
+ this.output("error", e);
467
+ },
468
+ output(e, t) {
469
+ console?.[e]?.apply?.(console, t);
470
+ }
471
+ }, V = new class e {
472
+ constructor(e, t = {}) {
473
+ this.init(e, t);
474
+ }
475
+ init(e, t = {}) {
476
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ne, this.options = t, this.debug = t.debug;
477
+ }
478
+ log(...e) {
479
+ return this.forward(e, "log", "", !0);
480
+ }
481
+ warn(...e) {
482
+ return this.forward(e, "warn", "", !0);
483
+ }
484
+ error(...e) {
485
+ return this.forward(e, "error", "");
486
+ }
487
+ deprecate(...e) {
488
+ return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
489
+ }
490
+ forward(e, t, n, r) {
491
+ return r && !this.debug ? null : (j(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
492
+ }
493
+ create(t) {
494
+ return new e(this.logger, {
495
+ prefix: `${this.prefix}:${t}:`,
496
+ ...this.options
497
+ });
498
+ }
499
+ clone(t) {
500
+ return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
501
+ }
502
+ }(), H = class {
503
+ constructor() {
504
+ this.observers = {};
505
+ }
506
+ on(e, t) {
507
+ return e.split(" ").forEach((e) => {
508
+ this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
509
+ let n = this.observers[e].get(t) || 0;
510
+ this.observers[e].set(t, n + 1);
511
+ }), this;
512
+ }
513
+ off(e, t) {
514
+ if (this.observers[e]) {
515
+ if (!t) {
516
+ delete this.observers[e];
517
+ return;
518
+ }
519
+ this.observers[e].delete(t);
520
+ }
521
+ }
522
+ emit(e, ...t) {
523
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, n]) => {
524
+ for (let r = 0; r < n; r++) e(...t);
525
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([n, r]) => {
526
+ for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
527
+ });
528
+ }
529
+ }, U = class extends H {
530
+ constructor(e, t = {
531
+ ns: ["translation"],
532
+ defaultNS: "translation"
533
+ }) {
534
+ super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
535
+ }
536
+ addNamespaces(e) {
537
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
538
+ }
539
+ removeNamespaces(e) {
540
+ let t = this.options.ns.indexOf(e);
541
+ t > -1 && this.options.ns.splice(t, 1);
542
+ }
543
+ getResource(e, t, n, r = {}) {
544
+ let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
545
+ e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : j(n) && i ? o.push(...n.split(i)) : o.push(n)));
546
+ let s = L(this.data, o);
547
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !j(n) ? s : z(this.data?.[e]?.[t], n, i);
548
+ }
549
+ addResource(e, t, n, r, i = { silent: !1 }) {
550
+ let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
551
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Ce(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
552
+ }
553
+ addResources(e, t, n, r = { silent: !1 }) {
554
+ for (let r in n) (j(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
555
+ r.silent || this.emit("added", e, t, n);
556
+ }
557
+ addResourceBundle(e, t, n, r, i, a = {
558
+ silent: !1,
559
+ skipCopy: !1
560
+ }) {
561
+ let o = [e, t];
562
+ e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
563
+ let s = L(this.data, o) || {};
564
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Ee(s, n, i) : s = {
565
+ ...s,
566
+ ...n
567
+ }, Ce(this.data, o, s), a.silent || this.emit("added", e, t, n);
568
+ }
569
+ removeResourceBundle(e, t) {
570
+ this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
571
+ }
572
+ hasResourceBundle(e, t) {
573
+ return this.getResource(e, t) !== void 0;
574
+ }
575
+ getResourceBundle(e, t) {
576
+ return t ||= this.options.defaultNS, this.getResource(e, t);
577
+ }
578
+ getDataByLanguage(e) {
579
+ return this.data[e];
580
+ }
581
+ hasLanguageSomeTranslations(e) {
582
+ let t = this.getDataByLanguage(e);
583
+ return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
584
+ }
585
+ toJSON() {
586
+ return this.data;
587
+ }
588
+ }, W = {
589
+ processors: {},
590
+ addPostProcessor(e) {
591
+ this.processors[e.name] = e;
592
+ },
593
+ handle(e, t, n, r, i) {
594
+ return e.forEach((e) => {
595
+ t = this.processors[e]?.process(t, n, r, i) ?? t;
596
+ }), t;
597
+ }
598
+ }, G = Symbol("i18next/PATH_KEY");
599
+ function Pe() {
600
+ let e = [], t = Object.create(null), n;
601
+ return t.get = (r, i) => (n?.revoke?.(), i === G ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
602
+ }
603
+ function K(e, t) {
604
+ let { [G]: n } = e(Pe()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
605
+ if (n.length > 1 && i) {
606
+ let e = t?.ns, a = Array.isArray(e) ? e : null;
607
+ if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
608
+ }
609
+ return n.join(r);
610
+ }
611
+ var q = {}, J = (e) => !j(e) && typeof e != "boolean" && typeof e != "number", Y = class e extends H {
612
+ constructor(e, t = {}) {
613
+ super(), xe([
614
+ "resourceStore",
615
+ "languageUtils",
616
+ "pluralResolver",
617
+ "interpolator",
618
+ "backendConnector",
619
+ "i18nFormat",
620
+ "utils"
621
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = V.create("translator");
622
+ }
623
+ changeLanguage(e) {
624
+ e && (this.language = e);
625
+ }
626
+ exists(e, t = { interpolation: {} }) {
627
+ let n = { ...t };
628
+ if (e == null) return !1;
629
+ let r = this.resolve(e, n);
630
+ if (r?.res === void 0) return !1;
631
+ let i = J(r.res);
632
+ return !(n.returnObjects === !1 && i);
633
+ }
634
+ extractFromKey(e, t) {
635
+ let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
636
+ n === void 0 && (n = ":");
637
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Me(e, n, r);
638
+ if (a && !o) {
639
+ let t = e.match(this.interpolator.nestingRegexp);
640
+ if (t && t.length > 0) return {
641
+ key: e,
642
+ namespaces: j(i) ? [i] : i
643
+ };
644
+ let a = e.split(n);
645
+ (n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
646
+ }
647
+ return {
648
+ key: e,
649
+ namespaces: j(i) ? [i] : i
650
+ };
651
+ }
652
+ translate(t, n, r) {
653
+ let i = typeof n == "object" ? { ...n } : n;
654
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
655
+ typeof t == "function" && (t = K(t, {
656
+ ...this.options,
657
+ ...i
658
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? K(e, {
659
+ ...this.options,
660
+ ...i
661
+ }) : String(e));
662
+ let a = i.returnDetails === void 0 ? this.options.returnDetails : i.returnDetails, o = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, { key: s, namespaces: c } = this.extractFromKey(t[t.length - 1], i), l = c[c.length - 1], u = i.nsSeparator === void 0 ? this.options.nsSeparator : i.nsSeparator;
663
+ u === void 0 && (u = ":");
664
+ let d = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
665
+ if (d?.toLowerCase() === "cimode") return f ? a ? {
666
+ res: `${l}${u}${s}`,
667
+ usedKey: s,
668
+ exactUsedKey: s,
669
+ usedLng: d,
670
+ usedNS: l,
671
+ usedParams: this.getUsedParamsDetails(i)
672
+ } : `${l}${u}${s}` : a ? {
673
+ res: s,
674
+ usedKey: s,
675
+ exactUsedKey: s,
676
+ usedLng: d,
677
+ usedNS: l,
678
+ usedParams: this.getUsedParamsDetails(i)
679
+ } : s;
680
+ let p = this.resolve(t, i), m = p?.res, h = p?.usedKey || s, g = p?.exactUsedKey || s, _ = [
681
+ "[object Number]",
682
+ "[object Function]",
683
+ "[object RegExp]"
684
+ ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !j(i.count), x = e.hasDefaultValue(i), ee = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", S = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", C = b && !i.ordinal && i.count === 0, w = C && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${ee}`] || i[`defaultValue${S}`] || i.defaultValue, T = m;
685
+ y && !m && x && (T = w);
686
+ let te = J(T), E = Object.prototype.toString.apply(T);
687
+ if (y && T && te && _.indexOf(E) < 0 && !(j(v) && Array.isArray(T))) {
688
+ if (!i.returnObjects && !this.options.returnObjects) {
689
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
690
+ let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, T, {
691
+ ...i,
692
+ ns: c
693
+ }) : `key '${s} (${this.language})' returned an object instead of string.`;
694
+ return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
695
+ }
696
+ if (o) {
697
+ let e = Array.isArray(T), t = e ? [] : {}, n = e ? g : h;
698
+ for (let e in T) if (Object.prototype.hasOwnProperty.call(T, e)) {
699
+ let r = `${n}${o}${e}`;
700
+ x && !m ? t[e] = this.translate(r, {
701
+ ...i,
702
+ defaultValue: J(w) ? w[e] : void 0,
703
+ joinArrays: !1,
704
+ ns: c
705
+ }) : t[e] = this.translate(r, {
706
+ ...i,
707
+ joinArrays: !1,
708
+ ns: c
709
+ }), t[e] === r && (t[e] = T[e]);
710
+ }
711
+ m = t;
712
+ }
713
+ } else if (y && j(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
714
+ else {
715
+ let e = !1, n = !1;
716
+ !this.isValidLookup(m) && x && (e = !0, m = w), this.isValidLookup(m) || (n = !0, m = s);
717
+ let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && w !== m && this.options.updateMissing;
718
+ if (n || e || c) {
719
+ if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? w : m), o) {
720
+ let e = this.resolve(s, {
721
+ ...i,
722
+ keySeparator: !1
723
+ });
724
+ e && e.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
725
+ }
726
+ let e = [], t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
727
+ if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
728
+ else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
729
+ let n = (e, t, n) => {
730
+ let r = x && n !== m ? n : a;
731
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(e, l, t, r, c, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(e, l, t, r, c, i), this.emit("missingKey", e, l, t, m);
732
+ };
733
+ this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
734
+ let t = this.pluralResolver.getSuffixes(e, i);
735
+ C && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
736
+ n([e], s + t, i[`defaultValue${t}`] || w);
737
+ });
738
+ }) : n(e, s, w));
739
+ }
740
+ m = this.extendTranslation(m, t, i, p, r), n && m === s && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${s}`), (n || e) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${s}` : s, e ? m : void 0, i));
741
+ }
742
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(i), p) : m;
743
+ }
744
+ extendTranslation(e, t, n, r, i) {
745
+ if (this.i18nFormat?.parse) e = this.i18nFormat.parse(e, {
746
+ ...this.options.interpolation.defaultVariables,
747
+ ...n
748
+ }, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r });
749
+ else if (!n.skipInterpolation) {
750
+ n.interpolation && this.interpolator.init({
751
+ ...n,
752
+ interpolation: {
753
+ ...this.options.interpolation,
754
+ ...n.interpolation
755
+ }
756
+ });
757
+ let a = j(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
758
+ if (a) {
759
+ let t = e.match(this.interpolator.nestingRegexp);
760
+ o = t && t.length;
761
+ }
762
+ let s = n.replace && !j(n.replace) ? n.replace : n;
763
+ if (this.options.interpolation.defaultVariables && (s = {
764
+ ...this.options.interpolation.defaultVariables,
765
+ ...s
766
+ }), e = this.interpolator.interpolate(e, s, n.lng || this.language || r.usedLng, n), a) {
767
+ let t = e.match(this.interpolator.nestingRegexp), r = t && t.length;
768
+ o < r && (n.nest = !1);
769
+ }
770
+ !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
771
+ }
772
+ let a = n.postProcess || this.options.postProcess, o = j(a) ? [a] : a;
773
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = W.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
774
+ i18nResolved: {
775
+ ...r,
776
+ usedParams: this.getUsedParamsDetails(n)
777
+ },
778
+ ...n
779
+ } : n, this)), e;
780
+ }
781
+ resolve(e, t = {}) {
782
+ let n, r, i, a, o;
783
+ return j(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? K(e, {
784
+ ...this.options,
785
+ ...t
786
+ }) : e)), e.forEach((e) => {
787
+ if (this.isValidLookup(n)) return;
788
+ let s = this.extractFromKey(e, t), c = s.key;
789
+ r = c;
790
+ let l = s.namespaces;
791
+ this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
792
+ let u = t.count !== void 0 && !j(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (j(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
793
+ l.forEach((e) => {
794
+ this.isValidLookup(n) || (o = e, !q[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (q[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
795
+ if (this.isValidLookup(n)) return;
796
+ a = r;
797
+ let o = [c];
798
+ if (this.i18nFormat?.addLookupKeys) this.i18nFormat.addLookupKeys(o, c, r, e, t);
799
+ else {
800
+ let e;
801
+ u && (e = this.pluralResolver.getSuffix(r, t.count, t));
802
+ let n = `${this.options.pluralSeparator}zero`, i = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
803
+ if (u && (t.ordinal && e.indexOf(i) === 0 && o.push(c + e.replace(i, this.options.pluralSeparator)), o.push(c + e), d && o.push(c + n)), f) {
804
+ let r = `${c}${this.options.contextSeparator || "_"}${t.context}`;
805
+ o.push(r), u && (t.ordinal && e.indexOf(i) === 0 && o.push(r + e.replace(i, this.options.pluralSeparator)), o.push(r + e), d && o.push(r + n));
806
+ }
807
+ }
808
+ let s;
809
+ for (; s = o.pop();) this.isValidLookup(n) || (i = s, n = this.getResource(r, e, s, t));
810
+ }));
811
+ });
812
+ }), {
813
+ res: n,
814
+ usedKey: r,
815
+ exactUsedKey: i,
816
+ usedLng: a,
817
+ usedNS: o
818
+ };
819
+ }
820
+ isValidLookup(e) {
821
+ return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
822
+ }
823
+ getResource(e, t, n, r = {}) {
824
+ return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
825
+ }
826
+ getUsedParamsDetails(e = {}) {
827
+ let t = [
828
+ "defaultValue",
829
+ "ordinal",
830
+ "context",
831
+ "replace",
832
+ "lng",
833
+ "lngs",
834
+ "fallbackLng",
835
+ "ns",
836
+ "keySeparator",
837
+ "nsSeparator",
838
+ "returnObjects",
839
+ "returnDetails",
840
+ "joinArrays",
841
+ "postProcess",
842
+ "interpolation"
843
+ ], n = e.replace && !j(e.replace), r = n ? e.replace : e;
844
+ if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
845
+ ...this.options.interpolation.defaultVariables,
846
+ ...r
847
+ }), !n) {
848
+ r = { ...r };
849
+ for (let e of t) delete r[e];
850
+ }
851
+ return r;
852
+ }
853
+ static hasDefaultValue(e) {
854
+ for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
855
+ return !1;
856
+ }
857
+ }, Fe = class {
858
+ constructor(e) {
859
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = V.create("languageUtils");
860
+ }
861
+ getScriptPartFromCode(e) {
862
+ if (e = B(e), !e || e.indexOf("-") < 0) return null;
863
+ let t = e.split("-");
864
+ return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
865
+ }
866
+ getLanguagePartFromCode(e) {
867
+ if (e = B(e), !e || e.indexOf("-") < 0) return e;
868
+ let t = e.split("-");
869
+ return this.formatLanguageCode(t[0]);
870
+ }
871
+ formatLanguageCode(e) {
872
+ if (j(e) && e.indexOf("-") > -1) {
873
+ let t;
874
+ try {
875
+ t = Intl.getCanonicalLocales(e)[0];
876
+ } catch {}
877
+ return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
878
+ }
879
+ return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
880
+ }
881
+ isSupportedCode(e) {
882
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
883
+ }
884
+ getBestMatchFromCodes(e) {
885
+ if (!e) return null;
886
+ let t;
887
+ return e.forEach((e) => {
888
+ if (t) return;
889
+ let n = this.formatLanguageCode(e);
890
+ (!this.options.supportedLngs || this.isSupportedCode(n)) && (t = n);
891
+ }), !t && this.options.supportedLngs && e.forEach((e) => {
892
+ if (t) return;
893
+ let n = this.getScriptPartFromCode(e);
894
+ if (this.isSupportedCode(n)) return t = n;
895
+ let r = this.getLanguagePartFromCode(e);
896
+ if (this.isSupportedCode(r)) return t = r;
897
+ t = this.options.supportedLngs.find((e) => {
898
+ if (e === r || !(e.indexOf("-") < 0 && r.indexOf("-") < 0) && (e.indexOf("-") > 0 && r.indexOf("-") < 0 && e.substring(0, e.indexOf("-")) === r || e.indexOf(r) === 0 && r.length > 1)) return e;
899
+ });
900
+ }), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t;
901
+ }
902
+ getFallbackCodes(e, t) {
903
+ if (!e) return [];
904
+ if (typeof e == "function" && (e = e(t)), j(e) && (e = [e]), Array.isArray(e)) return e;
905
+ if (!t) return e.default || [];
906
+ let n = e[t];
907
+ return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
908
+ }
909
+ toResolveHierarchy(e, t) {
910
+ let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
911
+ e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
912
+ };
913
+ return j(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : j(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
914
+ r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
915
+ }), r;
916
+ }
917
+ }, Ie = {
918
+ zero: 0,
919
+ one: 1,
920
+ two: 2,
921
+ few: 3,
922
+ many: 4,
923
+ other: 5
924
+ }, Le = {
925
+ select: (e) => e === 1 ? "one" : "other",
926
+ resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
927
+ }, Re = class {
928
+ constructor(e, t = {}) {
929
+ this.languageUtils = e, this.options = t, this.logger = V.create("pluralResolver"), this.pluralRulesCache = {};
930
+ }
931
+ clearCache() {
932
+ this.pluralRulesCache = {};
933
+ }
934
+ getRule(e, t = {}) {
935
+ let n = B(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
936
+ cleanedCode: n,
937
+ type: r
938
+ });
939
+ if (i in this.pluralRulesCache) return this.pluralRulesCache[i];
940
+ let a;
941
+ try {
942
+ a = new Intl.PluralRules(n, { type: r });
943
+ } catch {
944
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Le;
945
+ if (!e.match(/-|_/)) return Le;
946
+ let n = this.languageUtils.getLanguagePartFromCode(e);
947
+ a = this.getRule(n, t);
948
+ }
949
+ return this.pluralRulesCache[i] = a, a;
950
+ }
951
+ needsPlural(e, t = {}) {
952
+ let n = this.getRule(e, t);
953
+ return n ||= this.getRule("dev", t), n?.resolvedOptions().pluralCategories.length > 1;
954
+ }
955
+ getPluralFormsOfKey(e, t, n = {}) {
956
+ return this.getSuffixes(e, n).map((e) => `${t}${e}`);
957
+ }
958
+ getSuffixes(e, t = {}) {
959
+ let n = this.getRule(e, t);
960
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Ie[e] - Ie[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
961
+ }
962
+ getSuffix(e, t, n = {}) {
963
+ let r = this.getRule(e, n);
964
+ return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
965
+ }
966
+ }, ze = (e, t, n, r = ".", i = !0) => {
967
+ let a = Te(e, t, n);
968
+ return !a && i && j(n) && (a = z(e, n, r), a === void 0 && (a = z(t, n, r))), a;
969
+ }, X = (e) => e.replace(/\$/g, "$$$$"), Be = class {
970
+ constructor(e = {}) {
971
+ this.logger = V.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
972
+ }
973
+ init(e = {}) {
974
+ e.interpolation ||= { escapeValue: !0 };
975
+ let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
976
+ this.escape = t === void 0 ? Oe : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? R(i) : a || "{{", this.suffix = o ? R(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? R(d) : f || R("$t("), this.nestingSuffix = p ? R(p) : m || R(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
977
+ }
978
+ reset() {
979
+ this.options && this.init(this.options);
980
+ }
981
+ resetRegExp() {
982
+ let e = (e, t) => e?.source === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
983
+ this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
984
+ }
985
+ interpolate(e, t, n, r) {
986
+ let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
987
+ if (e.indexOf(this.formatSeparator) < 0) {
988
+ let i = ze(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
989
+ return this.alwaysFormat ? this.format(i, void 0, n, {
990
+ ...r,
991
+ ...t,
992
+ interpolationkey: e
993
+ }) : i;
994
+ }
995
+ let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
996
+ return this.format(ze(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
997
+ ...r,
998
+ ...t,
999
+ interpolationkey: a
1000
+ });
1001
+ };
1002
+ this.resetRegExp();
1003
+ let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
1004
+ return [{
1005
+ regex: this.regexpUnescape,
1006
+ safeValue: (e) => X(e)
1007
+ }, {
1008
+ regex: this.regexp,
1009
+ safeValue: (e) => this.escapeValue ? X(this.escape(e)) : X(e)
1010
+ }].forEach((t) => {
1011
+ for (o = 0; i = t.regex.exec(e);) {
1012
+ let n = i[1].trim();
1013
+ if (a = c(n), a === void 0) if (typeof l == "function") {
1014
+ let t = l(e, i, r);
1015
+ a = j(t) ? t : "";
1016
+ } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
1017
+ else if (u) {
1018
+ a = i[0];
1019
+ continue;
1020
+ } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
1021
+ else !j(a) && !this.useRawValueToEscape && (a = N(a));
1022
+ let s = t.safeValue(a);
1023
+ if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
1024
+ }
1025
+ }), e;
1026
+ }
1027
+ nest(e, t, n = {}) {
1028
+ let r, i, a, o = (e, t) => {
1029
+ let n = this.nestingOptionsSeparator;
1030
+ if (e.indexOf(n) < 0) return e;
1031
+ let r = e.split(RegExp(`${R(n)}[ ]*{`)), i = `{${r[1]}`;
1032
+ e = r[0], i = this.interpolate(i, a);
1033
+ let o = i.match(/'/g), s = i.match(/"/g);
1034
+ ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
1035
+ try {
1036
+ a = JSON.parse(i), t && (a = {
1037
+ ...t,
1038
+ ...a
1039
+ });
1040
+ } catch (t) {
1041
+ return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
1042
+ }
1043
+ return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, e;
1044
+ };
1045
+ for (; r = this.nestingRegexp.exec(e);) {
1046
+ let s = [];
1047
+ a = { ...n }, a = a.replace && !j(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
1048
+ let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
1049
+ if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !j(i)) return i;
1050
+ j(i) || (i = N(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
1051
+ ...n,
1052
+ interpolationkey: r[1].trim()
1053
+ }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
1054
+ }
1055
+ return e;
1056
+ }
1057
+ }, Ve = (e) => {
1058
+ let t = e.toLowerCase().trim(), n = {};
1059
+ if (e.indexOf("(") > -1) {
1060
+ let r = e.split("(");
1061
+ t = r[0].toLowerCase().trim();
1062
+ let i = r[1].substring(0, r[1].length - 1);
1063
+ t === "currency" && i.indexOf(":") < 0 ? n.currency ||= i.trim() : t === "relativetime" && i.indexOf(":") < 0 ? n.range ||= i.trim() : i.split(";").forEach((e) => {
1064
+ if (e) {
1065
+ let [t, ...r] = e.split(":"), i = r.join(":").trim().replace(/^'+|'+$/g, ""), a = t.trim();
1066
+ n[a] || (n[a] = i), i === "false" && (n[a] = !1), i === "true" && (n[a] = !0), isNaN(i) || (n[a] = parseInt(i, 10));
1067
+ }
1068
+ });
1069
+ }
1070
+ return {
1071
+ formatName: t,
1072
+ formatOptions: n
1073
+ };
1074
+ }, He = (e) => {
1075
+ let t = {};
1076
+ return (n, r, i) => {
1077
+ let a = i;
1078
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (a = {
1079
+ ...a,
1080
+ [i.interpolationkey]: void 0
1081
+ });
1082
+ let o = r + JSON.stringify(a), s = t[o];
1083
+ return s || (s = e(B(r), i), t[o] = s), s(n);
1084
+ };
1085
+ }, Ue = (e) => (t, n, r) => e(B(n), r)(t), We = class {
1086
+ constructor(e = {}) {
1087
+ this.logger = V.create("formatter"), this.options = e, this.init(e);
1088
+ }
1089
+ init(e, t = { interpolation: {} }) {
1090
+ this.formatSeparator = t.interpolation.formatSeparator || ",";
1091
+ let n = t.cacheInBuiltFormats ? He : Ue;
1092
+ this.formats = {
1093
+ number: n((e, t) => {
1094
+ let n = new Intl.NumberFormat(e, { ...t });
1095
+ return (e) => n.format(e);
1096
+ }),
1097
+ currency: n((e, t) => {
1098
+ let n = new Intl.NumberFormat(e, {
1099
+ ...t,
1100
+ style: "currency"
1101
+ });
1102
+ return (e) => n.format(e);
1103
+ }),
1104
+ datetime: n((e, t) => {
1105
+ let n = new Intl.DateTimeFormat(e, { ...t });
1106
+ return (e) => n.format(e);
1107
+ }),
1108
+ relativetime: n((e, t) => {
1109
+ let n = new Intl.RelativeTimeFormat(e, { ...t });
1110
+ return (e) => n.format(e, t.range || "day");
1111
+ }),
1112
+ list: n((e, t) => {
1113
+ let n = new Intl.ListFormat(e, { ...t });
1114
+ return (e) => n.format(e);
1115
+ })
1116
+ };
1117
+ }
1118
+ add(e, t) {
1119
+ this.formats[e.toLowerCase().trim()] = t;
1120
+ }
1121
+ addCached(e, t) {
1122
+ this.formats[e.toLowerCase().trim()] = He(t);
1123
+ }
1124
+ format(e, t, n, r = {}) {
1125
+ let i = t.split(this.formatSeparator);
1126
+ if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((e) => e.indexOf(")") > -1)) {
1127
+ let e = i.findIndex((e) => e.indexOf(")") > -1);
1128
+ i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
1129
+ }
1130
+ return i.reduce((e, t) => {
1131
+ let { formatName: i, formatOptions: a } = Ve(t);
1132
+ if (this.formats[i]) {
1133
+ let t = e;
1134
+ try {
1135
+ let o = r?.formatParams?.[r.interpolationkey] || {}, s = o.locale || o.lng || r.locale || r.lng || n;
1136
+ t = this.formats[i](e, s, {
1137
+ ...a,
1138
+ ...r,
1139
+ ...o
1140
+ });
1141
+ } catch (e) {
1142
+ this.logger.warn(e);
1143
+ }
1144
+ return t;
1145
+ } else this.logger.warn(`there was no format function for ${i}`);
1146
+ return e;
1147
+ }, e);
1148
+ }
1149
+ }, Ge = (e, t) => {
1150
+ e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
1151
+ }, Ke = class extends H {
1152
+ constructor(e, t, n, r = {}) {
1153
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = V.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
1154
+ }
1155
+ queueLoad(e, t, n, r) {
1156
+ let i = {}, a = {}, o = {}, s = {};
1157
+ return e.forEach((e) => {
1158
+ let r = !0;
1159
+ t.forEach((t) => {
1160
+ let o = `${e}|${t}`;
1161
+ !n.reload && this.store.hasResourceBundle(e, t) ? this.state[o] = 2 : this.state[o] < 0 || (this.state[o] === 1 ? a[o] === void 0 && (a[o] = !0) : (this.state[o] = 1, r = !1, a[o] === void 0 && (a[o] = !0), i[o] === void 0 && (i[o] = !0), s[t] === void 0 && (s[t] = !0)));
1162
+ }), r || (o[e] = !0);
1163
+ }), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
1164
+ pending: a,
1165
+ pendingCount: Object.keys(a).length,
1166
+ loaded: {},
1167
+ errors: [],
1168
+ callback: r
1169
+ }), {
1170
+ toLoad: Object.keys(i),
1171
+ pending: Object.keys(a),
1172
+ toLoadLanguages: Object.keys(o),
1173
+ toLoadNamespaces: Object.keys(s)
1174
+ };
1175
+ }
1176
+ loaded(e, t, n) {
1177
+ let r = e.split("|"), i = r[0], a = r[1];
1178
+ t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
1179
+ let o = {};
1180
+ this.queue.forEach((n) => {
1181
+ we(n.loaded, [i], a), Ge(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
1182
+ o[e] || (o[e] = {});
1183
+ let t = n.loaded[e];
1184
+ t.length && t.forEach((t) => {
1185
+ o[e][t] === void 0 && (o[e][t] = !0);
1186
+ });
1187
+ }), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
1188
+ }), this.emit("loaded", o), this.queue = this.queue.filter((e) => !e.done);
1189
+ }
1190
+ read(e, t, n, r = 0, i = this.retryTimeout, a) {
1191
+ if (!e.length) return a(null, {});
1192
+ if (this.readingCalls >= this.maxParallelReads) {
1193
+ this.waitingReads.push({
1194
+ lng: e,
1195
+ ns: t,
1196
+ fcName: n,
1197
+ tried: r,
1198
+ wait: i,
1199
+ callback: a
1200
+ });
1201
+ return;
1202
+ }
1203
+ this.readingCalls++;
1204
+ let o = (o, s) => {
1205
+ if (this.readingCalls--, this.waitingReads.length > 0) {
1206
+ let e = this.waitingReads.shift();
1207
+ this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
1208
+ }
1209
+ if (o && s && r < this.maxRetries) {
1210
+ setTimeout(() => {
1211
+ this.read.call(this, e, t, n, r + 1, i * 2, a);
1212
+ }, i);
1213
+ return;
1214
+ }
1215
+ a(o, s);
1216
+ }, s = this.backend[n].bind(this.backend);
1217
+ if (s.length === 2) {
1218
+ try {
1219
+ let n = s(e, t);
1220
+ n && typeof n.then == "function" ? n.then((e) => o(null, e)).catch(o) : o(null, n);
1221
+ } catch (e) {
1222
+ o(e);
1223
+ }
1224
+ return;
1225
+ }
1226
+ return s(e, t, o);
1227
+ }
1228
+ prepareLoading(e, t, n = {}, r) {
1229
+ if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
1230
+ j(e) && (e = this.languageUtils.toResolveHierarchy(e)), j(t) && (t = [t]);
1231
+ let i = this.queueLoad(e, t, n, r);
1232
+ if (!i.toLoad.length) return i.pending.length || r(), null;
1233
+ i.toLoad.forEach((e) => {
1234
+ this.loadOne(e);
1235
+ });
1236
+ }
1237
+ load(e, t, n) {
1238
+ this.prepareLoading(e, t, {}, n);
1239
+ }
1240
+ reload(e, t, n) {
1241
+ this.prepareLoading(e, t, { reload: !0 }, n);
1242
+ }
1243
+ loadOne(e, t = "") {
1244
+ let n = e.split("|"), r = n[0], i = n[1];
1245
+ this.read(r, i, "read", void 0, void 0, (n, a) => {
1246
+ n && this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`, n), !n && a && this.logger.log(`${t}loaded namespace ${i} for language ${r}`, a), this.loaded(e, n, a);
1247
+ });
1248
+ }
1249
+ saveMissing(e, t, n, r, i, a = {}, o = () => {}) {
1250
+ if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(t)) {
1251
+ this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
1252
+ return;
1253
+ }
1254
+ if (!(n == null || n === "")) {
1255
+ if (this.backend?.create) {
1256
+ let s = {
1257
+ ...a,
1258
+ isUpdate: i
1259
+ }, c = this.backend.create.bind(this.backend);
1260
+ if (c.length < 6) try {
1261
+ let i;
1262
+ i = c.length === 5 ? c(e, t, n, r, s) : c(e, t, n, r), i && typeof i.then == "function" ? i.then((e) => o(null, e)).catch(o) : o(null, i);
1263
+ } catch (e) {
1264
+ o(e);
1265
+ }
1266
+ else c(e, t, n, r, o, s);
1267
+ }
1268
+ !e || !e[0] || this.store.addResource(e[0], t, n, r);
1269
+ }
1270
+ }
1271
+ }, Z = () => ({
1272
+ debug: !1,
1273
+ initAsync: !0,
1274
+ ns: ["translation"],
1275
+ defaultNS: ["translation"],
1276
+ fallbackLng: ["dev"],
1277
+ fallbackNS: !1,
1278
+ supportedLngs: !1,
1279
+ nonExplicitSupportedLngs: !1,
1280
+ load: "all",
1281
+ preload: !1,
1282
+ simplifyPluralSuffix: !0,
1283
+ keySeparator: ".",
1284
+ nsSeparator: ":",
1285
+ pluralSeparator: "_",
1286
+ contextSeparator: "_",
1287
+ partialBundledLanguages: !1,
1288
+ saveMissing: !1,
1289
+ updateMissing: !1,
1290
+ saveMissingTo: "fallback",
1291
+ saveMissingPlurals: !0,
1292
+ missingKeyHandler: !1,
1293
+ missingInterpolationHandler: !1,
1294
+ postProcess: !1,
1295
+ postProcessPassResolved: !1,
1296
+ returnNull: !1,
1297
+ returnEmptyString: !0,
1298
+ returnObjects: !1,
1299
+ joinArrays: !1,
1300
+ returnedObjectHandler: !1,
1301
+ parseMissingKeyHandler: !1,
1302
+ appendNamespaceToMissingKey: !1,
1303
+ appendNamespaceToCIMode: !1,
1304
+ overloadTranslationOptionHandler: (e) => {
1305
+ let t = {};
1306
+ if (typeof e[1] == "object" && (t = e[1]), j(e[1]) && (t.defaultValue = e[1]), j(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
1307
+ let n = e[3] || e[2];
1308
+ Object.keys(n).forEach((e) => {
1309
+ t[e] = n[e];
1310
+ });
1311
+ }
1312
+ return t;
1313
+ },
1314
+ interpolation: {
1315
+ escapeValue: !0,
1316
+ format: (e) => e,
1317
+ prefix: "{{",
1318
+ suffix: "}}",
1319
+ formatSeparator: ",",
1320
+ unescapePrefix: "-",
1321
+ nestingPrefix: "$t(",
1322
+ nestingSuffix: ")",
1323
+ nestingOptionsSeparator: ",",
1324
+ maxReplaces: 1e3,
1325
+ skipOnVariables: !0
1326
+ },
1327
+ cacheInBuiltFormats: !0
1328
+ }), qe = (e) => (j(e.ns) && (e.ns = [e.ns]), j(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), j(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Q = () => {}, Je = (e) => {
1329
+ Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
1330
+ typeof e[t] == "function" && (e[t] = e[t].bind(e));
1331
+ });
1332
+ }, Ye = "__i18next_supportNoticeShown", Xe = () => !!(typeof globalThis < "u" && globalThis[Ye] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Ze = () => {
1333
+ typeof globalThis < "u" && (globalThis[Ye] = !0);
1334
+ }, Qe = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends H {
1335
+ constructor(e = {}, t) {
1336
+ if (super(), this.options = qe(e), this.services = {}, this.logger = V, this.modules = { external: [] }, Je(this), t && !this.isInitialized && !e.isClone) {
1337
+ if (!this.options.initAsync) return this.init(e, t), this;
1338
+ setTimeout(() => {
1339
+ this.init(e, t);
1340
+ }, 0);
1341
+ }
1342
+ }
1343
+ init(e = {}, t) {
1344
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (j(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1345
+ let n = Z();
1346
+ this.options = {
1347
+ ...n,
1348
+ ...this.options,
1349
+ ...qe(e)
1350
+ }, this.options.interpolation = {
1351
+ ...n.interpolation,
1352
+ ...this.options.interpolation
1353
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Qe(this) && !Xe() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), Ze());
1354
+ let r = (e) => e ? typeof e == "function" ? new e() : e : null;
1355
+ if (!this.options.isClone) {
1356
+ this.modules.logger ? V.init(r(this.modules.logger), this.options) : V.init(null, this.options);
1357
+ let e;
1358
+ e = this.modules.formatter ? this.modules.formatter : We;
1359
+ let t = new Fe(this.options);
1360
+ this.store = new U(this.options.resources, this.options);
1361
+ let i = this.services;
1362
+ i.logger = V, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Re(t, {
1363
+ prepend: this.options.pluralSeparator,
1364
+ simplifyPluralSuffix: this.options.simplifyPluralSuffix
1365
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Be(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Ke(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
1366
+ this.emit(e, ...t);
1367
+ }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Y(this.services, this.options), this.translator.on("*", (e, ...t) => {
1368
+ this.emit(e, ...t);
1369
+ }), this.modules.external.forEach((e) => {
1370
+ e.init && e.init(this);
1371
+ });
1372
+ }
1373
+ if (this.format = this.options.interpolation.format, t ||= Q, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1374
+ let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1375
+ e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
1376
+ }
1377
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), [
1378
+ "getResource",
1379
+ "hasResourceBundle",
1380
+ "getResourceBundle",
1381
+ "getDataByLanguage"
1382
+ ].forEach((e) => {
1383
+ this[e] = (...t) => this.store[e](...t);
1384
+ }), [
1385
+ "addResource",
1386
+ "addResources",
1387
+ "addResourceBundle",
1388
+ "removeResourceBundle"
1389
+ ].forEach((e) => {
1390
+ this[e] = (...t) => (this.store[e](...t), this);
1391
+ });
1392
+ let i = M(), a = () => {
1393
+ let e = (e, n) => {
1394
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
1395
+ };
1396
+ if (this.languages && !this.isInitialized) return e(null, this.t.bind(this));
1397
+ this.changeLanguage(this.options.lng, e);
1398
+ };
1399
+ return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
1400
+ }
1401
+ loadResources(e, t = Q) {
1402
+ let n = t, r = j(e) ? e : this.language;
1403
+ if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
1404
+ if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
1405
+ let e = [], t = (t) => {
1406
+ t && t !== "cimode" && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
1407
+ t !== "cimode" && e.indexOf(t) < 0 && e.push(t);
1408
+ });
1409
+ };
1410
+ r ? t(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e) => t(e)), this.options.preload?.forEach?.((e) => t(e)), this.services.backendConnector.load(e, this.options.ns, (e) => {
1411
+ !e && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(e);
1412
+ });
1413
+ } else n(null);
1414
+ }
1415
+ reloadResources(e, t, n) {
1416
+ let r = M();
1417
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= Q, this.services.backendConnector.reload(e, t, (e) => {
1418
+ r.resolve(), n(e);
1419
+ }), r;
1420
+ }
1421
+ use(e) {
1422
+ if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1423
+ if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1424
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && W.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1425
+ }
1426
+ setResolvedLanguage(e) {
1427
+ if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
1428
+ for (let e = 0; e < this.languages.length; e++) {
1429
+ let t = this.languages[e];
1430
+ if (!(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) {
1431
+ this.resolvedLanguage = t;
1432
+ break;
1433
+ }
1434
+ }
1435
+ !this.resolvedLanguage && this.languages.indexOf(e) < 0 && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
1436
+ }
1437
+ }
1438
+ changeLanguage(e, t) {
1439
+ this.isLanguageChangingTo = e;
1440
+ let n = M();
1441
+ this.emit("languageChanging", e);
1442
+ let r = (e) => {
1443
+ this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
1444
+ }, i = (i, a) => {
1445
+ a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
1446
+ }, a = (t) => {
1447
+ !e && !t && this.services.languageDetector && (t = []);
1448
+ let n = j(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(j(t) ? [t] : t);
1449
+ a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
1450
+ i(e, a);
1451
+ });
1452
+ };
1453
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
1454
+ }
1455
+ getFixedT(e, t, n) {
1456
+ let r = (e, t, ...i) => {
1457
+ let a;
1458
+ a = typeof t == "object" ? { ...t } : this.options.overloadTranslationOptionHandler([e, t].concat(i)), a.lng = a.lng || r.lng, a.lngs = a.lngs || r.lngs, a.ns = a.ns || r.ns, a.keyPrefix !== "" && (a.keyPrefix = a.keyPrefix || n || r.keyPrefix);
1459
+ let o = {
1460
+ ...this.options,
1461
+ ...a
1462
+ };
1463
+ typeof a.keyPrefix == "function" && (a.keyPrefix = K(a.keyPrefix, o));
1464
+ let s = this.options.keySeparator || ".", c;
1465
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = K(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = K(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
1466
+ };
1467
+ return j(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
1468
+ }
1469
+ t(...e) {
1470
+ return this.translator?.translate(...e);
1471
+ }
1472
+ exists(...e) {
1473
+ return this.translator?.exists(...e);
1474
+ }
1475
+ setDefaultNamespace(e) {
1476
+ this.options.defaultNS = e;
1477
+ }
1478
+ hasLoadedNamespace(e, t = {}) {
1479
+ if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
1480
+ if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
1481
+ let n = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
1482
+ if (n.toLowerCase() === "cimode") return !0;
1483
+ let a = (e, t) => {
1484
+ let n = this.services.backendConnector.state[`${e}|${t}`];
1485
+ return n === -1 || n === 0 || n === 2;
1486
+ };
1487
+ if (t.precheck) {
1488
+ let e = t.precheck(this, a);
1489
+ if (e !== void 0) return e;
1490
+ }
1491
+ return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
1492
+ }
1493
+ loadNamespaces(e, t) {
1494
+ let n = M();
1495
+ return this.options.ns ? (j(e) && (e = [e]), e.forEach((e) => {
1496
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
1497
+ }), this.loadResources((e) => {
1498
+ n.resolve(), t && t(e);
1499
+ }), n) : (t && t(), Promise.resolve());
1500
+ }
1501
+ loadLanguages(e, t) {
1502
+ let n = M();
1503
+ j(e) && (e = [e]);
1504
+ let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
1505
+ return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
1506
+ n.resolve(), t && t(e);
1507
+ }), n) : (t && t(), Promise.resolve());
1508
+ }
1509
+ dir(e) {
1510
+ if (e ||= this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
1511
+ try {
1512
+ let t = new Intl.Locale(e);
1513
+ if (t && t.getTextInfo) {
1514
+ let e = t.getTextInfo();
1515
+ if (e && e.direction) return e.direction;
1516
+ }
1517
+ } catch {}
1518
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Fe(Z());
1519
+ return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1520
+ }
1521
+ static createInstance(t = {}, n) {
1522
+ let r = new e(t, n);
1523
+ return r.createInstance = e.createInstance, r;
1524
+ }
1525
+ cloneInstance(t = {}, n = Q) {
1526
+ let r = t.forkResourceStore;
1527
+ r && delete t.forkResourceStore;
1528
+ let i = {
1529
+ ...this.options,
1530
+ ...t,
1531
+ isClone: !0
1532
+ }, a = new e(i);
1533
+ if ((t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), [
1534
+ "store",
1535
+ "services",
1536
+ "language"
1537
+ ].forEach((e) => {
1538
+ a[e] = this[e];
1539
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new U(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
1540
+ let e = {
1541
+ ...Z().interpolation,
1542
+ ...this.options.interpolation,
1543
+ ...t.interpolation
1544
+ }, n = {
1545
+ ...i,
1546
+ interpolation: e
1547
+ };
1548
+ a.services.interpolator = new Be(n);
1549
+ }
1550
+ return a.translator = new Y(a.services, i), a.translator.on("*", (e, ...t) => {
1551
+ a.emit(e, ...t);
1552
+ }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
1553
+ }
1554
+ toJSON() {
1555
+ return {
1556
+ options: this.options,
1557
+ store: this.store,
1558
+ language: this.language,
1559
+ languages: this.languages,
1560
+ resolvedLanguage: this.resolvedLanguage
1561
+ };
1562
+ }
1563
+ }.createInstance();
1564
+ //#endregion
1565
+ //#region ../../lib-react/translator/dist/index.js
1566
+ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.changeLanguage, $.getFixedT, $.t, $.exists, $.setDefaultNamespace, $.hasLoadedNamespace, $.loadNamespaces, $.loadLanguages, $.init({
1567
+ fallbackLng: "en",
1568
+ lng: "en",
1569
+ debug: !0,
1570
+ resources: {
1571
+ en: ye,
1572
+ es: be
1573
+ }
1574
+ });
1575
+ var $e = {
1576
+ translator: {
1577
+ ...$,
1578
+ t: (e, t) => {
1579
+ let { lng: n } = t;
1580
+ switch (n) {
1581
+ case "en_US":
1582
+ case "en-US":
1583
+ t.lng = "en";
1584
+ break;
1585
+ case "es_ES":
1586
+ case "es-ES":
1587
+ case "es_MX":
1588
+ case "es-MX":
1589
+ t.lng = "es";
1590
+ break;
1591
+ default: break;
1592
+ }
1593
+ return $.t(e, {
1594
+ lng: n,
1595
+ ...t
1596
+ });
1597
+ }
1598
+ },
1599
+ languageOptions: [{
1600
+ value: "en_US",
1601
+ label: "English (US)"
1602
+ }, {
1603
+ value: "es_ES",
1604
+ label: "Spanish"
1605
+ }]
1606
+ };
1607
+ //#endregion
1608
+ export { me as a, A as i, ve as n, k as o, ge as r, w as s, $e as t };
1609
+
1610
+ //# sourceMappingURL=dist-BTHiIs74.js.map