@unicom-cloud/utils 0.1.35 → 0.1.36

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 (315) hide show
  1. package/assert/index.js +1 -1
  2. package/assert.js +1 -1
  3. package/case-name/index.js +1 -1
  4. package/caseName.js +1 -1
  5. package/class-name/index.js +1 -1
  6. package/className.js +1 -1
  7. package/clipboard-copy/index.js +1 -1
  8. package/clipboardCopy.js +1 -1
  9. package/constant/address.js +1 -1
  10. package/constant/chineseCharacters.js +1 -1
  11. package/constant/constellations.js +1 -1
  12. package/constant/domain.js +1 -1
  13. package/constant/identity.js +1 -1
  14. package/constant/index.js +19 -21
  15. package/constant/isMobile.js +1 -1
  16. package/constant/keyboardCode.js +1 -1
  17. package/constant/licensePlate.js +1 -1
  18. package/constant/name.js +1 -1
  19. package/constant/platform.js +1 -1
  20. package/constant/protocol.js +1 -1
  21. package/constant/string.js +1 -1
  22. package/constant/ui.js +1 -1
  23. package/constant.js +17 -19
  24. package/content-disposition/index.js +1 -1
  25. package/contentDisposition.js +1 -1
  26. package/cookie/index.js +1 -1
  27. package/cookie/src/api.js +1 -1
  28. package/cookie/src/assign.js +1 -1
  29. package/cookie/src/converter.js +1 -1
  30. package/cookie.js +1 -1
  31. package/date/convertTime.js +1 -1
  32. package/date/convertToDuration.js +1 -1
  33. package/date/index.js +1 -1
  34. package/date.js +1 -1
  35. package/decimal/decimal.js +1 -1
  36. package/decimal/index.js +1 -1
  37. package/decimal.js +1 -1
  38. package/dom-helpers/activeElement.js +1 -1
  39. package/dom-helpers/addClass.js +1 -1
  40. package/dom-helpers/addEventListener.js +1 -1
  41. package/dom-helpers/animate.js +1 -1
  42. package/dom-helpers/animationFrame.js +1 -1
  43. package/dom-helpers/attribute.js +1 -1
  44. package/dom-helpers/camelize.js +1 -1
  45. package/dom-helpers/camelizeStyle.js +1 -1
  46. package/dom-helpers/canUseDOM.js +1 -1
  47. package/dom-helpers/childElements.js +1 -1
  48. package/dom-helpers/childNodes.js +1 -1
  49. package/dom-helpers/clear.js +1 -1
  50. package/dom-helpers/closest.js +1 -1
  51. package/dom-helpers/collectElements.js +1 -1
  52. package/dom-helpers/collectSiblings.js +1 -1
  53. package/dom-helpers/contains.js +1 -1
  54. package/dom-helpers/css.js +1 -1
  55. package/dom-helpers/filterEventHandler.js +1 -1
  56. package/dom-helpers/getComputedStyle.js +1 -1
  57. package/dom-helpers/getElementCoordinates.js +1 -1
  58. package/dom-helpers/getScrollAccessor.js +1 -1
  59. package/dom-helpers/hasClass.js +1 -1
  60. package/dom-helpers/height.js +1 -1
  61. package/dom-helpers/hyphenate.js +1 -1
  62. package/dom-helpers/hyphenateStyle.js +1 -1
  63. package/dom-helpers/index.js +1 -1
  64. package/dom-helpers/insertAfter.js +1 -1
  65. package/dom-helpers/isDocument.js +1 -1
  66. package/dom-helpers/isInput.js +1 -1
  67. package/dom-helpers/isTransform.js +1 -1
  68. package/dom-helpers/isVisible.js +1 -1
  69. package/dom-helpers/isWindow.js +1 -1
  70. package/dom-helpers/listen.js +1 -1
  71. package/dom-helpers/matches.js +1 -1
  72. package/dom-helpers/nextUntil.js +1 -1
  73. package/dom-helpers/offset.js +1 -1
  74. package/dom-helpers/offsetParent.js +1 -1
  75. package/dom-helpers/ownerDocument.js +1 -1
  76. package/dom-helpers/ownerWindow.js +1 -1
  77. package/dom-helpers/parents.js +1 -1
  78. package/dom-helpers/position.js +1 -1
  79. package/dom-helpers/prepend.js +1 -1
  80. package/dom-helpers/querySelectorAll.js +1 -1
  81. package/dom-helpers/reflow.js +1 -1
  82. package/dom-helpers/remove.js +1 -1
  83. package/dom-helpers/removeClass.js +1 -1
  84. package/dom-helpers/removeEventListener.js +1 -1
  85. package/dom-helpers/scrollLeft.js +1 -1
  86. package/dom-helpers/scrollParent.js +1 -1
  87. package/dom-helpers/scrollTo.js +1 -1
  88. package/dom-helpers/scrollTop.js +1 -1
  89. package/dom-helpers/scrollbarSize.js +1 -1
  90. package/dom-helpers/siblings.js +1 -1
  91. package/dom-helpers/text.js +1 -1
  92. package/dom-helpers/toggleClass.js +1 -1
  93. package/dom-helpers/transitionEnd.js +1 -1
  94. package/dom-helpers/triggerEvent.js +1 -1
  95. package/dom-helpers/types.js +1 -1
  96. package/dom-helpers/width.js +1 -1
  97. package/domHelpers.js +1 -1
  98. package/emitter/index.js +1 -1
  99. package/emitter/src/index.js +18 -18
  100. package/emitter.js +1 -1
  101. package/emoji/emoji.js +52077 -0
  102. package/emoji/emojis.js +1920 -0
  103. package/emoji/index.js +35 -0
  104. package/emoji.js +11 -0
  105. package/escape/index.js +1 -1
  106. package/escape.js +1 -1
  107. package/file/fileRead.js +1 -1
  108. package/file/fileToDataURL.js +1 -1
  109. package/file/index.js +1 -1
  110. package/file/saveAs.js +1 -1
  111. package/file.js +1 -1
  112. package/function/index.js +1 -1
  113. package/function.js +1 -1
  114. package/idb/index.js +1 -1
  115. package/idb.js +1 -1
  116. package/index.js +1 -1
  117. package/invariant/index.js +1 -1
  118. package/invariant.js +1 -1
  119. package/is/index.js +1 -1
  120. package/is/lib/isAscii.js +1 -1
  121. package/is/lib/isBase64.js +1 -1
  122. package/is/lib/isChinese.js +1 -1
  123. package/is/lib/isDataURI.js +1 -1
  124. package/is/lib/isEmail.js +1 -1
  125. package/is/lib/isFQDN.js +1 -1
  126. package/is/lib/isFullWidth.js +1 -1
  127. package/is/lib/isHSL.js +1 -1
  128. package/is/lib/isHalfWidth.js +1 -1
  129. package/is/lib/isHash.js +1 -1
  130. package/is/lib/isHexColor.js +1 -1
  131. package/is/lib/isIMEI.js +1 -1
  132. package/is/lib/isIP.js +1 -1
  133. package/is/lib/isIPRange.js +1 -1
  134. package/is/lib/isIdentityCard.js +1 -1
  135. package/is/lib/isJWT.js +1 -1
  136. package/is/lib/isMACAddress.js +1 -1
  137. package/is/lib/isMD5.js +1 -1
  138. package/is/lib/isMimeType.js +1 -1
  139. package/is/lib/isMobilePhone.js +1 -1
  140. package/is/lib/isPort.js +1 -1
  141. package/is/lib/isRgbColor.js +1 -1
  142. package/is/lib/isSemVer.js +1 -1
  143. package/is/lib/isSlug.js +1 -1
  144. package/is/lib/isStrongPassword.js +1 -1
  145. package/is/lib/isURL.js +1 -1
  146. package/is/lib/isUUID.js +1 -1
  147. package/is/lib/isVariableWidth.js +1 -1
  148. package/is.js +1 -1
  149. package/lunar/index.js +1 -1
  150. package/lunar/lib/Holiday.js +1 -1
  151. package/lunar/lib/HolidayUtil.js +1 -1
  152. package/lunar/lib/I18n.js +1 -1
  153. package/lunar/lib/JieQi.js +1 -1
  154. package/lunar/lib/Lunar.js +1 -1
  155. package/lunar/lib/LunarMonth.js +1 -1
  156. package/lunar/lib/LunarTime.js +1 -1
  157. package/lunar/lib/LunarUtil.js +1 -1
  158. package/lunar/lib/LunarYear.js +1 -1
  159. package/lunar/lib/ShouXingUtil.js +1 -1
  160. package/lunar/lib/Solar.js +1 -1
  161. package/lunar/lib/SolarHalfYear.js +1 -1
  162. package/lunar/lib/SolarMonth.js +1 -1
  163. package/lunar/lib/SolarSeason.js +1 -1
  164. package/lunar/lib/SolarUtil.js +1 -1
  165. package/lunar/lib/SolarWeek.js +1 -1
  166. package/lunar/lib/SolarYear.js +1 -1
  167. package/lunar/lib/index.js +1 -1
  168. package/lunar.js +1 -1
  169. package/math/index.js +1 -1
  170. package/math.js +1 -1
  171. package/md5/index.js +1 -1
  172. package/md5.js +1 -1
  173. package/mock/MockWebSocket.js +1 -1
  174. package/mock/MockXMLHttpRequest.js +1 -1
  175. package/mock/index.js +1 -1
  176. package/mock.js +1 -1
  177. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  178. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  179. package/normalize-wheel/index.js +1 -1
  180. package/normalize-wheel/isEventSupported.js +1 -1
  181. package/normalizeWheel.js +1 -1
  182. package/number-to-chinese/index.js +1 -1
  183. package/numberToChinese.js +1 -1
  184. package/nzh/cn.js +1 -1
  185. package/nzh/hk.js +1 -1
  186. package/nzh/index.js +1 -1
  187. package/nzh/nzh.js +1 -1
  188. package/nzh/src/autoGet.js +1 -1
  189. package/nzh/src/index.js +1 -1
  190. package/nzh/src/langs/cn_b.js +1 -1
  191. package/nzh/src/langs/cn_s.js +1 -1
  192. package/nzh/src/langs/hk_b.js +1 -1
  193. package/nzh/src/langs/hk_s.js +1 -1
  194. package/nzh/src/utils.js +1 -1
  195. package/nzh.js +1 -1
  196. package/object/index.js +1 -1
  197. package/object.js +1 -1
  198. package/package.json +1 -1
  199. package/pinyin/index.js +1 -1
  200. package/pinyin/simplified.js +1 -1
  201. package/pinyin/src/core.js +1 -1
  202. package/pinyin/src/simplified.js +1 -1
  203. package/pinyin/src/simplified_dict.js +1 -1
  204. package/pinyin/src/traditional.js +1 -1
  205. package/pinyin/src/traditional_dict.js +1 -1
  206. package/pinyin/traditional.js +1 -1
  207. package/pinyin.js +1 -1
  208. package/query-string/base.js +2 -2
  209. package/query-string/index.js +1 -1
  210. package/query-string/splitOnFirst.js +1 -1
  211. package/queryString.js +1 -1
  212. package/random/address.js +1 -1
  213. package/random/constellation.js +1 -1
  214. package/random/image.js +1 -1
  215. package/random/index.js +1 -1
  216. package/random/licensePlate.js +1 -1
  217. package/random/name.js +1 -1
  218. package/random/number.js +1 -1
  219. package/random/text.js +1 -1
  220. package/random/time.js +1 -1
  221. package/random/web.js +1 -1
  222. package/random.js +1 -1
  223. package/screenfull/index.js +1 -1
  224. package/screenfull.js +1 -1
  225. package/sleep/index.js +1 -1
  226. package/sleep.js +1 -1
  227. package/snapdom/index.js +1 -1
  228. package/snapdom/src/api/preCache.js +1 -1
  229. package/snapdom/src/api/snapdom.js +2 -2
  230. package/snapdom/src/core/cache.js +1 -1
  231. package/snapdom/src/core/capture.js +1 -1
  232. package/snapdom/src/core/clone.js +1 -1
  233. package/snapdom/src/core/context.js +1 -1
  234. package/snapdom/src/core/plugins.js +1 -1
  235. package/snapdom/src/core/prepare.js +1 -1
  236. package/snapdom/src/exporters/download.js +1 -1
  237. package/snapdom/src/exporters/toBlob.js +1 -1
  238. package/snapdom/src/exporters/toCanvas.js +1 -1
  239. package/snapdom/src/exporters/toImg.js +1 -1
  240. package/snapdom/src/modules/CSSVar.js +1 -1
  241. package/snapdom/src/modules/background.js +1 -1
  242. package/snapdom/src/modules/changeCSS.js +1 -1
  243. package/snapdom/src/modules/counter.js +1 -1
  244. package/snapdom/src/modules/fonts.js +2 -2
  245. package/snapdom/src/modules/iconFonts.js +1 -1
  246. package/snapdom/src/modules/images.js +1 -1
  247. package/snapdom/src/modules/lineClamp.js +1 -1
  248. package/snapdom/src/modules/pseudo.js +1 -1
  249. package/snapdom/src/modules/rasterize.js +1 -1
  250. package/snapdom/src/modules/snapFetch.js +1 -1
  251. package/snapdom/src/modules/styles.js +1 -1
  252. package/snapdom/src/modules/svgDefs.js +1 -1
  253. package/snapdom/src/utils/browser.js +1 -1
  254. package/snapdom/src/utils/capture.helpers.js +1 -1
  255. package/snapdom/src/utils/clone.helpers.js +1 -1
  256. package/snapdom/src/utils/css.js +1 -1
  257. package/snapdom/src/utils/helpers.js +1 -1
  258. package/snapdom/src/utils/image.js +1 -1
  259. package/snapdom/src/utils/prepare.helpers.js +1 -1
  260. package/snapdom/src/utils/transforms.helpers.js +1 -1
  261. package/snapdom.js +1 -1
  262. package/string/chars.js +660 -0
  263. package/string/index.js +1 -1
  264. package/string.js +1 -1
  265. package/tinycolor/index.js +1 -1
  266. package/tinycolor/src/conversion.js +1 -1
  267. package/tinycolor/src/css-color-names.js +1 -1
  268. package/tinycolor/src/format-input.js +1 -1
  269. package/tinycolor/src/from-ratio.js +1 -1
  270. package/tinycolor/src/index.js +1 -1
  271. package/tinycolor/src/random.js +1 -1
  272. package/tinycolor/src/readability.js +1 -1
  273. package/tinycolor/src/to-ms-filter.js +1 -1
  274. package/tinycolor/src/utils.js +1 -1
  275. package/tinycolor.js +1 -1
  276. package/tree/index.js +1 -1
  277. package/tree/search/index.js +1 -1
  278. package/tree.js +1 -1
  279. package/tween/index.js +1 -1
  280. package/tween/src/easing.js +1 -1
  281. package/tween/src/tween.js +1 -1
  282. package/tween.js +1 -1
  283. package/types/constant/index.d.ts +0 -1
  284. package/types/emoji/emoji.d.ts +196 -0
  285. package/types/emoji/emojis.d.ts +2 -0
  286. package/types/{constant/emoji.d.ts → emoji/index.d.ts} +4 -0
  287. package/types/normalize-wheel/index.d.ts +1 -1
  288. package/types/snapdom/src/api/preCache.d.ts +1 -1
  289. package/types/string/chars.d.ts +2 -0
  290. package/ui-color/compareColorByRange.js +1 -1
  291. package/ui-color/index.js +1 -1
  292. package/uiColor.js +1 -1
  293. package/url-toolkit/index.js +1 -1
  294. package/url-toolkit/src/url-toolkit.js +1 -1
  295. package/urlToolkit.js +1 -1
  296. package/validate/index.js +1 -1
  297. package/validate/src/index.js +1 -1
  298. package/validate/src/locale/en-US.js +1 -1
  299. package/validate/src/locale/index.js +1 -1
  300. package/validate/src/locale/zh-CN.js +1 -1
  301. package/validate/src/rules/array.js +1 -1
  302. package/validate/src/rules/base.js +1 -1
  303. package/validate/src/rules/boolean.js +1 -1
  304. package/validate/src/rules/custom.js +1 -1
  305. package/validate/src/rules/number.js +1 -1
  306. package/validate/src/rules/object.js +1 -1
  307. package/validate/src/rules/string.js +1 -1
  308. package/validate/src/rules/type.js +1 -1
  309. package/validate.js +1 -1
  310. package/version/index.js +1 -1
  311. package/version.js +1 -1
  312. package/xlsx/index.js +1 -1
  313. package/xlsx/xlsx.js +29 -76
  314. package/xlsx.js +1 -1
  315. package/constant/emoji.js +0 -32
package/xlsx/xlsx.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-22 09:15:24 */
1
+ /* 2026-01-04 16:21:26 */
2
2
  import { saveAs as Ua } from "../file/saveAs.js";
3
3
  const qn = {};
4
4
  qn.version = "0.20.3";
@@ -1856,10 +1856,8 @@ var Te = (function() {
1856
1856
  function M(w, A) {
1857
1857
  const y = A || {};
1858
1858
  if (y.fileType == "mad") return Io(w, y);
1859
- switch (N(w), y.fileType) {
1860
- case "zip":
1861
- return Eo(w, y);
1862
- }
1859
+ if (N(w), y.fileType === "zip")
1860
+ return Eo(w, y);
1863
1861
  const b = (function(le) {
1864
1862
  let fe = 0, _e = 0;
1865
1863
  for (let Gr = 0; Gr < le.FileIndex.length; ++Gr) {
@@ -5392,12 +5390,7 @@ function Bu(e, r) {
5392
5390
  }).forEach(function(n) {
5393
5391
  if (e[n[1]] == null) return;
5394
5392
  let s = r && r.Props && r.Props[n[1]] != null ? r.Props[n[1]] : e[n[1]];
5395
- switch (n[2]) {
5396
- case "date":
5397
- s = new Date(s).toISOString().replace(/\.\d*Z/, "Z");
5398
- break;
5399
- }
5400
- typeof s == "number" ? s = String(s) : s === !0 || s === !1 ? s = s ? "1" : "0" : s instanceof Date && (s = new Date(s).toISOString().replace(/\.\d*Z/, "")), t.push(Ct(M0[n[1]] || n[1], s));
5393
+ n[2] === "date" && (s = new Date(s).toISOString().replace(/\.\d*Z/, "Z")), typeof s == "number" ? s = String(s) : s === !0 || s === !1 ? s = s ? "1" : "0" : s instanceof Date && (s = new Date(s).toISOString().replace(/\.\d*Z/, "")), t.push(Ct(M0[n[1]] || n[1], s));
5401
5394
  }), ne("DocumentProperties", t.join(""), { xmlns: _t.o });
5402
5395
  }
5403
5396
  function Uu(e, r) {
@@ -7327,11 +7320,7 @@ const z1 = [2, 3, 48, 49, 131, 139, 140, 245], B0 = (function() {
7327
7320
  break;
7328
7321
  /* window */
7329
7322
  case "P":
7330
- switch (ye[1].charAt(0)) {
7331
- case "P":
7332
- E.push(Ce.slice(3).replace(/;;/g, ";"));
7333
- break;
7334
- }
7323
+ ye[1].charAt(0) === "P" && E.push(Ce.slice(3).replace(/;;/g, ";"));
7335
7324
  break;
7336
7325
  case "NN":
7337
7326
  {
@@ -7714,15 +7703,7 @@ EOD`;
7714
7703
  var T = _[_.length - 1];
7715
7704
  /* falls through */
7716
7705
  case "vtc":
7717
- switch (_[3]) {
7718
- case "nl":
7719
- m[g][p] = !!+_[4];
7720
- break;
7721
- default:
7722
- m[g][p] = _[_.length - 1].charAt(0) == "#" ? { t: "e", v: At[_[_.length - 1]] } : +_[4];
7723
- break;
7724
- }
7725
- _[2] == "vtf" && (m[g][p] = [m[g][p], T]);
7706
+ _[3] === "nl" ? m[g][p] = !!+_[4] : m[g][p] = _[_.length - 1].charAt(0) == "#" ? { t: "e", v: At[_[_.length - 1]] } : +_[4], _[2] == "vtf" && (m[g][p] = [m[g][p], T]);
7726
7707
  }
7727
7708
  }
7728
7709
  return d && d.sheetRows && (m = m.slice(0, d.sheetRows)), m;
@@ -11133,7 +11114,7 @@ function Bx(e, r, t) {
11133
11114
  let n = 0;
11134
11115
  (lc(e, "(?:shape|rect)") || []).forEach(function(s) {
11135
11116
  let a = "", i = !0, c = -1, f = -1, o = -1;
11136
- switch (s.replace(Rt, function(u, d) {
11117
+ if (s.replace(Rt, function(u, d) {
11137
11118
  const h = de(u);
11138
11119
  switch (ir(h[0])) {
11139
11120
  case "<ClientData":
@@ -11159,14 +11140,12 @@ function Bx(e, r, t) {
11159
11140
  break;
11160
11141
  }
11161
11142
  return "";
11162
- }), a) {
11163
- case "Note":
11164
- var l = hs(
11165
- r,
11166
- f >= 0 && o >= 0 ? Me({ r: f, c: o }) : t[n].ref
11167
- );
11168
- l.c && (l.c.hidden = i), ++n;
11169
- break;
11143
+ }), a === "Note") {
11144
+ var l = hs(
11145
+ r,
11146
+ f >= 0 && o >= 0 ? Me({ r: f, c: o }) : t[n].ref
11147
+ );
11148
+ l.c && (l.c.hidden = i), ++n;
11170
11149
  }
11171
11150
  });
11172
11151
  }
@@ -12197,16 +12176,7 @@ function x2(e) {
12197
12176
  const n = e[t], s = [];
12198
12177
  for (let a = 0; a < n.length; ++a) {
12199
12178
  const i = n[a];
12200
- if (i)
12201
- switch (i[0]) {
12202
- // TODO: handle embedded quotes
12203
- case 2:
12204
- s.push('"' + i[1].replace(/"/g, '""') + '"');
12205
- break;
12206
- default:
12207
- s.push(i[1]);
12208
- }
12209
- else s.push("");
12179
+ i ? i[0] === 2 ? s.push('"' + i[1].replace(/"/g, '""') + '"') : s.push(i[1]) : s.push("");
12210
12180
  }
12211
12181
  r.push(s.join(","));
12212
12182
  }
@@ -12246,7 +12216,6 @@ function bf(e, r, t) {
12246
12216
  return s = n[1] == -1 ? "#REF" : e.SheetNames[n[1]], n[1] == n[2] ? s : s + ":" + e.SheetNames[n[2]];
12247
12217
  case 358:
12248
12218
  return t.SID != null ? e.SheetNames[t.SID] : "SH33TJSSAME" + e[n[0]][0];
12249
- case 355:
12250
12219
  /* 'BrtSupBookSrc' */
12251
12220
  /* falls through */
12252
12221
  default:
@@ -24133,11 +24102,7 @@ function ro(e, r, t) {
24133
24102
  break;
24134
24103
  // 9.1.12 <table:table-columns>
24135
24104
  case "null-date":
24136
- switch (c = de(x[0], !1), c["date-value"]) {
24137
- case "1904-01-01":
24138
- Se.WBProps.date1904 = !0;
24139
- break;
24140
- }
24105
+ c = de(x[0], !1), c["date-value"] === "1904-01-01" && (Se.WBProps.date1904 = !0);
24141
24106
  break;
24142
24107
  case "graphic-properties":
24143
24108
  break;
@@ -27205,19 +27170,13 @@ function Ow(e, r) {
27205
27170
  e.Props.Worksheets = e.Props.SheetNames.length, Ie(a, i, Wc(e.Props)), s.extprops.push(i), $e(r.rels, 3, i, Le.EXT_PROPS), e.Custprops !== e.Props && tt(e.Custprops || {}).length > 0 && (i = "docProps/custom.xml", Ie(a, i, Hc(e.Custprops)), s.custprops.push(i), $e(r.rels, 4, i, Le.CUST_PROPS));
27206
27171
  const f = ["SheetJ5"];
27207
27172
  for (r.tcid = 0, c = 1; c <= e.SheetNames.length; ++c) {
27208
- const u = { "!id": {} }, d = e.Sheets[e.SheetNames[c - 1]];
27209
- switch ((d || {})["!type"] || "sheet") {
27210
- case "chart":
27211
- /* falls through */
27212
- default:
27213
- i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, Rg(c - 1, r, e, u)), s.sheets.push(i), $e(
27214
- r.wbrels,
27215
- -1,
27216
- "worksheets/sheet" + c + "." + t,
27217
- Le.WS[0]
27218
- );
27219
- }
27220
- if (d) {
27173
+ const u = { "!id": {} }, d = e.Sheets[e.SheetNames[c - 1]], h = (d || {})["!type"] || "sheet";
27174
+ if (i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, Rg(c - 1, r, e, u)), s.sheets.push(i), $e(
27175
+ r.wbrels,
27176
+ -1,
27177
+ "worksheets/sheet" + c + "." + t,
27178
+ Le.WS[0]
27179
+ ), d) {
27221
27180
  const g = d["!comments"];
27222
27181
  let p = !1, x = "";
27223
27182
  if (g && g.length > 0) {
@@ -27267,19 +27226,13 @@ function lo(e, r) {
27267
27226
  e.Props.Worksheets = e.Props.SheetNames.length, Ie(a, i, Wc(e.Props)), s.extprops.push(i), $e(r.rels, 3, i, Le.EXT_PROPS), e.Custprops !== e.Props && tt(e.Custprops || {}).length > 0 && (i = "docProps/custom.xml", Ie(a, i, Hc(e.Custprops)), s.custprops.push(i), $e(r.rels, 4, i, Le.CUST_PROPS));
27268
27227
  const f = ["SheetJ5"];
27269
27228
  for (r.tcid = 0, c = 1; c <= e.SheetNames.length; ++c) {
27270
- const l = { "!id": {} }, u = e.Sheets[e.SheetNames[c - 1]];
27271
- switch ((u || {})["!type"] || "sheet") {
27272
- case "chart":
27273
- /* falls through */
27274
- default:
27275
- i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, mp(c - 1, r, e, l)), s.sheets.push(i), $e(
27276
- r.wbrels,
27277
- -1,
27278
- "worksheets/sheet" + c + "." + t,
27279
- Le.WS[0]
27280
- );
27281
- }
27282
- if (u) {
27229
+ const l = { "!id": {} }, u = e.Sheets[e.SheetNames[c - 1]], d = (u || {})["!type"] || "sheet";
27230
+ if (i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, mp(c - 1, r, e, l)), s.sheets.push(i), $e(
27231
+ r.wbrels,
27232
+ -1,
27233
+ "worksheets/sheet" + c + "." + t,
27234
+ Le.WS[0]
27235
+ ), u) {
27283
27236
  const h = u["!comments"];
27284
27237
  let g = !1, p = "";
27285
27238
  if (h && h.length > 0) {
package/xlsx.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-22 09:15:24 */
1
+ /* 2026-01-04 16:21:26 */
2
2
  import { CFB as r, SSF as t, default as l, parse_xlscfb as s, parse_zip as a, read as F, readFile as w, readFile as S, set_cptable as c, set_fs as d, stream as p, utils as f, version as n, write as X, writeFile as _, writeFileAsync as o, writeFile as y, writeFileXLSX as b, writeXLSX as m } from "./xlsx/xlsx.js";
3
3
  export {
4
4
  r as CFB,
package/constant/emoji.js DELETED
@@ -1,32 +0,0 @@
1
- /* 2025-12-22 09:15:24 */
2
- function i() {
3
- const t = [];
4
- for (let e = 127744; e <= 129791; e++)
5
- if (!(e >= 55296 && e <= 57343))
6
- try {
7
- const n = String.fromCodePoint(e);
8
- o(n) && t.push({
9
- emoji: n,
10
- code: e.toString(16).toUpperCase().padStart(4, "0"),
11
- name: r(n)
12
- });
13
- } catch {
14
- }
15
- return t;
16
- }
17
- function r(t) {
18
- try {
19
- const n = new Intl.Segmenter("en", { granularity: "grapheme" }).segment(t);
20
- return Array.from(n)[0]?.segment || t;
21
- } catch {
22
- return t;
23
- }
24
- }
25
- function o(t) {
26
- return /\p{Emoji}/u.test(t);
27
- }
28
- export {
29
- i as getEmojiList,
30
- r as getEmojiName,
31
- o as isEmoji
32
- };