asterui 0.12.0 → 0.12.2

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 (299) hide show
  1. package/README.md +1 -1
  2. package/dist/components/Calendar.d.ts +23 -0
  3. package/dist/components/Checkbox.d.ts +10 -0
  4. package/dist/components/Dock.d.ts +38 -0
  5. package/dist/components/Form.d.ts +27 -2
  6. package/dist/components/Mask.d.ts +14 -0
  7. package/dist/components/Radio.d.ts +7 -1
  8. package/dist/components/Status.d.ts +18 -0
  9. package/dist/index.css +1 -0
  10. package/dist/index.d.ts +12 -3
  11. package/dist/index.js +203 -192
  12. package/dist/index.js.map +1 -1
  13. package/dist/index10.js +85 -59
  14. package/dist/index10.js.map +1 -1
  15. package/dist/index100.js +44 -11
  16. package/dist/index100.js.map +1 -1
  17. package/dist/index101.js +11 -29
  18. package/dist/index101.js.map +1 -1
  19. package/dist/index102.js +13 -16
  20. package/dist/index102.js.map +1 -1
  21. package/dist/index103.js +7 -10792
  22. package/dist/index103.js.map +1 -1
  23. package/dist/index104.js +13 -5
  24. package/dist/index104.js.map +1 -1
  25. package/dist/index105.js +30 -41
  26. package/dist/index105.js.map +1 -1
  27. package/dist/index106.js +18 -2
  28. package/dist/index106.js.map +1 -1
  29. package/dist/index107.js +174 -7
  30. package/dist/index107.js.map +1 -1
  31. package/dist/index109.js +10788 -25
  32. package/dist/index109.js.map +1 -1
  33. package/dist/index110.js +5 -30
  34. package/dist/index110.js.map +1 -1
  35. package/dist/index111.js +42 -2
  36. package/dist/index111.js.map +1 -1
  37. package/dist/index112.js +2 -72
  38. package/dist/index112.js.map +1 -1
  39. package/dist/index113.js +6 -38
  40. package/dist/index113.js.map +1 -1
  41. package/dist/index114.js +150 -24
  42. package/dist/index114.js.map +1 -1
  43. package/dist/index115.js +29 -20
  44. package/dist/index115.js.map +1 -1
  45. package/dist/index116.js +29 -23
  46. package/dist/index116.js.map +1 -1
  47. package/dist/index117.js +2 -20
  48. package/dist/index117.js.map +1 -1
  49. package/dist/index118.js +71 -99
  50. package/dist/index118.js.map +1 -1
  51. package/dist/index119.js +37 -358
  52. package/dist/index119.js.map +1 -1
  53. package/dist/index120.js +23 -22
  54. package/dist/index120.js.map +1 -1
  55. package/dist/index121.js +20 -72
  56. package/dist/index121.js.map +1 -1
  57. package/dist/index122.js +23 -15
  58. package/dist/index122.js.map +1 -1
  59. package/dist/index123.js +19 -65
  60. package/dist/index123.js.map +1 -1
  61. package/dist/index124.js +92 -136
  62. package/dist/index124.js.map +1 -1
  63. package/dist/index125.js +360 -2
  64. package/dist/index125.js.map +1 -1
  65. package/dist/index126.js +23 -54
  66. package/dist/index126.js.map +1 -1
  67. package/dist/index127.js +73 -2
  68. package/dist/index127.js.map +1 -1
  69. package/dist/index128.js +16 -2
  70. package/dist/index128.js.map +1 -1
  71. package/dist/index129.js +66 -2
  72. package/dist/index129.js.map +1 -1
  73. package/dist/index13.js +35 -95
  74. package/dist/index13.js.map +1 -1
  75. package/dist/index130.js +144 -2
  76. package/dist/index130.js.map +1 -1
  77. package/dist/index131.js +2 -2
  78. package/dist/index132.js +56 -2
  79. package/dist/index132.js.map +1 -1
  80. package/dist/index135.js +2 -32
  81. package/dist/index135.js.map +1 -1
  82. package/dist/index137.js +2 -8
  83. package/dist/index137.js.map +1 -1
  84. package/dist/index138.js +2 -2
  85. package/dist/index139.js +2 -2
  86. package/dist/index14.js +90 -153
  87. package/dist/index14.js.map +1 -1
  88. package/dist/index140.js +2 -21
  89. package/dist/index140.js.map +1 -1
  90. package/dist/index141.js +32 -2
  91. package/dist/index141.js.map +1 -1
  92. package/dist/index142.js +2 -24
  93. package/dist/index142.js.map +1 -1
  94. package/dist/index143.js +7 -70
  95. package/dist/index143.js.map +1 -1
  96. package/dist/index144.js +2 -21
  97. package/dist/index144.js.map +1 -1
  98. package/dist/index145.js +2 -34
  99. package/dist/index145.js.map +1 -1
  100. package/dist/index146.js +20 -69
  101. package/dist/index146.js.map +1 -1
  102. package/dist/index147.js +2 -2
  103. package/dist/index148.js +23 -21
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +71 -2
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index15.js +154 -146
  108. package/dist/index15.js.map +1 -1
  109. package/dist/index150.js +21 -2
  110. package/dist/index150.js.map +1 -1
  111. package/dist/index151.js +34 -2
  112. package/dist/index151.js.map +1 -1
  113. package/dist/index152.js +70 -2
  114. package/dist/index152.js.map +1 -1
  115. package/dist/index153.js +2 -4
  116. package/dist/index153.js.map +1 -1
  117. package/dist/index154.js +25 -0
  118. package/dist/index154.js.map +1 -0
  119. package/dist/index155.js +5 -0
  120. package/dist/index155.js.map +1 -0
  121. package/dist/index156.js +5 -0
  122. package/dist/index156.js.map +1 -0
  123. package/dist/index157.js +5 -0
  124. package/dist/index157.js.map +1 -0
  125. package/dist/index158.js +5 -0
  126. package/dist/index158.js.map +1 -0
  127. package/dist/index159.js +7 -0
  128. package/dist/index159.js.map +1 -0
  129. package/dist/index16.js +150 -5
  130. package/dist/index16.js.map +1 -1
  131. package/dist/index17.js +5 -71
  132. package/dist/index17.js.map +1 -1
  133. package/dist/index18.js +71 -17
  134. package/dist/index18.js.map +1 -1
  135. package/dist/index19.js +15 -96
  136. package/dist/index19.js.map +1 -1
  137. package/dist/index20.js +89 -105
  138. package/dist/index20.js.map +1 -1
  139. package/dist/index21.js +107 -177
  140. package/dist/index21.js.map +1 -1
  141. package/dist/index22.js +181 -107
  142. package/dist/index22.js.map +1 -1
  143. package/dist/index23.js +110 -19
  144. package/dist/index23.js.map +1 -1
  145. package/dist/index24.js +19 -32
  146. package/dist/index24.js.map +1 -1
  147. package/dist/index25.js +42 -40
  148. package/dist/index25.js.map +1 -1
  149. package/dist/index26.js +31 -11
  150. package/dist/index26.js.map +1 -1
  151. package/dist/index27.js +41 -33
  152. package/dist/index27.js.map +1 -1
  153. package/dist/index28.js +12 -63
  154. package/dist/index28.js.map +1 -1
  155. package/dist/index29.js +33 -80
  156. package/dist/index29.js.map +1 -1
  157. package/dist/index30.js +63 -18
  158. package/dist/index30.js.map +1 -1
  159. package/dist/index31.js +78 -159
  160. package/dist/index31.js.map +1 -1
  161. package/dist/index32.js +16 -1080
  162. package/dist/index32.js.map +1 -1
  163. package/dist/index33.js +218 -16
  164. package/dist/index33.js.map +1 -1
  165. package/dist/index34.js +1081 -121
  166. package/dist/index34.js.map +1 -1
  167. package/dist/index35.js +17 -39
  168. package/dist/index35.js.map +1 -1
  169. package/dist/index36.js +121 -190
  170. package/dist/index36.js.map +1 -1
  171. package/dist/index37.js +37 -94
  172. package/dist/index37.js.map +1 -1
  173. package/dist/index38.js +186 -157
  174. package/dist/index38.js.map +1 -1
  175. package/dist/index39.js +89 -138
  176. package/dist/index39.js.map +1 -1
  177. package/dist/index40.js +161 -14
  178. package/dist/index40.js.map +1 -1
  179. package/dist/index41.js +146 -18
  180. package/dist/index41.js.map +1 -1
  181. package/dist/index42.js +14 -20
  182. package/dist/index42.js.map +1 -1
  183. package/dist/index43.js +15 -116
  184. package/dist/index43.js.map +1 -1
  185. package/dist/index44.js +18 -10
  186. package/dist/index44.js.map +1 -1
  187. package/dist/index45.js +119 -35
  188. package/dist/index45.js.map +1 -1
  189. package/dist/index46.js +12 -115
  190. package/dist/index46.js.map +1 -1
  191. package/dist/index47.js +33 -174
  192. package/dist/index47.js.map +1 -1
  193. package/dist/index48.js +10 -147
  194. package/dist/index48.js.map +1 -1
  195. package/dist/index49.js +116 -12
  196. package/dist/index49.js.map +1 -1
  197. package/dist/index50.js +176 -22
  198. package/dist/index50.js.map +1 -1
  199. package/dist/index51.js +147 -14
  200. package/dist/index51.js.map +1 -1
  201. package/dist/index52.js +10 -5
  202. package/dist/index52.js.map +1 -1
  203. package/dist/index53.js +21 -265
  204. package/dist/index53.js.map +1 -1
  205. package/dist/index54.js +10 -13
  206. package/dist/index54.js.map +1 -1
  207. package/dist/index55.js +7 -122
  208. package/dist/index55.js.map +1 -1
  209. package/dist/index56.js +262 -106
  210. package/dist/index56.js.map +1 -1
  211. package/dist/index57.js +14 -167
  212. package/dist/index57.js.map +1 -1
  213. package/dist/index58.js +121 -31
  214. package/dist/index58.js.map +1 -1
  215. package/dist/index59.js +107 -119
  216. package/dist/index59.js.map +1 -1
  217. package/dist/index60.js +161 -77
  218. package/dist/index60.js.map +1 -1
  219. package/dist/index61.js +31 -19
  220. package/dist/index61.js.map +1 -1
  221. package/dist/index62.js +117 -69
  222. package/dist/index62.js.map +1 -1
  223. package/dist/index63.js +82 -53
  224. package/dist/index63.js.map +1 -1
  225. package/dist/index64.js +19 -44
  226. package/dist/index64.js.map +1 -1
  227. package/dist/index65.js +70 -48
  228. package/dist/index65.js.map +1 -1
  229. package/dist/index66.js +55 -60
  230. package/dist/index66.js.map +1 -1
  231. package/dist/index67.js +39 -101
  232. package/dist/index67.js.map +1 -1
  233. package/dist/index68.js +52 -41
  234. package/dist/index68.js.map +1 -1
  235. package/dist/index69.js +58 -64
  236. package/dist/index69.js.map +1 -1
  237. package/dist/index70.js +105 -19
  238. package/dist/index70.js.map +1 -1
  239. package/dist/index71.js +41 -46
  240. package/dist/index71.js.map +1 -1
  241. package/dist/index72.js +63 -129
  242. package/dist/index72.js.map +1 -1
  243. package/dist/index73.js +19 -50
  244. package/dist/index73.js.map +1 -1
  245. package/dist/index74.js +46 -22
  246. package/dist/index74.js.map +1 -1
  247. package/dist/index75.js +134 -22
  248. package/dist/index75.js.map +1 -1
  249. package/dist/index76.js +51 -328
  250. package/dist/index76.js.map +1 -1
  251. package/dist/index77.js +19 -53
  252. package/dist/index77.js.map +1 -1
  253. package/dist/index78.js +31 -40
  254. package/dist/index78.js.map +1 -1
  255. package/dist/index79.js +22 -23
  256. package/dist/index79.js.map +1 -1
  257. package/dist/index80.js +319 -85
  258. package/dist/index80.js.map +1 -1
  259. package/dist/index81.js +52 -126
  260. package/dist/index81.js.map +1 -1
  261. package/dist/index82.js +39 -160
  262. package/dist/index82.js.map +1 -1
  263. package/dist/index83.js +23 -65
  264. package/dist/index83.js.map +1 -1
  265. package/dist/index84.js +95 -35
  266. package/dist/index84.js.map +1 -1
  267. package/dist/index85.js +126 -230
  268. package/dist/index85.js.map +1 -1
  269. package/dist/index86.js +159 -32
  270. package/dist/index86.js.map +1 -1
  271. package/dist/index87.js +60 -205
  272. package/dist/index87.js.map +1 -1
  273. package/dist/index88.js +34 -212
  274. package/dist/index88.js.map +1 -1
  275. package/dist/index89.js +229 -290
  276. package/dist/index89.js.map +1 -1
  277. package/dist/index90.js +32 -176
  278. package/dist/index90.js.map +1 -1
  279. package/dist/index91.js +199 -247
  280. package/dist/index91.js.map +1 -1
  281. package/dist/index92.js +211 -12
  282. package/dist/index92.js.map +1 -1
  283. package/dist/index93.js +290 -28
  284. package/dist/index93.js.map +1 -1
  285. package/dist/index94.js +177 -5
  286. package/dist/index94.js.map +1 -1
  287. package/dist/index95.js +257 -13
  288. package/dist/index95.js.map +1 -1
  289. package/dist/index96.js +13 -45
  290. package/dist/index96.js.map +1 -1
  291. package/dist/index97.js +32 -12
  292. package/dist/index97.js.map +1 -1
  293. package/dist/index98.js +5 -14
  294. package/dist/index98.js.map +1 -1
  295. package/dist/index99.js +13 -7
  296. package/dist/index99.js.map +1 -1
  297. package/package.json +2 -1
  298. package/dist/index108.js +0 -155
  299. package/dist/index108.js.map +0 -1
package/dist/index146.js CHANGED
@@ -1,73 +1,24 @@
1
- import { __module as c } from "./index151.js";
2
- var m;
3
- function j() {
4
- return m ? c.exports : (m = 1, (function(y) {
5
- var u = {
6
- single_source_shortest_paths: function(o, t, e) {
7
- var r = {}, i = {};
8
- i[t] = 0;
9
- var n = u.PriorityQueue.make();
10
- n.push(t, 0);
11
- for (var f, p, s, h, _, d, a, v, l; !n.empty(); ) {
12
- f = n.pop(), p = f.value, h = f.cost, _ = o[p] || {};
13
- for (s in _)
14
- _.hasOwnProperty(s) && (d = _[s], a = h + d, v = i[s], l = typeof i[s] > "u", (l || v > a) && (i[s] = a, n.push(s, a), r[s] = p));
15
- }
16
- if (typeof e < "u" && typeof i[e] > "u") {
17
- var q = ["Could not find a path from ", t, " to ", e, "."].join("");
18
- throw new Error(q);
19
- }
20
- return r;
21
- },
22
- extract_shortest_path_from_predecessor_list: function(o, t) {
23
- for (var e = [], r = t; r; )
24
- e.push(r), o[r], r = o[r];
25
- return e.reverse(), e;
26
- },
27
- find_path: function(o, t, e) {
28
- var r = u.single_source_shortest_paths(o, t, e);
29
- return u.extract_shortest_path_from_predecessor_list(
30
- r,
31
- e
32
- );
33
- },
34
- /**
35
- * A very naive priority queue implementation.
36
- */
37
- PriorityQueue: {
38
- make: function(o) {
39
- var t = u.PriorityQueue, e = {}, r;
40
- o = o || {};
41
- for (r in t)
42
- t.hasOwnProperty(r) && (e[r] = t[r]);
43
- return e.queue = [], e.sorter = o.sorter || t.default_sorter, e;
44
- },
45
- default_sorter: function(o, t) {
46
- return o.cost - t.cost;
47
- },
48
- /**
49
- * Add a new item to the queue and ensure the highest priority element
50
- * is at the front of the queue.
51
- */
52
- push: function(o, t) {
53
- var e = { value: o, cost: t };
54
- this.queue.push(e), this.queue.sort(this.sorter);
55
- },
56
- /**
57
- * Return the highest priority element in the queue.
58
- */
59
- pop: function() {
60
- return this.queue.shift();
61
- },
62
- empty: function() {
63
- return this.queue.length === 0;
64
- }
65
- }
66
- };
67
- y.exports = u;
68
- })(c), c.exports);
1
+ import { __exports as e } from "./index156.js";
2
+ var s;
3
+ function R() {
4
+ if (s) return e;
5
+ s = 1;
6
+ const n = "[0-9]+", E = "[A-Z $%*+\\-./:]+";
7
+ let u = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
8
+ u = u.replace(/u/g, "\\u");
9
+ const i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + u + `)(?:.|[\r
10
+ ]))+`;
11
+ e.KANJI = new RegExp(u, "g"), e.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), e.BYTE = new RegExp(i, "g"), e.NUMERIC = new RegExp(n, "g"), e.ALPHANUMERIC = new RegExp(E, "g");
12
+ const c = new RegExp("^" + u + "$"), g = new RegExp("^" + n + "$"), A = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
13
+ return e.testKanji = function(t) {
14
+ return c.test(t);
15
+ }, e.testNumeric = function(t) {
16
+ return g.test(t);
17
+ }, e.testAlphanumeric = function(t) {
18
+ return A.test(t);
19
+ }, e;
69
20
  }
70
21
  export {
71
- j as __require
22
+ R as __require
72
23
  };
73
24
  //# sourceMappingURL=index146.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index146.js","sources":["../../../node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js"],"sourcesContent":["'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n"],"names":["dijkstra","graph","s","d","predecessors","costs","open","closest","u","v","cost_of_s_to_u","adjacent_nodes","cost_of_e","cost_of_s_to_u_plus_cost_of_e","cost_of_s_to_v","first_visit","msg","nodes","opts","T","t","key","a","b","value","cost","item","module"],"mappings":";;;;AAuBA,QAAIA,IAAW;AAAA,MACb,8BAA8B,SAASC,GAAOC,GAAGC,GAAG;AAGlD,YAAIC,IAAe,CAAA,GAIfC,IAAQ,CAAA;AACZ,QAAAA,EAAMH,CAAC,IAAI;AAMX,YAAII,IAAON,EAAS,cAAc,KAAI;AACtC,QAAAM,EAAK,KAAKJ,GAAG,CAAC;AAUd,iBARIK,GACAC,GAAGC,GACHC,GACAC,GACAC,GACAC,GACAC,GACAC,GACG,CAACT,EAAK,WAAS;AAGpB,UAAAC,IAAUD,EAAK,IAAG,GAClBE,IAAID,EAAQ,OACZG,IAAiBH,EAAQ,MAGzBI,IAAiBV,EAAMO,CAAC,KAAK,CAAA;AAK7B,eAAKC,KAAKE;AACR,YAAIA,EAAe,eAAeF,CAAC,MAEjCG,IAAYD,EAAeF,CAAC,GAK5BI,IAAgCH,IAAiBE,GAMjDE,IAAiBT,EAAMI,CAAC,GACxBM,IAAe,OAAOV,EAAMI,CAAC,IAAM,MAC/BM,KAAeD,IAAiBD,OAClCR,EAAMI,CAAC,IAAII,GACXP,EAAK,KAAKG,GAAGI,CAA6B,GAC1CT,EAAaK,CAAC,IAAID;AAAA,QAI9B;AAEI,YAAI,OAAOL,IAAM,OAAe,OAAOE,EAAMF,CAAC,IAAM,KAAa;AAC/D,cAAIa,IAAM,CAAC,+BAA+Bd,GAAG,QAAQC,GAAG,GAAG,EAAE,KAAK,EAAE;AACpE,gBAAM,IAAI,MAAMa,CAAG;AAAA,QACzB;AAEI,eAAOZ;AAAA,MACX;AAAA,MAEE,6CAA6C,SAASA,GAAcD,GAAG;AAIrE,iBAHIc,IAAQ,CAAA,GACRT,IAAIL,GAEDK;AACL,UAAAS,EAAM,KAAKT,CAAC,GACEJ,EAAaI,CAAC,GAC5BA,IAAIJ,EAAaI,CAAC;AAEpB,eAAAS,EAAM,QAAO,GACNA;AAAA,MACX;AAAA,MAEE,WAAW,SAAShB,GAAOC,GAAGC,GAAG;AAC/B,YAAIC,IAAeJ,EAAS,6BAA6BC,GAAOC,GAAGC,CAAC;AACpE,eAAOH,EAAS;AAAA,UACdI;AAAA,UAAcD;AAAA,QAAC;AAAA,MACrB;AAAA;AAAA;AAAA;AAAA,MAKE,eAAe;AAAA,QACb,MAAM,SAAUe,GAAM;AACpB,cAAIC,IAAInB,EAAS,eACboB,IAAI,CAAA,GACJC;AACJ,UAAAH,IAAOA,KAAQ,CAAA;AACf,eAAKG,KAAOF;AACV,YAAIA,EAAE,eAAeE,CAAG,MACtBD,EAAEC,CAAG,IAAIF,EAAEE,CAAG;AAGlB,iBAAAD,EAAE,QAAQ,CAAA,GACVA,EAAE,SAASF,EAAK,UAAUC,EAAE,gBACrBC;AAAA,QACb;AAAA,QAEI,gBAAgB,SAAUE,GAAGC,GAAG;AAC9B,iBAAOD,EAAE,OAAOC,EAAE;AAAA,QACxB;AAAA;AAAA;AAAA;AAAA;AAAA,QAMI,MAAM,SAAUC,GAAOC,GAAM;AAC3B,cAAIC,IAAO,EAAC,OAAOF,GAAO,MAAMC,EAAI;AACpC,eAAK,MAAM,KAAKC,CAAI,GACpB,KAAK,MAAM,KAAK,KAAK,MAAM;AAAA,QACjC;AAAA;AAAA;AAAA;AAAA,QAKI,KAAK,WAAY;AACf,iBAAO,KAAK,MAAM,MAAK;AAAA,QAC7B;AAAA,QAEI,OAAO,WAAY;AACjB,iBAAO,KAAK,MAAM,WAAW;AAAA,QACnC;AAAA,MACA;AAAA;AAME,IAAAC,YAAiB3B;AAAA;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index146.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js"],"sourcesContent":["const numeric = '[0-9]+'\nconst alphanumeric = '[A-Z $%*+\\\\-./:]+'\nlet kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +\n '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +\n '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +\n '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'\nkanji = kanji.replace(/u/g, '\\\\u')\n\nconst byte = '(?:(?![A-Z0-9 $%*+\\\\-./:]|' + kanji + ')(?:.|[\\r\\n]))+'\n\nexports.KANJI = new RegExp(kanji, 'g')\nexports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\\\-./:]+', 'g')\nexports.BYTE = new RegExp(byte, 'g')\nexports.NUMERIC = new RegExp(numeric, 'g')\nexports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')\n\nconst TEST_KANJI = new RegExp('^' + kanji + '$')\nconst TEST_NUMERIC = new RegExp('^' + numeric + '$')\nconst TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\\\-./:]+$')\n\nexports.testKanji = function testKanji (str) {\n return TEST_KANJI.test(str)\n}\n\nexports.testNumeric = function testNumeric (str) {\n return TEST_NUMERIC.test(str)\n}\n\nexports.testAlphanumeric = function testAlphanumeric (str) {\n return TEST_ALPHANUMERIC.test(str)\n}\n"],"names":["numeric","alphanumeric","kanji","byte","regex","TEST_KANJI","TEST_NUMERIC","TEST_ALPHANUMERIC","str"],"mappings":";;;;;AAAA,QAAMA,IAAU,UACVC,IAAe;AACrB,MAAIC,IAAQ;AAIZ,EAAAA,IAAQA,EAAM,QAAQ,MAAM,KAAK;AAEjC,QAAMC,IAAO,+BAA+BD,IAAQ;AAAA;AAEpD,EAAAE,EAAA,QAAgB,IAAI,OAAOF,GAAO,GAAG,GACrCE,EAAA,aAAqB,IAAI,OAAO,yBAAyB,GAAG,GAC5DA,EAAA,OAAe,IAAI,OAAOD,GAAM,GAAG,GACnCC,EAAA,UAAkB,IAAI,OAAOJ,GAAS,GAAG,GACzCI,EAAA,eAAuB,IAAI,OAAOH,GAAc,GAAG;AAEnD,QAAMI,IAAa,IAAI,OAAO,MAAMH,IAAQ,GAAG,GACzCI,IAAe,IAAI,OAAO,MAAMN,IAAU,GAAG,GAC7CO,IAAoB,IAAI,OAAO,wBAAwB;AAE7D,SAAAH,EAAA,YAAoB,SAAoBI,GAAK;AAC3C,WAAOH,EAAW,KAAKG,CAAG;AAAA,EAC5B,GAEAJ,EAAA,cAAsB,SAAsBI,GAAK;AAC/C,WAAOF,EAAa,KAAKE,CAAG;AAAA,EAC9B,GAEAJ,EAAA,mBAA2B,SAA2BI,GAAK;AACzD,WAAOD,EAAkB,KAAKC,CAAG;AAAA,EACnC;;","x_google_ignoreList":[0]}
package/dist/index147.js CHANGED
@@ -1,5 +1,5 @@
1
- var o = {};
1
+ var e = {};
2
2
  export {
3
- o as __exports
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index147.js.map
package/dist/index148.js CHANGED
@@ -1,25 +1,27 @@
1
- import { __exports as t } from "./index152.js";
2
- var u;
3
- function f() {
4
- if (u) return t;
5
- u = 1;
6
- const i = new Uint8Array(512), n = new Uint8Array(256);
7
- return (function() {
8
- let r = 1;
9
- for (let e = 0; e < 255; e++)
10
- i[e] = r, n[r] = e, r <<= 1, r & 256 && (r ^= 285);
11
- for (let e = 255; e < 512; e++)
12
- i[e] = i[e - 255];
13
- })(), t.log = function(r) {
14
- if (r < 1) throw new Error("log(" + r + ")");
15
- return n[r];
16
- }, t.exp = function(r) {
17
- return i[r];
18
- }, t.mul = function(r, e) {
19
- return r === 0 || e === 0 ? 0 : i[n[r] + n[e]];
20
- }, t;
1
+ import { __require as h } from "./index129.js";
2
+ var u, s;
3
+ function c() {
4
+ if (s) return u;
5
+ s = 1;
6
+ const g = h();
7
+ function t(i) {
8
+ this.mode = g.NUMERIC, this.data = i.toString();
9
+ }
10
+ return t.getBitsLength = function(e) {
11
+ return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
12
+ }, t.prototype.getLength = function() {
13
+ return this.data.length;
14
+ }, t.prototype.getBitsLength = function() {
15
+ return t.getBitsLength(this.data.length);
16
+ }, t.prototype.write = function(e) {
17
+ let r, n, a;
18
+ for (r = 0; r + 3 <= this.data.length; r += 3)
19
+ n = this.data.substr(r, 3), a = parseInt(n, 10), e.put(a, 10);
20
+ const o = this.data.length - r;
21
+ o > 0 && (n = this.data.substr(r), a = parseInt(n, 10), e.put(a, o * 3 + 1));
22
+ }, u = t, u;
21
23
  }
22
24
  export {
23
- f as __require
25
+ c as __require
24
26
  };
25
27
  //# sourceMappingURL=index148.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index148.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js"],"sourcesContent":["const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n"],"names":["EXP_TABLE","LOG_TABLE","x","i","galoisField","n","y"],"mappings":";;;;;AAAA,QAAMA,IAAY,IAAI,WAAW,GAAG,GAC9BC,IAAY,IAAI,WAAW,GAAG;AASnC,UAAC,WAAuB;AACvB,QAAIC,IAAI;AACR,aAASC,IAAI,GAAGA,IAAI,KAAKA;AACvB,MAAAH,EAAUG,CAAC,IAAID,GACfD,EAAUC,CAAC,IAAIC,GAEfD,MAAM,GAIFA,IAAI,QACNA,KAAK;AAQT,aAASC,IAAI,KAAKA,IAAI,KAAKA;AACzB,MAAAH,EAAUG,CAAC,IAAIH,EAAUG,IAAI,GAAG;AAAA,EAEpC,GAAC,GAQDC,EAAA,MAAc,SAAcC,GAAG;AAC7B,QAAIA,IAAI,EAAG,OAAM,IAAI,MAAM,SAASA,IAAI,GAAG;AAC3C,WAAOJ,EAAUI,CAAC;AAAA,EACpB,GAQAD,EAAA,MAAc,SAAcC,GAAG;AAC7B,WAAOL,EAAUK,CAAC;AAAA,EACpB,GASAD,EAAA,MAAc,SAAcF,GAAGI,GAAG;AAChC,WAAIJ,MAAM,KAAKI,MAAM,IAAU,IAIxBN,EAAUC,EAAUC,CAAC,IAAID,EAAUK,CAAC,CAAC;AAAA,EAC9C;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index148.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js"],"sourcesContent":["const Mode = require('./mode')\n\nfunction NumericData (data) {\n this.mode = Mode.NUMERIC\n this.data = data.toString()\n}\n\nNumericData.getBitsLength = function getBitsLength (length) {\n return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)\n}\n\nNumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nNumericData.prototype.getBitsLength = function getBitsLength () {\n return NumericData.getBitsLength(this.data.length)\n}\n\nNumericData.prototype.write = function write (bitBuffer) {\n let i, group, value\n\n // The input data string is divided into groups of three digits,\n // and each group is converted to its 10-bit binary equivalent.\n for (i = 0; i + 3 <= this.data.length; i += 3) {\n group = this.data.substr(i, 3)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, 10)\n }\n\n // If the number of input digits is not an exact multiple of three,\n // the final one or two digits are converted to 4 or 7 bits respectively.\n const remainingNum = this.data.length - i\n if (remainingNum > 0) {\n group = this.data.substr(i)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, remainingNum * 3 + 1)\n }\n}\n\nmodule.exports = NumericData\n"],"names":["Mode","require$$0","NumericData","data","length","bitBuffer","i","group","value","remainingNum","numericData"],"mappings":";;;;;AAAA,QAAMA,IAAOC,EAAA;AAEb,WAASC,EAAaC,GAAM;AAC1B,SAAK,OAAOH,EAAK,SACjB,KAAK,OAAOG,EAAK,SAAQ;AAAA,EAC3B;AAEA,SAAAD,EAAY,gBAAgB,SAAwBE,GAAQ;AAC1D,WAAO,KAAK,KAAK,MAAMA,IAAS,CAAC,KAAMA,IAAS,IAAOA,IAAS,IAAK,IAAI,IAAK;AAAA,EAChF,GAEAF,EAAY,UAAU,YAAY,WAAsB;AACtD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAY,UAAU,gBAAgB,WAA0B;AAC9D,WAAOA,EAAY,cAAc,KAAK,KAAK,MAAM;AAAA,EACnD,GAEAA,EAAY,UAAU,QAAQ,SAAgBG,GAAW;AACvD,QAAIC,GAAGC,GAAOC;AAId,SAAKF,IAAI,GAAGA,IAAI,KAAK,KAAK,KAAK,QAAQA,KAAK;AAC1C,MAAAC,IAAQ,KAAK,KAAK,OAAOD,GAAG,CAAC,GAC7BE,IAAQ,SAASD,GAAO,EAAE,GAE1BF,EAAU,IAAIG,GAAO,EAAE;AAKzB,UAAMC,IAAe,KAAK,KAAK,SAASH;AACxC,IAAIG,IAAe,MACjBF,IAAQ,KAAK,KAAK,OAAOD,CAAC,GAC1BE,IAAQ,SAASD,GAAO,EAAE,GAE1BF,EAAU,IAAIG,GAAOC,IAAe,IAAI,CAAC;AAAA,EAE7C,GAEAC,IAAiBR;;","x_google_ignoreList":[0]}
package/dist/index149.js CHANGED
@@ -1,5 +1,74 @@
1
- var e = {};
1
+ import { __require as s } from "./index129.js";
2
+ var r, o;
3
+ function d() {
4
+ if (o) return r;
5
+ o = 1;
6
+ const u = s(), n = [
7
+ "0",
8
+ "1",
9
+ "2",
10
+ "3",
11
+ "4",
12
+ "5",
13
+ "6",
14
+ "7",
15
+ "8",
16
+ "9",
17
+ "A",
18
+ "B",
19
+ "C",
20
+ "D",
21
+ "E",
22
+ "F",
23
+ "G",
24
+ "H",
25
+ "I",
26
+ "J",
27
+ "K",
28
+ "L",
29
+ "M",
30
+ "N",
31
+ "O",
32
+ "P",
33
+ "Q",
34
+ "R",
35
+ "S",
36
+ "T",
37
+ "U",
38
+ "V",
39
+ "W",
40
+ "X",
41
+ "Y",
42
+ "Z",
43
+ " ",
44
+ "$",
45
+ "%",
46
+ "*",
47
+ "+",
48
+ "-",
49
+ ".",
50
+ "/",
51
+ ":"
52
+ ];
53
+ function t(i) {
54
+ this.mode = u.ALPHANUMERIC, this.data = i;
55
+ }
56
+ return t.getBitsLength = function(a) {
57
+ return 11 * Math.floor(a / 2) + 6 * (a % 2);
58
+ }, t.prototype.getLength = function() {
59
+ return this.data.length;
60
+ }, t.prototype.getBitsLength = function() {
61
+ return t.getBitsLength(this.data.length);
62
+ }, t.prototype.write = function(a) {
63
+ let e;
64
+ for (e = 0; e + 2 <= this.data.length; e += 2) {
65
+ let h = n.indexOf(this.data[e]) * 45;
66
+ h += n.indexOf(this.data[e + 1]), a.put(h, 11);
67
+ }
68
+ this.data.length % 2 && a.put(n.indexOf(this.data[e]), 6);
69
+ }, r = t, r;
70
+ }
2
71
  export {
3
- e as __exports
72
+ d as __require
4
73
  };
5
74
  //# sourceMappingURL=index149.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index149.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index149.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js"],"sourcesContent":["const Mode = require('./mode')\n\n/**\n * Array of characters available in alphanumeric mode\n *\n * As per QR Code specification, to each character\n * is assigned a value from 0 to 44 which in this case coincides\n * with the array index\n *\n * @type {Array}\n */\nconst ALPHA_NUM_CHARS = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',\n 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',\n ' ', '$', '%', '*', '+', '-', '.', '/', ':'\n]\n\nfunction AlphanumericData (data) {\n this.mode = Mode.ALPHANUMERIC\n this.data = data\n}\n\nAlphanumericData.getBitsLength = function getBitsLength (length) {\n return 11 * Math.floor(length / 2) + 6 * (length % 2)\n}\n\nAlphanumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nAlphanumericData.prototype.getBitsLength = function getBitsLength () {\n return AlphanumericData.getBitsLength(this.data.length)\n}\n\nAlphanumericData.prototype.write = function write (bitBuffer) {\n let i\n\n // Input data characters are divided into groups of two characters\n // and encoded as 11-bit binary codes.\n for (i = 0; i + 2 <= this.data.length; i += 2) {\n // The character value of the first character is multiplied by 45\n let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45\n\n // The character value of the second digit is added to the product\n value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])\n\n // The sum is then stored as 11-bit binary number\n bitBuffer.put(value, 11)\n }\n\n // If the number of input data characters is not a multiple of two,\n // the character value of the final character is encoded as a 6-bit binary number.\n if (this.data.length % 2) {\n bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)\n }\n}\n\nmodule.exports = AlphanumericData\n"],"names":["Mode","require$$0","ALPHA_NUM_CHARS","AlphanumericData","data","length","bitBuffer","i","value","alphanumericData"],"mappings":";;;;;AAAA,QAAMA,IAAOC,EAAA,GAWPC,IAAkB;AAAA,IACtB;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAC7C;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAC5D;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAC5D;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,EAC1C;AAEA,WAASC,EAAkBC,GAAM;AAC/B,SAAK,OAAOJ,EAAK,cACjB,KAAK,OAAOI;AAAA,EACd;AAEA,SAAAD,EAAiB,gBAAgB,SAAwBE,GAAQ;AAC/D,WAAO,KAAK,KAAK,MAAMA,IAAS,CAAC,IAAI,KAAKA,IAAS;AAAA,EACrD,GAEAF,EAAiB,UAAU,YAAY,WAAsB;AAC3D,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAiB,UAAU,gBAAgB,WAA0B;AACnE,WAAOA,EAAiB,cAAc,KAAK,KAAK,MAAM;AAAA,EACxD,GAEAA,EAAiB,UAAU,QAAQ,SAAgBG,GAAW;AAC5D,QAAIC;AAIJ,SAAKA,IAAI,GAAGA,IAAI,KAAK,KAAK,KAAK,QAAQA,KAAK,GAAG;AAE7C,UAAIC,IAAQN,EAAgB,QAAQ,KAAK,KAAKK,CAAC,CAAC,IAAI;AAGpD,MAAAC,KAASN,EAAgB,QAAQ,KAAK,KAAKK,IAAI,CAAC,CAAC,GAGjDD,EAAU,IAAIE,GAAO,EAAE;AAAA,IAC3B;AAIE,IAAI,KAAK,KAAK,SAAS,KACrBF,EAAU,IAAIJ,EAAgB,QAAQ,KAAK,KAAKK,CAAC,CAAC,GAAG,CAAC;AAAA,EAE1D,GAEAE,IAAiBN;;","x_google_ignoreList":[0]}
package/dist/index15.js CHANGED
@@ -1,153 +1,161 @@
1
- import { jsx as w } from "react/jsx-runtime";
2
- import { useRef as C, useState as v, useEffect as M } from "react";
3
- import O from "./index103.js";
4
- function S(o) {
5
- return typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(o).trim();
6
- }
7
- function x(o) {
8
- const e = o.match(/oklch\(\s*([\d.]+)%?\s+([\d.]+)\s+([\d.]+)/);
9
- if (!e) return "";
10
- const t = parseFloat(e[1]) / 100, r = parseFloat(e[2]), c = parseFloat(e[3]) * Math.PI / 180, l = r * Math.cos(c), u = r * Math.sin(c), n = t + 0.3963377774 * l + 0.2158037573 * u, f = t - 0.1055613458 * l - 0.0638541728 * u, i = t - 0.0894841775 * l - 1.291485548 * u, s = n * n * n, d = f * f * f, m = i * i * i;
11
- let b = 4.0767416621 * s - 3.3077115913 * d + 0.2309699292 * m, y = -1.2684380046 * s + 2.6097574011 * d - 0.3413193965 * m, g = -0.0041960863 * s - 0.7034186147 * d + 1.707614701 * m;
12
- const k = (p) => (p = Math.max(0, Math.min(1, p)), p <= 31308e-7 ? 12.92 * p : 1.055 * Math.pow(p, 1 / 2.4) - 0.055);
13
- return b = Math.round(k(b) * 255), y = Math.round(k(y) * 255), g = Math.round(k(g) * 255), `#${b.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}`;
14
- }
15
- function V() {
16
- return typeof document > "u" ? [] : [
17
- "--color-primary",
18
- "--color-secondary",
19
- "--color-accent",
20
- "--color-info",
21
- "--color-success",
22
- "--color-warning",
23
- "--color-error"
24
- ].map((e) => {
25
- const t = S(e);
26
- return t.includes("oklch") ? x(t) : t;
27
- }).filter(Boolean);
28
- }
29
- function I() {
30
- const o = V(), e = S("--color-base-content"), t = e.includes("oklch") ? x(e) : e || "#888888", r = S("--color-base-300"), a = r.includes("oklch") ? x(r) : r || "#e0e0e0", c = t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i), l = c ? (parseInt(c[1], 16) + parseInt(c[2], 16) + parseInt(c[3], 16)) / 3 > 128 : !1;
31
- return {
32
- colors: o.length > 0 ? o : void 0,
33
- theme: {
34
- mode: l ? "dark" : "light"
35
- },
36
- chart: {
37
- background: "transparent",
38
- foreColor: t
39
- },
40
- grid: {
41
- borderColor: a
42
- },
43
- xaxis: {
44
- labels: {
45
- style: {
46
- colors: t
47
- }
48
- },
49
- axisBorder: {
50
- color: a
51
- },
52
- axisTicks: {
53
- color: a
54
- }
55
- },
56
- yaxis: {
57
- labels: {
58
- style: {
59
- colors: t
60
- }
61
- }
62
- },
63
- legend: {
64
- labels: {
65
- colors: t
66
- }
67
- },
68
- tooltip: {
69
- theme: l ? "dark" : "light",
70
- style: {
71
- fontSize: "12px"
72
- },
73
- x: {
74
- show: !0
75
- },
76
- marker: {
77
- show: !0
78
- }
79
- },
80
- dataLabels: {
81
- style: {
82
- colors: [t, t, t, t, t, t, t]
83
- },
84
- background: {
85
- enabled: !1
86
- },
87
- dropShadow: {
88
- enabled: !1
89
- }
90
- }
91
- };
92
- }
93
- function h(o, e) {
94
- const t = { ...o };
95
- for (const r in e)
96
- e[r] !== void 0 && (typeof e[r] == "object" && e[r] !== null && !Array.isArray(e[r]) && typeof o[r] == "object" && o[r] !== null && !Array.isArray(o[r]) ? t[r] = h(
97
- o[r],
98
- e[r]
99
- ) : t[r] = e[r]);
100
- return t;
101
- }
102
- const $ = ({
103
- type: o,
104
- series: e,
105
- width: t = "100%",
106
- height: r = 350,
107
- options: a = {},
108
- themed: c = !0,
109
- className: l = ""
110
- }) => {
111
- const u = C(null), n = C(null), [, f] = v(!1), i = () => {
112
- const s = {
113
- chart: {
114
- type: o,
115
- width: t,
116
- height: r
117
- },
118
- series: e
1
+ import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
+ import { useState as g, useRef as I, useId as j, useEffect as $, useCallback as E } from "react";
3
+ function T({
4
+ options: c,
5
+ value: b,
6
+ onChange: k,
7
+ placeholder: M = "Please select",
8
+ disabled: i = !1,
9
+ allowClear: S = !0,
10
+ expandTrigger: D = "click",
11
+ displayRender: w,
12
+ size: C = "md",
13
+ className: B = "",
14
+ ...H
15
+ }) {
16
+ const [r, d] = g(!1), [o, p] = g(b || []), [y, u] = g([]), x = I(null), W = j(), N = j();
17
+ $(() => {
18
+ b !== void 0 && p(b);
19
+ }, [b]), $(() => {
20
+ const e = (s) => {
21
+ x.current && !x.current.contains(s.target) && (d(!1), u([]));
119
22
  };
120
- if (c) {
121
- const d = I();
122
- return h(h(s, d), a);
23
+ if (r)
24
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
25
+ }, [r]);
26
+ const z = E((e, s) => {
27
+ if (e === 0) return c;
28
+ let t = c;
29
+ for (let l = 0; l < e; l++) {
30
+ const a = t.find((f) => f.value === s[l]);
31
+ if (!a?.children) return [];
32
+ t = a.children;
123
33
  }
124
- return h(s, a);
34
+ return t;
35
+ }, [c]), O = E((e) => {
36
+ const s = [];
37
+ let t = c;
38
+ for (const l of e) {
39
+ const a = t.find((f) => f.value === l);
40
+ if (!a) break;
41
+ s.push(a), t = a.children || [];
42
+ }
43
+ return s;
44
+ }, [c]), h = r && y.length > 0 ? y : o, v = [];
45
+ v.push(c);
46
+ for (let e = 0; e < h.length; e++) {
47
+ const s = z(e + 1, h);
48
+ s.length > 0 && v.push(s);
49
+ }
50
+ const K = (e, s) => {
51
+ if (e.disabled) return;
52
+ const t = [...h.slice(0, s), e.value];
53
+ e.children && e.children.length > 0 ? u(t) : (p(t), d(!1), u([]), k?.(t, O(t)));
54
+ }, A = (e, s) => {
55
+ if (D !== "hover" || e.disabled) return;
56
+ const t = [...h.slice(0, s), e.value];
57
+ u(t);
58
+ }, R = (e) => {
59
+ e.stopPropagation(), p([]), k?.([], []);
60
+ }, V = (e) => {
61
+ if (!i)
62
+ switch (e.key) {
63
+ case "Enter":
64
+ case " ":
65
+ e.preventDefault(), d(!r);
66
+ break;
67
+ case "Escape":
68
+ e.preventDefault(), d(!1), u([]);
69
+ break;
70
+ }
71
+ }, L = O(o), P = L.map((e) => e.label), q = w ? w(P, L) : P.join(" / "), F = {
72
+ xs: "input-xs text-xs",
73
+ sm: "input-sm text-sm",
74
+ md: "input-md",
75
+ lg: "input-lg text-lg"
76
+ }, G = {
77
+ xs: "text-xs",
78
+ sm: "text-sm",
79
+ md: "text-base",
80
+ lg: "text-lg"
125
81
  };
126
- return M(() => {
127
- if (!u.current) return;
128
- const s = i();
129
- return n.current = new O(u.current, s), n.current.render(), f(!0), () => {
130
- n.current && (n.current.destroy(), n.current = null);
131
- };
132
- }, []), M(() => {
133
- if (!n.current) return;
134
- const s = i();
135
- n.current.updateOptions(s, !0, !0);
136
- }, [o, e, t, r, a, c]), M(() => {
137
- if (!c || typeof window > "u") return;
138
- const s = new MutationObserver(() => {
139
- if (n.current) {
140
- const d = i();
141
- n.current.updateOptions(d, !0, !0);
82
+ return /* @__PURE__ */ m("div", { ref: x, className: `relative inline-block w-full ${B}`, "data-state": r ? "open" : "closed", ...H, children: [
83
+ /* @__PURE__ */ m(
84
+ "div",
85
+ {
86
+ id: W,
87
+ role: "combobox",
88
+ "aria-expanded": r,
89
+ "aria-haspopup": "listbox",
90
+ "aria-controls": N,
91
+ tabIndex: i ? -1 : 0,
92
+ className: `input input-bordered w-full flex items-center justify-between cursor-pointer ${F[C]} ${i ? "input-disabled cursor-not-allowed" : ""} ${r ? "border-primary" : ""}`,
93
+ onClick: () => !i && d(!r),
94
+ onKeyDown: V,
95
+ children: [
96
+ /* @__PURE__ */ n("span", { className: o.length === 0 ? "text-base-content/50" : "", children: o.length > 0 ? q : M }),
97
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-1", children: [
98
+ S && o.length > 0 && !i && /* @__PURE__ */ n(
99
+ "button",
100
+ {
101
+ type: "button",
102
+ className: "btn btn-ghost btn-xs btn-circle",
103
+ onClick: R,
104
+ "aria-label": "Clear selection",
105
+ children: /* @__PURE__ */ n("svg", { className: "w-3 h-3", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
106
+ }
107
+ ),
108
+ /* @__PURE__ */ n(
109
+ "svg",
110
+ {
111
+ className: `w-4 h-4 transition-transform ${r ? "rotate-180" : ""}`,
112
+ fill: "none",
113
+ viewBox: "0 0 24 24",
114
+ stroke: "currentColor",
115
+ children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
116
+ }
117
+ )
118
+ ] })
119
+ ]
142
120
  }
143
- });
144
- return s.observe(document.documentElement, {
145
- attributes: !0,
146
- attributeFilter: ["data-theme", "class"]
147
- }), () => s.disconnect();
148
- }, [c]), /* @__PURE__ */ w("div", { ref: u, className: l });
149
- };
121
+ ),
122
+ r && /* @__PURE__ */ n(
123
+ "div",
124
+ {
125
+ id: N,
126
+ className: `absolute z-50 mt-1 bg-base-100 border border-base-300 rounded-lg shadow-lg flex ${G[C]}`,
127
+ children: v.map((e, s) => /* @__PURE__ */ n(
128
+ "ul",
129
+ {
130
+ role: "listbox",
131
+ className: `min-w-[120px] max-h-[200px] overflow-y-auto py-1 ${s > 0 ? "border-l border-base-300" : ""}`,
132
+ children: e.map((t) => {
133
+ const l = o[s] === t.value, a = h[s] === t.value, f = t.children && t.children.length > 0;
134
+ return /* @__PURE__ */ m(
135
+ "li",
136
+ {
137
+ role: "option",
138
+ "aria-selected": l,
139
+ "aria-disabled": t.disabled,
140
+ className: `px-3 py-2 cursor-pointer flex items-center justify-between gap-2 ${t.disabled ? "text-base-content/30 cursor-not-allowed" : l ? "bg-primary text-primary-content" : a ? "bg-base-200" : "hover:bg-base-200"}`,
141
+ onClick: () => K(t, s),
142
+ onMouseEnter: () => A(t, s),
143
+ children: [
144
+ /* @__PURE__ */ n("span", { children: t.label }),
145
+ f && /* @__PURE__ */ n("svg", { className: "w-4 h-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" }) })
146
+ ]
147
+ },
148
+ t.value
149
+ );
150
+ })
151
+ },
152
+ s
153
+ ))
154
+ }
155
+ )
156
+ ] });
157
+ }
150
158
  export {
151
- $ as Chart
159
+ T as Cascader
152
160
  };
153
161
  //# sourceMappingURL=index15.js.map