Skip to content

Commit 3bd1a4d

Browse files
committed
Merge next into #4383 and re-record its size ledgers over next @ cbc0eeb
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
2 parents e55631e + cbc0eeb commit 3bd1a4d

18 files changed

Lines changed: 598 additions & 14 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/signals": patch
3+
---
4+
5+
A `<Loading>` armed by `on={latest(id)}` no longer stays on its fallback for good when another boundary's flight over the same `id` still holds the frame as the armed boundary's own flight lands. The boundary's output pass left the verdict lane inside the held transaction's flush with an answer equal to its committed value, so the equality gate notified nobody, and the lane seam wakes such a pass only when the frame is not held: when the frame landed, nothing re-ran the reader. A pass that leaves a lane the screen has shown while its frame is still held now hands the shown value to `_value` (what the screen shows stays the screen until the landing), so its answer is a change and lands with the frame.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"solid-js": patch
3+
---
4+
5+
A hydrating client never asks again for an async memo the server answered with an error, when a boundary that resumes mid-stream reads it only through another memo (#4375). The resume created a reader (`isPending(m1)` of a memo `m1` over the rejected `m0`) on a later flush round than the one the rejection landed in, so the read retried the errored memo (PJ-R35); `m0` sat in the shell, outside the boundary being claimed, and hydration took the retry for a client write and ran its compute — a real request, with nothing changed. A served rejection now re-serves in a claim window's own round, as it already does in the round a served answer lands in; a write still recomputes it.

‎packages/signals/src/core/lanes.ts‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ export function optimisticWrite<T>(n: Signal<T> | Computed<T>, v: T | ((prev: T)
195195
/** A guess's own truth is in flight: the node's own refetch — or, a store
196196
* leaf's, its family's derive (the slot's flight; store/optimistic.ts
197197
* installs the resolver). A17: the guess stands in for the flight. */
198-
function inFlight(n: Signal<any>): boolean {
198+
function inFlight(n: Signal<any>): unknown {
199199
return (
200-
((n as Computed<any>)._statusFlags & STATUS_PENDING) !== 0 ||
201-
((n._config & CONFIG_SLOT_NODE) !== 0 && GlobalQueue._slotFlight?.(n) === true)
200+
(n as Computed<any>)._statusFlags & STATUS_PENDING ||
201+
(n._config & CONFIG_SLOT_NODE && GlobalQueue._slotFlight?.(n))
202202
);
203203
}
204204

@@ -365,12 +365,17 @@ export function laneStage(
365365
const tx = x._transaction;
366366
if (tx?._lane) {
367367
// Cleared before equality, so a return to the committed value
368-
// notifies nobody. The seam wakes it (#3892) — not while a
369-
// transaction's flush runs the pass and the lane's frame is still
370-
// held, but always for a pass outside any transaction's flush: its
371-
// value is the screen's now (#4367). (Only a lane is ever `_shown`.)
372-
if (tx._shown && (!flushTransaction || !blocked(resolveTx(tx._parent!))))
373-
el._flags |= LEFT_SHOWN;
368+
// notifies nobody. The seam wakes it (#3892) — always for a pass
369+
// outside any transaction's flush: its value is the screen's now
370+
// (#4367). While a transaction's flush runs the pass and the lane's
371+
// frame is still held, what the screen shows stays the screen until
372+
// the landing, and `_value` takes it (as `dissolveLane` keeps a shown
373+
// lane's), so this pass's answer — the frame's — is a change against
374+
// what is seen and reaches the screen with the frame's commit. (Only
375+
// a lane is ever `_shown`.)
376+
if (tx._shown)
377+
if (!flushTransaction || !blocked(resolveTx(tx._parent!))) el._flags |= LEFT_SHOWN;
378+
else el._value = display(el);
374379
x._transaction = null;
375380
}
376381
x._lane = NOT_PENDING;
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/**
2+
* #4377 (D-41, F-6): a memo over `latest(m)` shows `m`'s error as a leaf
3+
* `latest(m)` does. `m` is sync; the write that makes it throw is staged with
4+
* the flush, and `latest()` throws the staged error ahead of its commit (the
5+
* verdict lane's work, shown now). The render effect reading the memo held
6+
* the error before `m` did, so `<Errored>`, which waits on what threw, let it
7+
* go as settled; at the commit the leaf re-derived and reached the boundary
8+
* again, the memo's reader did not (an equal status re-notifies nobody) and
9+
* kept `m`'s last value. With a held write the same: the leaf shows the
10+
* error at the reveal, the derivation never did. Fixed by #4364's `prune`
11+
* change (#4387): a staged error on an error boundary's source keeps the
12+
* boundary waiting, so the commit that publishes it finds the boundary still
13+
* waiting on `m`. These pin it.
14+
*/
15+
import { describe, expect, it } from "vitest";
16+
import {
17+
action,
18+
createErrorBoundary,
19+
createMemo,
20+
createRenderEffect,
21+
createRoot,
22+
createSignal,
23+
flush,
24+
latest
25+
} from "../src/index.js";
26+
27+
const tick = async () => {
28+
await new Promise(r => setTimeout(r, 0));
29+
flush();
30+
};
31+
32+
type Shape = "leaf" | "derive" | "derive2" | "plain";
33+
34+
function scene(shape: Shape) {
35+
const [a, setA] = createSignal(0);
36+
let screen: unknown;
37+
createRoot(() => {
38+
const m = createMemo(() => {
39+
if (a() === 1) throw new Error("boom");
40+
return a();
41+
});
42+
const d = createMemo(() => latest(m));
43+
const d2 = createMemo(() => d());
44+
const read = { leaf: () => latest(m), derive: d, derive2: d2, plain: m }[shape];
45+
// <Errored fallback="[ERR]"><span>{read()}</span></Errored>
46+
const out = createErrorBoundary(
47+
() => {
48+
createRenderEffect(read, v => void (screen = v));
49+
return "content";
50+
},
51+
() => "[ERR]"
52+
);
53+
createRenderEffect(out, v => void (v === "[ERR]" && (screen = v)));
54+
});
55+
flush();
56+
expect(screen).toBe(0);
57+
return { setA, screen: () => screen };
58+
}
59+
60+
describe("a memo over latest(m) shows m's sync error as the leaf does (#4377)", () => {
61+
for (const shape of ["leaf", "derive", "derive2", "plain"] as const) {
62+
it(`${shape}: a plain write`, () => {
63+
const s = scene(shape);
64+
s.setA(1);
65+
flush();
66+
expect(s.screen()).toBe("[ERR]");
67+
});
68+
69+
it(`${shape}: a held write shows the error at the reveal`, async () => {
70+
const s = scene(shape);
71+
let release!: () => void;
72+
action(function* () {
73+
s.setA(1);
74+
yield new Promise<void>(r => (release = r));
75+
})();
76+
flush();
77+
await tick();
78+
expect(s.screen()).toBe(0);
79+
release();
80+
await tick();
81+
await tick();
82+
expect(s.screen()).toBe("[ERR]");
83+
});
84+
}
85+
});
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
// Found while fixing #4367 (pre-existing on next @ 5f60713a).
2+
//
3+
// A Loading armed by `on: () => latest(id)` shares `id` with a second
4+
// boundary; each reads its own async memo of `id`. `setId(1)` shows the
5+
// armed boundary's fallback (D-17). The armed flight lands first while the
6+
// other still holds the frame: the output's pass leaves the verdict lane
7+
// inside the held transaction's flush, so lanes.ts `laneStage` does not set
8+
// LEFT_SHOWN (the frame is still blocked) and clears the node's lane
9+
// transaction — and the answer equals the committed value the equality gate
10+
// compared it with (the same content), so nobody was told. When the second
11+
// flight landed, nothing woke the reader: the screen stayed on the fallback
12+
// for good ("fallback|2" instead of "2|2"). The fallback the screen shows is
13+
// the node's `_value` now: the answer is a change, staged with the frame.
14+
import { expect, test } from "vitest";
15+
import {
16+
createLoadingBoundary,
17+
createMemo,
18+
createRenderEffect,
19+
createRoot,
20+
createSignal,
21+
flush,
22+
latest
23+
} from "../src/index.js";
24+
25+
const tick = async () => {
26+
for (let i = 0; i < 8; i++) await Promise.resolve();
27+
flush();
28+
};
29+
30+
test.each(["armed first", "plain first"] as const)(
31+
"Loading on latest over two flights leaves its fallback once both land (%s)",
32+
async order => {
33+
let finishA!: (v: number) => void;
34+
let finishB!: (v: number) => void;
35+
const pa = new Promise<number>(r => (finishA = r));
36+
const pb = new Promise<number>(r => (finishB = r));
37+
const [id, setId] = createSignal(0);
38+
const texts: string[] = [];
39+
let appliedA: unknown;
40+
let appliedB: unknown;
41+
createRoot(() => {
42+
const dataA = createMemo(() => (id() ? pa : Promise.resolve(1)));
43+
const dataB = createMemo(() => (id() ? pb : Promise.resolve(1)));
44+
const slot = (data: () => number, fallback: string, on?: boolean) => {
45+
const i = texts.push("") - 1;
46+
return createLoadingBoundary(
47+
() => {
48+
createRenderEffect(
49+
() => data(),
50+
v => {
51+
texts[i] = String(v);
52+
}
53+
);
54+
return i;
55+
},
56+
() => fallback,
57+
on ? { on: () => latest(id) } : undefined
58+
);
59+
};
60+
const armed = slot(dataA, "fallback", true);
61+
const plain = slot(dataB, "kept");
62+
createRenderEffect(armed, v => {
63+
appliedA = v;
64+
});
65+
createRenderEffect(plain, v => {
66+
appliedB = v;
67+
});
68+
});
69+
const screen = () =>
70+
(typeof appliedA === "number" ? texts[appliedA] : String(appliedA)) +
71+
"|" +
72+
(typeof appliedB === "number" ? texts[appliedB] : String(appliedB));
73+
flush();
74+
await tick();
75+
expect(screen()).toBe("1|1");
76+
setId(1);
77+
flush();
78+
await tick();
79+
expect(screen()).toBe("fallback|1");
80+
if (order === "armed first") {
81+
finishA(2);
82+
await tick();
83+
// The frame still waits on the plain boundary's flight: the armed
84+
// boundary's content lands with it.
85+
expect(screen()).toBe("fallback|1");
86+
finishB(2);
87+
} else {
88+
// The frame waited on the plain boundary's flight alone (the armed
89+
// boundary collected its reader): it lands, the fallback stays.
90+
finishB(2);
91+
await tick();
92+
expect(screen()).toBe("fallback|2");
93+
finishA(2);
94+
}
95+
await tick();
96+
expect(screen()).toBe("2|2"); // next, armed first: "fallback|2"
97+
}
98+
);

‎packages/solid/src/client/hydration.ts‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ let _snapshotRootOwner: Owner | null = null;
313313
// round a served answer lands in (`servedPass`). Never 0: `~` maps every
314314
// round to a truthy number.
315315
let _claimOwner: Owner | number | null = null;
316+
// The flush round the last claim window opened in (`clock`).
317+
let _claimRound: number | undefined;
316318
// Under a hydrated `<Errored>` that shows the server's fallback the markup
317319
// is the fallback's: nothing its content creates claims — in the content's
318320
// own run (the `~clock` window) or later, wherever its children are created
@@ -749,8 +751,17 @@ export function readSerializedOrCompute(
749751
// answer, an error included, and arms nothing — no ask, no loading flash
750752
// (#4287, #4306). A served pass covers the round its answer lands in
751753
// (`servedPass`): a later round of that flush is an effect's write
752-
// re-running the node, which computes.
753-
if (options?.ssrSource !== "hybrid" && _claimOwner !== ~clock) {
754+
// re-running the node, which computes. A served rejection re-serves in a
755+
// claim window's own round too (`_claimRound`): a reader the resume
756+
// creates there, on a later round than the one the rejection landed in,
757+
// retries it with nothing changed — an `isPending` of a memo over it,
758+
// outside the claim, re-asked it (#4375). A write an effect makes there
759+
// runs in a later round, which computes.
760+
if (
761+
options?.ssrSource !== "hybrid" &&
762+
_claimOwner !== ~clock &&
763+
!(initP?.s === 2 && _claimRound === clock)
764+
) {
754765
let p: Owner | null = o;
755766
while (p && !(p as any)._hp) p = p._parent;
756767
if (!p && !(sharedConfig.hydrating && isClaiming(1))) return compute(prev);
@@ -2303,6 +2314,7 @@ function hydrateWindow<T>(
23032314
if (id) sharedConfig.gather?.(id);
23042315
_hydratingValue = true;
23052316
_claimOwner = o;
2317+
_claimRound = clock;
23062318
if (own) {
23072319
if (capture) setSnapshotCapture(true);
23082320
markSnapshotScope(own);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"shell": "<main _hk=1><template id=\"pl-200\"></template>[ROOT-L]<!--pl-200--></main><script>(self.$R=self.$R||{})[\"\"]=[];_$HY.r[\"0\"]=$R[0]=($R[1]=($R[2]=() => {\n\tconst resolver = {\n\t\tp: 0,\n\t\ts: 0,\n\t\tf: 0\n\t};\n\tresolver.p = new Promise((resolve, reject) => {\n\t\tresolver.s = resolve;\n\t\tresolver.f = reject;\n\t});\n\treturn resolver;\n})()).p;_$HY.r[\"200_fr\"]=$R[3]=($R[4]=$R[2]()).p;_$HY.r[\"2000030\"]=$R[5]=($R[6]=$R[2]()).p;($R[7]=(resolver, data) => {\n\tresolver.s(data);\n\tresolver.p.s = 1;\n\tresolver.p.v = data;\n})($R[1],\"slow\");</script>",
3+
"chunks": [
4+
"<template id=\"200\"><span _hk=2000032>false</span></template><script>($R[9]=(resolver, data) => {\n\tresolver.f(data);\n\tresolver.p.s = 2;\n\tresolver.p.v = data;\n})($R[6],$R[8]=new Error(\"m0:3\"));$df(\"200\");function $df(e){return _$HY.f?_$HY.f(e):$dfr(e)}function $dfr(e,n,o,t){if(!(n=document.getElementById(e)))return 0;if(!(o=document.getElementById(\"pl-\"+e)))return(_$HY.dq=_$HY.dq||{})[e]=1,0;for(;o&&(8!==o.nodeType||o.nodeValue!==\"pl-\"+e);)t=o.nextSibling,o.remove(),o=t;t=o.parentNode,(_$HY.v=_$HY.v||{})[e]=n.hasAttribute(\"e\")?[...n.content.childNodes]:1,o.replaceWith(n.content),n.remove(),_$HY.fe(e,t),_$HY.hp&&_$HY.hp[e]&&($dh(_$HY.hp[e]),delete _$HY.hp[e]),$dfd();return 1}function $dfl(e,o,n){if(!(o=document.getElementById(\"pl-\"+e)))return(_$HY.dlq=_$HY.dlq||{})[e]=1,0;if(o._$fl)return 1;for(n=o.nextSibling;n;){if(8===n.nodeType&&n.nodeValue===\"pl-\"+e){o.parentNode&&o.parentNode.insertBefore(o.content.cloneNode(!0),n),o._$fl=1,$dfd();return 1}n=n.nextSibling}return 0}function $dflj(e,i){for(i=0;i<e.length;i++)$dfl(e[i])}function $dfd(e,i){if(e=_$HY.dq){_$HY.dq=0;for(i in e)$df(i)}if(e=_$HY.dlq){_$HY.dlq=0;for(i in e)$dfl(i)}}function $dfs(e,c,d){(_$HY.sc=_$HY.sc||{})[e]=c,d&&((_$HY.sd=_$HY.sd||{})[e]=1)}function $dfg(e,g,i,k){if(!(g=_$HY.sg&&_$HY.sg[e]))return;for(i=0;i<g.length;i++)if(_$HY.sc&&_$HY.sc[g[i]]>0)return;for(i=0;i<g.length;i++)k=g[i],delete _$HY.sg[k],$df(k)}function $dfc(e){if(--_$HY.sc[e]<=0){delete _$HY.sc[e],_$HY.sg&&_$HY.sg[e]?$dfg(e):!(_$HY.sd&&_$HY.sd[e])&&$df(e);_$HY.sd&&delete _$HY.sd[e]}}function $dfj(e,i,n){for(i=0;i<e.length;i++)if(_$HY.sc&&_$HY.sc[e[i]]>0){for(n=0;n<e.length;n++)(_$HY.sg=_$HY.sg||{})[e[n]]=e;return}for(i=0;i<e.length;i++)$df(e[i])}function $dfe(e,t,k){(t=e.target)&&t.getAttribute&&!t._$dc&&(k=t.getAttribute(\"data-dfc\"))&&(t._$dc=1,$dfc(k))}document.addEventListener(\"load\",$dfe,!0);document.addEventListener(\"error\",$dfe,!0);</script><script>$R[7]($R[4],!0);</script>"
5+
]
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"shell": "<main _hk=1><template id=\"pl-200\"></template>[ROOT-L]<!--pl-200--></main><script>(self.$R=self.$R||{})[\"\"]=[];_$HY.r[\"0\"]=$R[0]=($R[1]=($R[2]=() => {\n\tconst resolver = {\n\t\tp: 0,\n\t\ts: 0,\n\t\tf: 0\n\t};\n\tresolver.p = new Promise((resolve, reject) => {\n\t\tresolver.s = resolve;\n\t\tresolver.f = reject;\n\t});\n\treturn resolver;\n})()).p;_$HY.r[\"200_fr\"]=$R[3]=($R[4]=$R[2]()).p;_$HY.r[\"200001\"]=$R[5]=($R[6]=$R[2]()).p;($R[7]=(resolver, data) => {\n\tresolver.s(data);\n\tresolver.p.s = 1;\n\tresolver.p.v = data;\n})($R[1],\"slow\");</script>",
3+
"chunks": [
4+
"<template id=\"200\"><span _hk=200003>false</span></template><script>($R[9]=(resolver, data) => {\n\tresolver.f(data);\n\tresolver.p.s = 2;\n\tresolver.p.v = data;\n})($R[6],$R[8]=new Error(\"m0:3\"));$df(\"200\");function $df(e){return _$HY.f?_$HY.f(e):$dfr(e)}function $dfr(e,n,o,t){if(!(n=document.getElementById(e)))return 0;if(!(o=document.getElementById(\"pl-\"+e)))return(_$HY.dq=_$HY.dq||{})[e]=1,0;for(;o&&(8!==o.nodeType||o.nodeValue!==\"pl-\"+e);)t=o.nextSibling,o.remove(),o=t;t=o.parentNode,(_$HY.v=_$HY.v||{})[e]=n.hasAttribute(\"e\")?[...n.content.childNodes]:1,o.replaceWith(n.content),n.remove(),_$HY.fe(e,t),_$HY.hp&&_$HY.hp[e]&&($dh(_$HY.hp[e]),delete _$HY.hp[e]),$dfd();return 1}function $dfl(e,o,n){if(!(o=document.getElementById(\"pl-\"+e)))return(_$HY.dlq=_$HY.dlq||{})[e]=1,0;if(o._$fl)return 1;for(n=o.nextSibling;n;){if(8===n.nodeType&&n.nodeValue===\"pl-\"+e){o.parentNode&&o.parentNode.insertBefore(o.content.cloneNode(!0),n),o._$fl=1,$dfd();return 1}n=n.nextSibling}return 0}function $dflj(e,i){for(i=0;i<e.length;i++)$dfl(e[i])}function $dfd(e,i){if(e=_$HY.dq){_$HY.dq=0;for(i in e)$df(i)}if(e=_$HY.dlq){_$HY.dlq=0;for(i in e)$dfl(i)}}function $dfs(e,c,d){(_$HY.sc=_$HY.sc||{})[e]=c,d&&((_$HY.sd=_$HY.sd||{})[e]=1)}function $dfg(e,g,i,k){if(!(g=_$HY.sg&&_$HY.sg[e]))return;for(i=0;i<g.length;i++)if(_$HY.sc&&_$HY.sc[g[i]]>0)return;for(i=0;i<g.length;i++)k=g[i],delete _$HY.sg[k],$df(k)}function $dfc(e){if(--_$HY.sc[e]<=0){delete _$HY.sc[e],_$HY.sg&&_$HY.sg[e]?$dfg(e):!(_$HY.sd&&_$HY.sd[e])&&$df(e);_$HY.sd&&delete _$HY.sd[e]}}function $dfj(e,i,n){for(i=0;i<e.length;i++)if(_$HY.sc&&_$HY.sc[e[i]]>0){for(n=0;n<e.length;n++)(_$HY.sg=_$HY.sg||{})[e[n]]=e;return}for(i=0;i<e.length;i++)$df(e[i])}function $dfe(e,t,k){(t=e.target)&&t.getAttribute&&!t._$dc&&(k=t.getAttribute(\"data-dfc\"))&&(t._$dc=1,$dfc(k))}document.addEventListener(\"load\",$dfe,!0);document.addEventListener(\"error\",$dfe,!0);</script><script>$R[7]($R[4],!0);</script>"
5+
]
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"shell": "<main _hk=3><template id=\"pl-400\"></template>[ROOT-L]<!--pl-400--></main><script>(self.$R=self.$R||{})[\"\"]=[];_$HY.r[\"0\"]=$R[0]=($R[1]=($R[2]=() => {\n\tconst resolver = {\n\t\tp: 0,\n\t\ts: 0,\n\t\tf: 0\n\t};\n\tresolver.p = new Promise((resolve, reject) => {\n\t\tresolver.s = resolve;\n\t\tresolver.f = reject;\n\t});\n\treturn resolver;\n})()).p;_$HY.r[\"2\"]=$R[3]=($R[4]=$R[2]()).p;_$HY.r[\"400_fr\"]=$R[5]=($R[6]=$R[2]()).p;($R[7]=(resolver, data) => {\n\tresolver.s(data);\n\tresolver.p.s = 1;\n\tresolver.p.v = data;\n})($R[4],\"slow\");</script>",
3+
"chunks": [
4+
"<template id=\"400\"><span _hk=4000030>false</span></template><script>($R[9]=(resolver, data) => {\n\tresolver.f(data);\n\tresolver.p.s = 2;\n\tresolver.p.v = data;\n})($R[1],$R[8]=new Error(\"m0:3\"));$df(\"400\");function $df(e){return _$HY.f?_$HY.f(e):$dfr(e)}function $dfr(e,n,o,t){if(!(n=document.getElementById(e)))return 0;if(!(o=document.getElementById(\"pl-\"+e)))return(_$HY.dq=_$HY.dq||{})[e]=1,0;for(;o&&(8!==o.nodeType||o.nodeValue!==\"pl-\"+e);)t=o.nextSibling,o.remove(),o=t;t=o.parentNode,(_$HY.v=_$HY.v||{})[e]=n.hasAttribute(\"e\")?[...n.content.childNodes]:1,o.replaceWith(n.content),n.remove(),_$HY.fe(e,t),_$HY.hp&&_$HY.hp[e]&&($dh(_$HY.hp[e]),delete _$HY.hp[e]),$dfd();return 1}function $dfl(e,o,n){if(!(o=document.getElementById(\"pl-\"+e)))return(_$HY.dlq=_$HY.dlq||{})[e]=1,0;if(o._$fl)return 1;for(n=o.nextSibling;n;){if(8===n.nodeType&&n.nodeValue===\"pl-\"+e){o.parentNode&&o.parentNode.insertBefore(o.content.cloneNode(!0),n),o._$fl=1,$dfd();return 1}n=n.nextSibling}return 0}function $dflj(e,i){for(i=0;i<e.length;i++)$dfl(e[i])}function $dfd(e,i){if(e=_$HY.dq){_$HY.dq=0;for(i in e)$df(i)}if(e=_$HY.dlq){_$HY.dlq=0;for(i in e)$dfl(i)}}function $dfs(e,c,d){(_$HY.sc=_$HY.sc||{})[e]=c,d&&((_$HY.sd=_$HY.sd||{})[e]=1)}function $dfg(e,g,i,k){if(!(g=_$HY.sg&&_$HY.sg[e]))return;for(i=0;i<g.length;i++)if(_$HY.sc&&_$HY.sc[g[i]]>0)return;for(i=0;i<g.length;i++)k=g[i],delete _$HY.sg[k],$df(k)}function $dfc(e){if(--_$HY.sc[e]<=0){delete _$HY.sc[e],_$HY.sg&&_$HY.sg[e]?$dfg(e):!(_$HY.sd&&_$HY.sd[e])&&$df(e);_$HY.sd&&delete _$HY.sd[e]}}function $dfj(e,i,n){for(i=0;i<e.length;i++)if(_$HY.sc&&_$HY.sc[e[i]]>0){for(n=0;n<e.length;n++)(_$HY.sg=_$HY.sg||{})[e[n]]=e;return}for(i=0;i<e.length;i++)$df(e[i])}function $dfe(e,t,k){(t=e.target)&&t.getAttribute&&!t._$dc&&(k=t.getAttribute(\"data-dfc\"))&&(t._$dc=1,$dfc(k))}document.addEventListener(\"load\",$dfe,!0);document.addEventListener(\"error\",$dfe,!0);</script><script>$R[7]($R[6],!0);</script>"
5+
]
6+
}

0 commit comments

Comments
 (0)