storybook 10.1.0-alpha.9 → 10.1.0-beta.1

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 (198) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
  5. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  6. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  7. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  8. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  9. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  15. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  16. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  17. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  18. package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
  19. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  20. package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/{chunk-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
  26. package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
  27. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  28. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  29. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  30. package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
  31. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  32. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  33. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-SM3UWERX.js → builder-manager-FTVC2JL7.js} +510 -1019
  40. package/dist/_node-chunks/camelcase-3SMT5WKC.js +37 -0
  41. package/dist/_node-chunks/chunk-2OVULPK3.js +54 -0
  42. package/dist/_node-chunks/chunk-3JJPSDXI.js +3043 -0
  43. package/dist/_node-chunks/chunk-54NMJ4II.js +1564 -0
  44. package/dist/_node-chunks/chunk-5V4A6MSI.js +943 -0
  45. package/dist/_node-chunks/chunk-6DEMT5VX.js +299 -0
  46. package/dist/_node-chunks/{chunk-HHSTA6QS.js → chunk-6L7FFBOW.js} +8 -10
  47. package/dist/_node-chunks/chunk-6ULDIDXV.js +46662 -0
  48. package/dist/_node-chunks/chunk-AREL5IXS.js +603 -0
  49. package/dist/_node-chunks/chunk-DWA53E73.js +23 -0
  50. package/dist/_node-chunks/chunk-FNYKBULZ.js +765 -0
  51. package/dist/_node-chunks/chunk-IUYZQKSX.js +70 -0
  52. package/dist/_node-chunks/{chunk-F6EFOEC7.js → chunk-K673CX4Q.js} +469 -983
  53. package/dist/_node-chunks/chunk-KJAFCNZ3.js +61 -0
  54. package/dist/_node-chunks/chunk-N3BJOOY5.js +78 -0
  55. package/dist/_node-chunks/{chunk-EBUEXRH5.js → chunk-O5FMCQHP.js} +116 -276
  56. package/dist/_node-chunks/chunk-RIKQZHV3.js +29 -0
  57. package/dist/_node-chunks/chunk-RURZIE3W.js +3780 -0
  58. package/dist/_node-chunks/chunk-RVII4SK6.js +919 -0
  59. package/dist/_node-chunks/chunk-S3PBHOVC.js +6024 -0
  60. package/dist/_node-chunks/chunk-SQSFX47N.js +61 -0
  61. package/dist/_node-chunks/{chunk-SGM3ZCCT.js → chunk-TURUTKVH.js} +292 -688
  62. package/dist/_node-chunks/chunk-VRICJPXY.js +72 -0
  63. package/dist/_node-chunks/chunk-WIWWMCEU.js +119 -0
  64. package/dist/_node-chunks/{chunk-ATDHMMIZ.js → chunk-XGNRK7QB.js} +15 -24
  65. package/dist/_node-chunks/chunk-Y2FOTPAE.js +4523 -0
  66. package/dist/_node-chunks/{chunk-GHIBZRKD.js → chunk-Y4UYN72K.js} +8133 -8887
  67. package/dist/_node-chunks/chunk-Z4BMBA5L.js +18 -0
  68. package/dist/_node-chunks/chunk-ZMCJS2GU.js +20 -0
  69. package/dist/_node-chunks/dist-TZLZ3T6L.js +121 -0
  70. package/dist/_node-chunks/globby-22GFCZQD.js +3452 -0
  71. package/dist/_node-chunks/lib-37NQ4ZIJ.js +366 -0
  72. package/dist/_node-chunks/mdx-N42X6CFJ-2TRB7OEH.js +14329 -0
  73. package/dist/_node-chunks/p-limit-UD7TYFDW.js +116 -0
  74. package/dist/actions/decorator.js +21 -42
  75. package/dist/actions/index.js +3 -3
  76. package/dist/babel/index.d.ts +671 -335
  77. package/dist/babel/index.js +10 -11
  78. package/dist/bin/core.js +602 -1549
  79. package/dist/bin/dispatcher.js +36 -36
  80. package/dist/bin/loader.js +24 -38
  81. package/dist/channels/index.js +98 -234
  82. package/dist/cli/index.d.ts +1479 -133
  83. package/dist/cli/index.js +30 -8540
  84. package/dist/client-logger/index.js +31 -61
  85. package/dist/common/index.d.ts +139 -62
  86. package/dist/common/index.js +66 -51
  87. package/dist/components/index.d.ts +575 -273
  88. package/dist/components/index.js +14863 -4313
  89. package/dist/core-events/index.js +2 -66
  90. package/dist/core-server/index.d.ts +3 -2
  91. package/dist/core-server/index.js +2911 -8519
  92. package/dist/core-server/presets/common-manager.css +2 -2
  93. package/dist/core-server/presets/common-manager.js +2521 -5233
  94. package/dist/core-server/presets/common-override-preset.js +31 -60
  95. package/dist/core-server/presets/common-preset.js +663 -962
  96. package/dist/csf/index.js +534 -1179
  97. package/dist/csf-tools/index.js +9 -9
  98. package/dist/docs-tools/index.js +6 -6
  99. package/dist/highlight/index.js +2 -2
  100. package/dist/instrumenter/index.js +199 -415
  101. package/dist/manager/globals-runtime.js +59044 -67141
  102. package/dist/manager/globals.js +2 -3
  103. package/dist/manager/manager-stores.d.ts +1 -0
  104. package/dist/manager/manager-stores.js +23 -0
  105. package/dist/manager/runtime.js +11569 -10953
  106. package/dist/manager-api/index.d.ts +1813 -2
  107. package/dist/manager-api/index.js +1348 -2401
  108. package/dist/manager-errors.d.ts +9 -0
  109. package/dist/manager-errors.js +3 -3
  110. package/dist/mocking-utils/index.d.ts +1126 -0
  111. package/dist/mocking-utils/index.js +1181 -0
  112. package/dist/node-logger/index.d.ts +192 -24
  113. package/dist/node-logger/index.js +23 -4471
  114. package/dist/preview/globals.js +2 -3
  115. package/dist/preview/runtime.js +10799 -22393
  116. package/dist/preview-api/index.d.ts +1 -1
  117. package/dist/preview-api/index.js +13 -13
  118. package/dist/preview-errors.d.ts +9 -0
  119. package/dist/preview-errors.js +4 -4
  120. package/dist/router/index.js +347 -899
  121. package/dist/server-errors.d.ts +34 -1
  122. package/dist/server-errors.js +17 -10
  123. package/dist/telemetry/index.d.ts +24 -3
  124. package/dist/telemetry/index.js +25 -24
  125. package/dist/test/index.js +6131 -11916
  126. package/dist/theming/create.d.ts +1 -0
  127. package/dist/theming/create.js +4 -4
  128. package/dist/theming/index.d.ts +3366 -2599
  129. package/dist/theming/index.js +501 -1091
  130. package/dist/types/index.d.ts +72 -8
  131. package/dist/types/index.js +27 -12
  132. package/dist/viewport/index.js +3 -3
  133. package/package.json +26 -17
  134. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  135. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  136. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  137. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  138. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  139. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  140. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  141. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  142. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  143. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  144. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  145. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  146. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  147. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  148. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  149. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  150. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  151. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  152. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  153. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  154. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  155. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  156. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  157. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  158. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  159. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  160. package/dist/_node-chunks/camelcase-H5QSGQLK.js +0 -18
  161. package/dist/_node-chunks/chunk-3THWHQOC.js +0 -61
  162. package/dist/_node-chunks/chunk-45YUOLTU.js +0 -69
  163. package/dist/_node-chunks/chunk-4QSNCPAU.js +0 -64656
  164. package/dist/_node-chunks/chunk-744PQSOU.js +0 -79
  165. package/dist/_node-chunks/chunk-74Z2U7QG.js +0 -1544
  166. package/dist/_node-chunks/chunk-7MB7TFPO.js +0 -1198
  167. package/dist/_node-chunks/chunk-A7GS4RFT.js +0 -697
  168. package/dist/_node-chunks/chunk-BIA3A5UM.js +0 -61
  169. package/dist/_node-chunks/chunk-C5G7CLWX.js +0 -1657
  170. package/dist/_node-chunks/chunk-DLFUKMYJ.js +0 -1531
  171. package/dist/_node-chunks/chunk-EMRGRXKT.js +0 -111
  172. package/dist/_node-chunks/chunk-EX46EHHY.js +0 -420
  173. package/dist/_node-chunks/chunk-F76QKNOJ.js +0 -304
  174. package/dist/_node-chunks/chunk-HDCRUTEF.js +0 -220
  175. package/dist/_node-chunks/chunk-HUYAOIPH.js +0 -90
  176. package/dist/_node-chunks/chunk-IBJZQZJC.js +0 -101
  177. package/dist/_node-chunks/chunk-KZN2RDDT.js +0 -6712
  178. package/dist/_node-chunks/chunk-LYUNFU3F.js +0 -4741
  179. package/dist/_node-chunks/chunk-N44SIS6K.js +0 -28
  180. package/dist/_node-chunks/chunk-NILZM6KR.js +0 -18
  181. package/dist/_node-chunks/chunk-PC4ZRP6W.js +0 -34
  182. package/dist/_node-chunks/chunk-TJNGOQUH.js +0 -4272
  183. package/dist/_node-chunks/chunk-UBSYLHIL.js +0 -1250
  184. package/dist/_node-chunks/chunk-UTCLXPOC.js +0 -1518
  185. package/dist/_node-chunks/chunk-WOXXODXP.js +0 -5029
  186. package/dist/_node-chunks/chunk-XC4MEUA6.js +0 -1586
  187. package/dist/_node-chunks/chunk-YRXXMKRR.js +0 -2256
  188. package/dist/_node-chunks/dist-SL73W244.js +0 -175
  189. package/dist/_node-chunks/globby-ZSHAUQZ5.js +0 -5222
  190. package/dist/_node-chunks/lib-U2VIPUTI.js +0 -518
  191. package/dist/_node-chunks/mdx-N42X6CFJ-ZLHD33JK.js +0 -22017
  192. package/dist/_node-chunks/p-limit-K5BS5MSV.js +0 -168
  193. package/dist/_node-chunks/plugin-5PD4YIUH.js +0 -129
  194. package/dist/_node-chunks/plugin-MONDT2WL.js +0 -159
  195. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-EUZJRG3W.js +0 -69102
  196. package/dist/_node-chunks/webpack-mock-plugin-T4LDXEHE.js +0 -124
  197. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
  198. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
@@ -1,122 +0,0 @@
1
- import {
2
- __name
3
- } from "./chunk-MM7DTO55.js";
4
-
5
- // ../node_modules/dequal/dist/index.mjs
6
- var has = Object.prototype.hasOwnProperty;
7
- function find(iter, tar, key) {
8
- for (key of iter.keys()) {
9
- if (dequal(key, tar)) return key;
10
- }
11
- }
12
- __name(find, "find");
13
- function dequal(foo, bar) {
14
- var ctor, len, tmp;
15
- if (foo === bar) return true;
16
- if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
17
- if (ctor === Date) return foo.getTime() === bar.getTime();
18
- if (ctor === RegExp) return foo.toString() === bar.toString();
19
- if (ctor === Array) {
20
- if ((len = foo.length) === bar.length) {
21
- while (len-- && dequal(foo[len], bar[len])) ;
22
- }
23
- return len === -1;
24
- }
25
- if (ctor === Set) {
26
- if (foo.size !== bar.size) {
27
- return false;
28
- }
29
- for (len of foo) {
30
- tmp = len;
31
- if (tmp && typeof tmp === "object") {
32
- tmp = find(bar, tmp);
33
- if (!tmp) return false;
34
- }
35
- if (!bar.has(tmp)) return false;
36
- }
37
- return true;
38
- }
39
- if (ctor === Map) {
40
- if (foo.size !== bar.size) {
41
- return false;
42
- }
43
- for (len of foo) {
44
- tmp = len[0];
45
- if (tmp && typeof tmp === "object") {
46
- tmp = find(bar, tmp);
47
- if (!tmp) return false;
48
- }
49
- if (!dequal(len[1], bar.get(tmp))) {
50
- return false;
51
- }
52
- }
53
- return true;
54
- }
55
- if (ctor === ArrayBuffer) {
56
- foo = new Uint8Array(foo);
57
- bar = new Uint8Array(bar);
58
- } else if (ctor === DataView) {
59
- if ((len = foo.byteLength) === bar.byteLength) {
60
- while (len-- && foo.getInt8(len) === bar.getInt8(len)) ;
61
- }
62
- return len === -1;
63
- }
64
- if (ArrayBuffer.isView(foo)) {
65
- if ((len = foo.byteLength) === bar.byteLength) {
66
- while (len-- && foo[len] === bar[len]) ;
67
- }
68
- return len === -1;
69
- }
70
- if (!ctor || typeof foo === "object") {
71
- len = 0;
72
- for (ctor in foo) {
73
- if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
74
- if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
75
- }
76
- return Object.keys(bar).length === len;
77
- }
78
- }
79
- return foo !== foo && bar !== bar;
80
- }
81
- __name(dequal, "dequal");
82
-
83
- // ../node_modules/es-toolkit/dist/array/partition.mjs
84
- function partition(arr, isInTruthy) {
85
- const truthy = [];
86
- const falsy = [];
87
- for (let i = 0; i < arr.length; i++) {
88
- const item = arr[i];
89
- if (isInTruthy(item)) {
90
- truthy.push(item);
91
- } else {
92
- falsy.push(item);
93
- }
94
- }
95
- return [truthy, falsy];
96
- }
97
- __name(partition, "partition");
98
-
99
- // ../node_modules/es-toolkit/dist/array/countBy.mjs
100
- function countBy(arr, mapper) {
101
- const result = {};
102
- for (let i = 0; i < arr.length; i++) {
103
- const item = arr[i];
104
- const key = mapper(item);
105
- result[key] = (result[key] ?? 0) + 1;
106
- }
107
- return result;
108
- }
109
- __name(countBy, "countBy");
110
-
111
- // ../node_modules/es-toolkit/dist/array/uniq.mjs
112
- function uniq(arr) {
113
- return Array.from(new Set(arr));
114
- }
115
- __name(uniq, "uniq");
116
-
117
- export {
118
- dequal,
119
- countBy,
120
- partition,
121
- uniq
122
- };
@@ -1,12 +0,0 @@
1
- import {
2
- __name
3
- } from "./chunk-MM7DTO55.js";
4
-
5
- // ../addons/docs/src/blocks/controls/helpers.ts
6
- var getControlId = /* @__PURE__ */ __name((value) => `control-${value.replace(/\s+/g, "-")}`, "getControlId");
7
- var getControlSetterButtonId = /* @__PURE__ */ __name((value) => `set-${value.replace(/\s+/g, "-")}`, "getControlSetterButtonId");
8
-
9
- export {
10
- getControlId,
11
- getControlSetterButtonId
12
- };
@@ -1,311 +0,0 @@
1
- import {
2
- argumentsTag,
3
- arrayBufferTag,
4
- arrayTag,
5
- booleanTag,
6
- dataViewTag,
7
- dateTag,
8
- float32ArrayTag,
9
- float64ArrayTag,
10
- getSymbols,
11
- getTag,
12
- int16ArrayTag,
13
- int32ArrayTag,
14
- int8ArrayTag,
15
- isPlainObject,
16
- isPrimitive,
17
- isTypedArray,
18
- mapTag,
19
- numberTag,
20
- objectTag,
21
- regexpTag,
22
- setTag,
23
- stringTag,
24
- symbolTag,
25
- uint16ArrayTag,
26
- uint32ArrayTag,
27
- uint8ArrayTag,
28
- uint8ClampedArrayTag
29
- } from "./chunk-FSBVR7H5.js";
30
- import {
31
- __name
32
- } from "./chunk-MM7DTO55.js";
33
-
34
- // ../node_modules/es-toolkit/dist/object/mapValues.mjs
35
- function mapValues(object, getNewValue) {
36
- const result = {};
37
- const keys = Object.keys(object);
38
- for (let i = 0; i < keys.length; i++) {
39
- const key = keys[i];
40
- const value = object[key];
41
- result[key] = getNewValue(value, key, object);
42
- }
43
- return result;
44
- }
45
- __name(mapValues, "mapValues");
46
-
47
- // ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
48
- function isUnsafeProperty(key) {
49
- return key === "__proto__";
50
- }
51
- __name(isUnsafeProperty, "isUnsafeProperty");
52
-
53
- // ../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
54
- function isObjectLike(value) {
55
- return typeof value === "object" && value !== null;
56
- }
57
- __name(isObjectLike, "isObjectLike");
58
-
59
- // ../node_modules/es-toolkit/dist/object/mergeWith.mjs
60
- function mergeWith(target, source, merge2) {
61
- const sourceKeys = Object.keys(source);
62
- for (let i = 0; i < sourceKeys.length; i++) {
63
- const key = sourceKeys[i];
64
- if (isUnsafeProperty(key)) {
65
- continue;
66
- }
67
- const sourceValue = source[key];
68
- const targetValue = target[key];
69
- const merged = merge2(targetValue, sourceValue, key, target, source);
70
- if (merged !== void 0) {
71
- target[key] = merged;
72
- } else if (Array.isArray(sourceValue)) {
73
- target[key] = mergeWith(targetValue ?? [], sourceValue, merge2);
74
- } else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) {
75
- target[key] = mergeWith(targetValue ?? {}, sourceValue, merge2);
76
- } else if (targetValue === void 0 || sourceValue !== void 0) {
77
- target[key] = sourceValue;
78
- }
79
- }
80
- return target;
81
- }
82
- __name(mergeWith, "mergeWith");
83
-
84
- // ../node_modules/es-toolkit/dist/object/pick.mjs
85
- function pick(obj, keys) {
86
- const result = {};
87
- for (let i = 0; i < keys.length; i++) {
88
- const key = keys[i];
89
- if (Object.hasOwn(obj, key)) {
90
- result[key] = obj[key];
91
- }
92
- }
93
- return result;
94
- }
95
- __name(pick, "pick");
96
-
97
- // ../node_modules/es-toolkit/dist/object/pickBy.mjs
98
- function pickBy(obj, shouldPick) {
99
- const result = {};
100
- const keys = Object.keys(obj);
101
- for (let i = 0; i < keys.length; i++) {
102
- const key = keys[i];
103
- const value = obj[key];
104
- if (shouldPick(value, key)) {
105
- result[key] = value;
106
- }
107
- }
108
- return result;
109
- }
110
- __name(pickBy, "pickBy");
111
-
112
- // ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
113
- function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
114
- const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
115
- if (cloned !== void 0) {
116
- return cloned;
117
- }
118
- if (isPrimitive(valueToClone)) {
119
- return valueToClone;
120
- }
121
- if (stack.has(valueToClone)) {
122
- return stack.get(valueToClone);
123
- }
124
- if (Array.isArray(valueToClone)) {
125
- const result = new Array(valueToClone.length);
126
- stack.set(valueToClone, result);
127
- for (let i = 0; i < valueToClone.length; i++) {
128
- result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
129
- }
130
- if (Object.hasOwn(valueToClone, "index")) {
131
- result.index = valueToClone.index;
132
- }
133
- if (Object.hasOwn(valueToClone, "input")) {
134
- result.input = valueToClone.input;
135
- }
136
- return result;
137
- }
138
- if (valueToClone instanceof Date) {
139
- return new Date(valueToClone.getTime());
140
- }
141
- if (valueToClone instanceof RegExp) {
142
- const result = new RegExp(valueToClone.source, valueToClone.flags);
143
- result.lastIndex = valueToClone.lastIndex;
144
- return result;
145
- }
146
- if (valueToClone instanceof Map) {
147
- const result = /* @__PURE__ */ new Map();
148
- stack.set(valueToClone, result);
149
- for (const [key, value] of valueToClone) {
150
- result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));
151
- }
152
- return result;
153
- }
154
- if (valueToClone instanceof Set) {
155
- const result = /* @__PURE__ */ new Set();
156
- stack.set(valueToClone, result);
157
- for (const value of valueToClone) {
158
- result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));
159
- }
160
- return result;
161
- }
162
- if (typeof Buffer !== "undefined" && Buffer.isBuffer(valueToClone)) {
163
- return valueToClone.subarray();
164
- }
165
- if (isTypedArray(valueToClone)) {
166
- const result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);
167
- stack.set(valueToClone, result);
168
- for (let i = 0; i < valueToClone.length; i++) {
169
- result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
170
- }
171
- return result;
172
- }
173
- if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && valueToClone instanceof SharedArrayBuffer) {
174
- return valueToClone.slice(0);
175
- }
176
- if (valueToClone instanceof DataView) {
177
- const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);
178
- stack.set(valueToClone, result);
179
- copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
180
- return result;
181
- }
182
- if (typeof File !== "undefined" && valueToClone instanceof File) {
183
- const result = new File([valueToClone], valueToClone.name, {
184
- type: valueToClone.type
185
- });
186
- stack.set(valueToClone, result);
187
- copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
188
- return result;
189
- }
190
- if (valueToClone instanceof Blob) {
191
- const result = new Blob([valueToClone], { type: valueToClone.type });
192
- stack.set(valueToClone, result);
193
- copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
194
- return result;
195
- }
196
- if (valueToClone instanceof Error) {
197
- const result = new valueToClone.constructor();
198
- stack.set(valueToClone, result);
199
- result.message = valueToClone.message;
200
- result.name = valueToClone.name;
201
- result.stack = valueToClone.stack;
202
- result.cause = valueToClone.cause;
203
- copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
204
- return result;
205
- }
206
- if (typeof valueToClone === "object" && isCloneableObject(valueToClone)) {
207
- const result = Object.create(Object.getPrototypeOf(valueToClone));
208
- stack.set(valueToClone, result);
209
- copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
210
- return result;
211
- }
212
- return valueToClone;
213
- }
214
- __name(cloneDeepWithImpl, "cloneDeepWithImpl");
215
- function copyProperties(target, source, objectToClone = target, stack, cloneValue) {
216
- const keys = [...Object.keys(source), ...getSymbols(source)];
217
- for (let i = 0; i < keys.length; i++) {
218
- const key = keys[i];
219
- const descriptor = Object.getOwnPropertyDescriptor(target, key);
220
- if (descriptor == null || descriptor.writable) {
221
- target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);
222
- }
223
- }
224
- }
225
- __name(copyProperties, "copyProperties");
226
- function isCloneableObject(object) {
227
- switch (getTag(object)) {
228
- case argumentsTag:
229
- case arrayTag:
230
- case arrayBufferTag:
231
- case dataViewTag:
232
- case booleanTag:
233
- case dateTag:
234
- case float32ArrayTag:
235
- case float64ArrayTag:
236
- case int8ArrayTag:
237
- case int16ArrayTag:
238
- case int32ArrayTag:
239
- case mapTag:
240
- case numberTag:
241
- case objectTag:
242
- case regexpTag:
243
- case setTag:
244
- case stringTag:
245
- case symbolTag:
246
- case uint8ArrayTag:
247
- case uint8ClampedArrayTag:
248
- case uint16ArrayTag:
249
- case uint32ArrayTag: {
250
- return true;
251
- }
252
- default: {
253
- return false;
254
- }
255
- }
256
- }
257
- __name(isCloneableObject, "isCloneableObject");
258
-
259
- // ../node_modules/es-toolkit/dist/object/cloneDeep.mjs
260
- function cloneDeep(obj) {
261
- return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
262
- }
263
- __name(cloneDeep, "cloneDeep");
264
-
265
- // ../node_modules/es-toolkit/dist/object/merge.mjs
266
- function merge(target, source) {
267
- const sourceKeys = Object.keys(source);
268
- for (let i = 0; i < sourceKeys.length; i++) {
269
- const key = sourceKeys[i];
270
- if (isUnsafeProperty(key)) {
271
- continue;
272
- }
273
- const sourceValue = source[key];
274
- const targetValue = target[key];
275
- if (Array.isArray(sourceValue)) {
276
- if (Array.isArray(targetValue)) {
277
- target[key] = merge(targetValue, sourceValue);
278
- } else {
279
- target[key] = merge([], sourceValue);
280
- }
281
- } else if (isPlainObject(sourceValue)) {
282
- if (isPlainObject(targetValue)) {
283
- target[key] = merge(targetValue, sourceValue);
284
- } else {
285
- target[key] = merge({}, sourceValue);
286
- }
287
- } else if (targetValue === void 0 || sourceValue !== void 0) {
288
- target[key] = sourceValue;
289
- }
290
- }
291
- return target;
292
- }
293
- __name(merge, "merge");
294
-
295
- // ../node_modules/es-toolkit/dist/string/words.mjs
296
- var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
297
-
298
- // ../node_modules/es-toolkit/dist/object/toMerged.mjs
299
- function toMerged(target, source) {
300
- return merge(cloneDeep(target), source);
301
- }
302
- __name(toMerged, "toMerged");
303
-
304
- export {
305
- cloneDeep,
306
- mapValues,
307
- mergeWith,
308
- pick,
309
- pickBy,
310
- toMerged
311
- };
@@ -1,20 +0,0 @@
1
- import {
2
- __commonJS,
3
- __name
4
- } from "./chunk-MM7DTO55.js";
5
-
6
- // ../node_modules/picocolors/picocolors.browser.js
7
- var require_picocolors_browser = __commonJS({
8
- "../node_modules/picocolors/picocolors.browser.js"(exports, module) {
9
- var x = String;
10
- var create = /* @__PURE__ */ __name(function() {
11
- return { isColorSupported: false, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x, blackBright: x, redBright: x, greenBright: x, yellowBright: x, blueBright: x, magentaBright: x, cyanBright: x, whiteBright: x, bgBlackBright: x, bgRedBright: x, bgGreenBright: x, bgYellowBright: x, bgBlueBright: x, bgMagentaBright: x, bgCyanBright: x, bgWhiteBright: x };
12
- }, "create");
13
- module.exports = create();
14
- module.exports.createColors = create;
15
- }
16
- });
17
-
18
- export {
19
- require_picocolors_browser
20
- };