@g9tm/lynxcontrols-code 0.0.0-stage → 2.9.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.
@@ -0,0 +1,435 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) Object.defineProperty(obj, key, {
3
+ value: value,
4
+ enumerable: true,
5
+ configurable: true,
6
+ writable: true
7
+ });
8
+ else obj[key] = value;
9
+ return obj;
10
+ }
11
+ function splitLines(text) {
12
+ return text.split(/\r\n|\n|\r/);
13
+ }
14
+ function detectEol(text) {
15
+ var _text_match, _text_match1;
16
+ const crlf = (null != (_text_match = text.match(/\r\n/g)) ? _text_match : []).length;
17
+ const lf = (null != (_text_match1 = text.match(/\n/g)) ? _text_match1 : []).length - crlf;
18
+ return crlf > lf ? '\r\n' : '\n';
19
+ }
20
+ function comparePos(a, b) {
21
+ return a.line - b.line || a.col - b.col;
22
+ }
23
+ function orderedRange(sel) {
24
+ return comparePos(sel.anchor, sel.head) <= 0 ? {
25
+ from: sel.anchor,
26
+ to: sel.head
27
+ } : {
28
+ from: sel.head,
29
+ to: sel.anchor
30
+ };
31
+ }
32
+ function isCaret(sel) {
33
+ return 0 === comparePos(sel.anchor, sel.head);
34
+ }
35
+ function caretAt(pos) {
36
+ return {
37
+ anchor: pos,
38
+ head: pos
39
+ };
40
+ }
41
+ function clampPos(lines, pos) {
42
+ var _lines_line;
43
+ const line = Math.max(0, Math.min(lines.length - 1, pos.line));
44
+ return {
45
+ line,
46
+ col: Math.max(0, Math.min((null != (_lines_line = lines[line]) ? _lines_line : '').length, pos.col))
47
+ };
48
+ }
49
+ function textInRange(lines, from, to, eol = '\n') {
50
+ var _lines_from_line, _lines_from_line1, _lines_l, _lines_to_line;
51
+ if (from.line === to.line) return (null != (_lines_from_line = lines[from.line]) ? _lines_from_line : '').slice(from.col, to.col);
52
+ const out = [
53
+ (null != (_lines_from_line1 = lines[from.line]) ? _lines_from_line1 : '').slice(from.col)
54
+ ];
55
+ for(let l = from.line + 1; l < to.line; l++)out.push(null != (_lines_l = lines[l]) ? _lines_l : '');
56
+ out.push((null != (_lines_to_line = lines[to.line]) ? _lines_to_line : '').slice(0, to.col));
57
+ return out.join(eol);
58
+ }
59
+ function replaceRange(lines, from, to, text) {
60
+ var _lines_from_line, _lines_to_line;
61
+ const head = (null != (_lines_from_line = lines[from.line]) ? _lines_from_line : '').slice(0, from.col);
62
+ const tail = (null != (_lines_to_line = lines[to.line]) ? _lines_to_line : '').slice(to.col);
63
+ const parts = splitLines(text);
64
+ const middle = parts.slice();
65
+ middle[0] = head + middle[0];
66
+ const lastIndex = middle.length - 1;
67
+ const endCol = middle[lastIndex].length;
68
+ middle[lastIndex] = middle[lastIndex] + tail;
69
+ const next = lines.slice(0, from.line).concat(middle, lines.slice(to.line + 1));
70
+ return {
71
+ lines: next,
72
+ end: {
73
+ line: from.line + lastIndex,
74
+ col: endCol
75
+ }
76
+ };
77
+ }
78
+ function applyChange(lines, change, eol = '\n') {
79
+ const removed = textInRange(lines, change.from, change.to, eol);
80
+ const r = replaceRange(lines, change.from, change.to, change.inserted);
81
+ const done = {
82
+ from: change.from,
83
+ to: change.to,
84
+ removed,
85
+ inserted: change.inserted
86
+ };
87
+ return {
88
+ lines: r.lines,
89
+ change: done,
90
+ inverse: {
91
+ from: change.from,
92
+ to: r.end,
93
+ removed: change.inserted,
94
+ inserted: removed
95
+ }
96
+ };
97
+ }
98
+ const WORD = /[A-Za-z0-9_$؀-ۿ]/;
99
+ function moveCaret(lines, pos, move, goal = pos.col, page = 20) {
100
+ var _lines_pos_line;
101
+ const line = null != (_lines_pos_line = lines[pos.line]) ? _lines_pos_line : '';
102
+ const last = lines.length - 1;
103
+ switch(move){
104
+ case 'left':
105
+ var _lines_;
106
+ if (pos.col > 0) return {
107
+ line: pos.line,
108
+ col: pos.col - 1
109
+ };
110
+ return pos.line > 0 ? {
111
+ line: pos.line - 1,
112
+ col: (null != (_lines_ = lines[pos.line - 1]) ? _lines_ : '').length
113
+ } : pos;
114
+ case 'right':
115
+ if (pos.col < line.length) return {
116
+ line: pos.line,
117
+ col: pos.col + 1
118
+ };
119
+ return pos.line < last ? {
120
+ line: pos.line + 1,
121
+ col: 0
122
+ } : pos;
123
+ case 'up':
124
+ case 'down':
125
+ case 'pageUp':
126
+ case 'pageDown':
127
+ {
128
+ var _lines_last, _lines_target;
129
+ const by = 'up' === move ? -1 : 'down' === move ? 1 : 'pageUp' === move ? -page : page;
130
+ const target = Math.max(0, Math.min(last, pos.line + by));
131
+ if (target === pos.line) return by < 0 ? {
132
+ line: 0,
133
+ col: 0
134
+ } : {
135
+ line: last,
136
+ col: (null != (_lines_last = lines[last]) ? _lines_last : '').length
137
+ };
138
+ return {
139
+ line: target,
140
+ col: Math.min(goal, (null != (_lines_target = lines[target]) ? _lines_target : '').length)
141
+ };
142
+ }
143
+ case 'lineStart':
144
+ {
145
+ const indent = line.length - line.trimStart().length;
146
+ return {
147
+ line: pos.line,
148
+ col: pos.col === indent ? 0 : indent
149
+ };
150
+ }
151
+ case 'lineEnd':
152
+ return {
153
+ line: pos.line,
154
+ col: line.length
155
+ };
156
+ case 'docStart':
157
+ return {
158
+ line: 0,
159
+ col: 0
160
+ };
161
+ case 'docEnd':
162
+ var _lines_last1;
163
+ return {
164
+ line: last,
165
+ col: (null != (_lines_last1 = lines[last]) ? _lines_last1 : '').length
166
+ };
167
+ case 'wordLeft':
168
+ {
169
+ if (0 === pos.col) return moveCaret(lines, pos, 'left');
170
+ let c = pos.col;
171
+ while(c > 0 && !WORD.test(line[c - 1]))c--;
172
+ while(c > 0 && WORD.test(line[c - 1]))c--;
173
+ return {
174
+ line: pos.line,
175
+ col: c
176
+ };
177
+ }
178
+ default:
179
+ {
180
+ if (pos.col >= line.length) return moveCaret(lines, pos, 'right');
181
+ let c = pos.col;
182
+ while(c < line.length && !WORD.test(line[c]))c++;
183
+ while(c < line.length && WORD.test(line[c]))c++;
184
+ return {
185
+ line: pos.line,
186
+ col: c
187
+ };
188
+ }
189
+ }
190
+ }
191
+ function wordAt(lines, pos) {
192
+ var _lines_pos_line;
193
+ const line = null != (_lines_pos_line = lines[pos.line]) ? _lines_pos_line : '';
194
+ let a = pos.col;
195
+ let b = pos.col;
196
+ while(a > 0 && WORD.test(line[a - 1]))a--;
197
+ while(b < line.length && WORD.test(line[b]))b++;
198
+ return {
199
+ anchor: {
200
+ line: pos.line,
201
+ col: a
202
+ },
203
+ head: {
204
+ line: pos.line,
205
+ col: b
206
+ }
207
+ };
208
+ }
209
+ function indentOf(line) {
210
+ return line.slice(0, line.length - line.trimStart().length);
211
+ }
212
+ function newlineText(lines, pos, tab = ' ') {
213
+ var _lines_pos_line;
214
+ const line = null != (_lines_pos_line = lines[pos.line]) ? _lines_pos_line : '';
215
+ const indent = indentOf(line);
216
+ const before = line.slice(0, pos.col).trimEnd();
217
+ const after = line.slice(pos.col).trimStart();
218
+ const opens = /[[{(]$/.test(before);
219
+ if (opens && /^[\]})]/.test(after)) {
220
+ const text = `\n${indent}${tab}\n${indent}`;
221
+ return {
222
+ text,
223
+ caret: 1 + indent.length + tab.length
224
+ };
225
+ }
226
+ const text = `\n${indent}${opens ? tab : ''}`;
227
+ return {
228
+ text,
229
+ caret: text.length
230
+ };
231
+ }
232
+ function findAll(lines, query, options = {}) {
233
+ var _options_limit;
234
+ if (!query || /[\r\n]/.test(query)) return [];
235
+ const q = options.caseSensitive ? query : query.toLowerCase();
236
+ const limit = null != (_options_limit = options.limit) ? _options_limit : 10000;
237
+ const out = [];
238
+ for(let l = 0; l < lines.length && out.length < limit; l++){
239
+ const text = options.caseSensitive ? lines[l] : lines[l].toLowerCase();
240
+ let at = text.indexOf(q);
241
+ while(at >= 0 && out.length < limit){
242
+ out.push({
243
+ line: l,
244
+ col: at,
245
+ length: q.length
246
+ });
247
+ at = text.indexOf(q, at + Math.max(1, q.length));
248
+ }
249
+ }
250
+ return out;
251
+ }
252
+ function nextMatchIndex(matches, pos, dir) {
253
+ if (0 === matches.length) return -1;
254
+ if (1 === dir) {
255
+ const i = matches.findIndex((m)=>comparePos({
256
+ line: m.line,
257
+ col: m.col
258
+ }, pos) > 0);
259
+ return i < 0 ? 0 : i;
260
+ }
261
+ for(let i = matches.length - 1; i >= 0; i--){
262
+ const m = matches[i];
263
+ if (comparePos({
264
+ line: m.line,
265
+ col: m.col
266
+ }, pos) < 0) return i;
267
+ }
268
+ return matches.length - 1;
269
+ }
270
+ class G9EditHistory {
271
+ record(change, inverse, before, after, kind, now) {
272
+ this.undone = [];
273
+ const last = this.done[this.done.length - 1];
274
+ if (last && 'other' !== kind && last.kind === kind && now - last.time <= this.groupMs) {
275
+ last.changes.push(change);
276
+ last.inverses.push(inverse);
277
+ last.after = after;
278
+ last.time = now;
279
+ return;
280
+ }
281
+ this.done.push({
282
+ changes: [
283
+ change
284
+ ],
285
+ inverses: [
286
+ inverse
287
+ ],
288
+ before,
289
+ after,
290
+ kind,
291
+ time: now
292
+ });
293
+ if (this.done.length > this.limit) this.done.shift();
294
+ }
295
+ get canUndo() {
296
+ return this.done.length > 0;
297
+ }
298
+ get canRedo() {
299
+ return this.undone.length > 0;
300
+ }
301
+ undo(lines, eol = '\n') {
302
+ const e = this.done.pop();
303
+ if (!e) return null;
304
+ let cur = lines;
305
+ for(let i = e.inverses.length - 1; i >= 0; i--)cur = applyChange(cur, e.inverses[i], eol).lines;
306
+ this.undone.push(e);
307
+ return {
308
+ lines: cur,
309
+ selection: e.before
310
+ };
311
+ }
312
+ redo(lines, eol = '\n') {
313
+ const e = this.undone.pop();
314
+ if (!e) return null;
315
+ let cur = lines;
316
+ for (const c of e.changes)cur = applyChange(cur, c, eol).lines;
317
+ this.done.push(e);
318
+ return {
319
+ lines: cur,
320
+ selection: e.after
321
+ };
322
+ }
323
+ clear() {
324
+ this.done = [];
325
+ this.undone = [];
326
+ }
327
+ constructor(limit = 500, groupMs = 800){
328
+ _define_property(this, "limit", void 0);
329
+ _define_property(this, "groupMs", void 0);
330
+ _define_property(this, "done", void 0);
331
+ _define_property(this, "undone", void 0);
332
+ this.limit = limit;
333
+ this.groupMs = groupMs;
334
+ this.done = [];
335
+ this.undone = [];
336
+ }
337
+ }
338
+ const NUM = /-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/y;
339
+ const IDENT = /[A-Za-z_][A-Za-z0-9_]*/y;
340
+ const tokenizeJsonLine = (line)=>{
341
+ const out = [];
342
+ const n = line.length;
343
+ let i = 0;
344
+ let plainFrom = -1;
345
+ const flush = (to)=>{
346
+ if (plainFrom >= 0 && to > plainFrom) out.push({
347
+ start: plainFrom,
348
+ end: to,
349
+ kind: 'plain'
350
+ });
351
+ plainFrom = -1;
352
+ };
353
+ while(i < n){
354
+ const ch = line[i];
355
+ if (' ' === ch || '\t' === ch) {
356
+ flush(i);
357
+ i++;
358
+ continue;
359
+ }
360
+ if ('/' === ch && '/' === line[i + 1]) {
361
+ flush(i);
362
+ out.push({
363
+ start: i,
364
+ end: n,
365
+ kind: 'comment'
366
+ });
367
+ return out;
368
+ }
369
+ if ('"' === ch) {
370
+ flush(i);
371
+ let j = i + 1;
372
+ while(j < n && '"' !== line[j])j += '\\' === line[j] ? 2 : 1;
373
+ const end = Math.min(n, j + 1);
374
+ let k = end;
375
+ while(k < n && (' ' === line[k] || '\t' === line[k]))k++;
376
+ out.push({
377
+ start: i,
378
+ end,
379
+ kind: ':' === line[k] ? 'key' : 'string'
380
+ });
381
+ i = end;
382
+ continue;
383
+ }
384
+ if ('{}[]:,'.includes(ch)) {
385
+ flush(i);
386
+ out.push({
387
+ start: i,
388
+ end: i + 1,
389
+ kind: 'punctuation'
390
+ });
391
+ i++;
392
+ continue;
393
+ }
394
+ NUM.lastIndex = i;
395
+ const num = NUM.exec(line);
396
+ if (num && plainFrom < 0) {
397
+ const end = i + num[0].length;
398
+ if (end === n || !/[A-Za-z0-9_]/.test(line[end])) {
399
+ flush(i);
400
+ out.push({
401
+ start: i,
402
+ end,
403
+ kind: 'number'
404
+ });
405
+ i = end;
406
+ continue;
407
+ }
408
+ }
409
+ IDENT.lastIndex = i;
410
+ const word = IDENT.exec(line);
411
+ if (word && plainFrom < 0) {
412
+ const w = word[0];
413
+ const kind = 'true' === w || 'false' === w ? 'boolean' : 'null' === w ? 'null' : 'plain';
414
+ out.push({
415
+ start: i,
416
+ end: i + w.length,
417
+ kind
418
+ });
419
+ i += w.length;
420
+ continue;
421
+ }
422
+ if (plainFrom < 0) plainFrom = i;
423
+ i++;
424
+ }
425
+ flush(n);
426
+ return out;
427
+ };
428
+ const tokenizePlainLine = (line)=>line ? [
429
+ {
430
+ start: 0,
431
+ end: line.length,
432
+ kind: 'plain'
433
+ }
434
+ ] : [];
435
+ export { G9EditHistory, applyChange, caretAt, clampPos, comparePos, detectEol, findAll, indentOf, isCaret, moveCaret, newlineText, nextMatchIndex, orderedRange, replaceRange, splitLines, textInRange, tokenizeJsonLine, tokenizePlainLine, wordAt };
@@ -0,0 +1,3 @@
1
+ export * from './editor/index.js';
2
+ export * from './log/index.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
package/dist/index.jsx ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./editor/index.jsx";
2
+ export * from "./log/index.jsx";
@@ -0,0 +1,3 @@
1
+ export { G9LogView, type G9LogViewHandle, type G9LogViewLabels, type G9LogViewProps } from './log-view.js';
2
+ export * from './model.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/log/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AACxG,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./model.jsx";
2
+ export { G9LogView } from "./log-view.jsx";
@@ -0,0 +1,167 @@
1
+ .g9-log {
2
+ background-color: var(--g9-surface-container-lowest);
3
+ flex-direction: column;
4
+ flex: 1 1 0;
5
+ min-height: 80px;
6
+ display: flex;
7
+ overflow: hidden;
8
+ }
9
+
10
+ .g9-log__toolbar {
11
+ border-bottom-style: solid;
12
+ border-bottom-width: 1px;
13
+ border-bottom-color: var(--g9-outline-variant);
14
+ flex-flow: wrap;
15
+ align-items: center;
16
+ padding: 6px 8px;
17
+ display: flex;
18
+ }
19
+
20
+ .g9-log__chip {
21
+ border-style: solid;
22
+ border-width: 1px;
23
+ border-color: var(--g9-outline-variant);
24
+ opacity: .55;
25
+ border-radius: 13px;
26
+ flex-direction: row;
27
+ align-items: center;
28
+ height: 26px;
29
+ margin-top: 2px;
30
+ margin-bottom: 2px;
31
+ margin-right: 6px;
32
+ padding-left: 8px;
33
+ padding-right: 10px;
34
+ display: flex;
35
+ }
36
+
37
+ .g9-log__chip--on {
38
+ opacity: 1;
39
+ background-color: var(--g9-surface-container-high);
40
+ }
41
+
42
+ .g9-log__chip-dot {
43
+ border-radius: 4px;
44
+ width: 8px;
45
+ height: 8px;
46
+ margin-right: 6px;
47
+ }
48
+
49
+ .g9-log__chip-text {
50
+ font-size: 11px;
51
+ font-family: var(--g9-font-text-600);
52
+ color: var(--g9-on-surface);
53
+ font-weight: 600;
54
+ }
55
+
56
+ .g9-log__search {
57
+ min-width: 120px;
58
+ height: 28px;
59
+ font-size: 13px;
60
+ font-family: var(--g9-font-text);
61
+ color: var(--g9-on-surface);
62
+ background-color: var(--g9-surface-container);
63
+ border-radius: 8px;
64
+ flex: 120px;
65
+ padding-left: 8px;
66
+ padding-right: 8px;
67
+ }
68
+
69
+ .g9-log__body {
70
+ flex-direction: column;
71
+ flex: 1 1 0;
72
+ display: flex;
73
+ position: relative;
74
+ }
75
+
76
+ .g9-log__list {
77
+ flex: 1 1 0;
78
+ }
79
+
80
+ .g9-log__row {
81
+ flex-direction: row;
82
+ align-items: center;
83
+ padding-left: 8px;
84
+ padding-right: 8px;
85
+ display: flex;
86
+ }
87
+
88
+ .g9-log__row--selected {
89
+ background-color: var(--g9-secondary-container);
90
+ }
91
+
92
+ .g9-log__row--fatal {
93
+ background-color: #dc26261a;
94
+ }
95
+
96
+ .g9-log__time {
97
+ color: var(--g9-on-surface-variant);
98
+ flex-shrink: 0;
99
+ margin-right: 8px;
100
+ font-family: monospace;
101
+ font-size: 12px;
102
+ }
103
+
104
+ .g9-log__level {
105
+ flex-shrink: 0;
106
+ width: 44px;
107
+ font-family: monospace;
108
+ font-size: 12px;
109
+ font-weight: 700;
110
+ }
111
+
112
+ .g9-log__category {
113
+ color: var(--g9-tertiary);
114
+ flex-shrink: 0;
115
+ width: 110px;
116
+ margin-right: 8px;
117
+ font-family: monospace;
118
+ font-size: 12px;
119
+ }
120
+
121
+ .g9-log__message {
122
+ color: var(--g9-on-surface);
123
+ flex: 1 1 0;
124
+ font-family: monospace;
125
+ font-size: 12px;
126
+ }
127
+
128
+ .g9-log__hit {
129
+ background-color: var(--g9-warning);
130
+ color: var(--g9-on-warning);
131
+ }
132
+
133
+ .g9-log__jump {
134
+ background-color: var(--g9-primary);
135
+ border-radius: 16px;
136
+ justify-content: center;
137
+ align-items: center;
138
+ height: 32px;
139
+ padding-left: 14px;
140
+ padding-right: 14px;
141
+ display: flex;
142
+ position: absolute;
143
+ bottom: 12px;
144
+ right: 16px;
145
+ }
146
+
147
+ .g9-log__jump-text {
148
+ font-size: 13px;
149
+ font-family: var(--g9-font-text-600);
150
+ color: var(--g9-on-primary);
151
+ font-weight: 600;
152
+ }
153
+
154
+ .g9-log__empty {
155
+ align-items: center;
156
+ padding: 24px;
157
+ display: flex;
158
+ }
159
+
160
+ .g9-log__empty-text {
161
+ font-size: 13px;
162
+ font-family: var(--g9-font-text);
163
+ color: var(--g9-on-surface-variant);
164
+ }
165
+
166
+
167
+ /*# sourceMappingURL=log-view.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://./src/log/log-view.css"],"names":[],"mappings":"AAEA;EADE,oDAAoD;EACpD,sBAAsB;EACtB,WAAW;EACX,gBAAgB;EAChB,aAAa;EACb,gBAAgB;AAClB;;AAMA;EAHE,0BAA0B;EAC1B,wBAAwB;EACxB,8CAA8C;EAC9C,eAAe;EACf,mBAAmB;EACnB,gBAAgB;EAChB,aAAa;AACf;;AAOA;EAJE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,YAAY;EACZ,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,iBAAiB;EACjB,mBAAmB;EACnB,aAAa;AACf;;AAOA;EAJE,UAAU;EACV,kDAAkD;AACpD;;AAOA;EAJE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,iBAAiB;AACnB;;AAOA;EAJE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,gBAAgB;AAClB;;AAOA;EAJE,gBAAgB;EAChB,YAAY;EACZ,eAAe;EACf,gCAAgC;EAChC,2BAA2B;EAC3B,6CAA6C;EAC7C,kBAAkB;EAClB,WAAW;EACX,iBAAiB;EACjB,kBAAkB;AACpB;;AASA;EANE,sBAAsB;EACtB,WAAW;EACX,aAAa;EACb,kBAAkB;AACpB;;AAWA;EARE,WAAW;AACb;;AAaA;EAVE,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;AACf;;AAaA;EAVE,+CAA+C;AACjD;;AAaA;EAVE,2BAA2B;AAC7B;;AAaA;EAVE,mCAAmC;EACnC,cAAc;EACd,iBAAiB;EACjB,sBAAsB;EACtB,eAAe;AACjB;;AAaA;EAVE,cAAc;EACd,WAAW;EACX,sBAAsB;EACtB,eAAe;EACf,gBAAgB;AAClB;;AAaA;EAVE,yBAAyB;EACzB,cAAc;EACd,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;EACtB,eAAe;AACjB;;AAaA;EAVE,2BAA2B;EAC3B,WAAW;EACX,sBAAsB;EACtB,eAAe;AACjB;;AAeA;EAZE,mCAAmC;EACnC,2BAA2B;AAC7B;;AAeA;EAZE,mCAAmC;EACnC,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;;AAeA;EAZE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,gBAAgB;AAClB;;AAeA;EAZE,mBAAmB;EACnB,aAAa;EACb,aAAa;AACf;;AAeA;EAZE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;AACrC","sourcesContent":["/* G9LogView (2.9.0): a toolbar of level chips and a search over a virtualised list of one-line rows; always left to\n right (explicit left / right, no logical props: Lynx does not inherit direction). */\n.g9-log {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n min-height: 80px;\n overflow: hidden;\n background-color: var(--g9-surface-container-lowest);\n}\n\n.g9-log__toolbar {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n padding: 6px 8px;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-outline-variant);\n}\n\n.g9-log__chip {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 26px;\n padding-left: 8px;\n padding-right: 10px;\n margin-right: 6px;\n margin-top: 2px;\n margin-bottom: 2px;\n border-radius: 13px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n opacity: 0.55;\n}\n\n.g9-log__chip--on {\n opacity: 1;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-log__chip-dot {\n width: 8px;\n height: 8px;\n border-radius: 4px;\n margin-right: 6px;\n}\n\n.g9-log__chip-text {\n font-size: 11px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-on-surface);\n}\n\n.g9-log__search {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 120px;\n min-width: 120px;\n height: 28px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 8px;\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-surface);\n background-color: var(--g9-surface-container);\n}\n\n.g9-log__body {\n position: relative;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n}\n\n.g9-log__list {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n}\n\n.g9-log__row {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.g9-log__row--selected {\n background-color: var(--g9-secondary-container);\n}\n\n.g9-log__row--fatal {\n background-color: rgba(220, 38, 38, 0.1);\n}\n\n.g9-log__time {\n font-family: monospace;\n font-size: 12px;\n color: var(--g9-on-surface-variant);\n margin-right: 8px;\n flex-shrink: 0;\n}\n\n.g9-log__level {\n font-family: monospace;\n font-size: 12px;\n font-weight: 700;\n width: 44px;\n flex-shrink: 0;\n}\n\n.g9-log__category {\n font-family: monospace;\n font-size: 12px;\n color: var(--g9-tertiary);\n width: 110px;\n margin-right: 8px;\n flex-shrink: 0;\n}\n\n.g9-log__message {\n font-family: monospace;\n font-size: 12px;\n color: var(--g9-on-surface);\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n}\n\n.g9-log__hit {\n background-color: var(--g9-warning);\n color: var(--g9-on-warning);\n}\n\n.g9-log__jump {\n position: absolute;\n bottom: 12px;\n right: 16px;\n height: 32px;\n padding-left: 14px;\n padding-right: 14px;\n border-radius: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-primary);\n}\n\n.g9-log__jump-text {\n font-size: 13px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-on-primary);\n}\n\n.g9-log__empty {\n padding: 24px;\n display: flex;\n align-items: center;\n}\n\n.g9-log__empty-text {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-surface-variant);\n}\n"],"sourceRoot":""}