@vxrn/compiler 1.1.397
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.
- package/LICENSE +45 -0
- package/dist/cjs/configure.cjs +34 -0
- package/dist/cjs/configure.js +29 -0
- package/dist/cjs/configure.js.map +6 -0
- package/dist/cjs/configure.native.js +35 -0
- package/dist/cjs/configure.native.js.map +6 -0
- package/dist/cjs/constants.cjs +65 -0
- package/dist/cjs/constants.js +34 -0
- package/dist/cjs/constants.js.map +6 -0
- package/dist/cjs/constants.native.js +65 -0
- package/dist/cjs/constants.native.js.map +6 -0
- package/dist/cjs/index.cjs +124 -0
- package/dist/cjs/index.js +113 -0
- package/dist/cjs/index.js.map +6 -0
- package/dist/cjs/index.native.js +123 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/refresh-runtime.cjs +295 -0
- package/dist/cjs/refresh-runtime.js +296 -0
- package/dist/cjs/refresh-runtime.js.map +6 -0
- package/dist/cjs/refresh-runtime.native.js +316 -0
- package/dist/cjs/refresh-runtime.native.js.map +6 -0
- package/dist/cjs/transformBabel.cjs +111 -0
- package/dist/cjs/transformBabel.js +116 -0
- package/dist/cjs/transformBabel.js.map +6 -0
- package/dist/cjs/transformBabel.native.js +152 -0
- package/dist/cjs/transformBabel.native.js.map +6 -0
- package/dist/cjs/transformSWC.cjs +261 -0
- package/dist/cjs/transformSWC.js +256 -0
- package/dist/cjs/transformSWC.js.map +6 -0
- package/dist/cjs/transformSWC.native.js +275 -0
- package/dist/cjs/transformSWC.native.js.map +6 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/types.js.map +6 -0
- package/dist/cjs/types.native.js +15 -0
- package/dist/cjs/types.native.js.map +6 -0
- package/dist/esm/configure.js +13 -0
- package/dist/esm/configure.js.map +6 -0
- package/dist/esm/configure.mjs +10 -0
- package/dist/esm/configure.mjs.map +1 -0
- package/dist/esm/configure.native.js +13 -0
- package/dist/esm/configure.native.js.map +6 -0
- package/dist/esm/constants.js +18 -0
- package/dist/esm/constants.js.map +6 -0
- package/dist/esm/constants.mjs +38 -0
- package/dist/esm/constants.mjs.map +1 -0
- package/dist/esm/constants.native.js +41 -0
- package/dist/esm/constants.native.js.map +6 -0
- package/dist/esm/index.js +102 -0
- package/dist/esm/index.js.map +6 -0
- package/dist/esm/index.mjs +99 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +104 -0
- package/dist/esm/index.native.js.map +6 -0
- package/dist/esm/refresh-runtime.js +280 -0
- package/dist/esm/refresh-runtime.js.map +6 -0
- package/dist/esm/refresh-runtime.mjs +266 -0
- package/dist/esm/refresh-runtime.mjs.map +1 -0
- package/dist/esm/refresh-runtime.native.js +290 -0
- package/dist/esm/refresh-runtime.native.js.map +6 -0
- package/dist/esm/transformBabel.js +95 -0
- package/dist/esm/transformBabel.js.map +6 -0
- package/dist/esm/transformBabel.mjs +76 -0
- package/dist/esm/transformBabel.mjs.map +1 -0
- package/dist/esm/transformBabel.native.js +125 -0
- package/dist/esm/transformBabel.native.js.map +6 -0
- package/dist/esm/transformSWC.js +246 -0
- package/dist/esm/transformSWC.js.map +6 -0
- package/dist/esm/transformSWC.mjs +237 -0
- package/dist/esm/transformSWC.mjs.map +1 -0
- package/dist/esm/transformSWC.native.js +257 -0
- package/dist/esm/transformSWC.native.js.map +6 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/types.js.map +6 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +1 -0
- package/dist/esm/types.native.js.map +6 -0
- package/package.json +54 -0
- package/src/configure.ts +17 -0
- package/src/constants.ts +21 -0
- package/src/index.ts +166 -0
- package/src/refresh-runtime.js +619 -0
- package/src/transformBabel.ts +218 -0
- package/src/transformSWC.ts +381 -0
- package/src/types.ts +36 -0
- package/types/configure.d.ts +10 -0
- package/types/configure.d.ts.map +1 -0
- package/types/constants.d.ts +9 -0
- package/types/constants.d.ts.map +1 -0
- package/types/index.d.ts +12 -0
- package/types/index.d.ts.map +1 -0
- package/types/transformBabel.d.ts +12 -0
- package/types/transformBabel.d.ts.map +1 -0
- package/types/transformSWC.d.ts +7 -0
- package/types/transformSWC.d.ts.map +1 -0
- package/types/types.d.ts +29 -0
- package/types/types.d.ts.map +1 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var refresh_runtime_exports = {};
|
|
16
|
+
__export(refresh_runtime_exports, {
|
|
17
|
+
__hmr_import: () => __hmr_import,
|
|
18
|
+
createSignatureFunctionForTransform: () => createSignatureFunctionForTransform,
|
|
19
|
+
default: () => refresh_runtime_default,
|
|
20
|
+
getRefreshReg: () => getRefreshReg,
|
|
21
|
+
injectIntoGlobalHook: () => injectIntoGlobalHook,
|
|
22
|
+
registerExportsForReactRefresh: () => registerExportsForReactRefresh,
|
|
23
|
+
validateRefreshBoundaryAndEnqueueUpdate: () => validateRefreshBoundaryAndEnqueueUpdate
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(refresh_runtime_exports);
|
|
26
|
+
/*! Copyright (c) Meta Platforms, Inc. and affiliates. **/
|
|
27
|
+
const REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
28
|
+
let allFamiliesByID = /* @__PURE__ */ new Map(), allFamiliesByType = /* @__PURE__ */ new WeakMap(), allSignaturesByType = /* @__PURE__ */ new WeakMap();
|
|
29
|
+
const updatedFamiliesByType = /* @__PURE__ */ new WeakMap();
|
|
30
|
+
let pendingUpdates = [];
|
|
31
|
+
const helpersByRendererID = /* @__PURE__ */ new Map(), helpersByRoot = /* @__PURE__ */ new Map(), mountedRoots = /* @__PURE__ */ new Set(), failedRoots = /* @__PURE__ */ new Set();
|
|
32
|
+
let rootElements = /* @__PURE__ */ new WeakMap(), isPerformingRefresh = !1;
|
|
33
|
+
function computeFullKey(signature) {
|
|
34
|
+
if (signature.fullKey !== null)
|
|
35
|
+
return signature.fullKey;
|
|
36
|
+
let fullKey = signature.ownKey, hooks2;
|
|
37
|
+
try {
|
|
38
|
+
hooks2 = signature.getCustomHooks();
|
|
39
|
+
} catch {
|
|
40
|
+
return signature.forceReset = !0, signature.fullKey = fullKey, fullKey;
|
|
41
|
+
}
|
|
42
|
+
for (let i = 0; i < hooks2.length; i++) {
|
|
43
|
+
const hook = hooks2[i];
|
|
44
|
+
if (typeof hook != "function")
|
|
45
|
+
return signature.forceReset = !0, signature.fullKey = fullKey, fullKey;
|
|
46
|
+
const nestedHookSignature = allSignaturesByType.get(hook);
|
|
47
|
+
if (nestedHookSignature === void 0)
|
|
48
|
+
continue;
|
|
49
|
+
const nestedHookKey = computeFullKey(nestedHookSignature);
|
|
50
|
+
nestedHookSignature.forceReset && (signature.forceReset = !0), fullKey += `
|
|
51
|
+
---
|
|
52
|
+
` + nestedHookKey;
|
|
53
|
+
}
|
|
54
|
+
return signature.fullKey = fullKey, fullKey;
|
|
55
|
+
}
|
|
56
|
+
function haveEqualSignatures(prevType, nextType) {
|
|
57
|
+
const prevSignature = allSignaturesByType.get(prevType), nextSignature = allSignaturesByType.get(nextType);
|
|
58
|
+
return prevSignature === void 0 && nextSignature === void 0 ? !0 : !(prevSignature === void 0 || nextSignature === void 0 || computeFullKey(prevSignature) !== computeFullKey(nextSignature) || nextSignature.forceReset);
|
|
59
|
+
}
|
|
60
|
+
function isReactClass(type) {
|
|
61
|
+
return type.prototype && type.prototype.isReactComponent;
|
|
62
|
+
}
|
|
63
|
+
function canPreserveStateBetween(prevType, nextType) {
|
|
64
|
+
return isReactClass(prevType) || isReactClass(nextType) ? !1 : !!haveEqualSignatures(prevType, nextType);
|
|
65
|
+
}
|
|
66
|
+
function resolveFamily(type) {
|
|
67
|
+
return updatedFamiliesByType.get(type);
|
|
68
|
+
}
|
|
69
|
+
function getProperty(object, property) {
|
|
70
|
+
try {
|
|
71
|
+
return object[property];
|
|
72
|
+
} catch {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function performReactRefresh() {
|
|
77
|
+
if (pendingUpdates.length === 0 || isPerformingRefresh)
|
|
78
|
+
return null;
|
|
79
|
+
isPerformingRefresh = !0;
|
|
80
|
+
try {
|
|
81
|
+
const staleFamilies = /* @__PURE__ */ new Set(), updatedFamilies = /* @__PURE__ */ new Set(), updates = pendingUpdates;
|
|
82
|
+
pendingUpdates = [], updates.forEach(([family, nextType]) => {
|
|
83
|
+
const prevType = family.current;
|
|
84
|
+
updatedFamiliesByType.set(prevType, family), updatedFamiliesByType.set(nextType, family), family.current = nextType, canPreserveStateBetween(prevType, nextType) ? updatedFamilies.add(family) : staleFamilies.add(family);
|
|
85
|
+
});
|
|
86
|
+
const update = {
|
|
87
|
+
updatedFamilies,
|
|
88
|
+
// Families that will re-render preserving state
|
|
89
|
+
staleFamilies
|
|
90
|
+
// Families that will be remounted
|
|
91
|
+
};
|
|
92
|
+
helpersByRendererID.forEach((helpers) => {
|
|
93
|
+
helpers.setRefreshHandler(resolveFamily);
|
|
94
|
+
});
|
|
95
|
+
let didError = !1, firstError = null;
|
|
96
|
+
const failedRootsSnapshot = new Set(failedRoots), mountedRootsSnapshot = new Set(mountedRoots), helpersByRootSnapshot = new Map(helpersByRoot);
|
|
97
|
+
if (failedRootsSnapshot.forEach((root) => {
|
|
98
|
+
const helpers = helpersByRootSnapshot.get(root);
|
|
99
|
+
if (helpers === void 0)
|
|
100
|
+
throw new Error("Could not find helpers for a root. This is a bug in React Refresh.");
|
|
101
|
+
if (failedRoots.has(root), rootElements === null || !rootElements.has(root))
|
|
102
|
+
return;
|
|
103
|
+
const element = rootElements.get(root);
|
|
104
|
+
try {
|
|
105
|
+
helpers.scheduleRoot(root, element);
|
|
106
|
+
} catch (err) {
|
|
107
|
+
didError || (didError = !0, firstError = err);
|
|
108
|
+
}
|
|
109
|
+
}), mountedRootsSnapshot.forEach((root) => {
|
|
110
|
+
const helpers = helpersByRootSnapshot.get(root);
|
|
111
|
+
if (helpers === void 0)
|
|
112
|
+
throw new Error("Could not find helpers for a root. This is a bug in React Refresh.");
|
|
113
|
+
mountedRoots.has(root);
|
|
114
|
+
try {
|
|
115
|
+
helpers.scheduleRefresh(root, update);
|
|
116
|
+
} catch (err) {
|
|
117
|
+
didError || (didError = !0, firstError = err);
|
|
118
|
+
}
|
|
119
|
+
}), didError)
|
|
120
|
+
throw firstError;
|
|
121
|
+
return update;
|
|
122
|
+
} finally {
|
|
123
|
+
isPerformingRefresh = !1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function register(type, id) {
|
|
127
|
+
if (type === null || typeof type != "function" && typeof type != "object" || allFamiliesByType.has(type))
|
|
128
|
+
return;
|
|
129
|
+
let family = allFamiliesByID.get(id);
|
|
130
|
+
if (family === void 0 ? (family = { current: type }, allFamiliesByID.set(id, family)) : pendingUpdates.push([family, type]), allFamiliesByType.set(type, family), typeof type == "object" && type !== null)
|
|
131
|
+
switch (getProperty(type, "$$typeof")) {
|
|
132
|
+
case REACT_FORWARD_REF_TYPE:
|
|
133
|
+
register(type.render, id + "$render");
|
|
134
|
+
break;
|
|
135
|
+
case REACT_MEMO_TYPE:
|
|
136
|
+
register(type.type, id + "$type");
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function setSignature(type, key, forceReset, getCustomHooks) {
|
|
141
|
+
if (allSignaturesByType.has(type) || allSignaturesByType.set(type, {
|
|
142
|
+
forceReset,
|
|
143
|
+
ownKey: key,
|
|
144
|
+
fullKey: null,
|
|
145
|
+
getCustomHooks: getCustomHooks || (() => [])
|
|
146
|
+
}), typeof type == "object" && type !== null)
|
|
147
|
+
switch (getProperty(type, "$$typeof")) {
|
|
148
|
+
case REACT_FORWARD_REF_TYPE:
|
|
149
|
+
setSignature(type.render, key, forceReset, getCustomHooks);
|
|
150
|
+
break;
|
|
151
|
+
case REACT_MEMO_TYPE:
|
|
152
|
+
setSignature(type.type, key, forceReset, getCustomHooks);
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function collectCustomHooksForSignature(type) {
|
|
157
|
+
const signature = allSignaturesByType.get(type);
|
|
158
|
+
signature !== void 0 && computeFullKey(signature);
|
|
159
|
+
}
|
|
160
|
+
function injectIntoGlobalHook(globalObject) {
|
|
161
|
+
let hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
162
|
+
if (hook === void 0) {
|
|
163
|
+
let nextID = 0;
|
|
164
|
+
globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
|
|
165
|
+
renderers: /* @__PURE__ */ new Map(),
|
|
166
|
+
supportsFiber: !0,
|
|
167
|
+
inject: (injected) => nextID++,
|
|
168
|
+
onScheduleFiberRoot: (id, root, children) => {
|
|
169
|
+
},
|
|
170
|
+
onCommitFiberRoot: (id, root, maybePriorityLevel, didError) => {
|
|
171
|
+
},
|
|
172
|
+
onCommitFiberUnmount() {
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
if (hook.isDisabled) {
|
|
177
|
+
console.warn(
|
|
178
|
+
"Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled."
|
|
179
|
+
);
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const oldInject = hook.inject;
|
|
183
|
+
hook.inject = function(injected) {
|
|
184
|
+
const id = oldInject.apply(this, arguments);
|
|
185
|
+
return typeof injected.scheduleRefresh == "function" && typeof injected.setRefreshHandler == "function" && helpersByRendererID.set(id, injected), id;
|
|
186
|
+
}, hook.renderers.forEach((injected, id) => {
|
|
187
|
+
typeof injected.scheduleRefresh == "function" && typeof injected.setRefreshHandler == "function" && helpersByRendererID.set(id, injected);
|
|
188
|
+
});
|
|
189
|
+
const oldOnCommitFiberRoot = hook.onCommitFiberRoot, oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || (() => {
|
|
190
|
+
});
|
|
191
|
+
hook.onScheduleFiberRoot = function(id, root, children) {
|
|
192
|
+
return isPerformingRefresh || (failedRoots.delete(root), rootElements !== null && rootElements.set(root, children)), oldOnScheduleFiberRoot.apply(this, arguments);
|
|
193
|
+
}, hook.onCommitFiberRoot = function(id, root, maybePriorityLevel, didError) {
|
|
194
|
+
const helpers = helpersByRendererID.get(id);
|
|
195
|
+
if (helpers !== void 0) {
|
|
196
|
+
helpersByRoot.set(root, helpers);
|
|
197
|
+
const current = root.current, alternate = current.alternate;
|
|
198
|
+
if (alternate !== null) {
|
|
199
|
+
const wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root), isMounted = current.memoizedState != null && current.memoizedState.element != null;
|
|
200
|
+
!wasMounted && isMounted ? (mountedRoots.add(root), failedRoots.delete(root)) : wasMounted && isMounted || (wasMounted && !isMounted ? (mountedRoots.delete(root), didError ? failedRoots.add(root) : helpersByRoot.delete(root)) : !wasMounted && !isMounted && didError && failedRoots.add(root));
|
|
201
|
+
} else
|
|
202
|
+
mountedRoots.add(root);
|
|
203
|
+
}
|
|
204
|
+
return oldOnCommitFiberRoot.apply(this, arguments);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function createSignatureFunctionForTransform() {
|
|
208
|
+
let savedType, hasCustomHooks, didCollectHooks = !1;
|
|
209
|
+
return (type, key, forceReset, getCustomHooks) => {
|
|
210
|
+
if (typeof key == "string")
|
|
211
|
+
return savedType || (savedType = type, hasCustomHooks = typeof getCustomHooks == "function"), type != null && (typeof type == "function" || typeof type == "object") && setSignature(type, key, forceReset, getCustomHooks), type;
|
|
212
|
+
!didCollectHooks && hasCustomHooks && (didCollectHooks = !0, collectCustomHooksForSignature(savedType));
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function isLikelyComponentType(type) {
|
|
216
|
+
switch (typeof type) {
|
|
217
|
+
case "function": {
|
|
218
|
+
if (type.prototype != null) {
|
|
219
|
+
if (type.prototype.isReactComponent)
|
|
220
|
+
return !0;
|
|
221
|
+
const ownNames = Object.getOwnPropertyNames(type.prototype);
|
|
222
|
+
if (ownNames.length > 1 || ownNames[0] !== "constructor" || type.prototype.__proto__ !== Object.prototype)
|
|
223
|
+
return !1;
|
|
224
|
+
}
|
|
225
|
+
const name = type.name || type.displayName;
|
|
226
|
+
return typeof name == "string" && /^[A-Z]/.test(name);
|
|
227
|
+
}
|
|
228
|
+
case "object": {
|
|
229
|
+
if (type != null)
|
|
230
|
+
switch (getProperty(type, "$$typeof")) {
|
|
231
|
+
case REACT_FORWARD_REF_TYPE:
|
|
232
|
+
case REACT_MEMO_TYPE:
|
|
233
|
+
return !0;
|
|
234
|
+
default:
|
|
235
|
+
return !1;
|
|
236
|
+
}
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
default:
|
|
240
|
+
return !1;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function getRefreshReg(filename) {
|
|
244
|
+
return (type, id) => register(type, filename + " " + id);
|
|
245
|
+
}
|
|
246
|
+
function registerExportsForReactRefresh(filename, moduleExports) {
|
|
247
|
+
for (const key in moduleExports) {
|
|
248
|
+
if (key === "__esModule") continue;
|
|
249
|
+
const exportValue = moduleExports[key];
|
|
250
|
+
isLikelyComponentType(exportValue) && register(exportValue, filename + " export " + key);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
function debounce(fn, delay) {
|
|
254
|
+
let handle;
|
|
255
|
+
return () => {
|
|
256
|
+
clearTimeout(handle), handle = setTimeout(fn, delay);
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
const hooks = [];
|
|
260
|
+
window.__registerBeforePerformReactRefresh = (cb) => {
|
|
261
|
+
hooks.push(cb);
|
|
262
|
+
};
|
|
263
|
+
const enqueueUpdate = debounce(async () => {
|
|
264
|
+
hooks.length && await Promise.all(hooks.map((cb) => cb())), performReactRefresh();
|
|
265
|
+
}, 16);
|
|
266
|
+
function validateRefreshBoundaryAndEnqueueUpdate(id, prevExports, nextExports) {
|
|
267
|
+
const ignoredExports = window.__getReactRefreshIgnoredExports?.({ id }) ?? [];
|
|
268
|
+
if (predicateOnExport(ignoredExports, prevExports, (key) => key in nextExports) !== !0)
|
|
269
|
+
return "Could not Fast Refresh (export removed)";
|
|
270
|
+
if (predicateOnExport(ignoredExports, nextExports, (key) => key in prevExports) !== !0)
|
|
271
|
+
return "Could not Fast Refresh (new export)";
|
|
272
|
+
let hasExports = !1;
|
|
273
|
+
const allExportsAreComponentsOrUnchanged = predicateOnExport(
|
|
274
|
+
ignoredExports,
|
|
275
|
+
nextExports,
|
|
276
|
+
(key, value) => (hasExports = !0, isLikelyComponentType(value) ? !0 : prevExports[key] === nextExports[key])
|
|
277
|
+
);
|
|
278
|
+
if (hasExports && allExportsAreComponentsOrUnchanged === !0)
|
|
279
|
+
enqueueUpdate();
|
|
280
|
+
else
|
|
281
|
+
return `Could not Fast Refresh ("${allExportsAreComponentsOrUnchanged}" export is incompatible). Learn more at https://github.com/vitejs/vite-plugin-react-swc#consistent-components-exports`;
|
|
282
|
+
}
|
|
283
|
+
function predicateOnExport(ignoredExports, moduleExports, predicate) {
|
|
284
|
+
for (const key in moduleExports) {
|
|
285
|
+
if (key === "__esModule" || ignoredExports.includes(key)) continue;
|
|
286
|
+
const desc = Object.getOwnPropertyDescriptor(moduleExports, key);
|
|
287
|
+
if (desc && desc.get || !predicate(key, moduleExports[key])) return key;
|
|
288
|
+
}
|
|
289
|
+
return !0;
|
|
290
|
+
}
|
|
291
|
+
const __hmr_import = (module2) => import(
|
|
292
|
+
/* @vite-ignore */
|
|
293
|
+
module2
|
|
294
|
+
);
|
|
295
|
+
var refresh_runtime_default = { injectIntoGlobalHook };
|
|
296
|
+
//# sourceMappingURL=refresh-runtime.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/refresh-runtime.js"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,MAAM,yBAAyB,OAAO,IAAI,mBAAmB,GACvD,kBAAkB,OAAO,IAAI,YAAY;AAI/C,IAAI,kBAAkB,oBAAI,IAAI,GAC1B,oBAAoB,oBAAI,QAAQ,GAChC,sBAAsB,oBAAI,QAAQ;AAItC,MAAM,wBAAwB,oBAAI,QAAQ;AAI1C,IAAI,iBAAiB,CAAC;AAGtB,MAAM,sBAAsB,oBAAI,IAAI,GAE9B,gBAAgB,oBAAI,IAAI,GAGxB,eAAe,oBAAI,IAAI,GAEvB,cAAc,oBAAI,IAAI;AAK5B,IAAI,eAAe,oBAAI,QAAQ,GAC3B,sBAAsB;AAE1B,SAAS,eAAe,WAAW;AACjC,MAAI,UAAU,YAAY;AACxB,WAAO,UAAU;AAGnB,MAAI,UAAU,UAAU,QACpBA;AACJ,MAAI;AACF,IAAAA,SAAQ,UAAU,eAAe;AAAA,EACnC,QAAc;AAIZ,qBAAU,aAAa,IACvB,UAA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4B,kCAAkC;AAEzE;AAEA,SAAS,kBAAkB,gBAAgB,eAAe,WAAW;AACnE,aAAW,OAAO,eAAe;AAE/B,QADI,QAAQ,gBACR,eAAe,SAAS,GAAG,EAAG;AAClC,UAAM,OAAO,OAAO,yBAAyB,eAAe,GAAG;AAE/D,QADI,QAAQ,KAAK,OACb,CAAC,UAAU,KAAK,cAAc,GAAG,CAAC,EAAG,QAAO;AAAA,EAClD;AACA,SAAO;AACT;AAIO,MAAM,eAAe,CAACC,YAAW;AAAA;AAAA,EAA0BA;AAAA;AAGlE,IAAO,0BAAQ,EAAE,qBAAqB;",
|
|
5
|
+
"names": ["hooks", "module"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var refresh_runtime_exports = {};
|
|
17
|
+
__export(refresh_runtime_exports, {
|
|
18
|
+
__hmr_import: () => __hmr_import,
|
|
19
|
+
createSignatureFunctionForTransform: () => createSignatureFunctionForTransform,
|
|
20
|
+
default: () => refresh_runtime_default,
|
|
21
|
+
getRefreshReg: () => getRefreshReg,
|
|
22
|
+
injectIntoGlobalHook: () => injectIntoGlobalHook,
|
|
23
|
+
registerExportsForReactRefresh: () => registerExportsForReactRefresh,
|
|
24
|
+
validateRefreshBoundaryAndEnqueueUpdate: () => validateRefreshBoundaryAndEnqueueUpdate
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(refresh_runtime_exports);
|
|
27
|
+
/*! Copyright (c) Meta Platforms, Inc. and affiliates. **/
|
|
28
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_MEMO_TYPE = Symbol.for("react.memo"), allFamiliesByID = /* @__PURE__ */ new Map(), allFamiliesByType = /* @__PURE__ */ new WeakMap(), allSignaturesByType = /* @__PURE__ */ new WeakMap(), updatedFamiliesByType = /* @__PURE__ */ new WeakMap(), pendingUpdates = [], helpersByRendererID = /* @__PURE__ */ new Map(), helpersByRoot = /* @__PURE__ */ new Map(), mountedRoots = /* @__PURE__ */ new Set(), failedRoots = /* @__PURE__ */ new Set(), rootElements = /* @__PURE__ */ new WeakMap(), isPerformingRefresh = !1;
|
|
29
|
+
function computeFullKey(signature) {
|
|
30
|
+
if (signature.fullKey !== null)
|
|
31
|
+
return signature.fullKey;
|
|
32
|
+
var fullKey = signature.ownKey, hooks2;
|
|
33
|
+
try {
|
|
34
|
+
hooks2 = signature.getCustomHooks();
|
|
35
|
+
} catch {
|
|
36
|
+
return signature.forceReset = !0, signature.fullKey = fullKey, fullKey;
|
|
37
|
+
}
|
|
38
|
+
for (var i = 0; i < hooks2.length; i++) {
|
|
39
|
+
var hook = hooks2[i];
|
|
40
|
+
if (typeof hook != "function")
|
|
41
|
+
return signature.forceReset = !0, signature.fullKey = fullKey, fullKey;
|
|
42
|
+
var nestedHookSignature = allSignaturesByType.get(hook);
|
|
43
|
+
if (nestedHookSignature !== void 0) {
|
|
44
|
+
var nestedHookKey = computeFullKey(nestedHookSignature);
|
|
45
|
+
nestedHookSignature.forceReset && (signature.forceReset = !0), fullKey += `
|
|
46
|
+
---
|
|
47
|
+
` + nestedHookKey;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return signature.fullKey = fullKey, fullKey;
|
|
51
|
+
}
|
|
52
|
+
function haveEqualSignatures(prevType, nextType) {
|
|
53
|
+
var prevSignature = allSignaturesByType.get(prevType), nextSignature = allSignaturesByType.get(nextType);
|
|
54
|
+
return prevSignature === void 0 && nextSignature === void 0 ? !0 : !(prevSignature === void 0 || nextSignature === void 0 || computeFullKey(prevSignature) !== computeFullKey(nextSignature) || nextSignature.forceReset);
|
|
55
|
+
}
|
|
56
|
+
function isReactClass(type) {
|
|
57
|
+
return type.prototype && type.prototype.isReactComponent;
|
|
58
|
+
}
|
|
59
|
+
function canPreserveStateBetween(prevType, nextType) {
|
|
60
|
+
return isReactClass(prevType) || isReactClass(nextType) ? !1 : !!haveEqualSignatures(prevType, nextType);
|
|
61
|
+
}
|
|
62
|
+
function resolveFamily(type) {
|
|
63
|
+
return updatedFamiliesByType.get(type);
|
|
64
|
+
}
|
|
65
|
+
function getProperty(object, property) {
|
|
66
|
+
try {
|
|
67
|
+
return object[property];
|
|
68
|
+
} catch {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function performReactRefresh() {
|
|
73
|
+
if (pendingUpdates.length === 0 || isPerformingRefresh)
|
|
74
|
+
return null;
|
|
75
|
+
isPerformingRefresh = !0;
|
|
76
|
+
try {
|
|
77
|
+
var staleFamilies = /* @__PURE__ */ new Set(), updatedFamilies = /* @__PURE__ */ new Set(), updates = pendingUpdates;
|
|
78
|
+
pendingUpdates = [], updates.forEach(function(param) {
|
|
79
|
+
var [family, nextType] = param, prevType = family.current;
|
|
80
|
+
updatedFamiliesByType.set(prevType, family), updatedFamiliesByType.set(nextType, family), family.current = nextType, canPreserveStateBetween(prevType, nextType) ? updatedFamilies.add(family) : staleFamilies.add(family);
|
|
81
|
+
});
|
|
82
|
+
var update = {
|
|
83
|
+
updatedFamilies,
|
|
84
|
+
// Families that will re-render preserving state
|
|
85
|
+
staleFamilies
|
|
86
|
+
};
|
|
87
|
+
helpersByRendererID.forEach(function(helpers) {
|
|
88
|
+
helpers.setRefreshHandler(resolveFamily);
|
|
89
|
+
});
|
|
90
|
+
var didError = !1, firstError = null, failedRootsSnapshot = new Set(failedRoots), mountedRootsSnapshot = new Set(mountedRoots), helpersByRootSnapshot = new Map(helpersByRoot);
|
|
91
|
+
if (failedRootsSnapshot.forEach(function(root) {
|
|
92
|
+
var helpers = helpersByRootSnapshot.get(root);
|
|
93
|
+
if (helpers === void 0)
|
|
94
|
+
throw new Error("Could not find helpers for a root. This is a bug in React Refresh.");
|
|
95
|
+
if (failedRoots.has(root), rootElements !== null && rootElements.has(root)) {
|
|
96
|
+
var element = rootElements.get(root);
|
|
97
|
+
try {
|
|
98
|
+
helpers.scheduleRoot(root, element);
|
|
99
|
+
} catch (err) {
|
|
100
|
+
didError || (didError = !0, firstError = err);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}), mountedRootsSnapshot.forEach(function(root) {
|
|
104
|
+
var helpers = helpersByRootSnapshot.get(root);
|
|
105
|
+
if (helpers === void 0)
|
|
106
|
+
throw new Error("Could not find helpers for a root. This is a bug in React Refresh.");
|
|
107
|
+
mountedRoots.has(root);
|
|
108
|
+
try {
|
|
109
|
+
helpers.scheduleRefresh(root, update);
|
|
110
|
+
} catch (err) {
|
|
111
|
+
didError || (didError = !0, firstError = err);
|
|
112
|
+
}
|
|
113
|
+
}), didError)
|
|
114
|
+
throw firstError;
|
|
115
|
+
return update;
|
|
116
|
+
} finally {
|
|
117
|
+
isPerformingRefresh = !1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function register(type, id) {
|
|
121
|
+
if (type !== null && !(typeof type != "function" && typeof type != "object") && !allFamiliesByType.has(type)) {
|
|
122
|
+
var family = allFamiliesByID.get(id);
|
|
123
|
+
if (family === void 0 ? (family = {
|
|
124
|
+
current: type
|
|
125
|
+
}, allFamiliesByID.set(id, family)) : pendingUpdates.push([
|
|
126
|
+
family,
|
|
127
|
+
type
|
|
128
|
+
]), allFamiliesByType.set(type, family), typeof type == "object" && type !== null)
|
|
129
|
+
switch (getProperty(type, "$$typeof")) {
|
|
130
|
+
case REACT_FORWARD_REF_TYPE:
|
|
131
|
+
register(type.render, id + "$render");
|
|
132
|
+
break;
|
|
133
|
+
case REACT_MEMO_TYPE:
|
|
134
|
+
register(type.type, id + "$type");
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function setSignature(type, key, forceReset, getCustomHooks) {
|
|
140
|
+
if (allSignaturesByType.has(type) || allSignaturesByType.set(type, {
|
|
141
|
+
forceReset,
|
|
142
|
+
ownKey: key,
|
|
143
|
+
fullKey: null,
|
|
144
|
+
getCustomHooks: getCustomHooks || function() {
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
147
|
+
}), typeof type == "object" && type !== null)
|
|
148
|
+
switch (getProperty(type, "$$typeof")) {
|
|
149
|
+
case REACT_FORWARD_REF_TYPE:
|
|
150
|
+
setSignature(type.render, key, forceReset, getCustomHooks);
|
|
151
|
+
break;
|
|
152
|
+
case REACT_MEMO_TYPE:
|
|
153
|
+
setSignature(type.type, key, forceReset, getCustomHooks);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function collectCustomHooksForSignature(type) {
|
|
158
|
+
var signature = allSignaturesByType.get(type);
|
|
159
|
+
signature !== void 0 && computeFullKey(signature);
|
|
160
|
+
}
|
|
161
|
+
function injectIntoGlobalHook(globalObject) {
|
|
162
|
+
var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
163
|
+
if (hook === void 0) {
|
|
164
|
+
var nextID = 0;
|
|
165
|
+
globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
|
|
166
|
+
renderers: /* @__PURE__ */ new Map(),
|
|
167
|
+
supportsFiber: !0,
|
|
168
|
+
inject: function(injected) {
|
|
169
|
+
return nextID++;
|
|
170
|
+
},
|
|
171
|
+
onScheduleFiberRoot: function(id, root, children) {
|
|
172
|
+
},
|
|
173
|
+
onCommitFiberRoot: function(id, root, maybePriorityLevel, didError) {
|
|
174
|
+
},
|
|
175
|
+
onCommitFiberUnmount() {
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
if (hook.isDisabled) {
|
|
180
|
+
console.warn("Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.");
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
var oldInject = hook.inject;
|
|
184
|
+
hook.inject = function(injected) {
|
|
185
|
+
var id = oldInject.apply(this, arguments);
|
|
186
|
+
return typeof injected.scheduleRefresh == "function" && typeof injected.setRefreshHandler == "function" && helpersByRendererID.set(id, injected), id;
|
|
187
|
+
}, hook.renderers.forEach(function(injected, id) {
|
|
188
|
+
typeof injected.scheduleRefresh == "function" && typeof injected.setRefreshHandler == "function" && helpersByRendererID.set(id, injected);
|
|
189
|
+
});
|
|
190
|
+
var oldOnCommitFiberRoot = hook.onCommitFiberRoot, oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function() {
|
|
191
|
+
};
|
|
192
|
+
hook.onScheduleFiberRoot = function(id, root, children) {
|
|
193
|
+
return isPerformingRefresh || (failedRoots.delete(root), rootElements !== null && rootElements.set(root, children)), oldOnScheduleFiberRoot.apply(this, arguments);
|
|
194
|
+
}, hook.onCommitFiberRoot = function(id, root, maybePriorityLevel, didError) {
|
|
195
|
+
var helpers = helpersByRendererID.get(id);
|
|
196
|
+
if (helpers !== void 0) {
|
|
197
|
+
helpersByRoot.set(root, helpers);
|
|
198
|
+
var current = root.current, alternate = current.alternate;
|
|
199
|
+
if (alternate !== null) {
|
|
200
|
+
var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root), isMounted = current.memoizedState != null && current.memoizedState.element != null;
|
|
201
|
+
!wasMounted && isMounted ? (mountedRoots.add(root), failedRoots.delete(root)) : wasMounted && isMounted || (wasMounted && !isMounted ? (mountedRoots.delete(root), didError ? failedRoots.add(root) : helpersByRoot.delete(root)) : !wasMounted && !isMounted && didError && failedRoots.add(root));
|
|
202
|
+
} else
|
|
203
|
+
mountedRoots.add(root);
|
|
204
|
+
}
|
|
205
|
+
return oldOnCommitFiberRoot.apply(this, arguments);
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function createSignatureFunctionForTransform() {
|
|
209
|
+
var savedType, hasCustomHooks, didCollectHooks = !1;
|
|
210
|
+
return function(type, key, forceReset, getCustomHooks) {
|
|
211
|
+
if (typeof key == "string")
|
|
212
|
+
return savedType || (savedType = type, hasCustomHooks = typeof getCustomHooks == "function"), type != null && (typeof type == "function" || typeof type == "object") && setSignature(type, key, forceReset, getCustomHooks), type;
|
|
213
|
+
!didCollectHooks && hasCustomHooks && (didCollectHooks = !0, collectCustomHooksForSignature(savedType));
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function isLikelyComponentType(type) {
|
|
217
|
+
switch (typeof type) {
|
|
218
|
+
case "function": {
|
|
219
|
+
if (type.prototype != null) {
|
|
220
|
+
if (type.prototype.isReactComponent)
|
|
221
|
+
return !0;
|
|
222
|
+
var ownNames = Object.getOwnPropertyNames(type.prototype);
|
|
223
|
+
if (ownNames.length > 1 || ownNames[0] !== "constructor" || type.prototype.__proto__ !== Object.prototype)
|
|
224
|
+
return !1;
|
|
225
|
+
}
|
|
226
|
+
var name = type.name || type.displayName;
|
|
227
|
+
return typeof name == "string" && /^[A-Z]/.test(name);
|
|
228
|
+
}
|
|
229
|
+
case "object": {
|
|
230
|
+
if (type != null)
|
|
231
|
+
switch (getProperty(type, "$$typeof")) {
|
|
232
|
+
case REACT_FORWARD_REF_TYPE:
|
|
233
|
+
case REACT_MEMO_TYPE:
|
|
234
|
+
return !0;
|
|
235
|
+
default:
|
|
236
|
+
return !1;
|
|
237
|
+
}
|
|
238
|
+
return !1;
|
|
239
|
+
}
|
|
240
|
+
default:
|
|
241
|
+
return !1;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
function getRefreshReg(filename) {
|
|
245
|
+
return function(type, id) {
|
|
246
|
+
return register(type, filename + " " + id);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function registerExportsForReactRefresh(filename, moduleExports) {
|
|
250
|
+
for (var key in moduleExports)
|
|
251
|
+
if (key !== "__esModule") {
|
|
252
|
+
var exportValue = moduleExports[key];
|
|
253
|
+
isLikelyComponentType(exportValue) && register(exportValue, filename + " export " + key);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function debounce(fn, delay) {
|
|
257
|
+
var handle;
|
|
258
|
+
return function() {
|
|
259
|
+
clearTimeout(handle), handle = setTimeout(fn, delay);
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
var hooks = [];
|
|
263
|
+
window.__registerBeforePerformReactRefresh = function(cb) {
|
|
264
|
+
hooks.push(cb);
|
|
265
|
+
};
|
|
266
|
+
var enqueueUpdate = debounce(async function() {
|
|
267
|
+
hooks.length && await Promise.all(hooks.map(function(cb) {
|
|
268
|
+
return cb();
|
|
269
|
+
})), performReactRefresh();
|
|
270
|
+
}, 16);
|
|
271
|
+
function validateRefreshBoundaryAndEnqueueUpdate(id, prevExports, nextExports) {
|
|
272
|
+
var _window___getReactRefreshIgnoredExports, _window, _window___getReactRefreshIgnoredExports1, ignoredExports = (_window___getReactRefreshIgnoredExports1 = (_window___getReactRefreshIgnoredExports = (_window = window).__getReactRefreshIgnoredExports) === null || _window___getReactRefreshIgnoredExports === void 0 ? void 0 : _window___getReactRefreshIgnoredExports.call(_window, {
|
|
273
|
+
id
|
|
274
|
+
})) !== null && _window___getReactRefreshIgnoredExports1 !== void 0 ? _window___getReactRefreshIgnoredExports1 : [];
|
|
275
|
+
if (predicateOnExport(ignoredExports, prevExports, function(key) {
|
|
276
|
+
return key in nextExports;
|
|
277
|
+
}) !== !0)
|
|
278
|
+
return "Could not Fast Refresh (export removed)";
|
|
279
|
+
if (predicateOnExport(ignoredExports, nextExports, function(key) {
|
|
280
|
+
return key in prevExports;
|
|
281
|
+
}) !== !0)
|
|
282
|
+
return "Could not Fast Refresh (new export)";
|
|
283
|
+
var hasExports = !1, allExportsAreComponentsOrUnchanged = predicateOnExport(ignoredExports, nextExports, function(key, value) {
|
|
284
|
+
return hasExports = !0, isLikelyComponentType(value) ? !0 : prevExports[key] === nextExports[key];
|
|
285
|
+
});
|
|
286
|
+
if (hasExports && allExportsAreComponentsOrUnchanged === !0)
|
|
287
|
+
enqueueUpdate();
|
|
288
|
+
else
|
|
289
|
+
return `Could not Fast Refresh ("${allExportsAreComponentsOrUnchanged}" export is incompatible). Learn more at https://github.com/vitejs/vite-plugin-react-swc#consistent-components-exports`;
|
|
290
|
+
}
|
|
291
|
+
function predicateOnExport(ignoredExports, moduleExports, predicate) {
|
|
292
|
+
for (var key in moduleExports)
|
|
293
|
+
if (key !== "__esModule" && !ignoredExports.includes(key)) {
|
|
294
|
+
var desc = Object.getOwnPropertyDescriptor(moduleExports, key);
|
|
295
|
+
if (desc && desc.get || !predicate(key, moduleExports[key])) return key;
|
|
296
|
+
}
|
|
297
|
+
return !0;
|
|
298
|
+
}
|
|
299
|
+
var __hmr_import = function(module2) {
|
|
300
|
+
return import(
|
|
301
|
+
/* @vite-ignore */
|
|
302
|
+
module2
|
|
303
|
+
);
|
|
304
|
+
}, refresh_runtime_default = {
|
|
305
|
+
injectIntoGlobalHook
|
|
306
|
+
};
|
|
307
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
308
|
+
0 && (module.exports = {
|
|
309
|
+
__hmr_import,
|
|
310
|
+
createSignatureFunctionForTransform,
|
|
311
|
+
getRefreshReg,
|
|
312
|
+
injectIntoGlobalHook,
|
|
313
|
+
registerExportsForReactRefresh,
|
|
314
|
+
validateRefreshBoundaryAndEnqueueUpdate
|
|
315
|
+
});
|
|
316
|
+
//# sourceMappingURL=refresh-runtime.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/one/packages/compiler/src/refresh-runtime.js"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;AAOA,IAAMA,yBAAyBC,OAAOC,IAAI,mBAAA,GACpCC,kBAAkBF,OAAOC,IAAI,YAAA,GAI/BE,kBAAkB,oBAAIC,IAAAA,GACtBC,oBAAoB,oBAAIC,QAAAA,GACxBC,sBAAsB,oBAAID,QAAAA,GAIxBE,wBAAwB,oBAAIF,QAAAA,GAI9BG,iBAAiB,CAAA,GAGfC,sBAAsB,oBAAIN,IAAAA,GAE1BO,gBAAgB,oBAAIP,IAAAA,GAGpBQ,eAAe,oBAAIC,IAAAA,GAEnBC,cAAc,oBAAID,IAAAA,GAKpBE,eAAe,oBAAIT,QAAAA,GACnBU,sBAAsB;AAE1B,SAASC,eAAeC,WAAS;AAC/B,MAAIA,UAAUC,YAAY;AACxB,WAAOD,UAAUC;AAGnB,MAAIA,UAAUD,UAAUE,QACpBC;AACJ,MAAI;AACFA,IAAAA,SAAQH,UAAUI,eAAc;EAClC,QAAc;AAIZJ,qBAAUK,aAAa,IACvBL,UAAUC,UAAUA,SACbA;EACT;AAEA,WAASK,IAAI,GAAGA,IAAIH,OAAMI,QAAQD,KAAK;AACrC,QAAME,OAAOL,OAAMG,CAAAA;AACnB,QAAI,OAAOE,QAAS;AAElBR,uBAAUK,aAAa,IACvBL,UAAUC,UAAUA,SACbA;AAET,QAAMQ,sBAAsBpB,oBAAoBqB,IAAIF,IAAAA;AACpD,QAAIC,wBAAwBE,QAK5B;UAAMC,gBAAgBb,eAAeU,mBAAAA;AACrC,MAAIA,oBAAoBJ,eACtBL,UAAUK,aAAa,KAEzBJ,WAAW;;IAAYW;;EACzB;AAEAZ,mBAAUC,UAAUA,SAC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AClF,WAAO;AAET,MAAIG,kBAAkBF,gBAAgBD,aAAa,SAAC3D,KAAAA;WAAQA,OAAO0D;SAAiB;AAClF,WAAO;AAGT,MAAIK,aAAa,IACXC,qCAAqCF,kBACzCF,gBACAD,aACA,SAAC3D,KAAKiE,OAAAA;AAEJ,WADAF,aAAa,IACThC,sBAAsBkC,KAAAA,IAAe,KAClCP,YAAY1D,GAAAA,MAAS2D,YAAY3D,GAAAA;EAC1C,CAAA;AAEF,MAAI+D,cAAcC,uCAAuC;AACvDX,kBAAAA;;AAEA,WAAO,4BAA4BW,kCAAAA;AAEvC;AAEA,SAASF,kBAAkBF,gBAAgBlB,eAAewB,WAAS;AACjE,WAAWlE,OAAO0C;AAChB,QAAI1C,QAAQ,gBACR4D,gBAAeO,SAASnE,GAAAA,GAC5B;UAAMoE,OAAOnC,OAAOoC,yBAAyB3B,eAAe1C,GAAAA;AAE5D,UADIoE,QAAQA,KAAKlH,OACb,CAACgH,UAAUlE,KAAK0C,cAAc1C,GAAAA,CAAI,EAAG,QAAOA;;AAElD,SAAO;AACT;AAIO,IAAMsE,eAAe,SAACC,SAAAA;SAAW;;IAA0BA;;GAGlE,0BAAe;EAAErE;AAAqB;",
|
|
5
|
+
"names": ["REACT_FORWARD_REF_TYPE", "Symbol", "for", "REACT_MEMO_TYPE", "allFamiliesByID", "Map", "allFamiliesByType", "WeakMap", "allSignaturesByType", "updatedFamiliesByType", "pendingUpdates", "helpersByRendererID", "helpersByRoot", "mountedRoots", "Set", "failedRoots", "rootElements", "isPerformingRefresh", "computeFullKey", "signature", "fullKey", "ownKey", "hooks", "getCustomHooks", "forceReset", "i", "length", "hook", "nestedHookSignature", "get", "undefined", "nestedHookKey", "haveEqualSignatures", "prevType", "nextType", "prevSignature", "nextSignature", "isReactClass", "type", "prototype", "isReactComponent", "canPreserveStateBetween", "resolveFamily", "getProperty", "object", "property", "performReactRefresh", "staleFamilies", "updatedFamilies", "updates", "forEach", "family", "current", "set", "add", "update", "helpers", "setRefreshHandler", "didError", "firstError", "failedRootsSnapshot", "mountedRootsSnapshot", "helpersByRootSnapshot", "root", "Error", "has", "element", "scheduleRoot", "err", "scheduleRefresh", "register", "id", "push", "render", "setSignature", "key", "collectCustomHooksForSignature", "injectIntoGlobalHook", "globalObject", "__REACT_DEVTOOLS_GLOBAL_HOOK__", "nextID", "renderers", "supportsFiber", "inject", "injected", "onScheduleFiberRoot", "children", "onCommitFiberRoot", "maybePriorityLevel", "onCommitFiberUnmount", "isDisabled", "console", "oldInject", "apply", "arguments", "oldOnCommitFiberRoot", "oldOnScheduleFiberRoot", "delete", "alternate", "wasMounted", "memoizedState", "isMounted", "createSignatureFunctionForTransform", "savedType", "hasCustomHooks", "didCollectHooks", "isLikelyComponentType", "ownNames", "Object", "getOwnPropertyNames", "__proto__", "name", "displayName", "test", "getRefreshReg", "filename", "registerExportsForReactRefresh", "moduleExports", "exportValue", "debounce", "fn", "delay", "handle", "clearTimeout", "setTimeout", "window", "__registerBeforePerformReactRefresh", "cb", "enqueueUpdate", "Promise", "all", "map", "validateRefreshBoundaryAndEnqueueUpdate", "prevExports", "nextExports", "ignoredExports", "__getReactRefreshIgnoredExports", "predicateOnExport", "hasExports", "allExportsAreComponentsOrUnchanged", "value", "predicate", "includes", "desc", "getOwnPropertyDescriptor", "__hmr_import", "module"]
|
|
6
|
+
}
|