decord/source/704_checkIfSnapshotChanged.js
2026-08-04 21:03:28 +00:00

76 lines
1.8 KiB
JavaScript

// Module ID: 704
// Function ID: 705
// Name: checkIfSnapshotChanged
// Dependencies: [19]
// Module 704 (checkIfSnapshotChanged)
import noop from "noop";
let c3;
let c4;
let closure_1;
let obj1;
function checkIfSnapshotChanged(arg0) {
try {
return !is(tmp2, tmp());
} catch (err) {
return true;
}
}
if (typeof Object.is === "function") {
const _Object = Object;
} else {
is = function is(arg0, arg1) {
let tmp = arg0 === arg1;
if (tmp) {
let tmp2 = 0 !== arg0;
if (!tmp2) {
tmp2 = 1 / arg0 === 1 / arg1;
}
tmp = tmp2;
}
if (!tmp) {
tmp = arg0 != arg0 && arg1 != arg1;
const tmp3 = arg0 != arg0 && arg1 != arg1;
}
return tmp;
};
}
({ useState: closure_1, useEffect: obj1, useLayoutEffect: c3, useDebugValue: c4 } = noop);
export const useSyncExternalStore = undefined !== noop.useSyncExternalStore ? noop.useSyncExternalStore : (function useSyncExternalStore$1(arg0, getSnapshot) {
let closure_0 = arg0;
const callback = getSnapshot;
const tmp = getSnapshot();
const callback2 = tmp;
const tmp2 = callback({ inst: { value: tmp, getSnapshot } });
const inst = tmp2[0].inst;
const callback3 = tmp2[1];
const items = [arg0, tmp, getSnapshot];
inst(() => {
inst.value = closure_2;
inst.getSnapshot = closure_1;
if (outer1_5(inst)) {
const obj = { inst: null };
obj[0] = inst;
callback2(obj);
}
}, items);
const items1 = [arg0];
callback2(() => {
if (outer1_5(inst)) {
let obj = { inst: null };
obj[0] = inst;
callback2(obj);
}
return callback(() => {
if (outer1_5(closure_3)) {
const obj = { inst: null };
obj[0] = closure_3;
callback(obj);
}
});
}, items1);
callback3(tmp);
return tmp;
});