yummies 5.7.1 → 5.9.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 (434) hide show
  1. package/async.cjs +2 -70
  2. package/async.cjs.map +1 -0
  3. package/async.js +26 -59
  4. package/async.js.map +1 -0
  5. package/common.cjs +2 -18
  6. package/common.cjs.map +1 -0
  7. package/common.d.ts +1 -1
  8. package/common.d.ts.map +1 -1
  9. package/common.js +5 -13
  10. package/common.js.map +1 -0
  11. package/complex/global-config.d.ts +1 -1
  12. package/complex/global-config.d.ts.map +1 -1
  13. package/complex/index.d.ts +3 -3
  14. package/complex/index.d.ts.map +1 -1
  15. package/complex/modules-factory.d.ts +1 -1
  16. package/complex/modules-factory.d.ts.map +1 -1
  17. package/complex.cjs +2 -0
  18. package/complex.cjs.map +1 -0
  19. package/complex.js +66 -0
  20. package/complex.js.map +1 -0
  21. package/cookie.cjs +2 -13
  22. package/cookie.cjs.map +1 -0
  23. package/cookie.d.ts +1 -1
  24. package/cookie.d.ts.map +1 -1
  25. package/cookie.js +4 -8
  26. package/cookie.js.map +1 -0
  27. package/css.cjs +2 -64
  28. package/css.cjs.map +1 -0
  29. package/css.d.ts +1 -1
  30. package/css.js +24 -54
  31. package/css.js.map +1 -0
  32. package/data.cjs +2 -58
  33. package/data.cjs.map +1 -0
  34. package/data.js +32 -50
  35. package/data.js.map +1 -0
  36. package/date-time.cjs +2 -171
  37. package/date-time.cjs.map +1 -0
  38. package/date-time.d.ts +2 -3
  39. package/date-time.d.ts.map +1 -1
  40. package/date-time.js +311 -156
  41. package/date-time.js.map +1 -0
  42. package/device.cjs +2 -28
  43. package/device.cjs.map +1 -0
  44. package/device.js +23 -20
  45. package/device.js.map +1 -0
  46. package/encodings.cjs +2 -270
  47. package/encodings.cjs.map +1 -0
  48. package/encodings.js +269 -265
  49. package/encodings.js.map +1 -0
  50. package/errors.cjs +2 -34
  51. package/errors.cjs.map +1 -0
  52. package/errors.d.ts +1 -1
  53. package/errors.d.ts.map +1 -1
  54. package/errors.js +8 -29
  55. package/errors.js.map +1 -0
  56. package/file.cjs +2 -29
  57. package/file.cjs.map +1 -0
  58. package/file.js +19 -23
  59. package/file.js.map +1 -0
  60. package/format/_exports.d.ts +4 -4
  61. package/format/_exports.d.ts.map +1 -1
  62. package/format/index.d.ts +1 -1
  63. package/format/index.d.ts.map +1 -1
  64. package/format/number.d.ts +1 -1
  65. package/format/number.d.ts.map +1 -1
  66. package/format/percent.d.ts +2 -2
  67. package/format/percent.d.ts.map +1 -1
  68. package/format.cjs +2 -0
  69. package/format.cjs.map +1 -0
  70. package/format.js +27 -0
  71. package/format.js.map +1 -0
  72. package/html.cjs +2 -202
  73. package/html.cjs.map +1 -0
  74. package/html.d.ts +2 -2
  75. package/html.d.ts.map +1 -1
  76. package/html.js +120 -177
  77. package/html.js.map +1 -0
  78. package/id.cjs +3 -76
  79. package/id.cjs.map +1 -0
  80. package/id.js +15 -70
  81. package/id.js.map +1 -0
  82. package/imports.cjs +2 -45
  83. package/imports.cjs.map +1 -0
  84. package/imports.js +22 -37
  85. package/imports.js.map +1 -0
  86. package/math.cjs +2 -23
  87. package/math.cjs.map +1 -0
  88. package/math.d.ts +1 -1
  89. package/math.d.ts.map +1 -1
  90. package/math.js +10 -14
  91. package/math.js.map +1 -0
  92. package/media.cjs +2 -115
  93. package/media.cjs.map +1 -0
  94. package/media.js +54 -96
  95. package/media.js.map +1 -0
  96. package/mobx/apply-observable.d.ts +1 -1
  97. package/mobx/apply-observable.d.ts.map +1 -1
  98. package/mobx/create-enhanced-atom.d.ts +2 -2
  99. package/mobx/create-enhanced-atom.d.ts.map +1 -1
  100. package/mobx/deep-observable-struct.d.ts +1 -1
  101. package/mobx/deep-observable-struct.d.ts.map +1 -1
  102. package/mobx/get-mobx-administration.d.ts +2 -2
  103. package/mobx/get-mobx-administration.d.ts.map +1 -1
  104. package/mobx/index.d.ts +5 -5
  105. package/mobx/index.d.ts.map +1 -1
  106. package/mobx.cjs +2 -0
  107. package/mobx.cjs.map +1 -0
  108. package/mobx.js +89 -0
  109. package/mobx.js.map +1 -0
  110. package/ms.cjs +2 -22
  111. package/ms.cjs.map +1 -0
  112. package/ms.js +12 -17
  113. package/ms.js.map +1 -0
  114. package/number.cjs +2 -16
  115. package/number.cjs.map +1 -0
  116. package/number.js +9 -12
  117. package/number.js.map +1 -0
  118. package/package.json +101 -70
  119. package/parser/_exports.d.ts +3 -3
  120. package/parser/_exports.d.ts.map +1 -1
  121. package/parser/index.d.ts +1 -1
  122. package/parser/index.d.ts.map +1 -1
  123. package/parser/number.d.ts +1 -1
  124. package/parser/number.d.ts.map +1 -1
  125. package/parser/percent.d.ts +2 -2
  126. package/parser/percent.d.ts.map +1 -1
  127. package/parser/string.d.ts +1 -1
  128. package/parser/string.d.ts.map +1 -1
  129. package/parser.cjs +2 -0
  130. package/parser.cjs.map +1 -0
  131. package/parser.js +15 -0
  132. package/parser.js.map +1 -0
  133. package/price.cjs +2 -21
  134. package/price.cjs.map +1 -0
  135. package/price.js +13 -16
  136. package/price.js.map +1 -0
  137. package/random.cjs +2 -25
  138. package/random.cjs.map +1 -0
  139. package/random.js +11 -13
  140. package/random.js.map +1 -0
  141. package/react/hooks/index.d.ts +21 -21
  142. package/react/hooks/index.d.ts.map +1 -1
  143. package/react/hooks/use-click-outside.d.ts +1 -1
  144. package/react/hooks/use-define-ref.d.ts +1 -1
  145. package/react/hooks/use-element-ref.d.ts +1 -1
  146. package/react/hooks/use-event.d.ts +1 -1
  147. package/react/hooks/use-event.d.ts.map +1 -1
  148. package/react/hooks/use-initial-height.d.ts +1 -1
  149. package/react/hooks/use-last-value-ref.d.ts +1 -1
  150. package/react/hooks/use-resize-observer.d.ts +1 -1
  151. package/react/hooks/use-sync-ref.d.ts +1 -1
  152. package/react/hooks/use-toggle.d.ts +1 -1
  153. package/react/hooks/use-value.d.ts +1 -1
  154. package/react/index.d.ts +1 -1
  155. package/react/index.d.ts.map +1 -1
  156. package/react.cjs +2 -0
  157. package/react.cjs.map +1 -0
  158. package/react.js +152 -0
  159. package/react.js.map +1 -0
  160. package/sound.cjs +2 -16
  161. package/sound.cjs.map +1 -0
  162. package/sound.js +7 -11
  163. package/sound.js.map +1 -0
  164. package/text.cjs +2 -53
  165. package/text.cjs.map +1 -0
  166. package/text.js +20 -46
  167. package/text.js.map +1 -0
  168. package/type-guard/_exports.d.ts +1 -1
  169. package/type-guard/_exports.d.ts.map +1 -1
  170. package/type-guard/index.d.ts +1 -1
  171. package/type-guard/index.d.ts.map +1 -1
  172. package/type-guard.cjs +2 -0
  173. package/type-guard.cjs.map +1 -0
  174. package/type-guard.js +5 -0
  175. package/type-guard.js.map +1 -0
  176. package/utility-types.cjs +2 -0
  177. package/utility-types.cjs.map +1 -0
  178. package/utility-types.d.ts.map +1 -0
  179. package/utility-types.js +2 -0
  180. package/utility-types.js.map +1 -0
  181. package/utils/types.cjs +1 -1
  182. package/utils/types.cjs.map +1 -0
  183. package/utils/types.js +2 -1
  184. package/utils/types.js.map +1 -0
  185. package/vibrate.cjs +2 -12
  186. package/vibrate.cjs.map +1 -0
  187. package/vibrate.js +6 -7
  188. package/vibrate.js.map +1 -0
  189. package/~index-C3wKHvHr.js +80 -0
  190. package/~index-C3wKHvHr.js.map +1 -0
  191. package/~index-PKNbSTT-.js +2 -0
  192. package/~index-PKNbSTT-.js.map +1 -0
  193. package/~number-B1MpW9GU.js +2 -0
  194. package/~number-B1MpW9GU.js.map +1 -0
  195. package/~number-DX076ykA.js +2 -0
  196. package/~number-DX076ykA.js.map +1 -0
  197. package/~number-EWff2XI6.js +25 -0
  198. package/~number-EWff2XI6.js.map +1 -0
  199. package/~number-baxVnzrJ.js +32 -0
  200. package/~number-baxVnzrJ.js.map +1 -0
  201. package/async.d.cts +0 -28
  202. package/async.d.cts.map +0 -1
  203. package/common.d.cts +0 -15
  204. package/common.d.cts.map +0 -1
  205. package/complex/counter.cjs +0 -21
  206. package/complex/counter.d.cts +0 -15
  207. package/complex/counter.d.cts.map +0 -1
  208. package/complex/counter.js +0 -17
  209. package/complex/global-config.cjs +0 -46
  210. package/complex/global-config.d.cts +0 -11
  211. package/complex/global-config.d.cts.map +0 -1
  212. package/complex/global-config.js +0 -41
  213. package/complex/index.cjs +0 -19
  214. package/complex/index.d.cts +0 -4
  215. package/complex/index.d.cts.map +0 -1
  216. package/complex/index.js +0 -3
  217. package/complex/modules-factory.cjs +0 -50
  218. package/complex/modules-factory.d.cts +0 -49
  219. package/complex/modules-factory.d.cts.map +0 -1
  220. package/complex/modules-factory.js +0 -46
  221. package/cookie.d.cts +0 -3
  222. package/cookie.d.cts.map +0 -1
  223. package/css.d.cts +0 -42
  224. package/css.d.cts.map +0 -1
  225. package/data.d.cts +0 -4
  226. package/data.d.cts.map +0 -1
  227. package/date-time.d.cts +0 -28
  228. package/date-time.d.cts.map +0 -1
  229. package/device.d.cts +0 -8
  230. package/device.d.cts.map +0 -1
  231. package/encodings.d.cts +0 -2
  232. package/encodings.d.cts.map +0 -1
  233. package/errors.d.cts +0 -19
  234. package/errors.d.cts.map +0 -1
  235. package/file.d.cts +0 -3
  236. package/file.d.cts.map +0 -1
  237. package/format/_exports.cjs +0 -20
  238. package/format/_exports.d.cts +0 -5
  239. package/format/_exports.d.cts.map +0 -1
  240. package/format/_exports.js +0 -4
  241. package/format/constants.cjs +0 -6
  242. package/format/constants.d.cts +0 -4
  243. package/format/constants.d.cts.map +0 -1
  244. package/format/constants.js +0 -3
  245. package/format/index.cjs +0 -40
  246. package/format/index.d.cts +0 -3
  247. package/format/index.d.cts.map +0 -1
  248. package/format/index.js +0 -4
  249. package/format/number.cjs +0 -48
  250. package/format/number.d.cts +0 -36
  251. package/format/number.d.cts.map +0 -1
  252. package/format/number.js +0 -44
  253. package/format/percent.cjs +0 -27
  254. package/format/percent.d.cts +0 -15
  255. package/format/percent.d.cts.map +0 -1
  256. package/format/percent.js +0 -23
  257. package/format/skip-spaces.cjs +0 -8
  258. package/format/skip-spaces.d.cts +0 -5
  259. package/format/skip-spaces.d.cts.map +0 -1
  260. package/format/skip-spaces.js +0 -4
  261. package/html.d.cts +0 -44
  262. package/html.d.cts.map +0 -1
  263. package/id.d.cts +0 -63
  264. package/id.d.cts.map +0 -1
  265. package/imports.d.cts +0 -15
  266. package/imports.d.cts.map +0 -1
  267. package/math.d.cts +0 -13
  268. package/math.d.cts.map +0 -1
  269. package/media.d.cts +0 -20
  270. package/media.d.cts.map +0 -1
  271. package/mobx/apply-observable.cjs +0 -16
  272. package/mobx/apply-observable.d.cts +0 -4
  273. package/mobx/apply-observable.d.cts.map +0 -1
  274. package/mobx/apply-observable.js +0 -12
  275. package/mobx/create-enhanced-atom.cjs +0 -16
  276. package/mobx/create-enhanced-atom.d.cts +0 -11
  277. package/mobx/create-enhanced-atom.d.cts.map +0 -1
  278. package/mobx/create-enhanced-atom.js +0 -12
  279. package/mobx/deep-observable-struct.cjs +0 -61
  280. package/mobx/deep-observable-struct.d.cts +0 -7
  281. package/mobx/deep-observable-struct.d.cts.map +0 -1
  282. package/mobx/deep-observable-struct.js +0 -57
  283. package/mobx/get-mobx-administration.cjs +0 -6
  284. package/mobx/get-mobx-administration.d.cts +0 -6
  285. package/mobx/get-mobx-administration.d.cts.map +0 -1
  286. package/mobx/get-mobx-administration.js +0 -2
  287. package/mobx/index.cjs +0 -21
  288. package/mobx/index.d.cts +0 -6
  289. package/mobx/index.d.cts.map +0 -1
  290. package/mobx/index.js +0 -5
  291. package/mobx/lazy-observe.cjs +0 -66
  292. package/mobx/lazy-observe.d.cts +0 -14
  293. package/mobx/lazy-observe.d.cts.map +0 -1
  294. package/mobx/lazy-observe.js +0 -62
  295. package/ms.d.cts +0 -19
  296. package/ms.d.cts.map +0 -1
  297. package/number.d.cts +0 -8
  298. package/number.d.cts.map +0 -1
  299. package/parser/_exports.cjs +0 -19
  300. package/parser/_exports.d.cts +0 -4
  301. package/parser/_exports.d.cts.map +0 -1
  302. package/parser/_exports.js +0 -3
  303. package/parser/index.cjs +0 -40
  304. package/parser/index.d.cts +0 -3
  305. package/parser/index.d.cts.map +0 -1
  306. package/parser/index.js +0 -4
  307. package/parser/number.cjs +0 -48
  308. package/parser/number.d.cts +0 -21
  309. package/parser/number.d.cts.map +0 -1
  310. package/parser/number.js +0 -44
  311. package/parser/percent.cjs +0 -8
  312. package/parser/percent.d.cts +0 -4
  313. package/parser/percent.d.cts.map +0 -1
  314. package/parser/percent.js +0 -4
  315. package/parser/string.cjs +0 -18
  316. package/parser/string.d.cts +0 -7
  317. package/parser/string.d.cts.map +0 -1
  318. package/parser/string.js +0 -14
  319. package/price.d.cts +0 -6
  320. package/price.d.cts.map +0 -1
  321. package/random.d.cts +0 -9
  322. package/random.d.cts.map +0 -1
  323. package/react/hooks/index.cjs +0 -37
  324. package/react/hooks/index.d.cts +0 -22
  325. package/react/hooks/index.d.cts.map +0 -1
  326. package/react/hooks/index.js +0 -21
  327. package/react/hooks/use-abort-controller.cjs +0 -15
  328. package/react/hooks/use-abort-controller.d.cts +0 -2
  329. package/react/hooks/use-abort-controller.d.cts.map +0 -1
  330. package/react/hooks/use-abort-controller.js +0 -11
  331. package/react/hooks/use-abort-signal.cjs +0 -8
  332. package/react/hooks/use-abort-signal.d.cts +0 -2
  333. package/react/hooks/use-abort-signal.d.cts.map +0 -1
  334. package/react/hooks/use-abort-signal.js +0 -4
  335. package/react/hooks/use-click-outside.cjs +0 -17
  336. package/react/hooks/use-click-outside.d.cts +0 -9
  337. package/react/hooks/use-click-outside.d.cts.map +0 -1
  338. package/react/hooks/use-click-outside.js +0 -13
  339. package/react/hooks/use-constant.cjs +0 -19
  340. package/react/hooks/use-constant.d.cts +0 -9
  341. package/react/hooks/use-constant.d.cts.map +0 -1
  342. package/react/hooks/use-constant.js +0 -15
  343. package/react/hooks/use-define-ref.cjs +0 -19
  344. package/react/hooks/use-define-ref.d.cts +0 -10
  345. package/react/hooks/use-define-ref.d.cts.map +0 -1
  346. package/react/hooks/use-define-ref.js +0 -15
  347. package/react/hooks/use-element-ref.cjs +0 -12
  348. package/react/hooks/use-element-ref.d.cts +0 -2
  349. package/react/hooks/use-element-ref.d.cts.map +0 -1
  350. package/react/hooks/use-element-ref.js +0 -8
  351. package/react/hooks/use-event-listener.cjs +0 -17
  352. package/react/hooks/use-event-listener.d.cts +0 -8
  353. package/react/hooks/use-event-listener.d.cts.map +0 -1
  354. package/react/hooks/use-event-listener.js +0 -13
  355. package/react/hooks/use-event.cjs +0 -23
  356. package/react/hooks/use-event.d.cts +0 -3
  357. package/react/hooks/use-event.d.cts.map +0 -1
  358. package/react/hooks/use-event.js +0 -19
  359. package/react/hooks/use-flag.cjs +0 -19
  360. package/react/hooks/use-flag.d.cts +0 -8
  361. package/react/hooks/use-flag.d.cts.map +0 -1
  362. package/react/hooks/use-flag.js +0 -15
  363. package/react/hooks/use-force-update.cjs +0 -11
  364. package/react/hooks/use-force-update.d.cts +0 -2
  365. package/react/hooks/use-force-update.d.cts.map +0 -1
  366. package/react/hooks/use-force-update.js +0 -7
  367. package/react/hooks/use-initial-height.cjs +0 -15
  368. package/react/hooks/use-initial-height.d.cts +0 -5
  369. package/react/hooks/use-initial-height.d.cts.map +0 -1
  370. package/react/hooks/use-initial-height.js +0 -11
  371. package/react/hooks/use-instance.cjs +0 -31
  372. package/react/hooks/use-instance.d.cts +0 -27
  373. package/react/hooks/use-instance.d.cts.map +0 -1
  374. package/react/hooks/use-instance.js +0 -27
  375. package/react/hooks/use-intersection-observer.cjs +0 -14
  376. package/react/hooks/use-intersection-observer.d.cts +0 -2
  377. package/react/hooks/use-intersection-observer.d.cts.map +0 -1
  378. package/react/hooks/use-intersection-observer.js +0 -10
  379. package/react/hooks/use-last-defined-value.cjs +0 -12
  380. package/react/hooks/use-last-defined-value.d.cts +0 -2
  381. package/react/hooks/use-last-defined-value.d.cts.map +0 -1
  382. package/react/hooks/use-last-defined-value.js +0 -8
  383. package/react/hooks/use-last-value-ref.cjs +0 -12
  384. package/react/hooks/use-last-value-ref.d.cts +0 -2
  385. package/react/hooks/use-last-value-ref.d.cts.map +0 -1
  386. package/react/hooks/use-last-value-ref.js +0 -8
  387. package/react/hooks/use-life-cycle.cjs +0 -14
  388. package/react/hooks/use-life-cycle.d.cts +0 -5
  389. package/react/hooks/use-life-cycle.d.cts.map +0 -1
  390. package/react/hooks/use-life-cycle.js +0 -10
  391. package/react/hooks/use-resize-observer.cjs +0 -15
  392. package/react/hooks/use-resize-observer.d.cts +0 -2
  393. package/react/hooks/use-resize-observer.d.cts.map +0 -1
  394. package/react/hooks/use-resize-observer.js +0 -11
  395. package/react/hooks/use-sync-ref.cjs +0 -10
  396. package/react/hooks/use-sync-ref.d.cts +0 -2
  397. package/react/hooks/use-sync-ref.d.cts.map +0 -1
  398. package/react/hooks/use-sync-ref.js +0 -6
  399. package/react/hooks/use-toggle.cjs +0 -10
  400. package/react/hooks/use-toggle.d.cts +0 -2
  401. package/react/hooks/use-toggle.d.cts.map +0 -1
  402. package/react/hooks/use-toggle.js +0 -6
  403. package/react/hooks/use-value.cjs +0 -12
  404. package/react/hooks/use-value.d.cts +0 -5
  405. package/react/hooks/use-value.d.cts.map +0 -1
  406. package/react/hooks/use-value.js +0 -8
  407. package/react/hooks/use-visibility-state.cjs +0 -18
  408. package/react/hooks/use-visibility-state.d.cts +0 -2
  409. package/react/hooks/use-visibility-state.d.cts.map +0 -1
  410. package/react/hooks/use-visibility-state.js +0 -14
  411. package/react/index.cjs +0 -17
  412. package/react/index.d.cts +0 -2
  413. package/react/index.d.cts.map +0 -1
  414. package/react/index.js +0 -1
  415. package/sound.d.cts +0 -7
  416. package/sound.d.cts.map +0 -1
  417. package/storage.cjs +0 -48
  418. package/storage.d.cts +0 -39
  419. package/storage.d.cts.map +0 -1
  420. package/storage.js +0 -43
  421. package/text.d.cts +0 -15
  422. package/text.d.cts.map +0 -1
  423. package/type-guard/_exports.cjs +0 -129
  424. package/type-guard/_exports.d.cts +0 -86
  425. package/type-guard/_exports.d.cts.map +0 -1
  426. package/type-guard/_exports.js +0 -125
  427. package/type-guard/index.cjs +0 -40
  428. package/type-guard/index.d.cts +0 -3
  429. package/type-guard/index.d.cts.map +0 -1
  430. package/type-guard/index.js +0 -4
  431. package/utils/types.d.cts +0 -395
  432. package/utils/types.d.cts.map +0 -1
  433. package/vibrate.d.cts +0 -5
  434. package/vibrate.d.cts.map +0 -1
package/device.js CHANGED
@@ -1,21 +1,24 @@
1
- export const getUserAgent = () => (navigator.userAgent ||
2
- navigator.vendor ||
3
- // @ts-expect-error skip opera
4
- globalThis.opera ||
5
- '').toLowerCase();
6
- export const checkIsMobileDevice = () => {
7
- const userAgent = getUserAgent();
8
- if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent || '') ||
9
- /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test((userAgent || '').slice(0, 4))) {
10
- return true;
11
- }
12
- return false;
1
+ const i = () => (navigator.userAgent || navigator.vendor || // @ts-expect-error skip opera
2
+ globalThis.opera || "").toLowerCase(), o = () => {
3
+ const e = i();
4
+ return !!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(
5
+ e || ""
6
+ ) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(
7
+ (e || "").slice(0, 4)
8
+ ));
9
+ }, t = () => {
10
+ const e = i();
11
+ return /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(
12
+ e
13
+ );
14
+ }, s = () => o() || t(), a = o(), c = t(), n = a || c;
15
+ export {
16
+ o as checkIsMobileDevice,
17
+ t as checkIsTabletDevice,
18
+ s as checkIsTouchDevice,
19
+ i as getUserAgent,
20
+ a as isMobileDevice,
21
+ c as isTabletDevice,
22
+ n as isTouchDevice
13
23
  };
14
- export const checkIsTabletDevice = () => {
15
- const userAgent = getUserAgent();
16
- return /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(userAgent);
17
- };
18
- export const checkIsTouchDevice = () => checkIsMobileDevice() || checkIsTabletDevice();
19
- export const isMobileDevice = checkIsMobileDevice();
20
- export const isTabletDevice = checkIsTabletDevice();
21
- export const isTouchDevice = isMobileDevice || isTabletDevice;
24
+ //# sourceMappingURL=device.js.map
package/device.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device.js","sources":["../src/device.ts"],"sourcesContent":["export const getUserAgent = () =>\n (\n navigator.userAgent ||\n navigator.vendor ||\n // @ts-expect-error skip opera\n globalThis.opera ||\n ''\n ).toLowerCase();\n\nexport const checkIsMobileDevice = () => {\n const userAgent = getUserAgent();\n\n if (\n /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(\n userAgent || '',\n ) ||\n /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(\n (userAgent || '').slice(0, 4),\n )\n ) {\n return true;\n }\n\n return false;\n};\n\nexport const checkIsTabletDevice = () => {\n const userAgent = getUserAgent();\n\n return /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(\n userAgent,\n );\n};\n\nexport const checkIsTouchDevice = () =>\n checkIsMobileDevice() || checkIsTabletDevice();\n\nexport const isMobileDevice = checkIsMobileDevice();\n\nexport const isTabletDevice = checkIsTabletDevice();\n\nexport const isTouchDevice = isMobileDevice || isTabletDevice;\n"],"names":["getUserAgent","checkIsMobileDevice","userAgent","checkIsTabletDevice","checkIsTouchDevice","isMobileDevice","isTabletDevice","isTouchDevice"],"mappings":"AAAO,MAAMA,IAAe,OAExB,UAAU,aACV,UAAU;AAEV,WAAW,SACX,IACA,YAAA,GAESC,IAAsB,MAAM;AACvC,QAAMC,IAAYF,EAAA;AAElB,SACE,8TAA2T;AAAA,IACzTE,KAAa;AAAA,EAAA,KAEf,4hDAA4hD;AAAA,KACzhDA,KAAa,IAAI,MAAM,GAAG,CAAC;AAAA,EAAA;AAOlC,GAEaC,IAAsB,MAAM;AACvC,QAAMD,IAAYF,EAAA;AAElB,SAAO,kHAAkH;AAAA,IACvHE;AAAA,EAAA;AAEJ,GAEaE,IAAqB,MAChCH,EAAA,KAAyBE,EAAA,GAEdE,IAAiBJ,EAAA,GAEjBK,IAAiBH,EAAA,GAEjBI,IAAgBF,KAAkBC;"}
package/encodings.cjs CHANGED
@@ -1,270 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unicodeToWin1251 = unicodeToWin1251;
4
- const DMap = {
5
- 0: 0,
6
- 1: 1,
7
- 2: 2,
8
- 3: 3,
9
- 4: 4,
10
- 5: 5,
11
- 6: 6,
12
- 7: 7,
13
- 8: 8,
14
- 9: 9,
15
- 10: 10,
16
- 11: 11,
17
- 12: 12,
18
- 13: 13,
19
- 14: 14,
20
- 15: 15,
21
- 16: 16,
22
- 17: 17,
23
- 18: 18,
24
- 19: 19,
25
- 20: 20,
26
- 21: 21,
27
- 22: 22,
28
- 23: 23,
29
- 24: 24,
30
- 25: 25,
31
- 26: 26,
32
- 27: 27,
33
- 28: 28,
34
- 29: 29,
35
- 30: 30,
36
- 31: 31,
37
- 32: 32,
38
- 33: 33,
39
- 34: 34,
40
- 35: 35,
41
- 36: 36,
42
- 37: 37,
43
- 38: 38,
44
- 39: 39,
45
- 40: 40,
46
- 41: 41,
47
- 42: 42,
48
- 43: 43,
49
- 44: 44,
50
- 45: 45,
51
- 46: 46,
52
- 47: 47,
53
- 48: 48,
54
- 49: 49,
55
- 50: 50,
56
- 51: 51,
57
- 52: 52,
58
- 53: 53,
59
- 54: 54,
60
- 55: 55,
61
- 56: 56,
62
- 57: 57,
63
- 58: 58,
64
- 59: 59,
65
- 60: 60,
66
- 61: 61,
67
- 62: 62,
68
- 63: 63,
69
- 64: 64,
70
- 65: 65,
71
- 66: 66,
72
- 67: 67,
73
- 68: 68,
74
- 69: 69,
75
- 70: 70,
76
- 71: 71,
77
- 72: 72,
78
- 73: 73,
79
- 74: 74,
80
- 75: 75,
81
- 76: 76,
82
- 77: 77,
83
- 78: 78,
84
- 79: 79,
85
- 80: 80,
86
- 81: 81,
87
- 82: 82,
88
- 83: 83,
89
- 84: 84,
90
- 85: 85,
91
- 86: 86,
92
- 87: 87,
93
- 88: 88,
94
- 89: 89,
95
- 90: 90,
96
- 91: 91,
97
- 92: 92,
98
- 93: 93,
99
- 94: 94,
100
- 95: 95,
101
- 96: 96,
102
- 97: 97,
103
- 98: 98,
104
- 99: 99,
105
- 100: 100,
106
- 101: 101,
107
- 102: 102,
108
- 103: 103,
109
- 104: 104,
110
- 105: 105,
111
- 106: 106,
112
- 107: 107,
113
- 108: 108,
114
- 109: 109,
115
- 110: 110,
116
- 111: 111,
117
- 112: 112,
118
- 113: 113,
119
- 114: 114,
120
- 115: 115,
121
- 116: 116,
122
- 117: 117,
123
- 118: 118,
124
- 119: 119,
125
- 120: 120,
126
- 121: 121,
127
- 122: 122,
128
- 123: 123,
129
- 124: 124,
130
- 125: 125,
131
- 126: 126,
132
- 127: 127,
133
- 1027: 129,
134
- 8225: 135,
135
- 1046: 198,
136
- 8222: 132,
137
- 1047: 199,
138
- 1168: 165,
139
- 1048: 200,
140
- 1113: 154,
141
- 1049: 201,
142
- 1045: 197,
143
- 1050: 202,
144
- 1028: 170,
145
- 160: 160,
146
- 1040: 192,
147
- 1051: 203,
148
- 164: 164,
149
- 166: 166,
150
- 167: 167,
151
- 169: 169,
152
- 171: 171,
153
- 172: 172,
154
- 173: 173,
155
- 174: 174,
156
- 1053: 205,
157
- 176: 176,
158
- 177: 177,
159
- 1114: 156,
160
- 181: 181,
161
- 182: 182,
162
- 183: 183,
163
- 8221: 148,
164
- 187: 187,
165
- 1029: 189,
166
- 1056: 208,
167
- 1057: 209,
168
- 1058: 210,
169
- 8364: 136,
170
- 1112: 188,
171
- 1115: 158,
172
- 1059: 211,
173
- 1060: 212,
174
- 1030: 178,
175
- 1061: 213,
176
- 1062: 214,
177
- 1063: 215,
178
- 1116: 157,
179
- 1064: 216,
180
- 1065: 217,
181
- 1031: 175,
182
- 1066: 218,
183
- 1067: 219,
184
- 1068: 220,
185
- 1069: 221,
186
- 1070: 222,
187
- 1032: 163,
188
- 8226: 149,
189
- 1071: 223,
190
- 1072: 224,
191
- 8482: 153,
192
- 1073: 225,
193
- 8240: 137,
194
- 1118: 162,
195
- 1074: 226,
196
- 1110: 179,
197
- 8230: 133,
198
- 1075: 227,
199
- 1033: 138,
200
- 1076: 228,
201
- 1077: 229,
202
- 8211: 150,
203
- 1078: 230,
204
- 1119: 159,
205
- 1079: 231,
206
- 1042: 194,
207
- 1080: 232,
208
- 1034: 140,
209
- 1025: 168,
210
- 1081: 233,
211
- 1082: 234,
212
- 8212: 151,
213
- 1083: 235,
214
- 1169: 180,
215
- 1084: 236,
216
- 1052: 204,
217
- 1085: 237,
218
- 1035: 142,
219
- 1086: 238,
220
- 1087: 239,
221
- 1088: 240,
222
- 1089: 241,
223
- 1090: 242,
224
- 1036: 141,
225
- 1041: 193,
226
- 1091: 243,
227
- 1092: 244,
228
- 8224: 134,
229
- 1093: 245,
230
- 8470: 185,
231
- 1094: 246,
232
- 1054: 206,
233
- 1095: 247,
234
- 1096: 248,
235
- 8249: 139,
236
- 1097: 249,
237
- 1098: 250,
238
- 1044: 196,
239
- 1099: 251,
240
- 1111: 191,
241
- 1055: 207,
242
- 1100: 252,
243
- 1038: 161,
244
- 8220: 147,
245
- 1101: 253,
246
- 8250: 155,
247
- 1102: 254,
248
- 8216: 145,
249
- 1103: 255,
250
- 1043: 195,
251
- 1105: 184,
252
- 1039: 143,
253
- 1026: 128,
254
- 1106: 144,
255
- 8218: 130,
256
- 1107: 131,
257
- 8217: 146,
258
- 1108: 186,
259
- 1109: 190,
260
- };
261
- function unicodeToWin1251(s) {
262
- const L = [];
263
- for (let i = 0; i < s.length; i++) {
264
- const ord = s.charCodeAt(i);
265
- if (!(ord in DMap))
266
- throw new Error(`Character ${s.charAt(i)} isn't supported by win1251!`);
267
- L.push(String.fromCharCode(DMap[ord]));
268
- }
269
- return L.join('');
270
- }
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:92,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:126,127:127,1027:129,8225:135,1046:198,8222:132,1047:199,1168:165,1048:200,1113:154,1049:201,1045:197,1050:202,1028:170,160:160,1040:192,1051:203,164:164,166:166,167:167,169:169,171:171,172:172,173:173,174:174,1053:205,176:176,177:177,1114:156,181:181,182:182,183:183,8221:148,187:187,1029:189,1056:208,1057:209,1058:210,8364:136,1112:188,1115:158,1059:211,1060:212,1030:178,1061:213,1062:214,1063:215,1116:157,1064:216,1065:217,1031:175,1066:218,1067:219,1068:220,1069:221,1070:222,1032:163,8226:149,1071:223,1072:224,8482:153,1073:225,8240:137,1118:162,1074:226,1110:179,8230:133,1075:227,1033:138,1076:228,1077:229,8211:150,1078:230,1119:159,1079:231,1042:194,1080:232,1034:140,1025:168,1081:233,1082:234,8212:151,1083:235,1169:180,1084:236,1052:204,1085:237,1035:142,1086:238,1087:239,1088:240,1089:241,1090:242,1036:141,1041:193,1091:243,1092:244,8224:134,1093:245,8470:185,1094:246,1054:206,1095:247,1096:248,8249:139,1097:249,1098:250,1044:196,1099:251,1111:191,1055:207,1100:252,1038:161,8220:147,1101:253,8250:155,1102:254,8216:145,1103:255,1043:195,1105:184,1039:143,1026:128,1106:144,8218:130,1107:131,8217:146,1108:186,1109:190};function i(r){const t=[];for(let o=0;o<r.length;o++){const n=r.charCodeAt(o);if(!(n in e))throw new Error(`Character ${r.charAt(o)} isn't supported by win1251!`);t.push(String.fromCharCode(e[n]))}return t.join("")}exports.unicodeToWin1251=i;
2
+ //# sourceMappingURL=encodings.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodings.cjs","sources":["../src/encodings.ts"],"sourcesContent":["import type { AnyObject } from 'yummies/utils/types';\n\nconst DMap: AnyObject = {\n 0: 0,\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n 6: 6,\n 7: 7,\n 8: 8,\n 9: 9,\n 10: 10,\n 11: 11,\n 12: 12,\n 13: 13,\n 14: 14,\n 15: 15,\n 16: 16,\n 17: 17,\n 18: 18,\n 19: 19,\n 20: 20,\n 21: 21,\n 22: 22,\n 23: 23,\n 24: 24,\n 25: 25,\n 26: 26,\n 27: 27,\n 28: 28,\n 29: 29,\n 30: 30,\n 31: 31,\n 32: 32,\n 33: 33,\n 34: 34,\n 35: 35,\n 36: 36,\n 37: 37,\n 38: 38,\n 39: 39,\n 40: 40,\n 41: 41,\n 42: 42,\n 43: 43,\n 44: 44,\n 45: 45,\n 46: 46,\n 47: 47,\n 48: 48,\n 49: 49,\n 50: 50,\n 51: 51,\n 52: 52,\n 53: 53,\n 54: 54,\n 55: 55,\n 56: 56,\n 57: 57,\n 58: 58,\n 59: 59,\n 60: 60,\n 61: 61,\n 62: 62,\n 63: 63,\n 64: 64,\n 65: 65,\n 66: 66,\n 67: 67,\n 68: 68,\n 69: 69,\n 70: 70,\n 71: 71,\n 72: 72,\n 73: 73,\n 74: 74,\n 75: 75,\n 76: 76,\n 77: 77,\n 78: 78,\n 79: 79,\n 80: 80,\n 81: 81,\n 82: 82,\n 83: 83,\n 84: 84,\n 85: 85,\n 86: 86,\n 87: 87,\n 88: 88,\n 89: 89,\n 90: 90,\n 91: 91,\n 92: 92,\n 93: 93,\n 94: 94,\n 95: 95,\n 96: 96,\n 97: 97,\n 98: 98,\n 99: 99,\n 100: 100,\n 101: 101,\n 102: 102,\n 103: 103,\n 104: 104,\n 105: 105,\n 106: 106,\n 107: 107,\n 108: 108,\n 109: 109,\n 110: 110,\n 111: 111,\n 112: 112,\n 113: 113,\n 114: 114,\n 115: 115,\n 116: 116,\n 117: 117,\n 118: 118,\n 119: 119,\n 120: 120,\n 121: 121,\n 122: 122,\n 123: 123,\n 124: 124,\n 125: 125,\n 126: 126,\n 127: 127,\n 1027: 129,\n 8225: 135,\n 1046: 198,\n 8222: 132,\n 1047: 199,\n 1168: 165,\n 1048: 200,\n 1113: 154,\n 1049: 201,\n 1045: 197,\n 1050: 202,\n 1028: 170,\n 160: 160,\n 1040: 192,\n 1051: 203,\n 164: 164,\n 166: 166,\n 167: 167,\n 169: 169,\n 171: 171,\n 172: 172,\n 173: 173,\n 174: 174,\n 1053: 205,\n 176: 176,\n 177: 177,\n 1114: 156,\n 181: 181,\n 182: 182,\n 183: 183,\n 8221: 148,\n 187: 187,\n 1029: 189,\n 1056: 208,\n 1057: 209,\n 1058: 210,\n 8364: 136,\n 1112: 188,\n 1115: 158,\n 1059: 211,\n 1060: 212,\n 1030: 178,\n 1061: 213,\n 1062: 214,\n 1063: 215,\n 1116: 157,\n 1064: 216,\n 1065: 217,\n 1031: 175,\n 1066: 218,\n 1067: 219,\n 1068: 220,\n 1069: 221,\n 1070: 222,\n 1032: 163,\n 8226: 149,\n 1071: 223,\n 1072: 224,\n 8482: 153,\n 1073: 225,\n 8240: 137,\n 1118: 162,\n 1074: 226,\n 1110: 179,\n 8230: 133,\n 1075: 227,\n 1033: 138,\n 1076: 228,\n 1077: 229,\n 8211: 150,\n 1078: 230,\n 1119: 159,\n 1079: 231,\n 1042: 194,\n 1080: 232,\n 1034: 140,\n 1025: 168,\n 1081: 233,\n 1082: 234,\n 8212: 151,\n 1083: 235,\n 1169: 180,\n 1084: 236,\n 1052: 204,\n 1085: 237,\n 1035: 142,\n 1086: 238,\n 1087: 239,\n 1088: 240,\n 1089: 241,\n 1090: 242,\n 1036: 141,\n 1041: 193,\n 1091: 243,\n 1092: 244,\n 8224: 134,\n 1093: 245,\n 8470: 185,\n 1094: 246,\n 1054: 206,\n 1095: 247,\n 1096: 248,\n 8249: 139,\n 1097: 249,\n 1098: 250,\n 1044: 196,\n 1099: 251,\n 1111: 191,\n 1055: 207,\n 1100: 252,\n 1038: 161,\n 8220: 147,\n 1101: 253,\n 8250: 155,\n 1102: 254,\n 8216: 145,\n 1103: 255,\n 1043: 195,\n 1105: 184,\n 1039: 143,\n 1026: 128,\n 1106: 144,\n 8218: 130,\n 1107: 131,\n 8217: 146,\n 1108: 186,\n 1109: 190,\n};\n\nexport function unicodeToWin1251(s: string) {\n const L = [];\n for (let i = 0; i < s.length; i++) {\n const ord = s.charCodeAt(i);\n if (!(ord in DMap))\n throw new Error(`Character ${s.charAt(i)} isn't supported by win1251!`);\n L.push(String.fromCharCode(DMap[ord]));\n }\n return L.join('');\n}\n"],"names":["DMap","unicodeToWin1251","s","L","i","ord"],"mappings":"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"}