@xyd-js/content 0.1.0-xyd.13 → 0.1.0-xyd.14
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/CHANGELOG.md +8 -0
- package/dist/index.js +288 -129
- package/dist/index.js.map +1 -1
- package/dist/md.d.ts +3 -3
- package/dist/vite.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -6271,9 +6271,9 @@ var require_acorn_jsx = __commonJS({
|
|
|
6271
6271
|
}
|
|
6272
6272
|
});
|
|
6273
6273
|
|
|
6274
|
-
// ../../node_modules/.pnpm/react@19.
|
|
6274
|
+
// ../../node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.production.js
|
|
6275
6275
|
var require_react_production = __commonJS({
|
|
6276
|
-
"../../node_modules/.pnpm/react@19.
|
|
6276
|
+
"../../node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.production.js"(exports) {
|
|
6277
6277
|
"use strict";
|
|
6278
6278
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
6279
6279
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
@@ -6336,7 +6336,7 @@ var require_react_production = __commonJS({
|
|
|
6336
6336
|
assign(pureComponentPrototype, Component.prototype);
|
|
6337
6337
|
pureComponentPrototype.isPureReactComponent = true;
|
|
6338
6338
|
var isArrayImpl = Array.isArray;
|
|
6339
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null
|
|
6339
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
6340
6340
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
6341
6341
|
function ReactElement(type, key, self2, source, owner, props) {
|
|
6342
6342
|
self2 = props.ref;
|
|
@@ -6552,11 +6552,8 @@ var require_react_production = __commonJS({
|
|
|
6552
6552
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
6553
6553
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
6554
6554
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
6555
|
-
exports.
|
|
6556
|
-
|
|
6557
|
-
c: function(size) {
|
|
6558
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
6559
|
-
}
|
|
6555
|
+
exports.act = function() {
|
|
6556
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
6560
6557
|
};
|
|
6561
6558
|
exports.cache = function(fn) {
|
|
6562
6559
|
return function() {
|
|
@@ -6668,13 +6665,8 @@ var require_react_production = __commonJS({
|
|
|
6668
6665
|
exports.useDeferredValue = function(value, initialValue) {
|
|
6669
6666
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
6670
6667
|
};
|
|
6671
|
-
exports.useEffect = function(create,
|
|
6672
|
-
|
|
6673
|
-
if ("function" === typeof update)
|
|
6674
|
-
throw Error(
|
|
6675
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
6676
|
-
);
|
|
6677
|
-
return dispatcher.useEffect(create, createDeps);
|
|
6668
|
+
exports.useEffect = function(create, deps) {
|
|
6669
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
6678
6670
|
};
|
|
6679
6671
|
exports.useId = function() {
|
|
6680
6672
|
return ReactSharedInternals.H.useId();
|
|
@@ -6713,13 +6705,13 @@ var require_react_production = __commonJS({
|
|
|
6713
6705
|
exports.useTransition = function() {
|
|
6714
6706
|
return ReactSharedInternals.H.useTransition();
|
|
6715
6707
|
};
|
|
6716
|
-
exports.version = "19.
|
|
6708
|
+
exports.version = "19.0.0";
|
|
6717
6709
|
}
|
|
6718
6710
|
});
|
|
6719
6711
|
|
|
6720
|
-
// ../../node_modules/.pnpm/react@19.
|
|
6712
|
+
// ../../node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.development.js
|
|
6721
6713
|
var require_react_development = __commonJS({
|
|
6722
|
-
"../../node_modules/.pnpm/react@19.
|
|
6714
|
+
"../../node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
6723
6715
|
"use strict";
|
|
6724
6716
|
"production" !== process.env.NODE_ENV && function() {
|
|
6725
6717
|
function defineDeprecationWarning(methodName, info) {
|
|
@@ -6787,11 +6779,13 @@ var require_react_development = __commonJS({
|
|
|
6787
6779
|
function getComponentNameFromType(type) {
|
|
6788
6780
|
if (null == type) return null;
|
|
6789
6781
|
if ("function" === typeof type)
|
|
6790
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
6782
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE$2 ? null : type.displayName || type.name || null;
|
|
6791
6783
|
if ("string" === typeof type) return type;
|
|
6792
6784
|
switch (type) {
|
|
6793
6785
|
case REACT_FRAGMENT_TYPE:
|
|
6794
6786
|
return "Fragment";
|
|
6787
|
+
case REACT_PORTAL_TYPE:
|
|
6788
|
+
return "Portal";
|
|
6795
6789
|
case REACT_PROFILER_TYPE:
|
|
6796
6790
|
return "Profiler";
|
|
6797
6791
|
case REACT_STRICT_MODE_TYPE:
|
|
@@ -6800,15 +6794,11 @@ var require_react_development = __commonJS({
|
|
|
6800
6794
|
return "Suspense";
|
|
6801
6795
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
6802
6796
|
return "SuspenseList";
|
|
6803
|
-
case REACT_ACTIVITY_TYPE:
|
|
6804
|
-
return "Activity";
|
|
6805
6797
|
}
|
|
6806
6798
|
if ("object" === typeof type)
|
|
6807
6799
|
switch ("number" === typeof type.tag && console.error(
|
|
6808
6800
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
6809
6801
|
), type.$$typeof) {
|
|
6810
|
-
case REACT_PORTAL_TYPE:
|
|
6811
|
-
return "Portal";
|
|
6812
6802
|
case REACT_CONTEXT_TYPE:
|
|
6813
6803
|
return (type.displayName || "Context") + ".Provider";
|
|
6814
6804
|
case REACT_CONSUMER_TYPE:
|
|
@@ -6830,24 +6820,207 @@ var require_react_development = __commonJS({
|
|
|
6830
6820
|
}
|
|
6831
6821
|
return null;
|
|
6832
6822
|
}
|
|
6833
|
-
function
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6823
|
+
function isValidElementType(type) {
|
|
6824
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE$1 || void 0 !== type.getModuleId) ? true : false;
|
|
6825
|
+
}
|
|
6826
|
+
function disabledLog() {
|
|
6827
|
+
}
|
|
6828
|
+
function disableLogs() {
|
|
6829
|
+
if (0 === disabledDepth) {
|
|
6830
|
+
prevLog = console.log;
|
|
6831
|
+
prevInfo = console.info;
|
|
6832
|
+
prevWarn = console.warn;
|
|
6833
|
+
prevError = console.error;
|
|
6834
|
+
prevGroup = console.group;
|
|
6835
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
6836
|
+
prevGroupEnd = console.groupEnd;
|
|
6837
|
+
var props = {
|
|
6838
|
+
configurable: true,
|
|
6839
|
+
enumerable: true,
|
|
6840
|
+
value: disabledLog,
|
|
6841
|
+
writable: true
|
|
6842
|
+
};
|
|
6843
|
+
Object.defineProperties(console, {
|
|
6844
|
+
info: props,
|
|
6845
|
+
log: props,
|
|
6846
|
+
warn: props,
|
|
6847
|
+
error: props,
|
|
6848
|
+
group: props,
|
|
6849
|
+
groupCollapsed: props,
|
|
6850
|
+
groupEnd: props
|
|
6851
|
+
});
|
|
6852
|
+
}
|
|
6853
|
+
disabledDepth++;
|
|
6854
|
+
}
|
|
6855
|
+
function reenableLogs() {
|
|
6856
|
+
disabledDepth--;
|
|
6857
|
+
if (0 === disabledDepth) {
|
|
6858
|
+
var props = { configurable: true, enumerable: true, writable: true };
|
|
6859
|
+
Object.defineProperties(console, {
|
|
6860
|
+
log: assign({}, props, { value: prevLog }),
|
|
6861
|
+
info: assign({}, props, { value: prevInfo }),
|
|
6862
|
+
warn: assign({}, props, { value: prevWarn }),
|
|
6863
|
+
error: assign({}, props, { value: prevError }),
|
|
6864
|
+
group: assign({}, props, { value: prevGroup }),
|
|
6865
|
+
groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
|
|
6866
|
+
groupEnd: assign({}, props, { value: prevGroupEnd })
|
|
6867
|
+
});
|
|
6868
|
+
}
|
|
6869
|
+
0 > disabledDepth && console.error(
|
|
6870
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
6871
|
+
);
|
|
6872
|
+
}
|
|
6873
|
+
function describeBuiltInComponentFrame(name) {
|
|
6874
|
+
if (void 0 === prefix)
|
|
6875
|
+
try {
|
|
6876
|
+
throw Error();
|
|
6877
|
+
} catch (x) {
|
|
6878
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
6879
|
+
prefix = match && match[1] || "";
|
|
6880
|
+
suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
6881
|
+
}
|
|
6882
|
+
return "\n" + prefix + name + suffix;
|
|
6883
|
+
}
|
|
6884
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
6885
|
+
if (!fn || reentry) return "";
|
|
6886
|
+
var frame = componentFrameCache.get(fn);
|
|
6887
|
+
if (void 0 !== frame) return frame;
|
|
6888
|
+
reentry = true;
|
|
6889
|
+
frame = Error.prepareStackTrace;
|
|
6890
|
+
Error.prepareStackTrace = void 0;
|
|
6891
|
+
var previousDispatcher = null;
|
|
6892
|
+
previousDispatcher = ReactSharedInternals.H;
|
|
6893
|
+
ReactSharedInternals.H = null;
|
|
6894
|
+
disableLogs();
|
|
6837
6895
|
try {
|
|
6838
|
-
var
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6896
|
+
var RunInRootFrame = {
|
|
6897
|
+
DetermineComponentFrameRoot: function() {
|
|
6898
|
+
try {
|
|
6899
|
+
if (construct) {
|
|
6900
|
+
var Fake = function() {
|
|
6901
|
+
throw Error();
|
|
6902
|
+
};
|
|
6903
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
6904
|
+
set: function() {
|
|
6905
|
+
throw Error();
|
|
6906
|
+
}
|
|
6907
|
+
});
|
|
6908
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
6909
|
+
try {
|
|
6910
|
+
Reflect.construct(Fake, []);
|
|
6911
|
+
} catch (x) {
|
|
6912
|
+
var control = x;
|
|
6913
|
+
}
|
|
6914
|
+
Reflect.construct(fn, [], Fake);
|
|
6915
|
+
} else {
|
|
6916
|
+
try {
|
|
6917
|
+
Fake.call();
|
|
6918
|
+
} catch (x$0) {
|
|
6919
|
+
control = x$0;
|
|
6920
|
+
}
|
|
6921
|
+
fn.call(Fake.prototype);
|
|
6922
|
+
}
|
|
6923
|
+
} else {
|
|
6924
|
+
try {
|
|
6925
|
+
throw Error();
|
|
6926
|
+
} catch (x$1) {
|
|
6927
|
+
control = x$1;
|
|
6928
|
+
}
|
|
6929
|
+
(Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {
|
|
6930
|
+
});
|
|
6931
|
+
}
|
|
6932
|
+
} catch (sample) {
|
|
6933
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
6934
|
+
return [sample.stack, control.stack];
|
|
6935
|
+
}
|
|
6936
|
+
return [null, null];
|
|
6937
|
+
}
|
|
6938
|
+
};
|
|
6939
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
6940
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
6941
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
6942
|
+
"name"
|
|
6943
|
+
);
|
|
6944
|
+
namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(
|
|
6945
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
6946
|
+
"name",
|
|
6947
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
6948
|
+
);
|
|
6949
|
+
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
|
|
6950
|
+
if (sampleStack && controlStack) {
|
|
6951
|
+
var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n");
|
|
6952
|
+
for (_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes(
|
|
6953
|
+
"DetermineComponentFrameRoot"
|
|
6954
|
+
); )
|
|
6955
|
+
namePropDescriptor++;
|
|
6956
|
+
for (; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes(
|
|
6957
|
+
"DetermineComponentFrameRoot"
|
|
6958
|
+
); )
|
|
6959
|
+
_RunInRootFrame$Deter++;
|
|
6960
|
+
if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length)
|
|
6961
|
+
for (namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]; )
|
|
6962
|
+
_RunInRootFrame$Deter--;
|
|
6963
|
+
for (; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--)
|
|
6964
|
+
if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
|
|
6965
|
+
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
|
6966
|
+
do
|
|
6967
|
+
if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
|
|
6968
|
+
var _frame = "\n" + sampleLines[namePropDescriptor].replace(
|
|
6969
|
+
" at new ",
|
|
6970
|
+
" at "
|
|
6971
|
+
);
|
|
6972
|
+
fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName));
|
|
6973
|
+
"function" === typeof fn && componentFrameCache.set(fn, _frame);
|
|
6974
|
+
return _frame;
|
|
6975
|
+
}
|
|
6976
|
+
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
|
6977
|
+
}
|
|
6978
|
+
break;
|
|
6979
|
+
}
|
|
6980
|
+
}
|
|
6981
|
+
} finally {
|
|
6982
|
+
reentry = false, ReactSharedInternals.H = previousDispatcher, reenableLogs(), Error.prepareStackTrace = frame;
|
|
6842
6983
|
}
|
|
6984
|
+
sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : "";
|
|
6985
|
+
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
|
6986
|
+
return sampleLines;
|
|
6987
|
+
}
|
|
6988
|
+
function describeUnknownElementTypeFrameInDEV(type) {
|
|
6989
|
+
if (null == type) return "";
|
|
6990
|
+
if ("function" === typeof type) {
|
|
6991
|
+
var prototype = type.prototype;
|
|
6992
|
+
return describeNativeComponentFrame(
|
|
6993
|
+
type,
|
|
6994
|
+
!(!prototype || !prototype.isReactComponent)
|
|
6995
|
+
);
|
|
6996
|
+
}
|
|
6997
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
6998
|
+
switch (type) {
|
|
6999
|
+
case REACT_SUSPENSE_TYPE:
|
|
7000
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
7001
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
7002
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
7003
|
+
}
|
|
7004
|
+
if ("object" === typeof type)
|
|
7005
|
+
switch (type.$$typeof) {
|
|
7006
|
+
case REACT_FORWARD_REF_TYPE:
|
|
7007
|
+
return type = describeNativeComponentFrame(type.render, false), type;
|
|
7008
|
+
case REACT_MEMO_TYPE:
|
|
7009
|
+
return describeUnknownElementTypeFrameInDEV(type.type);
|
|
7010
|
+
case REACT_LAZY_TYPE:
|
|
7011
|
+
prototype = type._payload;
|
|
7012
|
+
type = type._init;
|
|
7013
|
+
try {
|
|
7014
|
+
return describeUnknownElementTypeFrameInDEV(type(prototype));
|
|
7015
|
+
} catch (x) {
|
|
7016
|
+
}
|
|
7017
|
+
}
|
|
7018
|
+
return "";
|
|
6843
7019
|
}
|
|
6844
7020
|
function getOwner() {
|
|
6845
7021
|
var dispatcher = ReactSharedInternals.A;
|
|
6846
7022
|
return null === dispatcher ? null : dispatcher.getOwner();
|
|
6847
7023
|
}
|
|
6848
|
-
function UnknownOwner() {
|
|
6849
|
-
return Error("react-stack-top-frame");
|
|
6850
|
-
}
|
|
6851
7024
|
function hasValidKey(config) {
|
|
6852
7025
|
if (hasOwnProperty3.call(config, "key")) {
|
|
6853
7026
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
@@ -6876,7 +7049,7 @@ var require_react_development = __commonJS({
|
|
|
6876
7049
|
componentName = this.props.ref;
|
|
6877
7050
|
return void 0 !== componentName ? componentName : null;
|
|
6878
7051
|
}
|
|
6879
|
-
function ReactElement(type, key, self2, source, owner, props
|
|
7052
|
+
function ReactElement(type, key, self2, source, owner, props) {
|
|
6880
7053
|
self2 = props.ref;
|
|
6881
7054
|
type = {
|
|
6882
7055
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
@@ -6902,18 +7075,6 @@ var require_react_development = __commonJS({
|
|
|
6902
7075
|
writable: true,
|
|
6903
7076
|
value: null
|
|
6904
7077
|
});
|
|
6905
|
-
Object.defineProperty(type, "_debugStack", {
|
|
6906
|
-
configurable: false,
|
|
6907
|
-
enumerable: false,
|
|
6908
|
-
writable: true,
|
|
6909
|
-
value: debugStack
|
|
6910
|
-
});
|
|
6911
|
-
Object.defineProperty(type, "_debugTask", {
|
|
6912
|
-
configurable: false,
|
|
6913
|
-
enumerable: false,
|
|
6914
|
-
writable: true,
|
|
6915
|
-
value: debugTask
|
|
6916
|
-
});
|
|
6917
7078
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
6918
7079
|
return type;
|
|
6919
7080
|
}
|
|
@@ -6924,16 +7085,53 @@ var require_react_development = __commonJS({
|
|
|
6924
7085
|
void 0,
|
|
6925
7086
|
void 0,
|
|
6926
7087
|
oldElement._owner,
|
|
6927
|
-
oldElement.props
|
|
6928
|
-
oldElement._debugStack,
|
|
6929
|
-
oldElement._debugTask
|
|
7088
|
+
oldElement.props
|
|
6930
7089
|
);
|
|
6931
|
-
|
|
7090
|
+
newKey._store.validated = oldElement._store.validated;
|
|
6932
7091
|
return newKey;
|
|
6933
7092
|
}
|
|
7093
|
+
function validateChildKeys(node, parentType) {
|
|
7094
|
+
if ("object" === typeof node && node && node.$$typeof !== REACT_CLIENT_REFERENCE) {
|
|
7095
|
+
if (isArrayImpl(node))
|
|
7096
|
+
for (var i = 0; i < node.length; i++) {
|
|
7097
|
+
var child = node[i];
|
|
7098
|
+
isValidElement(child) && validateExplicitKey(child, parentType);
|
|
7099
|
+
}
|
|
7100
|
+
else if (isValidElement(node))
|
|
7101
|
+
node._store && (node._store.validated = 1);
|
|
7102
|
+
else if (i = getIteratorFn(node), "function" === typeof i && i !== node.entries && (i = i.call(node), i !== node))
|
|
7103
|
+
for (; !(node = i.next()).done; )
|
|
7104
|
+
isValidElement(node.value) && validateExplicitKey(node.value, parentType);
|
|
7105
|
+
}
|
|
7106
|
+
}
|
|
6934
7107
|
function isValidElement(object) {
|
|
6935
7108
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
6936
7109
|
}
|
|
7110
|
+
function validateExplicitKey(element, parentType) {
|
|
7111
|
+
if (element._store && !element._store.validated && null == element.key && (element._store.validated = 1, parentType = getCurrentComponentErrorInfo(parentType), !ownerHasKeyUseWarning[parentType])) {
|
|
7112
|
+
ownerHasKeyUseWarning[parentType] = true;
|
|
7113
|
+
var childOwner = "";
|
|
7114
|
+
element && null != element._owner && element._owner !== getOwner() && (childOwner = null, "number" === typeof element._owner.tag ? childOwner = getComponentNameFromType(element._owner.type) : "string" === typeof element._owner.name && (childOwner = element._owner.name), childOwner = " It was passed a child from " + childOwner + ".");
|
|
7115
|
+
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
7116
|
+
ReactSharedInternals.getCurrentStack = function() {
|
|
7117
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type);
|
|
7118
|
+
prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
|
|
7119
|
+
return stack;
|
|
7120
|
+
};
|
|
7121
|
+
console.error(
|
|
7122
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
7123
|
+
parentType,
|
|
7124
|
+
childOwner
|
|
7125
|
+
);
|
|
7126
|
+
ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
|
|
7127
|
+
}
|
|
7128
|
+
}
|
|
7129
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
7130
|
+
var info = "", owner = getOwner();
|
|
7131
|
+
owner && (owner = getComponentNameFromType(owner.type)) && (info = "\n\nCheck the render method of `" + owner + "`.");
|
|
7132
|
+
info || (parentType = getComponentNameFromType(parentType)) && (info = "\n\nCheck the top-level render call using <" + parentType + ">.");
|
|
7133
|
+
return info;
|
|
7134
|
+
}
|
|
6937
7135
|
function escape(key) {
|
|
6938
7136
|
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
6939
7137
|
return "$" + key.replace(/[=:]/g, function(match) {
|
|
@@ -7168,7 +7366,7 @@ var require_react_development = __commonJS({
|
|
|
7168
7366
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
7169
7367
|
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");
|
|
7170
7368
|
Symbol.for("react.provider");
|
|
7171
|
-
var 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"),
|
|
7369
|
+
var 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_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
7172
7370
|
isMounted: function() {
|
|
7173
7371
|
return false;
|
|
7174
7372
|
},
|
|
@@ -7211,32 +7409,24 @@ var require_react_development = __commonJS({
|
|
|
7211
7409
|
deprecatedAPIs.constructor = PureComponent;
|
|
7212
7410
|
assign(deprecatedAPIs, Component.prototype);
|
|
7213
7411
|
deprecatedAPIs.isPureReactComponent = true;
|
|
7214
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
7412
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
7215
7413
|
H: null,
|
|
7216
7414
|
A: null,
|
|
7217
7415
|
T: null,
|
|
7218
7416
|
S: null,
|
|
7219
|
-
V: null,
|
|
7220
7417
|
actQueue: null,
|
|
7221
7418
|
isBatchingLegacy: false,
|
|
7222
7419
|
didScheduleLegacyUpdate: false,
|
|
7223
7420
|
didUsePromise: false,
|
|
7224
7421
|
thrownErrors: [],
|
|
7225
|
-
getCurrentStack: null
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
"react-stack-bottom-frame": function(callStackForError) {
|
|
7232
|
-
return callStackForError();
|
|
7233
|
-
}
|
|
7234
|
-
};
|
|
7235
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
7422
|
+
getCurrentStack: null
|
|
7423
|
+
}, hasOwnProperty3 = Object.prototype.hasOwnProperty, REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd;
|
|
7424
|
+
disabledLog.__reactDisabledLog = true;
|
|
7425
|
+
var prefix, suffix, reentry = false;
|
|
7426
|
+
var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)();
|
|
7427
|
+
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
7236
7428
|
var didWarnAboutElementRef = {};
|
|
7237
|
-
var
|
|
7238
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
7239
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
7429
|
+
var ownerHasKeyUseWarning = {}, didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
7240
7430
|
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
7241
7431
|
var event = new window.ErrorEvent("error", {
|
|
7242
7432
|
bubbles: true,
|
|
@@ -7255,12 +7445,6 @@ var require_react_development = __commonJS({
|
|
|
7255
7445
|
return queueMicrotask(callback);
|
|
7256
7446
|
});
|
|
7257
7447
|
} : enqueueTask;
|
|
7258
|
-
deprecatedAPIs = Object.freeze({
|
|
7259
|
-
__proto__: null,
|
|
7260
|
-
c: function(size) {
|
|
7261
|
-
return resolveDispatcher().useMemoCache(size);
|
|
7262
|
-
}
|
|
7263
|
-
});
|
|
7264
7448
|
exports.Children = {
|
|
7265
7449
|
map: mapChildren,
|
|
7266
7450
|
forEach: function(children, forEachFunc, forEachContext) {
|
|
@@ -7299,7 +7483,6 @@ var require_react_development = __commonJS({
|
|
|
7299
7483
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
7300
7484
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
7301
7485
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
7302
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
7303
7486
|
exports.act = function(callback) {
|
|
7304
7487
|
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
7305
7488
|
actScopeDepth++;
|
|
@@ -7333,8 +7516,8 @@ var require_react_development = __commonJS({
|
|
|
7333
7516
|
reject
|
|
7334
7517
|
);
|
|
7335
7518
|
});
|
|
7336
|
-
} catch (error$
|
|
7337
|
-
ReactSharedInternals.thrownErrors.push(error$
|
|
7519
|
+
} catch (error$2) {
|
|
7520
|
+
ReactSharedInternals.thrownErrors.push(error$2);
|
|
7338
7521
|
}
|
|
7339
7522
|
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
7340
7523
|
var _thrownError = aggregateErrors(
|
|
@@ -7382,10 +7565,6 @@ var require_react_development = __commonJS({
|
|
|
7382
7565
|
return fn.apply(null, arguments);
|
|
7383
7566
|
};
|
|
7384
7567
|
};
|
|
7385
|
-
exports.captureOwnerStack = function() {
|
|
7386
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
7387
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
7388
|
-
};
|
|
7389
7568
|
exports.cloneElement = function(element, config, children) {
|
|
7390
7569
|
if (null === element || void 0 === element)
|
|
7391
7570
|
throw Error(
|
|
@@ -7417,18 +7596,9 @@ var require_react_development = __commonJS({
|
|
|
7417
7596
|
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
7418
7597
|
props.children = JSCompiler_inline_result;
|
|
7419
7598
|
}
|
|
7420
|
-
props = ReactElement(
|
|
7421
|
-
element.type,
|
|
7422
|
-
key,
|
|
7423
|
-
void 0,
|
|
7424
|
-
void 0,
|
|
7425
|
-
owner,
|
|
7426
|
-
props,
|
|
7427
|
-
element._debugStack,
|
|
7428
|
-
element._debugTask
|
|
7429
|
-
);
|
|
7599
|
+
props = ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
7430
7600
|
for (key = 2; key < arguments.length; key++)
|
|
7431
|
-
|
|
7601
|
+
validateChildKeys(arguments[key], props.type);
|
|
7432
7602
|
return props;
|
|
7433
7603
|
};
|
|
7434
7604
|
exports.createContext = function(defaultValue) {
|
|
@@ -7450,16 +7620,29 @@ var require_react_development = __commonJS({
|
|
|
7450
7620
|
return defaultValue;
|
|
7451
7621
|
};
|
|
7452
7622
|
exports.createElement = function(type, config, children) {
|
|
7453
|
-
|
|
7454
|
-
var
|
|
7455
|
-
|
|
7623
|
+
if (isValidElementType(type))
|
|
7624
|
+
for (var i = 2; i < arguments.length; i++)
|
|
7625
|
+
validateChildKeys(arguments[i], type);
|
|
7626
|
+
else {
|
|
7627
|
+
i = "";
|
|
7628
|
+
if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length)
|
|
7629
|
+
i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
7630
|
+
if (null === type) var typeString = "null";
|
|
7631
|
+
else
|
|
7632
|
+
isArrayImpl(type) ? typeString = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type;
|
|
7633
|
+
console.error(
|
|
7634
|
+
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
7635
|
+
typeString,
|
|
7636
|
+
i
|
|
7637
|
+
);
|
|
7456
7638
|
}
|
|
7639
|
+
var propName;
|
|
7457
7640
|
i = {};
|
|
7458
|
-
|
|
7641
|
+
typeString = null;
|
|
7459
7642
|
if (null != config)
|
|
7460
7643
|
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
7461
7644
|
"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"
|
|
7462
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key),
|
|
7645
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), typeString = "" + config.key), config)
|
|
7463
7646
|
hasOwnProperty3.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
7464
7647
|
var childrenLength = arguments.length - 2;
|
|
7465
7648
|
if (1 === childrenLength) i.children = children;
|
|
@@ -7472,21 +7655,11 @@ var require_react_development = __commonJS({
|
|
|
7472
7655
|
if (type && type.defaultProps)
|
|
7473
7656
|
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
7474
7657
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
7475
|
-
|
|
7658
|
+
typeString && defineKeyPropWarningGetter(
|
|
7476
7659
|
i,
|
|
7477
7660
|
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
7478
7661
|
);
|
|
7479
|
-
|
|
7480
|
-
return ReactElement(
|
|
7481
|
-
type,
|
|
7482
|
-
node,
|
|
7483
|
-
void 0,
|
|
7484
|
-
void 0,
|
|
7485
|
-
getOwner(),
|
|
7486
|
-
i,
|
|
7487
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
7488
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
7489
|
-
);
|
|
7662
|
+
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
|
|
7490
7663
|
};
|
|
7491
7664
|
exports.createRef = function() {
|
|
7492
7665
|
var refObject = { current: null };
|
|
@@ -7529,7 +7702,7 @@ var require_react_development = __commonJS({
|
|
|
7529
7702
|
};
|
|
7530
7703
|
};
|
|
7531
7704
|
exports.memo = function(type, compare) {
|
|
7532
|
-
|
|
7705
|
+
isValidElementType(type) || console.error(
|
|
7533
7706
|
"memo: The first argument must be a component. Instead received: %s",
|
|
7534
7707
|
null === type ? "null" : typeof type
|
|
7535
7708
|
);
|
|
@@ -7597,16 +7770,8 @@ var require_react_development = __commonJS({
|
|
|
7597
7770
|
exports.useDeferredValue = function(value, initialValue) {
|
|
7598
7771
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
7599
7772
|
};
|
|
7600
|
-
exports.useEffect = function(create,
|
|
7601
|
-
|
|
7602
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
7603
|
-
);
|
|
7604
|
-
var dispatcher = resolveDispatcher();
|
|
7605
|
-
if ("function" === typeof update)
|
|
7606
|
-
throw Error(
|
|
7607
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
7608
|
-
);
|
|
7609
|
-
return dispatcher.useEffect(create, createDeps);
|
|
7773
|
+
exports.useEffect = function(create, deps) {
|
|
7774
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
7610
7775
|
};
|
|
7611
7776
|
exports.useId = function() {
|
|
7612
7777
|
return resolveDispatcher().useId();
|
|
@@ -7615,15 +7780,9 @@ var require_react_development = __commonJS({
|
|
|
7615
7780
|
return resolveDispatcher().useImperativeHandle(ref2, create, deps);
|
|
7616
7781
|
};
|
|
7617
7782
|
exports.useInsertionEffect = function(create, deps) {
|
|
7618
|
-
null == create && console.warn(
|
|
7619
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
7620
|
-
);
|
|
7621
7783
|
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
7622
7784
|
};
|
|
7623
7785
|
exports.useLayoutEffect = function(create, deps) {
|
|
7624
|
-
null == create && console.warn(
|
|
7625
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
7626
|
-
);
|
|
7627
7786
|
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
7628
7787
|
};
|
|
7629
7788
|
exports.useMemo = function(create, deps) {
|
|
@@ -7651,15 +7810,15 @@ var require_react_development = __commonJS({
|
|
|
7651
7810
|
exports.useTransition = function() {
|
|
7652
7811
|
return resolveDispatcher().useTransition();
|
|
7653
7812
|
};
|
|
7654
|
-
exports.version = "19.
|
|
7813
|
+
exports.version = "19.0.0";
|
|
7655
7814
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
7656
7815
|
}();
|
|
7657
7816
|
}
|
|
7658
7817
|
});
|
|
7659
7818
|
|
|
7660
|
-
// ../../node_modules/.pnpm/react@19.
|
|
7819
|
+
// ../../node_modules/.pnpm/react@19.0.0/node_modules/react/index.js
|
|
7661
7820
|
var require_react = __commonJS({
|
|
7662
|
-
"../../node_modules/.pnpm/react@19.
|
|
7821
|
+
"../../node_modules/.pnpm/react@19.0.0/node_modules/react/index.js"(exports, module) {
|
|
7663
7822
|
"use strict";
|
|
7664
7823
|
if (process.env.NODE_ENV === "production") {
|
|
7665
7824
|
module.exports = require_react_production();
|