-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharia-flow-bookmarklet-latest.js
More file actions
660 lines (598 loc) · 22 KB
/
Copy patharia-flow-bookmarklet-latest.js
File metadata and controls
660 lines (598 loc) · 22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
(async function installAriaFlowBookmarklet() {
const VERSION = '2026-05-15-dev-4';
const GLOBAL_KEY = '__ariaFlowBookmarklet';
const LAUNCHER_ID = 'aria-flow-launcher';
const MODAL_ID = 'aria-flow-modal';
const STYLE_ID = 'aria-flow-style';
if (window[GLOBAL_KEY]?.version === VERSION && window[GLOBAL_KEY]?.open) {
window[GLOBAL_KEY].open();
return;
}
if (window[GLOBAL_KEY]?.uninstall) {
window[GLOBAL_KEY].uninstall();
}
const state = {
loadedConversationId: null,
isLoading: false,
};
const esc = (value) => String(value ?? '')
.replaceAll('&', '&')
.replaceAll('<', '<')
.replaceAll('>', '>')
.replaceAll('"', '"')
.replaceAll("'", ''');
function getConversationId() {
const conversationId = location.pathname.match(/\/conversations\/([^/?#]+)/)?.[1];
if (!conversationId) {
throw new Error('Could not find conversation id in URL');
}
return conversationId;
}
function injectStyle() {
document.querySelector(`#${STYLE_ID}`)?.remove();
const style = document.createElement('style');
style.id = STYLE_ID;
style.textContent = `
#${LAUNCHER_ID} {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 2147483646;
border: 0;
border-radius: 999px;
background: #155eef;
color: white;
padding: 10px 14px;
font: 600 13px ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
box-shadow: 0 10px 28px rgba(16,24,40,.24);
cursor: pointer;
}
#${MODAL_ID} {
position: fixed;
inset: 0;
z-index: 2147483647;
display: none;
background: rgba(16,24,40,.56);
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #172033;
}
#${MODAL_ID}.open { display: block; }
#${MODAL_ID} .panel {
position: absolute;
inset: 36px;
background: #fff;
border-radius: 12px;
box-shadow: 0 24px 80px rgba(16,24,40,.35);
display: flex;
flex-direction: column;
overflow: hidden;
}
#${MODAL_ID} .header {
border-bottom: 1px solid #eaecf0;
background: #fcfcfd;
flex: 0 0 auto;
}
#${MODAL_ID} .topbar {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 12px 16px;
}
#${MODAL_ID} h1 { font-size: 16px; margin: 0; }
#${MODAL_ID} .meta { color: #667085; font-size: 12px; margin-top: 3px; }
#${MODAL_ID} .actions { display: flex; gap: 8px; align-items: center; }
#${MODAL_ID} button {
border: 1px solid #d0d5dd;
background: #fff;
border-radius: 7px;
padding: 6px 10px;
cursor: pointer;
color: #344054;
font-weight: 600;
}
#${MODAL_ID} button.primary { background: #155eef; color: #fff; border-color: #155eef; }
#${MODAL_ID} .content {
overflow: auto;
padding: 14px 18px 24px;
background: #fff;
}
#${MODAL_ID} .item {
border: 1px solid #eaecf0;
border-radius: 8px;
padding: 12px;
margin: 10px 0;
background: #fcfcfd;
font-size: 13px;
line-height: 1.45;
}
#${MODAL_ID} .user {
background: #f2f4f7;
border-color: #d0d5dd;
box-shadow: inset 5px 0 0 #98a2b3;
}
#${MODAL_ID} .assistant {
background: #ecfdf3;
border-color: #abefc6;
box-shadow: inset 5px 0 0 #12b76a;
}
#${MODAL_ID} .tool {
background: #f4f3ff;
border-color: #d9d6fe;
box-shadow: inset 5px 0 0 #7a5af8;
}
#${MODAL_ID} .execute-tool {
background: #f0e9ff;
border-color: #bdb4fe;
box-shadow: inset 7px 0 0 #6938ef;
}
#${MODAL_ID} .tool-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
#${MODAL_ID} h2 { font-size: 14px; margin: 0; }
#${MODAL_ID} .badge {
display: inline-block;
font-size: 11px;
padding: 2px 7px;
border-radius: 999px;
background: #ecfdf3;
color: #027a48;
border: 1px solid #abefc6;
margin-left: 4px;
}
#${MODAL_ID} .badge.error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
#${MODAL_ID} .badge.mutation { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
#${MODAL_ID} .reason { margin: 8px 0; color: #344054; }
#${MODAL_ID} details { margin-top: 8px; }
#${MODAL_ID} summary { cursor: pointer; color: #344054; font-weight: 600; }
#${MODAL_ID} .toolset {
padding: 0 16px 12px;
color: #344054;
font-size: 12px;
}
#${MODAL_ID} .toolset details { margin-top: 0; }
#${MODAL_ID} .toolset summary { color: #475467; }
#${MODAL_ID} .toolset-body {
max-height: min(42vh, 360px);
overflow-y: scroll;
overscroll-behavior: contain;
padding-right: 8px;
}
#${MODAL_ID} .toolset-summary {
display: flex;
align-items: center;
gap: 8px;
}
#${MODAL_ID} .toolset-count {
color: #667085;
font-weight: 500;
}
#${MODAL_ID} .toolset-names {
margin-top: 6px;
color: #667085;
line-height: 1.45;
}
#${MODAL_ID} .tool-def {
border: 1px solid #eaecf0;
border-radius: 8px;
background: #fff;
padding: 8px 10px;
margin-top: 8px;
}
#${MODAL_ID} .tool-def h3 {
font-size: 13px;
margin: 0 0 4px;
}
#${MODAL_ID} .tool-desc {
color: #475467;
margin: 4px 0 8px;
}
#${MODAL_ID} .params {
display: grid;
gap: 6px;
margin-top: 8px;
}
#${MODAL_ID} .param {
border-left: 3px solid #d0d5dd;
padding-left: 8px;
}
#${MODAL_ID} .param-name {
font-weight: 700;
color: #344054;
}
#${MODAL_ID} .param-type {
color: #667085;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
#${MODAL_ID} .empty-desc {
color: #98a2b3;
font-style: italic;
}
#${MODAL_ID} a { color: #155eef; font-weight: 600; }
#${MODAL_ID} pre {
white-space: pre-wrap;
overflow: auto;
background: #101828;
color: #f8fafc;
padding: 10px;
border-radius: 6px;
font-size: 12px;
line-height: 1.45;
max-height: 420px;
}
#${MODAL_ID} pre.code .code-comment { color: #98a2b3; }
#${MODAL_ID} pre.code .code-string { color: #86efac; }
#${MODAL_ID} pre.code .code-keyword { color: #93c5fd; font-weight: 700; }
#${MODAL_ID} pre.code .code-number { color: #fdba74; }
#${MODAL_ID} .msg-role { font-size: 11px; font-weight: 700; color: #667085; margin-bottom: 4px; }
`;
document.head.appendChild(style);
}
async function fetchJson(url, init) {
const res = await fetch(url, {
credentials: 'include',
headers: { accept: 'application/json', 'content-type': 'application/json' },
...init,
});
if (!res.ok) {
throw new Error(`${res.status} ${res.statusText}: ${url}\n${await res.text()}`);
}
return res.json();
}
function extractText(content) {
return content?.text?.generatedText ?? content?.generatedText ?? '';
}
function extractToolResultText(toolResult) {
return (toolResult.content ?? []).map(extractText).filter(Boolean).join('\n');
}
function linkifyEscaped(value) {
return esc(value).replace(
/https?:\/\/[^\s<>"')]+/g,
(url) => `<a href="${url}" target="_blank" rel="noreferrer noopener">${url}</a>`,
);
}
function renderText(value) {
return linkifyEscaped(value).replaceAll('\n', '<br>');
}
function highlightJs(code) {
const tokenPattern = /\/\/[^\n]*|\/\*[\s\S]*?\*\/|`(?:\\[\s\S]|[^`\\])*`|'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|\b(?:async|await|break|case|catch|class|const|continue|default|else|export|false|for|from|function|if|import|in|instanceof|let|new|null|of|return|switch|throw|true|try|typeof|undefined|var|while)\b|\b\d+(?:\.\d+)?\b/g;
let html = '';
let lastIndex = 0;
for (const match of code.matchAll(tokenPattern)) {
const token = match[0];
const index = match.index ?? 0;
html += esc(code.slice(lastIndex, index));
let className = 'code-number';
if (token.startsWith('//') || token.startsWith('/*')) {
className = 'code-comment';
} else if (token.startsWith('"') || token.startsWith("'") || token.startsWith('`')) {
className = 'code-string';
} else if (/^[A-Za-z_$]/.test(token)) {
className = 'code-keyword';
}
html += `<span class="${className}">${esc(token)}</span>`;
lastIndex = index + token.length;
}
return html + esc(code.slice(lastIndex));
}
function shouldRenderMessage(role, text) {
if (!['USER', 'ASSISTANT'].includes(role)) return false;
if (!text.trim() || text.includes('<HIDDEN>')) return false;
if (text.startsWith('Consent message:')) return false;
if (text.startsWith('The following is the most up-to-date')) return false;
return true;
}
function shouldRenderTool(name) {
return !['updateSkillCatalog', 'injectRuntimeKnowledge'].includes(name);
}
function toolClass(name) {
if (name === 'ExecuteWixAPI') return 'api-tool execute-tool';
if (name === 'CallWixSiteAPI') return 'api-tool';
return '';
}
function responseShape(text) {
const trimmed = text.trim();
try {
const parsed = JSON.parse(trimmed);
if (Array.isArray(parsed)) return `JSON array, ${parsed.length} items`;
if (parsed && typeof parsed === 'object') return 'JSON object';
} catch {}
return text.includes('\n') ? `Text, ${text.split('\n').length} lines` : 'Text';
}
function schemaType(schema) {
if (!schema || typeof schema !== 'object') return '';
if (Array.isArray(schema.type)) return schema.type.join(' | ');
if (schema.type) return schema.type;
if (schema.enum) return 'enum';
if (schema.anyOf) return 'anyOf';
if (schema.oneOf) return 'oneOf';
if (schema.allOf) return 'allOf';
return 'schema';
}
function normalizeToolDefinitions(llmCall) {
const definitions = llmCall.request?.dynamicRequestConfig?.gatewayToolDefinitions ?? [];
return definitions.map((definition, index) => {
const tool = definition.customTool ?? definition.function ?? definition;
const parameters = tool.parameters ?? tool.inputSchema ?? tool.schema ?? null;
return {
index: index + 1,
name: tool.name ?? definition.name ?? `Tool ${index + 1}`,
description: tool.description ?? '',
parameters,
};
});
}
function renderParamList(parameters) {
const properties = parameters?.properties;
if (!properties || typeof properties !== 'object') {
return '<div class="empty-desc">No parameter properties in schema.</div>';
}
const required = new Set(Array.isArray(parameters.required) ? parameters.required : []);
return `
<div class="params">
${Object.entries(properties).map(([name, schema]) => `
<div class="param">
<div>
<span class="param-name">${esc(name)}</span>
<span class="param-type">${esc(schemaType(schema))}</span>
${required.has(name) ? '<span class="badge mutation">required</span>' : ''}
</div>
${schema?.description ? `<div>${renderText(schema.description)}</div>` : '<div class="empty-desc">No description.</div>'}
${schema?.enum ? `<div><strong>Enum:</strong> ${esc(schema.enum.join(', '))}</div>` : ''}
</div>
`).join('')}
</div>
`;
}
function renderToolDefinitions(toolDefinitions) {
if (!toolDefinitions.length) {
return '<div class="empty-desc">No gateway tool definitions found in this LLM call.</div>';
}
const names = toolDefinitions.map((tool) => tool.name);
return `
<details>
<summary>
<span class="toolset-summary">
<span>Toolset definitions</span>
<span class="toolset-count">${toolDefinitions.length} tools</span>
</span>
</summary>
<div class="toolset-body">
<div class="toolset-names">${esc(names.join(', '))}</div>
${toolDefinitions.map((tool) => `
<details class="tool-def">
<summary>${tool.index}. ${esc(tool.name)}</summary>
<div class="tool-desc">
${tool.description ? renderText(tool.description) : '<span class="empty-desc">No top-level description.</span>'}
</div>
<details>
<summary>Parameters</summary>
${renderParamList(tool.parameters)}
</details>
<details>
<summary>Raw parameter schema</summary>
<pre>${esc(JSON.stringify(tool.parameters ?? {}, null, 2))}</pre>
</details>
</details>
`).join('')}
</div>
</details>
`;
}
function extractAssistantResponse(llmCall) {
const anthropicBlocks = llmCall.response?.googleAnthropicClaudeResponse?.contentBlocks;
if (Array.isArray(anthropicBlocks)) {
const text = anthropicBlocks
.map((block) => block.textContent?.text || block.textContent?.generatedText || '')
.filter(Boolean)
.join('\n\n');
if (text.trim()) return text;
}
const openAiText = llmCall.response?.openAiChatCompletionResponse?.choices?.[0]?.message?.content;
if (typeof openAiText === 'string' && openAiText.trim()) {
return openAiText;
}
const generatedText = llmCall.response?.generatedTexts?.find((text) => text.trim());
return generatedText || '';
}
function renderTool(index, toolUse, resultByToolId) {
const input = toolUse.input ?? {};
const result = resultByToolId.get(toolUse.id);
const hasError = Boolean(result?.error);
const response = result?.text ?? '';
return `
<div class="item tool ${toolClass(toolUse.name)}">
<div class="tool-head">
<h2>${index}. ${esc(toolUse.name)}</h2>
<div>
<span class="badge ${hasError ? 'error' : ''}">${hasError ? 'Has error' : 'Success'}</span>
${input.hasMutations == null ? '' : `<span class="badge mutation">${input.hasMutations ? 'Mutation' : 'Read-only'}</span>`}
</div>
</div>
${input.reason ? `<div class="reason"><strong>Reason:</strong> ${esc(input.reason)}</div>` : ''}
${input.searchTerm ? `<div><strong>Search:</strong> ${esc(input.searchTerm)}</div>` : ''}
${input.articleUrl ? `<div><strong>Article:</strong> <a href="${esc(input.articleUrl)}" target="_blank" rel="noreferrer noopener">${esc(input.articleUrl)}</a></div>` : ''}
${input.code ? `<details><summary>Script</summary><pre class="code"><code>${highlightJs(input.code)}</code></pre></details>` : ''}
${response ? `<details><summary>Response preview · ${esc(responseShape(response))} · ${response.length} chars</summary><pre>${linkifyEscaped(response)}</pre></details>` : ''}
</div>
`;
}
async function loadFlowHtml(conversationId) {
const messagesData = await fetchJson(
'/_api/conversation-message/internal/v2/conversation-messages/query',
{
method: 'POST',
body: JSON.stringify({
conversationId,
query: {
sort: [{ order: 'ASC', fieldName: 'createdDate' }],
cursorPaging: { limit: 100 },
},
}),
},
);
const messages = messagesData.conversationMessages ?? [];
const lastAssistant = [...messages].reverse().find((m) => m.role === 'ASSISTANT');
if (!lastAssistant?.id) {
throw new Error('Could not find assistant message id');
}
const payloadId = encodeURIComponent(lastAssistant.id);
const logData = await fetchJson(
`/conversation-message-log-payload-service/v1/conversation-message-log-payloads/${payloadId}?conversationMessageLogPayloadId=${payloadId}`,
);
const logs = logData.conversationMessageLogPayload?.logs ?? [];
const llmCalls = logs
.filter((log) => log.logType === 'GENERIC_LOG' && log.message === 'LLM Call' && log.jsonData)
.map((log) => {
try { return JSON.parse(log.jsonData); } catch { return null; }
})
.filter(Boolean);
const llmCall =
[...llmCalls].reverse().find((call) =>
call.request?.dynamicRequestConfig?.gatewayToolDefinitions?.length > 0
) ?? llmCalls.at(-1);
if (!llmCall) {
throw new Error('No main LLM call found');
}
const gatewayMessages = llmCall.request?.dynamicRequestConfig?.gatewayMessageDefinitions ?? [];
const resultByToolId = new Map();
for (const msg of gatewayMessages) {
for (const content of msg.content ?? []) {
if (content.toolResult?.toolUseId) {
resultByToolId.set(content.toolResult.toolUseId, {
error: Boolean(content.toolResult.error),
text: extractToolResultText(content.toolResult),
});
}
}
}
const items = [];
let step = 1;
for (const msg of gatewayMessages) {
if (msg.role === 'SYSTEM') continue;
for (const content of msg.content ?? []) {
const text = extractText(content);
if (text && shouldRenderMessage(msg.role, text)) {
items.push(`
<div class="item ${msg.role.toLowerCase()}">
<div class="msg-role">${esc(msg.role)}</div>
<div>${renderText(text)}</div>
</div>
`);
}
if (content.toolUse && shouldRenderTool(content.toolUse.name)) {
items.push(renderTool(step++, content.toolUse, resultByToolId));
}
}
}
const finalAssistantResponse = extractAssistantResponse(llmCall);
if (finalAssistantResponse.trim()) {
items.push(`
<div class="item assistant">
<div class="msg-role">ASSISTANT RESPONSE</div>
<div>${renderText(finalAssistantResponse)}</div>
</div>
`);
}
const tools = [...new Set(gatewayMessages.flatMap((m) =>
(m.content ?? []).map((c) => c.toolUse?.name).filter(Boolean)
))];
const toolDefinitions = normalizeToolDefinitions(llmCall);
return {
tools,
toolDefinitions,
toolDefinitionsHtml: renderToolDefinitions(toolDefinitions),
html: items.join(''),
};
}
function createUi() {
document.querySelector(`#${LAUNCHER_ID}`)?.remove();
document.querySelector(`#${MODAL_ID}`)?.remove();
const launcher = document.createElement('button');
launcher.id = LAUNCHER_ID;
launcher.textContent = 'Open Aria Flow';
document.body.appendChild(launcher);
const modal = document.createElement('section');
modal.id = MODAL_ID;
modal.innerHTML = `
<div class="panel" role="dialog" aria-modal="true">
<div class="header">
<div class="topbar">
<div>
<h1>Injected Aria Flow</h1>
<div class="meta">Version: ${esc(VERSION)}</div>
</div>
<div class="actions">
<button class="primary" data-refresh>Refresh</button>
<button data-close>Close</button>
</div>
</div>
<div class="toolset" data-toolset>
Tool definitions will load here.
</div>
</div>
<div class="content">
<div class="item">Loading...</div>
</div>
</div>
`;
document.body.appendChild(modal);
return { launcher, modal };
}
const { launcher, modal } = createUi();
async function refresh(force = false) {
const conversationId = getConversationId();
const content = modal.querySelector('.content');
if (state.isLoading) return;
if (!force && state.loadedConversationId === conversationId && content.dataset.loaded === 'true') {
return;
}
state.isLoading = true;
content.dataset.loaded = 'false';
content.innerHTML = '<div class="item">Loading...</div>';
modal.querySelector('[data-toolset]').textContent = 'Loading tool definitions...';
try {
const flow = await loadFlowHtml(conversationId);
modal.querySelector('.meta').textContent =
`Version: ${VERSION} · Conversation: ${conversationId} · Invoked tools: ${flow.tools.join(', ') || 'none'} · Defined tools: ${flow.toolDefinitions.length}`;
modal.querySelector('[data-toolset]').innerHTML = flow.toolDefinitionsHtml;
content.innerHTML = flow.html || '<div class="item">No rendered messages/tools found.</div>';
content.dataset.loaded = 'true';
state.loadedConversationId = conversationId;
} catch (error) {
modal.querySelector('[data-toolset]').innerHTML = '<span class="empty-desc">Tool definitions failed to load.</span>';
content.innerHTML = `<div class="item"><strong>Error:</strong><pre>${esc(error.stack || error.message || error)}</pre></div>`;
} finally {
state.isLoading = false;
}
}
function openModal() {
modal.classList.add('open');
void refresh(false);
}
function closeModal() {
modal.classList.remove('open');
}
launcher.addEventListener('click', openModal);
modal.querySelector('[data-close]').addEventListener('click', closeModal);
modal.querySelector('[data-refresh]').addEventListener('click', () => refresh(true));
modal.addEventListener('click', (event) => {
if (event.target === modal) closeModal();
});
window.addEventListener('keydown', (event) => {
if (event.key === 'Escape') closeModal();
});
injectStyle();
window[GLOBAL_KEY] = {
version: VERSION,
open: openModal,
close: closeModal,
refresh: () => refresh(true),
uninstall: () => {
document.querySelector(`#${LAUNCHER_ID}`)?.remove();
document.querySelector(`#${MODAL_ID}`)?.remove();
document.querySelector(`#${STYLE_ID}`)?.remove();
delete window[GLOBAL_KEY];
},
};
openModal();
})();