create-atom.io 0.0.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/bin/create-atom.bin.js +2 -0
- package/dist/create-atom-BV6WVRvY.js +102 -0
- package/dist/create-atom-BV6WVRvY.js.map +1 -0
- package/dist/create-atom.d.ts +14 -0
- package/dist/create-atom.d.ts.map +1 -0
- package/dist/create-atom.js +3 -0
- package/dist/create-atom.x.js +51 -0
- package/dist/create-atom.x.js.map +1 -0
- package/package.json +56 -0
- package/src/create-atom.ts +191 -0
- package/src/create-atom.x.ts +59 -0
- package/templates/base/_gitignore +24 -0
- package/templates/base/eslint.config.ts +178 -0
- package/templates/base/eslint.d.ts +31 -0
- package/templates/base/index.html +14 -0
- package/templates/base/node_modules/.bin/browserslist +21 -0
- package/templates/base/node_modules/.bin/eslint +21 -0
- package/templates/base/node_modules/.bin/jiti +21 -0
- package/templates/base/node_modules/.bin/sass +21 -0
- package/templates/base/node_modules/.bin/terser +21 -0
- package/templates/base/node_modules/.bin/tsc +21 -0
- package/templates/base/node_modules/.bin/tsserver +21 -0
- package/templates/base/node_modules/.bin/vite +21 -0
- package/templates/base/node_modules/.bin/yaml +21 -0
- package/templates/base/node_modules/.vite/deps/_metadata.json +82 -0
- package/templates/base/node_modules/.vite/deps/atom__io.js +72 -0
- package/templates/base/node_modules/.vite/deps/atom__io.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/atom__io_react.js +170 -0
- package/templates/base/node_modules/.vite/deps/atom__io_react.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/chunk-2PJG54YB.js +364 -0
- package/templates/base/node_modules/.vite/deps/chunk-2PJG54YB.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/chunk-6VZTUEOV.js +3777 -0
- package/templates/base/node_modules/.vite/deps/chunk-6VZTUEOV.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/chunk-IHAFLL3M.js +204 -0
- package/templates/base/node_modules/.vite/deps/chunk-IHAFLL3M.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/chunk-LZJKCPXG.js +84 -0
- package/templates/base/node_modules/.vite/deps/chunk-LZJKCPXG.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/chunk-PJQAIOAR.js +311 -0
- package/templates/base/node_modules/.vite/deps/chunk-PJQAIOAR.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/chunk-XRJUZPUF.js +17 -0
- package/templates/base/node_modules/.vite/deps/chunk-XRJUZPUF.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/package.json +3 -0
- package/templates/base/node_modules/.vite/deps/preact.js +27 -0
- package/templates/base/node_modules/.vite/deps/preact.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/preact_compat.js +100 -0
- package/templates/base/node_modules/.vite/deps/preact_compat.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/preact_debug.js +240 -0
- package/templates/base/node_modules/.vite/deps/preact_debug.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/preact_devtools.js +7 -0
- package/templates/base/node_modules/.vite/deps/preact_devtools.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/preact_hooks.js +29 -0
- package/templates/base/node_modules/.vite/deps/preact_hooks.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/preact_jsx-dev-runtime.js +18 -0
- package/templates/base/node_modules/.vite/deps/preact_jsx-dev-runtime.js.map +7 -0
- package/templates/base/node_modules/.vite/deps/preact_jsx-runtime.js +18 -0
- package/templates/base/node_modules/.vite/deps/preact_jsx-runtime.js.map +7 -0
- package/templates/base/package.json +24 -0
- package/templates/base/public/preact.svg +6 -0
- package/templates/base/src/BezierPlayground.tsx +448 -0
- package/templates/base/src/index.tsx +48 -0
- package/templates/base/src/msg.md +105 -0
- package/templates/base/src/style.css +126 -0
- package/templates/base/tsconfig.json +21 -0
- package/templates/base/vite.config.ts +9 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import {
|
|
2
|
+
l
|
|
3
|
+
} from "./chunk-PJQAIOAR.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/hooks/dist/hooks.module.js
|
|
6
|
+
var t;
|
|
7
|
+
var r;
|
|
8
|
+
var u;
|
|
9
|
+
var i;
|
|
10
|
+
var o = 0;
|
|
11
|
+
var f = [];
|
|
12
|
+
var c = l;
|
|
13
|
+
var e = c.__b;
|
|
14
|
+
var a = c.__r;
|
|
15
|
+
var v = c.diffed;
|
|
16
|
+
var l2 = c.__c;
|
|
17
|
+
var m = c.unmount;
|
|
18
|
+
var s = c.__;
|
|
19
|
+
function p(n, t2) {
|
|
20
|
+
c.__h && c.__h(r, n, o || t2), o = 0;
|
|
21
|
+
var u2 = r.__H || (r.__H = { __: [], __h: [] });
|
|
22
|
+
return n >= u2.__.length && u2.__.push({}), u2.__[n];
|
|
23
|
+
}
|
|
24
|
+
function d(n) {
|
|
25
|
+
return o = 1, h(D, n);
|
|
26
|
+
}
|
|
27
|
+
function h(n, u2, i2) {
|
|
28
|
+
var o2 = p(t++, 2);
|
|
29
|
+
if (o2.t = n, !o2.__c && (o2.__ = [i2 ? i2(u2) : D(void 0, u2), function(n2) {
|
|
30
|
+
var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n2);
|
|
31
|
+
t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
|
|
32
|
+
}], o2.__c = r, !r.__f)) {
|
|
33
|
+
var f2 = function(n2, t2, r2) {
|
|
34
|
+
if (!o2.__c.__H) return true;
|
|
35
|
+
var u3 = o2.__c.__H.__.filter(function(n3) {
|
|
36
|
+
return !!n3.__c;
|
|
37
|
+
});
|
|
38
|
+
if (u3.every(function(n3) {
|
|
39
|
+
return !n3.__N;
|
|
40
|
+
})) return !c2 || c2.call(this, n2, t2, r2);
|
|
41
|
+
var i3 = o2.__c.props !== n2;
|
|
42
|
+
return u3.forEach(function(n3) {
|
|
43
|
+
if (n3.__N) {
|
|
44
|
+
var t3 = n3.__[0];
|
|
45
|
+
n3.__ = n3.__N, n3.__N = void 0, t3 !== n3.__[0] && (i3 = true);
|
|
46
|
+
}
|
|
47
|
+
}), c2 && c2.call(this, n2, t2, r2) || i3;
|
|
48
|
+
};
|
|
49
|
+
r.__f = true;
|
|
50
|
+
var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
|
|
51
|
+
r.componentWillUpdate = function(n2, t2, r2) {
|
|
52
|
+
if (this.__e) {
|
|
53
|
+
var u3 = c2;
|
|
54
|
+
c2 = void 0, f2(n2, t2, r2), c2 = u3;
|
|
55
|
+
}
|
|
56
|
+
e2 && e2.call(this, n2, t2, r2);
|
|
57
|
+
}, r.shouldComponentUpdate = f2;
|
|
58
|
+
}
|
|
59
|
+
return o2.__N || o2.__;
|
|
60
|
+
}
|
|
61
|
+
function y(n, u2) {
|
|
62
|
+
var i2 = p(t++, 3);
|
|
63
|
+
!c.__s && C(i2.__H, u2) && (i2.__ = n, i2.u = u2, r.__H.__h.push(i2));
|
|
64
|
+
}
|
|
65
|
+
function _(n, u2) {
|
|
66
|
+
var i2 = p(t++, 4);
|
|
67
|
+
!c.__s && C(i2.__H, u2) && (i2.__ = n, i2.u = u2, r.__h.push(i2));
|
|
68
|
+
}
|
|
69
|
+
function A(n) {
|
|
70
|
+
return o = 5, T(function() {
|
|
71
|
+
return { current: n };
|
|
72
|
+
}, []);
|
|
73
|
+
}
|
|
74
|
+
function F(n, t2, r2) {
|
|
75
|
+
o = 6, _(function() {
|
|
76
|
+
if ("function" == typeof n) {
|
|
77
|
+
var r3 = n(t2());
|
|
78
|
+
return function() {
|
|
79
|
+
n(null), r3 && "function" == typeof r3 && r3();
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
if (n) return n.current = t2(), function() {
|
|
83
|
+
return n.current = null;
|
|
84
|
+
};
|
|
85
|
+
}, null == r2 ? r2 : r2.concat(n));
|
|
86
|
+
}
|
|
87
|
+
function T(n, r2) {
|
|
88
|
+
var u2 = p(t++, 7);
|
|
89
|
+
return C(u2.__H, r2) && (u2.__ = n(), u2.__H = r2, u2.__h = n), u2.__;
|
|
90
|
+
}
|
|
91
|
+
function q(n, t2) {
|
|
92
|
+
return o = 8, T(function() {
|
|
93
|
+
return n;
|
|
94
|
+
}, t2);
|
|
95
|
+
}
|
|
96
|
+
function x(n) {
|
|
97
|
+
var u2 = r.context[n.__c], i2 = p(t++, 9);
|
|
98
|
+
return i2.c = n, u2 ? (null == i2.__ && (i2.__ = true, u2.sub(r)), u2.props.value) : n.__;
|
|
99
|
+
}
|
|
100
|
+
function P(n, t2) {
|
|
101
|
+
c.useDebugValue && c.useDebugValue(t2 ? t2(n) : n);
|
|
102
|
+
}
|
|
103
|
+
function b(n) {
|
|
104
|
+
var u2 = p(t++, 10), i2 = d();
|
|
105
|
+
return u2.__ = n, r.componentDidCatch || (r.componentDidCatch = function(n2, t2) {
|
|
106
|
+
u2.__ && u2.__(n2, t2), i2[1](n2);
|
|
107
|
+
}), [i2[0], function() {
|
|
108
|
+
i2[1](void 0);
|
|
109
|
+
}];
|
|
110
|
+
}
|
|
111
|
+
function g() {
|
|
112
|
+
var n = p(t++, 11);
|
|
113
|
+
if (!n.__) {
|
|
114
|
+
for (var u2 = r.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
|
|
115
|
+
var i2 = u2.__m || (u2.__m = [0, 0]);
|
|
116
|
+
n.__ = "P" + i2[0] + "-" + i2[1]++;
|
|
117
|
+
}
|
|
118
|
+
return n.__;
|
|
119
|
+
}
|
|
120
|
+
function j() {
|
|
121
|
+
for (var n; n = f.shift(); ) if (n.__P && n.__H) try {
|
|
122
|
+
n.__H.__h.forEach(z), n.__H.__h.forEach(B), n.__H.__h = [];
|
|
123
|
+
} catch (t2) {
|
|
124
|
+
n.__H.__h = [], c.__e(t2, n.__v);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
c.__b = function(n) {
|
|
128
|
+
r = null, e && e(n);
|
|
129
|
+
}, c.__ = function(n, t2) {
|
|
130
|
+
n && t2.__k && t2.__k.__m && (n.__m = t2.__k.__m), s && s(n, t2);
|
|
131
|
+
}, c.__r = function(n) {
|
|
132
|
+
a && a(n), t = 0;
|
|
133
|
+
var i2 = (r = n.__c).__H;
|
|
134
|
+
i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n2) {
|
|
135
|
+
n2.__N && (n2.__ = n2.__N), n2.u = n2.__N = void 0;
|
|
136
|
+
})) : (i2.__h.forEach(z), i2.__h.forEach(B), i2.__h = [], t = 0)), u = r;
|
|
137
|
+
}, c.diffed = function(n) {
|
|
138
|
+
v && v(n);
|
|
139
|
+
var t2 = n.__c;
|
|
140
|
+
t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j)), t2.__H.__.forEach(function(n2) {
|
|
141
|
+
n2.u && (n2.__H = n2.u), n2.u = void 0;
|
|
142
|
+
})), u = r = null;
|
|
143
|
+
}, c.__c = function(n, t2) {
|
|
144
|
+
t2.some(function(n2) {
|
|
145
|
+
try {
|
|
146
|
+
n2.__h.forEach(z), n2.__h = n2.__h.filter(function(n3) {
|
|
147
|
+
return !n3.__ || B(n3);
|
|
148
|
+
});
|
|
149
|
+
} catch (r2) {
|
|
150
|
+
t2.some(function(n3) {
|
|
151
|
+
n3.__h && (n3.__h = []);
|
|
152
|
+
}), t2 = [], c.__e(r2, n2.__v);
|
|
153
|
+
}
|
|
154
|
+
}), l2 && l2(n, t2);
|
|
155
|
+
}, c.unmount = function(n) {
|
|
156
|
+
m && m(n);
|
|
157
|
+
var t2, r2 = n.__c;
|
|
158
|
+
r2 && r2.__H && (r2.__H.__.forEach(function(n2) {
|
|
159
|
+
try {
|
|
160
|
+
z(n2);
|
|
161
|
+
} catch (n3) {
|
|
162
|
+
t2 = n3;
|
|
163
|
+
}
|
|
164
|
+
}), r2.__H = void 0, t2 && c.__e(t2, r2.__v));
|
|
165
|
+
};
|
|
166
|
+
var k = "function" == typeof requestAnimationFrame;
|
|
167
|
+
function w(n) {
|
|
168
|
+
var t2, r2 = function() {
|
|
169
|
+
clearTimeout(u2), k && cancelAnimationFrame(t2), setTimeout(n);
|
|
170
|
+
}, u2 = setTimeout(r2, 35);
|
|
171
|
+
k && (t2 = requestAnimationFrame(r2));
|
|
172
|
+
}
|
|
173
|
+
function z(n) {
|
|
174
|
+
var t2 = r, u2 = n.__c;
|
|
175
|
+
"function" == typeof u2 && (n.__c = void 0, u2()), r = t2;
|
|
176
|
+
}
|
|
177
|
+
function B(n) {
|
|
178
|
+
var t2 = r;
|
|
179
|
+
n.__c = n.__(), r = t2;
|
|
180
|
+
}
|
|
181
|
+
function C(n, t2) {
|
|
182
|
+
return !n || n.length !== t2.length || t2.some(function(t3, r2) {
|
|
183
|
+
return t3 !== n[r2];
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
function D(n, t2) {
|
|
187
|
+
return "function" == typeof t2 ? t2(n) : t2;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export {
|
|
191
|
+
d,
|
|
192
|
+
h,
|
|
193
|
+
y,
|
|
194
|
+
_,
|
|
195
|
+
A,
|
|
196
|
+
F,
|
|
197
|
+
T,
|
|
198
|
+
q,
|
|
199
|
+
x,
|
|
200
|
+
P,
|
|
201
|
+
b,
|
|
202
|
+
g
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=chunk-IHAFLL3M.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/hooks/src/index.js"],
|
|
4
|
+
"sourcesContent": ["import { options as _options } from 'preact';\n\n/** @type {number} */\nlet currentIndex;\n\n/** @type {import('./internal').Component} */\nlet currentComponent;\n\n/** @type {import('./internal').Component} */\nlet previousComponent;\n\n/** @type {number} */\nlet currentHook = 0;\n\n/** @type {Array<import('./internal').Component>} */\nlet afterPaintEffects = [];\n\n// Cast to use internal Options type\nconst options = /** @type {import('./internal').Options} */ (_options);\n\nlet oldBeforeDiff = options._diff;\nlet oldBeforeRender = options._render;\nlet oldAfterDiff = options.diffed;\nlet oldCommit = options._commit;\nlet oldBeforeUnmount = options.unmount;\nlet oldRoot = options._root;\n\n// We take the minimum timeout for requestAnimationFrame to ensure that\n// the callback is invoked after the next frame. 35ms is based on a 30hz\n// refresh rate, which is the minimum rate for a smooth user experience.\nconst RAF_TIMEOUT = 35;\nlet prevRaf;\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions._diff = vnode => {\n\tcurrentComponent = null;\n\tif (oldBeforeDiff) oldBeforeDiff(vnode);\n};\n\noptions._root = (vnode, parentDom) => {\n\tif (vnode && parentDom._children && parentDom._children._mask) {\n\t\tvnode._mask = parentDom._children._mask;\n\t}\n\n\tif (oldRoot) oldRoot(vnode, parentDom);\n};\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions._render = vnode => {\n\tif (oldBeforeRender) oldBeforeRender(vnode);\n\n\tcurrentComponent = vnode._component;\n\tcurrentIndex = 0;\n\n\tconst hooks = currentComponent.__hooks;\n\tif (hooks) {\n\t\tif (previousComponent === currentComponent) {\n\t\t\thooks._pendingEffects = [];\n\t\t\tcurrentComponent._renderCallbacks = [];\n\t\t\thooks._list.forEach(hookItem => {\n\t\t\t\tif (hookItem._nextValue) {\n\t\t\t\t\thookItem._value = hookItem._nextValue;\n\t\t\t\t}\n\t\t\t\thookItem._pendingArgs = hookItem._nextValue = undefined;\n\t\t\t});\n\t\t} else {\n\t\t\thooks._pendingEffects.forEach(invokeCleanup);\n\t\t\thooks._pendingEffects.forEach(invokeEffect);\n\t\t\thooks._pendingEffects = [];\n\t\t\tcurrentIndex = 0;\n\t\t}\n\t}\n\tpreviousComponent = currentComponent;\n};\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions.diffed = vnode => {\n\tif (oldAfterDiff) oldAfterDiff(vnode);\n\n\tconst c = vnode._component;\n\tif (c && c.__hooks) {\n\t\tif (c.__hooks._pendingEffects.length) afterPaint(afterPaintEffects.push(c));\n\t\tc.__hooks._list.forEach(hookItem => {\n\t\t\tif (hookItem._pendingArgs) {\n\t\t\t\thookItem._args = hookItem._pendingArgs;\n\t\t\t}\n\t\t\thookItem._pendingArgs = undefined;\n\t\t});\n\t}\n\tpreviousComponent = currentComponent = null;\n};\n\n// TODO: Improve typing of commitQueue parameter\n/** @type {(vnode: import('./internal').VNode, commitQueue: any) => void} */\noptions._commit = (vnode, commitQueue) => {\n\tcommitQueue.some(component => {\n\t\ttry {\n\t\t\tcomponent._renderCallbacks.forEach(invokeCleanup);\n\t\t\tcomponent._renderCallbacks = component._renderCallbacks.filter(cb =>\n\t\t\t\tcb._value ? invokeEffect(cb) : true\n\t\t\t);\n\t\t} catch (e) {\n\t\t\tcommitQueue.some(c => {\n\t\t\t\tif (c._renderCallbacks) c._renderCallbacks = [];\n\t\t\t});\n\t\t\tcommitQueue = [];\n\t\t\toptions._catchError(e, component._vnode);\n\t\t}\n\t});\n\n\tif (oldCommit) oldCommit(vnode, commitQueue);\n};\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions.unmount = vnode => {\n\tif (oldBeforeUnmount) oldBeforeUnmount(vnode);\n\n\tconst c = vnode._component;\n\tif (c && c.__hooks) {\n\t\tlet hasErrored;\n\t\tc.__hooks._list.forEach(s => {\n\t\t\ttry {\n\t\t\t\tinvokeCleanup(s);\n\t\t\t} catch (e) {\n\t\t\t\thasErrored = e;\n\t\t\t}\n\t\t});\n\t\tc.__hooks = undefined;\n\t\tif (hasErrored) options._catchError(hasErrored, c._vnode);\n\t}\n};\n\n/**\n * Get a hook's state from the currentComponent\n * @param {number} index The index of the hook to get\n * @param {number} type The index of the hook to get\n * @returns {any}\n */\nfunction getHookState(index, type) {\n\tif (options._hook) {\n\t\toptions._hook(currentComponent, index, currentHook || type);\n\t}\n\tcurrentHook = 0;\n\n\t// Largely inspired by:\n\t// * https://github.com/michael-klein/funcy.js/blob/f6be73468e6ec46b0ff5aa3cc4c9baf72a29025a/src/hooks/core_hooks.mjs\n\t// * https://github.com/michael-klein/funcy.js/blob/650beaa58c43c33a74820a3c98b3c7079cf2e333/src/renderer.mjs\n\t// Other implementations to look at:\n\t// * https://codesandbox.io/s/mnox05qp8\n\tconst hooks =\n\t\tcurrentComponent.__hooks ||\n\t\t(currentComponent.__hooks = {\n\t\t\t_list: [],\n\t\t\t_pendingEffects: []\n\t\t});\n\n\tif (index >= hooks._list.length) {\n\t\thooks._list.push({});\n\t}\n\n\treturn hooks._list[index];\n}\n\n/**\n * @template {unknown} S\n * @param {import('./index').Dispatch<import('./index').StateUpdater<S>>} [initialState]\n * @returns {[S, (state: S) => void]}\n */\nexport function useState(initialState) {\n\tcurrentHook = 1;\n\treturn useReducer(invokeOrReturn, initialState);\n}\n\n/**\n * @template {unknown} S\n * @template {unknown} A\n * @param {import('./index').Reducer<S, A>} reducer\n * @param {import('./index').Dispatch<import('./index').StateUpdater<S>>} initialState\n * @param {(initialState: any) => void} [init]\n * @returns {[ S, (state: S) => void ]}\n */\nexport function useReducer(reducer, initialState, init) {\n\t/** @type {import('./internal').ReducerHookState} */\n\tconst hookState = getHookState(currentIndex++, 2);\n\thookState._reducer = reducer;\n\tif (!hookState._component) {\n\t\thookState._value = [\n\t\t\t!init ? invokeOrReturn(undefined, initialState) : init(initialState),\n\n\t\t\taction => {\n\t\t\t\tconst currentValue = hookState._nextValue\n\t\t\t\t\t? hookState._nextValue[0]\n\t\t\t\t\t: hookState._value[0];\n\t\t\t\tconst nextValue = hookState._reducer(currentValue, action);\n\n\t\t\t\tif (currentValue !== nextValue) {\n\t\t\t\t\thookState._nextValue = [nextValue, hookState._value[1]];\n\t\t\t\t\thookState._component.setState({});\n\t\t\t\t}\n\t\t\t}\n\t\t];\n\n\t\thookState._component = currentComponent;\n\n\t\tif (!currentComponent._hasScuFromHooks) {\n\t\t\tcurrentComponent._hasScuFromHooks = true;\n\t\t\tlet prevScu = currentComponent.shouldComponentUpdate;\n\t\t\tconst prevCWU = currentComponent.componentWillUpdate;\n\n\t\t\t// If we're dealing with a forced update `shouldComponentUpdate` will\n\t\t\t// not be called. But we use that to update the hook values, so we\n\t\t\t// need to call it.\n\t\t\tcurrentComponent.componentWillUpdate = function (p, s, c) {\n\t\t\t\tif (this._force) {\n\t\t\t\t\tlet tmp = prevScu;\n\t\t\t\t\t// Clear to avoid other sCU hooks from being called\n\t\t\t\t\tprevScu = undefined;\n\t\t\t\t\tupdateHookState(p, s, c);\n\t\t\t\t\tprevScu = tmp;\n\t\t\t\t}\n\n\t\t\t\tif (prevCWU) prevCWU.call(this, p, s, c);\n\t\t\t};\n\n\t\t\t// This SCU has the purpose of bailing out after repeated updates\n\t\t\t// to stateful hooks.\n\t\t\t// we store the next value in _nextValue[0] and keep doing that for all\n\t\t\t// state setters, if we have next states and\n\t\t\t// all next states within a component end up being equal to their original state\n\t\t\t// we are safe to bail out for this specific component.\n\t\t\t/**\n\t\t\t *\n\t\t\t * @type {import('./internal').Component[\"shouldComponentUpdate\"]}\n\t\t\t */\n\t\t\t// @ts-ignore - We don't use TS to downtranspile\n\t\t\t// eslint-disable-next-line no-inner-declarations\n\t\t\tfunction updateHookState(p, s, c) {\n\t\t\t\tif (!hookState._component.__hooks) return true;\n\n\t\t\t\t/** @type {(x: import('./internal').HookState) => x is import('./internal').ReducerHookState} */\n\t\t\t\tconst isStateHook = x => !!x._component;\n\t\t\t\tconst stateHooks =\n\t\t\t\t\thookState._component.__hooks._list.filter(isStateHook);\n\n\t\t\t\tconst allHooksEmpty = stateHooks.every(x => !x._nextValue);\n\t\t\t\t// When we have no updated hooks in the component we invoke the previous SCU or\n\t\t\t\t// traverse the VDOM tree further.\n\t\t\t\tif (allHooksEmpty) {\n\t\t\t\t\treturn prevScu ? prevScu.call(this, p, s, c) : true;\n\t\t\t\t}\n\n\t\t\t\t// We check whether we have components with a nextValue set that\n\t\t\t\t// have values that aren't equal to one another this pushes\n\t\t\t\t// us to update further down the tree\n\t\t\t\tlet shouldUpdate = hookState._component.props !== p;\n\t\t\t\tstateHooks.forEach(hookItem => {\n\t\t\t\t\tif (hookItem._nextValue) {\n\t\t\t\t\t\tconst currentValue = hookItem._value[0];\n\t\t\t\t\t\thookItem._value = hookItem._nextValue;\n\t\t\t\t\t\thookItem._nextValue = undefined;\n\t\t\t\t\t\tif (currentValue !== hookItem._value[0]) shouldUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn prevScu\n\t\t\t\t\t? prevScu.call(this, p, s, c) || shouldUpdate\n\t\t\t\t\t: shouldUpdate;\n\t\t\t}\n\n\t\t\tcurrentComponent.shouldComponentUpdate = updateHookState;\n\t\t}\n\t}\n\n\treturn hookState._nextValue || hookState._value;\n}\n\n/**\n * @param {import('./internal').Effect} callback\n * @param {unknown[]} args\n * @returns {void}\n */\nexport function useEffect(callback, args) {\n\t/** @type {import('./internal').EffectHookState} */\n\tconst state = getHookState(currentIndex++, 3);\n\tif (!options._skipEffects && argsChanged(state._args, args)) {\n\t\tstate._value = callback;\n\t\tstate._pendingArgs = args;\n\n\t\tcurrentComponent.__hooks._pendingEffects.push(state);\n\t}\n}\n\n/**\n * @param {import('./internal').Effect} callback\n * @param {unknown[]} args\n * @returns {void}\n */\nexport function useLayoutEffect(callback, args) {\n\t/** @type {import('./internal').EffectHookState} */\n\tconst state = getHookState(currentIndex++, 4);\n\tif (!options._skipEffects && argsChanged(state._args, args)) {\n\t\tstate._value = callback;\n\t\tstate._pendingArgs = args;\n\n\t\tcurrentComponent._renderCallbacks.push(state);\n\t}\n}\n\n/** @type {(initialValue: unknown) => unknown} */\nexport function useRef(initialValue) {\n\tcurrentHook = 5;\n\treturn useMemo(() => ({ current: initialValue }), []);\n}\n\n/**\n * @param {object} ref\n * @param {() => object} createHandle\n * @param {unknown[]} args\n * @returns {void}\n */\nexport function useImperativeHandle(ref, createHandle, args) {\n\tcurrentHook = 6;\n\tuseLayoutEffect(\n\t\t() => {\n\t\t\tif (typeof ref == 'function') {\n\t\t\t\tconst result = ref(createHandle());\n\t\t\t\treturn () => {\n\t\t\t\t\tref(null);\n\t\t\t\t\tif (result && typeof result == 'function') result();\n\t\t\t\t};\n\t\t\t} else if (ref) {\n\t\t\t\tref.current = createHandle();\n\t\t\t\treturn () => (ref.current = null);\n\t\t\t}\n\t\t},\n\t\targs == null ? args : args.concat(ref)\n\t);\n}\n\n/**\n * @template {unknown} T\n * @param {() => T} factory\n * @param {unknown[]} args\n * @returns {T}\n */\nexport function useMemo(factory, args) {\n\t/** @type {import('./internal').MemoHookState<T>} */\n\tconst state = getHookState(currentIndex++, 7);\n\tif (argsChanged(state._args, args)) {\n\t\tstate._value = factory();\n\t\tstate._args = args;\n\t\tstate._factory = factory;\n\t}\n\n\treturn state._value;\n}\n\n/**\n * @param {() => void} callback\n * @param {unknown[]} args\n * @returns {() => void}\n */\nexport function useCallback(callback, args) {\n\tcurrentHook = 8;\n\treturn useMemo(() => callback, args);\n}\n\n/**\n * @param {import('./internal').PreactContext} context\n */\nexport function useContext(context) {\n\tconst provider = currentComponent.context[context._id];\n\t// We could skip this call here, but than we'd not call\n\t// `options._hook`. We need to do that in order to make\n\t// the devtools aware of this hook.\n\t/** @type {import('./internal').ContextHookState} */\n\tconst state = getHookState(currentIndex++, 9);\n\t// The devtools needs access to the context object to\n\t// be able to pull of the default value when no provider\n\t// is present in the tree.\n\tstate._context = context;\n\tif (!provider) return context._defaultValue;\n\t// This is probably not safe to convert to \"!\"\n\tif (state._value == null) {\n\t\tstate._value = true;\n\t\tprovider.sub(currentComponent);\n\t}\n\treturn provider.props.value;\n}\n\n/**\n * Display a custom label for a custom hook for the devtools panel\n * @type {<T>(value: T, cb?: (value: T) => string | number) => void}\n */\nexport function useDebugValue(value, formatter) {\n\tif (options.useDebugValue) {\n\t\toptions.useDebugValue(\n\t\t\tformatter ? formatter(value) : /** @type {any}*/ (value)\n\t\t);\n\t}\n}\n\n/**\n * @param {(error: unknown, errorInfo: import('preact').ErrorInfo) => void} cb\n * @returns {[unknown, () => void]}\n */\nexport function useErrorBoundary(cb) {\n\t/** @type {import('./internal').ErrorBoundaryHookState} */\n\tconst state = getHookState(currentIndex++, 10);\n\tconst errState = useState();\n\tstate._value = cb;\n\tif (!currentComponent.componentDidCatch) {\n\t\tcurrentComponent.componentDidCatch = (err, errorInfo) => {\n\t\t\tif (state._value) state._value(err, errorInfo);\n\t\t\terrState[1](err);\n\t\t};\n\t}\n\treturn [\n\t\terrState[0],\n\t\t() => {\n\t\t\terrState[1](undefined);\n\t\t}\n\t];\n}\n\n/** @type {() => string} */\nexport function useId() {\n\t/** @type {import('./internal').IdHookState} */\n\tconst state = getHookState(currentIndex++, 11);\n\tif (!state._value) {\n\t\t// Grab either the root node or the nearest async boundary node.\n\t\t/** @type {import('./internal').VNode} */\n\t\tlet root = currentComponent._vnode;\n\t\twhile (root !== null && !root._mask && root._parent !== null) {\n\t\t\troot = root._parent;\n\t\t}\n\n\t\tlet mask = root._mask || (root._mask = [0, 0]);\n\t\tstate._value = 'P' + mask[0] + '-' + mask[1]++;\n\t}\n\n\treturn state._value;\n}\n\n/**\n * After paint effects consumer.\n */\nfunction flushAfterPaintEffects() {\n\tlet component;\n\twhile ((component = afterPaintEffects.shift())) {\n\t\tif (!component._parentDom || !component.__hooks) continue;\n\t\ttry {\n\t\t\tcomponent.__hooks._pendingEffects.forEach(invokeCleanup);\n\t\t\tcomponent.__hooks._pendingEffects.forEach(invokeEffect);\n\t\t\tcomponent.__hooks._pendingEffects = [];\n\t\t} catch (e) {\n\t\t\tcomponent.__hooks._pendingEffects = [];\n\t\t\toptions._catchError(e, component._vnode);\n\t\t}\n\t}\n}\n\nlet HAS_RAF = typeof requestAnimationFrame == 'function';\n\n/**\n * Schedule a callback to be invoked after the browser has a chance to paint a new frame.\n * Do this by combining requestAnimationFrame (rAF) + setTimeout to invoke a callback after\n * the next browser frame.\n *\n * Also, schedule a timeout in parallel to the the rAF to ensure the callback is invoked\n * even if RAF doesn't fire (for example if the browser tab is not visible)\n *\n * @param {() => void} callback\n */\nfunction afterNextFrame(callback) {\n\tconst done = () => {\n\t\tclearTimeout(timeout);\n\t\tif (HAS_RAF) cancelAnimationFrame(raf);\n\t\tsetTimeout(callback);\n\t};\n\tconst timeout = setTimeout(done, RAF_TIMEOUT);\n\n\tlet raf;\n\tif (HAS_RAF) {\n\t\traf = requestAnimationFrame(done);\n\t}\n}\n\n// Note: if someone used options.debounceRendering = requestAnimationFrame,\n// then effects will ALWAYS run on the NEXT frame instead of the current one, incurring a ~16ms delay.\n// Perhaps this is not such a big deal.\n/**\n * Schedule afterPaintEffects flush after the browser paints\n * @param {number} newQueueLength\n * @returns {void}\n */\nfunction afterPaint(newQueueLength) {\n\tif (newQueueLength === 1 || prevRaf !== options.requestAnimationFrame) {\n\t\tprevRaf = options.requestAnimationFrame;\n\t\t(prevRaf || afterNextFrame)(flushAfterPaintEffects);\n\t}\n}\n\n/**\n * @param {import('./internal').HookState} hook\n * @returns {void}\n */\nfunction invokeCleanup(hook) {\n\t// A hook cleanup can introduce a call to render which creates a new root, this will call options.vnode\n\t// and move the currentComponent away.\n\tconst comp = currentComponent;\n\tlet cleanup = hook._cleanup;\n\tif (typeof cleanup == 'function') {\n\t\thook._cleanup = undefined;\n\t\tcleanup();\n\t}\n\n\tcurrentComponent = comp;\n}\n\n/**\n * Invoke a Hook's effect\n * @param {import('./internal').EffectHookState} hook\n * @returns {void}\n */\nfunction invokeEffect(hook) {\n\t// A hook call can introduce a call to render which creates a new root, this will call options.vnode\n\t// and move the currentComponent away.\n\tconst comp = currentComponent;\n\thook._cleanup = hook._value();\n\tcurrentComponent = comp;\n}\n\n/**\n * @param {unknown[]} oldArgs\n * @param {unknown[]} newArgs\n * @returns {boolean}\n */\nfunction argsChanged(oldArgs, newArgs) {\n\treturn (\n\t\t!oldArgs ||\n\t\toldArgs.length !== newArgs.length ||\n\t\tnewArgs.some((arg, index) => arg !== oldArgs[index])\n\t);\n}\n\n/**\n * @template Arg\n * @param {Arg} arg\n * @param {(arg: Arg) => any} f\n * @returns {any}\n */\nfunction invokeOrReturn(arg, f) {\n\treturn typeof f == 'function' ? f(arg) : f;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAGA,IAAIA;AAAJ,IAGIC;AAHJ,IAMIC;AANJ,IA4BIC;AA5BJ,IASIC,IAAc;AATlB,IAYIC,IAAoB,CAAA;AAZxB,IAeMC,IAAuDC;AAf7D,IAiBIC,IAAgBF,EAAOG;AAjB3B,IAkBIC,IAAkBJ,EAAOK;AAlB7B,IAmBIC,IAAeN,EAAQO;AAnB3B,IAoBIC,KAAYR,EAAOS;AApBvB,IAqBIC,IAAmBV,EAAQW;AArB/B,IAsBIC,IAAUZ,EAAOa;AAiHrB,SAASC,EAAaC,GAAOC,IAAAA;AACxBhB,IAAOiB,OACVjB,EAAOiB,IAAOtB,GAAkBoB,GAAOjB,KAAekB,EAAAA,GAEvDlB,IAAc;AAOd,MAAMoB,KACLvB,EAAgBwB,QACfxB,EAAgBwB,MAAW,EAC3BN,IAAO,CAAA,GACPI,KAAiB,CAAA,EAAA;AAOnB,SAJIF,KAASG,GAAKL,GAAOO,UACxBF,GAAKL,GAAOQ,KAAK,CAAE,CAAA,GAGbH,GAAKL,GAAOE,CAAAA;AACpB;AAOO,SAASO,EAASC,GAAAA;AAExB,SADAzB,IAAc,GACP0B,EAAWC,GAAgBF,CAAAA;AACnC;AAUgB,SAAAC,EAAWE,GAASH,IAAcI,IAAAA;AAEjD,MAAMC,KAAYd,EAAapB,KAAgB,CAAA;AAE/C,MADAkC,GAAUC,IAAWH,GAAAA,CAChBE,GAASnB,QACbmB,GAASf,KAAU,CACjBc,KAAiDA,GAAKJ,EAAAA,IAA/CE,EAAAA,QAA0BF,EAAAA,GAElC,SAAAO,IAAAA;AACC,QAAMC,KAAeH,GAASI,MAC3BJ,GAASI,IAAY,CAAA,IACrBJ,GAASf,GAAQ,CAAA,GACdoB,KAAYL,G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AAAN,GAAeoC,QAAQ,SAAAX,IAAAA;AACvB,QAAA;AACC4D,QAAc5D,EAAAA;IAGf,SAFS8D,IAAAA;AACRQ,MAAAA,KAAaR;IACd;EACD,CAAA,GACA7D,GAACpB,MAAAA,QACGyF,MAAY5G,EAAOsD,IAAasD,IAAYrE,GAACoD,GAAAA;AAEnD;AA4UA,IAAIkB,IAA0C,cAAA,OAAzBL;AAYrB,SAASC,EAAehD,GAAAA;AACvB,MAOIqD,IAPEC,KAAO,WAAA;AACZC,iBAAaC,EAAAA,GACTJ,KAASK,qBAAqBJ,EAAAA,GAClCK,WAAW1D,CAAAA;EACZ,GACMwD,KAAUE,WAAWJ,IAlcR,EAAA;AAqcfF,QACHC,KAAMN,sBAAsBO,EAAAA;AAE9B;AAqBA,SAASb,EAAckB,GAAAA;AAGtB,MAAMC,KAAO1H,GACT2H,KAAUF,EAAI3G;AACI,gBAAA,OAAX6G,OACVF,EAAI3G,MAAAA,QACJ6G,GAAAA,IAGD3H,IAAmB0H;AACpB;AAOA,SAASlB,EAAaiB,GAAAA;AAGrB,MAAMC,KAAO1H;AACbyH,IAAI3G,MAAY2G,EAAIvG,GAAAA,GACpBlB,IAAmB0H;AACpB;AAOA,SAASxD,EAAY0D,GAASC,IAAAA;AAC7B,SAAA,CACED,KACDA,EAAQnG,WAAWoG,GAAQpG,UAC3BoG,GAAQb,KAAK,SAACc,IAAK1G,IAAAA;AAAU,WAAA0G,OAAQF,EAAQxG,EAAAA;EAAM,CAAA;AAErD;AAQA,SAASU,EAAegG,GAAKC,IAAAA;AAC5B,SAAmB,cAAA,OAALA,KAAkBA,GAAED,CAAAA,IAAOC;AAC1C;",
|
|
6
|
+
"names": ["currentIndex", "currentComponent", "previousComponent", "prevRaf", "currentHook", "afterPaintEffects", "options", "_options", "oldBeforeDiff", "__b", "oldBeforeRender", "__r", "oldAfterDiff", "diffed", "oldCommit", "__c", "oldBeforeUnmount", "unmount", "oldRoot", "__", "getHookState", "index", "type", "__h", "hooks", "__H", "length", "push", "useState", "initialState", "useReducer", "invokeOrReturn", "reducer", "init", "hookState", "_reducer", "action", "currentValue", "__N", "nextValue", "setState", "__f", "updateHookState", "p", "s", "c", "stateHooks", "filter", "x", "every", "prevScu", "call", "this", "shouldUpdate", "props", "forEach", "hookItem", "shouldComponentUpdate", "prevCWU", "componentWillUpdate", "__e", "tmp", "useEffect", "callback", "args", "state", "__s", "argsChanged", "_pendingArgs", "useLayoutEffect", "useRef", "initialValue", "useMemo", "current", "useImperativeHandle", "ref", "createHandle", "result", "concat", "factory", "useCallback", "useContext", "context", "provider", "sub", "value", "useDebugValue", "formatter", "useErrorBoundary", "cb", "errState", "componentDidCatch", "err", "errorInfo", "undefined", "useId", "root", "__v", "__m", "mask", "flushAfterPaintEffects", "component", "shift", "__P", "invokeCleanup", "invokeEffect", "e", "vnode", "parentDom", "__k", "requestAnimationFrame", "afterNextFrame", "commitQueue", "some", "hasErrored", "HAS_RAF", "raf", "done", "clearTimeout", "timeout", "cancelAnimationFrame", "setTimeout", "hook", "comp", "cleanup", "oldArgs", "newArgs", "arg", "f"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
k,
|
|
3
|
+
l
|
|
4
|
+
} from "./chunk-PJQAIOAR.js";
|
|
5
|
+
|
|
6
|
+
// ../../../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
|
7
|
+
var t = /["&<]/;
|
|
8
|
+
function n(r) {
|
|
9
|
+
if (0 === r.length || false === t.test(r)) return r;
|
|
10
|
+
for (var e = 0, n2 = 0, o2 = "", f2 = ""; n2 < r.length; n2++) {
|
|
11
|
+
switch (r.charCodeAt(n2)) {
|
|
12
|
+
case 34:
|
|
13
|
+
f2 = """;
|
|
14
|
+
break;
|
|
15
|
+
case 38:
|
|
16
|
+
f2 = "&";
|
|
17
|
+
break;
|
|
18
|
+
case 60:
|
|
19
|
+
f2 = "<";
|
|
20
|
+
break;
|
|
21
|
+
default:
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
n2 !== e && (o2 += r.slice(e, n2)), o2 += f2, e = n2 + 1;
|
|
25
|
+
}
|
|
26
|
+
return n2 !== e && (o2 += r.slice(e, n2)), o2;
|
|
27
|
+
}
|
|
28
|
+
var o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
29
|
+
var f = 0;
|
|
30
|
+
var i = Array.isArray;
|
|
31
|
+
function u(e, t2, n2, o2, i2, u2) {
|
|
32
|
+
t2 || (t2 = {});
|
|
33
|
+
var a2, c2, p2 = t2;
|
|
34
|
+
if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
|
|
35
|
+
var l3 = { type: e, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f, __i: -1, __u: 0, __source: i2, __self: u2 };
|
|
36
|
+
if ("function" == typeof e && (a2 = e.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
|
|
37
|
+
return l.vnode && l.vnode(l3), l3;
|
|
38
|
+
}
|
|
39
|
+
function a(r) {
|
|
40
|
+
var t2 = u(k, { tpl: r, exprs: [].slice.call(arguments, 1) });
|
|
41
|
+
return t2.key = t2.__v, t2;
|
|
42
|
+
}
|
|
43
|
+
var c = {};
|
|
44
|
+
var p = /[A-Z]/g;
|
|
45
|
+
function l2(e, t2) {
|
|
46
|
+
if (l.attr) {
|
|
47
|
+
var f2 = l.attr(e, t2);
|
|
48
|
+
if ("string" == typeof f2) return f2;
|
|
49
|
+
}
|
|
50
|
+
if (t2 = (function(r) {
|
|
51
|
+
return null !== r && "object" == typeof r && "function" == typeof r.valueOf ? r.valueOf() : r;
|
|
52
|
+
})(t2), "ref" === e || "key" === e) return "";
|
|
53
|
+
if ("style" === e && "object" == typeof t2) {
|
|
54
|
+
var i2 = "";
|
|
55
|
+
for (var u2 in t2) {
|
|
56
|
+
var a2 = t2[u2];
|
|
57
|
+
if (null != a2 && "" !== a2) {
|
|
58
|
+
var l3 = "-" == u2[0] ? u2 : c[u2] || (c[u2] = u2.replace(p, "-$&").toLowerCase()), s2 = ";";
|
|
59
|
+
"number" != typeof a2 || l3.startsWith("--") || o.test(l3) || (s2 = "px;"), i2 = i2 + l3 + ":" + a2 + s2;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return e + '="' + n(i2) + '"';
|
|
63
|
+
}
|
|
64
|
+
return null == t2 || false === t2 || "function" == typeof t2 || "object" == typeof t2 ? "" : true === t2 ? e : e + '="' + n("" + t2) + '"';
|
|
65
|
+
}
|
|
66
|
+
function s(r) {
|
|
67
|
+
if (null == r || "boolean" == typeof r || "function" == typeof r) return null;
|
|
68
|
+
if ("object" == typeof r) {
|
|
69
|
+
if (void 0 === r.constructor) return r;
|
|
70
|
+
if (i(r)) {
|
|
71
|
+
for (var e = 0; e < r.length; e++) r[e] = s(r[e]);
|
|
72
|
+
return r;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return n("" + r);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
u,
|
|
80
|
+
a,
|
|
81
|
+
l2 as l,
|
|
82
|
+
s
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=chunk-LZJKCPXG.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/jsx-runtime/src/utils.js", "../../../../../../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/src/constants.js", "../../../../../../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/jsx-runtime/src/index.js"],
|
|
4
|
+
"sourcesContent": ["const ENCODED_ENTITIES = /[\"&<]/;\n\n/** @param {string} str */\nexport function encodeEntities(str) {\n\t// Skip all work for strings with no entities needing encoding:\n\tif (str.length === 0 || ENCODED_ENTITIES.test(str) === false) return str;\n\n\tlet last = 0,\n\t\ti = 0,\n\t\tout = '',\n\t\tch = '';\n\n\t// Seek forward in str until the next entity char:\n\tfor (; i < str.length; i++) {\n\t\tswitch (str.charCodeAt(i)) {\n\t\t\tcase 34:\n\t\t\t\tch = '"';\n\t\t\t\tbreak;\n\t\t\tcase 38:\n\t\t\t\tch = '&';\n\t\t\t\tbreak;\n\t\t\tcase 60:\n\t\t\t\tch = '<';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcontinue;\n\t\t}\n\t\t// Append skipped/buffered characters and the encoded entity:\n\t\tif (i !== last) out += str.slice(last, i);\n\t\tout += ch;\n\t\t// Start the next seek/buffer after the entity's offset:\n\t\tlast = i + 1;\n\t}\n\tif (i !== last) out += str.slice(last, i);\n\treturn out;\n}\n", "/** Normal hydration that attaches to a DOM tree but does not diff it. */\nexport const MODE_HYDRATE = 1 << 5;\n/** Signifies this VNode suspended on the previous render */\nexport const MODE_SUSPENDED = 1 << 7;\n/** Indicates that this node needs to be inserted while patching children */\nexport const INSERT_VNODE = 1 << 2;\n/** Indicates a VNode has been matched with another VNode in the diff */\nexport const MATCHED = 1 << 1;\n\n/** Reset all mode flags */\nexport const RESET_MODE = ~(MODE_HYDRATE | MODE_SUSPENDED);\n\nexport const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\nexport const XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\nexport const MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n\nexport const NULL = null;\nexport const UNDEFINED = undefined;\nexport const EMPTY_OBJ = /** @type {any} */ ({});\nexport const EMPTY_ARR = [];\nexport const IS_NON_DIMENSIONAL =\n\t/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;\n", "import { options, Fragment } from 'preact';\nimport { encodeEntities } from './utils';\nimport { IS_NON_DIMENSIONAL } from '../../src/constants';\n\nlet vnodeId = 0;\n\nconst isArray = Array.isArray;\n\n/**\n * @fileoverview\n * This file exports various methods that implement Babel's \"automatic\" JSX runtime API:\n * - jsx(type, props, key)\n * - jsxs(type, props, key)\n * - jsxDEV(type, props, key, __source, __self)\n *\n * The implementation of createVNode here is optimized for performance.\n * Benchmarks: https://esbench.com/bench/5f6b54a0b4632100a7dcd2b3\n */\n\n/**\n * JSX.Element factory used by Babel's {runtime:\"automatic\"} JSX transform\n * @param {VNode['type']} type\n * @param {VNode['props']} props\n * @param {VNode['key']} [key]\n * @param {unknown} [isStaticChildren]\n * @param {unknown} [__source]\n * @param {unknown} [__self]\n */\nfunction createVNode(type, props, key, isStaticChildren, __source, __self) {\n\tif (!props) props = {};\n\t// We'll want to preserve `ref` in props to get rid of the need for\n\t// forwardRef components in the future, but that should happen via\n\t// a separate PR.\n\tlet normalizedProps = props,\n\t\tref,\n\t\ti;\n\n\tif ('ref' in normalizedProps) {\n\t\tnormalizedProps = {};\n\t\tfor (i in props) {\n\t\t\tif (i == 'ref') {\n\t\t\t\tref = props[i];\n\t\t\t} else {\n\t\t\t\tnormalizedProps[i] = props[i];\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @type {VNode & { __source: any; __self: any }} */\n\tconst vnode = {\n\t\ttype,\n\t\tprops: normalizedProps,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t_component: null,\n\t\tconstructor: undefined,\n\t\t_original: --vnodeId,\n\t\t_index: -1,\n\t\t_flags: 0,\n\t\t__source,\n\t\t__self\n\t};\n\n\t// If a Component VNode, check for and apply defaultProps.\n\t// Note: `type` is often a String, and can be `undefined` in development.\n\tif (typeof type === 'function' && (ref = type.defaultProps)) {\n\t\tfor (i in ref)\n\t\t\tif (normalizedProps[i] === undefined) {\n\t\t\t\tnormalizedProps[i] = ref[i];\n\t\t\t}\n\t}\n\n\tif (options.vnode) options.vnode(vnode);\n\treturn vnode;\n}\n\n/**\n * Create a template vnode. This function is not expected to be\n * used directly, but rather through a precompile JSX transform\n * @param {string[]} templates\n * @param {Array<string | null | VNode>} exprs\n * @returns {VNode}\n */\nfunction jsxTemplate(templates, ...exprs) {\n\tconst vnode = createVNode(Fragment, { tpl: templates, exprs });\n\t// Bypass render to string top level Fragment optimization\n\tvnode.key = vnode._vnode;\n\treturn vnode;\n}\n\nconst JS_TO_CSS = {};\nconst CSS_REGEX = /[A-Z]/g;\n\n/**\n * Unwrap potential signals.\n * @param {*} value\n * @returns {*}\n */\nfunction normalizeAttrValue(value) {\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.valueOf === 'function'\n\t\t? value.valueOf()\n\t\t: value;\n}\n\n/**\n * Serialize an HTML attribute to a string. This function is not\n * expected to be used directly, but rather through a precompile\n * JSX transform\n * @param {string} name The attribute name\n * @param {*} value The attribute value\n * @returns {string}\n */\nfunction jsxAttr(name, value) {\n\tif (options.attr) {\n\t\tconst result = options.attr(name, value);\n\t\tif (typeof result === 'string') return result;\n\t}\n\n\tvalue = normalizeAttrValue(value);\n\n\tif (name === 'ref' || name === 'key') return '';\n\tif (name === 'style' && typeof value === 'object') {\n\t\tlet str = '';\n\t\tfor (let prop in value) {\n\t\t\tlet val = value[prop];\n\t\t\tif (val != null && val !== '') {\n\t\t\t\tconst name =\n\t\t\t\t\tprop[0] == '-'\n\t\t\t\t\t\t? prop\n\t\t\t\t\t\t: JS_TO_CSS[prop] ||\n\t\t\t\t\t\t\t(JS_TO_CSS[prop] = prop.replace(CSS_REGEX, '-$&').toLowerCase());\n\n\t\t\t\tlet suffix = ';';\n\t\t\t\tif (\n\t\t\t\t\ttypeof val === 'number' &&\n\t\t\t\t\t// Exclude custom-attributes\n\t\t\t\t\t!name.startsWith('--') &&\n\t\t\t\t\t!IS_NON_DIMENSIONAL.test(name)\n\t\t\t\t) {\n\t\t\t\t\tsuffix = 'px;';\n\t\t\t\t}\n\t\t\t\tstr = str + name + ':' + val + suffix;\n\t\t\t}\n\t\t}\n\t\treturn name + '=\"' + encodeEntities(str) + '\"';\n\t}\n\n\tif (\n\t\tvalue == null ||\n\t\tvalue === false ||\n\t\ttypeof value === 'function' ||\n\t\ttypeof value === 'object'\n\t) {\n\t\treturn '';\n\t} else if (value === true) return name;\n\n\treturn name + '=\"' + encodeEntities('' + value) + '\"';\n}\n\n/**\n * Escape a dynamic child passed to `jsxTemplate`. This function\n * is not expected to be used directly, but rather through a\n * precompile JSX transform\n * @param {*} value\n * @returns {string | null | VNode | Array<string | null | VNode>}\n */\nfunction jsxEscape(value) {\n\tif (\n\t\tvalue == null ||\n\t\ttypeof value === 'boolean' ||\n\t\ttypeof value === 'function'\n\t) {\n\t\treturn null;\n\t}\n\n\tif (typeof value === 'object') {\n\t\t// Check for VNode\n\t\tif (value.constructor === undefined) return value;\n\n\t\tif (isArray(value)) {\n\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\tvalue[i] = jsxEscape(value[i]);\n\t\t\t}\n\t\t\treturn value;\n\t\t}\n\t}\n\n\treturn encodeEntities('' + value);\n}\n\nexport {\n\tcreateVNode as jsx,\n\tcreateVNode as jsxs,\n\tcreateVNode as jsxDEV,\n\tFragment,\n\t// precompiled JSX transform\n\tjsxTemplate,\n\tjsxAttr,\n\tjsxEscape\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;AAAA,IAAMA,IAAmB;AAGlB,SAASC,EAAeC,GAAAA;AAE9B,MAAmB,MAAfA,EAAIC,UAAAA,UAAgBH,EAAiBI,KAAKF,CAAAA,EAAgB,QAAOA;AAQrE,WANIG,IAAO,GACVC,KAAI,GACJC,KAAM,IACNC,KAAK,IAGCF,KAAIJ,EAAIC,QAAQG,MAAK;AAC3B,YAAQJ,EAAIO,WAAWH,EAAAA,GAAAA;MACtB,KAAK;AACJE,QAAAA,KAAK;AACL;MACD,KAAO;AACNA,QAAAA,KAAK;AACL;MACD,KAAK;AACJA,QAAAA,KAAK;AACL;M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ASzC,IAAI,GAAGA,IAAIyC,EAAM5C,QAAQG,IACjCyC,GAAMzC,CAAAA,IAAKmD,EAAUV,EAAMzC,CAAAA,CAAAA;AAE5B,aAAOyC;IACR;EACD;AAEA,SAAO9C,EAAe,KAAK8C,CAAAA;AAC5B;",
|
|
6
|
+
"names": ["ENCODED_ENTITIES", "encodeEntities", "str", "length", "test", "last", "i", "out", "ch", "charCodeAt", "slice", "IS_NON_DIMENSIONAL", "vnodeId", "isArray", "Array", "createVNode", "type", "props", "key", "isStaticChildren", "__source", "__self", "ref", "normalizedProps", "vnode", "__k", "__", "__b", "__e", "__c", "constructor", "__v", "__i", "__u", "defaultProps", "options", "jsxTemplate", "templates", "Fragment", "tpl", "exprs", "call", "arguments", "JS_TO_CSS", "CSS_REGEX", "jsxAttr", "name", "value", "attr", "result", "valueOf", "prop", "val", "replace", "toLowerCase", "suffix", "startsWith", "jsxEscape"]
|
|
7
|
+
}
|