@tscircuit/common 0.0.28 → 0.0.29
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/dist/index.js +145 -1982
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
3
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
7
|
var __pow = Math.pow;
|
|
@@ -34,1754 +30,11 @@ var __objRest = (source, exclude) => {
|
|
|
34
30
|
}
|
|
35
31
|
return target;
|
|
36
32
|
};
|
|
37
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
38
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
39
|
-
};
|
|
40
|
-
var __copyProps = (to, from, except, desc) => {
|
|
41
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
42
|
-
for (let key of __getOwnPropNames(from))
|
|
43
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
44
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
45
|
-
}
|
|
46
|
-
return to;
|
|
47
|
-
};
|
|
48
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
49
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
50
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
51
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
52
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
53
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
54
|
-
mod
|
|
55
|
-
));
|
|
56
|
-
|
|
57
|
-
// node_modules/react/cjs/react-jsx-runtime.production.js
|
|
58
|
-
var require_react_jsx_runtime_production = __commonJS({
|
|
59
|
-
"node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
60
|
-
"use strict";
|
|
61
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
62
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
63
|
-
function jsxProd(type, config, maybeKey) {
|
|
64
|
-
var key = null;
|
|
65
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
66
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
67
|
-
if ("key" in config) {
|
|
68
|
-
maybeKey = {};
|
|
69
|
-
for (var propName in config)
|
|
70
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
71
|
-
} else maybeKey = config;
|
|
72
|
-
config = maybeKey.ref;
|
|
73
|
-
return {
|
|
74
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
75
|
-
type,
|
|
76
|
-
key,
|
|
77
|
-
ref: void 0 !== config ? config : null,
|
|
78
|
-
props: maybeKey
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
82
|
-
exports.jsx = jsxProd;
|
|
83
|
-
exports.jsxs = jsxProd;
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
// node_modules/react/cjs/react.production.js
|
|
88
|
-
var require_react_production = __commonJS({
|
|
89
|
-
"node_modules/react/cjs/react.production.js"(exports) {
|
|
90
|
-
"use strict";
|
|
91
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
92
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
93
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
94
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
95
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
96
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
97
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
98
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
99
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
100
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
101
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
102
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
103
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
104
|
-
function getIteratorFn(maybeIterable) {
|
|
105
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
106
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
107
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
108
|
-
}
|
|
109
|
-
var ReactNoopUpdateQueue = {
|
|
110
|
-
isMounted: function() {
|
|
111
|
-
return false;
|
|
112
|
-
},
|
|
113
|
-
enqueueForceUpdate: function() {
|
|
114
|
-
},
|
|
115
|
-
enqueueReplaceState: function() {
|
|
116
|
-
},
|
|
117
|
-
enqueueSetState: function() {
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
var assign = Object.assign;
|
|
121
|
-
var emptyObject = {};
|
|
122
|
-
function Component(props, context, updater) {
|
|
123
|
-
this.props = props;
|
|
124
|
-
this.context = context;
|
|
125
|
-
this.refs = emptyObject;
|
|
126
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
127
|
-
}
|
|
128
|
-
Component.prototype.isReactComponent = {};
|
|
129
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
130
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
131
|
-
throw Error(
|
|
132
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
133
|
-
);
|
|
134
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
135
|
-
};
|
|
136
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
137
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
138
|
-
};
|
|
139
|
-
function ComponentDummy() {
|
|
140
|
-
}
|
|
141
|
-
ComponentDummy.prototype = Component.prototype;
|
|
142
|
-
function PureComponent(props, context, updater) {
|
|
143
|
-
this.props = props;
|
|
144
|
-
this.context = context;
|
|
145
|
-
this.refs = emptyObject;
|
|
146
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
147
|
-
}
|
|
148
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
149
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
150
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
151
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
152
|
-
var isArrayImpl = Array.isArray;
|
|
153
|
-
function noop() {
|
|
154
|
-
}
|
|
155
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
156
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
157
|
-
function ReactElement4(type, key, props) {
|
|
158
|
-
var refProp = props.ref;
|
|
159
|
-
return {
|
|
160
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
161
|
-
type,
|
|
162
|
-
key,
|
|
163
|
-
ref: void 0 !== refProp ? refProp : null,
|
|
164
|
-
props
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
168
|
-
return ReactElement4(oldElement.type, newKey, oldElement.props);
|
|
169
|
-
}
|
|
170
|
-
function isValidElement(object) {
|
|
171
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
172
|
-
}
|
|
173
|
-
function escape(key) {
|
|
174
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
175
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
176
|
-
return escaperLookup[match];
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
180
|
-
function getElementKey(element, index) {
|
|
181
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
182
|
-
}
|
|
183
|
-
function resolveThenable(thenable) {
|
|
184
|
-
switch (thenable.status) {
|
|
185
|
-
case "fulfilled":
|
|
186
|
-
return thenable.value;
|
|
187
|
-
case "rejected":
|
|
188
|
-
throw thenable.reason;
|
|
189
|
-
default:
|
|
190
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
191
|
-
function(fulfilledValue) {
|
|
192
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
193
|
-
},
|
|
194
|
-
function(error) {
|
|
195
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
196
|
-
}
|
|
197
|
-
)), thenable.status) {
|
|
198
|
-
case "fulfilled":
|
|
199
|
-
return thenable.value;
|
|
200
|
-
case "rejected":
|
|
201
|
-
throw thenable.reason;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
throw thenable;
|
|
205
|
-
}
|
|
206
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
207
|
-
var type = typeof children;
|
|
208
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
209
|
-
var invokeCallback = false;
|
|
210
|
-
if (null === children) invokeCallback = true;
|
|
211
|
-
else
|
|
212
|
-
switch (type) {
|
|
213
|
-
case "bigint":
|
|
214
|
-
case "string":
|
|
215
|
-
case "number":
|
|
216
|
-
invokeCallback = true;
|
|
217
|
-
break;
|
|
218
|
-
case "object":
|
|
219
|
-
switch (children.$$typeof) {
|
|
220
|
-
case REACT_ELEMENT_TYPE:
|
|
221
|
-
case REACT_PORTAL_TYPE:
|
|
222
|
-
invokeCallback = true;
|
|
223
|
-
break;
|
|
224
|
-
case REACT_LAZY_TYPE:
|
|
225
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
226
|
-
invokeCallback(children._payload),
|
|
227
|
-
array,
|
|
228
|
-
escapedPrefix,
|
|
229
|
-
nameSoFar,
|
|
230
|
-
callback
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
if (invokeCallback)
|
|
235
|
-
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
236
|
-
return c;
|
|
237
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
238
|
-
callback,
|
|
239
|
-
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
240
|
-
userProvidedKeyEscapeRegex,
|
|
241
|
-
"$&/"
|
|
242
|
-
) + "/") + invokeCallback
|
|
243
|
-
)), array.push(callback)), 1;
|
|
244
|
-
invokeCallback = 0;
|
|
245
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
246
|
-
if (isArrayImpl(children))
|
|
247
|
-
for (var i = 0; i < children.length; i++)
|
|
248
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
249
|
-
nameSoFar,
|
|
250
|
-
array,
|
|
251
|
-
escapedPrefix,
|
|
252
|
-
type,
|
|
253
|
-
callback
|
|
254
|
-
);
|
|
255
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
256
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
257
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
258
|
-
nameSoFar,
|
|
259
|
-
array,
|
|
260
|
-
escapedPrefix,
|
|
261
|
-
type,
|
|
262
|
-
callback
|
|
263
|
-
);
|
|
264
|
-
else if ("object" === type) {
|
|
265
|
-
if ("function" === typeof children.then)
|
|
266
|
-
return mapIntoArray(
|
|
267
|
-
resolveThenable(children),
|
|
268
|
-
array,
|
|
269
|
-
escapedPrefix,
|
|
270
|
-
nameSoFar,
|
|
271
|
-
callback
|
|
272
|
-
);
|
|
273
|
-
array = String(children);
|
|
274
|
-
throw Error(
|
|
275
|
-
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
return invokeCallback;
|
|
279
|
-
}
|
|
280
|
-
function mapChildren(children, func, context) {
|
|
281
|
-
if (null == children) return children;
|
|
282
|
-
var result = [], count = 0;
|
|
283
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
284
|
-
return func.call(context, child, count++);
|
|
285
|
-
});
|
|
286
|
-
return result;
|
|
287
|
-
}
|
|
288
|
-
function lazyInitializer(payload) {
|
|
289
|
-
if (-1 === payload._status) {
|
|
290
|
-
var ctor = payload._result;
|
|
291
|
-
ctor = ctor();
|
|
292
|
-
ctor.then(
|
|
293
|
-
function(moduleObject) {
|
|
294
|
-
if (0 === payload._status || -1 === payload._status)
|
|
295
|
-
payload._status = 1, payload._result = moduleObject;
|
|
296
|
-
},
|
|
297
|
-
function(error) {
|
|
298
|
-
if (0 === payload._status || -1 === payload._status)
|
|
299
|
-
payload._status = 2, payload._result = error;
|
|
300
|
-
}
|
|
301
|
-
);
|
|
302
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
303
|
-
}
|
|
304
|
-
if (1 === payload._status) return payload._result.default;
|
|
305
|
-
throw payload._result;
|
|
306
|
-
}
|
|
307
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
308
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
309
|
-
var event = new window.ErrorEvent("error", {
|
|
310
|
-
bubbles: true,
|
|
311
|
-
cancelable: true,
|
|
312
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
313
|
-
error
|
|
314
|
-
});
|
|
315
|
-
if (!window.dispatchEvent(event)) return;
|
|
316
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
317
|
-
process.emit("uncaughtException", error);
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
console.error(error);
|
|
321
|
-
};
|
|
322
|
-
var Children = {
|
|
323
|
-
map: mapChildren,
|
|
324
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
325
|
-
mapChildren(
|
|
326
|
-
children,
|
|
327
|
-
function() {
|
|
328
|
-
forEachFunc.apply(this, arguments);
|
|
329
|
-
},
|
|
330
|
-
forEachContext
|
|
331
|
-
);
|
|
332
|
-
},
|
|
333
|
-
count: function(children) {
|
|
334
|
-
var n = 0;
|
|
335
|
-
mapChildren(children, function() {
|
|
336
|
-
n++;
|
|
337
|
-
});
|
|
338
|
-
return n;
|
|
339
|
-
},
|
|
340
|
-
toArray: function(children) {
|
|
341
|
-
return mapChildren(children, function(child) {
|
|
342
|
-
return child;
|
|
343
|
-
}) || [];
|
|
344
|
-
},
|
|
345
|
-
only: function(children) {
|
|
346
|
-
if (!isValidElement(children))
|
|
347
|
-
throw Error(
|
|
348
|
-
"React.Children.only expected to receive a single React element child."
|
|
349
|
-
);
|
|
350
|
-
return children;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
354
|
-
exports.Children = Children;
|
|
355
|
-
exports.Component = Component;
|
|
356
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
357
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
358
|
-
exports.PureComponent = PureComponent;
|
|
359
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
360
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
361
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
362
|
-
exports.__COMPILER_RUNTIME = {
|
|
363
|
-
__proto__: null,
|
|
364
|
-
c: function(size) {
|
|
365
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
exports.cache = function(fn) {
|
|
369
|
-
return function() {
|
|
370
|
-
return fn.apply(null, arguments);
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
exports.cacheSignal = function() {
|
|
374
|
-
return null;
|
|
375
|
-
};
|
|
376
|
-
exports.cloneElement = function(element, config, children) {
|
|
377
|
-
if (null === element || void 0 === element)
|
|
378
|
-
throw Error(
|
|
379
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
380
|
-
);
|
|
381
|
-
var props = assign({}, element.props), key = element.key;
|
|
382
|
-
if (null != config)
|
|
383
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
384
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
385
|
-
var propName = arguments.length - 2;
|
|
386
|
-
if (1 === propName) props.children = children;
|
|
387
|
-
else if (1 < propName) {
|
|
388
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
389
|
-
childArray[i] = arguments[i + 2];
|
|
390
|
-
props.children = childArray;
|
|
391
|
-
}
|
|
392
|
-
return ReactElement4(element.type, key, props);
|
|
393
|
-
};
|
|
394
|
-
exports.createContext = function(defaultValue) {
|
|
395
|
-
defaultValue = {
|
|
396
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
397
|
-
_currentValue: defaultValue,
|
|
398
|
-
_currentValue2: defaultValue,
|
|
399
|
-
_threadCount: 0,
|
|
400
|
-
Provider: null,
|
|
401
|
-
Consumer: null
|
|
402
|
-
};
|
|
403
|
-
defaultValue.Provider = defaultValue;
|
|
404
|
-
defaultValue.Consumer = {
|
|
405
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
406
|
-
_context: defaultValue
|
|
407
|
-
};
|
|
408
|
-
return defaultValue;
|
|
409
|
-
};
|
|
410
|
-
exports.createElement = function(type, config, children) {
|
|
411
|
-
var propName, props = {}, key = null;
|
|
412
|
-
if (null != config)
|
|
413
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
414
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
415
|
-
var childrenLength = arguments.length - 2;
|
|
416
|
-
if (1 === childrenLength) props.children = children;
|
|
417
|
-
else if (1 < childrenLength) {
|
|
418
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
419
|
-
childArray[i] = arguments[i + 2];
|
|
420
|
-
props.children = childArray;
|
|
421
|
-
}
|
|
422
|
-
if (type && type.defaultProps)
|
|
423
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
424
|
-
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
425
|
-
return ReactElement4(type, key, props);
|
|
426
|
-
};
|
|
427
|
-
exports.createRef = function() {
|
|
428
|
-
return { current: null };
|
|
429
|
-
};
|
|
430
|
-
exports.forwardRef = function(render) {
|
|
431
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
432
|
-
};
|
|
433
|
-
exports.isValidElement = isValidElement;
|
|
434
|
-
exports.lazy = function(ctor) {
|
|
435
|
-
return {
|
|
436
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
437
|
-
_payload: { _status: -1, _result: ctor },
|
|
438
|
-
_init: lazyInitializer
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
exports.memo = function(type, compare) {
|
|
442
|
-
return {
|
|
443
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
444
|
-
type,
|
|
445
|
-
compare: void 0 === compare ? null : compare
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
exports.startTransition = function(scope) {
|
|
449
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
450
|
-
ReactSharedInternals.T = currentTransition;
|
|
451
|
-
try {
|
|
452
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
453
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
454
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
455
|
-
} catch (error) {
|
|
456
|
-
reportGlobalError(error);
|
|
457
|
-
} finally {
|
|
458
|
-
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
exports.unstable_useCacheRefresh = function() {
|
|
462
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
463
|
-
};
|
|
464
|
-
exports.use = function(usable) {
|
|
465
|
-
return ReactSharedInternals.H.use(usable);
|
|
466
|
-
};
|
|
467
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
468
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
469
|
-
};
|
|
470
|
-
exports.useCallback = function(callback, deps) {
|
|
471
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
472
|
-
};
|
|
473
|
-
exports.useContext = function(Context) {
|
|
474
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
475
|
-
};
|
|
476
|
-
exports.useDebugValue = function() {
|
|
477
|
-
};
|
|
478
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
479
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
480
|
-
};
|
|
481
|
-
exports.useEffect = function(create, deps) {
|
|
482
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
483
|
-
};
|
|
484
|
-
exports.useEffectEvent = function(callback) {
|
|
485
|
-
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
486
|
-
};
|
|
487
|
-
exports.useId = function() {
|
|
488
|
-
return ReactSharedInternals.H.useId();
|
|
489
|
-
};
|
|
490
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
491
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
492
|
-
};
|
|
493
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
494
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
495
|
-
};
|
|
496
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
497
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
498
|
-
};
|
|
499
|
-
exports.useMemo = function(create, deps) {
|
|
500
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
501
|
-
};
|
|
502
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
503
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
504
|
-
};
|
|
505
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
506
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
507
|
-
};
|
|
508
|
-
exports.useRef = function(initialValue) {
|
|
509
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
510
|
-
};
|
|
511
|
-
exports.useState = function(initialState) {
|
|
512
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
513
|
-
};
|
|
514
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
515
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
516
|
-
subscribe,
|
|
517
|
-
getSnapshot,
|
|
518
|
-
getServerSnapshot
|
|
519
|
-
);
|
|
520
|
-
};
|
|
521
|
-
exports.useTransition = function() {
|
|
522
|
-
return ReactSharedInternals.H.useTransition();
|
|
523
|
-
};
|
|
524
|
-
exports.version = "19.2.0";
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
|
|
528
|
-
// node_modules/react/cjs/react.development.js
|
|
529
|
-
var require_react_development = __commonJS({
|
|
530
|
-
"node_modules/react/cjs/react.development.js"(exports, module) {
|
|
531
|
-
"use strict";
|
|
532
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
533
|
-
function defineDeprecationWarning(methodName, info) {
|
|
534
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
535
|
-
get: function() {
|
|
536
|
-
console.warn(
|
|
537
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
538
|
-
info[0],
|
|
539
|
-
info[1]
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
function getIteratorFn(maybeIterable) {
|
|
545
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
546
|
-
return null;
|
|
547
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
548
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
549
|
-
}
|
|
550
|
-
function warnNoop(publicInstance, callerName) {
|
|
551
|
-
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
552
|
-
var warningKey = publicInstance + "." + callerName;
|
|
553
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
554
|
-
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
555
|
-
callerName,
|
|
556
|
-
publicInstance
|
|
557
|
-
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
558
|
-
}
|
|
559
|
-
function Component(props, context, updater) {
|
|
560
|
-
this.props = props;
|
|
561
|
-
this.context = context;
|
|
562
|
-
this.refs = emptyObject;
|
|
563
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
564
|
-
}
|
|
565
|
-
function ComponentDummy() {
|
|
566
|
-
}
|
|
567
|
-
function PureComponent(props, context, updater) {
|
|
568
|
-
this.props = props;
|
|
569
|
-
this.context = context;
|
|
570
|
-
this.refs = emptyObject;
|
|
571
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
572
|
-
}
|
|
573
|
-
function noop() {
|
|
574
|
-
}
|
|
575
|
-
function testStringCoercion(value) {
|
|
576
|
-
return "" + value;
|
|
577
|
-
}
|
|
578
|
-
function checkKeyStringCoercion(value) {
|
|
579
|
-
try {
|
|
580
|
-
testStringCoercion(value);
|
|
581
|
-
var JSCompiler_inline_result = false;
|
|
582
|
-
} catch (e) {
|
|
583
|
-
JSCompiler_inline_result = true;
|
|
584
|
-
}
|
|
585
|
-
if (JSCompiler_inline_result) {
|
|
586
|
-
JSCompiler_inline_result = console;
|
|
587
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
588
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
589
|
-
JSCompiler_temp_const.call(
|
|
590
|
-
JSCompiler_inline_result,
|
|
591
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
592
|
-
JSCompiler_inline_result$jscomp$0
|
|
593
|
-
);
|
|
594
|
-
return testStringCoercion(value);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
function getComponentNameFromType(type) {
|
|
598
|
-
if (null == type) return null;
|
|
599
|
-
if ("function" === typeof type)
|
|
600
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
601
|
-
if ("string" === typeof type) return type;
|
|
602
|
-
switch (type) {
|
|
603
|
-
case REACT_FRAGMENT_TYPE:
|
|
604
|
-
return "Fragment";
|
|
605
|
-
case REACT_PROFILER_TYPE:
|
|
606
|
-
return "Profiler";
|
|
607
|
-
case REACT_STRICT_MODE_TYPE:
|
|
608
|
-
return "StrictMode";
|
|
609
|
-
case REACT_SUSPENSE_TYPE:
|
|
610
|
-
return "Suspense";
|
|
611
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
612
|
-
return "SuspenseList";
|
|
613
|
-
case REACT_ACTIVITY_TYPE:
|
|
614
|
-
return "Activity";
|
|
615
|
-
}
|
|
616
|
-
if ("object" === typeof type)
|
|
617
|
-
switch ("number" === typeof type.tag && console.error(
|
|
618
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
619
|
-
), type.$$typeof) {
|
|
620
|
-
case REACT_PORTAL_TYPE:
|
|
621
|
-
return "Portal";
|
|
622
|
-
case REACT_CONTEXT_TYPE:
|
|
623
|
-
return type.displayName || "Context";
|
|
624
|
-
case REACT_CONSUMER_TYPE:
|
|
625
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
626
|
-
case REACT_FORWARD_REF_TYPE:
|
|
627
|
-
var innerType = type.render;
|
|
628
|
-
type = type.displayName;
|
|
629
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
630
|
-
return type;
|
|
631
|
-
case REACT_MEMO_TYPE:
|
|
632
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
633
|
-
case REACT_LAZY_TYPE:
|
|
634
|
-
innerType = type._payload;
|
|
635
|
-
type = type._init;
|
|
636
|
-
try {
|
|
637
|
-
return getComponentNameFromType(type(innerType));
|
|
638
|
-
} catch (x) {
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
return null;
|
|
642
|
-
}
|
|
643
|
-
function getTaskName(type) {
|
|
644
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
645
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
646
|
-
return "<...>";
|
|
647
|
-
try {
|
|
648
|
-
var name = getComponentNameFromType(type);
|
|
649
|
-
return name ? "<" + name + ">" : "<...>";
|
|
650
|
-
} catch (x) {
|
|
651
|
-
return "<...>";
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
function getOwner() {
|
|
655
|
-
var dispatcher = ReactSharedInternals.A;
|
|
656
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
657
|
-
}
|
|
658
|
-
function UnknownOwner() {
|
|
659
|
-
return Error("react-stack-top-frame");
|
|
660
|
-
}
|
|
661
|
-
function hasValidKey(config) {
|
|
662
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
663
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
664
|
-
if (getter && getter.isReactWarning) return false;
|
|
665
|
-
}
|
|
666
|
-
return void 0 !== config.key;
|
|
667
|
-
}
|
|
668
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
669
|
-
function warnAboutAccessingKey() {
|
|
670
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
671
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
672
|
-
displayName
|
|
673
|
-
));
|
|
674
|
-
}
|
|
675
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
676
|
-
Object.defineProperty(props, "key", {
|
|
677
|
-
get: warnAboutAccessingKey,
|
|
678
|
-
configurable: true
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
682
|
-
var componentName = getComponentNameFromType(this.type);
|
|
683
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
684
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
685
|
-
));
|
|
686
|
-
componentName = this.props.ref;
|
|
687
|
-
return void 0 !== componentName ? componentName : null;
|
|
688
|
-
}
|
|
689
|
-
function ReactElement4(type, key, props, owner, debugStack, debugTask) {
|
|
690
|
-
var refProp = props.ref;
|
|
691
|
-
type = {
|
|
692
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
693
|
-
type,
|
|
694
|
-
key,
|
|
695
|
-
props,
|
|
696
|
-
_owner: owner
|
|
697
|
-
};
|
|
698
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
699
|
-
enumerable: false,
|
|
700
|
-
get: elementRefGetterWithDeprecationWarning
|
|
701
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
702
|
-
type._store = {};
|
|
703
|
-
Object.defineProperty(type._store, "validated", {
|
|
704
|
-
configurable: false,
|
|
705
|
-
enumerable: false,
|
|
706
|
-
writable: true,
|
|
707
|
-
value: 0
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
710
|
-
configurable: false,
|
|
711
|
-
enumerable: false,
|
|
712
|
-
writable: true,
|
|
713
|
-
value: null
|
|
714
|
-
});
|
|
715
|
-
Object.defineProperty(type, "_debugStack", {
|
|
716
|
-
configurable: false,
|
|
717
|
-
enumerable: false,
|
|
718
|
-
writable: true,
|
|
719
|
-
value: debugStack
|
|
720
|
-
});
|
|
721
|
-
Object.defineProperty(type, "_debugTask", {
|
|
722
|
-
configurable: false,
|
|
723
|
-
enumerable: false,
|
|
724
|
-
writable: true,
|
|
725
|
-
value: debugTask
|
|
726
|
-
});
|
|
727
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
728
|
-
return type;
|
|
729
|
-
}
|
|
730
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
731
|
-
newKey = ReactElement4(
|
|
732
|
-
oldElement.type,
|
|
733
|
-
newKey,
|
|
734
|
-
oldElement.props,
|
|
735
|
-
oldElement._owner,
|
|
736
|
-
oldElement._debugStack,
|
|
737
|
-
oldElement._debugTask
|
|
738
|
-
);
|
|
739
|
-
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
740
|
-
return newKey;
|
|
741
|
-
}
|
|
742
|
-
function validateChildKeys(node) {
|
|
743
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
744
|
-
}
|
|
745
|
-
function isValidElement(object) {
|
|
746
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
747
|
-
}
|
|
748
|
-
function escape(key) {
|
|
749
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
750
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
751
|
-
return escaperLookup[match];
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
function getElementKey(element, index) {
|
|
755
|
-
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
756
|
-
}
|
|
757
|
-
function resolveThenable(thenable) {
|
|
758
|
-
switch (thenable.status) {
|
|
759
|
-
case "fulfilled":
|
|
760
|
-
return thenable.value;
|
|
761
|
-
case "rejected":
|
|
762
|
-
throw thenable.reason;
|
|
763
|
-
default:
|
|
764
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
765
|
-
function(fulfilledValue) {
|
|
766
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
767
|
-
},
|
|
768
|
-
function(error) {
|
|
769
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
770
|
-
}
|
|
771
|
-
)), thenable.status) {
|
|
772
|
-
case "fulfilled":
|
|
773
|
-
return thenable.value;
|
|
774
|
-
case "rejected":
|
|
775
|
-
throw thenable.reason;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
throw thenable;
|
|
779
|
-
}
|
|
780
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
781
|
-
var type = typeof children;
|
|
782
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
783
|
-
var invokeCallback = false;
|
|
784
|
-
if (null === children) invokeCallback = true;
|
|
785
|
-
else
|
|
786
|
-
switch (type) {
|
|
787
|
-
case "bigint":
|
|
788
|
-
case "string":
|
|
789
|
-
case "number":
|
|
790
|
-
invokeCallback = true;
|
|
791
|
-
break;
|
|
792
|
-
case "object":
|
|
793
|
-
switch (children.$$typeof) {
|
|
794
|
-
case REACT_ELEMENT_TYPE:
|
|
795
|
-
case REACT_PORTAL_TYPE:
|
|
796
|
-
invokeCallback = true;
|
|
797
|
-
break;
|
|
798
|
-
case REACT_LAZY_TYPE:
|
|
799
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
800
|
-
invokeCallback(children._payload),
|
|
801
|
-
array,
|
|
802
|
-
escapedPrefix,
|
|
803
|
-
nameSoFar,
|
|
804
|
-
callback
|
|
805
|
-
);
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
if (invokeCallback) {
|
|
809
|
-
invokeCallback = children;
|
|
810
|
-
callback = callback(invokeCallback);
|
|
811
|
-
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
812
|
-
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
813
|
-
return c;
|
|
814
|
-
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
815
|
-
callback,
|
|
816
|
-
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
817
|
-
userProvidedKeyEscapeRegex,
|
|
818
|
-
"$&/"
|
|
819
|
-
) + "/") + childKey
|
|
820
|
-
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
821
|
-
return 1;
|
|
822
|
-
}
|
|
823
|
-
invokeCallback = 0;
|
|
824
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
825
|
-
if (isArrayImpl(children))
|
|
826
|
-
for (var i = 0; i < children.length; i++)
|
|
827
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
828
|
-
nameSoFar,
|
|
829
|
-
array,
|
|
830
|
-
escapedPrefix,
|
|
831
|
-
type,
|
|
832
|
-
callback
|
|
833
|
-
);
|
|
834
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
835
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
836
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
837
|
-
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
838
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
839
|
-
nameSoFar,
|
|
840
|
-
array,
|
|
841
|
-
escapedPrefix,
|
|
842
|
-
type,
|
|
843
|
-
callback
|
|
844
|
-
);
|
|
845
|
-
else if ("object" === type) {
|
|
846
|
-
if ("function" === typeof children.then)
|
|
847
|
-
return mapIntoArray(
|
|
848
|
-
resolveThenable(children),
|
|
849
|
-
array,
|
|
850
|
-
escapedPrefix,
|
|
851
|
-
nameSoFar,
|
|
852
|
-
callback
|
|
853
|
-
);
|
|
854
|
-
array = String(children);
|
|
855
|
-
throw Error(
|
|
856
|
-
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
857
|
-
);
|
|
858
|
-
}
|
|
859
|
-
return invokeCallback;
|
|
860
|
-
}
|
|
861
|
-
function mapChildren(children, func, context) {
|
|
862
|
-
if (null == children) return children;
|
|
863
|
-
var result = [], count = 0;
|
|
864
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
865
|
-
return func.call(context, child, count++);
|
|
866
|
-
});
|
|
867
|
-
return result;
|
|
868
|
-
}
|
|
869
|
-
function lazyInitializer(payload) {
|
|
870
|
-
if (-1 === payload._status) {
|
|
871
|
-
var ioInfo = payload._ioInfo;
|
|
872
|
-
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
873
|
-
ioInfo = payload._result;
|
|
874
|
-
var thenable = ioInfo();
|
|
875
|
-
thenable.then(
|
|
876
|
-
function(moduleObject) {
|
|
877
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
878
|
-
payload._status = 1;
|
|
879
|
-
payload._result = moduleObject;
|
|
880
|
-
var _ioInfo = payload._ioInfo;
|
|
881
|
-
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
882
|
-
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
function(error) {
|
|
886
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
887
|
-
payload._status = 2;
|
|
888
|
-
payload._result = error;
|
|
889
|
-
var _ioInfo2 = payload._ioInfo;
|
|
890
|
-
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
891
|
-
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
);
|
|
895
|
-
ioInfo = payload._ioInfo;
|
|
896
|
-
if (null != ioInfo) {
|
|
897
|
-
ioInfo.value = thenable;
|
|
898
|
-
var displayName = thenable.displayName;
|
|
899
|
-
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
900
|
-
}
|
|
901
|
-
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
902
|
-
}
|
|
903
|
-
if (1 === payload._status)
|
|
904
|
-
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
|
905
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
906
|
-
ioInfo
|
|
907
|
-
), "default" in ioInfo || console.error(
|
|
908
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
909
|
-
ioInfo
|
|
910
|
-
), ioInfo.default;
|
|
911
|
-
throw payload._result;
|
|
912
|
-
}
|
|
913
|
-
function resolveDispatcher() {
|
|
914
|
-
var dispatcher = ReactSharedInternals.H;
|
|
915
|
-
null === dispatcher && console.error(
|
|
916
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
917
|
-
);
|
|
918
|
-
return dispatcher;
|
|
919
|
-
}
|
|
920
|
-
function releaseAsyncTransition() {
|
|
921
|
-
ReactSharedInternals.asyncTransitions--;
|
|
922
|
-
}
|
|
923
|
-
function enqueueTask(task) {
|
|
924
|
-
if (null === enqueueTaskImpl)
|
|
925
|
-
try {
|
|
926
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
927
|
-
enqueueTaskImpl = (module && module[requireString]).call(
|
|
928
|
-
module,
|
|
929
|
-
"timers"
|
|
930
|
-
).setImmediate;
|
|
931
|
-
} catch (_err) {
|
|
932
|
-
enqueueTaskImpl = function(callback) {
|
|
933
|
-
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
934
|
-
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
935
|
-
));
|
|
936
|
-
var channel = new MessageChannel();
|
|
937
|
-
channel.port1.onmessage = callback;
|
|
938
|
-
channel.port2.postMessage(void 0);
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
return enqueueTaskImpl(task);
|
|
942
|
-
}
|
|
943
|
-
function aggregateErrors(errors) {
|
|
944
|
-
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
945
|
-
}
|
|
946
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
947
|
-
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
948
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
949
|
-
);
|
|
950
|
-
actScopeDepth = prevActScopeDepth;
|
|
951
|
-
}
|
|
952
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
953
|
-
var queue = ReactSharedInternals.actQueue;
|
|
954
|
-
if (null !== queue)
|
|
955
|
-
if (0 !== queue.length)
|
|
956
|
-
try {
|
|
957
|
-
flushActQueue(queue);
|
|
958
|
-
enqueueTask(function() {
|
|
959
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
960
|
-
});
|
|
961
|
-
return;
|
|
962
|
-
} catch (error) {
|
|
963
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
964
|
-
}
|
|
965
|
-
else ReactSharedInternals.actQueue = null;
|
|
966
|
-
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
967
|
-
}
|
|
968
|
-
function flushActQueue(queue) {
|
|
969
|
-
if (!isFlushing) {
|
|
970
|
-
isFlushing = true;
|
|
971
|
-
var i = 0;
|
|
972
|
-
try {
|
|
973
|
-
for (; i < queue.length; i++) {
|
|
974
|
-
var callback = queue[i];
|
|
975
|
-
do {
|
|
976
|
-
ReactSharedInternals.didUsePromise = false;
|
|
977
|
-
var continuation = callback(false);
|
|
978
|
-
if (null !== continuation) {
|
|
979
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
980
|
-
queue[i] = callback;
|
|
981
|
-
queue.splice(0, i);
|
|
982
|
-
return;
|
|
983
|
-
}
|
|
984
|
-
callback = continuation;
|
|
985
|
-
} else break;
|
|
986
|
-
} while (1);
|
|
987
|
-
}
|
|
988
|
-
queue.length = 0;
|
|
989
|
-
} catch (error) {
|
|
990
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
991
|
-
} finally {
|
|
992
|
-
isFlushing = false;
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
997
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
998
|
-
isMounted: function() {
|
|
999
|
-
return false;
|
|
1000
|
-
},
|
|
1001
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
1002
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
1003
|
-
},
|
|
1004
|
-
enqueueReplaceState: function(publicInstance) {
|
|
1005
|
-
warnNoop(publicInstance, "replaceState");
|
|
1006
|
-
},
|
|
1007
|
-
enqueueSetState: function(publicInstance) {
|
|
1008
|
-
warnNoop(publicInstance, "setState");
|
|
1009
|
-
}
|
|
1010
|
-
}, assign = Object.assign, emptyObject = {};
|
|
1011
|
-
Object.freeze(emptyObject);
|
|
1012
|
-
Component.prototype.isReactComponent = {};
|
|
1013
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
1014
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1015
|
-
throw Error(
|
|
1016
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1017
|
-
);
|
|
1018
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1019
|
-
};
|
|
1020
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
1021
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1022
|
-
};
|
|
1023
|
-
var deprecatedAPIs = {
|
|
1024
|
-
isMounted: [
|
|
1025
|
-
"isMounted",
|
|
1026
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1027
|
-
],
|
|
1028
|
-
replaceState: [
|
|
1029
|
-
"replaceState",
|
|
1030
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1031
|
-
]
|
|
1032
|
-
};
|
|
1033
|
-
for (fnName in deprecatedAPIs)
|
|
1034
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1035
|
-
ComponentDummy.prototype = Component.prototype;
|
|
1036
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1037
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
1038
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
1039
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
1040
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1041
|
-
H: null,
|
|
1042
|
-
A: null,
|
|
1043
|
-
T: null,
|
|
1044
|
-
S: null,
|
|
1045
|
-
actQueue: null,
|
|
1046
|
-
asyncTransitions: 0,
|
|
1047
|
-
isBatchingLegacy: false,
|
|
1048
|
-
didScheduleLegacyUpdate: false,
|
|
1049
|
-
didUsePromise: false,
|
|
1050
|
-
thrownErrors: [],
|
|
1051
|
-
getCurrentStack: null,
|
|
1052
|
-
recentlyCreatedOwnerStacks: 0
|
|
1053
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1054
|
-
return null;
|
|
1055
|
-
};
|
|
1056
|
-
deprecatedAPIs = {
|
|
1057
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1058
|
-
return callStackForError();
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1062
|
-
var didWarnAboutElementRef = {};
|
|
1063
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1064
|
-
deprecatedAPIs,
|
|
1065
|
-
UnknownOwner
|
|
1066
|
-
)();
|
|
1067
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1068
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1069
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1070
|
-
var event = new window.ErrorEvent("error", {
|
|
1071
|
-
bubbles: true,
|
|
1072
|
-
cancelable: true,
|
|
1073
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1074
|
-
error
|
|
1075
|
-
});
|
|
1076
|
-
if (!window.dispatchEvent(event)) return;
|
|
1077
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1078
|
-
process.emit("uncaughtException", error);
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
console.error(error);
|
|
1082
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1083
|
-
queueMicrotask(function() {
|
|
1084
|
-
return queueMicrotask(callback);
|
|
1085
|
-
});
|
|
1086
|
-
} : enqueueTask;
|
|
1087
|
-
deprecatedAPIs = Object.freeze({
|
|
1088
|
-
__proto__: null,
|
|
1089
|
-
c: function(size) {
|
|
1090
|
-
return resolveDispatcher().useMemoCache(size);
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
var fnName = {
|
|
1094
|
-
map: mapChildren,
|
|
1095
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
1096
|
-
mapChildren(
|
|
1097
|
-
children,
|
|
1098
|
-
function() {
|
|
1099
|
-
forEachFunc.apply(this, arguments);
|
|
1100
|
-
},
|
|
1101
|
-
forEachContext
|
|
1102
|
-
);
|
|
1103
|
-
},
|
|
1104
|
-
count: function(children) {
|
|
1105
|
-
var n = 0;
|
|
1106
|
-
mapChildren(children, function() {
|
|
1107
|
-
n++;
|
|
1108
|
-
});
|
|
1109
|
-
return n;
|
|
1110
|
-
},
|
|
1111
|
-
toArray: function(children) {
|
|
1112
|
-
return mapChildren(children, function(child) {
|
|
1113
|
-
return child;
|
|
1114
|
-
}) || [];
|
|
1115
|
-
},
|
|
1116
|
-
only: function(children) {
|
|
1117
|
-
if (!isValidElement(children))
|
|
1118
|
-
throw Error(
|
|
1119
|
-
"React.Children.only expected to receive a single React element child."
|
|
1120
|
-
);
|
|
1121
|
-
return children;
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
1125
|
-
exports.Children = fnName;
|
|
1126
|
-
exports.Component = Component;
|
|
1127
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1128
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1129
|
-
exports.PureComponent = PureComponent;
|
|
1130
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1131
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1132
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1133
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1134
|
-
exports.act = function(callback) {
|
|
1135
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1136
|
-
actScopeDepth++;
|
|
1137
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1138
|
-
try {
|
|
1139
|
-
var result = callback();
|
|
1140
|
-
} catch (error) {
|
|
1141
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1142
|
-
}
|
|
1143
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1144
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1145
|
-
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1146
|
-
var thenable = result;
|
|
1147
|
-
queueSeveralMicrotasks(function() {
|
|
1148
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1149
|
-
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1150
|
-
));
|
|
1151
|
-
});
|
|
1152
|
-
return {
|
|
1153
|
-
then: function(resolve, reject) {
|
|
1154
|
-
didAwaitActCall = true;
|
|
1155
|
-
thenable.then(
|
|
1156
|
-
function(returnValue) {
|
|
1157
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1158
|
-
if (0 === prevActScopeDepth) {
|
|
1159
|
-
try {
|
|
1160
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
1161
|
-
return recursivelyFlushAsyncActWork(
|
|
1162
|
-
returnValue,
|
|
1163
|
-
resolve,
|
|
1164
|
-
reject
|
|
1165
|
-
);
|
|
1166
|
-
});
|
|
1167
|
-
} catch (error$0) {
|
|
1168
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1169
|
-
}
|
|
1170
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1171
|
-
var _thrownError = aggregateErrors(
|
|
1172
|
-
ReactSharedInternals.thrownErrors
|
|
1173
|
-
);
|
|
1174
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
1175
|
-
reject(_thrownError);
|
|
1176
|
-
}
|
|
1177
|
-
} else resolve(returnValue);
|
|
1178
|
-
},
|
|
1179
|
-
function(error) {
|
|
1180
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1181
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1182
|
-
ReactSharedInternals.thrownErrors
|
|
1183
|
-
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1184
|
-
}
|
|
1185
|
-
);
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
}
|
|
1189
|
-
var returnValue$jscomp$0 = result;
|
|
1190
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1191
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1192
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1193
|
-
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1194
|
-
));
|
|
1195
|
-
}), ReactSharedInternals.actQueue = null);
|
|
1196
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1197
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1198
|
-
return {
|
|
1199
|
-
then: function(resolve, reject) {
|
|
1200
|
-
didAwaitActCall = true;
|
|
1201
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1202
|
-
return recursivelyFlushAsyncActWork(
|
|
1203
|
-
returnValue$jscomp$0,
|
|
1204
|
-
resolve,
|
|
1205
|
-
reject
|
|
1206
|
-
);
|
|
1207
|
-
})) : resolve(returnValue$jscomp$0);
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
|
-
};
|
|
1211
|
-
exports.cache = function(fn) {
|
|
1212
|
-
return function() {
|
|
1213
|
-
return fn.apply(null, arguments);
|
|
1214
|
-
};
|
|
1215
|
-
};
|
|
1216
|
-
exports.cacheSignal = function() {
|
|
1217
|
-
return null;
|
|
1218
|
-
};
|
|
1219
|
-
exports.captureOwnerStack = function() {
|
|
1220
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1221
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1222
|
-
};
|
|
1223
|
-
exports.cloneElement = function(element, config, children) {
|
|
1224
|
-
if (null === element || void 0 === element)
|
|
1225
|
-
throw Error(
|
|
1226
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
1227
|
-
);
|
|
1228
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1229
|
-
if (null != config) {
|
|
1230
|
-
var JSCompiler_inline_result;
|
|
1231
|
-
a: {
|
|
1232
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1233
|
-
config,
|
|
1234
|
-
"ref"
|
|
1235
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1236
|
-
JSCompiler_inline_result = false;
|
|
1237
|
-
break a;
|
|
1238
|
-
}
|
|
1239
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1240
|
-
}
|
|
1241
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1242
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1243
|
-
for (propName in config)
|
|
1244
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1245
|
-
}
|
|
1246
|
-
var propName = arguments.length - 2;
|
|
1247
|
-
if (1 === propName) props.children = children;
|
|
1248
|
-
else if (1 < propName) {
|
|
1249
|
-
JSCompiler_inline_result = Array(propName);
|
|
1250
|
-
for (var i = 0; i < propName; i++)
|
|
1251
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1252
|
-
props.children = JSCompiler_inline_result;
|
|
1253
|
-
}
|
|
1254
|
-
props = ReactElement4(
|
|
1255
|
-
element.type,
|
|
1256
|
-
key,
|
|
1257
|
-
props,
|
|
1258
|
-
owner,
|
|
1259
|
-
element._debugStack,
|
|
1260
|
-
element._debugTask
|
|
1261
|
-
);
|
|
1262
|
-
for (key = 2; key < arguments.length; key++)
|
|
1263
|
-
validateChildKeys(arguments[key]);
|
|
1264
|
-
return props;
|
|
1265
|
-
};
|
|
1266
|
-
exports.createContext = function(defaultValue) {
|
|
1267
|
-
defaultValue = {
|
|
1268
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1269
|
-
_currentValue: defaultValue,
|
|
1270
|
-
_currentValue2: defaultValue,
|
|
1271
|
-
_threadCount: 0,
|
|
1272
|
-
Provider: null,
|
|
1273
|
-
Consumer: null
|
|
1274
|
-
};
|
|
1275
|
-
defaultValue.Provider = defaultValue;
|
|
1276
|
-
defaultValue.Consumer = {
|
|
1277
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1278
|
-
_context: defaultValue
|
|
1279
|
-
};
|
|
1280
|
-
defaultValue._currentRenderer = null;
|
|
1281
|
-
defaultValue._currentRenderer2 = null;
|
|
1282
|
-
return defaultValue;
|
|
1283
|
-
};
|
|
1284
|
-
exports.createElement = function(type, config, children) {
|
|
1285
|
-
for (var i = 2; i < arguments.length; i++)
|
|
1286
|
-
validateChildKeys(arguments[i]);
|
|
1287
|
-
i = {};
|
|
1288
|
-
var key = null;
|
|
1289
|
-
if (null != config)
|
|
1290
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1291
|
-
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1292
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
1293
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1294
|
-
var childrenLength = arguments.length - 2;
|
|
1295
|
-
if (1 === childrenLength) i.children = children;
|
|
1296
|
-
else if (1 < childrenLength) {
|
|
1297
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1298
|
-
childArray[_i] = arguments[_i + 2];
|
|
1299
|
-
Object.freeze && Object.freeze(childArray);
|
|
1300
|
-
i.children = childArray;
|
|
1301
|
-
}
|
|
1302
|
-
if (type && type.defaultProps)
|
|
1303
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1304
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1305
|
-
key && defineKeyPropWarningGetter(
|
|
1306
|
-
i,
|
|
1307
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1308
|
-
);
|
|
1309
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1310
|
-
return ReactElement4(
|
|
1311
|
-
type,
|
|
1312
|
-
key,
|
|
1313
|
-
i,
|
|
1314
|
-
getOwner(),
|
|
1315
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1316
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1317
|
-
);
|
|
1318
|
-
};
|
|
1319
|
-
exports.createRef = function() {
|
|
1320
|
-
var refObject = { current: null };
|
|
1321
|
-
Object.seal(refObject);
|
|
1322
|
-
return refObject;
|
|
1323
|
-
};
|
|
1324
|
-
exports.forwardRef = function(render) {
|
|
1325
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1326
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1327
|
-
) : "function" !== typeof render ? console.error(
|
|
1328
|
-
"forwardRef requires a render function but was given %s.",
|
|
1329
|
-
null === render ? "null" : typeof render
|
|
1330
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1331
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1332
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1333
|
-
);
|
|
1334
|
-
null != render && null != render.defaultProps && console.error(
|
|
1335
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1336
|
-
);
|
|
1337
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1338
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1339
|
-
enumerable: false,
|
|
1340
|
-
configurable: true,
|
|
1341
|
-
get: function() {
|
|
1342
|
-
return ownName;
|
|
1343
|
-
},
|
|
1344
|
-
set: function(name) {
|
|
1345
|
-
ownName = name;
|
|
1346
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1347
|
-
}
|
|
1348
|
-
});
|
|
1349
|
-
return elementType;
|
|
1350
|
-
};
|
|
1351
|
-
exports.isValidElement = isValidElement;
|
|
1352
|
-
exports.lazy = function(ctor) {
|
|
1353
|
-
ctor = { _status: -1, _result: ctor };
|
|
1354
|
-
var lazyType = {
|
|
1355
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1356
|
-
_payload: ctor,
|
|
1357
|
-
_init: lazyInitializer
|
|
1358
|
-
}, ioInfo = {
|
|
1359
|
-
name: "lazy",
|
|
1360
|
-
start: -1,
|
|
1361
|
-
end: -1,
|
|
1362
|
-
value: null,
|
|
1363
|
-
owner: null,
|
|
1364
|
-
debugStack: Error("react-stack-top-frame"),
|
|
1365
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1366
|
-
};
|
|
1367
|
-
ctor._ioInfo = ioInfo;
|
|
1368
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1369
|
-
return lazyType;
|
|
1370
|
-
};
|
|
1371
|
-
exports.memo = function(type, compare) {
|
|
1372
|
-
null == type && console.error(
|
|
1373
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1374
|
-
null === type ? "null" : typeof type
|
|
1375
|
-
);
|
|
1376
|
-
compare = {
|
|
1377
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1378
|
-
type,
|
|
1379
|
-
compare: void 0 === compare ? null : compare
|
|
1380
|
-
};
|
|
1381
|
-
var ownName;
|
|
1382
|
-
Object.defineProperty(compare, "displayName", {
|
|
1383
|
-
enumerable: false,
|
|
1384
|
-
configurable: true,
|
|
1385
|
-
get: function() {
|
|
1386
|
-
return ownName;
|
|
1387
|
-
},
|
|
1388
|
-
set: function(name) {
|
|
1389
|
-
ownName = name;
|
|
1390
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1391
|
-
}
|
|
1392
|
-
});
|
|
1393
|
-
return compare;
|
|
1394
|
-
};
|
|
1395
|
-
exports.startTransition = function(scope) {
|
|
1396
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1397
|
-
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1398
|
-
ReactSharedInternals.T = currentTransition;
|
|
1399
|
-
try {
|
|
1400
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1401
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1402
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
1403
|
-
} catch (error) {
|
|
1404
|
-
reportGlobalError(error);
|
|
1405
|
-
} finally {
|
|
1406
|
-
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1407
|
-
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1408
|
-
)), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
|
|
1409
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1410
|
-
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
1411
|
-
}
|
|
1412
|
-
};
|
|
1413
|
-
exports.unstable_useCacheRefresh = function() {
|
|
1414
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1415
|
-
};
|
|
1416
|
-
exports.use = function(usable) {
|
|
1417
|
-
return resolveDispatcher().use(usable);
|
|
1418
|
-
};
|
|
1419
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
1420
|
-
return resolveDispatcher().useActionState(
|
|
1421
|
-
action,
|
|
1422
|
-
initialState,
|
|
1423
|
-
permalink
|
|
1424
|
-
);
|
|
1425
|
-
};
|
|
1426
|
-
exports.useCallback = function(callback, deps) {
|
|
1427
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1428
|
-
};
|
|
1429
|
-
exports.useContext = function(Context) {
|
|
1430
|
-
var dispatcher = resolveDispatcher();
|
|
1431
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1432
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1433
|
-
);
|
|
1434
|
-
return dispatcher.useContext(Context);
|
|
1435
|
-
};
|
|
1436
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
1437
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1438
|
-
};
|
|
1439
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
1440
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1441
|
-
};
|
|
1442
|
-
exports.useEffect = function(create, deps) {
|
|
1443
|
-
null == create && console.warn(
|
|
1444
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1445
|
-
);
|
|
1446
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
1447
|
-
};
|
|
1448
|
-
exports.useEffectEvent = function(callback) {
|
|
1449
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
1450
|
-
};
|
|
1451
|
-
exports.useId = function() {
|
|
1452
|
-
return resolveDispatcher().useId();
|
|
1453
|
-
};
|
|
1454
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1455
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1456
|
-
};
|
|
1457
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
1458
|
-
null == create && console.warn(
|
|
1459
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1460
|
-
);
|
|
1461
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1462
|
-
};
|
|
1463
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
1464
|
-
null == create && console.warn(
|
|
1465
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1466
|
-
);
|
|
1467
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1468
|
-
};
|
|
1469
|
-
exports.useMemo = function(create, deps) {
|
|
1470
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1471
|
-
};
|
|
1472
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
1473
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1474
|
-
};
|
|
1475
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
1476
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1477
|
-
};
|
|
1478
|
-
exports.useRef = function(initialValue) {
|
|
1479
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1480
|
-
};
|
|
1481
|
-
exports.useState = function(initialState) {
|
|
1482
|
-
return resolveDispatcher().useState(initialState);
|
|
1483
|
-
};
|
|
1484
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1485
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1486
|
-
subscribe,
|
|
1487
|
-
getSnapshot,
|
|
1488
|
-
getServerSnapshot
|
|
1489
|
-
);
|
|
1490
|
-
};
|
|
1491
|
-
exports.useTransition = function() {
|
|
1492
|
-
return resolveDispatcher().useTransition();
|
|
1493
|
-
};
|
|
1494
|
-
exports.version = "19.2.0";
|
|
1495
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1496
|
-
})();
|
|
1497
|
-
}
|
|
1498
|
-
});
|
|
1499
|
-
|
|
1500
|
-
// node_modules/react/index.js
|
|
1501
|
-
var require_react = __commonJS({
|
|
1502
|
-
"node_modules/react/index.js"(exports, module) {
|
|
1503
|
-
"use strict";
|
|
1504
|
-
if (process.env.NODE_ENV === "production") {
|
|
1505
|
-
module.exports = require_react_production();
|
|
1506
|
-
} else {
|
|
1507
|
-
module.exports = require_react_development();
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
});
|
|
1511
|
-
|
|
1512
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1513
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
1514
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
1515
|
-
"use strict";
|
|
1516
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
1517
|
-
function getComponentNameFromType(type) {
|
|
1518
|
-
if (null == type) return null;
|
|
1519
|
-
if ("function" === typeof type)
|
|
1520
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1521
|
-
if ("string" === typeof type) return type;
|
|
1522
|
-
switch (type) {
|
|
1523
|
-
case REACT_FRAGMENT_TYPE:
|
|
1524
|
-
return "Fragment";
|
|
1525
|
-
case REACT_PROFILER_TYPE:
|
|
1526
|
-
return "Profiler";
|
|
1527
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1528
|
-
return "StrictMode";
|
|
1529
|
-
case REACT_SUSPENSE_TYPE:
|
|
1530
|
-
return "Suspense";
|
|
1531
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1532
|
-
return "SuspenseList";
|
|
1533
|
-
case REACT_ACTIVITY_TYPE:
|
|
1534
|
-
return "Activity";
|
|
1535
|
-
}
|
|
1536
|
-
if ("object" === typeof type)
|
|
1537
|
-
switch ("number" === typeof type.tag && console.error(
|
|
1538
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1539
|
-
), type.$$typeof) {
|
|
1540
|
-
case REACT_PORTAL_TYPE:
|
|
1541
|
-
return "Portal";
|
|
1542
|
-
case REACT_CONTEXT_TYPE:
|
|
1543
|
-
return type.displayName || "Context";
|
|
1544
|
-
case REACT_CONSUMER_TYPE:
|
|
1545
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1546
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1547
|
-
var innerType = type.render;
|
|
1548
|
-
type = type.displayName;
|
|
1549
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1550
|
-
return type;
|
|
1551
|
-
case REACT_MEMO_TYPE:
|
|
1552
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1553
|
-
case REACT_LAZY_TYPE:
|
|
1554
|
-
innerType = type._payload;
|
|
1555
|
-
type = type._init;
|
|
1556
|
-
try {
|
|
1557
|
-
return getComponentNameFromType(type(innerType));
|
|
1558
|
-
} catch (x) {
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
return null;
|
|
1562
|
-
}
|
|
1563
|
-
function testStringCoercion(value) {
|
|
1564
|
-
return "" + value;
|
|
1565
|
-
}
|
|
1566
|
-
function checkKeyStringCoercion(value) {
|
|
1567
|
-
try {
|
|
1568
|
-
testStringCoercion(value);
|
|
1569
|
-
var JSCompiler_inline_result = false;
|
|
1570
|
-
} catch (e) {
|
|
1571
|
-
JSCompiler_inline_result = true;
|
|
1572
|
-
}
|
|
1573
|
-
if (JSCompiler_inline_result) {
|
|
1574
|
-
JSCompiler_inline_result = console;
|
|
1575
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1576
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1577
|
-
JSCompiler_temp_const.call(
|
|
1578
|
-
JSCompiler_inline_result,
|
|
1579
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1580
|
-
JSCompiler_inline_result$jscomp$0
|
|
1581
|
-
);
|
|
1582
|
-
return testStringCoercion(value);
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
function getTaskName(type) {
|
|
1586
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1587
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1588
|
-
return "<...>";
|
|
1589
|
-
try {
|
|
1590
|
-
var name = getComponentNameFromType(type);
|
|
1591
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1592
|
-
} catch (x) {
|
|
1593
|
-
return "<...>";
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
function getOwner() {
|
|
1597
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1598
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1599
|
-
}
|
|
1600
|
-
function UnknownOwner() {
|
|
1601
|
-
return Error("react-stack-top-frame");
|
|
1602
|
-
}
|
|
1603
|
-
function hasValidKey(config) {
|
|
1604
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1605
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1606
|
-
if (getter && getter.isReactWarning) return false;
|
|
1607
|
-
}
|
|
1608
|
-
return void 0 !== config.key;
|
|
1609
|
-
}
|
|
1610
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1611
|
-
function warnAboutAccessingKey() {
|
|
1612
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1613
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1614
|
-
displayName
|
|
1615
|
-
));
|
|
1616
|
-
}
|
|
1617
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1618
|
-
Object.defineProperty(props, "key", {
|
|
1619
|
-
get: warnAboutAccessingKey,
|
|
1620
|
-
configurable: true
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1624
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1625
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1626
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1627
|
-
));
|
|
1628
|
-
componentName = this.props.ref;
|
|
1629
|
-
return void 0 !== componentName ? componentName : null;
|
|
1630
|
-
}
|
|
1631
|
-
function ReactElement4(type, key, props, owner, debugStack, debugTask) {
|
|
1632
|
-
var refProp = props.ref;
|
|
1633
|
-
type = {
|
|
1634
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1635
|
-
type,
|
|
1636
|
-
key,
|
|
1637
|
-
props,
|
|
1638
|
-
_owner: owner
|
|
1639
|
-
};
|
|
1640
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1641
|
-
enumerable: false,
|
|
1642
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1643
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1644
|
-
type._store = {};
|
|
1645
|
-
Object.defineProperty(type._store, "validated", {
|
|
1646
|
-
configurable: false,
|
|
1647
|
-
enumerable: false,
|
|
1648
|
-
writable: true,
|
|
1649
|
-
value: 0
|
|
1650
|
-
});
|
|
1651
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1652
|
-
configurable: false,
|
|
1653
|
-
enumerable: false,
|
|
1654
|
-
writable: true,
|
|
1655
|
-
value: null
|
|
1656
|
-
});
|
|
1657
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1658
|
-
configurable: false,
|
|
1659
|
-
enumerable: false,
|
|
1660
|
-
writable: true,
|
|
1661
|
-
value: debugStack
|
|
1662
|
-
});
|
|
1663
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1664
|
-
configurable: false,
|
|
1665
|
-
enumerable: false,
|
|
1666
|
-
writable: true,
|
|
1667
|
-
value: debugTask
|
|
1668
|
-
});
|
|
1669
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1670
|
-
return type;
|
|
1671
|
-
}
|
|
1672
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1673
|
-
var children = config.children;
|
|
1674
|
-
if (void 0 !== children)
|
|
1675
|
-
if (isStaticChildren)
|
|
1676
|
-
if (isArrayImpl(children)) {
|
|
1677
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1678
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1679
|
-
Object.freeze && Object.freeze(children);
|
|
1680
|
-
} else
|
|
1681
|
-
console.error(
|
|
1682
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1683
|
-
);
|
|
1684
|
-
else validateChildKeys(children);
|
|
1685
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1686
|
-
children = getComponentNameFromType(type);
|
|
1687
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1688
|
-
return "key" !== k;
|
|
1689
|
-
});
|
|
1690
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1691
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1692
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
1693
|
-
isStaticChildren,
|
|
1694
|
-
children,
|
|
1695
|
-
keys,
|
|
1696
|
-
children
|
|
1697
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1698
|
-
}
|
|
1699
|
-
children = null;
|
|
1700
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1701
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1702
|
-
if ("key" in config) {
|
|
1703
|
-
maybeKey = {};
|
|
1704
|
-
for (var propName in config)
|
|
1705
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1706
|
-
} else maybeKey = config;
|
|
1707
|
-
children && defineKeyPropWarningGetter(
|
|
1708
|
-
maybeKey,
|
|
1709
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1710
|
-
);
|
|
1711
|
-
return ReactElement4(
|
|
1712
|
-
type,
|
|
1713
|
-
children,
|
|
1714
|
-
maybeKey,
|
|
1715
|
-
getOwner(),
|
|
1716
|
-
debugStack,
|
|
1717
|
-
debugTask
|
|
1718
|
-
);
|
|
1719
|
-
}
|
|
1720
|
-
function validateChildKeys(node) {
|
|
1721
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1722
|
-
}
|
|
1723
|
-
function isValidElement(object) {
|
|
1724
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1725
|
-
}
|
|
1726
|
-
var React4 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1727
|
-
return null;
|
|
1728
|
-
};
|
|
1729
|
-
React4 = {
|
|
1730
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1731
|
-
return callStackForError();
|
|
1732
|
-
}
|
|
1733
|
-
};
|
|
1734
|
-
var specialPropKeyWarningShown;
|
|
1735
|
-
var didWarnAboutElementRef = {};
|
|
1736
|
-
var unknownOwnerDebugStack = React4.react_stack_bottom_frame.bind(
|
|
1737
|
-
React4,
|
|
1738
|
-
UnknownOwner
|
|
1739
|
-
)();
|
|
1740
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1741
|
-
var didWarnAboutKeySpread = {};
|
|
1742
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1743
|
-
exports.jsx = function(type, config, maybeKey) {
|
|
1744
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1745
|
-
return jsxDEVImpl(
|
|
1746
|
-
type,
|
|
1747
|
-
config,
|
|
1748
|
-
maybeKey,
|
|
1749
|
-
false,
|
|
1750
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1751
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1752
|
-
);
|
|
1753
|
-
};
|
|
1754
|
-
exports.jsxs = function(type, config, maybeKey) {
|
|
1755
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1756
|
-
return jsxDEVImpl(
|
|
1757
|
-
type,
|
|
1758
|
-
config,
|
|
1759
|
-
maybeKey,
|
|
1760
|
-
true,
|
|
1761
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1762
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1763
|
-
);
|
|
1764
|
-
};
|
|
1765
|
-
})();
|
|
1766
|
-
}
|
|
1767
|
-
});
|
|
1768
|
-
|
|
1769
|
-
// node_modules/react/jsx-runtime.js
|
|
1770
|
-
var require_jsx_runtime = __commonJS({
|
|
1771
|
-
"node_modules/react/jsx-runtime.js"(exports, module) {
|
|
1772
|
-
"use strict";
|
|
1773
|
-
if (process.env.NODE_ENV === "production") {
|
|
1774
|
-
module.exports = require_react_jsx_runtime_production();
|
|
1775
|
-
} else {
|
|
1776
|
-
module.exports = require_react_jsx_runtime_development();
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
});
|
|
1780
33
|
|
|
1781
34
|
// lib/ArduinoShield/ArduinoShieldFootprint.tsx
|
|
1782
|
-
|
|
1783
|
-
var ArduinoShieldFootprint = () => /* @__PURE__ */
|
|
1784
|
-
/* @__PURE__ */
|
|
35
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
36
|
+
var ArduinoShieldFootprint = () => /* @__PURE__ */ jsxs("footprint", { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
1785
38
|
"platedhole",
|
|
1786
39
|
{
|
|
1787
40
|
holeDiameter: "1.016mm",
|
|
@@ -1793,7 +46,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1793
46
|
shape: "circle"
|
|
1794
47
|
}
|
|
1795
48
|
),
|
|
1796
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
1797
50
|
"platedhole",
|
|
1798
51
|
{
|
|
1799
52
|
holeDiameter: "1.016mm",
|
|
@@ -1805,7 +58,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1805
58
|
shape: "circle"
|
|
1806
59
|
}
|
|
1807
60
|
),
|
|
1808
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ jsx(
|
|
1809
62
|
"platedhole",
|
|
1810
63
|
{
|
|
1811
64
|
holeDiameter: "1.016mm",
|
|
@@ -1817,7 +70,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1817
70
|
shape: "circle"
|
|
1818
71
|
}
|
|
1819
72
|
),
|
|
1820
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
1821
74
|
"platedhole",
|
|
1822
75
|
{
|
|
1823
76
|
holeDiameter: "1.016mm",
|
|
@@ -1829,7 +82,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1829
82
|
shape: "circle"
|
|
1830
83
|
}
|
|
1831
84
|
),
|
|
1832
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
1833
86
|
"platedhole",
|
|
1834
87
|
{
|
|
1835
88
|
holeDiameter: "1.016mm",
|
|
@@ -1841,7 +94,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1841
94
|
shape: "circle"
|
|
1842
95
|
}
|
|
1843
96
|
),
|
|
1844
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ jsx(
|
|
1845
98
|
"platedhole",
|
|
1846
99
|
{
|
|
1847
100
|
holeDiameter: "1.016mm",
|
|
@@ -1853,13 +106,13 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1853
106
|
shape: "circle"
|
|
1854
107
|
}
|
|
1855
108
|
),
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
/* @__PURE__ */
|
|
1859
|
-
/* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "A0", fontSize: 0.8, pcbX: 31.75, pcbY: -21.99 }),
|
|
110
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "A1", fontSize: 0.8, pcbX: 29.19, pcbY: -21.99 }),
|
|
111
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "A2", fontSize: 0.8, pcbX: 26.63, pcbY: -21.99 }),
|
|
112
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "A3", fontSize: 0.8, pcbX: 24.07, pcbY: -21.99 }),
|
|
113
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "A4", fontSize: 0.8, pcbX: 21.51, pcbY: -21.99 }),
|
|
114
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "A5", fontSize: 0.8, pcbX: 18.95, pcbY: -21.99 }),
|
|
115
|
+
/* @__PURE__ */ jsx(
|
|
1863
116
|
"platedhole",
|
|
1864
117
|
{
|
|
1865
118
|
holeDiameter: "1.016mm",
|
|
@@ -1871,7 +124,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1871
124
|
shape: "circle"
|
|
1872
125
|
}
|
|
1873
126
|
),
|
|
1874
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ jsx(
|
|
1875
128
|
"platedhole",
|
|
1876
129
|
{
|
|
1877
130
|
holeDiameter: "1.016mm",
|
|
@@ -1883,7 +136,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1883
136
|
shape: "circle"
|
|
1884
137
|
}
|
|
1885
138
|
),
|
|
1886
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
1887
140
|
"platedhole",
|
|
1888
141
|
{
|
|
1889
142
|
holeDiameter: "1.016mm",
|
|
@@ -1895,7 +148,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1895
148
|
shape: "circle"
|
|
1896
149
|
}
|
|
1897
150
|
),
|
|
1898
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ jsx(
|
|
1899
152
|
"platedhole",
|
|
1900
153
|
{
|
|
1901
154
|
holeDiameter: "1.016mm",
|
|
@@ -1907,7 +160,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1907
160
|
shape: "circle"
|
|
1908
161
|
}
|
|
1909
162
|
),
|
|
1910
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
1911
164
|
"platedhole",
|
|
1912
165
|
{
|
|
1913
166
|
holeDiameter: "1.016mm",
|
|
@@ -1919,7 +172,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1919
172
|
shape: "circle"
|
|
1920
173
|
}
|
|
1921
174
|
),
|
|
1922
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ jsx(
|
|
1923
176
|
"platedhole",
|
|
1924
177
|
{
|
|
1925
178
|
holeDiameter: "1.016mm",
|
|
@@ -1931,7 +184,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1931
184
|
shape: "circle"
|
|
1932
185
|
}
|
|
1933
186
|
),
|
|
1934
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ jsx(
|
|
1935
188
|
"platedhole",
|
|
1936
189
|
{
|
|
1937
190
|
holeDiameter: "1.016mm",
|
|
@@ -1943,7 +196,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1943
196
|
shape: "circle"
|
|
1944
197
|
}
|
|
1945
198
|
),
|
|
1946
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ jsx(
|
|
1947
200
|
"platedhole",
|
|
1948
201
|
{
|
|
1949
202
|
holeDiameter: "1.016mm",
|
|
@@ -1955,15 +208,15 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1955
208
|
shape: "circle"
|
|
1956
209
|
}
|
|
1957
210
|
),
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
1961
|
-
/* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
-
/* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "VIN", fontSize: 0.8, pcbX: 13.91, pcbY: -21.99 }),
|
|
212
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "GND1", fontSize: 0.8, pcbX: 11.35, pcbY: -21.99 }),
|
|
213
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "GND0", fontSize: 0.8, pcbX: 8.79, pcbY: -21.99 }),
|
|
214
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "V5", fontSize: 0.8, pcbX: 6.23, pcbY: -21.99 }),
|
|
215
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "V3_3", fontSize: 0.8, pcbX: 3.67, pcbY: -21.99 }),
|
|
216
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "RES", fontSize: 0.8, pcbX: 1.11, pcbY: -21.99 }),
|
|
217
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "IOREF", fontSize: 0.8, pcbX: -1.11, pcbY: -21.99 }),
|
|
218
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "NC", fontSize: 0.8, pcbX: -3.67, pcbY: -21.99 }),
|
|
219
|
+
/* @__PURE__ */ jsx(
|
|
1967
220
|
"platedhole",
|
|
1968
221
|
{
|
|
1969
222
|
holeDiameter: "1.016mm",
|
|
@@ -1975,7 +228,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1975
228
|
shape: "circle"
|
|
1976
229
|
}
|
|
1977
230
|
),
|
|
1978
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ jsx(
|
|
1979
232
|
"platedhole",
|
|
1980
233
|
{
|
|
1981
234
|
holeDiameter: "1.016mm",
|
|
@@ -1987,7 +240,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1987
240
|
shape: "circle"
|
|
1988
241
|
}
|
|
1989
242
|
),
|
|
1990
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ jsx(
|
|
1991
244
|
"platedhole",
|
|
1992
245
|
{
|
|
1993
246
|
holeDiameter: "1.016mm",
|
|
@@ -1999,7 +252,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
1999
252
|
shape: "circle"
|
|
2000
253
|
}
|
|
2001
254
|
),
|
|
2002
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ jsx(
|
|
2003
256
|
"platedhole",
|
|
2004
257
|
{
|
|
2005
258
|
holeDiameter: "1.016mm",
|
|
@@ -2011,7 +264,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2011
264
|
shape: "circle"
|
|
2012
265
|
}
|
|
2013
266
|
),
|
|
2014
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ jsx(
|
|
2015
268
|
"platedhole",
|
|
2016
269
|
{
|
|
2017
270
|
holeDiameter: "1.016mm",
|
|
@@ -2023,7 +276,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2023
276
|
shape: "circle"
|
|
2024
277
|
}
|
|
2025
278
|
),
|
|
2026
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ jsx(
|
|
2027
280
|
"platedhole",
|
|
2028
281
|
{
|
|
2029
282
|
holeDiameter: "1.016mm",
|
|
@@ -2035,7 +288,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2035
288
|
shape: "circle"
|
|
2036
289
|
}
|
|
2037
290
|
),
|
|
2038
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ jsx(
|
|
2039
292
|
"platedhole",
|
|
2040
293
|
{
|
|
2041
294
|
holeDiameter: "1.016mm",
|
|
@@ -2047,7 +300,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2047
300
|
shape: "circle"
|
|
2048
301
|
}
|
|
2049
302
|
),
|
|
2050
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ jsx(
|
|
2051
304
|
"platedhole",
|
|
2052
305
|
{
|
|
2053
306
|
holeDiameter: "1.016mm",
|
|
@@ -2059,15 +312,15 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2059
312
|
shape: "circle"
|
|
2060
313
|
}
|
|
2061
314
|
),
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
/* @__PURE__ */
|
|
2064
|
-
/* @__PURE__ */
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
-
/* @__PURE__ */
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D7", fontSize: 0.8, pcbX: 13.83, pcbY: 22.2 }),
|
|
316
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D6", fontSize: 0.8, pcbX: 16.39, pcbY: 22.2 }),
|
|
317
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D5", fontSize: 0.8, pcbX: 18.95, pcbY: 22.2 }),
|
|
318
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D4", fontSize: 0.8, pcbX: 21.51, pcbY: 22.2 }),
|
|
319
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D3", fontSize: 0.8, pcbX: 24.07, pcbY: 22.2 }),
|
|
320
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D2", fontSize: 0.8, pcbX: 26.63, pcbY: 22.2 }),
|
|
321
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "TX", fontSize: 0.8, pcbX: 29.19, pcbY: 22.2 }),
|
|
322
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "RX", fontSize: 0.8, pcbX: 31.75, pcbY: 22.2 }),
|
|
323
|
+
/* @__PURE__ */ jsx(
|
|
2071
324
|
"platedhole",
|
|
2072
325
|
{
|
|
2073
326
|
holeDiameter: "1.016mm",
|
|
@@ -2079,7 +332,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2079
332
|
shape: "circle"
|
|
2080
333
|
}
|
|
2081
334
|
),
|
|
2082
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ jsx(
|
|
2083
336
|
"platedhole",
|
|
2084
337
|
{
|
|
2085
338
|
holeDiameter: "1.016mm",
|
|
@@ -2091,7 +344,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2091
344
|
shape: "circle"
|
|
2092
345
|
}
|
|
2093
346
|
),
|
|
2094
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ jsx(
|
|
2095
348
|
"platedhole",
|
|
2096
349
|
{
|
|
2097
350
|
holeDiameter: "1.016mm",
|
|
@@ -2103,7 +356,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2103
356
|
shape: "circle"
|
|
2104
357
|
}
|
|
2105
358
|
),
|
|
2106
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ jsx(
|
|
2107
360
|
"platedhole",
|
|
2108
361
|
{
|
|
2109
362
|
holeDiameter: "1.016mm",
|
|
@@ -2115,7 +368,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2115
368
|
shape: "circle"
|
|
2116
369
|
}
|
|
2117
370
|
),
|
|
2118
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ jsx(
|
|
2119
372
|
"platedhole",
|
|
2120
373
|
{
|
|
2121
374
|
holeDiameter: "1.016mm",
|
|
@@ -2127,7 +380,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2127
380
|
shape: "circle"
|
|
2128
381
|
}
|
|
2129
382
|
),
|
|
2130
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ jsx(
|
|
2131
384
|
"platedhole",
|
|
2132
385
|
{
|
|
2133
386
|
holeDiameter: "1.016mm",
|
|
@@ -2139,7 +392,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2139
392
|
shape: "circle"
|
|
2140
393
|
}
|
|
2141
394
|
),
|
|
2142
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ jsx(
|
|
2143
396
|
"platedhole",
|
|
2144
397
|
{
|
|
2145
398
|
holeDiameter: "1.016mm",
|
|
@@ -2151,7 +404,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2151
404
|
shape: "circle"
|
|
2152
405
|
}
|
|
2153
406
|
),
|
|
2154
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ jsx(
|
|
2155
408
|
"platedhole",
|
|
2156
409
|
{
|
|
2157
410
|
holeDiameter: "1.016mm",
|
|
@@ -2163,7 +416,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2163
416
|
shape: "circle"
|
|
2164
417
|
}
|
|
2165
418
|
),
|
|
2166
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ jsx(
|
|
2167
420
|
"platedhole",
|
|
2168
421
|
{
|
|
2169
422
|
holeDiameter: "1.016mm",
|
|
@@ -2175,7 +428,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2175
428
|
shape: "circle"
|
|
2176
429
|
}
|
|
2177
430
|
),
|
|
2178
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ jsx(
|
|
2179
432
|
"platedhole",
|
|
2180
433
|
{
|
|
2181
434
|
holeDiameter: "1.016mm",
|
|
@@ -2187,16 +440,16 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2187
440
|
shape: "circle"
|
|
2188
441
|
}
|
|
2189
442
|
),
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
/* @__PURE__ */
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__PURE__ */
|
|
2194
|
-
/* @__PURE__ */
|
|
2195
|
-
/* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */
|
|
2199
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D8", fontSize: 0.8, pcbX: 9.96, pcbY: 22.2 }),
|
|
444
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D9", fontSize: 0.8, pcbX: 7.4, pcbY: 22.2 }),
|
|
445
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D10", fontSize: 0.8, pcbX: 4.84, pcbY: 22.2 }),
|
|
446
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D11", fontSize: 0.8, pcbX: 2.28, pcbY: 22.2 }),
|
|
447
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D12", fontSize: 0.8, pcbX: -0.28, pcbY: 22.2 }),
|
|
448
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "D13", fontSize: 0.8, pcbX: -2.82, pcbY: 22.2 }),
|
|
449
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "GND2", fontSize: 0.8, pcbX: -5.36, pcbY: 22.2 }),
|
|
450
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "AREF", fontSize: 0.8, pcbX: -7.9, pcbY: 22.2 }),
|
|
451
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "SDA", fontSize: 0.8, pcbX: -10.46, pcbY: 22.2 }),
|
|
452
|
+
/* @__PURE__ */ jsx("silkscreentext", { text: "SCL", fontSize: 0.8, pcbX: -12.9, pcbY: 22.2 })
|
|
2200
453
|
] });
|
|
2201
454
|
|
|
2202
455
|
// util/splitBoardAndChipProps.ts
|
|
@@ -2227,13 +480,13 @@ var splitBoardAndChipProps = (props = {}) => {
|
|
|
2227
480
|
};
|
|
2228
481
|
|
|
2229
482
|
// lib/ArduinoShield/ArduinoShield.circuit.tsx
|
|
2230
|
-
|
|
483
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2231
484
|
var ArduinoShield = (_a) => {
|
|
2232
485
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
2233
486
|
const { boardProps, chipProps = {} } = splitBoardAndChipProps(__spreadValues({}, rest));
|
|
2234
487
|
const resolvedName = `${chipProps.name}_chip`;
|
|
2235
488
|
const _a2 = chipProps, { name: _ } = _a2, chipRest = __objRest(_a2, ["name"]);
|
|
2236
|
-
return /* @__PURE__ */ (
|
|
489
|
+
return /* @__PURE__ */ jsxs2(
|
|
2237
490
|
"board",
|
|
2238
491
|
__spreadProps(__spreadValues({}, boardProps), {
|
|
2239
492
|
outline: [
|
|
@@ -2257,7 +510,7 @@ var ArduinoShield = (_a) => {
|
|
|
2257
510
|
// bottom-left corner
|
|
2258
511
|
],
|
|
2259
512
|
children: [
|
|
2260
|
-
/* @__PURE__ */ (
|
|
513
|
+
/* @__PURE__ */ jsx2(
|
|
2261
514
|
"chip",
|
|
2262
515
|
__spreadProps(__spreadValues({}, chipRest), {
|
|
2263
516
|
obstructsWithinBounds: false,
|
|
@@ -2351,7 +604,7 @@ var ArduinoShield = (_a) => {
|
|
|
2351
604
|
marginBottom: 0.3
|
|
2352
605
|
}
|
|
2353
606
|
},
|
|
2354
|
-
footprint: /* @__PURE__ */ (
|
|
607
|
+
footprint: /* @__PURE__ */ jsx2(ArduinoShieldFootprint, {})
|
|
2355
608
|
})
|
|
2356
609
|
),
|
|
2357
610
|
children
|
|
@@ -2361,10 +614,10 @@ var ArduinoShield = (_a) => {
|
|
|
2361
614
|
};
|
|
2362
615
|
|
|
2363
616
|
// lib/MicroModBoard/MicroModBoardFootprint.tsx
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
var createSmtPad = (props) =>
|
|
2367
|
-
var createPlatedHole = (props) =>
|
|
617
|
+
import React from "react";
|
|
618
|
+
import { jsxs as jsxs3 } from "react/jsx-runtime";
|
|
619
|
+
var createSmtPad = (props) => React.createElement("smtpad", props);
|
|
620
|
+
var createPlatedHole = (props) => React.createElement("platedhole", props);
|
|
2368
621
|
var MicroModBoardFootprint = ({
|
|
2369
622
|
variant = "processor"
|
|
2370
623
|
}) => {
|
|
@@ -2440,7 +693,7 @@ var MicroModBoardFootprint = ({
|
|
|
2440
693
|
pcbY: 11,
|
|
2441
694
|
shape: "circle"
|
|
2442
695
|
});
|
|
2443
|
-
return /* @__PURE__ */ (
|
|
696
|
+
return /* @__PURE__ */ jsxs3("footprint", { children: [
|
|
2444
697
|
generatePads(),
|
|
2445
698
|
Array.isArray(mountingHoles) ? mountingHoles : [mountingHoles]
|
|
2446
699
|
] });
|
|
@@ -2607,7 +860,7 @@ var processorOutline = outlineBuilder(-9, 11).lineTo(11, 11).corner({ radius: 1,
|
|
|
2607
860
|
var functionOutline = outlineBuilder(0, 32.5).lineTo(19, 32.5).corner({ radius: 1, turn: "ccw" }).lineTo(19, -28.5).corner({ radius: 0.5, turn: "ccw" }).lineTo(10, -28.5).corner({ radius: 0.5, turn: "cw" }).lineTo(10, -32.5).lineTo(3.28, -32.5).lineTo(3.28, -29.5).arcTo(2.08, -29.5, { radius: 0.6, sweep: true }).lineTo(2.08, -32.5).lineTo(-10, -32.5).lineTo(-10, -28.5).corner({ radius: 0.5, turn: "cw" }).lineTo(-19, -28.5).corner({ radius: 0.5, turn: "ccw" }).lineTo(-19, 32.5).corner({ radius: 1, turn: "ccw" }).toArray();
|
|
2608
861
|
|
|
2609
862
|
// lib/MicroModBoard/MicroModBoard.tsx
|
|
2610
|
-
|
|
863
|
+
import { jsx as jsx3, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2611
864
|
var MicroModBoard = (_a) => {
|
|
2612
865
|
var _b = _a, {
|
|
2613
866
|
variant = "processor",
|
|
@@ -2693,12 +946,12 @@ var MicroModBoard = (_a) => {
|
|
|
2693
946
|
pin76: ["HOLE_PAD_1"]
|
|
2694
947
|
}, variant === "function" ? { pin77: ["HOLE_PAD_2"] } : {});
|
|
2695
948
|
outline = variant === "processor" ? processorOutline : functionOutline;
|
|
2696
|
-
return /* @__PURE__ */ (
|
|
2697
|
-
/* @__PURE__ */ (
|
|
949
|
+
return /* @__PURE__ */ jsxs4("board", __spreadProps(__spreadValues({}, boardProps), { outline, children: [
|
|
950
|
+
/* @__PURE__ */ jsx3(
|
|
2698
951
|
"chip",
|
|
2699
952
|
__spreadProps(__spreadValues({}, chipRest), {
|
|
2700
953
|
name: resolvedName,
|
|
2701
|
-
footprint: /* @__PURE__ */ (
|
|
954
|
+
footprint: /* @__PURE__ */ jsx3(MicroModBoardFootprint, { variant }),
|
|
2702
955
|
schWidth: 2.8,
|
|
2703
956
|
pcbX: 0,
|
|
2704
957
|
pcbY: 0,
|
|
@@ -2835,7 +1088,7 @@ var MicroModBoard = (_a) => {
|
|
|
2835
1088
|
};
|
|
2836
1089
|
|
|
2837
1090
|
// lib/RaspberryPiHatBoard/RaspberryPiHatBoard.circuit.tsx
|
|
2838
|
-
|
|
1091
|
+
import { jsx as jsx4, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2839
1092
|
var RaspberryPiHatBoard = (_a) => {
|
|
2840
1093
|
var _b = _a, {
|
|
2841
1094
|
children
|
|
@@ -2888,8 +1141,8 @@ var RaspberryPiHatBoard = (_a) => {
|
|
|
2888
1141
|
pin39: ["GPIO_3", "SCL"],
|
|
2889
1142
|
pin40: ["GPIO_2", "SDA"]
|
|
2890
1143
|
};
|
|
2891
|
-
return /* @__PURE__ */ (
|
|
2892
|
-
/* @__PURE__ */ (
|
|
1144
|
+
return /* @__PURE__ */ jsxs5("board", __spreadProps(__spreadValues({}, boardProps), { outline, children: [
|
|
1145
|
+
/* @__PURE__ */ jsx4(
|
|
2893
1146
|
"chip",
|
|
2894
1147
|
__spreadProps(__spreadValues({}, chipRest), {
|
|
2895
1148
|
name: resolvedChipName,
|
|
@@ -2983,20 +1236,20 @@ var RaspberryPiHatBoard = (_a) => {
|
|
|
2983
1236
|
}
|
|
2984
1237
|
})
|
|
2985
1238
|
),
|
|
2986
|
-
/* @__PURE__ */ (
|
|
2987
|
-
/* @__PURE__ */ (
|
|
2988
|
-
/* @__PURE__ */ (
|
|
2989
|
-
/* @__PURE__ */ (
|
|
1239
|
+
/* @__PURE__ */ jsx4("hole", { diameter: 2.8, pcbX: -29, pcbY: 24.5 }),
|
|
1240
|
+
/* @__PURE__ */ jsx4("hole", { diameter: 2.8, pcbX: 29, pcbY: -24.5 }),
|
|
1241
|
+
/* @__PURE__ */ jsx4("hole", { diameter: 2.8, pcbX: -29, pcbY: -24.5 }),
|
|
1242
|
+
/* @__PURE__ */ jsx4("hole", { diameter: 2.8, pcbX: 29, pcbY: 24.5 }),
|
|
2990
1243
|
children
|
|
2991
1244
|
] }));
|
|
2992
1245
|
};
|
|
2993
1246
|
|
|
2994
1247
|
// lib/XiaoBoard/XiaoBoardFootprint.tsx
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
var createSmtPad2 = (props) =>
|
|
2998
|
-
var createPlatedHole2 = (props) =>
|
|
2999
|
-
var createHole = (props) =>
|
|
1248
|
+
import React2 from "react";
|
|
1249
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1250
|
+
var createSmtPad2 = (props) => React2.createElement("smtpad", props);
|
|
1251
|
+
var createPlatedHole2 = (props) => React2.createElement("platedhole", props);
|
|
1252
|
+
var createHole = (props) => React2.createElement("hole", props);
|
|
3000
1253
|
var XiaoBoardFootprint = ({
|
|
3001
1254
|
top = 0,
|
|
3002
1255
|
bottom = 0,
|
|
@@ -3178,11 +1431,11 @@ var XiaoBoardFootprint = ({
|
|
|
3178
1431
|
}
|
|
3179
1432
|
return pads;
|
|
3180
1433
|
};
|
|
3181
|
-
return /* @__PURE__ */ (
|
|
1434
|
+
return /* @__PURE__ */ jsx5("footprint", { children: generatePads() });
|
|
3182
1435
|
};
|
|
3183
1436
|
|
|
3184
1437
|
// lib/XiaoBoard/XiaoBoard.circuit.tsx
|
|
3185
|
-
|
|
1438
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
3186
1439
|
var XiaoBoard = (_a) => {
|
|
3187
1440
|
var _b = _a, {
|
|
3188
1441
|
variant,
|
|
@@ -3269,12 +1522,12 @@ var XiaoBoard = (_a) => {
|
|
|
3269
1522
|
}
|
|
3270
1523
|
};
|
|
3271
1524
|
const outline = outlineBuilder(0, 10.55).lineTo(8.89, 10.55).corner({ radius: 1.8, turn: "ccw" }).lineTo(8.89, -10.55).corner({ radius: 1.8, turn: "ccw" }).lineTo(-8.89, -10.55).corner({ radius: 1.8, turn: "ccw" }).lineTo(-8.89, 10.55).corner({ radius: 1.8, turn: "ccw" }).lineTo(0, 10.55).toArray();
|
|
3272
|
-
return /* @__PURE__ */ (
|
|
3273
|
-
/* @__PURE__ */ (
|
|
1525
|
+
return /* @__PURE__ */ jsxs6("board", __spreadProps(__spreadValues({}, boardProps), { outline, children: [
|
|
1526
|
+
/* @__PURE__ */ jsx6(
|
|
3274
1527
|
"chip",
|
|
3275
1528
|
__spreadValues(__spreadProps(__spreadValues({}, chipRest), {
|
|
3276
1529
|
name: resolvedName,
|
|
3277
|
-
footprint: /* @__PURE__ */ (
|
|
1530
|
+
footprint: /* @__PURE__ */ jsx6(
|
|
3278
1531
|
XiaoBoardFootprint,
|
|
3279
1532
|
{
|
|
3280
1533
|
variant,
|
|
@@ -3312,7 +1565,7 @@ var XiaoBoard = (_a) => {
|
|
|
3312
1565
|
};
|
|
3313
1566
|
|
|
3314
1567
|
// lib/XiaoBoard/XiaoReceiver.circuit.tsx
|
|
3315
|
-
|
|
1568
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3316
1569
|
var PIN_LABELS = {
|
|
3317
1570
|
pin1: "A0",
|
|
3318
1571
|
pin2: "A1",
|
|
@@ -3341,16 +1594,16 @@ var PIN_ARRANGEMENT = {
|
|
|
3341
1594
|
};
|
|
3342
1595
|
var XiaoReceiver = (props) => {
|
|
3343
1596
|
const _a = props, { children, throughHole } = _a, rest = __objRest(_a, ["children", "throughHole"]);
|
|
3344
|
-
return /* @__PURE__ */ (
|
|
1597
|
+
return /* @__PURE__ */ jsxs7(
|
|
3345
1598
|
"chip",
|
|
3346
1599
|
__spreadProps(__spreadValues({}, rest), {
|
|
3347
|
-
footprint: /* @__PURE__ */ (
|
|
1600
|
+
footprint: /* @__PURE__ */ jsx7(XiaoBoardFootprint, { variant: "Receiver", withPlatedHoles: throughHole }),
|
|
3348
1601
|
pinLabels: PIN_LABELS,
|
|
3349
1602
|
schPinArrangement: PIN_ARRANGEMENT,
|
|
3350
1603
|
schWidth: 1.5,
|
|
3351
1604
|
doNotPlace: true,
|
|
3352
1605
|
children: [
|
|
3353
|
-
/* @__PURE__ */ (
|
|
1606
|
+
/* @__PURE__ */ jsx7(
|
|
3354
1607
|
"silkscreenpath",
|
|
3355
1608
|
{
|
|
3356
1609
|
route: [
|
|
@@ -3359,7 +1612,7 @@ var XiaoReceiver = (props) => {
|
|
|
3359
1612
|
]
|
|
3360
1613
|
}
|
|
3361
1614
|
),
|
|
3362
|
-
/* @__PURE__ */ (
|
|
1615
|
+
/* @__PURE__ */ jsx7(
|
|
3363
1616
|
"silkscreenpath",
|
|
3364
1617
|
{
|
|
3365
1618
|
route: [
|
|
@@ -3368,7 +1621,7 @@ var XiaoReceiver = (props) => {
|
|
|
3368
1621
|
]
|
|
3369
1622
|
}
|
|
3370
1623
|
),
|
|
3371
|
-
/* @__PURE__ */ (
|
|
1624
|
+
/* @__PURE__ */ jsx7(
|
|
3372
1625
|
"silkscreenpath",
|
|
3373
1626
|
{
|
|
3374
1627
|
route: [
|
|
@@ -3377,7 +1630,7 @@ var XiaoReceiver = (props) => {
|
|
|
3377
1630
|
]
|
|
3378
1631
|
}
|
|
3379
1632
|
),
|
|
3380
|
-
/* @__PURE__ */ (
|
|
1633
|
+
/* @__PURE__ */ jsx7(
|
|
3381
1634
|
"silkscreenpath",
|
|
3382
1635
|
{
|
|
3383
1636
|
route: [
|
|
@@ -3386,7 +1639,7 @@ var XiaoReceiver = (props) => {
|
|
|
3386
1639
|
]
|
|
3387
1640
|
}
|
|
3388
1641
|
),
|
|
3389
|
-
/* @__PURE__ */ (
|
|
1642
|
+
/* @__PURE__ */ jsx7(
|
|
3390
1643
|
"silkscreenpath",
|
|
3391
1644
|
{
|
|
3392
1645
|
route: [
|
|
@@ -3395,7 +1648,7 @@ var XiaoReceiver = (props) => {
|
|
|
3395
1648
|
]
|
|
3396
1649
|
}
|
|
3397
1650
|
),
|
|
3398
|
-
/* @__PURE__ */ (
|
|
1651
|
+
/* @__PURE__ */ jsx7(
|
|
3399
1652
|
"silkscreenpath",
|
|
3400
1653
|
{
|
|
3401
1654
|
route: [
|
|
@@ -3404,7 +1657,7 @@ var XiaoReceiver = (props) => {
|
|
|
3404
1657
|
]
|
|
3405
1658
|
}
|
|
3406
1659
|
),
|
|
3407
|
-
/* @__PURE__ */ (
|
|
1660
|
+
/* @__PURE__ */ jsx7(
|
|
3408
1661
|
"silkscreenpath",
|
|
3409
1662
|
{
|
|
3410
1663
|
route: [
|
|
@@ -3413,7 +1666,7 @@ var XiaoReceiver = (props) => {
|
|
|
3413
1666
|
]
|
|
3414
1667
|
}
|
|
3415
1668
|
),
|
|
3416
|
-
/* @__PURE__ */ (
|
|
1669
|
+
/* @__PURE__ */ jsx7(
|
|
3417
1670
|
"silkscreenpath",
|
|
3418
1671
|
{
|
|
3419
1672
|
route: [
|
|
@@ -3424,7 +1677,7 @@ var XiaoReceiver = (props) => {
|
|
|
3424
1677
|
]
|
|
3425
1678
|
}
|
|
3426
1679
|
),
|
|
3427
|
-
/* @__PURE__ */ (
|
|
1680
|
+
/* @__PURE__ */ jsx7(
|
|
3428
1681
|
"silkscreenpath",
|
|
3429
1682
|
{
|
|
3430
1683
|
route: [
|
|
@@ -3435,7 +1688,7 @@ var XiaoReceiver = (props) => {
|
|
|
3435
1688
|
]
|
|
3436
1689
|
}
|
|
3437
1690
|
),
|
|
3438
|
-
/* @__PURE__ */ (
|
|
1691
|
+
/* @__PURE__ */ jsx7(
|
|
3439
1692
|
"silkscreenpath",
|
|
3440
1693
|
{
|
|
3441
1694
|
route: [
|
|
@@ -3444,7 +1697,7 @@ var XiaoReceiver = (props) => {
|
|
|
3444
1697
|
]
|
|
3445
1698
|
}
|
|
3446
1699
|
),
|
|
3447
|
-
/* @__PURE__ */ (
|
|
1700
|
+
/* @__PURE__ */ jsx7(
|
|
3448
1701
|
"silkscreenpath",
|
|
3449
1702
|
{
|
|
3450
1703
|
route: [
|
|
@@ -3453,7 +1706,7 @@ var XiaoReceiver = (props) => {
|
|
|
3453
1706
|
]
|
|
3454
1707
|
}
|
|
3455
1708
|
),
|
|
3456
|
-
/* @__PURE__ */ (
|
|
1709
|
+
/* @__PURE__ */ jsx7(
|
|
3457
1710
|
"silkscreenpath",
|
|
3458
1711
|
{
|
|
3459
1712
|
route: [
|
|
@@ -3464,7 +1717,7 @@ var XiaoReceiver = (props) => {
|
|
|
3464
1717
|
]
|
|
3465
1718
|
}
|
|
3466
1719
|
),
|
|
3467
|
-
/* @__PURE__ */ (
|
|
1720
|
+
/* @__PURE__ */ jsx7(
|
|
3468
1721
|
"silkscreenpath",
|
|
3469
1722
|
{
|
|
3470
1723
|
route: [
|
|
@@ -3482,9 +1735,9 @@ var XiaoReceiver = (props) => {
|
|
|
3482
1735
|
};
|
|
3483
1736
|
|
|
3484
1737
|
// lib/ProMicroBoard/ProMicroBoardFootprint.tsx
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
var createPlatedHole3 = (props) =>
|
|
1738
|
+
import React3 from "react";
|
|
1739
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1740
|
+
var createPlatedHole3 = (props) => React3.createElement("platedhole", props);
|
|
3488
1741
|
var ProMicroBoardFootprint = ({
|
|
3489
1742
|
left = 12,
|
|
3490
1743
|
right = 12,
|
|
@@ -3524,11 +1777,11 @@ var ProMicroBoardFootprint = ({
|
|
|
3524
1777
|
);
|
|
3525
1778
|
pinNumber++;
|
|
3526
1779
|
}
|
|
3527
|
-
return /* @__PURE__ */ (
|
|
1780
|
+
return /* @__PURE__ */ jsx8("footprint", { children: pads });
|
|
3528
1781
|
};
|
|
3529
1782
|
|
|
3530
1783
|
// lib/ProMicroBoard/ProMicroBoard.circuit.tsx
|
|
3531
|
-
|
|
1784
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3532
1785
|
var ProMicroBoard = (_a) => {
|
|
3533
1786
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
3534
1787
|
const { boardProps, chipProps = {} } = splitBoardAndChipProps(__spreadValues({}, rest));
|
|
@@ -3596,7 +1849,7 @@ var ProMicroBoard = (_a) => {
|
|
|
3596
1849
|
]
|
|
3597
1850
|
}
|
|
3598
1851
|
};
|
|
3599
|
-
return /* @__PURE__ */ (
|
|
1852
|
+
return /* @__PURE__ */ jsxs8(
|
|
3600
1853
|
"board",
|
|
3601
1854
|
__spreadProps(__spreadValues({}, boardProps), {
|
|
3602
1855
|
outline: [
|
|
@@ -3607,11 +1860,11 @@ var ProMicroBoard = (_a) => {
|
|
|
3607
1860
|
{ x: -8.89, y: 16.51 }
|
|
3608
1861
|
],
|
|
3609
1862
|
children: [
|
|
3610
|
-
/* @__PURE__ */ (
|
|
1863
|
+
/* @__PURE__ */ jsx9(
|
|
3611
1864
|
"chip",
|
|
3612
1865
|
__spreadProps(__spreadValues({}, chipRest), {
|
|
3613
1866
|
name: resolvedName,
|
|
3614
|
-
footprint: /* @__PURE__ */ (
|
|
1867
|
+
footprint: /* @__PURE__ */ jsx9(ProMicroBoardFootprint, {}),
|
|
3615
1868
|
doNotPlace: true,
|
|
3616
1869
|
pcbX: 0,
|
|
3617
1870
|
pcbY: 0,
|
|
@@ -3626,58 +1879,14 @@ var ProMicroBoard = (_a) => {
|
|
|
3626
1879
|
);
|
|
3627
1880
|
};
|
|
3628
1881
|
|
|
3629
|
-
//
|
|
3630
|
-
|
|
3631
|
-
rows,
|
|
3632
|
-
cols,
|
|
3633
|
-
xSpacing,
|
|
3634
|
-
ySpacing,
|
|
3635
|
-
width,
|
|
3636
|
-
height,
|
|
3637
|
-
offsetX = 0,
|
|
3638
|
-
offsetY = 0,
|
|
3639
|
-
yDirection = "cartesian",
|
|
3640
|
-
centered = true
|
|
3641
|
-
}) {
|
|
3642
|
-
const effectiveXSpacing = xSpacing != null ? xSpacing : 1;
|
|
3643
|
-
const effectiveYSpacing = ySpacing != null ? ySpacing : 1;
|
|
3644
|
-
const totalWidth = width != null ? width : cols * effectiveXSpacing;
|
|
3645
|
-
const totalHeight = height != null ? height : rows * effectiveYSpacing;
|
|
3646
|
-
const centeringOffsetX = centered ? -totalWidth / 2 : 0;
|
|
3647
|
-
const centeringOffsetY = centered ? -totalHeight / 2 : 0;
|
|
3648
|
-
const cellWidth = width ? width / cols : effectiveXSpacing;
|
|
3649
|
-
const cellHeight = height ? height / rows : effectiveYSpacing;
|
|
3650
|
-
const cells = [];
|
|
3651
|
-
for (let row = 0; row < rows; row++) {
|
|
3652
|
-
for (let col = 0; col < cols; col++) {
|
|
3653
|
-
const index = row * cols + col;
|
|
3654
|
-
const centerX = offsetX + centeringOffsetX + col * cellWidth + cellWidth / 2;
|
|
3655
|
-
const rawCenterY = offsetY + row * cellHeight + cellHeight / 2;
|
|
3656
|
-
const centerY = yDirection === "cartesian" ? offsetY + centeringOffsetY + (rows - 1 - row) * cellHeight + cellHeight / 2 : offsetY + centeringOffsetY + row * cellHeight + cellHeight / 2;
|
|
3657
|
-
cells.push({
|
|
3658
|
-
index,
|
|
3659
|
-
center: { x: centerX, y: centerY },
|
|
3660
|
-
topLeft: {
|
|
3661
|
-
x: centerX - cellWidth / 2,
|
|
3662
|
-
y: centerY + cellHeight / 2
|
|
3663
|
-
},
|
|
3664
|
-
bottomRight: {
|
|
3665
|
-
x: centerX + cellWidth / 2,
|
|
3666
|
-
y: centerY - cellHeight / 2
|
|
3667
|
-
},
|
|
3668
|
-
row,
|
|
3669
|
-
col
|
|
3670
|
-
});
|
|
3671
|
-
}
|
|
3672
|
-
}
|
|
3673
|
-
return cells;
|
|
3674
|
-
}
|
|
1882
|
+
// lib/ViaGridBoard/ViaGridBoard.circuit.tsx
|
|
1883
|
+
import { grid } from "@tscircuit/math-utils";
|
|
3675
1884
|
|
|
3676
1885
|
// lib/ViaGridBoard/viaGridElements.tsx
|
|
3677
|
-
|
|
1886
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3678
1887
|
var ViaGridVia = (props) => {
|
|
3679
1888
|
const _a = props, { viaIndex } = _a, restProps = __objRest(_a, ["viaIndex"]);
|
|
3680
|
-
return /* @__PURE__ */ (
|
|
1889
|
+
return /* @__PURE__ */ jsx10(
|
|
3681
1890
|
"via",
|
|
3682
1891
|
__spreadValues({
|
|
3683
1892
|
name: `via_${viaIndex}`,
|
|
@@ -3690,23 +1899,23 @@ var ViaGridVia = (props) => {
|
|
|
3690
1899
|
};
|
|
3691
1900
|
var ViaGridPlus = (props) => {
|
|
3692
1901
|
const _a = props, { startIndex } = _a, restProps = __objRest(_a, ["startIndex"]);
|
|
3693
|
-
return /* @__PURE__ */ (
|
|
3694
|
-
/* @__PURE__ */ (
|
|
3695
|
-
/* @__PURE__ */ (
|
|
3696
|
-
/* @__PURE__ */ (
|
|
3697
|
-
/* @__PURE__ */ (
|
|
3698
|
-
/* @__PURE__ */ (
|
|
1902
|
+
return /* @__PURE__ */ jsxs9("group", __spreadProps(__spreadValues({}, restProps), { children: [
|
|
1903
|
+
/* @__PURE__ */ jsx10(ViaGridVia, { pcbX: 0, pcbY: 0, viaIndex: startIndex }),
|
|
1904
|
+
/* @__PURE__ */ jsx10(ViaGridVia, { pcbX: 2.5, pcbY: 0, viaIndex: startIndex + 1 }),
|
|
1905
|
+
/* @__PURE__ */ jsx10(ViaGridVia, { pcbX: 0, pcbY: 2.5, viaIndex: startIndex + 2 }),
|
|
1906
|
+
/* @__PURE__ */ jsx10(ViaGridVia, { pcbX: -2.5, pcbY: 0, viaIndex: startIndex + 3 }),
|
|
1907
|
+
/* @__PURE__ */ jsx10(ViaGridVia, { pcbX: 0, pcbY: -2.5, viaIndex: startIndex + 4 })
|
|
3699
1908
|
] }));
|
|
3700
1909
|
};
|
|
3701
1910
|
var pacmanPolygonOutline = new OutlineBuilder(-0.2, -0.2).lineTo(-0.2, 2.5).arcTo(-2.5, 0, { radius: 2.5, sweep: true }).arcTo(0, -2.5, { radius: 2.5, sweep: true }).arcTo(2.5, -0.2, { radius: 2.5, sweep: true }).lineTo(-0.2, -0.2).toArray();
|
|
3702
1911
|
|
|
3703
1912
|
// lib/ViaGridBoard/ViaGridBoard.circuit.tsx
|
|
3704
|
-
|
|
1913
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3705
1914
|
var ViaGridBoard = (_a) => {
|
|
3706
1915
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
3707
1916
|
const { boardProps = {} } = splitBoardAndChipProps(__spreadValues({}, rest));
|
|
3708
|
-
return /* @__PURE__ */ (
|
|
3709
|
-
/* @__PURE__ */ (
|
|
1917
|
+
return /* @__PURE__ */ jsxs10("board", __spreadProps(__spreadValues({}, boardProps), { width: "100mm", height: "65mm", children: [
|
|
1918
|
+
/* @__PURE__ */ jsx11(
|
|
3710
1919
|
"pcbnoterect",
|
|
3711
1920
|
{
|
|
3712
1921
|
pcbX: 0,
|
|
@@ -3721,7 +1930,7 @@ var ViaGridBoard = (_a) => {
|
|
|
3721
1930
|
const x = (cornerPositionName.includes("R") ? 90 : 0) + 5 - 50;
|
|
3722
1931
|
const y = (cornerPositionName.includes("T") ? 55 : 0) + 5 - 32.5;
|
|
3723
1932
|
const rotation = index * 90;
|
|
3724
|
-
return /* @__PURE__ */ (
|
|
1933
|
+
return /* @__PURE__ */ jsx11(
|
|
3725
1934
|
"chip",
|
|
3726
1935
|
{
|
|
3727
1936
|
name: cornerPositionName,
|
|
@@ -3729,7 +1938,7 @@ var ViaGridBoard = (_a) => {
|
|
|
3729
1938
|
pcbY: y,
|
|
3730
1939
|
noSchematicRepresentation: true,
|
|
3731
1940
|
pcbRotation: -rotation,
|
|
3732
|
-
footprint: /* @__PURE__ */ (
|
|
1941
|
+
footprint: /* @__PURE__ */ jsx11("footprint", { children: /* @__PURE__ */ jsx11(
|
|
3733
1942
|
"smtpad",
|
|
3734
1943
|
{
|
|
3735
1944
|
pcbX: "0mm",
|
|
@@ -3744,11 +1953,11 @@ var ViaGridBoard = (_a) => {
|
|
|
3744
1953
|
"pacman_" + cornerPositionName
|
|
3745
1954
|
);
|
|
3746
1955
|
}),
|
|
3747
|
-
/* @__PURE__ */ (
|
|
3748
|
-
/* @__PURE__ */ (
|
|
3749
|
-
/* @__PURE__ */ (
|
|
3750
|
-
/* @__PURE__ */ (
|
|
3751
|
-
horizontalEdgeViaGridCells.map((cell) => /* @__PURE__ */ (
|
|
1956
|
+
/* @__PURE__ */ jsx11(ViaGridPlus, { pcbX: -20, pcbY: -7.5, startIndex: 0 }),
|
|
1957
|
+
/* @__PURE__ */ jsx11(ViaGridPlus, { pcbX: 20, pcbY: -7.5, startIndex: 5 }),
|
|
1958
|
+
/* @__PURE__ */ jsx11(ViaGridPlus, { pcbX: -20, pcbY: 7.5, startIndex: 10 }),
|
|
1959
|
+
/* @__PURE__ */ jsx11(ViaGridPlus, { pcbX: 20, pcbY: 7.5, startIndex: 15 }),
|
|
1960
|
+
horizontalEdgeViaGridCells.map((cell) => /* @__PURE__ */ jsx11(
|
|
3752
1961
|
ViaGridVia,
|
|
3753
1962
|
{
|
|
3754
1963
|
pcbX: cell.center.x - 50,
|
|
@@ -3757,7 +1966,7 @@ var ViaGridBoard = (_a) => {
|
|
|
3757
1966
|
},
|
|
3758
1967
|
cell.index
|
|
3759
1968
|
)),
|
|
3760
|
-
verticalEdgeViaGridCells.map((cell) => /* @__PURE__ */ (
|
|
1969
|
+
verticalEdgeViaGridCells.map((cell) => /* @__PURE__ */ jsx11(
|
|
3761
1970
|
ViaGridVia,
|
|
3762
1971
|
{
|
|
3763
1972
|
pcbX: cell.center.x - 50,
|
|
@@ -3766,14 +1975,14 @@ var ViaGridBoard = (_a) => {
|
|
|
3766
1975
|
},
|
|
3767
1976
|
cell.index
|
|
3768
1977
|
)),
|
|
3769
|
-
/* @__PURE__ */ (
|
|
1978
|
+
/* @__PURE__ */ jsx11(
|
|
3770
1979
|
"chip",
|
|
3771
1980
|
{
|
|
3772
1981
|
name: "TOP_RECT",
|
|
3773
1982
|
pcbX: 0,
|
|
3774
1983
|
pcbY: 30,
|
|
3775
1984
|
noSchematicRepresentation: true,
|
|
3776
|
-
footprint: /* @__PURE__ */ (
|
|
1985
|
+
footprint: /* @__PURE__ */ jsx11("footprint", { children: /* @__PURE__ */ jsx11(
|
|
3777
1986
|
"smtpad",
|
|
3778
1987
|
{
|
|
3779
1988
|
layer: "top",
|
|
@@ -3786,8 +1995,8 @@ var ViaGridBoard = (_a) => {
|
|
|
3786
1995
|
) })
|
|
3787
1996
|
}
|
|
3788
1997
|
),
|
|
3789
|
-
/* @__PURE__ */ (
|
|
3790
|
-
/* @__PURE__ */ (
|
|
1998
|
+
/* @__PURE__ */ jsx11("silkscreentext", { text: "VIAGRID TOP", fontSize: "1.5mm", pcbX: 0, pcbY: -30 }),
|
|
1999
|
+
/* @__PURE__ */ jsx11("net", { name: "GND" }),
|
|
3791
2000
|
children
|
|
3792
2001
|
] }));
|
|
3793
2002
|
};
|
|
@@ -3834,49 +2043,3 @@ export {
|
|
|
3834
2043
|
XiaoBoard,
|
|
3835
2044
|
XiaoReceiver
|
|
3836
2045
|
};
|
|
3837
|
-
/*! Bundled license information:
|
|
3838
|
-
|
|
3839
|
-
react/cjs/react-jsx-runtime.production.js:
|
|
3840
|
-
(**
|
|
3841
|
-
* @license React
|
|
3842
|
-
* react-jsx-runtime.production.js
|
|
3843
|
-
*
|
|
3844
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3845
|
-
*
|
|
3846
|
-
* This source code is licensed under the MIT license found in the
|
|
3847
|
-
* LICENSE file in the root directory of this source tree.
|
|
3848
|
-
*)
|
|
3849
|
-
|
|
3850
|
-
react/cjs/react.production.js:
|
|
3851
|
-
(**
|
|
3852
|
-
* @license React
|
|
3853
|
-
* react.production.js
|
|
3854
|
-
*
|
|
3855
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3856
|
-
*
|
|
3857
|
-
* This source code is licensed under the MIT license found in the
|
|
3858
|
-
* LICENSE file in the root directory of this source tree.
|
|
3859
|
-
*)
|
|
3860
|
-
|
|
3861
|
-
react/cjs/react.development.js:
|
|
3862
|
-
(**
|
|
3863
|
-
* @license React
|
|
3864
|
-
* react.development.js
|
|
3865
|
-
*
|
|
3866
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3867
|
-
*
|
|
3868
|
-
* This source code is licensed under the MIT license found in the
|
|
3869
|
-
* LICENSE file in the root directory of this source tree.
|
|
3870
|
-
*)
|
|
3871
|
-
|
|
3872
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
3873
|
-
(**
|
|
3874
|
-
* @license React
|
|
3875
|
-
* react-jsx-runtime.development.js
|
|
3876
|
-
*
|
|
3877
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3878
|
-
*
|
|
3879
|
-
* This source code is licensed under the MIT license found in the
|
|
3880
|
-
* LICENSE file in the root directory of this source tree.
|
|
3881
|
-
*)
|
|
3882
|
-
*/
|