@shane_il/pulse 0.2.0 → 0.4.0
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/README.md +21 -168
- package/dist/connect.d.ts +5 -1
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.cjs.map +1 -1
- package/dist/devtools.js +696 -595
- package/dist/devtools.js.map +1 -1
- package/dist/diff.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/middleware.d.ts +10 -0
- package/dist/patch.d.ts +2 -2
- package/dist/pulse.cjs +1 -1
- package/dist/pulse.cjs.map +1 -1
- package/dist/pulse.js +371 -291
- package/dist/pulse.js.map +1 -1
- package/dist/vnode.d.ts +7 -0
- package/package.json +7 -1
package/dist/pulse.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
function
|
|
1
|
+
var ot = Object.defineProperty;
|
|
2
|
+
var rt = (t, e, s) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
+
var S = (t, e, s) => rt(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
+
const K = Symbol("TEXT_NODE"), ct = Symbol("FRAGMENT");
|
|
5
|
+
function W(t) {
|
|
6
6
|
return {
|
|
7
|
-
type:
|
|
7
|
+
type: K,
|
|
8
8
|
props: { nodeValue: String(t) },
|
|
9
9
|
children: [],
|
|
10
10
|
key: null
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return t == null || typeof t == "boolean" ? null : typeof t == "string" || typeof t == "number" ?
|
|
13
|
+
function it(t) {
|
|
14
|
+
return t == null || typeof t == "boolean" ? null : typeof t == "string" || typeof t == "number" ? W(t) : t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Y(t) {
|
|
17
17
|
const e = [];
|
|
18
18
|
for (const s of t)
|
|
19
19
|
if (Array.isArray(s))
|
|
20
|
-
e.push(...
|
|
20
|
+
e.push(...Y(s));
|
|
21
21
|
else {
|
|
22
|
-
const n =
|
|
22
|
+
const n = it(s);
|
|
23
23
|
n !== null && e.push(n);
|
|
24
24
|
}
|
|
25
25
|
return e;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function q(t, e, ...s) {
|
|
28
28
|
e = e || {};
|
|
29
29
|
const n = e.key ?? null;
|
|
30
30
|
e.key !== void 0 && (e = { ...e }, delete e.key);
|
|
31
|
-
const r =
|
|
31
|
+
const r = Y(s);
|
|
32
32
|
return { type: t, props: e, children: r, key: n };
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function lt(t) {
|
|
35
35
|
let e = t.state;
|
|
36
36
|
const s = t.actions, n = /* @__PURE__ */ new Set(), r = t.middleware;
|
|
37
37
|
function o() {
|
|
@@ -41,116 +41,146 @@ function rt(t) {
|
|
|
41
41
|
for (const u of n)
|
|
42
42
|
u(e);
|
|
43
43
|
}
|
|
44
|
-
function a(u,
|
|
45
|
-
const
|
|
46
|
-
if (!
|
|
44
|
+
function a(u, _) {
|
|
45
|
+
const w = s[u];
|
|
46
|
+
if (!w)
|
|
47
47
|
throw new Error(`[pulse] Unknown action: "${u}"`);
|
|
48
|
-
const
|
|
49
|
-
|
|
48
|
+
const y = w(e, _);
|
|
49
|
+
y !== e && (e = y, c());
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function i(u, _) {
|
|
52
52
|
if (u === "__devtools_replace__") {
|
|
53
|
-
e =
|
|
53
|
+
e = _, c();
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
56
|
+
const w = s[u];
|
|
57
|
+
if (!w)
|
|
58
58
|
throw new Error(`[pulse] Unknown action: "${u}"`);
|
|
59
|
-
const
|
|
60
|
-
store:
|
|
59
|
+
const y = {
|
|
60
|
+
store: d,
|
|
61
61
|
actionName: u,
|
|
62
|
-
payload:
|
|
62
|
+
payload: _,
|
|
63
63
|
prevState: e,
|
|
64
64
|
nextState: void 0
|
|
65
65
|
};
|
|
66
|
-
let
|
|
67
|
-
function
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
|
|
66
|
+
let V = 0;
|
|
67
|
+
function R() {
|
|
68
|
+
if (V < r.length) {
|
|
69
|
+
const h = r[V++];
|
|
70
|
+
h(y, R);
|
|
71
71
|
} else {
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const h = w(y.prevState, y.payload);
|
|
73
|
+
y.nextState = h, h !== e && (e = h, c());
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
R();
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
function
|
|
78
|
+
const l = r && r.length > 0 ? i : a;
|
|
79
|
+
function f(u) {
|
|
80
80
|
return n.add(u), () => {
|
|
81
81
|
n.delete(u);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return { store:
|
|
84
|
+
function p(u) {
|
|
85
|
+
return { store: d, selector: u };
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const d = {
|
|
88
88
|
getState: o,
|
|
89
|
-
dispatch:
|
|
90
|
-
subscribe:
|
|
91
|
-
select:
|
|
89
|
+
dispatch: l,
|
|
90
|
+
subscribe: f,
|
|
91
|
+
select: p
|
|
92
92
|
};
|
|
93
|
-
return t.name && (
|
|
93
|
+
return t.name && (d.name = t.name), d;
|
|
94
94
|
}
|
|
95
95
|
let U = !1;
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
|
|
96
|
+
const L = /* @__PURE__ */ new Set();
|
|
97
|
+
function X(t) {
|
|
98
|
+
L.add(t), U || (U = !0, queueMicrotask(at));
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
const t = [...
|
|
102
|
-
|
|
100
|
+
function at() {
|
|
101
|
+
const t = [...L];
|
|
102
|
+
L.clear(), U = !1;
|
|
103
103
|
for (const e of t)
|
|
104
104
|
e();
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
const t = [...
|
|
108
|
-
|
|
106
|
+
function _t() {
|
|
107
|
+
const t = [...L];
|
|
108
|
+
L.clear(), U = !1;
|
|
109
109
|
for (const e of t)
|
|
110
110
|
e();
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
function
|
|
112
|
+
const Z = Symbol("PULSE_CONNECTED"), $ = globalThis;
|
|
113
|
+
$.__PULSE_HOOKS__ || ($.__PULSE_HOOKS__ = { onMount: null, onUnmount: null });
|
|
114
|
+
const x = $.__PULSE_HOOKS__;
|
|
115
|
+
function ut(t, e) {
|
|
116
116
|
return function(n) {
|
|
117
117
|
const r = t || {};
|
|
118
118
|
function o(c) {
|
|
119
119
|
const a = {};
|
|
120
|
-
for (const
|
|
121
|
-
const { store:
|
|
122
|
-
a[
|
|
120
|
+
for (const i in r) {
|
|
121
|
+
const { store: l, selector: f } = r[i];
|
|
122
|
+
a[i] = f(l.getState());
|
|
123
123
|
}
|
|
124
124
|
return n({ ...a, ...c });
|
|
125
125
|
}
|
|
126
|
-
return o[
|
|
126
|
+
return o[Z] = !0, o._bindings = r, o._innerComponent = n, e && (o._lifecycle = e), o.displayName = `Connected(${n.displayName || n.name || "Anonymous"})`, o;
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
class
|
|
129
|
+
class ft {
|
|
130
130
|
constructor(e, s) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this
|
|
131
|
+
S(this, "connectedFn");
|
|
132
|
+
S(this, "props");
|
|
133
|
+
S(this, "prevSelected");
|
|
134
|
+
S(this, "unsubscribers");
|
|
135
|
+
S(this, "lastVTree");
|
|
136
|
+
S(this, "parentDom");
|
|
137
|
+
S(this, "_renderCallback");
|
|
138
|
+
S(this, "_mountCleanup");
|
|
139
|
+
S(this, "_localState");
|
|
140
|
+
S(this, "_localActions");
|
|
141
|
+
this.connectedFn = e, this.props = s, this.prevSelected = {}, this.unsubscribers = [], this.lastVTree = null, this.parentDom = null, this._renderCallback = null, this._mountCleanup = null, this._localState = null, this._localActions = null;
|
|
142
|
+
const n = e._lifecycle;
|
|
143
|
+
n != null && n.store && this._initLocalStore(n.store);
|
|
144
|
+
}
|
|
145
|
+
_initLocalStore(e) {
|
|
146
|
+
this._localState = { ...e.state }, this._localActions = e.actions;
|
|
147
|
+
const s = this.connectedFn._bindings, n = this.connectedFn.displayName || "component", r = Object.keys(this._localState), o = Object.keys(this._localActions);
|
|
148
|
+
for (const c of r)
|
|
149
|
+
c in s && console.warn(
|
|
150
|
+
`[pulse] Local store state "${c}" shadows global binding in ${n}. Local value will be used.`
|
|
151
|
+
);
|
|
152
|
+
for (const c of o)
|
|
153
|
+
c in s && console.warn(
|
|
154
|
+
`[pulse] Local store action "${c}" shadows global binding in ${n}. Local value will be used.`
|
|
155
|
+
), c in this._localState && console.warn(
|
|
156
|
+
`[pulse] Local store action "${c}" shadows state key with same name in ${n}.`
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
getLocalProps() {
|
|
160
|
+
if (!this._localState) return null;
|
|
161
|
+
const e = { ...this._localState };
|
|
162
|
+
for (const s in this._localActions) {
|
|
163
|
+
const n = this._localActions[s];
|
|
164
|
+
e[s] = (r) => {
|
|
165
|
+
const o = n(this._localState, r);
|
|
166
|
+
o !== this._localState && (this._localState = o, this._renderCallback && X(this._renderCallback));
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
return e;
|
|
140
170
|
}
|
|
141
171
|
mount(e, s) {
|
|
142
172
|
var o;
|
|
143
173
|
this.parentDom = e, this._renderCallback = s;
|
|
144
174
|
const n = this.connectedFn._bindings;
|
|
145
175
|
for (const c in n) {
|
|
146
|
-
const { store: a, selector:
|
|
147
|
-
this.prevSelected[c] =
|
|
176
|
+
const { store: a, selector: i } = n[c];
|
|
177
|
+
this.prevSelected[c] = i(a.getState());
|
|
148
178
|
}
|
|
149
179
|
for (const c in n) {
|
|
150
|
-
const { store: a } = n[c],
|
|
180
|
+
const { store: a } = n[c], i = a.subscribe(() => {
|
|
151
181
|
this._onStoreChange();
|
|
152
182
|
});
|
|
153
|
-
this.unsubscribers.push(
|
|
183
|
+
this.unsubscribers.push(i);
|
|
154
184
|
}
|
|
155
185
|
const r = this.connectedFn._lifecycle;
|
|
156
186
|
if (r != null && r.onMount) {
|
|
@@ -160,19 +190,19 @@ class at {
|
|
|
160
190
|
});
|
|
161
191
|
typeof c == "function" && (this._mountCleanup = c);
|
|
162
192
|
}
|
|
163
|
-
|
|
193
|
+
x.onMount && x.onMount(this);
|
|
164
194
|
}
|
|
165
195
|
_onStoreChange() {
|
|
166
196
|
const e = this.connectedFn._bindings;
|
|
167
197
|
let s = !1;
|
|
168
198
|
for (const n in e) {
|
|
169
199
|
const { store: r, selector: o } = e[n], c = o(r.getState());
|
|
170
|
-
if (!
|
|
200
|
+
if (!pt(c, this.prevSelected[n])) {
|
|
171
201
|
s = !0;
|
|
172
202
|
break;
|
|
173
203
|
}
|
|
174
204
|
}
|
|
175
|
-
s &&
|
|
205
|
+
s && X(this._renderCallback);
|
|
176
206
|
}
|
|
177
207
|
updateSelected() {
|
|
178
208
|
const e = this.connectedFn._bindings;
|
|
@@ -182,7 +212,7 @@ class at {
|
|
|
182
212
|
}
|
|
183
213
|
}
|
|
184
214
|
unmount() {
|
|
185
|
-
|
|
215
|
+
x.onUnmount && x.onUnmount(this), this._mountCleanup && (this._mountCleanup(), this._mountCleanup = null);
|
|
186
216
|
const e = this.connectedFn._lifecycle;
|
|
187
217
|
e != null && e.onDestroy && e.onDestroy({ props: this.props });
|
|
188
218
|
for (const s of this.unsubscribers)
|
|
@@ -190,7 +220,7 @@ class at {
|
|
|
190
220
|
this.unsubscribers = [], this._renderCallback = null;
|
|
191
221
|
}
|
|
192
222
|
}
|
|
193
|
-
function
|
|
223
|
+
function pt(t, e) {
|
|
194
224
|
if (Object.is(t, e)) return !0;
|
|
195
225
|
if (typeof t != "object" || typeof e != "object" || t === null || e === null) return !1;
|
|
196
226
|
const s = Object.keys(t), n = Object.keys(e);
|
|
@@ -215,14 +245,14 @@ function T(t, e) {
|
|
|
215
245
|
if (t == null) return [{ type: m.CREATE, newVNode: e }];
|
|
216
246
|
if (t.type !== e.type)
|
|
217
247
|
return [{ type: m.REPLACE, oldVNode: t, newVNode: e }];
|
|
218
|
-
if (e._dom = t._dom, t.type ===
|
|
248
|
+
if (e._dom = t._dom, t.type === K)
|
|
219
249
|
return t.props.nodeValue !== e.props.nodeValue ? [{ type: m.TEXT, oldVNode: t, newVNode: e }] : [];
|
|
220
|
-
const s = [], n =
|
|
250
|
+
const s = [], n = ht(t.props, e.props);
|
|
221
251
|
n && s.push({ type: m.UPDATE, target: t, propPatches: n });
|
|
222
|
-
const r =
|
|
252
|
+
const r = dt(t.children, e.children);
|
|
223
253
|
return r.length && s.push({ type: m.CHILDREN, parent: t, childPatches: r }), s;
|
|
224
254
|
}
|
|
225
|
-
function
|
|
255
|
+
function ht(t, e) {
|
|
226
256
|
const s = {}, n = [];
|
|
227
257
|
let r = !1;
|
|
228
258
|
for (const o in e)
|
|
@@ -231,7 +261,7 @@ function ft(t, e) {
|
|
|
231
261
|
o !== "children" && (o in e || (n.push(o), r = !0));
|
|
232
262
|
return r ? { set: s, remove: n } : null;
|
|
233
263
|
}
|
|
234
|
-
function
|
|
264
|
+
function C(t, e) {
|
|
235
265
|
return t == null || e == null ? !1 : t.type === e.type && t.key === e.key;
|
|
236
266
|
}
|
|
237
267
|
function z(t, e) {
|
|
@@ -245,62 +275,62 @@ function z(t, e) {
|
|
|
245
275
|
`[pulse] Mixed keyed and unkeyed children in ${e} list (${n} keyed, ${r} unkeyed). Either all children should have keys or none should.`
|
|
246
276
|
);
|
|
247
277
|
}
|
|
248
|
-
function
|
|
249
|
-
var
|
|
278
|
+
function dt(t, e) {
|
|
279
|
+
var p;
|
|
250
280
|
process.env.NODE_ENV !== "production" && (z(t, "old"), z(e, "new"));
|
|
251
281
|
const s = [];
|
|
252
|
-
let n = 0, r = t.length - 1, o = 0, c = e.length - 1, a = t[n],
|
|
282
|
+
let n = 0, r = t.length - 1, o = 0, c = e.length - 1, a = t[n], i = t[r], l = e[o], f = e[c];
|
|
253
283
|
for (; n <= r && o <= c; ) {
|
|
254
284
|
if (a == null) {
|
|
255
285
|
a = t[++n];
|
|
256
286
|
continue;
|
|
257
287
|
}
|
|
258
|
-
if (
|
|
259
|
-
|
|
288
|
+
if (i == null) {
|
|
289
|
+
i = t[--r];
|
|
260
290
|
continue;
|
|
261
291
|
}
|
|
262
|
-
if (
|
|
263
|
-
s.push(...T(a,
|
|
264
|
-
else if (
|
|
265
|
-
s.push(...T(
|
|
266
|
-
else if (
|
|
292
|
+
if (C(a, l))
|
|
293
|
+
s.push(...T(a, l)), a = t[++n], l = e[++o];
|
|
294
|
+
else if (C(i, f))
|
|
295
|
+
s.push(...T(i, f)), i = t[--r], f = e[--c];
|
|
296
|
+
else if (C(a, f))
|
|
267
297
|
s.push({
|
|
268
298
|
type: m.MOVE,
|
|
269
299
|
vnode: a,
|
|
270
300
|
anchor: t[r + 1] || null,
|
|
271
|
-
childPatches: T(a,
|
|
272
|
-
}), a = t[++n],
|
|
273
|
-
else if (
|
|
301
|
+
childPatches: T(a, f)
|
|
302
|
+
}), a = t[++n], f = e[--c];
|
|
303
|
+
else if (C(i, l))
|
|
274
304
|
s.push({
|
|
275
305
|
type: m.MOVE,
|
|
276
|
-
vnode:
|
|
306
|
+
vnode: i,
|
|
277
307
|
anchor: a,
|
|
278
|
-
childPatches: T(
|
|
279
|
-
}),
|
|
308
|
+
childPatches: T(i, l)
|
|
309
|
+
}), i = t[--r], l = e[++o];
|
|
280
310
|
else
|
|
281
311
|
break;
|
|
282
312
|
}
|
|
283
313
|
if (n <= r && o <= c) {
|
|
284
|
-
const
|
|
314
|
+
const d = /* @__PURE__ */ new Map();
|
|
285
315
|
for (let u = n; u <= r; u++) {
|
|
286
|
-
const
|
|
287
|
-
|
|
316
|
+
const _ = (p = t[u]) == null ? void 0 : p.key;
|
|
317
|
+
_ != null && d.set(_, u);
|
|
288
318
|
}
|
|
289
319
|
for (; o <= c; ) {
|
|
290
|
-
|
|
291
|
-
const u =
|
|
320
|
+
l = e[o];
|
|
321
|
+
const u = l.key != null ? d.get(l.key) : void 0;
|
|
292
322
|
if (u !== void 0) {
|
|
293
|
-
const
|
|
323
|
+
const _ = t[u];
|
|
294
324
|
s.push({
|
|
295
325
|
type: m.MOVE,
|
|
296
|
-
vnode:
|
|
326
|
+
vnode: _,
|
|
297
327
|
anchor: t[n] || null,
|
|
298
|
-
childPatches: T(
|
|
299
|
-
}), t[u] = null,
|
|
328
|
+
childPatches: T(_, l)
|
|
329
|
+
}), t[u] = null, d.delete(l.key);
|
|
300
330
|
} else
|
|
301
331
|
s.push({
|
|
302
332
|
type: m.CREATE,
|
|
303
|
-
newVNode:
|
|
333
|
+
newVNode: l,
|
|
304
334
|
anchor: t[n] || null
|
|
305
335
|
});
|
|
306
336
|
o++;
|
|
@@ -309,59 +339,87 @@ function pt(t, e) {
|
|
|
309
339
|
t[u] != null && s.push({ type: m.REMOVE, target: t[u] });
|
|
310
340
|
}
|
|
311
341
|
if (n > r) {
|
|
312
|
-
const
|
|
342
|
+
const d = e[c + 1] || null;
|
|
313
343
|
for (let u = o; u <= c; u++)
|
|
314
|
-
s.push({ type: m.CREATE, newVNode: e[u], anchor:
|
|
344
|
+
s.push({ type: m.CREATE, newVNode: e[u], anchor: d });
|
|
315
345
|
} else if (o > c)
|
|
316
|
-
for (let
|
|
317
|
-
t[
|
|
346
|
+
for (let d = n; d <= r; d++)
|
|
347
|
+
t[d] != null && s.push({ type: m.REMOVE, target: t[d] });
|
|
318
348
|
return s;
|
|
319
349
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
350
|
+
const v = "http://www.w3.org/2000/svg";
|
|
351
|
+
function N(t, e) {
|
|
352
|
+
if (t.type === K) {
|
|
353
|
+
const n = document.createTextNode(t.props.nodeValue);
|
|
354
|
+
return t._dom = n, n;
|
|
324
355
|
}
|
|
325
|
-
if (t.type ===
|
|
326
|
-
const
|
|
327
|
-
for (const
|
|
328
|
-
|
|
329
|
-
return t._dom =
|
|
356
|
+
if (t.type === ct) {
|
|
357
|
+
const n = document.createDocumentFragment();
|
|
358
|
+
for (const r of t.children)
|
|
359
|
+
n.appendChild(N(r, e));
|
|
360
|
+
return t._dom = n, n;
|
|
330
361
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
362
|
+
t.type === "svg" ? e = v : t.type === "foreignObject" && (e = void 0);
|
|
363
|
+
const s = e ? document.createElementNS(e, t.type) : document.createElement(t.type);
|
|
364
|
+
mt(s, {}, t.props);
|
|
365
|
+
for (const n of t.children)
|
|
366
|
+
s.appendChild(N(n, e));
|
|
367
|
+
return t._dom = s, s;
|
|
368
|
+
}
|
|
369
|
+
function mt(t, e, s) {
|
|
338
370
|
for (const n in e)
|
|
339
|
-
n === "children" || n === "key" || n in s ||
|
|
371
|
+
n === "children" || n === "key" || n in s || et(t, n, e[n]);
|
|
340
372
|
for (const n in s)
|
|
341
|
-
n === "children" || n === "key" || e[n] !== s[n] &&
|
|
373
|
+
n === "children" || n === "key" || e[n] !== s[n] && tt(t, n, s[n], e[n]);
|
|
342
374
|
}
|
|
343
|
-
function
|
|
375
|
+
function tt(t, e, s, n) {
|
|
344
376
|
if (e.startsWith("on")) {
|
|
345
377
|
const r = e.slice(2).toLowerCase();
|
|
346
378
|
n && t.removeEventListener(r, n), s && t.addEventListener(r, s);
|
|
347
|
-
} else if (e === "className")
|
|
348
|
-
t.className = s || "";
|
|
379
|
+
} else if (e === "className" || e === "class")
|
|
380
|
+
t instanceof SVGElement ? t.setAttribute("class", s || "") : t.className = s || "";
|
|
349
381
|
else if (e === "style" && typeof s == "object") {
|
|
350
382
|
if (typeof n == "object" && n)
|
|
351
383
|
for (const r in n)
|
|
352
384
|
r in s || (t.style[r] = "");
|
|
353
385
|
Object.assign(t.style, s);
|
|
354
|
-
} else
|
|
386
|
+
} else if (e === "dangerouslySetInnerHTML")
|
|
387
|
+
s && typeof s.__html == "string" && (t.innerHTML = s.__html);
|
|
388
|
+
else if (e === "ref")
|
|
389
|
+
typeof s == "function" && s(t);
|
|
390
|
+
else if (e in t && !(t instanceof SVGElement))
|
|
391
|
+
try {
|
|
392
|
+
t[e] = s ?? "";
|
|
393
|
+
} catch {
|
|
394
|
+
t.setAttribute(e, s);
|
|
395
|
+
}
|
|
396
|
+
else s === !0 ? t.setAttribute(e, "") : s === !1 || s == null ? t.removeAttribute(e) : t.setAttribute(e, s);
|
|
397
|
+
}
|
|
398
|
+
function et(t, e, s) {
|
|
399
|
+
if (e.startsWith("on"))
|
|
400
|
+
t.removeEventListener(e.slice(2).toLowerCase(), s);
|
|
401
|
+
else if (e === "dangerouslySetInnerHTML")
|
|
402
|
+
t.innerHTML = "";
|
|
403
|
+
else if (e === "className" || e === "class")
|
|
404
|
+
t instanceof SVGElement ? t.removeAttribute("class") : t.className = "";
|
|
405
|
+
else if (e in t && !(t instanceof SVGElement))
|
|
406
|
+
try {
|
|
407
|
+
t[e] = "";
|
|
408
|
+
} catch {
|
|
409
|
+
t.removeAttribute(e);
|
|
410
|
+
}
|
|
411
|
+
else
|
|
412
|
+
t.removeAttribute(e);
|
|
355
413
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
414
|
+
function B(t) {
|
|
415
|
+
return t instanceof SVGElement ? v : void 0;
|
|
358
416
|
}
|
|
359
|
-
function
|
|
417
|
+
function P(t, e) {
|
|
360
418
|
var s, n, r;
|
|
361
419
|
for (const o of e)
|
|
362
420
|
switch (o.type) {
|
|
363
421
|
case m.CREATE: {
|
|
364
|
-
const c =
|
|
422
|
+
const c = N(o.newVNode, B(t));
|
|
365
423
|
(s = o.anchor) != null && s._dom ? t.insertBefore(c, o.anchor._dom) : t.appendChild(c);
|
|
366
424
|
break;
|
|
367
425
|
}
|
|
@@ -371,16 +429,19 @@ function x(t, e) {
|
|
|
371
429
|
break;
|
|
372
430
|
}
|
|
373
431
|
case m.REPLACE: {
|
|
374
|
-
const c =
|
|
375
|
-
|
|
432
|
+
const c = o.oldVNode._dom, a = c == null ? void 0 : c.parentNode, i = N(
|
|
433
|
+
o.newVNode,
|
|
434
|
+
a ? B(a) : void 0
|
|
435
|
+
);
|
|
436
|
+
a && a.replaceChild(i, c);
|
|
376
437
|
break;
|
|
377
438
|
}
|
|
378
439
|
case m.UPDATE: {
|
|
379
|
-
const c = o.target._dom, { set: a, remove:
|
|
380
|
-
for (const
|
|
381
|
-
|
|
382
|
-
for (const
|
|
383
|
-
|
|
440
|
+
const c = o.target._dom, { set: a, remove: i } = o.propPatches;
|
|
441
|
+
for (const l of i)
|
|
442
|
+
et(c, l, o.target.props[l]);
|
|
443
|
+
for (const l in a)
|
|
444
|
+
tt(c, l, a[l], o.target.props[l]);
|
|
384
445
|
break;
|
|
385
446
|
}
|
|
386
447
|
case m.TEXT: {
|
|
@@ -390,145 +451,148 @@ function x(t, e) {
|
|
|
390
451
|
}
|
|
391
452
|
case m.MOVE: {
|
|
392
453
|
const c = o.vnode._dom;
|
|
393
|
-
c && ((n = o.anchor) != null && n._dom ? t.insertBefore(c, o.anchor._dom) : t.appendChild(c)), (r = o.childPatches) != null && r.length && c &&
|
|
454
|
+
c && ((n = o.anchor) != null && n._dom ? t.insertBefore(c, o.anchor._dom) : t.appendChild(c)), (r = o.childPatches) != null && r.length && c && P(c, o.childPatches);
|
|
394
455
|
break;
|
|
395
456
|
}
|
|
396
457
|
case m.CHILDREN: {
|
|
397
458
|
const c = o.parent._dom;
|
|
398
|
-
c && o.childPatches.length &&
|
|
459
|
+
c && o.childPatches.length && P(c, o.childPatches);
|
|
399
460
|
break;
|
|
400
461
|
}
|
|
401
462
|
}
|
|
402
463
|
}
|
|
403
|
-
const
|
|
404
|
-
function
|
|
405
|
-
const s =
|
|
464
|
+
const F = /* @__PURE__ */ new WeakMap();
|
|
465
|
+
function Et(t, e) {
|
|
466
|
+
const s = F.get(e);
|
|
406
467
|
if (s) {
|
|
407
|
-
const n =
|
|
408
|
-
|
|
468
|
+
const n = k(t, e), r = [];
|
|
469
|
+
I(s.vTree, r);
|
|
409
470
|
const o = T(s.vTree, n);
|
|
410
|
-
|
|
471
|
+
P(e, o);
|
|
411
472
|
const c = [];
|
|
412
|
-
n &&
|
|
473
|
+
n && I(n, c);
|
|
413
474
|
const a = new Set(c);
|
|
414
|
-
for (const
|
|
415
|
-
a.has(
|
|
416
|
-
const
|
|
417
|
-
for (const
|
|
418
|
-
|
|
419
|
-
|
|
475
|
+
for (const l of r)
|
|
476
|
+
a.has(l) || l.unmount();
|
|
477
|
+
const i = new Set(r);
|
|
478
|
+
for (const l of c)
|
|
479
|
+
i.has(l) || l.mount(e, () => H(l, e));
|
|
480
|
+
F.set(e, { vTree: n });
|
|
420
481
|
} else {
|
|
421
|
-
const n =
|
|
482
|
+
const n = k(t, e);
|
|
422
483
|
if (!n) return;
|
|
423
|
-
const r =
|
|
484
|
+
const r = N(n);
|
|
424
485
|
e.appendChild(r);
|
|
425
486
|
const o = [];
|
|
426
|
-
|
|
487
|
+
I(n, o);
|
|
427
488
|
for (const c of o)
|
|
428
|
-
c.mount(e, () =>
|
|
429
|
-
|
|
489
|
+
c.mount(e, () => H(c, e));
|
|
490
|
+
F.set(e, { vTree: n });
|
|
430
491
|
}
|
|
431
492
|
}
|
|
432
|
-
function
|
|
493
|
+
function k(t, e) {
|
|
433
494
|
var s;
|
|
434
495
|
if (t == null) return null;
|
|
435
496
|
if (typeof t.type == "function") {
|
|
436
|
-
if (t.type[
|
|
497
|
+
if (t.type[Z]) {
|
|
437
498
|
const r = t.type._lifecycle;
|
|
438
499
|
try {
|
|
439
|
-
const o = new
|
|
440
|
-
if (
|
|
441
|
-
const
|
|
500
|
+
const o = new ft(t.type, t.props), c = o.getLocalProps(), a = c ? { ...t.props, ...c } : t.props, i = t.type(a), f = k(i, e) ?? W("");
|
|
501
|
+
if (f._instance) {
|
|
502
|
+
const p = {
|
|
442
503
|
type: "div",
|
|
443
504
|
props: { style: { display: "contents" } },
|
|
444
|
-
children: [
|
|
505
|
+
children: [f],
|
|
445
506
|
key: t.key
|
|
446
507
|
};
|
|
447
|
-
return
|
|
508
|
+
return p._instance = o, o.lastVTree = p, p;
|
|
448
509
|
}
|
|
449
|
-
return
|
|
510
|
+
return f._instance = o, o.lastVTree = f, f;
|
|
450
511
|
} catch (o) {
|
|
451
512
|
if (r != null && r.onError) {
|
|
452
|
-
const c = r.onError({
|
|
453
|
-
|
|
513
|
+
const c = r.onError({
|
|
514
|
+
error: o,
|
|
515
|
+
props: t.props
|
|
516
|
+
});
|
|
517
|
+
return k(c, e);
|
|
454
518
|
}
|
|
455
519
|
throw o;
|
|
456
520
|
}
|
|
457
521
|
}
|
|
458
522
|
const n = t.type({ ...t.props, children: t.children });
|
|
459
|
-
return
|
|
523
|
+
return k(n, e);
|
|
460
524
|
}
|
|
461
|
-
return (s = t.children) != null && s.length && (t.children = t.children.map((n) =>
|
|
525
|
+
return (s = t.children) != null && s.length && (t.children = t.children.map((n) => k(n, e)).filter((n) => n != null)), t;
|
|
462
526
|
}
|
|
463
|
-
function
|
|
527
|
+
function H(t, e) {
|
|
464
528
|
var r, o;
|
|
465
529
|
if (!t._renderCallback) return;
|
|
466
530
|
const s = t.connectedFn, n = s._lifecycle;
|
|
467
531
|
try {
|
|
468
|
-
const c =
|
|
469
|
-
let
|
|
470
|
-
if (
|
|
532
|
+
const c = t.getLocalProps(), a = c ? { ...t.props, ...c } : t.props, i = s(a), f = k(i, e) ?? W("");
|
|
533
|
+
let p;
|
|
534
|
+
if (f._instance && f._instance !== t ? (p = {
|
|
471
535
|
type: "div",
|
|
472
536
|
props: { style: { display: "contents" } },
|
|
473
|
-
children: [
|
|
537
|
+
children: [f],
|
|
474
538
|
key: null
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
const
|
|
478
|
-
|
|
539
|
+
}, p._instance = t) : (f._instance = t, p = f), t.lastVTree) {
|
|
540
|
+
D(t.lastVTree, t);
|
|
541
|
+
const y = T(t.lastVTree, p), V = ((r = t.lastVTree._dom) == null ? void 0 : r.parentNode) || e;
|
|
542
|
+
P(V, y), p._dom || (p._dom = t.lastVTree._dom);
|
|
479
543
|
}
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
for (const
|
|
486
|
-
|
|
487
|
-
t.lastVTree =
|
|
488
|
-
const
|
|
489
|
-
for (const
|
|
490
|
-
|
|
544
|
+
const d = [];
|
|
545
|
+
M(t.lastVTree, d, t);
|
|
546
|
+
const u = [];
|
|
547
|
+
M(p, u, t);
|
|
548
|
+
const _ = new Set(u);
|
|
549
|
+
for (const y of d)
|
|
550
|
+
_.has(y) || y.unmount();
|
|
551
|
+
t.lastVTree = p;
|
|
552
|
+
const w = new Set(d);
|
|
553
|
+
for (const y of u)
|
|
554
|
+
w.has(y) || y.mount(e, () => H(y, e));
|
|
491
555
|
n != null && n.onUpdate && n.onUpdate({
|
|
492
|
-
dom:
|
|
556
|
+
dom: p == null ? void 0 : p._dom,
|
|
493
557
|
props: t.props
|
|
494
558
|
}), t.updateSelected();
|
|
495
559
|
} catch (c) {
|
|
496
560
|
if (n != null && n.onError) {
|
|
497
|
-
const a = n.onError({ error: c, props: t.props }),
|
|
498
|
-
if (t.lastVTree &&
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
561
|
+
const a = n.onError({ error: c, props: t.props }), i = k(a, e);
|
|
562
|
+
if (t.lastVTree && i) {
|
|
563
|
+
D(t.lastVTree, t);
|
|
564
|
+
const f = T(t.lastVTree, i), p = ((o = t.lastVTree._dom) == null ? void 0 : o.parentNode) || e;
|
|
565
|
+
P(p, f), i._dom || (i._dom = t.lastVTree._dom);
|
|
502
566
|
}
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
for (const
|
|
506
|
-
t.lastVTree =
|
|
567
|
+
const l = [];
|
|
568
|
+
M(t.lastVTree, l, t);
|
|
569
|
+
for (const f of l) f.unmount();
|
|
570
|
+
t.lastVTree = i, t.updateSelected();
|
|
507
571
|
} else
|
|
508
572
|
throw c;
|
|
509
573
|
}
|
|
510
574
|
}
|
|
511
|
-
function
|
|
575
|
+
function D(t, e) {
|
|
512
576
|
if (!(!t || !t.children))
|
|
513
577
|
for (let s = 0; s < t.children.length; s++) {
|
|
514
578
|
const n = t.children[s];
|
|
515
|
-
n._instance && n._instance !== e && n._instance.lastVTree && n._instance.lastVTree !== n && (t.children[s] = n._instance.lastVTree),
|
|
579
|
+
n._instance && n._instance !== e && n._instance.lastVTree && n._instance.lastVTree !== n && (t.children[s] = n._instance.lastVTree), D(t.children[s], e);
|
|
516
580
|
}
|
|
517
581
|
}
|
|
518
|
-
function
|
|
582
|
+
function I(t, e) {
|
|
519
583
|
if (t && (t._instance && e.push(t._instance), t.children))
|
|
520
584
|
for (const s of t.children)
|
|
521
|
-
|
|
585
|
+
I(s, e);
|
|
522
586
|
}
|
|
523
|
-
function
|
|
587
|
+
function M(t, e, s) {
|
|
524
588
|
if (t && (t._instance && t._instance !== s && e.push(t._instance), t.children))
|
|
525
589
|
for (const n of t.children)
|
|
526
|
-
|
|
590
|
+
M(n, e, s);
|
|
527
591
|
}
|
|
528
|
-
function
|
|
592
|
+
function j(t) {
|
|
529
593
|
return t.length > 1 && t.endsWith("/") ? t.slice(0, -1) : t || "/";
|
|
530
594
|
}
|
|
531
|
-
function
|
|
595
|
+
function Q(t) {
|
|
532
596
|
const e = {};
|
|
533
597
|
if (!t) return e;
|
|
534
598
|
const s = t.startsWith("?") ? t.slice(1) : t;
|
|
@@ -536,46 +600,46 @@ function B(t) {
|
|
|
536
600
|
e[o] = r;
|
|
537
601
|
}), e;
|
|
538
602
|
}
|
|
539
|
-
function
|
|
540
|
-
const s =
|
|
603
|
+
function nt(t, e) {
|
|
604
|
+
const s = j(t), n = j(e);
|
|
541
605
|
if (n === "*")
|
|
542
606
|
return { params: { "*": s } };
|
|
543
607
|
const r = s === "/" ? [""] : s.split("/").slice(1), o = n === "/" ? [""] : n.split("/").slice(1);
|
|
544
608
|
if (o.length > 0 && o[o.length - 1] === "*") {
|
|
545
|
-
const
|
|
546
|
-
if (r.length <
|
|
547
|
-
const
|
|
548
|
-
for (let
|
|
549
|
-
const
|
|
550
|
-
if (
|
|
551
|
-
|
|
552
|
-
else if (
|
|
609
|
+
const i = o.slice(0, -1);
|
|
610
|
+
if (r.length < i.length) return null;
|
|
611
|
+
const l = {};
|
|
612
|
+
for (let p = 0; p < i.length; p++) {
|
|
613
|
+
const d = i[p];
|
|
614
|
+
if (d.startsWith(":"))
|
|
615
|
+
l[d.slice(1)] = r[p];
|
|
616
|
+
else if (d !== r[p])
|
|
553
617
|
return null;
|
|
554
618
|
}
|
|
555
|
-
const
|
|
556
|
-
return
|
|
619
|
+
const f = r.slice(i.length).join("/");
|
|
620
|
+
return l["*"] = f, { params: l };
|
|
557
621
|
}
|
|
558
622
|
if (r.length !== o.length) return null;
|
|
559
623
|
const a = {};
|
|
560
|
-
for (let
|
|
561
|
-
const
|
|
562
|
-
if (
|
|
563
|
-
a[
|
|
564
|
-
else if (
|
|
624
|
+
for (let i = 0; i < o.length; i++) {
|
|
625
|
+
const l = o[i];
|
|
626
|
+
if (l.startsWith(":"))
|
|
627
|
+
a[l.slice(1)] = r[i];
|
|
628
|
+
else if (l !== r[i])
|
|
565
629
|
return null;
|
|
566
630
|
}
|
|
567
631
|
return { params: a };
|
|
568
632
|
}
|
|
569
|
-
function
|
|
633
|
+
function J(t, e) {
|
|
570
634
|
for (const s of e) {
|
|
571
|
-
const n =
|
|
635
|
+
const n = nt(t, s.path);
|
|
572
636
|
if (n)
|
|
573
637
|
return { pattern: s.path, params: n.params };
|
|
574
638
|
}
|
|
575
639
|
return null;
|
|
576
640
|
}
|
|
577
|
-
function
|
|
578
|
-
const { routes: e, initialPath: s } = t, n = s ?? window.location.pathname, r = s ? "" : window.location.search, o =
|
|
641
|
+
function St(t) {
|
|
642
|
+
const { routes: e, initialPath: s } = t, n = s ?? window.location.pathname, r = s ? "" : window.location.search, o = j(n), c = Q(r), a = J(o, e), i = lt({
|
|
579
643
|
state: {
|
|
580
644
|
path: o,
|
|
581
645
|
params: (a == null ? void 0 : a.params) ?? {},
|
|
@@ -583,84 +647,99 @@ function _t(t) {
|
|
|
583
647
|
matched: (a == null ? void 0 : a.pattern) ?? null
|
|
584
648
|
},
|
|
585
649
|
actions: {
|
|
586
|
-
_sync: (
|
|
650
|
+
_sync: (h, E) => E
|
|
587
651
|
}
|
|
588
652
|
});
|
|
589
|
-
function
|
|
590
|
-
const
|
|
653
|
+
function l(h) {
|
|
654
|
+
const E = h.indexOf("?"), A = j(
|
|
655
|
+
E >= 0 ? h.slice(0, E) : h
|
|
656
|
+
), O = E >= 0 ? h.slice(E + 1) : "", b = Q(O), g = J(A, e);
|
|
591
657
|
return {
|
|
592
|
-
path:
|
|
658
|
+
path: A,
|
|
593
659
|
params: (g == null ? void 0 : g.params) ?? {},
|
|
594
|
-
query:
|
|
660
|
+
query: b,
|
|
595
661
|
matched: (g == null ? void 0 : g.pattern) ?? null
|
|
596
662
|
};
|
|
597
663
|
}
|
|
598
|
-
function
|
|
599
|
-
const
|
|
600
|
-
window.history.pushState(null, "",
|
|
664
|
+
function f(h) {
|
|
665
|
+
const E = l(h);
|
|
666
|
+
window.history.pushState(null, "", h), i.dispatch("_sync", E);
|
|
601
667
|
}
|
|
602
|
-
function
|
|
603
|
-
const
|
|
604
|
-
window.history.replaceState(null, "",
|
|
668
|
+
function p(h) {
|
|
669
|
+
const E = l(h);
|
|
670
|
+
window.history.replaceState(null, "", h), i.dispatch("_sync", E);
|
|
605
671
|
}
|
|
606
|
-
function
|
|
672
|
+
function d() {
|
|
607
673
|
window.history.back();
|
|
608
674
|
}
|
|
609
675
|
function u() {
|
|
610
676
|
window.history.forward();
|
|
611
677
|
}
|
|
612
|
-
function
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
);
|
|
616
|
-
l.dispatch("_sync", f);
|
|
678
|
+
function _() {
|
|
679
|
+
const h = l(window.location.pathname + window.location.search);
|
|
680
|
+
i.dispatch("_sync", h);
|
|
617
681
|
}
|
|
618
|
-
window.addEventListener("popstate",
|
|
619
|
-
function
|
|
620
|
-
window.removeEventListener("popstate",
|
|
682
|
+
window.addEventListener("popstate", _);
|
|
683
|
+
function w() {
|
|
684
|
+
window.removeEventListener("popstate", _);
|
|
621
685
|
}
|
|
622
|
-
const
|
|
623
|
-
_path:
|
|
624
|
-
})(function(
|
|
625
|
-
const { _path:
|
|
626
|
-
return
|
|
686
|
+
const y = ut({
|
|
687
|
+
_path: i.select((h) => h.path)
|
|
688
|
+
})(function(E) {
|
|
689
|
+
const { _path: A, path: O, component: b, children: g, ...st } = E, G = nt(A, O);
|
|
690
|
+
return G ? b ? q(b, { ...st, params: G.params }) : (g == null ? void 0 : g[0]) ?? null : null;
|
|
627
691
|
});
|
|
628
|
-
function
|
|
629
|
-
const { to:
|
|
630
|
-
return
|
|
692
|
+
function V(h) {
|
|
693
|
+
const { to: E, children: A, ...O } = h;
|
|
694
|
+
return q(
|
|
631
695
|
"a",
|
|
632
696
|
{
|
|
633
697
|
...O,
|
|
634
|
-
href:
|
|
635
|
-
onClick: (
|
|
636
|
-
|
|
698
|
+
href: E,
|
|
699
|
+
onClick: (b) => {
|
|
700
|
+
b.metaKey || b.ctrlKey || b.shiftKey || b.button !== 0 || (b.preventDefault(), f(E));
|
|
637
701
|
}
|
|
638
702
|
},
|
|
639
|
-
...
|
|
703
|
+
...A || []
|
|
640
704
|
);
|
|
641
705
|
}
|
|
642
|
-
function
|
|
643
|
-
return
|
|
706
|
+
function R(h) {
|
|
707
|
+
return p(h.to), null;
|
|
644
708
|
}
|
|
645
709
|
return {
|
|
646
|
-
store:
|
|
647
|
-
navigate:
|
|
648
|
-
redirect:
|
|
649
|
-
back:
|
|
710
|
+
store: i,
|
|
711
|
+
navigate: f,
|
|
712
|
+
redirect: p,
|
|
713
|
+
back: d,
|
|
650
714
|
forward: u,
|
|
651
|
-
destroy:
|
|
652
|
-
Route:
|
|
653
|
-
Link:
|
|
654
|
-
Redirect:
|
|
715
|
+
destroy: w,
|
|
716
|
+
Route: y,
|
|
717
|
+
Link: V,
|
|
718
|
+
Redirect: R
|
|
655
719
|
};
|
|
656
720
|
}
|
|
657
|
-
function
|
|
721
|
+
function bt() {
|
|
658
722
|
return (t, e) => {
|
|
659
723
|
const s = `[pulse] ${t.actionName}`;
|
|
660
724
|
console.group(s), console.log("prev state", t.prevState), console.log("payload", t.payload), e(), console.log("next state", t.nextState), console.groupEnd();
|
|
661
725
|
};
|
|
662
726
|
}
|
|
663
727
|
function gt(t, e) {
|
|
728
|
+
return async (...s) => {
|
|
729
|
+
e.start && t.dispatch(e.start);
|
|
730
|
+
try {
|
|
731
|
+
const n = await e.run(...s);
|
|
732
|
+
return t.dispatch(e.ok, n), n;
|
|
733
|
+
} catch (n) {
|
|
734
|
+
if (e.fail)
|
|
735
|
+
t.dispatch(e.fail, (n == null ? void 0 : n.message) ?? String(n));
|
|
736
|
+
else
|
|
737
|
+
throw n;
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function wt(t, e) {
|
|
664
743
|
const s = (e == null ? void 0 : e.maxEntries) ?? 1 / 0;
|
|
665
744
|
return (n, r) => {
|
|
666
745
|
r(), t.push({
|
|
@@ -673,15 +752,16 @@ function gt(t, e) {
|
|
|
673
752
|
};
|
|
674
753
|
}
|
|
675
754
|
export {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
755
|
+
ct as Fragment,
|
|
756
|
+
wt as actionHistory,
|
|
757
|
+
ut as connect,
|
|
758
|
+
gt as createAsyncAction,
|
|
759
|
+
q as createElement,
|
|
760
|
+
St as createRouter,
|
|
761
|
+
lt as createStore,
|
|
762
|
+
_t as flushSync,
|
|
763
|
+
q as h,
|
|
764
|
+
bt as logger,
|
|
765
|
+
Et as render
|
|
686
766
|
};
|
|
687
767
|
//# sourceMappingURL=pulse.js.map
|