@dcloudio/uni-cli-shared 3.0.0-4080720251210001 → 3.0.0-5000320260312001

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 (145) hide show
  1. package/dist/constants.d.ts +3 -0
  2. package/dist/constants.js +6 -1
  3. package/dist/deps.js +6 -1
  4. package/dist/dom2/index.d.ts +1 -0
  5. package/dist/dom2/index.js +17 -0
  6. package/dist/dom2/sharedData.d.ts +2 -0
  7. package/dist/dom2/sharedData.js +19 -0
  8. package/dist/easycom.js +34 -5
  9. package/dist/env/define.d.ts +3 -0
  10. package/dist/env/define.js +12 -0
  11. package/dist/hbx/alias.js +15 -17
  12. package/dist/hbx/index.d.ts +1 -1
  13. package/dist/hbx/index.js +4 -2
  14. package/dist/hbx/log.d.ts +5 -0
  15. package/dist/hbx/log.js +44 -1
  16. package/dist/i18n.js +4 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +1 -0
  19. package/dist/json/app/manifest/index.d.ts +1 -0
  20. package/dist/json/app/manifest/index.js +3 -1
  21. package/dist/json/mp/pages.js +0 -5
  22. package/dist/json/pages.d.ts +2 -2
  23. package/dist/json/pages.js +4 -1
  24. package/dist/json/uni-x/index.d.ts +1 -1
  25. package/dist/json/utils.js +31 -22
  26. package/dist/logs/console.js +1 -1
  27. package/dist/logs/index.d.ts +11 -0
  28. package/dist/logs/index.js +34 -1
  29. package/dist/messages/en.d.ts +6 -3
  30. package/dist/messages/en.js +6 -3
  31. package/dist/messages/index.d.ts +11 -5
  32. package/dist/messages/zh_CN.d.ts +5 -2
  33. package/dist/messages/zh_CN.js +5 -2
  34. package/dist/mp/assets.d.ts +1 -0
  35. package/dist/mp/assets.js +27 -1
  36. package/dist/mp/externalClasses.d.ts +38 -2
  37. package/dist/mp/externalClasses.js +90 -4
  38. package/dist/mp/index.d.ts +4 -3
  39. package/dist/mp/index.js +11 -1
  40. package/dist/mp/plugin.d.ts +1 -0
  41. package/dist/mp/plugin.js +14 -1
  42. package/dist/mp/style.d.ts +1 -0
  43. package/dist/mp/style.js +8 -1
  44. package/dist/mp/usingComponents.d.ts +1 -0
  45. package/dist/mp/usingComponents.js +17 -1
  46. package/dist/postcss/index.d.ts +2 -0
  47. package/dist/postcss/index.js +3 -1
  48. package/dist/postcss/plugins/stylePluginExternal.d.ts +17 -0
  49. package/dist/postcss/plugins/stylePluginExternal.js +127 -0
  50. package/dist/postcss/plugins/stylePluginScoped.js +30 -0
  51. package/dist/preprocess/context.js +2 -0
  52. package/dist/preprocess/index.d.ts +9 -6
  53. package/dist/preprocess/index.js +33 -8
  54. package/dist/resolve.js +5 -1
  55. package/dist/uni_modules.js +20 -4
  56. package/dist/utils.d.ts +2 -2
  57. package/dist/utils.js +9 -6
  58. package/dist/utsUtils.d.ts +1 -0
  59. package/dist/utsUtils.js +2 -1
  60. package/dist/vite/autoImport.js +91 -6
  61. package/dist/vite/plugins/console.js +1 -1
  62. package/dist/vite/plugins/cssScoped.js +2 -1
  63. package/dist/vite/plugins/easycom.js +7 -0
  64. package/dist/vite/plugins/json.js +69 -2
  65. package/dist/vite/plugins/pre.js +4 -2
  66. package/dist/vite/plugins/sfc.js +1 -1
  67. package/dist/vite/plugins/stats.js +32 -0
  68. package/dist/vite/plugins/uts/ext-api.js +1 -1
  69. package/dist/vite/plugins/uts/uni_modules.js +12 -0
  70. package/dist/vite/plugins/uts/uvue.js +7 -2
  71. package/dist/vite/plugins/vitejs/plugins/asset.d.ts +1 -0
  72. package/dist/vite/plugins/vitejs/plugins/asset.js +19 -1
  73. package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -1
  74. package/dist/vite/plugins/vitejs/plugins/css.js +27 -10
  75. package/dist/vite/utils/ast.d.ts +2 -1
  76. package/dist/vite/utils/ast.js +5 -1
  77. package/dist/vue/parse.d.ts +2 -0
  78. package/dist/vue/parse.js +3 -1
  79. package/dist/vue/transforms/index.d.ts +1 -0
  80. package/dist/vue/transforms/index.js +1 -0
  81. package/dist/vue/transforms/transformLineBreak.d.ts +2 -0
  82. package/dist/vue/transforms/transformLineBreak.js +15 -0
  83. package/dist/vue/transforms/transformTag.d.ts +1 -1
  84. package/dist/vue/transforms/transformTag.js +5 -0
  85. package/dist/vue/transforms/x/transformMPBuiltInTag.js +2 -2
  86. package/dist/vue/utils.js +8 -1
  87. package/lib/@vue/compiler-core/dist/compiler-core.cjs.js +42 -23
  88. package/lib/@vue/compiler-core/dist/compiler-core.cjs.prod.js +42 -23
  89. package/lib/@vue/compiler-core/dist/compiler-core.esm-bundler.js +39 -19
  90. package/lib/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +4635 -1024
  91. package/lib/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +8762 -7849
  92. package/lib/dom2/app/@vitejs/plugin-vue/LICENSE +21 -0
  93. package/lib/dom2/app/@vitejs/plugin-vue/README.md +278 -0
  94. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +3353 -0
  95. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.cts +113 -0
  96. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.mts +111 -0
  97. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.d.ts +113 -0
  98. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +3338 -0
  99. package/lib/dom2/app/@vitejs/plugin-vue/package.json +50 -0
  100. package/lib/dom2/app/@vue/compiler-core/LICENSE +21 -0
  101. package/lib/dom2/app/@vue/compiler-core/README.md +1 -0
  102. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +5492 -0
  103. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +5436 -0
  104. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +1187 -0
  105. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +4335 -0
  106. package/lib/dom2/app/@vue/compiler-core/index.js +7 -0
  107. package/lib/dom2/app/@vue/compiler-core/package.json +58 -0
  108. package/lib/dom2/app/@vue/compiler-dom/LICENSE +21 -0
  109. package/lib/dom2/app/@vue/compiler-dom/README.md +1 -0
  110. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +762 -0
  111. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +736 -0
  112. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.d.ts +73 -0
  113. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +5051 -0
  114. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +11 -0
  115. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +557 -0
  116. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +5234 -0
  117. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +11 -0
  118. package/lib/dom2/app/@vue/compiler-dom/index.js +7 -0
  119. package/lib/dom2/app/@vue/compiler-dom/package.json +57 -0
  120. package/lib/dom2/app/@vue/compiler-sfc/LICENSE +21 -0
  121. package/lib/dom2/app/@vue/compiler-sfc/README.md +80 -0
  122. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +15528 -0
  123. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11595 -0
  124. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +41525 -0
  125. package/lib/dom2/app/@vue/compiler-sfc/package.json +68 -0
  126. package/lib/dom2/app/@vue/compiler-vapor/LICENSE +21 -0
  127. package/lib/dom2/app/@vue/compiler-vapor/README.md +1 -0
  128. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +3584 -0
  129. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +22858 -0
  130. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +22438 -0
  131. package/lib/dom2/app/@vue/compiler-vapor/package.json +51 -0
  132. package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -0
  133. package/lib/dom2/app/@vue/compiler-vapor-dom2/package.json +56 -0
  134. package/lib/dom2/app/@vue/shared/LICENSE +21 -0
  135. package/lib/dom2/app/@vue/shared/README.md +3 -0
  136. package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +773 -0
  137. package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +773 -0
  138. package/lib/dom2/app/@vue/shared/dist/shared.d.ts +412 -0
  139. package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +688 -0
  140. package/lib/dom2/app/@vue/shared/index.js +7 -0
  141. package/lib/dom2/app/@vue/shared/package.json +47 -0
  142. package/lib/preprocess/lib/preprocess.js +9 -3
  143. package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.js +1 -1
  144. package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.prod.js +1 -1
  145. package/package.json +8 -6
@@ -0,0 +1,688 @@
1
+ /**
2
+ * @vue/shared v3.6.0-beta.5
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ //#region packages/shared/src/makeMap.ts
7
+ /**
8
+ * Make a map and return a function for checking if a key
9
+ * is in that map.
10
+ * IMPORTANT: all calls of this function must be prefixed with
11
+ * \/\*#\_\_PURE\_\_\*\/
12
+ * So that they can be tree-shaken if necessary.
13
+ */
14
+ /* @__NO_SIDE_EFFECTS__ */
15
+ function makeMap(str) {
16
+ const map = Object.create(null);
17
+ for (const key of str.split(",")) map[key] = 1;
18
+ return (val) => val in map;
19
+ }
20
+
21
+ //#endregion
22
+ //#region packages/shared/src/general.ts
23
+ const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
24
+ const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
25
+ const NOOP = () => {};
26
+ /**
27
+ * Always return true.
28
+ */
29
+ const YES = () => true;
30
+ /**
31
+ * Always return false.
32
+ */
33
+ const NO = () => false;
34
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
35
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
36
+ const isModelListener = (key) => key.startsWith("onUpdate:");
37
+ const extend = Object.assign;
38
+ const remove = (arr, el) => {
39
+ const i = arr.indexOf(el);
40
+ if (i > -1) arr.splice(i, 1);
41
+ };
42
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
43
+ const hasOwn = (val, key) => hasOwnProperty.call(val, key);
44
+ const isArray = Array.isArray;
45
+ const isMap = (val) => toTypeString(val) === "[object Map]";
46
+ const isSet = (val) => toTypeString(val) === "[object Set]";
47
+ const isDate = (val) => toTypeString(val) === "[object Date]";
48
+ const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
49
+ const isFunction = (val) => typeof val === "function";
50
+ const isString = (val) => typeof val === "string";
51
+ const isSymbol = (val) => typeof val === "symbol";
52
+ const isObject = (val) => val !== null && typeof val === "object";
53
+ const isPromise = (val) => {
54
+ return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
55
+ };
56
+ const objectToString = Object.prototype.toString;
57
+ const toTypeString = (value) => objectToString.call(value);
58
+ const toRawType = (value) => {
59
+ return toTypeString(value).slice(8, -1);
60
+ };
61
+ const isPlainObject = (val) => toTypeString(val) === "[object Object]";
62
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key || typeof key === "number" && Number.isInteger(key) && key >= 0;
63
+ const isReservedProp = /* @__PURE__ */ makeMap(",key,ref,ref_for,ref_key,__cid,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");
64
+ const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
65
+ const isBuiltInDirective = /* @__PURE__ */ makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo");
66
+ const cacheStringFunction = (fn) => {
67
+ const cache = Object.create(null);
68
+ return ((str) => {
69
+ return cache[str] || (cache[str] = fn(str));
70
+ });
71
+ };
72
+ const camelizeRE = /-(\w)/g;
73
+ const camelizeReplacer = (_, c) => c ? c.toUpperCase() : "";
74
+ /**
75
+ * @private
76
+ */
77
+ const camelize = cacheStringFunction((str) => str.replace(camelizeRE, camelizeReplacer));
78
+ const hyphenateRE = /\B([A-Z])/g;
79
+ /**
80
+ * @private
81
+ */
82
+ const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
83
+ /**
84
+ * @private
85
+ */
86
+ const capitalize = cacheStringFunction((str) => {
87
+ return str.charAt(0).toUpperCase() + str.slice(1);
88
+ });
89
+ /**
90
+ * @private
91
+ */
92
+ const toHandlerKey = cacheStringFunction((str) => {
93
+ return str ? `on${capitalize(str)}` : ``;
94
+ });
95
+ /**
96
+ * #13070 When v-model and v-model:model directives are used together,
97
+ * they will generate the same modelModifiers prop,
98
+ * so a `$` suffix is added to avoid conflicts.
99
+ * @private
100
+ */
101
+ const getModifierPropName = (name) => {
102
+ return `${name === "modelValue" || name === "model-value" ? "model" : name}Modifiers${name === "model" ? "$" : ""}`;
103
+ };
104
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
105
+ const invokeArrayFns = (fns, ...arg) => {
106
+ for (let i = 0; i < fns.length; i++) fns[i](...arg);
107
+ };
108
+ const def = (obj, key, value, writable = false) => {
109
+ Object.defineProperty(obj, key, {
110
+ configurable: true,
111
+ enumerable: false,
112
+ writable,
113
+ value
114
+ });
115
+ };
116
+ /**
117
+ * "123-foo" will be parsed to 123
118
+ * This is used for the .number modifier in v-model
119
+ */
120
+ const looseToNumber = (val) => {
121
+ const n = parseFloat(val);
122
+ return isNaN(n) ? val : n;
123
+ };
124
+ /**
125
+ * Only concerns number-like strings
126
+ * "123-foo" will be returned as-is
127
+ */
128
+ const toNumber = (val) => {
129
+ const n = isString(val) ? Number(val) : NaN;
130
+ return isNaN(n) ? val : n;
131
+ };
132
+ let _globalThis;
133
+ const getGlobalThis = () => {
134
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
135
+ };
136
+ const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;
137
+ function genPropsAccessExp(name) {
138
+ return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;
139
+ }
140
+ function genCacheKey(source, options) {
141
+ return source + JSON.stringify(options, (_, val) => typeof val === "function" ? val.toString() : val);
142
+ }
143
+ function canSetValueDirectly(tagName) {
144
+ return tagName !== "PROGRESS" && !tagName.includes("-");
145
+ }
146
+
147
+ //#endregion
148
+ //#region packages/shared/src/patchFlags.ts
149
+ /**
150
+ * Patch flags are optimization hints generated by the compiler.
151
+ * when a block with dynamicChildren is encountered during diff, the algorithm
152
+ * enters "optimized mode". In this mode, we know that the vdom is produced by
153
+ * a render function generated by the compiler, so the algorithm only needs to
154
+ * handle updates explicitly marked by these patch flags.
155
+ *
156
+ * Patch flags can be combined using the | bitwise operator and can be checked
157
+ * using the & operator, e.g.
158
+ *
159
+ * ```js
160
+ * const flag = TEXT | CLASS
161
+ * if (flag & TEXT) { ... }
162
+ * ```
163
+ *
164
+ * Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
165
+ * flags are handled during diff.
166
+ */
167
+ const PatchFlags = {
168
+ "TEXT": 1,
169
+ "1": "TEXT",
170
+ "CLASS": 2,
171
+ "2": "CLASS",
172
+ "STYLE": 4,
173
+ "4": "STYLE",
174
+ "PROPS": 8,
175
+ "8": "PROPS",
176
+ "FULL_PROPS": 16,
177
+ "16": "FULL_PROPS",
178
+ "NEED_HYDRATION": 32,
179
+ "32": "NEED_HYDRATION",
180
+ "STABLE_FRAGMENT": 64,
181
+ "64": "STABLE_FRAGMENT",
182
+ "KEYED_FRAGMENT": 128,
183
+ "128": "KEYED_FRAGMENT",
184
+ "UNKEYED_FRAGMENT": 256,
185
+ "256": "UNKEYED_FRAGMENT",
186
+ "NEED_PATCH": 512,
187
+ "512": "NEED_PATCH",
188
+ "DYNAMIC_SLOTS": 1024,
189
+ "1024": "DYNAMIC_SLOTS",
190
+ "DEV_ROOT_FRAGMENT": 2048,
191
+ "2048": "DEV_ROOT_FRAGMENT",
192
+ "CACHED": -1,
193
+ "-1": "CACHED",
194
+ "BAIL": -2,
195
+ "-2": "BAIL"
196
+ };
197
+ /**
198
+ * dev only flag -> name mapping
199
+ */
200
+ const PatchFlagNames = {
201
+ [1]: `TEXT`,
202
+ [2]: `CLASS`,
203
+ [4]: `STYLE`,
204
+ [8]: `PROPS`,
205
+ [16]: `FULL_PROPS`,
206
+ [32]: `NEED_HYDRATION`,
207
+ [64]: `STABLE_FRAGMENT`,
208
+ [128]: `KEYED_FRAGMENT`,
209
+ [256]: `UNKEYED_FRAGMENT`,
210
+ [512]: `NEED_PATCH`,
211
+ [1024]: `DYNAMIC_SLOTS`,
212
+ [2048]: `DEV_ROOT_FRAGMENT`,
213
+ [-1]: `CACHED`,
214
+ [-2]: `BAIL`
215
+ };
216
+
217
+ //#endregion
218
+ //#region packages/shared/src/shapeFlags.ts
219
+ const ShapeFlags = {
220
+ "ELEMENT": 1,
221
+ "1": "ELEMENT",
222
+ "FUNCTIONAL_COMPONENT": 2,
223
+ "2": "FUNCTIONAL_COMPONENT",
224
+ "STATEFUL_COMPONENT": 4,
225
+ "4": "STATEFUL_COMPONENT",
226
+ "TEXT_CHILDREN": 8,
227
+ "8": "TEXT_CHILDREN",
228
+ "ARRAY_CHILDREN": 16,
229
+ "16": "ARRAY_CHILDREN",
230
+ "SLOTS_CHILDREN": 32,
231
+ "32": "SLOTS_CHILDREN",
232
+ "TELEPORT": 64,
233
+ "64": "TELEPORT",
234
+ "SUSPENSE": 128,
235
+ "128": "SUSPENSE",
236
+ "COMPONENT_SHOULD_KEEP_ALIVE": 256,
237
+ "256": "COMPONENT_SHOULD_KEEP_ALIVE",
238
+ "COMPONENT_KEPT_ALIVE": 512,
239
+ "512": "COMPONENT_KEPT_ALIVE",
240
+ "COMPONENT": 6,
241
+ "6": "COMPONENT"
242
+ };
243
+
244
+ //#endregion
245
+ //#region packages/shared/src/slotFlags.ts
246
+ const SlotFlags = {
247
+ "STABLE": 1,
248
+ "1": "STABLE",
249
+ "DYNAMIC": 2,
250
+ "2": "DYNAMIC",
251
+ "FORWARDED": 3,
252
+ "3": "FORWARDED"
253
+ };
254
+ /**
255
+ * Dev only
256
+ */
257
+ const slotFlagsText = {
258
+ [1]: "STABLE",
259
+ [2]: "DYNAMIC",
260
+ [3]: "FORWARDED"
261
+ };
262
+
263
+ //#endregion
264
+ //#region packages/shared/src/globalsAllowList.ts
265
+ const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
266
+ const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
267
+ /** @deprecated use `isGloballyAllowed` instead */
268
+ const isGloballyWhitelisted = isGloballyAllowed;
269
+
270
+ //#endregion
271
+ //#region packages/shared/src/codeframe.ts
272
+ const range = 2;
273
+ function generateCodeFrame(source, start = 0, end = source.length) {
274
+ start = Math.max(0, Math.min(start, source.length));
275
+ end = Math.max(0, Math.min(end, source.length));
276
+ if (start > end) return "";
277
+ let lines = source.split(/(\r?\n)/);
278
+ const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
279
+ lines = lines.filter((_, idx) => idx % 2 === 0);
280
+ let count = 0;
281
+ const res = [];
282
+ for (let i = 0; i < lines.length; i++) {
283
+ count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);
284
+ if (count >= start) {
285
+ for (let j = i - range; j <= i + range || end > count; j++) {
286
+ if (j < 0 || j >= lines.length) continue;
287
+ const line = j + 1;
288
+ res.push(`${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
289
+ const lineLength = lines[j].length;
290
+ const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;
291
+ if (j === i) {
292
+ const pad = start - (count - (lineLength + newLineSeqLength));
293
+ const length = Math.max(1, end > count ? lineLength - pad : end - start);
294
+ res.push(` | ` + " ".repeat(pad) + "^".repeat(length));
295
+ } else if (j > i) {
296
+ if (end > count) {
297
+ const length = Math.max(Math.min(end - count, lineLength), 1);
298
+ res.push(` | ` + "^".repeat(length));
299
+ }
300
+ count += lineLength + newLineSeqLength;
301
+ }
302
+ }
303
+ break;
304
+ }
305
+ }
306
+ return res.join("\n");
307
+ }
308
+
309
+ //#endregion
310
+ //#region packages/shared/src/normalizeProp.ts
311
+ function normalizeStyle(value) {
312
+ if (isArray(value)) {
313
+ const res = {};
314
+ for (let i = 0; i < value.length; i++) {
315
+ const item = value[i];
316
+ const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
317
+ if (normalized) for (const key in normalized) res[key] = normalized[key];
318
+ }
319
+ return res;
320
+ } else if (isString(value) || isObject(value)) return value;
321
+ }
322
+ const listDelimiterRE = /;(?![^(]*\))/g;
323
+ const propertyDelimiterRE = /:([^]+)/;
324
+ const styleCommentRE = /\/\*[^]*?\*\//g;
325
+ function parseStringStyle(cssText) {
326
+ const ret = {};
327
+ cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
328
+ if (item) {
329
+ const tmp = item.split(propertyDelimiterRE);
330
+ tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
331
+ }
332
+ });
333
+ return ret;
334
+ }
335
+ function stringifyStyle(styles) {
336
+ if (!styles) return "";
337
+ if (isString(styles)) return styles;
338
+ let ret = "";
339
+ for (const key in styles) {
340
+ const value = styles[key];
341
+ if (isString(value) || typeof value === "number") {
342
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
343
+ ret += `${normalizedKey}:${value};`;
344
+ }
345
+ }
346
+ return ret;
347
+ }
348
+ function normalizeClass(value) {
349
+ let res = "";
350
+ if (isString(value)) res = value;
351
+ else if (isArray(value)) for (let i = 0; i < value.length; i++) {
352
+ const normalized = normalizeClass(value[i]);
353
+ if (normalized) res += normalized + " ";
354
+ }
355
+ else if (isObject(value)) {
356
+ for (const name in value) if (value[name]) res += name + " ";
357
+ }
358
+ return res.trim();
359
+ }
360
+ function normalizeProps(props) {
361
+ if (!props) return null;
362
+ let { class: klass, style } = props;
363
+ if (klass && !isString(klass)) props.class = normalizeClass(klass);
364
+ if (style) props.style = normalizeStyle(style);
365
+ return props;
366
+ }
367
+
368
+ //#endregion
369
+ //#region packages/shared/src/domTagConfig.ts
370
+ const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
371
+ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
372
+ const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
373
+ const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
374
+ const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
375
+ const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset";
376
+ const INLINE_TAGS = "a,abbr,acronym,b,bdi,bdo,big,br,button,canvas,cite,code,data,datalist,del,dfn,em,embed,i,iframe,img,input,ins,kbd,label,map,mark,meter,noscript,object,output,picture,progress,q,ruby,s,samp,script,select,small,span,strong,sub,sup,svg,textarea,time,u,tt,var,video";
377
+ const BLOCK_TAGS = "address,article,aside,blockquote,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,main,menu,nav,ol,p,pre,section,table,ul";
378
+ /**
379
+ * Compiler only.
380
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
381
+ */
382
+ const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
383
+ /**
384
+ * Compiler only.
385
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
386
+ */
387
+ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
388
+ /**
389
+ * Compiler only.
390
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
391
+ */
392
+ const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
393
+ /**
394
+ * Compiler only.
395
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
396
+ */
397
+ const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
398
+ /**
399
+ * Compiler only.
400
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
401
+ */
402
+ const isFormattingTag = /* @__PURE__ */ makeMap(FORMATTING_TAGS);
403
+ /**
404
+ * Compiler only.
405
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
406
+ */
407
+ const isAlwaysCloseTag = /* @__PURE__ */ makeMap(ALWAYS_CLOSE_TAGS);
408
+ /**
409
+ * Compiler only.
410
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
411
+ */
412
+ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
413
+ /**
414
+ * Compiler only.
415
+ * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
416
+ */
417
+ const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
418
+
419
+ //#endregion
420
+ //#region packages/shared/src/domAttrConfig.ts
421
+ /**
422
+ * On the client we only need to offer special cases for boolean attributes that
423
+ * have different names from their corresponding dom properties:
424
+ * - itemscope -> N/A
425
+ * - allowfullscreen -> allowFullscreen
426
+ * - formnovalidate -> formNoValidate
427
+ * - ismap -> isMap
428
+ * - nomodule -> noModule
429
+ * - novalidate -> noValidate
430
+ * - readonly -> readOnly
431
+ */
432
+ const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
433
+ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
434
+ /**
435
+ * The full list is needed during SSR to produce the correct initial markup.
436
+ */
437
+ const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + ",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");
438
+ /**
439
+ * Boolean attributes should be included if the value is truthy or ''.
440
+ * e.g. `<select multiple>` compiles to `{ multiple: '' }`
441
+ */
442
+ function includeBooleanAttr(value) {
443
+ return !!value || value === "";
444
+ }
445
+ const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
446
+ const attrValidationCache = {};
447
+ function isSSRSafeAttrName(name) {
448
+ if (attrValidationCache.hasOwnProperty(name)) return attrValidationCache[name];
449
+ const isUnsafe = unsafeAttrCharRE.test(name);
450
+ if (isUnsafe) console.error(`unsafe attribute name: ${name}`);
451
+ return attrValidationCache[name] = !isUnsafe;
452
+ }
453
+ const propsToAttrMap = {
454
+ acceptCharset: "accept-charset",
455
+ className: "class",
456
+ htmlFor: "for",
457
+ httpEquiv: "http-equiv"
458
+ };
459
+ /**
460
+ * Known attributes, this is used for stringification of runtime static nodes
461
+ * so that we don't stringify bindings that cannot be set from HTML.
462
+ * Don't also forget to allow `data-*` and `aria-*`!
463
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
464
+ */
465
+ const isKnownHtmlAttr = /* @__PURE__ */ makeMap("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");
466
+ /**
467
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
468
+ */
469
+ const isKnownSvgAttr = /* @__PURE__ */ makeMap("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");
470
+ /**
471
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute
472
+ */
473
+ const isKnownMathMLAttr = /* @__PURE__ */ makeMap("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");
474
+ /**
475
+ * Shared between server-renderer and runtime-core hydration logic
476
+ */
477
+ function isRenderableAttrValue(value) {
478
+ if (value == null) return false;
479
+ const type = typeof value;
480
+ return type === "string" || type === "number" || type === "boolean";
481
+ }
482
+ function shouldSetAsAttr(tagName, key) {
483
+ if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") return true;
484
+ if (key === "form") return true;
485
+ if (key === "list" && tagName === "INPUT") return true;
486
+ if (key === "type" && tagName === "TEXTAREA") return true;
487
+ if ((key === "width" || key === "height") && (tagName === "IMG" || tagName === "VIDEO" || tagName === "CANVAS" || tagName === "SOURCE")) return true;
488
+ if (key === "sandbox" && tagName === "IFRAME") return true;
489
+ return false;
490
+ }
491
+
492
+ //#endregion
493
+ //#region packages/shared/src/domNamespace.ts
494
+ const Namespaces = {
495
+ "HTML": 0,
496
+ "0": "HTML",
497
+ "SVG": 1,
498
+ "1": "SVG",
499
+ "MATH_ML": 2,
500
+ "2": "MATH_ML"
501
+ };
502
+
503
+ //#endregion
504
+ //#region packages/shared/src/escapeHtml.ts
505
+ const escapeRE = /["'&<>]/;
506
+ function escapeHtml(string) {
507
+ const str = "" + string;
508
+ const match = escapeRE.exec(str);
509
+ if (!match) return str;
510
+ let html = "";
511
+ let escaped;
512
+ let index;
513
+ let lastIndex = 0;
514
+ for (index = match.index; index < str.length; index++) {
515
+ switch (str.charCodeAt(index)) {
516
+ case 34:
517
+ escaped = "&quot;";
518
+ break;
519
+ case 38:
520
+ escaped = "&amp;";
521
+ break;
522
+ case 39:
523
+ escaped = "&#39;";
524
+ break;
525
+ case 60:
526
+ escaped = "&lt;";
527
+ break;
528
+ case 62:
529
+ escaped = "&gt;";
530
+ break;
531
+ default: continue;
532
+ }
533
+ if (lastIndex !== index) html += str.slice(lastIndex, index);
534
+ lastIndex = index + 1;
535
+ html += escaped;
536
+ }
537
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
538
+ }
539
+ const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
540
+ function escapeHtmlComment(src) {
541
+ return src.replace(commentStripRE, "");
542
+ }
543
+ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
544
+ function getEscapedCssVarName(key, doubleEscape) {
545
+ return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
546
+ }
547
+
548
+ //#endregion
549
+ //#region packages/shared/src/looseEqual.ts
550
+ function looseCompareArrays(a, b) {
551
+ if (a.length !== b.length) return false;
552
+ let equal = true;
553
+ for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i]);
554
+ return equal;
555
+ }
556
+ function looseEqual(a, b) {
557
+ if (a === b) return true;
558
+ let aValidType = isDate(a);
559
+ let bValidType = isDate(b);
560
+ if (aValidType || bValidType) return aValidType && bValidType ? a.getTime() === b.getTime() : false;
561
+ aValidType = isSymbol(a);
562
+ bValidType = isSymbol(b);
563
+ if (aValidType || bValidType) return a === b;
564
+ aValidType = isArray(a);
565
+ bValidType = isArray(b);
566
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareArrays(a, b) : false;
567
+ aValidType = isObject(a);
568
+ bValidType = isObject(b);
569
+ if (aValidType || bValidType) {
570
+ if (!aValidType || !bValidType) return false;
571
+ if (Object.keys(a).length !== Object.keys(b).length) return false;
572
+ for (const key in a) {
573
+ const aHasKey = a.hasOwnProperty(key);
574
+ const bHasKey = b.hasOwnProperty(key);
575
+ if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) return false;
576
+ }
577
+ }
578
+ return String(a) === String(b);
579
+ }
580
+ function looseIndexOf(arr, val) {
581
+ return arr.findIndex((item) => looseEqual(item, val));
582
+ }
583
+
584
+ //#endregion
585
+ //#region packages/shared/src/toDisplayString.ts
586
+ const isRef = (val) => {
587
+ return !!(val && val["__v_isRef"] === true);
588
+ };
589
+ /**
590
+ * For converting {{ interpolation }} values to displayed strings.
591
+ * @private
592
+ */
593
+ const toDisplayString = (val) => {
594
+ switch (typeof val) {
595
+ case "string": return val;
596
+ case "object": if (val) {
597
+ if (isRef(val)) return toDisplayString(val.value);
598
+ else if (isArray(val) || val.toString === objectToString || !isFunction(val.toString)) return JSON.stringify(val, replacer, 2);
599
+ }
600
+ default: return val == null ? "" : String(val);
601
+ }
602
+ };
603
+ const replacer = (_key, val) => {
604
+ if (isRef(val)) return replacer(_key, val.value);
605
+ else if (isMap(val)) return { [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val], i) => {
606
+ entries[stringifySymbol(key, i) + " =>"] = val;
607
+ return entries;
608
+ }, {}) };
609
+ else if (isSet(val)) return { [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v)) };
610
+ else if (isSymbol(val)) return stringifySymbol(val);
611
+ else if (isObject(val) && !isArray(val) && !isPlainObject(val)) return String(val);
612
+ return val;
613
+ };
614
+ const stringifySymbol = (v, i = "") => {
615
+ var _description;
616
+ return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
617
+ };
618
+
619
+ //#endregion
620
+ //#region packages/shared/src/subSequence.ts
621
+ function getSequence(arr) {
622
+ const p = arr.slice();
623
+ const result = [0];
624
+ let i, j, u, v, c;
625
+ const len = arr.length;
626
+ for (i = 0; i < len; i++) {
627
+ const arrI = arr[i];
628
+ if (arrI !== 0) {
629
+ j = result[result.length - 1];
630
+ if (arr[j] < arrI) {
631
+ p[i] = j;
632
+ result.push(i);
633
+ continue;
634
+ }
635
+ u = 0;
636
+ v = result.length - 1;
637
+ while (u < v) {
638
+ c = u + v >> 1;
639
+ if (arr[result[c]] < arrI) u = c + 1;
640
+ else v = c;
641
+ }
642
+ if (arrI < arr[result[u]]) {
643
+ if (u > 0) p[i] = result[u - 1];
644
+ result[u] = i;
645
+ }
646
+ }
647
+ }
648
+ u = result.length;
649
+ v = result[u - 1];
650
+ while (u-- > 0) {
651
+ result[u] = v;
652
+ v = p[v];
653
+ }
654
+ return result;
655
+ }
656
+
657
+ //#endregion
658
+ //#region packages/shared/src/cssVars.ts
659
+ /**
660
+ * Normalize CSS var value created by `v-bind` in `<style>` block
661
+ * See https://github.com/vuejs/core/pull/12461#issuecomment-2495804664
662
+ */
663
+ function normalizeCssVarValue(value) {
664
+ if (value == null) return "initial";
665
+ if (typeof value === "string") return value === "" ? " " : value;
666
+ if (typeof value !== "number" || !Number.isFinite(value)) {
667
+ if (!!(process.env.NODE_ENV !== "production")) console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", value);
668
+ }
669
+ return String(value);
670
+ }
671
+
672
+ //#endregion
673
+ //#region packages/shared/src/vaporFlags.ts
674
+ /**
675
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
676
+ * compiler and the runtime
677
+ */
678
+ const VaporVForFlags = {
679
+ "FAST_REMOVE": 1,
680
+ "1": "FAST_REMOVE",
681
+ "IS_COMPONENT": 2,
682
+ "2": "IS_COMPONENT",
683
+ "ONCE": 4,
684
+ "4": "ONCE"
685
+ };
686
+
687
+ //#endregion
688
+ export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };