PageSourceSearch

https://linoyts-qwen-image-2-1-move.hf.space/assets/ApiRecorder-BvE_t-D7.js

js linoyts-qwen-image-2-1-move.hf.space collected 2026-10-03 17:04:16 UTC 2,789 bytes, 102 lines download raw bytes

1import { p as prop, e as init, i as if_block } from './i18n-CMo5lpzy.js';
2import { R as push, V as child, X as sibling, S as first_child, Y as reset, G as deep_read_state, z as untrack, t as template_effect, a0 as set_text, a as append, T as pop, U as flushSync, W as from_html } from './index-BvBk1Iap.js';
3import { B as Button } from './Button-CH2w4_A4.js';
4import './snippet-Bl5YVoCg.js';
5import './Image-CDw5qb5O.js';
6import './misc-ByVveAau.js';
7/* empty css                                             */
8import './ScrollFade.svelte_svelte_type_style_lang-Xm-PLg9E.js';
9/* empty css                                                    */
10
11var root_2 = from_html(`<span class="api-name svelte-1kdww8a"> </span>`);
12var root_1 = from_html(`<div class="loading-dot self-baseline svelte-1kdww8a"></div> <p class="self-baseline svelte-1kdww8a">Recording API Calls:</p> <p class="self-baseline api-section svelte-1kdww8a"><span class="api-count svelte-1kdww8a"> </span> <!></p>`, 1);
13var root = from_html(`<div id="api-recorder" class="svelte-1kdww8a"><!></div>`);
14
15function ApiRecorder($$anchor, $$props) {
16	push($$props, false);
17
18	let api_calls = prop($$props, 'api_calls', 28, () => []);
19	let dependencies = prop($$props, 'dependencies', 12);
20
21	var $$exports = {
22		get api_calls() {
23			return api_calls();
24		},
25
26		set api_calls($$value) {
27			api_calls($$value);
28			flushSync();
29		},
30
31		get dependencies() {
32			return dependencies();
33		},
34
35		set dependencies($$value) {
36			dependencies($$value);
37			flushSync();
38		}
39	};
40
41	init();
42
43	var div = root();
44	var node = child(div);
45
46	Button(node, {
47		size: 'sm',
48		variant: 'secondary',
49		children: ($$anchor, $$slotProps) => {
50			var fragment = root_1();
51			var p = sibling(first_child(fragment), 4);
52			var span = child(p);
53			var text = child(span);
54
55			reset(span);
56
57			var node_1 = sibling(span, 2);
58
59			{
60				var consequent = ($$anchor) => {
61					var span_1 = root_2();
62					var text_1 = child(span_1);
63
64					reset(span_1);
65
66					template_effect(() => set_text(text_1, `/${(
67						deep_read_state(dependencies()),
68						deep_read_state(api_calls()),
69						untrack(() => dependencies()[api_calls()[api_calls().length - 1].fn_index].api_name)
70					) ?? ''}`));
71
72					append($$anchor, span_1);
73				};
74
75				if_block(node_1, ($$render) => {
76					if ((
77						deep_read_state(api_calls()),
78						untrack(() => api_calls().length > 0)
79					)) $$render(consequent);
80				});
81			}
82
83			reset(p);
84
85			template_effect(() => set_text(text, `[${(
86				deep_read_state(api_calls()),
87				untrack(() => api_calls().length)
88			) ?? ''}]`));
89
90			append($$anchor, fragment);
91		},
92		$$slots: { default: true }
93	});
94
95	reset(div);
96	append($$anchor, div);
97
98	return pop($$exports);
99}
100
101export { ApiRecorder as default };
102//# sourceMappingURL=ApiRecorder-BvE_t-D7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.