@editframe/elements 0.15.0-beta.17 → 0.15.0-beta.5

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.
@@ -19,7 +19,7 @@ export declare class EFMedia extends EFMedia_base {
19
19
  get assetId(): string | null;
20
20
  fragmentIndexPath(): string;
21
21
  fragmentTrackPath(trackId: string): string;
22
- trackFragmentIndexLoader: Task<readonly [string, typeof fetch], Record<number, TrackFragmentIndex> | undefined>;
22
+ trackFragmentIndexLoader: Task<readonly [string, typeof fetch], Record<number, TrackFragmentIndex>>;
23
23
  initSegmentsLoader: Task<readonly [Record<number, TrackFragmentIndex> | undefined, string, typeof fetch], {
24
24
  trackId: string;
25
25
  buffer: MP4Box.MP4ArrayBuffer;
@@ -64,14 +64,12 @@ export declare class EFMedia extends EFMedia_base {
64
64
  startMs: number;
65
65
  endMs: number;
66
66
  } | undefined>;
67
- set fftSize(value: number);
68
- set fftDecay(value: number);
69
- get fftSize(): number;
70
- get fftDecay(): number;
71
- get shouldInterpolateFrequencies(): boolean;
67
+ fftSize: number;
68
+ fftDecay: number;
69
+ private static readonly MIN_DB;
70
+ private static readonly MAX_DB;
72
71
  private static readonly DECAY_WEIGHT;
73
72
  get FREQ_WEIGHTS(): Float32Array;
74
- byteTimeDomainTask: Task<readonly [import('@lit/task').TaskStatus, number, number, number], Uint8Array | null>;
75
73
  frequencyDataTask: Task<readonly [import('@lit/task').TaskStatus, number, number, number], Uint8Array | null>;
76
74
  }
77
75
  export {};
@@ -70,13 +70,8 @@ const _EFMedia = class _EFMedia2 extends EFTargetable(
70
70
  this.trackFragmentIndexLoader = new Task(this, {
71
71
  args: () => [this.fragmentIndexPath(), this.fetch],
72
72
  task: async ([fragmentIndexPath, fetch], { signal }) => {
73
- try {
74
- const response = await fetch(fragmentIndexPath, { signal });
75
- return await response.json();
76
- } catch (error) {
77
- log("Failed to load track fragment index", error);
78
- return void 0;
79
- }
73
+ const response = await fetch(fragmentIndexPath, { signal });
74
+ return await response.json();
80
75
  },
81
76
  onComplete: () => {
82
77
  this.requestUpdate("ownCurrentTimeMs");
@@ -247,98 +242,8 @@ const _EFMedia = class _EFMedia2 extends EFTargetable(
247
242
  };
248
243
  }
249
244
  });
250
- this.#byteTimeDomainCache = new LRUCache(100);
251
- this.byteTimeDomainTask = new Task(this, {
252
- autoRun: EF_INTERACTIVE,
253
- args: () => [
254
- this.audioBufferTask.status,
255
- this.currentSourceTimeMs,
256
- this.fftSize,
257
- this.fftDecay
258
- ],
259
- task: async () => {
260
- await this.audioBufferTask.taskComplete;
261
- if (!this.audioBufferTask.value) return null;
262
- if (this.currentSourceTimeMs <= 0) return null;
263
- const currentTimeMs = this.currentSourceTimeMs;
264
- const startOffsetMs = this.audioBufferTask.value.startOffsetMs;
265
- const audioBuffer = this.audioBufferTask.value.buffer;
266
- const smoothedKey = `${this.fftSize}:${this.fftDecay}:${startOffsetMs}:${currentTimeMs}`;
267
- const cachedData = this.#byteTimeDomainCache.get(smoothedKey);
268
- if (cachedData) return cachedData;
269
- const framesData = await Promise.all(
270
- Array.from({ length: this.fftDecay }, async (_, frameIndex) => {
271
- const frameOffset = frameIndex * (1e3 / 30);
272
- const startTime = Math.max(
273
- 0,
274
- (currentTimeMs - frameOffset - startOffsetMs) / 1e3
275
- );
276
- const cacheKey = `${this.fftSize}:${startOffsetMs}:${startTime}`;
277
- const cachedFrame = this.#byteTimeDomainCache.get(cacheKey);
278
- if (cachedFrame) return cachedFrame;
279
- const audioContext = new OfflineAudioContext(
280
- 2,
281
- 48e3 * (1 / 30),
282
- 48e3
283
- );
284
- const source = audioContext.createBufferSource();
285
- source.buffer = audioBuffer;
286
- const analyser = audioContext.createAnalyser();
287
- analyser.fftSize = this.fftSize;
288
- analyser.minDecibels = -90;
289
- analyser.maxDecibels = -20;
290
- const gainNode = audioContext.createGain();
291
- gainNode.gain.value = 2;
292
- source.connect(gainNode);
293
- gainNode.connect(analyser);
294
- analyser.connect(audioContext.destination);
295
- source.start(0, startTime, 1 / 30);
296
- const dataLength = analyser.fftSize / 2;
297
- try {
298
- await audioContext.startRendering();
299
- const frameData = new Uint8Array(dataLength);
300
- analyser.getByteTimeDomainData(frameData);
301
- const points = new Uint8Array(dataLength);
302
- for (let i = 0; i < dataLength; i++) {
303
- const pointSamples = frameData.slice(
304
- i * (frameData.length / dataLength),
305
- (i + 1) * (frameData.length / dataLength)
306
- );
307
- const rms = Math.sqrt(
308
- pointSamples.reduce((sum, sample) => {
309
- const normalized = (sample - 128) / 128;
310
- return sum + normalized * normalized;
311
- }, 0) / pointSamples.length
312
- );
313
- const avgSign = Math.sign(
314
- pointSamples.reduce((sum, sample) => sum + (sample - 128), 0)
315
- );
316
- points[i] = Math.min(255, Math.round(128 + avgSign * rms * 128));
317
- }
318
- this.#byteTimeDomainCache.set(cacheKey, points);
319
- return points;
320
- } finally {
321
- source.disconnect();
322
- analyser.disconnect();
323
- }
324
- })
325
- );
326
- const frameLength = framesData[0]?.length ?? 0;
327
- const smoothedData = new Uint8Array(frameLength);
328
- for (let i = 0; i < frameLength; i++) {
329
- let weightedSum = 0;
330
- let weightSum = 0;
331
- framesData.forEach((frame, frameIndex) => {
332
- const decayWeight = _EFMedia2.DECAY_WEIGHT ** frameIndex;
333
- weightedSum += (frame[i] ?? 0) * decayWeight;
334
- weightSum += decayWeight;
335
- });
336
- smoothedData[i] = Math.min(255, Math.round(weightedSum / weightSum));
337
- }
338
- this.#byteTimeDomainCache.set(smoothedKey, smoothedData);
339
- return smoothedData;
340
- }
341
- });
245
+ this.fftSize = 512;
246
+ this.fftDecay = 8;
342
247
  this.#frequencyDataCache = new LRUCache(100);
343
248
  this.frequencyDataTask = new Task(this, {
344
249
  autoRun: EF_INTERACTIVE,
@@ -381,19 +286,11 @@ const _EFMedia = class _EFMedia2 extends EFTargetable(
381
286
  );
382
287
  const analyser = audioContext.createAnalyser();
383
288
  analyser.fftSize = this.fftSize;
384
- analyser.minDecibels = -90;
385
- analyser.maxDecibels = -10;
386
- const gainNode = audioContext.createGain();
387
- gainNode.gain.value = 3;
388
- const filter = audioContext.createBiquadFilter();
389
- filter.type = "bandpass";
390
- filter.frequency.value = 15e3;
391
- filter.Q.value = 0.05;
289
+ analyser.minDecibels = _EFMedia2.MIN_DB;
290
+ analyser.maxDecibels = _EFMedia2.MAX_DB;
392
291
  const audioBufferSource = audioContext.createBufferSource();
393
292
  audioBufferSource.buffer = audioBuffer;
394
- audioBufferSource.connect(filter);
395
- filter.connect(gainNode);
396
- gainNode.connect(analyser);
293
+ audioBufferSource.connect(analyser);
397
294
  analyser.connect(audioContext.destination);
398
295
  audioBufferSource.start(0, startTime, 1 / 30);
399
296
  try {
@@ -428,9 +325,8 @@ const _EFMedia = class _EFMedia2 extends EFTargetable(
428
325
  0,
429
326
  Math.floor(smoothedData.length / 2)
430
327
  );
431
- const processedData = this.shouldInterpolateFrequencies ? processFFTData(slicedData) : slicedData;
432
- this.#frequencyDataCache.set(smoothedKey, processedData);
433
- return processedData;
328
+ this.#frequencyDataCache.set(smoothedKey, slicedData);
329
+ return slicedData;
434
330
  }
435
331
  });
436
332
  }
@@ -645,27 +541,11 @@ const _EFMedia = class _EFMedia2 extends EFTargetable(
645
541
  endMs: lastFragment.dts / audioTrackIndex.timescale * 1e3 + lastFragment.duration / audioTrackIndex.timescale * 1e3 - this.trimEndMs
646
542
  };
647
543
  }
648
- set fftSize(value) {
649
- const oldValue = this.fftSize;
650
- this.setAttribute("fft-size", String(value));
651
- this.requestUpdate("fft-size", oldValue);
652
- }
653
- set fftDecay(value) {
654
- const oldValue = this.fftDecay;
655
- this.setAttribute("fft-decay", String(value));
656
- this.requestUpdate("fft-decay", oldValue);
657
- }
658
- get fftSize() {
659
- return Number.parseInt(this.getAttribute("fft-size") ?? "128", 10);
660
- }
661
- get fftDecay() {
662
- return Number.parseInt(this.getAttribute("fft-decay") ?? "8", 10);
544
+ static {
545
+ this.MIN_DB = -90;
663
546
  }
664
- get shouldInterpolateFrequencies() {
665
- if (this.hasAttribute("interpolate-frequencies")) {
666
- return this.getAttribute("interpolate-frequencies") !== "false";
667
- }
668
- return false;
547
+ static {
548
+ this.MAX_DB = -20;
669
549
  }
670
550
  static {
671
551
  this.DECAY_WEIGHT = 0.7;
@@ -688,7 +568,6 @@ const _EFMedia = class _EFMedia2 extends EFTargetable(
688
568
  freqWeightsCache.set(this.fftSize, weights);
689
569
  return weights;
690
570
  }
691
- #byteTimeDomainCache;
692
571
  #frequencyDataCache;
693
572
  };
694
573
  __decorateClass([
@@ -700,47 +579,13 @@ __decorateClass([
700
579
  __decorateClass([
701
580
  state()
702
581
  ], _EFMedia.prototype, "desiredSeekTimeMs", 2);
582
+ __decorateClass([
583
+ property({ type: Number })
584
+ ], _EFMedia.prototype, "fftSize", 2);
585
+ __decorateClass([
586
+ property({ type: Number })
587
+ ], _EFMedia.prototype, "fftDecay", 2);
703
588
  let EFMedia = _EFMedia;
704
- function processFFTData(fftData, zeroThresholdPercent = 0.1) {
705
- const totalBins = fftData.length;
706
- const zeroThresholdCount = Math.floor(totalBins * zeroThresholdPercent);
707
- let zeroCount = 0;
708
- let cutoffIndex = totalBins;
709
- for (let i = totalBins - 1; i >= 0; i--) {
710
- if (fftData[i] < 10) {
711
- zeroCount++;
712
- } else {
713
- if (zeroCount >= zeroThresholdCount) {
714
- cutoffIndex = i + 1;
715
- break;
716
- }
717
- }
718
- }
719
- if (cutoffIndex < zeroThresholdCount) {
720
- return fftData;
721
- }
722
- const goodData = fftData.slice(0, cutoffIndex);
723
- const resampledData = interpolateData(goodData, fftData.length);
724
- return resampledData;
725
- }
726
- function interpolateData(data, targetSize) {
727
- const resampled = new Uint8Array(targetSize);
728
- const dataLength = data.length;
729
- for (let i = 0; i < targetSize; i++) {
730
- const ratio = i / (targetSize - 1) * (dataLength - 1);
731
- const index = Math.floor(ratio);
732
- const fraction = ratio - index;
733
- if (index >= dataLength - 1) {
734
- resampled[i] = data[dataLength - 1];
735
- } else {
736
- resampled[i] = Math.round(
737
- // biome-ignore lint/style/noNonNullAssertion: Manual bounds check
738
- data[index] * (1 - fraction) + data[index + 1] * fraction
739
- );
740
- }
741
- }
742
- return resampled;
743
- }
744
589
  export {
745
590
  EFMedia,
746
591
  deepGetMediaElements
@@ -27,7 +27,7 @@ export declare class EFTimegroup extends EFTimegroup_base {
27
27
  * that caused issues with constructing audio data. We had negative durations
28
28
  * in calculations and it was not clear why.
29
29
  */
30
- waitForMediaDurations(): Promise<(Record<number, import('../../../assets/src/index.ts').TrackFragmentIndex> | undefined)[]>;
30
+ waitForMediaDurations(): Promise<Record<number, import('../../../assets/src/index.ts').TrackFragmentIndex>[]>;
31
31
  get childTemporals(): import('./EFTemporal.js').TemporalMixinInterface[];
32
32
  protected updated(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
33
33
  private updateAnimations;
@@ -13,7 +13,7 @@ export declare class EFWaveform extends EFWaveform_base {
13
13
  private resizeObserver?;
14
14
  private mutationObserver?;
15
15
  render(): import('lit-html').TemplateResult<1>;
16
- mode: "roundBars" | "bars" | "bricks" | "line" | "curve" | "pixel" | "wave" | "spikes";
16
+ mode: "roundBars" | "bars" | "bricks" | "line" | "pixel" | "wave" | "spikes";
17
17
  color: string;
18
18
  target: string;
19
19
  targetElement: EFAudio | EFVideo | null;
@@ -26,8 +26,8 @@ export declare class EFWaveform extends EFWaveform_base {
26
26
  protected drawBars(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
27
27
  protected drawBricks(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
28
28
  protected drawRoundBars(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
29
+ protected drawEqualizer(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
29
30
  protected drawLine(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
30
- protected drawCurve(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
31
31
  protected drawPixel(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
32
32
  protected drawWave(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
33
33
  protected drawSpikes(ctx: CanvasRenderingContext2D, frequencyData: Uint8Array): void;
@@ -46,8 +46,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
46
46
  const ctx = this.ctx;
47
47
  if (!ctx) return;
48
48
  const frequencyData = this.targetElement.frequencyDataTask.value;
49
- const byteTimeData = this.targetElement.byteTimeDomainTask.value;
50
- if (!frequencyData || !byteTimeData) return;
49
+ if (!frequencyData) return;
51
50
  ctx.save();
52
51
  if (this.color === "currentColor") {
53
52
  const computedStyle = getComputedStyle(this);
@@ -66,10 +65,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
66
65
  this.drawBricks(ctx, frequencyData);
67
66
  break;
68
67
  case "line":
69
- this.drawLine(ctx, byteTimeData);
70
- break;
71
- case "curve":
72
- this.drawCurve(ctx, byteTimeData);
68
+ this.drawLine(ctx, frequencyData);
73
69
  break;
74
70
  case "pixel":
75
71
  this.drawPixel(ctx, frequencyData);
@@ -159,7 +155,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
159
155
  ctx.clearRect(0, 0, waveWidth, waveHeight);
160
156
  const path = new Path2D();
161
157
  frequencyData.forEach((value, i) => {
162
- const normalizedValue = value / 255;
158
+ const normalizedValue = Math.min(value / 255 * 2, 1);
163
159
  const barHeight = normalizedValue * waveHeight;
164
160
  const y = (waveHeight - barHeight) / 2;
165
161
  const x = waveWidth * paddingOuter + i * (barWidth * (1 + paddingInner));
@@ -178,7 +174,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
178
174
  const verticalGap = boxSize * 0.2;
179
175
  const maxBricks = Math.floor(waveHeight / (boxSize + verticalGap));
180
176
  frequencyData.forEach((value, i) => {
181
- const normalizedValue = value / 255;
177
+ const normalizedValue = Math.min(value / 255 * 2, 1);
182
178
  const brickCount = Math.floor(normalizedValue * maxBricks);
183
179
  for (let j = 0; j < brickCount; j++) {
184
180
  const x = columnWidth * i;
@@ -200,7 +196,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
200
196
  ctx.clearRect(0, 0, waveWidth, waveHeight);
201
197
  const path = new Path2D();
202
198
  frequencyData.forEach((value, i) => {
203
- const normalizedValue = value / 255;
199
+ const normalizedValue = Math.min(value / 255 * 2, 1);
204
200
  const height = normalizedValue * waveHeight;
205
201
  const x = waveWidth * paddingOuter + i * (barWidth * (1 + paddingInner));
206
202
  const y = (waveHeight - height) / 2;
@@ -208,29 +204,28 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
208
204
  });
209
205
  ctx.fill(path);
210
206
  }
211
- drawLine(ctx, frequencyData) {
207
+ drawEqualizer(ctx, frequencyData) {
212
208
  const canvas = ctx.canvas;
213
209
  const waveWidth = canvas.width;
214
210
  const waveHeight = canvas.height;
211
+ const baseline = waveHeight / 2;
212
+ const barWidth = waveWidth / frequencyData.length * 0.8;
215
213
  ctx.clearRect(0, 0, waveWidth, waveHeight);
216
- const path = new Path2D();
217
- const sampleRate = 1;
218
- for (let i = 0; i < frequencyData.length; i += sampleRate) {
219
- const x = i / frequencyData.length * waveWidth;
220
- const y = (1 - (frequencyData[i] ?? 0) / 255) * waveHeight;
221
- if (i === 0) {
222
- path.moveTo(x, y);
223
- } else {
224
- path.lineTo(x, y);
225
- }
226
- }
227
- const lastX = waveWidth;
228
- const lastY = (1 - (frequencyData[frequencyData.length - 1] ?? 0) / 255) * waveHeight;
229
- path.lineTo(lastX, lastY);
230
- ctx.lineWidth = this.lineWidth;
231
- ctx.stroke(path);
214
+ const baselinePath = new Path2D();
215
+ const barsPath = new Path2D();
216
+ baselinePath.moveTo(0, baseline);
217
+ baselinePath.lineTo(waveWidth, baseline);
218
+ frequencyData.forEach((value, i) => {
219
+ const height = value / 255 * (waveHeight / 2);
220
+ const x = i * (waveWidth / frequencyData.length);
221
+ const y = baseline - height;
222
+ barsPath.rect(x, y, barWidth, Math.max(height * 2, 1));
223
+ });
224
+ ctx.lineWidth = 2;
225
+ ctx.stroke(baselinePath);
226
+ ctx.fill(barsPath);
232
227
  }
233
- drawCurve(ctx, frequencyData) {
228
+ drawLine(ctx, frequencyData) {
234
229
  const canvas = ctx.canvas;
235
230
  const waveWidth = canvas.width;
236
231
  const waveHeight = canvas.height;
@@ -242,11 +237,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
242
237
  if (i === 0) {
243
238
  path.moveTo(x, y);
244
239
  } else {
245
- const prevX = (i - 1) / frequencyData.length * waveWidth;
246
- const prevY = (1 - (frequencyData[i - 1] ?? 0) / 255) * waveHeight;
247
- const xc = (prevX + x) / 2;
248
- const yc = (prevY + y) / 2;
249
- path.quadraticCurveTo(prevX, prevY, xc, yc);
240
+ path.lineTo(x, y);
250
241
  }
251
242
  });
252
243
  ctx.lineWidth = this.lineWidth;
@@ -261,7 +252,7 @@ let EFWaveform = class extends EFTemporal(TWMixin(LitElement)) {
261
252
  ctx.clearRect(0, 0, waveWidth, waveHeight);
262
253
  const path = new Path2D();
263
254
  frequencyData.forEach((value, i) => {
264
- const normalizedValue = value / 255;
255
+ const normalizedValue = Math.min(value / 255 * 2, 1);
265
256
  const x = i * (waveWidth / frequencyData.length);
266
257
  const barHeight = normalizedValue * (waveHeight / 2);
267
258
  const y = baseline - barHeight;
@@ -1,4 +1,4 @@
1
- const twStyle = "/*\n! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.visible {\n visibility: visible;\n}\n.static {\n position: static;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.top-0 {\n top: 0px;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.col-span-2 {\n grid-column: span 2 / span 2;\n}\n.mx-2 {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n.mb-\\[1px\\] {\n margin-bottom: 1px;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.h-\\[1\\.1rem\\] {\n height: 1.1rem;\n}\n.h-\\[5px\\] {\n height: 5px;\n}\n.h-full {\n height: 100%;\n}\n.w-1 {\n width: 0.25rem;\n}\n.w-\\[2px\\] {\n width: 2px;\n}\n.w-full {\n width: 100%;\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-crosshair {\n cursor: crosshair;\n}\n.resize {\n resize: both;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.text-nowrap {\n text-wrap: nowrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.border {\n border-width: 1px;\n}\n.border-r-2 {\n border-right-width: 2px;\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity));\n}\n.border-red-700 {\n --tw-border-opacity: 1;\n border-color: rgb(185 28 28 / var(--tw-border-opacity));\n}\n.border-slate-500 {\n --tw-border-opacity: 1;\n border-color: rgb(100 116 139 / var(--tw-border-opacity));\n}\n.border-b-slate-600 {\n --tw-border-opacity: 1;\n border-bottom-color: rgb(71 85 105 / var(--tw-border-opacity));\n}\n.bg-blue-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(191 219 254 / var(--tw-bg-opacity));\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bg-slate-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(241 245 249 / var(--tw-bg-opacity));\n}\n.bg-slate-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(226 232 240 / var(--tw-bg-opacity));\n}\n.bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity));\n}\n.bg-slate-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(30 41 59 / var(--tw-bg-opacity));\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2;\n}\n.p-\\[1px\\] {\n padding: 1px;\n}\n.pb-0 {\n padding-bottom: 0px;\n}\n.pl-1 {\n padding-left: 0.25rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pr-0 {\n padding-right: 0px;\n}\n.pr-1 {\n padding-right: 0.25rem;\n}\n.pt-\\[8px\\] {\n padding-top: 8px;\n}\n.font-mono {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.line-through {\n text-decoration-line: line-through;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-slate-300 {\n --tw-shadow-color: #cbd5e1;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.shadow-slate-600 {\n --tw-shadow-color: #475569;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.outline {\n outline-style: solid;\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.hover\\:bg-slate-400:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(148 163 184 / var(--tw-bg-opacity));\n}\n.peer:hover ~ .peer-hover\\:border-slate-400 {\n --tw-border-opacity: 1;\n border-color: rgb(148 163 184 / var(--tw-border-opacity));\n}\n.peer:hover ~ .peer-hover\\:bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity));\n}\n.data-\\[focused\\]\\:bg-slate-400[data-focused] {\n --tw-bg-opacity: 1;\n background-color: rgb(148 163 184 / var(--tw-bg-opacity));\n}\n.peer[data-focused] ~ .peer-data-\\[focused\\]\\:border-slate-400 {\n --tw-border-opacity: 1;\n border-color: rgb(148 163 184 / var(--tw-border-opacity));\n}\n.peer[data-focused] ~ .peer-data-\\[focused\\]\\:bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity));\n}\n";
1
+ const twStyle = "/*\n! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.static {\n position: static;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n inset: 0px;\n}\n.top-0 {\n top: 0px;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.col-span-2 {\n grid-column: span 2 / span 2;\n}\n.mx-2 {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n.mb-\\[1px\\] {\n margin-bottom: 1px;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.h-\\[1\\.1rem\\] {\n height: 1.1rem;\n}\n.h-\\[5px\\] {\n height: 5px;\n}\n.h-full {\n height: 100%;\n}\n.w-1 {\n width: 0.25rem;\n}\n.w-\\[2px\\] {\n width: 2px;\n}\n.w-full {\n width: 100%;\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-crosshair {\n cursor: crosshair;\n}\n.resize {\n resize: both;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.text-nowrap {\n text-wrap: nowrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.border {\n border-width: 1px;\n}\n.border-r-2 {\n border-right-width: 2px;\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity));\n}\n.border-red-700 {\n --tw-border-opacity: 1;\n border-color: rgb(185 28 28 / var(--tw-border-opacity));\n}\n.border-slate-500 {\n --tw-border-opacity: 1;\n border-color: rgb(100 116 139 / var(--tw-border-opacity));\n}\n.border-b-slate-600 {\n --tw-border-opacity: 1;\n border-bottom-color: rgb(71 85 105 / var(--tw-border-opacity));\n}\n.bg-blue-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(191 219 254 / var(--tw-bg-opacity));\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bg-slate-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(241 245 249 / var(--tw-bg-opacity));\n}\n.bg-slate-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(226 232 240 / var(--tw-bg-opacity));\n}\n.bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity));\n}\n.bg-slate-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(30 41 59 / var(--tw-bg-opacity));\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2;\n}\n.p-\\[1px\\] {\n padding: 1px;\n}\n.pb-0 {\n padding-bottom: 0px;\n}\n.pl-1 {\n padding-left: 0.25rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pr-0 {\n padding-right: 0px;\n}\n.pr-1 {\n padding-right: 0.25rem;\n}\n.pt-\\[8px\\] {\n padding-top: 8px;\n}\n.font-mono {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.line-through {\n text-decoration-line: line-through;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-slate-300 {\n --tw-shadow-color: #cbd5e1;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.shadow-slate-600 {\n --tw-shadow-color: #475569;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.outline {\n outline-style: solid;\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.hover\\:bg-slate-400:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(148 163 184 / var(--tw-bg-opacity));\n}\n.peer:hover ~ .peer-hover\\:border-slate-400 {\n --tw-border-opacity: 1;\n border-color: rgb(148 163 184 / var(--tw-border-opacity));\n}\n.peer:hover ~ .peer-hover\\:bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity));\n}\n.data-\\[focused\\]\\:bg-slate-400[data-focused] {\n --tw-bg-opacity: 1;\n background-color: rgb(148 163 184 / var(--tw-bg-opacity));\n}\n.peer[data-focused] ~ .peer-data-\\[focused\\]\\:border-slate-400 {\n --tw-border-opacity: 1;\n border-color: rgb(148 163 184 / var(--tw-border-opacity));\n}\n.peer[data-focused] ~ .peer-data-\\[focused\\]\\:bg-slate-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(203 213 225 / var(--tw-bg-opacity));\n}\n";
2
2
  export {
3
3
  twStyle as default
4
4
  };
@@ -18,25 +18,13 @@ function TWMixin(Base) {
18
18
  "twSheet not found. Probable cause: CSSStyleSheet not supported in this environment"
19
19
  );
20
20
  }
21
- const constructorStylesheets = [];
22
- const constructorStyles = "styles" in this.constructor && this.constructor.styles || [];
23
- if (Array.isArray(constructorStyles)) {
24
- for (const item of constructorStyles) {
25
- if (item.styleSheet) {
26
- constructorStylesheets.push(item.styleSheet);
27
- }
28
- }
29
- } else if (constructorStyles.styleSheet) {
30
- constructorStylesheets.push(constructorStyles.styleSheet);
31
- }
32
21
  if (renderRoot?.adoptedStyleSheets) {
33
22
  renderRoot.adoptedStyleSheets = [
34
23
  twSheet,
35
- ...renderRoot.adoptedStyleSheets,
36
- ...constructorStylesheets
24
+ ...renderRoot.adoptedStyleSheets
37
25
  ];
38
26
  } else {
39
- renderRoot.adoptedStyleSheets = [twSheet, ...constructorStylesheets];
27
+ renderRoot.adoptedStyleSheets = [twSheet];
40
28
  }
41
29
  return renderRoot;
42
30
  }
package/dist/index.d.ts CHANGED
@@ -14,4 +14,3 @@ export { EFToggleLoop } from './gui/EFToggleLoop.js';
14
14
  export { EFScrubber } from './gui/EFScrubber.js';
15
15
  export { EFTimeDisplay } from './gui/EFTimeDisplay.js';
16
16
  export { EFFocusOverlay } from './gui/EFFocusOverlay.js';
17
- export { getRenderInfo, RenderInfo } from './getRenderInfo.js';
package/dist/index.js CHANGED
@@ -16,7 +16,6 @@ import { EFScrubber } from "./gui/EFScrubber.js";
16
16
  import { EFTimeDisplay } from "./gui/EFTimeDisplay.js";
17
17
  import { EFFocusOverlay } from "./gui/EFFocusOverlay.js";
18
18
  import "./EF_FRAMEGEN.js";
19
- import { RenderInfo, getRenderInfo } from "./getRenderInfo.js";
20
19
  if (typeof window !== "undefined") {
21
20
  window.EF_REGISTERED = true;
22
21
  }
@@ -39,7 +38,5 @@ export {
39
38
  EFTogglePlay,
40
39
  EFVideo,
41
40
  EFWaveform,
42
- EFWorkbench,
43
- RenderInfo,
44
- getRenderInfo
41
+ EFWorkbench
45
42
  };
package/dist/style.css CHANGED
@@ -537,9 +537,6 @@ video {
537
537
  .pointer-events-none {
538
538
  pointer-events: none;
539
539
  }
540
- .visible {
541
- visibility: visible;
542
- }
543
540
  .static {
544
541
  position: static;
545
542
  }